1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for libltdl 1.2.
4#
5# Report bugs to <bug-libtool@gnu.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org and
232$0: bug-libtool@gnu.org about your system, including any
233$0: error possibly output before this message. Then install
234$0: a modern shell, or manually run the script under such a
235$0: shell if you do have one."
236  fi
237  exit 1
238fi
239fi
240fi
241SHELL=${CONFIG_SHELL-/bin/sh}
242export SHELL
243# Unset more variables known to interfere with behavior of common tools.
244CLICOLOR_FORCE= GREP_OPTIONS=
245unset CLICOLOR_FORCE GREP_OPTIONS
246
247## --------------------- ##
248## M4sh Shell Functions. ##
249## --------------------- ##
250# as_fn_unset VAR
251# ---------------
252# Portably unset VAR.
253as_fn_unset ()
254{
255  { eval $1=; unset $1;}
256}
257as_unset=as_fn_unset
258
259# as_fn_set_status STATUS
260# -----------------------
261# Set $? to STATUS, without forking.
262as_fn_set_status ()
263{
264  return $1
265} # as_fn_set_status
266
267# as_fn_exit STATUS
268# -----------------
269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270as_fn_exit ()
271{
272  set +e
273  as_fn_set_status $1
274  exit $1
275} # as_fn_exit
276
277# as_fn_mkdir_p
278# -------------
279# Create "$as_dir" as a directory, including parents if necessary.
280as_fn_mkdir_p ()
281{
282
283  case $as_dir in #(
284  -*) as_dir=./$as_dir;;
285  esac
286  test -d "$as_dir" || eval $as_mkdir_p || {
287    as_dirs=
288    while :; do
289      case $as_dir in #(
290      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291      *) as_qdir=$as_dir;;
292      esac
293      as_dirs="'$as_qdir' $as_dirs"
294      as_dir=`$as_dirname -- "$as_dir" ||
295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296	 X"$as_dir" : 'X\(//\)[^/]' \| \
297	 X"$as_dir" : 'X\(//\)$' \| \
298	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299$as_echo X"$as_dir" |
300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301	    s//\1/
302	    q
303	  }
304	  /^X\(\/\/\)[^/].*/{
305	    s//\1/
306	    q
307	  }
308	  /^X\(\/\/\)$/{
309	    s//\1/
310	    q
311	  }
312	  /^X\(\/\).*/{
313	    s//\1/
314	    q
315	  }
316	  s/.*/./; q'`
317      test -d "$as_dir" && break
318    done
319    test -z "$as_dirs" || eval "mkdir $as_dirs"
320  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323} # as_fn_mkdir_p
324# as_fn_append VAR VALUE
325# ----------------------
326# Append the text in VALUE to the end of the definition contained in VAR. Take
327# advantage of any shell optimizations that allow amortized linear growth over
328# repeated appends, instead of the typical quadratic growth present in naive
329# implementations.
330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331  eval 'as_fn_append ()
332  {
333    eval $1+=\$2
334  }'
335else
336  as_fn_append ()
337  {
338    eval $1=\$$1\$2
339  }
340fi # as_fn_append
341
342# as_fn_arith ARG...
343# ------------------
344# Perform arithmetic evaluation on the ARGs, and store the result in the
345# global $as_val. Take advantage of shells that can avoid forks. The arguments
346# must be portable across $(()) and expr.
347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348  eval 'as_fn_arith ()
349  {
350    as_val=$(( $* ))
351  }'
352else
353  as_fn_arith ()
354  {
355    as_val=`expr "$@" || test $? -eq 1`
356  }
357fi # as_fn_arith
358
359
360# as_fn_error ERROR [LINENO LOG_FD]
361# ---------------------------------
362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364# script with status $?, using 1 if that was 0.
365as_fn_error ()
366{
367  as_status=$?; test $as_status -eq 0 && as_status=1
368  if test "$3"; then
369    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371  fi
372  $as_echo "$as_me: error: $1" >&2
373  as_fn_exit $as_status
374} # as_fn_error
375
376if expr a : '\(a\)' >/dev/null 2>&1 &&
377   test "X`expr 00001 : '.*\(...\)'`" = X001; then
378  as_expr=expr
379else
380  as_expr=false
381fi
382
383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384  as_basename=basename
385else
386  as_basename=false
387fi
388
389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390  as_dirname=dirname
391else
392  as_dirname=false
393fi
394
395as_me=`$as_basename -- "$0" ||
396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397	 X"$0" : 'X\(//\)$' \| \
398	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399$as_echo X/"$0" |
400    sed '/^.*\/\([^/][^/]*\)\/*$/{
401	    s//\1/
402	    q
403	  }
404	  /^X\/\(\/\/\)$/{
405	    s//\1/
406	    q
407	  }
408	  /^X\/\(\/\).*/{
409	    s//\1/
410	    q
411	  }
412	  s/.*/./; q'`
413
414# Avoid depending upon Character Ranges.
415as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418as_cr_digits='0123456789'
419as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422  as_lineno_1=$LINENO as_lineno_1a=$LINENO
423  as_lineno_2=$LINENO as_lineno_2a=$LINENO
424  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427  sed -n '
428    p
429    /[$]LINENO/=
430  ' <$as_myself |
431    sed '
432      s/[$]LINENO.*/&-/
433      t lineno
434      b
435      :lineno
436      N
437      :loop
438      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439      t loop
440      s/-\n.*//
441    ' >$as_me.lineno &&
442  chmod +x "$as_me.lineno" ||
443    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445  # Don't try to exec as it changes $[0], causing all sort of problems
446  # (the dirname of $[0] is not the place where we might find the
447  # original and so on.  Autoconf is especially sensitive to this).
448  . "./$as_me.lineno"
449  # Exit status is that of the last command.
450  exit
451}
452
453ECHO_C= ECHO_N= ECHO_T=
454case `echo -n x` in #(((((
455-n*)
456  case `echo 'xy\c'` in
457  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
458  xy)  ECHO_C='\c';;
459  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460       ECHO_T='	';;
461  esac;;
462*)
463  ECHO_N='-n';;
464esac
465
466rm -f conf$$ conf$$.exe conf$$.file
467if test -d conf$$.dir; then
468  rm -f conf$$.dir/conf$$.file
469else
470  rm -f conf$$.dir
471  mkdir conf$$.dir 2>/dev/null
472fi
473if (echo >conf$$.file) 2>/dev/null; then
474  if ln -s conf$$.file conf$$ 2>/dev/null; then
475    as_ln_s='ln -s'
476    # ... but there are two gotchas:
477    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479    # In both cases, we have to default to `cp -p'.
480    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481      as_ln_s='cp -p'
482  elif ln conf$$.file conf$$ 2>/dev/null; then
483    as_ln_s=ln
484  else
485    as_ln_s='cp -p'
486  fi
487else
488  as_ln_s='cp -p'
489fi
490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491rmdir conf$$.dir 2>/dev/null
492
493if mkdir -p . 2>/dev/null; then
494  as_mkdir_p='mkdir -p "$as_dir"'
495else
496  test -d ./-p && rmdir ./-p
497  as_mkdir_p=false
498fi
499
500if test -x / >/dev/null 2>&1; then
501  as_test_x='test -x'
502else
503  if ls -dL / >/dev/null 2>&1; then
504    as_ls_L_option=L
505  else
506    as_ls_L_option=
507  fi
508  as_test_x='
509    eval sh -c '\''
510      if test -d "$1"; then
511	test -d "$1/.";
512      else
513	case $1 in #(
514	-*)set "./$1";;
515	esac;
516	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517	???[sx]*):;;*)false;;esac;fi
518    '\'' sh
519  '
520fi
521as_executable_p=$as_test_x
522
523# Sed expression to map a string onto a valid CPP name.
524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526# Sed expression to map a string onto a valid variable name.
527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530
531# Check that we are running under the correct shell.
532SHELL=${CONFIG_SHELL-/bin/sh}
533
534case X$ECHO in
535X*--fallback-echo)
536  # Remove one level of quotation (which was required for Make).
537  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
538  ;;
539esac
540
541echo=${ECHO-echo}
542if test "X$1" = X--no-reexec; then
543  # Discard the --no-reexec flag, and continue.
544  shift
545elif test "X$1" = X--fallback-echo; then
546  # Avoid inline document here, it may be left over
547  :
548elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
549  # Yippee, $echo works!
550  :
551else
552  # Restart under the correct shell.
553  exec $SHELL "$0" --no-reexec ${1+"$@"}
554fi
555
556if test "X$1" = X--fallback-echo; then
557  # used as fallback echo
558  shift
559  cat <<EOF
560$*
561EOF
562  exit 0
563fi
564
565# The HP-UX ksh and POSIX shell print the target directory to stdout
566# if CDPATH is set.
567(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
569if test -z "$ECHO"; then
570if test "X${echo_test_string+set}" != Xset; then
571# find a string as large as possible, as long as the shell can cope with it
572  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
575       echo_test_string="`eval $cmd`" &&
576       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
577    then
578      break
579    fi
580  done
581fi
582
583if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
584   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
585   test "X$echo_testing_string" = "X$echo_test_string"; then
586  :
587else
588  # The Solaris, AIX, and Digital Unix default echo programs unquote
589  # backslashes.  This makes it impossible to quote backslashes using
590  #   echo "$something" | sed 's/\\/\\\\/g'
591  #
592  # So, first we look for a working echo in the user's PATH.
593
594  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
595  for dir in $PATH /usr/ucb; do
596    IFS="$lt_save_ifs"
597    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
598       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
599       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
600       test "X$echo_testing_string" = "X$echo_test_string"; then
601      echo="$dir/echo"
602      break
603    fi
604  done
605  IFS="$lt_save_ifs"
606
607  if test "X$echo" = Xecho; then
608    # We didn't find a better echo, so look for alternatives.
609    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
610       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
611       test "X$echo_testing_string" = "X$echo_test_string"; then
612      # This shell has a builtin print -r that does the trick.
613      echo='print -r'
614    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
615	 test "X$CONFIG_SHELL" != X/bin/ksh; then
616      # If we have ksh, try running configure again with it.
617      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
618      export ORIGINAL_CONFIG_SHELL
619      CONFIG_SHELL=/bin/ksh
620      export CONFIG_SHELL
621      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
622    else
623      # Try using printf.
624      echo='printf %s\n'
625      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
626	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
627	 test "X$echo_testing_string" = "X$echo_test_string"; then
628	# Cool, printf works
629	:
630      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
631	   test "X$echo_testing_string" = 'X\t' &&
632	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
633	   test "X$echo_testing_string" = "X$echo_test_string"; then
634	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635	export CONFIG_SHELL
636	SHELL="$CONFIG_SHELL"
637	export SHELL
638	echo="$CONFIG_SHELL $0 --fallback-echo"
639      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640	   test "X$echo_testing_string" = 'X\t' &&
641	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642	   test "X$echo_testing_string" = "X$echo_test_string"; then
643	echo="$CONFIG_SHELL $0 --fallback-echo"
644      else
645	# maybe with a smaller string...
646	prev=:
647
648	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
649	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
650	  then
651	    break
652	  fi
653	  prev="$cmd"
654	done
655
656	if test "$prev" != 'sed 50q "$0"'; then
657	  echo_test_string=`eval $prev`
658	  export echo_test_string
659	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660	else
661	  # Oops.  We lost completely, so just stick with echo.
662	  echo=echo
663	fi
664      fi
665    fi
666  fi
667fi
668fi
669
670# Copy echo and quote the copy suitably for passing to libtool from
671# the Makefile, instead of quoting the original, which is used later.
672ECHO=$echo
673if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
674   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
675fi
676
677
678
679
680exec 7<&0 </dev/null 6>&1
681
682# Name of the host.
683# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
684# so uname gets run too.
685ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
686
687#
688# Initializations.
689#
690ac_default_prefix=/usr/local
691ac_clean_files=
692ac_config_libobj_dir=.
693LIBOBJS=
694cross_compiling=no
695subdirs=
696MFLAGS=
697MAKEFLAGS=
698
699# Identity of this package.
700PACKAGE_NAME='libltdl'
701PACKAGE_TARNAME='libltdl'
702PACKAGE_VERSION='1.2'
703PACKAGE_STRING='libltdl 1.2'
704PACKAGE_BUGREPORT='bug-libtool@gnu.org'
705PACKAGE_URL=''
706
707ac_unique_file="ltdl.c"
708# Factoring default headers for most tests.
709ac_includes_default="\
710#include <stdio.h>
711#ifdef HAVE_SYS_TYPES_H
712# include <sys/types.h>
713#endif
714#ifdef HAVE_SYS_STAT_H
715# include <sys/stat.h>
716#endif
717#ifdef STDC_HEADERS
718# include <stdlib.h>
719# include <stddef.h>
720#else
721# ifdef HAVE_STDLIB_H
722#  include <stdlib.h>
723# endif
724#endif
725#ifdef HAVE_STRING_H
726# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
727#  include <memory.h>
728# endif
729# include <string.h>
730#endif
731#ifdef HAVE_STRINGS_H
732# include <strings.h>
733#endif
734#ifdef HAVE_INTTYPES_H
735# include <inttypes.h>
736#endif
737#ifdef HAVE_STDINT_H
738# include <stdint.h>
739#endif
740#ifdef HAVE_UNISTD_H
741# include <unistd.h>
742#endif"
743
744ac_subst_vars='am__EXEEXT_FALSE
745am__EXEEXT_TRUE
746LTLIBOBJS
747LIBOBJS
748LIBADD_DL
749CONVENIENCE_LTDL_FALSE
750CONVENIENCE_LTDL_TRUE
751INSTALL_LTDL_FALSE
752INSTALL_LTDL_TRUE
753LIBTOOL_DEPS
754LIBTOOL
755CPP
756OBJDUMP
757AS
758DLLTOOL
759RANLIB
760AR
761ECHO
762LN_S
763EGREP
764GREP
765host_os
766host_vendor
767host_cpu
768host
769build_os
770build_vendor
771build_cpu
772build
773am__fastdepCC_FALSE
774am__fastdepCC_TRUE
775CCDEPMODE
776AMDEPBACKSLASH
777AMDEP_FALSE
778AMDEP_TRUE
779am__quote
780am__include
781DEPDIR
782OBJEXT
783EXEEXT
784ac_ct_CC
785CPPFLAGS
786LDFLAGS
787CFLAGS
788CC
789am__untar
790am__tar
791AMTAR
792am__leading_dot
793SET_MAKE
794AWK
795mkdir_p
796MKDIR_P
797INSTALL_STRIP_PROGRAM
798STRIP
799install_sh
800MAKEINFO
801AUTOHEADER
802AUTOMAKE
803AUTOCONF
804ACLOCAL
805VERSION
806PACKAGE
807CYGPATH_W
808am__isrc
809INSTALL_DATA
810INSTALL_SCRIPT
811INSTALL_PROGRAM
812multi_basedir
813MAINT
814MAINTAINER_MODE_FALSE
815MAINTAINER_MODE_TRUE
816target_alias
817host_alias
818build_alias
819LIBS
820ECHO_T
821ECHO_N
822ECHO_C
823DEFS
824mandir
825localedir
826libdir
827psdir
828pdfdir
829dvidir
830htmldir
831infodir
832docdir
833oldincludedir
834includedir
835localstatedir
836sharedstatedir
837sysconfdir
838datadir
839datarootdir
840libexecdir
841sbindir
842bindir
843program_transform_name
844prefix
845exec_prefix
846PACKAGE_URL
847PACKAGE_BUGREPORT
848PACKAGE_STRING
849PACKAGE_VERSION
850PACKAGE_TARNAME
851PACKAGE_NAME
852PATH_SEPARATOR
853SHELL'
854ac_subst_files=''
855ac_user_opts='
856enable_option_checking
857enable_maintainer_mode
858enable_multilib
859enable_dependency_tracking
860enable_shared
861enable_static
862enable_fast_install
863with_gnu_ld
864enable_libtool_lock
865with_pic
866with_tags
867enable_ltdl_install
868'
869      ac_precious_vars='build_alias
870host_alias
871target_alias
872CC
873CFLAGS
874LDFLAGS
875LIBS
876CPPFLAGS
877CPP'
878
879
880# Initialize some variables set by options.
881ac_init_help=
882ac_init_version=false
883ac_unrecognized_opts=
884ac_unrecognized_sep=
885# The variables have the same names as the options, with
886# dashes changed to underlines.
887cache_file=/dev/null
888exec_prefix=NONE
889no_create=
890no_recursion=
891prefix=NONE
892program_prefix=NONE
893program_suffix=NONE
894program_transform_name=s,x,x,
895silent=
896site=
897srcdir=
898verbose=
899x_includes=NONE
900x_libraries=NONE
901
902# Installation directory options.
903# These are left unexpanded so users can "make install exec_prefix=/foo"
904# and all the variables that are supposed to be based on exec_prefix
905# by default will actually change.
906# Use braces instead of parens because sh, perl, etc. also accept them.
907# (The list follows the same order as the GNU Coding Standards.)
908bindir='${exec_prefix}/bin'
909sbindir='${exec_prefix}/sbin'
910libexecdir='${exec_prefix}/libexec'
911datarootdir='${prefix}/share'
912datadir='${datarootdir}'
913sysconfdir='${prefix}/etc'
914sharedstatedir='${prefix}/com'
915localstatedir='${prefix}/var'
916includedir='${prefix}/include'
917oldincludedir='/usr/include'
918docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
919infodir='${datarootdir}/info'
920htmldir='${docdir}'
921dvidir='${docdir}'
922pdfdir='${docdir}'
923psdir='${docdir}'
924libdir='${exec_prefix}/lib'
925localedir='${datarootdir}/locale'
926mandir='${datarootdir}/man'
927
928ac_prev=
929ac_dashdash=
930for ac_option
931do
932  # If the previous option needs an argument, assign it.
933  if test -n "$ac_prev"; then
934    eval $ac_prev=\$ac_option
935    ac_prev=
936    continue
937  fi
938
939  case $ac_option in
940  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941  *)	ac_optarg=yes ;;
942  esac
943
944  # Accept the important Cygnus configure options, so we can diagnose typos.
945
946  case $ac_dashdash$ac_option in
947  --)
948    ac_dashdash=yes ;;
949
950  -bindir | --bindir | --bindi | --bind | --bin | --bi)
951    ac_prev=bindir ;;
952  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953    bindir=$ac_optarg ;;
954
955  -build | --build | --buil | --bui | --bu)
956    ac_prev=build_alias ;;
957  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958    build_alias=$ac_optarg ;;
959
960  -cache-file | --cache-file | --cache-fil | --cache-fi \
961  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962    ac_prev=cache_file ;;
963  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965    cache_file=$ac_optarg ;;
966
967  --config-cache | -C)
968    cache_file=config.cache ;;
969
970  -datadir | --datadir | --datadi | --datad)
971    ac_prev=datadir ;;
972  -datadir=* | --datadir=* | --datadi=* | --datad=*)
973    datadir=$ac_optarg ;;
974
975  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976  | --dataroo | --dataro | --datar)
977    ac_prev=datarootdir ;;
978  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980    datarootdir=$ac_optarg ;;
981
982  -disable-* | --disable-*)
983    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984    # Reject names that are not valid shell variable names.
985    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986      as_fn_error "invalid feature name: $ac_useropt"
987    ac_useropt_orig=$ac_useropt
988    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989    case $ac_user_opts in
990      *"
991"enable_$ac_useropt"
992"*) ;;
993      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994	 ac_unrecognized_sep=', ';;
995    esac
996    eval enable_$ac_useropt=no ;;
997
998  -docdir | --docdir | --docdi | --doc | --do)
999    ac_prev=docdir ;;
1000  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001    docdir=$ac_optarg ;;
1002
1003  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004    ac_prev=dvidir ;;
1005  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006    dvidir=$ac_optarg ;;
1007
1008  -enable-* | --enable-*)
1009    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010    # Reject names that are not valid shell variable names.
1011    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012      as_fn_error "invalid feature name: $ac_useropt"
1013    ac_useropt_orig=$ac_useropt
1014    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015    case $ac_user_opts in
1016      *"
1017"enable_$ac_useropt"
1018"*) ;;
1019      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020	 ac_unrecognized_sep=', ';;
1021    esac
1022    eval enable_$ac_useropt=\$ac_optarg ;;
1023
1024  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026  | --exec | --exe | --ex)
1027    ac_prev=exec_prefix ;;
1028  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030  | --exec=* | --exe=* | --ex=*)
1031    exec_prefix=$ac_optarg ;;
1032
1033  -gas | --gas | --ga | --g)
1034    # Obsolete; use --with-gas.
1035    with_gas=yes ;;
1036
1037  -help | --help | --hel | --he | -h)
1038    ac_init_help=long ;;
1039  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040    ac_init_help=recursive ;;
1041  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042    ac_init_help=short ;;
1043
1044  -host | --host | --hos | --ho)
1045    ac_prev=host_alias ;;
1046  -host=* | --host=* | --hos=* | --ho=*)
1047    host_alias=$ac_optarg ;;
1048
1049  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050    ac_prev=htmldir ;;
1051  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052  | --ht=*)
1053    htmldir=$ac_optarg ;;
1054
1055  -includedir | --includedir | --includedi | --included | --include \
1056  | --includ | --inclu | --incl | --inc)
1057    ac_prev=includedir ;;
1058  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059  | --includ=* | --inclu=* | --incl=* | --inc=*)
1060    includedir=$ac_optarg ;;
1061
1062  -infodir | --infodir | --infodi | --infod | --info | --inf)
1063    ac_prev=infodir ;;
1064  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065    infodir=$ac_optarg ;;
1066
1067  -libdir | --libdir | --libdi | --libd)
1068    ac_prev=libdir ;;
1069  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070    libdir=$ac_optarg ;;
1071
1072  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073  | --libexe | --libex | --libe)
1074    ac_prev=libexecdir ;;
1075  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076  | --libexe=* | --libex=* | --libe=*)
1077    libexecdir=$ac_optarg ;;
1078
1079  -localedir | --localedir | --localedi | --localed | --locale)
1080    ac_prev=localedir ;;
1081  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082    localedir=$ac_optarg ;;
1083
1084  -localstatedir | --localstatedir | --localstatedi | --localstated \
1085  | --localstate | --localstat | --localsta | --localst | --locals)
1086    ac_prev=localstatedir ;;
1087  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089    localstatedir=$ac_optarg ;;
1090
1091  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092    ac_prev=mandir ;;
1093  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094    mandir=$ac_optarg ;;
1095
1096  -nfp | --nfp | --nf)
1097    # Obsolete; use --without-fp.
1098    with_fp=no ;;
1099
1100  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101  | --no-cr | --no-c | -n)
1102    no_create=yes ;;
1103
1104  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106    no_recursion=yes ;;
1107
1108  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110  | --oldin | --oldi | --old | --ol | --o)
1111    ac_prev=oldincludedir ;;
1112  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115    oldincludedir=$ac_optarg ;;
1116
1117  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118    ac_prev=prefix ;;
1119  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120    prefix=$ac_optarg ;;
1121
1122  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123  | --program-pre | --program-pr | --program-p)
1124    ac_prev=program_prefix ;;
1125  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127    program_prefix=$ac_optarg ;;
1128
1129  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130  | --program-suf | --program-su | --program-s)
1131    ac_prev=program_suffix ;;
1132  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134    program_suffix=$ac_optarg ;;
1135
1136  -program-transform-name | --program-transform-name \
1137  | --program-transform-nam | --program-transform-na \
1138  | --program-transform-n | --program-transform- \
1139  | --program-transform | --program-transfor \
1140  | --program-transfo | --program-transf \
1141  | --program-trans | --program-tran \
1142  | --progr-tra | --program-tr | --program-t)
1143    ac_prev=program_transform_name ;;
1144  -program-transform-name=* | --program-transform-name=* \
1145  | --program-transform-nam=* | --program-transform-na=* \
1146  | --program-transform-n=* | --program-transform-=* \
1147  | --program-transform=* | --program-transfor=* \
1148  | --program-transfo=* | --program-transf=* \
1149  | --program-trans=* | --program-tran=* \
1150  | --progr-tra=* | --program-tr=* | --program-t=*)
1151    program_transform_name=$ac_optarg ;;
1152
1153  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154    ac_prev=pdfdir ;;
1155  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156    pdfdir=$ac_optarg ;;
1157
1158  -psdir | --psdir | --psdi | --psd | --ps)
1159    ac_prev=psdir ;;
1160  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161    psdir=$ac_optarg ;;
1162
1163  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164  | -silent | --silent | --silen | --sile | --sil)
1165    silent=yes ;;
1166
1167  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168    ac_prev=sbindir ;;
1169  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170  | --sbi=* | --sb=*)
1171    sbindir=$ac_optarg ;;
1172
1173  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175  | --sharedst | --shareds | --shared | --share | --shar \
1176  | --sha | --sh)
1177    ac_prev=sharedstatedir ;;
1178  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181  | --sha=* | --sh=*)
1182    sharedstatedir=$ac_optarg ;;
1183
1184  -site | --site | --sit)
1185    ac_prev=site ;;
1186  -site=* | --site=* | --sit=*)
1187    site=$ac_optarg ;;
1188
1189  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190    ac_prev=srcdir ;;
1191  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192    srcdir=$ac_optarg ;;
1193
1194  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195  | --syscon | --sysco | --sysc | --sys | --sy)
1196    ac_prev=sysconfdir ;;
1197  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199    sysconfdir=$ac_optarg ;;
1200
1201  -target | --target | --targe | --targ | --tar | --ta | --t)
1202    ac_prev=target_alias ;;
1203  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204    target_alias=$ac_optarg ;;
1205
1206  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207    verbose=yes ;;
1208
1209  -version | --version | --versio | --versi | --vers | -V)
1210    ac_init_version=: ;;
1211
1212  -with-* | --with-*)
1213    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214    # Reject names that are not valid shell variable names.
1215    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216      as_fn_error "invalid package name: $ac_useropt"
1217    ac_useropt_orig=$ac_useropt
1218    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219    case $ac_user_opts in
1220      *"
1221"with_$ac_useropt"
1222"*) ;;
1223      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224	 ac_unrecognized_sep=', ';;
1225    esac
1226    eval with_$ac_useropt=\$ac_optarg ;;
1227
1228  -without-* | --without-*)
1229    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230    # Reject names that are not valid shell variable names.
1231    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232      as_fn_error "invalid package name: $ac_useropt"
1233    ac_useropt_orig=$ac_useropt
1234    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235    case $ac_user_opts in
1236      *"
1237"with_$ac_useropt"
1238"*) ;;
1239      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240	 ac_unrecognized_sep=', ';;
1241    esac
1242    eval with_$ac_useropt=no ;;
1243
1244  --x)
1245    # Obsolete; use --with-x.
1246    with_x=yes ;;
1247
1248  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249  | --x-incl | --x-inc | --x-in | --x-i)
1250    ac_prev=x_includes ;;
1251  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253    x_includes=$ac_optarg ;;
1254
1255  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257    ac_prev=x_libraries ;;
1258  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260    x_libraries=$ac_optarg ;;
1261
1262  -*) as_fn_error "unrecognized option: \`$ac_option'
1263Try \`$0 --help' for more information."
1264    ;;
1265
1266  *=*)
1267    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268    # Reject names that are not valid shell variable names.
1269    case $ac_envvar in #(
1270      '' | [0-9]* | *[!_$as_cr_alnum]* )
1271      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1272    esac
1273    eval $ac_envvar=\$ac_optarg
1274    export $ac_envvar ;;
1275
1276  *)
1277    # FIXME: should be removed in autoconf 3.0.
1278    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1282    ;;
1283
1284  esac
1285done
1286
1287if test -n "$ac_prev"; then
1288  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289  as_fn_error "missing argument to $ac_option"
1290fi
1291
1292if test -n "$ac_unrecognized_opts"; then
1293  case $enable_option_checking in
1294    no) ;;
1295    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1296    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297  esac
1298fi
1299
1300# Check all directory arguments for consistency.
1301for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302		datadir sysconfdir sharedstatedir localstatedir includedir \
1303		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304		libdir localedir mandir
1305do
1306  eval ac_val=\$$ac_var
1307  # Remove trailing slashes.
1308  case $ac_val in
1309    */ )
1310      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311      eval $ac_var=\$ac_val;;
1312  esac
1313  # Be sure to have absolute directory names.
1314  case $ac_val in
1315    [\\/$]* | ?:[\\/]* )  continue;;
1316    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317  esac
1318  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1319done
1320
1321# There might be people who depend on the old broken behavior: `$host'
1322# used to hold the argument of --host etc.
1323# FIXME: To remove some day.
1324build=$build_alias
1325host=$host_alias
1326target=$target_alias
1327
1328# FIXME: To remove some day.
1329if test "x$host_alias" != x; then
1330  if test "x$build_alias" = x; then
1331    cross_compiling=maybe
1332    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1333    If a cross compiler is detected then cross compile mode will be used." >&2
1334  elif test "x$build_alias" != "x$host_alias"; then
1335    cross_compiling=yes
1336  fi
1337fi
1338
1339ac_tool_prefix=
1340test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342test "$silent" = yes && exec 6>/dev/null
1343
1344
1345ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346ac_ls_di=`ls -di .` &&
1347ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348  as_fn_error "working directory cannot be determined"
1349test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350  as_fn_error "pwd does not report name of working directory"
1351
1352
1353# Find the source files, if location was not specified.
1354if test -z "$srcdir"; then
1355  ac_srcdir_defaulted=yes
1356  # Try the directory containing this script, then the parent directory.
1357  ac_confdir=`$as_dirname -- "$as_myself" ||
1358$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359	 X"$as_myself" : 'X\(//\)[^/]' \| \
1360	 X"$as_myself" : 'X\(//\)$' \| \
1361	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362$as_echo X"$as_myself" |
1363    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364	    s//\1/
1365	    q
1366	  }
1367	  /^X\(\/\/\)[^/].*/{
1368	    s//\1/
1369	    q
1370	  }
1371	  /^X\(\/\/\)$/{
1372	    s//\1/
1373	    q
1374	  }
1375	  /^X\(\/\).*/{
1376	    s//\1/
1377	    q
1378	  }
1379	  s/.*/./; q'`
1380  srcdir=$ac_confdir
1381  if test ! -r "$srcdir/$ac_unique_file"; then
1382    srcdir=..
1383  fi
1384else
1385  ac_srcdir_defaulted=no
1386fi
1387if test ! -r "$srcdir/$ac_unique_file"; then
1388  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1390fi
1391ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392ac_abs_confdir=`(
1393	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1394	pwd)`
1395# When building in place, set srcdir=.
1396if test "$ac_abs_confdir" = "$ac_pwd"; then
1397  srcdir=.
1398fi
1399# Remove unnecessary trailing slashes from srcdir.
1400# Double slashes in file names in object file debugging info
1401# mess up M-x gdb in Emacs.
1402case $srcdir in
1403*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404esac
1405for ac_var in $ac_precious_vars; do
1406  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407  eval ac_env_${ac_var}_value=\$${ac_var}
1408  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410done
1411
1412#
1413# Report the --help message.
1414#
1415if test "$ac_init_help" = "long"; then
1416  # Omit some internal or obsolete options to make the list less imposing.
1417  # This message is too long to be a string in the A/UX 3.1 sh.
1418  cat <<_ACEOF
1419\`configure' configures libltdl 1.2 to adapt to many kinds of systems.
1420
1421Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424VAR=VALUE.  See below for descriptions of some of the useful variables.
1425
1426Defaults for the options are specified in brackets.
1427
1428Configuration:
1429  -h, --help              display this help and exit
1430      --help=short        display options specific to this package
1431      --help=recursive    display the short help of all the included packages
1432  -V, --version           display version information and exit
1433  -q, --quiet, --silent   do not print \`checking...' messages
1434      --cache-file=FILE   cache test results in FILE [disabled]
1435  -C, --config-cache      alias for \`--cache-file=config.cache'
1436  -n, --no-create         do not create output files
1437      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1438
1439Installation directories:
1440  --prefix=PREFIX         install architecture-independent files in PREFIX
1441                          [$ac_default_prefix]
1442  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1443                          [PREFIX]
1444
1445By default, \`make install' will install all the files in
1446\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1447an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448for instance \`--prefix=\$HOME'.
1449
1450For better control, use the options below.
1451
1452Fine tuning of the installation directories:
1453  --bindir=DIR            user executables [EPREFIX/bin]
1454  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1455  --libexecdir=DIR        program executables [EPREFIX/libexec]
1456  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1457  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1458  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1459  --libdir=DIR            object code libraries [EPREFIX/lib]
1460  --includedir=DIR        C header files [PREFIX/include]
1461  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1462  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1463  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1464  --infodir=DIR           info documentation [DATAROOTDIR/info]
1465  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1466  --mandir=DIR            man documentation [DATAROOTDIR/man]
1467  --docdir=DIR            documentation root [DATAROOTDIR/doc/libltdl]
1468  --htmldir=DIR           html documentation [DOCDIR]
1469  --dvidir=DIR            dvi documentation [DOCDIR]
1470  --pdfdir=DIR            pdf documentation [DOCDIR]
1471  --psdir=DIR             ps documentation [DOCDIR]
1472_ACEOF
1473
1474  cat <<\_ACEOF
1475
1476Program names:
1477  --program-prefix=PREFIX            prepend PREFIX to installed program names
1478  --program-suffix=SUFFIX            append SUFFIX to installed program names
1479  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1480
1481System types:
1482  --build=BUILD     configure for building on BUILD [guessed]
1483  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1484_ACEOF
1485fi
1486
1487if test -n "$ac_init_help"; then
1488  case $ac_init_help in
1489     short | recursive ) echo "Configuration of libltdl 1.2:";;
1490   esac
1491  cat <<\_ACEOF
1492
1493Optional Features:
1494  --disable-option-checking  ignore unrecognized --enable/--with options
1495  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1496  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1497  --enable-maintainer-mode  enable make rules and dependencies not useful
1498			  (and sometimes confusing) to the casual installer
1499  --enable-multilib       build many library versions (default)
1500  --disable-dependency-tracking  speeds up one-time build
1501  --enable-dependency-tracking   do not reject slow dependency extractors
1502  --enable-shared[=PKGS]  build shared libraries [default=yes]
1503  --enable-static[=PKGS]  build static libraries [default=yes]
1504  --enable-fast-install[=PKGS]
1505                          optimize for fast installation [default=yes]
1506  --disable-libtool-lock  avoid locking (might break parallel builds)
1507  --enable-ltdl-install   install libltdl
1508
1509Optional Packages:
1510  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1511  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1512  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1513  --with-pic              try to use only PIC/non-PIC objects [default=use
1514                          both]
1515  --with-tags[=TAGS]      include additional configurations [automatic]
1516
1517Some influential environment variables:
1518  CC          C compiler command
1519  CFLAGS      C compiler flags
1520  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1521              nonstandard directory <lib dir>
1522  LIBS        libraries to pass to the linker, e.g. -l<library>
1523  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1524              you have headers in a nonstandard directory <include dir>
1525  CPP         C preprocessor
1526
1527Use these variables to override the choices made by `configure' or to help
1528it to find libraries and programs with nonstandard names/locations.
1529
1530Report bugs to <bug-libtool@gnu.org>.
1531_ACEOF
1532ac_status=$?
1533fi
1534
1535if test "$ac_init_help" = "recursive"; then
1536  # If there are subdirs, report their specific --help.
1537  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538    test -d "$ac_dir" ||
1539      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540      continue
1541    ac_builddir=.
1542
1543case "$ac_dir" in
1544.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545*)
1546  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1547  # A ".." for each directory in $ac_dir_suffix.
1548  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549  case $ac_top_builddir_sub in
1550  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552  esac ;;
1553esac
1554ac_abs_top_builddir=$ac_pwd
1555ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556# for backward compatibility:
1557ac_top_builddir=$ac_top_build_prefix
1558
1559case $srcdir in
1560  .)  # We are building in place.
1561    ac_srcdir=.
1562    ac_top_srcdir=$ac_top_builddir_sub
1563    ac_abs_top_srcdir=$ac_pwd ;;
1564  [\\/]* | ?:[\\/]* )  # Absolute name.
1565    ac_srcdir=$srcdir$ac_dir_suffix;
1566    ac_top_srcdir=$srcdir
1567    ac_abs_top_srcdir=$srcdir ;;
1568  *) # Relative name.
1569    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570    ac_top_srcdir=$ac_top_build_prefix$srcdir
1571    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572esac
1573ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575    cd "$ac_dir" || { ac_status=$?; continue; }
1576    # Check for guested configure.
1577    if test -f "$ac_srcdir/configure.gnu"; then
1578      echo &&
1579      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580    elif test -f "$ac_srcdir/configure"; then
1581      echo &&
1582      $SHELL "$ac_srcdir/configure" --help=recursive
1583    else
1584      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585    fi || ac_status=$?
1586    cd "$ac_pwd" || { ac_status=$?; break; }
1587  done
1588fi
1589
1590test -n "$ac_init_help" && exit $ac_status
1591if $ac_init_version; then
1592  cat <<\_ACEOF
1593libltdl configure 1.2
1594generated by GNU Autoconf 2.64
1595
1596Copyright (C) 2009 Free Software Foundation, Inc.
1597This configure script is free software; the Free Software Foundation
1598gives unlimited permission to copy, distribute and modify it.
1599_ACEOF
1600  exit
1601fi
1602
1603## ------------------------ ##
1604## Autoconf initialization. ##
1605## ------------------------ ##
1606
1607# ac_fn_c_try_compile LINENO
1608# --------------------------
1609# Try to compile conftest.$ac_ext, and return whether this succeeded.
1610ac_fn_c_try_compile ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  rm -f conftest.$ac_objext
1614  if { { ac_try="$ac_compile"
1615case "(($ac_try" in
1616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617  *) ac_try_echo=$ac_try;;
1618esac
1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620$as_echo "$ac_try_echo"; } >&5
1621  (eval "$ac_compile") 2>conftest.err
1622  ac_status=$?
1623  if test -s conftest.err; then
1624    grep -v '^ *+' conftest.err >conftest.er1
1625    cat conftest.er1 >&5
1626    mv -f conftest.er1 conftest.err
1627  fi
1628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629  test $ac_status = 0; } && {
1630	 test -z "$ac_c_werror_flag" ||
1631	 test ! -s conftest.err
1632       } && test -s conftest.$ac_objext; then :
1633  ac_retval=0
1634else
1635  $as_echo "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
1637
1638	ac_retval=1
1639fi
1640  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1641  return $ac_retval
1642
1643} # ac_fn_c_try_compile
1644
1645# ac_fn_c_try_link LINENO
1646# -----------------------
1647# Try to link conftest.$ac_ext, and return whether this succeeded.
1648ac_fn_c_try_link ()
1649{
1650  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651  rm -f conftest.$ac_objext conftest$ac_exeext
1652  if { { ac_try="$ac_link"
1653case "(($ac_try" in
1654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655  *) ac_try_echo=$ac_try;;
1656esac
1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658$as_echo "$ac_try_echo"; } >&5
1659  (eval "$ac_link") 2>conftest.err
1660  ac_status=$?
1661  if test -s conftest.err; then
1662    grep -v '^ *+' conftest.err >conftest.er1
1663    cat conftest.er1 >&5
1664    mv -f conftest.er1 conftest.err
1665  fi
1666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667  test $ac_status = 0; } && {
1668	 test -z "$ac_c_werror_flag" ||
1669	 test ! -s conftest.err
1670       } && test -s conftest$ac_exeext && {
1671	 test "$cross_compiling" = yes ||
1672	 $as_test_x conftest$ac_exeext
1673       }; then :
1674  ac_retval=0
1675else
1676  $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679	ac_retval=1
1680fi
1681  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1682  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1683  # interfere with the next link command; also delete a directory that is
1684  # left behind by Apple's compiler.  We do this before executing the actions.
1685  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687  return $ac_retval
1688
1689} # ac_fn_c_try_link
1690
1691# ac_fn_c_try_cpp LINENO
1692# ----------------------
1693# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1694ac_fn_c_try_cpp ()
1695{
1696  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697  if { { ac_try="$ac_cpp conftest.$ac_ext"
1698case "(($ac_try" in
1699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700  *) ac_try_echo=$ac_try;;
1701esac
1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703$as_echo "$ac_try_echo"; } >&5
1704  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1705  ac_status=$?
1706  if test -s conftest.err; then
1707    grep -v '^ *+' conftest.err >conftest.er1
1708    cat conftest.er1 >&5
1709    mv -f conftest.er1 conftest.err
1710  fi
1711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712  test $ac_status = 0; } >/dev/null && {
1713	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1714	 test ! -s conftest.err
1715       }; then :
1716  ac_retval=0
1717else
1718  $as_echo "$as_me: failed program was:" >&5
1719sed 's/^/| /' conftest.$ac_ext >&5
1720
1721    ac_retval=1
1722fi
1723  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724  return $ac_retval
1725
1726} # ac_fn_c_try_cpp
1727
1728# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1729# -------------------------------------------------------
1730# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1731# the include files in INCLUDES and setting the cache variable VAR
1732# accordingly.
1733ac_fn_c_check_header_mongrel ()
1734{
1735  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738$as_echo_n "checking for $2... " >&6; }
1739if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1740  $as_echo_n "(cached) " >&6
1741fi
1742eval ac_res=\$$3
1743	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744$as_echo "$ac_res" >&6; }
1745else
1746  # Is the header compilable?
1747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1748$as_echo_n "checking $2 usability... " >&6; }
1749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h.  */
1751$4
1752#include <$2>
1753_ACEOF
1754if ac_fn_c_try_compile "$LINENO"; then :
1755  ac_header_compiler=yes
1756else
1757  ac_header_compiler=no
1758fi
1759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1761$as_echo "$ac_header_compiler" >&6; }
1762
1763# Is the header present?
1764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1765$as_echo_n "checking $2 presence... " >&6; }
1766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767/* end confdefs.h.  */
1768#include <$2>
1769_ACEOF
1770if ac_fn_c_try_cpp "$LINENO"; then :
1771  ac_header_preproc=yes
1772else
1773  ac_header_preproc=no
1774fi
1775rm -f conftest.err conftest.$ac_ext
1776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1777$as_echo "$ac_header_preproc" >&6; }
1778
1779# So?  What about this header?
1780case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1781  yes:no: )
1782    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1783$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1784    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1785$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1786    ;;
1787  no:yes:* )
1788    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1789$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1790    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1791$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1792    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1793$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1794    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1795$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1796    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1797$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1798( cat <<\_ASBOX
1799## ---------------------------------- ##
1800## Report this to bug-libtool@gnu.org ##
1801## ---------------------------------- ##
1802_ASBOX
1803     ) | sed "s/^/$as_me: WARNING:     /" >&2
1804    ;;
1805esac
1806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807$as_echo_n "checking for $2... " >&6; }
1808if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809  $as_echo_n "(cached) " >&6
1810else
1811  eval "$3=\$ac_header_compiler"
1812fi
1813eval ac_res=\$$3
1814	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815$as_echo "$ac_res" >&6; }
1816fi
1817  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818
1819} # ac_fn_c_check_header_mongrel
1820
1821# ac_fn_c_try_run LINENO
1822# ----------------------
1823# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824# that executables *can* be run.
1825ac_fn_c_try_run ()
1826{
1827  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828  if { { ac_try="$ac_link"
1829case "(($ac_try" in
1830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831  *) ac_try_echo=$ac_try;;
1832esac
1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834$as_echo "$ac_try_echo"; } >&5
1835  (eval "$ac_link") 2>&5
1836  ac_status=$?
1837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839  { { case "(($ac_try" in
1840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841  *) ac_try_echo=$ac_try;;
1842esac
1843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844$as_echo "$ac_try_echo"; } >&5
1845  (eval "$ac_try") 2>&5
1846  ac_status=$?
1847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848  test $ac_status = 0; }; }; then :
1849  ac_retval=0
1850else
1851  $as_echo "$as_me: program exited with status $ac_status" >&5
1852       $as_echo "$as_me: failed program was:" >&5
1853sed 's/^/| /' conftest.$ac_ext >&5
1854
1855       ac_retval=$ac_status
1856fi
1857  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859  return $ac_retval
1860
1861} # ac_fn_c_try_run
1862
1863# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1864# -------------------------------------------------------
1865# Tests whether HEADER exists and can be compiled using the include files in
1866# INCLUDES, setting the cache variable VAR accordingly.
1867ac_fn_c_check_header_compile ()
1868{
1869  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871$as_echo_n "checking for $2... " >&6; }
1872if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873  $as_echo_n "(cached) " >&6
1874else
1875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876/* end confdefs.h.  */
1877$4
1878#include <$2>
1879_ACEOF
1880if ac_fn_c_try_compile "$LINENO"; then :
1881  eval "$3=yes"
1882else
1883  eval "$3=no"
1884fi
1885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886fi
1887eval ac_res=\$$3
1888	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889$as_echo "$ac_res" >&6; }
1890  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891
1892} # ac_fn_c_check_header_compile
1893
1894# ac_fn_c_check_func LINENO FUNC VAR
1895# ----------------------------------
1896# Tests whether FUNC exists, setting the cache variable VAR accordingly
1897ac_fn_c_check_func ()
1898{
1899  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901$as_echo_n "checking for $2... " >&6; }
1902if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903  $as_echo_n "(cached) " >&6
1904else
1905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h.  */
1907/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1908   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1909#define $2 innocuous_$2
1910
1911/* System header to define __stub macros and hopefully few prototypes,
1912    which can conflict with char $2 (); below.
1913    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1914    <limits.h> exists even on freestanding compilers.  */
1915
1916#ifdef __STDC__
1917# include <limits.h>
1918#else
1919# include <assert.h>
1920#endif
1921
1922#undef $2
1923
1924/* Override any GCC internal prototype to avoid an error.
1925   Use char because int might match the return type of a GCC
1926   builtin and then its argument prototype would still apply.  */
1927#ifdef __cplusplus
1928extern "C"
1929#endif
1930char $2 ();
1931/* The GNU C library defines this for functions which it implements
1932    to always fail with ENOSYS.  Some functions are actually named
1933    something starting with __ and the normal name is an alias.  */
1934#if defined __stub_$2 || defined __stub___$2
1935choke me
1936#endif
1937
1938int
1939main ()
1940{
1941return $2 ();
1942  ;
1943  return 0;
1944}
1945_ACEOF
1946if ac_fn_c_try_link "$LINENO"; then :
1947  eval "$3=yes"
1948else
1949  eval "$3=no"
1950fi
1951rm -f core conftest.err conftest.$ac_objext \
1952    conftest$ac_exeext conftest.$ac_ext
1953fi
1954eval ac_res=\$$3
1955	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956$as_echo "$ac_res" >&6; }
1957  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958
1959} # ac_fn_c_check_func
1960
1961# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1962# -------------------------------------------
1963# Tests whether TYPE exists after having included INCLUDES, setting cache
1964# variable VAR accordingly.
1965ac_fn_c_check_type ()
1966{
1967  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969$as_echo_n "checking for $2... " >&6; }
1970if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1971  $as_echo_n "(cached) " >&6
1972else
1973  eval "$3=no"
1974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h.  */
1976$4
1977int
1978main ()
1979{
1980if (sizeof ($2))
1981	 return 0;
1982  ;
1983  return 0;
1984}
1985_ACEOF
1986if ac_fn_c_try_compile "$LINENO"; then :
1987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h.  */
1989$4
1990int
1991main ()
1992{
1993if (sizeof (($2)))
1994	    return 0;
1995  ;
1996  return 0;
1997}
1998_ACEOF
1999if ac_fn_c_try_compile "$LINENO"; then :
2000
2001else
2002  eval "$3=yes"
2003fi
2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005fi
2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007fi
2008eval ac_res=\$$3
2009	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010$as_echo "$ac_res" >&6; }
2011  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012
2013} # ac_fn_c_check_type
2014cat >config.log <<_ACEOF
2015This file contains any messages produced by compilers while
2016running configure, to aid debugging if configure makes a mistake.
2017
2018It was created by libltdl $as_me 1.2, which was
2019generated by GNU Autoconf 2.64.  Invocation command line was
2020
2021  $ $0 $@
2022
2023_ACEOF
2024exec 5>>config.log
2025{
2026cat <<_ASUNAME
2027## --------- ##
2028## Platform. ##
2029## --------- ##
2030
2031hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2032uname -m = `(uname -m) 2>/dev/null || echo unknown`
2033uname -r = `(uname -r) 2>/dev/null || echo unknown`
2034uname -s = `(uname -s) 2>/dev/null || echo unknown`
2035uname -v = `(uname -v) 2>/dev/null || echo unknown`
2036
2037/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2038/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2039
2040/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2041/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2042/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2043/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2044/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2045/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2046/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2047
2048_ASUNAME
2049
2050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051for as_dir in $PATH
2052do
2053  IFS=$as_save_IFS
2054  test -z "$as_dir" && as_dir=.
2055    $as_echo "PATH: $as_dir"
2056  done
2057IFS=$as_save_IFS
2058
2059} >&5
2060
2061cat >&5 <<_ACEOF
2062
2063
2064## ----------- ##
2065## Core tests. ##
2066## ----------- ##
2067
2068_ACEOF
2069
2070
2071# Keep a trace of the command line.
2072# Strip out --no-create and --no-recursion so they do not pile up.
2073# Strip out --silent because we don't want to record it for future runs.
2074# Also quote any args containing shell meta-characters.
2075# Make two passes to allow for proper duplicate-argument suppression.
2076ac_configure_args=
2077ac_configure_args0=
2078ac_configure_args1=
2079ac_must_keep_next=false
2080for ac_pass in 1 2
2081do
2082  for ac_arg
2083  do
2084    case $ac_arg in
2085    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2086    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2087    | -silent | --silent | --silen | --sile | --sil)
2088      continue ;;
2089    *\'*)
2090      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2091    esac
2092    case $ac_pass in
2093    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2094    2)
2095      as_fn_append ac_configure_args1 " '$ac_arg'"
2096      if test $ac_must_keep_next = true; then
2097	ac_must_keep_next=false # Got value, back to normal.
2098      else
2099	case $ac_arg in
2100	  *=* | --config-cache | -C | -disable-* | --disable-* \
2101	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2102	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2103	  | -with-* | --with-* | -without-* | --without-* | --x)
2104	    case "$ac_configure_args0 " in
2105	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2106	    esac
2107	    ;;
2108	  -* ) ac_must_keep_next=true ;;
2109	esac
2110      fi
2111      as_fn_append ac_configure_args " '$ac_arg'"
2112      ;;
2113    esac
2114  done
2115done
2116{ ac_configure_args0=; unset ac_configure_args0;}
2117{ ac_configure_args1=; unset ac_configure_args1;}
2118
2119# When interrupted or exit'd, cleanup temporary files, and complete
2120# config.log.  We remove comments because anyway the quotes in there
2121# would cause problems or look ugly.
2122# WARNING: Use '\'' to represent an apostrophe within the trap.
2123# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2124trap 'exit_status=$?
2125  # Save into config.log some information that might help in debugging.
2126  {
2127    echo
2128
2129    cat <<\_ASBOX
2130## ---------------- ##
2131## Cache variables. ##
2132## ---------------- ##
2133_ASBOX
2134    echo
2135    # The following way of writing the cache mishandles newlines in values,
2136(
2137  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2138    eval ac_val=\$$ac_var
2139    case $ac_val in #(
2140    *${as_nl}*)
2141      case $ac_var in #(
2142      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2143$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2144      esac
2145      case $ac_var in #(
2146      _ | IFS | as_nl) ;; #(
2147      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2148      *) { eval $ac_var=; unset $ac_var;} ;;
2149      esac ;;
2150    esac
2151  done
2152  (set) 2>&1 |
2153    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2154    *${as_nl}ac_space=\ *)
2155      sed -n \
2156	"s/'\''/'\''\\\\'\'''\''/g;
2157	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2158      ;; #(
2159    *)
2160      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2161      ;;
2162    esac |
2163    sort
2164)
2165    echo
2166
2167    cat <<\_ASBOX
2168## ----------------- ##
2169## Output variables. ##
2170## ----------------- ##
2171_ASBOX
2172    echo
2173    for ac_var in $ac_subst_vars
2174    do
2175      eval ac_val=\$$ac_var
2176      case $ac_val in
2177      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2178      esac
2179      $as_echo "$ac_var='\''$ac_val'\''"
2180    done | sort
2181    echo
2182
2183    if test -n "$ac_subst_files"; then
2184      cat <<\_ASBOX
2185## ------------------- ##
2186## File substitutions. ##
2187## ------------------- ##
2188_ASBOX
2189      echo
2190      for ac_var in $ac_subst_files
2191      do
2192	eval ac_val=\$$ac_var
2193	case $ac_val in
2194	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2195	esac
2196	$as_echo "$ac_var='\''$ac_val'\''"
2197      done | sort
2198      echo
2199    fi
2200
2201    if test -s confdefs.h; then
2202      cat <<\_ASBOX
2203## ----------- ##
2204## confdefs.h. ##
2205## ----------- ##
2206_ASBOX
2207      echo
2208      cat confdefs.h
2209      echo
2210    fi
2211    test "$ac_signal" != 0 &&
2212      $as_echo "$as_me: caught signal $ac_signal"
2213    $as_echo "$as_me: exit $exit_status"
2214  } >&5
2215  rm -f core *.core core.conftest.* &&
2216    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2217    exit $exit_status
2218' 0
2219for ac_signal in 1 2 13 15; do
2220  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2221done
2222ac_signal=0
2223
2224# confdefs.h avoids OS command line length limits that DEFS can exceed.
2225rm -f -r conftest* confdefs.h
2226
2227$as_echo "/* confdefs.h */" > confdefs.h
2228
2229# Predefined preprocessor variables.
2230
2231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_NAME "$PACKAGE_NAME"
2233_ACEOF
2234
2235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2237_ACEOF
2238
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_VERSION "$PACKAGE_VERSION"
2241_ACEOF
2242
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_STRING "$PACKAGE_STRING"
2245_ACEOF
2246
2247cat >>confdefs.h <<_ACEOF
2248#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2249_ACEOF
2250
2251cat >>confdefs.h <<_ACEOF
2252#define PACKAGE_URL "$PACKAGE_URL"
2253_ACEOF
2254
2255
2256# Let the site file select an alternate cache file if it wants to.
2257# Prefer an explicitly selected file to automatically selected ones.
2258ac_site_file1=NONE
2259ac_site_file2=NONE
2260if test -n "$CONFIG_SITE"; then
2261  ac_site_file1=$CONFIG_SITE
2262elif test "x$prefix" != xNONE; then
2263  ac_site_file1=$prefix/share/config.site
2264  ac_site_file2=$prefix/etc/config.site
2265else
2266  ac_site_file1=$ac_default_prefix/share/config.site
2267  ac_site_file2=$ac_default_prefix/etc/config.site
2268fi
2269for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2270do
2271  test "x$ac_site_file" = xNONE && continue
2272  if test -r "$ac_site_file"; then
2273    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2274$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2275    sed 's/^/| /' "$ac_site_file" >&5
2276    . "$ac_site_file"
2277  fi
2278done
2279
2280if test -r "$cache_file"; then
2281  # Some versions of bash will fail to source /dev/null (special
2282  # files actually), so we avoid doing that.
2283  if test -f "$cache_file"; then
2284    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2285$as_echo "$as_me: loading cache $cache_file" >&6;}
2286    case $cache_file in
2287      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2288      *)                      . "./$cache_file";;
2289    esac
2290  fi
2291else
2292  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2293$as_echo "$as_me: creating cache $cache_file" >&6;}
2294  >$cache_file
2295fi
2296
2297# Check that the precious variables saved in the cache have kept the same
2298# value.
2299ac_cache_corrupted=false
2300for ac_var in $ac_precious_vars; do
2301  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2302  eval ac_new_set=\$ac_env_${ac_var}_set
2303  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2304  eval ac_new_val=\$ac_env_${ac_var}_value
2305  case $ac_old_set,$ac_new_set in
2306    set,)
2307      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2308$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2309      ac_cache_corrupted=: ;;
2310    ,set)
2311      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2312$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2313      ac_cache_corrupted=: ;;
2314    ,);;
2315    *)
2316      if test "x$ac_old_val" != "x$ac_new_val"; then
2317	# differences in whitespace do not lead to failure.
2318	ac_old_val_w=`echo x $ac_old_val`
2319	ac_new_val_w=`echo x $ac_new_val`
2320	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2321	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2322$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2323	  ac_cache_corrupted=:
2324	else
2325	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2326$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2327	  eval $ac_var=\$ac_old_val
2328	fi
2329	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2330$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2331	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2332$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2333      fi;;
2334  esac
2335  # Pass precious variables to config.status.
2336  if test "$ac_new_set" = set; then
2337    case $ac_new_val in
2338    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2339    *) ac_arg=$ac_var=$ac_new_val ;;
2340    esac
2341    case " $ac_configure_args " in
2342      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2343      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2344    esac
2345  fi
2346done
2347if $ac_cache_corrupted; then
2348  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2350  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2351$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2352  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2353fi
2354## -------------------- ##
2355## Main body of script. ##
2356## -------------------- ##
2357
2358ac_ext=c
2359ac_cpp='$CPP $CPPFLAGS'
2360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2362ac_compiler_gnu=$ac_cv_c_compiler_gnu
2363
2364
2365
2366
2367
2368
2369
2370## GCJ LOCAL: gcc tree uses maintainer mode.
2371
2372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2373$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2374    # Check whether --enable-maintainer-mode was given.
2375if test "${enable_maintainer_mode+set}" = set; then :
2376  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2377else
2378  USE_MAINTAINER_MODE=no
2379fi
2380
2381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2382$as_echo "$USE_MAINTAINER_MODE" >&6; }
2383   if test $USE_MAINTAINER_MODE = yes; then
2384  MAINTAINER_MODE_TRUE=
2385  MAINTAINER_MODE_FALSE='#'
2386else
2387  MAINTAINER_MODE_TRUE='#'
2388  MAINTAINER_MODE_FALSE=
2389fi
2390
2391  MAINT=$MAINTAINER_MODE_TRUE
2392
2393
2394
2395# Default to --enable-multilib
2396# Check whether --enable-multilib was given.
2397if test "${enable_multilib+set}" = set; then :
2398  enableval=$enable_multilib; case "$enableval" in
2399  yes) multilib=yes ;;
2400  no)  multilib=no ;;
2401  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2402 esac
2403else
2404  multilib=yes
2405fi
2406
2407
2408# We may get other options which we leave undocumented:
2409# --with-target-subdir, --with-multisrctop, --with-multisubdir
2410# See config-ml.in if you want the gory details.
2411
2412if test "$srcdir" = "."; then
2413  if test "$with_target_subdir" != "."; then
2414    multi_basedir="$srcdir/$with_multisrctop../../.."
2415  else
2416    multi_basedir="$srcdir/$with_multisrctop../.."
2417  fi
2418else
2419  multi_basedir="$srcdir/../.."
2420fi
2421
2422
2423# Even if the default multilib is not a cross compilation,
2424# it may be that some of the other multilibs are.
2425if test $cross_compiling = no && test $multilib = yes \
2426   && test "x${with_multisubdir}" != x ; then
2427   cross_compiling=maybe
2428fi
2429
2430ac_config_commands="$ac_config_commands default-1"
2431
2432
2433## ------------------------------- ##
2434## Libltdl specific configuration. ##
2435## ------------------------------- ##
2436
2437ac_aux_dir=
2438for ac_dir in . "$srcdir"/.; do
2439  for ac_t in install-sh install.sh shtool; do
2440    if test -f "$ac_dir/$ac_t"; then
2441      ac_aux_dir=$ac_dir
2442      ac_install_sh="$ac_aux_dir/$ac_t -c"
2443      break 2
2444    fi
2445  done
2446done
2447if test -z "$ac_aux_dir"; then
2448  as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2449fi
2450
2451# These three variables are undocumented and unsupported,
2452# and are intended to be withdrawn in a future Autoconf release.
2453# They can cause serious problems if a builder's source tree is in a directory
2454# whose full name contains unusual characters.
2455ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2456ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2457ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2458
2459
2460
2461if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
2462  if test -f ${srcdir}/ltmain.sh; then
2463    # if libltdl is libtoolized, it is assumed to be stand-alone and
2464    # installed unless the command line overrides it (tested above)
2465    enable_ltdl_install=yes
2466  else
2467    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The top-level configure must select either" >&5
2468$as_echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
2469    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
2470$as_echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
2471    as_fn_error "*** Maybe you want to --enable-ltdl-install?" "$LINENO" 5
2472  fi
2473fi
2474
2475
2476## ------------------------ ##
2477## Automake Initialisation. ##
2478## ------------------------ ##
2479am__api_version='1.11'
2480
2481# Find a good install program.  We prefer a C program (faster),
2482# so one script is as good as another.  But avoid the broken or
2483# incompatible versions:
2484# SysV /etc/install, /usr/sbin/install
2485# SunOS /usr/etc/install
2486# IRIX /sbin/install
2487# AIX /bin/install
2488# AmigaOS /C/install, which installs bootblocks on floppy discs
2489# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2490# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2491# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2492# OS/2's system install, which has a completely different semantic
2493# ./install, which can be erroneously created by make from ./install.sh.
2494# Reject install programs that cannot install multiple files.
2495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2496$as_echo_n "checking for a BSD-compatible install... " >&6; }
2497if test -z "$INSTALL"; then
2498if test "${ac_cv_path_install+set}" = set; then :
2499  $as_echo_n "(cached) " >&6
2500else
2501  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502for as_dir in $PATH
2503do
2504  IFS=$as_save_IFS
2505  test -z "$as_dir" && as_dir=.
2506    # Account for people who put trailing slashes in PATH elements.
2507case $as_dir/ in #((
2508  ./ | .// | /[cC]/* | \
2509  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2510  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2511  /usr/ucb/* ) ;;
2512  *)
2513    # OSF1 and SCO ODT 3.0 have their own names for install.
2514    # Don't use installbsd from OSF since it installs stuff as root
2515    # by default.
2516    for ac_prog in ginstall scoinst install; do
2517      for ac_exec_ext in '' $ac_executable_extensions; do
2518	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2519	  if test $ac_prog = install &&
2520	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2521	    # AIX install.  It has an incompatible calling convention.
2522	    :
2523	  elif test $ac_prog = install &&
2524	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2525	    # program-specific install script used by HP pwplus--don't use.
2526	    :
2527	  else
2528	    rm -rf conftest.one conftest.two conftest.dir
2529	    echo one > conftest.one
2530	    echo two > conftest.two
2531	    mkdir conftest.dir
2532	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2533	      test -s conftest.one && test -s conftest.two &&
2534	      test -s conftest.dir/conftest.one &&
2535	      test -s conftest.dir/conftest.two
2536	    then
2537	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2538	      break 3
2539	    fi
2540	  fi
2541	fi
2542      done
2543    done
2544    ;;
2545esac
2546
2547  done
2548IFS=$as_save_IFS
2549
2550rm -rf conftest.one conftest.two conftest.dir
2551
2552fi
2553  if test "${ac_cv_path_install+set}" = set; then
2554    INSTALL=$ac_cv_path_install
2555  else
2556    # As a last resort, use the slow shell script.  Don't cache a
2557    # value for INSTALL within a source directory, because that will
2558    # break other packages using the cache if that directory is
2559    # removed, or if the value is a relative name.
2560    INSTALL=$ac_install_sh
2561  fi
2562fi
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2564$as_echo "$INSTALL" >&6; }
2565
2566# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2567# It thinks the first close brace ends the variable substitution.
2568test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2569
2570test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2571
2572test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2573
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2575$as_echo_n "checking whether build environment is sane... " >&6; }
2576# Just in case
2577sleep 1
2578echo timestamp > conftest.file
2579# Reject unsafe characters in $srcdir or the absolute working directory
2580# name.  Accept space and tab only in the latter.
2581am_lf='
2582'
2583case `pwd` in
2584  *[\\\"\#\$\&\'\`$am_lf]*)
2585    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2586esac
2587case $srcdir in
2588  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2589    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2590esac
2591
2592# Do `set' in a subshell so we don't clobber the current shell's
2593# arguments.  Must try -L first in case configure is actually a
2594# symlink; some systems play weird games with the mod time of symlinks
2595# (eg FreeBSD returns the mod time of the symlink's containing
2596# directory).
2597if (
2598   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2599   if test "$*" = "X"; then
2600      # -L didn't work.
2601      set X `ls -t "$srcdir/configure" conftest.file`
2602   fi
2603   rm -f conftest.file
2604   if test "$*" != "X $srcdir/configure conftest.file" \
2605      && test "$*" != "X conftest.file $srcdir/configure"; then
2606
2607      # If neither matched, then we have a broken ls.  This can happen
2608      # if, for instance, CONFIG_SHELL is bash and it inherits a
2609      # broken ls alias from the environment.  This has actually
2610      # happened.  Such a system could not be considered "sane".
2611      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2612alias in your environment" "$LINENO" 5
2613   fi
2614
2615   test "$2" = conftest.file
2616   )
2617then
2618   # Ok.
2619   :
2620else
2621   as_fn_error "newly created file is older than distributed files!
2622Check your system clock" "$LINENO" 5
2623fi
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2625$as_echo "yes" >&6; }
2626test "$program_prefix" != NONE &&
2627  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2628# Use a double $ so make ignores it.
2629test "$program_suffix" != NONE &&
2630  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2631# Double any \ or $.
2632# By default was `s,x,x', remove it if useless.
2633ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2634program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2635
2636# expand $ac_aux_dir to an absolute path
2637am_aux_dir=`cd $ac_aux_dir && pwd`
2638
2639if test x"${MISSING+set}" != xset; then
2640  case $am_aux_dir in
2641  *\ * | *\	*)
2642    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2643  *)
2644    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2645  esac
2646fi
2647# Use eval to expand $SHELL
2648if eval "$MISSING --run true"; then
2649  am_missing_run="$MISSING --run "
2650else
2651  am_missing_run=
2652  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2653$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2654fi
2655
2656if test x"${install_sh}" != xset; then
2657  case $am_aux_dir in
2658  *\ * | *\	*)
2659    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2660  *)
2661    install_sh="\${SHELL} $am_aux_dir/install-sh"
2662  esac
2663fi
2664
2665# Installed binaries are usually stripped using `strip' when the user
2666# run `make install-strip'.  However `strip' might not be the right
2667# tool to use in cross-compilation environments, therefore Automake
2668# will honor the `STRIP' environment variable to overrule this program.
2669if test "$cross_compiling" != no; then
2670  if test -n "$ac_tool_prefix"; then
2671  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2672set dummy ${ac_tool_prefix}strip; ac_word=$2
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674$as_echo_n "checking for $ac_word... " >&6; }
2675if test "${ac_cv_prog_STRIP+set}" = set; then :
2676  $as_echo_n "(cached) " >&6
2677else
2678  if test -n "$STRIP"; then
2679  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684  IFS=$as_save_IFS
2685  test -z "$as_dir" && as_dir=.
2686    for ac_exec_ext in '' $ac_executable_extensions; do
2687  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690    break 2
2691  fi
2692done
2693  done
2694IFS=$as_save_IFS
2695
2696fi
2697fi
2698STRIP=$ac_cv_prog_STRIP
2699if test -n "$STRIP"; then
2700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2701$as_echo "$STRIP" >&6; }
2702else
2703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704$as_echo "no" >&6; }
2705fi
2706
2707
2708fi
2709if test -z "$ac_cv_prog_STRIP"; then
2710  ac_ct_STRIP=$STRIP
2711  # Extract the first word of "strip", so it can be a program name with args.
2712set dummy strip; ac_word=$2
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714$as_echo_n "checking for $ac_word... " >&6; }
2715if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2716  $as_echo_n "(cached) " >&6
2717else
2718  if test -n "$ac_ct_STRIP"; then
2719  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2720else
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724  IFS=$as_save_IFS
2725  test -z "$as_dir" && as_dir=.
2726    for ac_exec_ext in '' $ac_executable_extensions; do
2727  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728    ac_cv_prog_ac_ct_STRIP="strip"
2729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730    break 2
2731  fi
2732done
2733  done
2734IFS=$as_save_IFS
2735
2736fi
2737fi
2738ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2739if test -n "$ac_ct_STRIP"; then
2740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2741$as_echo "$ac_ct_STRIP" >&6; }
2742else
2743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744$as_echo "no" >&6; }
2745fi
2746
2747  if test "x$ac_ct_STRIP" = x; then
2748    STRIP=":"
2749  else
2750    case $cross_compiling:$ac_tool_warned in
2751yes:)
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754ac_tool_warned=yes ;;
2755esac
2756    STRIP=$ac_ct_STRIP
2757  fi
2758else
2759  STRIP="$ac_cv_prog_STRIP"
2760fi
2761
2762fi
2763INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2764
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2766$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2767if test -z "$MKDIR_P"; then
2768  if test "${ac_cv_path_mkdir+set}" = set; then :
2769  $as_echo_n "(cached) " >&6
2770else
2771  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2773do
2774  IFS=$as_save_IFS
2775  test -z "$as_dir" && as_dir=.
2776    for ac_prog in mkdir gmkdir; do
2777	 for ac_exec_ext in '' $ac_executable_extensions; do
2778	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2779	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2780	     'mkdir (GNU coreutils) '* | \
2781	     'mkdir (coreutils) '* | \
2782	     'mkdir (fileutils) '4.1*)
2783	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2784	       break 3;;
2785	   esac
2786	 done
2787       done
2788  done
2789IFS=$as_save_IFS
2790
2791fi
2792
2793  if test "${ac_cv_path_mkdir+set}" = set; then
2794    MKDIR_P="$ac_cv_path_mkdir -p"
2795  else
2796    # As a last resort, use the slow shell script.  Don't cache a
2797    # value for MKDIR_P within a source directory, because that will
2798    # break other packages using the cache if that directory is
2799    # removed, or if the value is a relative name.
2800    test -d ./--version && rmdir ./--version
2801    MKDIR_P="$ac_install_sh -d"
2802  fi
2803fi
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2805$as_echo "$MKDIR_P" >&6; }
2806
2807mkdir_p="$MKDIR_P"
2808case $mkdir_p in
2809  [\\/$]* | ?:[\\/]*) ;;
2810  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2811esac
2812
2813for ac_prog in gawk mawk nawk awk
2814do
2815  # Extract the first word of "$ac_prog", so it can be a program name with args.
2816set dummy $ac_prog; ac_word=$2
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818$as_echo_n "checking for $ac_word... " >&6; }
2819if test "${ac_cv_prog_AWK+set}" = set; then :
2820  $as_echo_n "(cached) " >&6
2821else
2822  if test -n "$AWK"; then
2823  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2824else
2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826for as_dir in $PATH
2827do
2828  IFS=$as_save_IFS
2829  test -z "$as_dir" && as_dir=.
2830    for ac_exec_ext in '' $ac_executable_extensions; do
2831  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832    ac_cv_prog_AWK="$ac_prog"
2833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834    break 2
2835  fi
2836done
2837  done
2838IFS=$as_save_IFS
2839
2840fi
2841fi
2842AWK=$ac_cv_prog_AWK
2843if test -n "$AWK"; then
2844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2845$as_echo "$AWK" >&6; }
2846else
2847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848$as_echo "no" >&6; }
2849fi
2850
2851
2852  test -n "$AWK" && break
2853done
2854
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2856$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2857set x ${MAKE-make}
2858ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2859if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2860  $as_echo_n "(cached) " >&6
2861else
2862  cat >conftest.make <<\_ACEOF
2863SHELL = /bin/sh
2864all:
2865	@echo '@@@%%%=$(MAKE)=@@@%%%'
2866_ACEOF
2867# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2868case `${MAKE-make} -f conftest.make 2>/dev/null` in
2869  *@@@%%%=?*=@@@%%%*)
2870    eval ac_cv_prog_make_${ac_make}_set=yes;;
2871  *)
2872    eval ac_cv_prog_make_${ac_make}_set=no;;
2873esac
2874rm -f conftest.make
2875fi
2876if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2878$as_echo "yes" >&6; }
2879  SET_MAKE=
2880else
2881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882$as_echo "no" >&6; }
2883  SET_MAKE="MAKE=${MAKE-make}"
2884fi
2885
2886rm -rf .tst 2>/dev/null
2887mkdir .tst 2>/dev/null
2888if test -d .tst; then
2889  am__leading_dot=.
2890else
2891  am__leading_dot=_
2892fi
2893rmdir .tst 2>/dev/null
2894
2895if test "`cd $srcdir && pwd`" != "`pwd`"; then
2896  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2897  # is not polluted with repeated "-I."
2898  am__isrc=' -I$(srcdir)'
2899  # test to see if srcdir already configured
2900  if test -f $srcdir/config.status; then
2901    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2902  fi
2903fi
2904
2905# test whether we have cygpath
2906if test -z "$CYGPATH_W"; then
2907  if (cygpath --version) >/dev/null 2>/dev/null; then
2908    CYGPATH_W='cygpath -w'
2909  else
2910    CYGPATH_W=echo
2911  fi
2912fi
2913
2914
2915# Define the identity of the package.
2916 PACKAGE=libltdl
2917 VERSION=1.2
2918
2919
2920# Some tools Automake needs.
2921
2922ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2923
2924
2925AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2926
2927
2928AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2929
2930
2931AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2932
2933
2934MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2935
2936# We need awk for the "check" target.  The system "awk" is bad on
2937# some platforms.
2938# Always define AMTAR for backward compatibility.
2939
2940AMTAR=${AMTAR-"${am_missing_run}tar"}
2941
2942am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2943
2944
2945
2946
2947
2948ac_config_headers="$ac_config_headers config.h:config-h.in"
2949
2950
2951
2952## ------------------ ##
2953## C compiler checks. ##
2954## ------------------ ##
2955ac_ext=c
2956ac_cpp='$CPP $CPPFLAGS'
2957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960if test -n "$ac_tool_prefix"; then
2961  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2962set dummy ${ac_tool_prefix}gcc; ac_word=$2
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964$as_echo_n "checking for $ac_word... " >&6; }
2965if test "${ac_cv_prog_CC+set}" = set; then :
2966  $as_echo_n "(cached) " >&6
2967else
2968  if test -n "$CC"; then
2969  ac_cv_prog_CC="$CC" # Let the user override the test.
2970else
2971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972for as_dir in $PATH
2973do
2974  IFS=$as_save_IFS
2975  test -z "$as_dir" && as_dir=.
2976    for ac_exec_ext in '' $ac_executable_extensions; do
2977  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980    break 2
2981  fi
2982done
2983  done
2984IFS=$as_save_IFS
2985
2986fi
2987fi
2988CC=$ac_cv_prog_CC
2989if test -n "$CC"; then
2990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2991$as_echo "$CC" >&6; }
2992else
2993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994$as_echo "no" >&6; }
2995fi
2996
2997
2998fi
2999if test -z "$ac_cv_prog_CC"; then
3000  ac_ct_CC=$CC
3001  # Extract the first word of "gcc", so it can be a program name with args.
3002set dummy gcc; ac_word=$2
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004$as_echo_n "checking for $ac_word... " >&6; }
3005if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3006  $as_echo_n "(cached) " >&6
3007else
3008  if test -n "$ac_ct_CC"; then
3009  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3010else
3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012for as_dir in $PATH
3013do
3014  IFS=$as_save_IFS
3015  test -z "$as_dir" && as_dir=.
3016    for ac_exec_ext in '' $ac_executable_extensions; do
3017  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018    ac_cv_prog_ac_ct_CC="gcc"
3019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020    break 2
3021  fi
3022done
3023  done
3024IFS=$as_save_IFS
3025
3026fi
3027fi
3028ac_ct_CC=$ac_cv_prog_ac_ct_CC
3029if test -n "$ac_ct_CC"; then
3030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3031$as_echo "$ac_ct_CC" >&6; }
3032else
3033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034$as_echo "no" >&6; }
3035fi
3036
3037  if test "x$ac_ct_CC" = x; then
3038    CC=""
3039  else
3040    case $cross_compiling:$ac_tool_warned in
3041yes:)
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3044ac_tool_warned=yes ;;
3045esac
3046    CC=$ac_ct_CC
3047  fi
3048else
3049  CC="$ac_cv_prog_CC"
3050fi
3051
3052if test -z "$CC"; then
3053          if test -n "$ac_tool_prefix"; then
3054    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3055set dummy ${ac_tool_prefix}cc; ac_word=$2
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057$as_echo_n "checking for $ac_word... " >&6; }
3058if test "${ac_cv_prog_CC+set}" = set; then :
3059  $as_echo_n "(cached) " >&6
3060else
3061  if test -n "$CC"; then
3062  ac_cv_prog_CC="$CC" # Let the user override the test.
3063else
3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067  IFS=$as_save_IFS
3068  test -z "$as_dir" && as_dir=.
3069    for ac_exec_ext in '' $ac_executable_extensions; do
3070  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071    ac_cv_prog_CC="${ac_tool_prefix}cc"
3072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073    break 2
3074  fi
3075done
3076  done
3077IFS=$as_save_IFS
3078
3079fi
3080fi
3081CC=$ac_cv_prog_CC
3082if test -n "$CC"; then
3083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084$as_echo "$CC" >&6; }
3085else
3086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087$as_echo "no" >&6; }
3088fi
3089
3090
3091  fi
3092fi
3093if test -z "$CC"; then
3094  # Extract the first word of "cc", so it can be a program name with args.
3095set dummy cc; ac_word=$2
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097$as_echo_n "checking for $ac_word... " >&6; }
3098if test "${ac_cv_prog_CC+set}" = set; then :
3099  $as_echo_n "(cached) " >&6
3100else
3101  if test -n "$CC"; then
3102  ac_cv_prog_CC="$CC" # Let the user override the test.
3103else
3104  ac_prog_rejected=no
3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106for as_dir in $PATH
3107do
3108  IFS=$as_save_IFS
3109  test -z "$as_dir" && as_dir=.
3110    for ac_exec_ext in '' $ac_executable_extensions; do
3111  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3113       ac_prog_rejected=yes
3114       continue
3115     fi
3116    ac_cv_prog_CC="cc"
3117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118    break 2
3119  fi
3120done
3121  done
3122IFS=$as_save_IFS
3123
3124if test $ac_prog_rejected = yes; then
3125  # We found a bogon in the path, so make sure we never use it.
3126  set dummy $ac_cv_prog_CC
3127  shift
3128  if test $# != 0; then
3129    # We chose a different compiler from the bogus one.
3130    # However, it has the same basename, so the bogon will be chosen
3131    # first if we set CC to just the basename; use the full file name.
3132    shift
3133    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3134  fi
3135fi
3136fi
3137fi
3138CC=$ac_cv_prog_CC
3139if test -n "$CC"; then
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3141$as_echo "$CC" >&6; }
3142else
3143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144$as_echo "no" >&6; }
3145fi
3146
3147
3148fi
3149if test -z "$CC"; then
3150  if test -n "$ac_tool_prefix"; then
3151  for ac_prog in cl.exe
3152  do
3153    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3154set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156$as_echo_n "checking for $ac_word... " >&6; }
3157if test "${ac_cv_prog_CC+set}" = set; then :
3158  $as_echo_n "(cached) " >&6
3159else
3160  if test -n "$CC"; then
3161  ac_cv_prog_CC="$CC" # Let the user override the test.
3162else
3163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164for as_dir in $PATH
3165do
3166  IFS=$as_save_IFS
3167  test -z "$as_dir" && as_dir=.
3168    for ac_exec_ext in '' $ac_executable_extensions; do
3169  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172    break 2
3173  fi
3174done
3175  done
3176IFS=$as_save_IFS
3177
3178fi
3179fi
3180CC=$ac_cv_prog_CC
3181if test -n "$CC"; then
3182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3183$as_echo "$CC" >&6; }
3184else
3185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186$as_echo "no" >&6; }
3187fi
3188
3189
3190    test -n "$CC" && break
3191  done
3192fi
3193if test -z "$CC"; then
3194  ac_ct_CC=$CC
3195  for ac_prog in cl.exe
3196do
3197  # Extract the first word of "$ac_prog", so it can be a program name with args.
3198set dummy $ac_prog; ac_word=$2
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200$as_echo_n "checking for $ac_word... " >&6; }
3201if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3202  $as_echo_n "(cached) " >&6
3203else
3204  if test -n "$ac_ct_CC"; then
3205  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3206else
3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208for as_dir in $PATH
3209do
3210  IFS=$as_save_IFS
3211  test -z "$as_dir" && as_dir=.
3212    for ac_exec_ext in '' $ac_executable_extensions; do
3213  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214    ac_cv_prog_ac_ct_CC="$ac_prog"
3215    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216    break 2
3217  fi
3218done
3219  done
3220IFS=$as_save_IFS
3221
3222fi
3223fi
3224ac_ct_CC=$ac_cv_prog_ac_ct_CC
3225if test -n "$ac_ct_CC"; then
3226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3227$as_echo "$ac_ct_CC" >&6; }
3228else
3229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230$as_echo "no" >&6; }
3231fi
3232
3233
3234  test -n "$ac_ct_CC" && break
3235done
3236
3237  if test "x$ac_ct_CC" = x; then
3238    CC=""
3239  else
3240    case $cross_compiling:$ac_tool_warned in
3241yes:)
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244ac_tool_warned=yes ;;
3245esac
3246    CC=$ac_ct_CC
3247  fi
3248fi
3249
3250fi
3251
3252
3253test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255as_fn_error "no acceptable C compiler found in \$PATH
3256See \`config.log' for more details." "$LINENO" 5; }
3257
3258# Provide some information about the compiler.
3259$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3260set X $ac_compile
3261ac_compiler=$2
3262for ac_option in --version -v -V -qversion; do
3263  { { ac_try="$ac_compiler $ac_option >&5"
3264case "(($ac_try" in
3265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266  *) ac_try_echo=$ac_try;;
3267esac
3268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269$as_echo "$ac_try_echo"; } >&5
3270  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3271  ac_status=$?
3272  if test -s conftest.err; then
3273    sed '10a\
3274... rest of stderr output deleted ...
3275         10q' conftest.err >conftest.er1
3276    cat conftest.er1 >&5
3277    rm -f conftest.er1 conftest.err
3278  fi
3279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280  test $ac_status = 0; }
3281done
3282
3283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284/* end confdefs.h.  */
3285
3286int
3287main ()
3288{
3289
3290  ;
3291  return 0;
3292}
3293_ACEOF
3294ac_clean_files_save=$ac_clean_files
3295ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3296# Try to create an executable without -o first, disregard a.out.
3297# It will help us diagnose broken compilers, and finding out an intuition
3298# of exeext.
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3300$as_echo_n "checking for C compiler default output file name... " >&6; }
3301ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3302
3303# The possible output files:
3304ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3305
3306ac_rmfiles=
3307for ac_file in $ac_files
3308do
3309  case $ac_file in
3310    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3311    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3312  esac
3313done
3314rm -f $ac_rmfiles
3315
3316if { { ac_try="$ac_link_default"
3317case "(($ac_try" in
3318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319  *) ac_try_echo=$ac_try;;
3320esac
3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322$as_echo "$ac_try_echo"; } >&5
3323  (eval "$ac_link_default") 2>&5
3324  ac_status=$?
3325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326  test $ac_status = 0; }; then :
3327  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3328# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3329# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3330# so that the user can short-circuit this test for compilers unknown to
3331# Autoconf.
3332for ac_file in $ac_files ''
3333do
3334  test -f "$ac_file" || continue
3335  case $ac_file in
3336    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3337	;;
3338    [ab].out )
3339	# We found the default executable, but exeext='' is most
3340	# certainly right.
3341	break;;
3342    *.* )
3343	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3344	then :; else
3345	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3346	fi
3347	# We set ac_cv_exeext here because the later test for it is not
3348	# safe: cross compilers may not add the suffix if given an `-o'
3349	# argument, so we may need to know it at that point already.
3350	# Even if this section looks crufty: it has the advantage of
3351	# actually working.
3352	break;;
3353    * )
3354	break;;
3355  esac
3356done
3357test "$ac_cv_exeext" = no && ac_cv_exeext=
3358
3359else
3360  ac_file=''
3361fi
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3363$as_echo "$ac_file" >&6; }
3364if test -z "$ac_file"; then :
3365  $as_echo "$as_me: failed program was:" >&5
3366sed 's/^/| /' conftest.$ac_ext >&5
3367
3368{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370{ as_fn_set_status 77
3371as_fn_error "C compiler cannot create executables
3372See \`config.log' for more details." "$LINENO" 5; }; }
3373fi
3374ac_exeext=$ac_cv_exeext
3375
3376# Check that the compiler produces executables we can run.  If not, either
3377# the compiler is broken, or we cross compile.
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3379$as_echo_n "checking whether the C compiler works... " >&6; }
3380# If not cross compiling, check that we can run a simple program.
3381if test "$cross_compiling" != yes; then
3382  if { ac_try='./$ac_file'
3383  { { case "(($ac_try" in
3384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385  *) ac_try_echo=$ac_try;;
3386esac
3387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388$as_echo "$ac_try_echo"; } >&5
3389  (eval "$ac_try") 2>&5
3390  ac_status=$?
3391  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392  test $ac_status = 0; }; }; then
3393    cross_compiling=no
3394  else
3395    if test "$cross_compiling" = maybe; then
3396	cross_compiling=yes
3397    else
3398	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400as_fn_error "cannot run C compiled programs.
3401If you meant to cross compile, use \`--host'.
3402See \`config.log' for more details." "$LINENO" 5; }
3403    fi
3404  fi
3405fi
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3407$as_echo "yes" >&6; }
3408
3409rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3410ac_clean_files=$ac_clean_files_save
3411# Check that the compiler produces executables we can run.  If not, either
3412# the compiler is broken, or we cross compile.
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3414$as_echo_n "checking whether we are cross compiling... " >&6; }
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3416$as_echo "$cross_compiling" >&6; }
3417
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3419$as_echo_n "checking for suffix of executables... " >&6; }
3420if { { ac_try="$ac_link"
3421case "(($ac_try" in
3422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423  *) ac_try_echo=$ac_try;;
3424esac
3425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426$as_echo "$ac_try_echo"; } >&5
3427  (eval "$ac_link") 2>&5
3428  ac_status=$?
3429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430  test $ac_status = 0; }; then :
3431  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3432# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3433# work properly (i.e., refer to `conftest.exe'), while it won't with
3434# `rm'.
3435for ac_file in conftest.exe conftest conftest.*; do
3436  test -f "$ac_file" || continue
3437  case $ac_file in
3438    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3439    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3440	  break;;
3441    * ) break;;
3442  esac
3443done
3444else
3445  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447as_fn_error "cannot compute suffix of executables: cannot compile and link
3448See \`config.log' for more details." "$LINENO" 5; }
3449fi
3450rm -f conftest$ac_cv_exeext
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3452$as_echo "$ac_cv_exeext" >&6; }
3453
3454rm -f conftest.$ac_ext
3455EXEEXT=$ac_cv_exeext
3456ac_exeext=$EXEEXT
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3458$as_echo_n "checking for suffix of object files... " >&6; }
3459if test "${ac_cv_objext+set}" = set; then :
3460  $as_echo_n "(cached) " >&6
3461else
3462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463/* end confdefs.h.  */
3464
3465int
3466main ()
3467{
3468
3469  ;
3470  return 0;
3471}
3472_ACEOF
3473rm -f conftest.o conftest.obj
3474if { { ac_try="$ac_compile"
3475case "(($ac_try" in
3476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477  *) ac_try_echo=$ac_try;;
3478esac
3479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480$as_echo "$ac_try_echo"; } >&5
3481  (eval "$ac_compile") 2>&5
3482  ac_status=$?
3483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484  test $ac_status = 0; }; then :
3485  for ac_file in conftest.o conftest.obj conftest.*; do
3486  test -f "$ac_file" || continue;
3487  case $ac_file in
3488    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3489    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3490       break;;
3491  esac
3492done
3493else
3494  $as_echo "$as_me: failed program was:" >&5
3495sed 's/^/| /' conftest.$ac_ext >&5
3496
3497{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499as_fn_error "cannot compute suffix of object files: cannot compile
3500See \`config.log' for more details." "$LINENO" 5; }
3501fi
3502rm -f conftest.$ac_cv_objext conftest.$ac_ext
3503fi
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3505$as_echo "$ac_cv_objext" >&6; }
3506OBJEXT=$ac_cv_objext
3507ac_objext=$OBJEXT
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3509$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3510if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3511  $as_echo_n "(cached) " >&6
3512else
3513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514/* end confdefs.h.  */
3515
3516int
3517main ()
3518{
3519#ifndef __GNUC__
3520       choke me
3521#endif
3522
3523  ;
3524  return 0;
3525}
3526_ACEOF
3527if ac_fn_c_try_compile "$LINENO"; then :
3528  ac_compiler_gnu=yes
3529else
3530  ac_compiler_gnu=no
3531fi
3532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533ac_cv_c_compiler_gnu=$ac_compiler_gnu
3534
3535fi
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3537$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3538if test $ac_compiler_gnu = yes; then
3539  GCC=yes
3540else
3541  GCC=
3542fi
3543ac_test_CFLAGS=${CFLAGS+set}
3544ac_save_CFLAGS=$CFLAGS
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3546$as_echo_n "checking whether $CC accepts -g... " >&6; }
3547if test "${ac_cv_prog_cc_g+set}" = set; then :
3548  $as_echo_n "(cached) " >&6
3549else
3550  ac_save_c_werror_flag=$ac_c_werror_flag
3551   ac_c_werror_flag=yes
3552   ac_cv_prog_cc_g=no
3553   CFLAGS="-g"
3554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555/* end confdefs.h.  */
3556
3557int
3558main ()
3559{
3560
3561  ;
3562  return 0;
3563}
3564_ACEOF
3565if ac_fn_c_try_compile "$LINENO"; then :
3566  ac_cv_prog_cc_g=yes
3567else
3568  CFLAGS=""
3569      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570/* end confdefs.h.  */
3571
3572int
3573main ()
3574{
3575
3576  ;
3577  return 0;
3578}
3579_ACEOF
3580if ac_fn_c_try_compile "$LINENO"; then :
3581
3582else
3583  ac_c_werror_flag=$ac_save_c_werror_flag
3584	 CFLAGS="-g"
3585	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586/* end confdefs.h.  */
3587
3588int
3589main ()
3590{
3591
3592  ;
3593  return 0;
3594}
3595_ACEOF
3596if ac_fn_c_try_compile "$LINENO"; then :
3597  ac_cv_prog_cc_g=yes
3598fi
3599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600fi
3601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602fi
3603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604   ac_c_werror_flag=$ac_save_c_werror_flag
3605fi
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3607$as_echo "$ac_cv_prog_cc_g" >&6; }
3608if test "$ac_test_CFLAGS" = set; then
3609  CFLAGS=$ac_save_CFLAGS
3610elif test $ac_cv_prog_cc_g = yes; then
3611  if test "$GCC" = yes; then
3612    CFLAGS="-g -O2"
3613  else
3614    CFLAGS="-g"
3615  fi
3616else
3617  if test "$GCC" = yes; then
3618    CFLAGS="-O2"
3619  else
3620    CFLAGS=
3621  fi
3622fi
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3624$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3625if test "${ac_cv_prog_cc_c89+set}" = set; then :
3626  $as_echo_n "(cached) " >&6
3627else
3628  ac_cv_prog_cc_c89=no
3629ac_save_CC=$CC
3630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631/* end confdefs.h.  */
3632#include <stdarg.h>
3633#include <stdio.h>
3634#include <sys/types.h>
3635#include <sys/stat.h>
3636/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3637struct buf { int x; };
3638FILE * (*rcsopen) (struct buf *, struct stat *, int);
3639static char *e (p, i)
3640     char **p;
3641     int i;
3642{
3643  return p[i];
3644}
3645static char *f (char * (*g) (char **, int), char **p, ...)
3646{
3647  char *s;
3648  va_list v;
3649  va_start (v,p);
3650  s = g (p, va_arg (v,int));
3651  va_end (v);
3652  return s;
3653}
3654
3655/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3656   function prototypes and stuff, but not '\xHH' hex character constants.
3657   These don't provoke an error unfortunately, instead are silently treated
3658   as 'x'.  The following induces an error, until -std is added to get
3659   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3660   array size at least.  It's necessary to write '\x00'==0 to get something
3661   that's true only with -std.  */
3662int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3663
3664/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3665   inside strings and character constants.  */
3666#define FOO(x) 'x'
3667int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3668
3669int test (int i, double x);
3670struct s1 {int (*f) (int a);};
3671struct s2 {int (*f) (double a);};
3672int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3673int argc;
3674char **argv;
3675int
3676main ()
3677{
3678return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3679  ;
3680  return 0;
3681}
3682_ACEOF
3683for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3684	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3685do
3686  CC="$ac_save_CC $ac_arg"
3687  if ac_fn_c_try_compile "$LINENO"; then :
3688  ac_cv_prog_cc_c89=$ac_arg
3689fi
3690rm -f core conftest.err conftest.$ac_objext
3691  test "x$ac_cv_prog_cc_c89" != "xno" && break
3692done
3693rm -f conftest.$ac_ext
3694CC=$ac_save_CC
3695
3696fi
3697# AC_CACHE_VAL
3698case "x$ac_cv_prog_cc_c89" in
3699  x)
3700    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3701$as_echo "none needed" >&6; } ;;
3702  xno)
3703    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3704$as_echo "unsupported" >&6; } ;;
3705  *)
3706    CC="$CC $ac_cv_prog_cc_c89"
3707    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3708$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3709esac
3710if test "x$ac_cv_prog_cc_c89" != xno; then :
3711
3712fi
3713
3714ac_ext=c
3715ac_cpp='$CPP $CPPFLAGS'
3716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719DEPDIR="${am__leading_dot}deps"
3720
3721ac_config_commands="$ac_config_commands depfiles"
3722
3723
3724am_make=${MAKE-make}
3725cat > confinc << 'END'
3726am__doit:
3727	@echo this is the am__doit target
3728.PHONY: am__doit
3729END
3730# If we don't find an include directive, just comment out the code.
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3732$as_echo_n "checking for style of include used by $am_make... " >&6; }
3733am__include="#"
3734am__quote=
3735_am_result=none
3736# First try GNU make style include.
3737echo "include confinc" > confmf
3738# Ignore all kinds of additional output from `make'.
3739case `$am_make -s -f confmf 2> /dev/null` in #(
3740*the\ am__doit\ target*)
3741  am__include=include
3742  am__quote=
3743  _am_result=GNU
3744  ;;
3745esac
3746# Now try BSD make style include.
3747if test "$am__include" = "#"; then
3748   echo '.include "confinc"' > confmf
3749   case `$am_make -s -f confmf 2> /dev/null` in #(
3750   *the\ am__doit\ target*)
3751     am__include=.include
3752     am__quote="\""
3753     _am_result=BSD
3754     ;;
3755   esac
3756fi
3757
3758
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3760$as_echo "$_am_result" >&6; }
3761rm -f confinc confmf
3762
3763# Check whether --enable-dependency-tracking was given.
3764if test "${enable_dependency_tracking+set}" = set; then :
3765  enableval=$enable_dependency_tracking;
3766fi
3767
3768if test "x$enable_dependency_tracking" != xno; then
3769  am_depcomp="$ac_aux_dir/depcomp"
3770  AMDEPBACKSLASH='\'
3771fi
3772 if test "x$enable_dependency_tracking" != xno; then
3773  AMDEP_TRUE=
3774  AMDEP_FALSE='#'
3775else
3776  AMDEP_TRUE='#'
3777  AMDEP_FALSE=
3778fi
3779
3780
3781
3782depcc="$CC"   am_compiler_list=
3783
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3785$as_echo_n "checking dependency style of $depcc... " >&6; }
3786if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3787  $as_echo_n "(cached) " >&6
3788else
3789  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3790  # We make a subdir and do the tests there.  Otherwise we can end up
3791  # making bogus files that we don't know about and never remove.  For
3792  # instance it was reported that on HP-UX the gcc test will end up
3793  # making a dummy file named `D' -- because `-MD' means `put the output
3794  # in D'.
3795  mkdir conftest.dir
3796  # Copy depcomp to subdir because otherwise we won't find it if we're
3797  # using a relative directory.
3798  cp "$am_depcomp" conftest.dir
3799  cd conftest.dir
3800  # We will build objects and dependencies in a subdirectory because
3801  # it helps to detect inapplicable dependency modes.  For instance
3802  # both Tru64's cc and ICC support -MD to output dependencies as a
3803  # side effect of compilation, but ICC will put the dependencies in
3804  # the current directory while Tru64 will put them in the object
3805  # directory.
3806  mkdir sub
3807
3808  am_cv_CC_dependencies_compiler_type=none
3809  if test "$am_compiler_list" = ""; then
3810     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3811  fi
3812  am__universal=false
3813  case " $depcc " in #(
3814     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3815     esac
3816
3817  for depmode in $am_compiler_list; do
3818    # Setup a source with many dependencies, because some compilers
3819    # like to wrap large dependency lists on column 80 (with \), and
3820    # we should not choose a depcomp mode which is confused by this.
3821    #
3822    # We need to recreate these files for each test, as the compiler may
3823    # overwrite some of them when testing with obscure command lines.
3824    # This happens at least with the AIX C compiler.
3825    : > sub/conftest.c
3826    for i in 1 2 3 4 5 6; do
3827      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3828      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3829      # Solaris 8's {/usr,}/bin/sh.
3830      touch sub/conftst$i.h
3831    done
3832    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3833
3834    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3835    # mode.  It turns out that the SunPro C++ compiler does not properly
3836    # handle `-M -o', and we need to detect this.  Also, some Intel
3837    # versions had trouble with output in subdirs
3838    am__obj=sub/conftest.${OBJEXT-o}
3839    am__minus_obj="-o $am__obj"
3840    case $depmode in
3841    gcc)
3842      # This depmode causes a compiler race in universal mode.
3843      test "$am__universal" = false || continue
3844      ;;
3845    nosideeffect)
3846      # after this tag, mechanisms are not by side-effect, so they'll
3847      # only be used when explicitly requested
3848      if test "x$enable_dependency_tracking" = xyes; then
3849	continue
3850      else
3851	break
3852      fi
3853      ;;
3854    msvisualcpp | msvcmsys)
3855      # This compiler won't grok `-c -o', but also, the minuso test has
3856      # not run yet.  These depmodes are late enough in the game, and
3857      # so weak that their functioning should not be impacted.
3858      am__obj=conftest.${OBJEXT-o}
3859      am__minus_obj=
3860      ;;
3861    none) break ;;
3862    esac
3863    if depmode=$depmode \
3864       source=sub/conftest.c object=$am__obj \
3865       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3866       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3867         >/dev/null 2>conftest.err &&
3868       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3869       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3870       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3871       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3872      # icc doesn't choke on unknown options, it will just issue warnings
3873      # or remarks (even with -Werror).  So we grep stderr for any message
3874      # that says an option was ignored or not supported.
3875      # When given -MP, icc 7.0 and 7.1 complain thusly:
3876      #   icc: Command line warning: ignoring option '-M'; no argument required
3877      # The diagnosis changed in icc 8.0:
3878      #   icc: Command line remark: option '-MP' not supported
3879      if (grep 'ignoring option' conftest.err ||
3880          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3881        am_cv_CC_dependencies_compiler_type=$depmode
3882        break
3883      fi
3884    fi
3885  done
3886
3887  cd ..
3888  rm -rf conftest.dir
3889else
3890  am_cv_CC_dependencies_compiler_type=none
3891fi
3892
3893fi
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3895$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3896CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3897
3898 if
3899  test "x$enable_dependency_tracking" != xno \
3900  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3901  am__fastdepCC_TRUE=
3902  am__fastdepCC_FALSE='#'
3903else
3904  am__fastdepCC_TRUE='#'
3905  am__fastdepCC_FALSE=
3906fi
3907
3908
3909
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3911$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3912if test "${ac_cv_c_const+set}" = set; then :
3913  $as_echo_n "(cached) " >&6
3914else
3915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916/* end confdefs.h.  */
3917
3918int
3919main ()
3920{
3921/* FIXME: Include the comments suggested by Paul. */
3922#ifndef __cplusplus
3923  /* Ultrix mips cc rejects this.  */
3924  typedef int charset[2];
3925  const charset cs;
3926  /* SunOS 4.1.1 cc rejects this.  */
3927  char const *const *pcpcc;
3928  char **ppc;
3929  /* NEC SVR4.0.2 mips cc rejects this.  */
3930  struct point {int x, y;};
3931  static struct point const zero = {0,0};
3932  /* AIX XL C 1.02.0.0 rejects this.
3933     It does not let you subtract one const X* pointer from another in
3934     an arm of an if-expression whose if-part is not a constant
3935     expression */
3936  const char *g = "string";
3937  pcpcc = &g + (g ? g-g : 0);
3938  /* HPUX 7.0 cc rejects these. */
3939  ++pcpcc;
3940  ppc = (char**) pcpcc;
3941  pcpcc = (char const *const *) ppc;
3942  { /* SCO 3.2v4 cc rejects this.  */
3943    char *t;
3944    char const *s = 0 ? (char *) 0 : (char const *) 0;
3945
3946    *t++ = 0;
3947    if (s) return 0;
3948  }
3949  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3950    int x[] = {25, 17};
3951    const int *foo = &x[0];
3952    ++foo;
3953  }
3954  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3955    typedef const int *iptr;
3956    iptr p = 0;
3957    ++p;
3958  }
3959  { /* AIX XL C 1.02.0.0 rejects this saying
3960       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3961    struct s { int j; const int *ap[3]; };
3962    struct s *b; b->j = 5;
3963  }
3964  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3965    const int foo = 10;
3966    if (!foo) return 0;
3967  }
3968  return !cs[0] && !zero.x;
3969#endif
3970
3971  ;
3972  return 0;
3973}
3974_ACEOF
3975if ac_fn_c_try_compile "$LINENO"; then :
3976  ac_cv_c_const=yes
3977else
3978  ac_cv_c_const=no
3979fi
3980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981fi
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3983$as_echo "$ac_cv_c_const" >&6; }
3984if test $ac_cv_c_const = no; then
3985
3986$as_echo "#define const /**/" >>confdefs.h
3987
3988fi
3989
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3991$as_echo_n "checking for inline... " >&6; }
3992if test "${ac_cv_c_inline+set}" = set; then :
3993  $as_echo_n "(cached) " >&6
3994else
3995  ac_cv_c_inline=no
3996for ac_kw in inline __inline__ __inline; do
3997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998/* end confdefs.h.  */
3999#ifndef __cplusplus
4000typedef int foo_t;
4001static $ac_kw foo_t static_foo () {return 0; }
4002$ac_kw foo_t foo () {return 0; }
4003#endif
4004
4005_ACEOF
4006if ac_fn_c_try_compile "$LINENO"; then :
4007  ac_cv_c_inline=$ac_kw
4008fi
4009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010  test "$ac_cv_c_inline" != no && break
4011done
4012
4013fi
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4015$as_echo "$ac_cv_c_inline" >&6; }
4016
4017case $ac_cv_c_inline in
4018  inline | yes) ;;
4019  *)
4020    case $ac_cv_c_inline in
4021      no) ac_val=;;
4022      *) ac_val=$ac_cv_c_inline;;
4023    esac
4024    cat >>confdefs.h <<_ACEOF
4025#ifndef __cplusplus
4026#define inline $ac_val
4027#endif
4028_ACEOF
4029    ;;
4030esac
4031
4032
4033
4034## ----------------------- ##
4035## Libtool initialisation. ##
4036## ----------------------- ##
4037
4038
4039# Check whether --enable-shared was given.
4040if test "${enable_shared+set}" = set; then :
4041  enableval=$enable_shared; p=${PACKAGE-default}
4042    case $enableval in
4043    yes) enable_shared=yes ;;
4044    no) enable_shared=no ;;
4045    *)
4046      enable_shared=no
4047      # Look at the argument we got.  We use all the common list separators.
4048      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4049      for pkg in $enableval; do
4050	IFS="$lt_save_ifs"
4051	if test "X$pkg" = "X$p"; then
4052	  enable_shared=yes
4053	fi
4054      done
4055      IFS="$lt_save_ifs"
4056      ;;
4057    esac
4058else
4059  enable_shared=yes
4060fi
4061
4062
4063# Check whether --enable-static was given.
4064if test "${enable_static+set}" = set; then :
4065  enableval=$enable_static; p=${PACKAGE-default}
4066    case $enableval in
4067    yes) enable_static=yes ;;
4068    no) enable_static=no ;;
4069    *)
4070     enable_static=no
4071      # Look at the argument we got.  We use all the common list separators.
4072      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4073      for pkg in $enableval; do
4074	IFS="$lt_save_ifs"
4075	if test "X$pkg" = "X$p"; then
4076	  enable_static=yes
4077	fi
4078      done
4079      IFS="$lt_save_ifs"
4080      ;;
4081    esac
4082else
4083  enable_static=yes
4084fi
4085
4086
4087# Check whether --enable-fast-install was given.
4088if test "${enable_fast_install+set}" = set; then :
4089  enableval=$enable_fast_install; p=${PACKAGE-default}
4090    case $enableval in
4091    yes) enable_fast_install=yes ;;
4092    no) enable_fast_install=no ;;
4093    *)
4094      enable_fast_install=no
4095      # Look at the argument we got.  We use all the common list separators.
4096      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4097      for pkg in $enableval; do
4098	IFS="$lt_save_ifs"
4099	if test "X$pkg" = "X$p"; then
4100	  enable_fast_install=yes
4101	fi
4102      done
4103      IFS="$lt_save_ifs"
4104      ;;
4105    esac
4106else
4107  enable_fast_install=yes
4108fi
4109
4110
4111# Make sure we can run config.sub.
4112$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4113  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4114
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4116$as_echo_n "checking build system type... " >&6; }
4117if test "${ac_cv_build+set}" = set; then :
4118  $as_echo_n "(cached) " >&6
4119else
4120  ac_build_alias=$build_alias
4121test "x$ac_build_alias" = x &&
4122  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4123test "x$ac_build_alias" = x &&
4124  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4125ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4126  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4127
4128fi
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4130$as_echo "$ac_cv_build" >&6; }
4131case $ac_cv_build in
4132*-*-*) ;;
4133*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4134esac
4135build=$ac_cv_build
4136ac_save_IFS=$IFS; IFS='-'
4137set x $ac_cv_build
4138shift
4139build_cpu=$1
4140build_vendor=$2
4141shift; shift
4142# Remember, the first character of IFS is used to create $*,
4143# except with old shells:
4144build_os=$*
4145IFS=$ac_save_IFS
4146case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4147
4148
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4150$as_echo_n "checking host system type... " >&6; }
4151if test "${ac_cv_host+set}" = set; then :
4152  $as_echo_n "(cached) " >&6
4153else
4154  if test "x$host_alias" = x; then
4155  ac_cv_host=$ac_cv_build
4156else
4157  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4158    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4159fi
4160
4161fi
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4163$as_echo "$ac_cv_host" >&6; }
4164case $ac_cv_host in
4165*-*-*) ;;
4166*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4167esac
4168host=$ac_cv_host
4169ac_save_IFS=$IFS; IFS='-'
4170set x $ac_cv_host
4171shift
4172host_cpu=$1
4173host_vendor=$2
4174shift; shift
4175# Remember, the first character of IFS is used to create $*,
4176# except with old shells:
4177host_os=$*
4178IFS=$ac_save_IFS
4179case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4180
4181
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4183$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4184if test "${lt_cv_path_SED+set}" = set; then :
4185  $as_echo_n "(cached) " >&6
4186else
4187  # Loop through the user's path and test for sed and gsed.
4188# Then use that list of sed's as ones to test for truncation.
4189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH
4191do
4192  IFS=$as_save_IFS
4193  test -z "$as_dir" && as_dir=.
4194  for lt_ac_prog in sed gsed; do
4195    for ac_exec_ext in '' $ac_executable_extensions; do
4196      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4197        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4198      fi
4199    done
4200  done
4201done
4202lt_ac_max=0
4203lt_ac_count=0
4204# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4205# along with /bin/sed that truncates output.
4206for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4207  test ! -f $lt_ac_sed && continue
4208  cat /dev/null > conftest.in
4209  lt_ac_count=0
4210  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4211  # Check for GNU sed and select it if it is found.
4212  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4213    lt_cv_path_SED=$lt_ac_sed
4214    break
4215  fi
4216  while true; do
4217    cat conftest.in conftest.in >conftest.tmp
4218    mv conftest.tmp conftest.in
4219    cp conftest.in conftest.nl
4220    echo >>conftest.nl
4221    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4222    cmp -s conftest.out conftest.nl || break
4223    # 10000 chars as input seems more than enough
4224    test $lt_ac_count -gt 10 && break
4225    lt_ac_count=`expr $lt_ac_count + 1`
4226    if test $lt_ac_count -gt $lt_ac_max; then
4227      lt_ac_max=$lt_ac_count
4228      lt_cv_path_SED=$lt_ac_sed
4229    fi
4230  done
4231done
4232
4233fi
4234
4235SED=$lt_cv_path_SED
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4237$as_echo "$SED" >&6; }
4238
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4240$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4241if test "${ac_cv_path_GREP+set}" = set; then :
4242  $as_echo_n "(cached) " >&6
4243else
4244  if test -z "$GREP"; then
4245  ac_path_GREP_found=false
4246  # Loop through the user's path and test for each of PROGNAME-LIST
4247  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4249do
4250  IFS=$as_save_IFS
4251  test -z "$as_dir" && as_dir=.
4252    for ac_prog in grep ggrep; do
4253    for ac_exec_ext in '' $ac_executable_extensions; do
4254      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4255      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4256# Check for GNU ac_path_GREP and select it if it is found.
4257  # Check for GNU $ac_path_GREP
4258case `"$ac_path_GREP" --version 2>&1` in
4259*GNU*)
4260  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4261*)
4262  ac_count=0
4263  $as_echo_n 0123456789 >"conftest.in"
4264  while :
4265  do
4266    cat "conftest.in" "conftest.in" >"conftest.tmp"
4267    mv "conftest.tmp" "conftest.in"
4268    cp "conftest.in" "conftest.nl"
4269    $as_echo 'GREP' >> "conftest.nl"
4270    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4271    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4272    as_fn_arith $ac_count + 1 && ac_count=$as_val
4273    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4274      # Best one so far, save it but keep looking for a better one
4275      ac_cv_path_GREP="$ac_path_GREP"
4276      ac_path_GREP_max=$ac_count
4277    fi
4278    # 10*(2^10) chars as input seems more than enough
4279    test $ac_count -gt 10 && break
4280  done
4281  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4282esac
4283
4284      $ac_path_GREP_found && break 3
4285    done
4286  done
4287  done
4288IFS=$as_save_IFS
4289  if test -z "$ac_cv_path_GREP"; then
4290    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4291  fi
4292else
4293  ac_cv_path_GREP=$GREP
4294fi
4295
4296fi
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4298$as_echo "$ac_cv_path_GREP" >&6; }
4299 GREP="$ac_cv_path_GREP"
4300
4301
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4303$as_echo_n "checking for egrep... " >&6; }
4304if test "${ac_cv_path_EGREP+set}" = set; then :
4305  $as_echo_n "(cached) " >&6
4306else
4307  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4308   then ac_cv_path_EGREP="$GREP -E"
4309   else
4310     if test -z "$EGREP"; then
4311  ac_path_EGREP_found=false
4312  # Loop through the user's path and test for each of PROGNAME-LIST
4313  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4315do
4316  IFS=$as_save_IFS
4317  test -z "$as_dir" && as_dir=.
4318    for ac_prog in egrep; do
4319    for ac_exec_ext in '' $ac_executable_extensions; do
4320      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4321      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4322# Check for GNU ac_path_EGREP and select it if it is found.
4323  # Check for GNU $ac_path_EGREP
4324case `"$ac_path_EGREP" --version 2>&1` in
4325*GNU*)
4326  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4327*)
4328  ac_count=0
4329  $as_echo_n 0123456789 >"conftest.in"
4330  while :
4331  do
4332    cat "conftest.in" "conftest.in" >"conftest.tmp"
4333    mv "conftest.tmp" "conftest.in"
4334    cp "conftest.in" "conftest.nl"
4335    $as_echo 'EGREP' >> "conftest.nl"
4336    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4337    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4338    as_fn_arith $ac_count + 1 && ac_count=$as_val
4339    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4340      # Best one so far, save it but keep looking for a better one
4341      ac_cv_path_EGREP="$ac_path_EGREP"
4342      ac_path_EGREP_max=$ac_count
4343    fi
4344    # 10*(2^10) chars as input seems more than enough
4345    test $ac_count -gt 10 && break
4346  done
4347  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4348esac
4349
4350      $ac_path_EGREP_found && break 3
4351    done
4352  done
4353  done
4354IFS=$as_save_IFS
4355  if test -z "$ac_cv_path_EGREP"; then
4356    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4357  fi
4358else
4359  ac_cv_path_EGREP=$EGREP
4360fi
4361
4362   fi
4363fi
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4365$as_echo "$ac_cv_path_EGREP" >&6; }
4366 EGREP="$ac_cv_path_EGREP"
4367
4368
4369
4370# Check whether --with-gnu-ld was given.
4371if test "${with_gnu_ld+set}" = set; then :
4372  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4373else
4374  with_gnu_ld=no
4375fi
4376
4377ac_prog=ld
4378if test "$GCC" = yes; then
4379  # Check if gcc -print-prog-name=ld gives a path.
4380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4381$as_echo_n "checking for ld used by $CC... " >&6; }
4382  case $host in
4383  *-*-mingw*)
4384    # gcc leaves a trailing carriage return which upsets mingw
4385    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4386  *)
4387    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4388  esac
4389  case $ac_prog in
4390    # Accept absolute paths.
4391    [\\/]* | ?:[\\/]*)
4392      re_direlt='/[^/][^/]*/\.\./'
4393      # Canonicalize the pathname of ld
4394      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4395      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4396	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4397      done
4398      test -z "$LD" && LD="$ac_prog"
4399      ;;
4400  "")
4401    # If it fails, then pretend we aren't using GCC.
4402    ac_prog=ld
4403    ;;
4404  *)
4405    # If it is relative, then search for the first ld in PATH.
4406    with_gnu_ld=unknown
4407    ;;
4408  esac
4409elif test "$with_gnu_ld" = yes; then
4410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4411$as_echo_n "checking for GNU ld... " >&6; }
4412else
4413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4414$as_echo_n "checking for non-GNU ld... " >&6; }
4415fi
4416if test "${lt_cv_path_LD+set}" = set; then :
4417  $as_echo_n "(cached) " >&6
4418else
4419  if test -z "$LD"; then
4420  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4421  for ac_dir in $PATH; do
4422    IFS="$lt_save_ifs"
4423    test -z "$ac_dir" && ac_dir=.
4424    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4425      lt_cv_path_LD="$ac_dir/$ac_prog"
4426      # Check to see if the program is GNU ld.  I'd rather use --version,
4427      # but apparently some GNU ld's only accept -v.
4428      # Break only if it was the GNU/non-GNU ld that we prefer.
4429      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4430      *GNU* | *'with BFD'*)
4431	test "$with_gnu_ld" != no && break
4432	;;
4433      *)
4434	test "$with_gnu_ld" != yes && break
4435	;;
4436      esac
4437    fi
4438  done
4439  IFS="$lt_save_ifs"
4440else
4441  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4442fi
4443fi
4444
4445LD="$lt_cv_path_LD"
4446if test -n "$LD"; then
4447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4448$as_echo "$LD" >&6; }
4449else
4450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451$as_echo "no" >&6; }
4452fi
4453test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4455$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4456if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4457  $as_echo_n "(cached) " >&6
4458else
4459  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4460case `$LD -v 2>&1 </dev/null` in
4461*GNU* | *'with BFD'*)
4462  lt_cv_prog_gnu_ld=yes
4463  ;;
4464*)
4465  lt_cv_prog_gnu_ld=no
4466  ;;
4467esac
4468fi
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4470$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4471with_gnu_ld=$lt_cv_prog_gnu_ld
4472
4473
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4475$as_echo_n "checking for $LD option to reload object files... " >&6; }
4476if test "${lt_cv_ld_reload_flag+set}" = set; then :
4477  $as_echo_n "(cached) " >&6
4478else
4479  lt_cv_ld_reload_flag='-r'
4480fi
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4482$as_echo "$lt_cv_ld_reload_flag" >&6; }
4483reload_flag=$lt_cv_ld_reload_flag
4484case $reload_flag in
4485"" | " "*) ;;
4486*) reload_flag=" $reload_flag" ;;
4487esac
4488reload_cmds='$LD$reload_flag -o $output$reload_objs'
4489case $host_os in
4490  darwin*)
4491    if test "$GCC" = yes; then
4492      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4493    else
4494      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4495    fi
4496    ;;
4497esac
4498
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4500$as_echo_n "checking for BSD-compatible nm... " >&6; }
4501if test "${lt_cv_path_NM+set}" = set; then :
4502  $as_echo_n "(cached) " >&6
4503else
4504  if test -n "$NM"; then
4505  # Let the user override the test.
4506  lt_cv_path_NM="$NM"
4507else
4508  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4509  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4510    IFS="$lt_save_ifs"
4511    test -z "$ac_dir" && ac_dir=.
4512    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4513    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4514      # Check to see if the nm accepts a BSD-compat flag.
4515      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4516      #   nm: unknown option "B" ignored
4517      # Tru64's nm complains that /dev/null is an invalid object file
4518      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4519      */dev/null* | *'Invalid file or object type'*)
4520	lt_cv_path_NM="$tmp_nm -B"
4521	break
4522        ;;
4523      *)
4524	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4525	*/dev/null*)
4526	  lt_cv_path_NM="$tmp_nm -p"
4527	  break
4528	  ;;
4529	*)
4530	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4531	  continue # so that we can try to find one that supports BSD flags
4532	  ;;
4533	esac
4534      esac
4535    fi
4536  done
4537  IFS="$lt_save_ifs"
4538  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4539fi
4540fi
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4542$as_echo "$lt_cv_path_NM" >&6; }
4543NM="$lt_cv_path_NM"
4544
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4546$as_echo_n "checking whether ln -s works... " >&6; }
4547LN_S=$as_ln_s
4548if test "$LN_S" = "ln -s"; then
4549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4550$as_echo "yes" >&6; }
4551else
4552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4553$as_echo "no, using $LN_S" >&6; }
4554fi
4555
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4557$as_echo_n "checking how to recognise dependent libraries... " >&6; }
4558if test "${lt_cv_deplibs_check_method+set}" = set; then :
4559  $as_echo_n "(cached) " >&6
4560else
4561  lt_cv_file_magic_cmd='$MAGIC_CMD'
4562lt_cv_file_magic_test_file=
4563lt_cv_deplibs_check_method='unknown'
4564# Need to set the preceding variable on all platforms that support
4565# interlibrary dependencies.
4566# 'none' -- dependencies not supported.
4567# `unknown' -- same as none, but documents that we really don't know.
4568# 'pass_all' -- all dependencies passed with no checks.
4569# 'test_compile' -- check by making test program.
4570# 'file_magic [[regex]]' -- check by looking for files in library path
4571# which responds to the $file_magic_cmd with a given extended regex.
4572# If you have `file' or equivalent on your system and you're not sure
4573# whether `pass_all' will *always* work, you probably want this one.
4574
4575case $host_os in
4576aix4* | aix5*)
4577  lt_cv_deplibs_check_method=pass_all
4578  ;;
4579
4580beos*)
4581  lt_cv_deplibs_check_method=pass_all
4582  ;;
4583
4584bsdi[45]*)
4585  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4586  lt_cv_file_magic_cmd='/usr/bin/file -L'
4587  lt_cv_file_magic_test_file=/shlib/libc.so
4588  ;;
4589
4590cygwin*)
4591  # func_win32_libid is a shell function defined in ltmain.sh
4592  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4593  lt_cv_file_magic_cmd='func_win32_libid'
4594  ;;
4595
4596mingw* | pw32*)
4597  # Base MSYS/MinGW do not provide the 'file' command needed by
4598  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4599  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4600  lt_cv_file_magic_cmd='$OBJDUMP -f'
4601  ;;
4602
4603darwin* | rhapsody*)
4604  lt_cv_deplibs_check_method=pass_all
4605  ;;
4606
4607freebsd* | kfreebsd*-gnu | dragonfly*)
4608  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4609    case $host_cpu in
4610    i*86 )
4611      # Not sure whether the presence of OpenBSD here was a mistake.
4612      # Let's accept both of them until this is cleared up.
4613      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4614      lt_cv_file_magic_cmd=/usr/bin/file
4615      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4616      ;;
4617    esac
4618  else
4619    lt_cv_deplibs_check_method=pass_all
4620  fi
4621  ;;
4622
4623gnu*)
4624  lt_cv_deplibs_check_method=pass_all
4625  ;;
4626
4627hpux10.20* | hpux11*)
4628  lt_cv_file_magic_cmd=/usr/bin/file
4629  case "$host_cpu" in
4630  ia64*)
4631    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4632    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4633    ;;
4634  hppa*64*)
4635    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4636    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4637    ;;
4638  *)
4639    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4640    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4641    ;;
4642  esac
4643  ;;
4644
4645irix5* | irix6* | nonstopux*)
4646  case $LD in
4647  *-32|*"-32 ") libmagic=32-bit;;
4648  *-n32|*"-n32 ") libmagic=N32;;
4649  *-64|*"-64 ") libmagic=64-bit;;
4650  *) libmagic=never-match;;
4651  esac
4652  lt_cv_deplibs_check_method=pass_all
4653  ;;
4654
4655# This must be Linux ELF.
4656linux*)
4657  lt_cv_deplibs_check_method=pass_all
4658  ;;
4659
4660netbsd*)
4661  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4662    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4663  else
4664    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4665  fi
4666  ;;
4667
4668newos6*)
4669  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4670  lt_cv_file_magic_cmd=/usr/bin/file
4671  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4672  ;;
4673
4674nto-qnx*)
4675  lt_cv_deplibs_check_method=unknown
4676  ;;
4677
4678openbsd*)
4679  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4680    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4681  else
4682    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4683  fi
4684  ;;
4685
4686osf3* | osf4* | osf5*)
4687  lt_cv_deplibs_check_method=pass_all
4688  ;;
4689
4690sco3.2v5*)
4691  lt_cv_deplibs_check_method=pass_all
4692  ;;
4693
4694solaris*)
4695  lt_cv_deplibs_check_method=pass_all
4696  ;;
4697
4698sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4699  case $host_vendor in
4700  motorola)
4701    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]'
4702    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4703    ;;
4704  ncr)
4705    lt_cv_deplibs_check_method=pass_all
4706    ;;
4707  sequent)
4708    lt_cv_file_magic_cmd='/bin/file'
4709    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4710    ;;
4711  sni)
4712    lt_cv_file_magic_cmd='/bin/file'
4713    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4714    lt_cv_file_magic_test_file=/lib/libc.so
4715    ;;
4716  siemens)
4717    lt_cv_deplibs_check_method=pass_all
4718    ;;
4719  esac
4720  ;;
4721
4722sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4723  lt_cv_deplibs_check_method=pass_all
4724  ;;
4725esac
4726
4727fi
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4729$as_echo "$lt_cv_deplibs_check_method" >&6; }
4730file_magic_cmd=$lt_cv_file_magic_cmd
4731deplibs_check_method=$lt_cv_deplibs_check_method
4732test -z "$deplibs_check_method" && deplibs_check_method=unknown
4733
4734
4735
4736
4737# If no C compiler was specified, use CC.
4738LTCC=${LTCC-"$CC"}
4739
4740# Allow CC to be a program name with arguments.
4741compiler=$CC
4742
4743# Check whether --enable-libtool-lock was given.
4744if test "${enable_libtool_lock+set}" = set; then :
4745  enableval=$enable_libtool_lock;
4746fi
4747
4748test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4749
4750# Some flags need to be propagated to the compiler or linker for good
4751# libtool support.
4752case $host in
4753ia64-*-hpux*)
4754  # Find out which ABI we are using.
4755  echo 'int i;' > conftest.$ac_ext
4756  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4757  (eval $ac_compile) 2>&5
4758  ac_status=$?
4759  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4760  test $ac_status = 0; }; then
4761    case `/usr/bin/file conftest.$ac_objext` in
4762    *ELF-32*)
4763      HPUX_IA64_MODE="32"
4764      ;;
4765    *ELF-64*)
4766      HPUX_IA64_MODE="64"
4767      ;;
4768    esac
4769  fi
4770  rm -rf conftest*
4771  ;;
4772*-*-irix6*)
4773  # Find out which ABI we are using.
4774  echo '#line 4774 "configure"' > conftest.$ac_ext
4775  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4776  (eval $ac_compile) 2>&5
4777  ac_status=$?
4778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4779  test $ac_status = 0; }; then
4780   if test "$lt_cv_prog_gnu_ld" = yes; then
4781    case `/usr/bin/file conftest.$ac_objext` in
4782    *32-bit*)
4783      LD="${LD-ld} -melf32bsmip"
4784      ;;
4785    *N32*)
4786      LD="${LD-ld} -melf32bmipn32"
4787      ;;
4788    *64-bit*)
4789      LD="${LD-ld} -melf64bmip"
4790      ;;
4791    esac
4792   else
4793    case `/usr/bin/file conftest.$ac_objext` in
4794    *32-bit*)
4795      LD="${LD-ld} -32"
4796      ;;
4797    *N32*)
4798      LD="${LD-ld} -n32"
4799      ;;
4800    *64-bit*)
4801      LD="${LD-ld} -64"
4802      ;;
4803    esac
4804   fi
4805  fi
4806  rm -rf conftest*
4807  ;;
4808
4809x86_64-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4810  # Find out which ABI we are using.
4811  echo 'int i;' > conftest.$ac_ext
4812  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4813  (eval $ac_compile) 2>&5
4814  ac_status=$?
4815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4816  test $ac_status = 0; }; then
4817    case "`/usr/bin/file conftest.o`" in
4818    *32-bit*)
4819      case $host in
4820        x86_64-*linux*)
4821          LD="${LD-ld} -m elf_i386"
4822          ;;
4823        powerpc64le-*linux*)
4824          LD="${LD-ld} -m elf32lppclinux"
4825          ;;
4826        powerpc64-*linux*)
4827          LD="${LD-ld} -m elf32ppclinux"
4828          ;;
4829        s390x-*linux*)
4830          LD="${LD-ld} -m elf_s390"
4831          ;;
4832        sparc64-*linux*)
4833          LD="${LD-ld} -m elf32_sparc"
4834          ;;
4835      esac
4836      ;;
4837    *64-bit*)
4838      case $host in
4839        x86_64-*linux*)
4840          LD="${LD-ld} -m elf_x86_64"
4841          ;;
4842        powerpcle-*linux*)
4843          LD="${LD-ld} -m elf64lppc"
4844          ;;
4845        powerpc-*linux*)
4846          LD="${LD-ld} -m elf64ppc"
4847          ;;
4848        s390*-*linux*)
4849          LD="${LD-ld} -m elf64_s390"
4850          ;;
4851        sparc*-*linux*)
4852          LD="${LD-ld} -m elf64_sparc"
4853          ;;
4854      esac
4855      ;;
4856    esac
4857  fi
4858  rm -rf conftest*
4859  ;;
4860
4861*-*-sco3.2v5*)
4862  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4863  SAVE_CFLAGS="$CFLAGS"
4864  CFLAGS="$CFLAGS -belf"
4865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4866$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4867if test "${lt_cv_cc_needs_belf+set}" = set; then :
4868  $as_echo_n "(cached) " >&6
4869else
4870  ac_ext=c
4871ac_cpp='$CPP $CPPFLAGS'
4872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875
4876     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877/* end confdefs.h.  */
4878
4879int
4880main ()
4881{
4882
4883  ;
4884  return 0;
4885}
4886_ACEOF
4887if ac_fn_c_try_link "$LINENO"; then :
4888  lt_cv_cc_needs_belf=yes
4889else
4890  lt_cv_cc_needs_belf=no
4891fi
4892rm -f core conftest.err conftest.$ac_objext \
4893    conftest$ac_exeext conftest.$ac_ext
4894     ac_ext=c
4895ac_cpp='$CPP $CPPFLAGS'
4896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4898ac_compiler_gnu=$ac_cv_c_compiler_gnu
4899
4900fi
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4902$as_echo "$lt_cv_cc_needs_belf" >&6; }
4903  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4904    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4905    CFLAGS="$SAVE_CFLAGS"
4906  fi
4907  ;;
4908*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4909  if test -n "$ac_tool_prefix"; then
4910  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4911set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913$as_echo_n "checking for $ac_word... " >&6; }
4914if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4915  $as_echo_n "(cached) " >&6
4916else
4917  if test -n "$DLLTOOL"; then
4918  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4919else
4920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921for as_dir in $PATH
4922do
4923  IFS=$as_save_IFS
4924  test -z "$as_dir" && as_dir=.
4925    for ac_exec_ext in '' $ac_executable_extensions; do
4926  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929    break 2
4930  fi
4931done
4932  done
4933IFS=$as_save_IFS
4934
4935fi
4936fi
4937DLLTOOL=$ac_cv_prog_DLLTOOL
4938if test -n "$DLLTOOL"; then
4939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4940$as_echo "$DLLTOOL" >&6; }
4941else
4942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943$as_echo "no" >&6; }
4944fi
4945
4946
4947fi
4948if test -z "$ac_cv_prog_DLLTOOL"; then
4949  ac_ct_DLLTOOL=$DLLTOOL
4950  # Extract the first word of "dlltool", so it can be a program name with args.
4951set dummy dlltool; ac_word=$2
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953$as_echo_n "checking for $ac_word... " >&6; }
4954if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4955  $as_echo_n "(cached) " >&6
4956else
4957  if test -n "$ac_ct_DLLTOOL"; then
4958  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4959else
4960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961for as_dir in $PATH
4962do
4963  IFS=$as_save_IFS
4964  test -z "$as_dir" && as_dir=.
4965    for ac_exec_ext in '' $ac_executable_extensions; do
4966  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969    break 2
4970  fi
4971done
4972  done
4973IFS=$as_save_IFS
4974
4975fi
4976fi
4977ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4978if test -n "$ac_ct_DLLTOOL"; then
4979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4980$as_echo "$ac_ct_DLLTOOL" >&6; }
4981else
4982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983$as_echo "no" >&6; }
4984fi
4985
4986  if test "x$ac_ct_DLLTOOL" = x; then
4987    DLLTOOL="false"
4988  else
4989    case $cross_compiling:$ac_tool_warned in
4990yes:)
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4993ac_tool_warned=yes ;;
4994esac
4995    DLLTOOL=$ac_ct_DLLTOOL
4996  fi
4997else
4998  DLLTOOL="$ac_cv_prog_DLLTOOL"
4999fi
5000
5001  if test -n "$ac_tool_prefix"; then
5002  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5003set dummy ${ac_tool_prefix}as; ac_word=$2
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005$as_echo_n "checking for $ac_word... " >&6; }
5006if test "${ac_cv_prog_AS+set}" = set; then :
5007  $as_echo_n "(cached) " >&6
5008else
5009  if test -n "$AS"; then
5010  ac_cv_prog_AS="$AS" # Let the user override the test.
5011else
5012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013for as_dir in $PATH
5014do
5015  IFS=$as_save_IFS
5016  test -z "$as_dir" && as_dir=.
5017    for ac_exec_ext in '' $ac_executable_extensions; do
5018  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019    ac_cv_prog_AS="${ac_tool_prefix}as"
5020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021    break 2
5022  fi
5023done
5024  done
5025IFS=$as_save_IFS
5026
5027fi
5028fi
5029AS=$ac_cv_prog_AS
5030if test -n "$AS"; then
5031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5032$as_echo "$AS" >&6; }
5033else
5034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035$as_echo "no" >&6; }
5036fi
5037
5038
5039fi
5040if test -z "$ac_cv_prog_AS"; then
5041  ac_ct_AS=$AS
5042  # Extract the first word of "as", so it can be a program name with args.
5043set dummy as; ac_word=$2
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045$as_echo_n "checking for $ac_word... " >&6; }
5046if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5047  $as_echo_n "(cached) " >&6
5048else
5049  if test -n "$ac_ct_AS"; then
5050  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5051else
5052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053for as_dir in $PATH
5054do
5055  IFS=$as_save_IFS
5056  test -z "$as_dir" && as_dir=.
5057    for ac_exec_ext in '' $ac_executable_extensions; do
5058  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059    ac_cv_prog_ac_ct_AS="as"
5060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061    break 2
5062  fi
5063done
5064  done
5065IFS=$as_save_IFS
5066
5067fi
5068fi
5069ac_ct_AS=$ac_cv_prog_ac_ct_AS
5070if test -n "$ac_ct_AS"; then
5071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5072$as_echo "$ac_ct_AS" >&6; }
5073else
5074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075$as_echo "no" >&6; }
5076fi
5077
5078  if test "x$ac_ct_AS" = x; then
5079    AS="false"
5080  else
5081    case $cross_compiling:$ac_tool_warned in
5082yes:)
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5085ac_tool_warned=yes ;;
5086esac
5087    AS=$ac_ct_AS
5088  fi
5089else
5090  AS="$ac_cv_prog_AS"
5091fi
5092
5093  if test -n "$ac_tool_prefix"; then
5094  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5095set dummy ${ac_tool_prefix}objdump; ac_word=$2
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097$as_echo_n "checking for $ac_word... " >&6; }
5098if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5099  $as_echo_n "(cached) " >&6
5100else
5101  if test -n "$OBJDUMP"; then
5102  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5103else
5104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105for as_dir in $PATH
5106do
5107  IFS=$as_save_IFS
5108  test -z "$as_dir" && as_dir=.
5109    for ac_exec_ext in '' $ac_executable_extensions; do
5110  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113    break 2
5114  fi
5115done
5116  done
5117IFS=$as_save_IFS
5118
5119fi
5120fi
5121OBJDUMP=$ac_cv_prog_OBJDUMP
5122if test -n "$OBJDUMP"; then
5123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5124$as_echo "$OBJDUMP" >&6; }
5125else
5126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127$as_echo "no" >&6; }
5128fi
5129
5130
5131fi
5132if test -z "$ac_cv_prog_OBJDUMP"; then
5133  ac_ct_OBJDUMP=$OBJDUMP
5134  # Extract the first word of "objdump", so it can be a program name with args.
5135set dummy objdump; ac_word=$2
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137$as_echo_n "checking for $ac_word... " >&6; }
5138if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5139  $as_echo_n "(cached) " >&6
5140else
5141  if test -n "$ac_ct_OBJDUMP"; then
5142  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5143else
5144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145for as_dir in $PATH
5146do
5147  IFS=$as_save_IFS
5148  test -z "$as_dir" && as_dir=.
5149    for ac_exec_ext in '' $ac_executable_extensions; do
5150  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153    break 2
5154  fi
5155done
5156  done
5157IFS=$as_save_IFS
5158
5159fi
5160fi
5161ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5162if test -n "$ac_ct_OBJDUMP"; then
5163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5164$as_echo "$ac_ct_OBJDUMP" >&6; }
5165else
5166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167$as_echo "no" >&6; }
5168fi
5169
5170  if test "x$ac_ct_OBJDUMP" = x; then
5171    OBJDUMP="false"
5172  else
5173    case $cross_compiling:$ac_tool_warned in
5174yes:)
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5177ac_tool_warned=yes ;;
5178esac
5179    OBJDUMP=$ac_ct_OBJDUMP
5180  fi
5181else
5182  OBJDUMP="$ac_cv_prog_OBJDUMP"
5183fi
5184
5185  ;;
5186
5187esac
5188
5189need_locks="$enable_libtool_lock"
5190
5191
5192ac_ext=c
5193ac_cpp='$CPP $CPPFLAGS'
5194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196ac_compiler_gnu=$ac_cv_c_compiler_gnu
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5198$as_echo_n "checking how to run the C preprocessor... " >&6; }
5199# On Suns, sometimes $CPP names a directory.
5200if test -n "$CPP" && test -d "$CPP"; then
5201  CPP=
5202fi
5203if test -z "$CPP"; then
5204  if test "${ac_cv_prog_CPP+set}" = set; then :
5205  $as_echo_n "(cached) " >&6
5206else
5207      # Double quotes because CPP needs to be expanded
5208    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5209    do
5210      ac_preproc_ok=false
5211for ac_c_preproc_warn_flag in '' yes
5212do
5213  # Use a header file that comes with gcc, so configuring glibc
5214  # with a fresh cross-compiler works.
5215  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5216  # <limits.h> exists even on freestanding compilers.
5217  # On the NeXT, cc -E runs the code through the compiler's parser,
5218  # not just through cpp. "Syntax error" is here to catch this case.
5219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220/* end confdefs.h.  */
5221#ifdef __STDC__
5222# include <limits.h>
5223#else
5224# include <assert.h>
5225#endif
5226		     Syntax error
5227_ACEOF
5228if ac_fn_c_try_cpp "$LINENO"; then :
5229
5230else
5231  # Broken: fails on valid input.
5232continue
5233fi
5234rm -f conftest.err conftest.$ac_ext
5235
5236  # OK, works on sane cases.  Now check whether nonexistent headers
5237  # can be detected and how.
5238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239/* end confdefs.h.  */
5240#include <ac_nonexistent.h>
5241_ACEOF
5242if ac_fn_c_try_cpp "$LINENO"; then :
5243  # Broken: success on invalid input.
5244continue
5245else
5246  # Passes both tests.
5247ac_preproc_ok=:
5248break
5249fi
5250rm -f conftest.err conftest.$ac_ext
5251
5252done
5253# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5254rm -f conftest.err conftest.$ac_ext
5255if $ac_preproc_ok; then :
5256  break
5257fi
5258
5259    done
5260    ac_cv_prog_CPP=$CPP
5261
5262fi
5263  CPP=$ac_cv_prog_CPP
5264else
5265  ac_cv_prog_CPP=$CPP
5266fi
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5268$as_echo "$CPP" >&6; }
5269ac_preproc_ok=false
5270for ac_c_preproc_warn_flag in '' yes
5271do
5272  # Use a header file that comes with gcc, so configuring glibc
5273  # with a fresh cross-compiler works.
5274  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5275  # <limits.h> exists even on freestanding compilers.
5276  # On the NeXT, cc -E runs the code through the compiler's parser,
5277  # not just through cpp. "Syntax error" is here to catch this case.
5278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279/* end confdefs.h.  */
5280#ifdef __STDC__
5281# include <limits.h>
5282#else
5283# include <assert.h>
5284#endif
5285		     Syntax error
5286_ACEOF
5287if ac_fn_c_try_cpp "$LINENO"; then :
5288
5289else
5290  # Broken: fails on valid input.
5291continue
5292fi
5293rm -f conftest.err conftest.$ac_ext
5294
5295  # OK, works on sane cases.  Now check whether nonexistent headers
5296  # can be detected and how.
5297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298/* end confdefs.h.  */
5299#include <ac_nonexistent.h>
5300_ACEOF
5301if ac_fn_c_try_cpp "$LINENO"; then :
5302  # Broken: success on invalid input.
5303continue
5304else
5305  # Passes both tests.
5306ac_preproc_ok=:
5307break
5308fi
5309rm -f conftest.err conftest.$ac_ext
5310
5311done
5312# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5313rm -f conftest.err conftest.$ac_ext
5314if $ac_preproc_ok; then :
5315
5316else
5317  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5319as_fn_error "C preprocessor \"$CPP\" fails sanity check
5320See \`config.log' for more details." "$LINENO" 5; }
5321fi
5322
5323ac_ext=c
5324ac_cpp='$CPP $CPPFLAGS'
5325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5327ac_compiler_gnu=$ac_cv_c_compiler_gnu
5328
5329
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5331$as_echo_n "checking for ANSI C header files... " >&6; }
5332if test "${ac_cv_header_stdc+set}" = set; then :
5333  $as_echo_n "(cached) " >&6
5334else
5335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336/* end confdefs.h.  */
5337#include <stdlib.h>
5338#include <stdarg.h>
5339#include <string.h>
5340#include <float.h>
5341
5342int
5343main ()
5344{
5345
5346  ;
5347  return 0;
5348}
5349_ACEOF
5350if ac_fn_c_try_compile "$LINENO"; then :
5351  ac_cv_header_stdc=yes
5352else
5353  ac_cv_header_stdc=no
5354fi
5355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356
5357if test $ac_cv_header_stdc = yes; then
5358  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360/* end confdefs.h.  */
5361#include <string.h>
5362
5363_ACEOF
5364if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5365  $EGREP "memchr" >/dev/null 2>&1; then :
5366
5367else
5368  ac_cv_header_stdc=no
5369fi
5370rm -f conftest*
5371
5372fi
5373
5374if test $ac_cv_header_stdc = yes; then
5375  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h.  */
5378#include <stdlib.h>
5379
5380_ACEOF
5381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5382  $EGREP "free" >/dev/null 2>&1; then :
5383
5384else
5385  ac_cv_header_stdc=no
5386fi
5387rm -f conftest*
5388
5389fi
5390
5391if test $ac_cv_header_stdc = yes; then
5392  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5393  if test "$cross_compiling" = yes; then :
5394  :
5395else
5396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397/* end confdefs.h.  */
5398#include <ctype.h>
5399#include <stdlib.h>
5400#if ((' ' & 0x0FF) == 0x020)
5401# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5402# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5403#else
5404# define ISLOWER(c) \
5405		   (('a' <= (c) && (c) <= 'i') \
5406		     || ('j' <= (c) && (c) <= 'r') \
5407		     || ('s' <= (c) && (c) <= 'z'))
5408# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5409#endif
5410
5411#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5412int
5413main ()
5414{
5415  int i;
5416  for (i = 0; i < 256; i++)
5417    if (XOR (islower (i), ISLOWER (i))
5418	|| toupper (i) != TOUPPER (i))
5419      return 2;
5420  return 0;
5421}
5422_ACEOF
5423if ac_fn_c_try_run "$LINENO"; then :
5424
5425else
5426  ac_cv_header_stdc=no
5427fi
5428rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5429  conftest.$ac_objext conftest.beam conftest.$ac_ext
5430fi
5431
5432fi
5433fi
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5435$as_echo "$ac_cv_header_stdc" >&6; }
5436if test $ac_cv_header_stdc = yes; then
5437
5438$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5439
5440fi
5441
5442# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5443for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5444		  inttypes.h stdint.h unistd.h
5445do :
5446  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5447ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5448"
5449eval as_val=\$$as_ac_Header
5450   if test "x$as_val" = x""yes; then :
5451  cat >>confdefs.h <<_ACEOF
5452#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5453_ACEOF
5454
5455fi
5456
5457done
5458
5459
5460for ac_header in dlfcn.h
5461do :
5462  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5463if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5464  cat >>confdefs.h <<_ACEOF
5465#define HAVE_DLFCN_H 1
5466_ACEOF
5467
5468fi
5469
5470done
5471
5472
5473# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5474
5475# find the maximum length of command line arguments
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5477$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5478if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5479  $as_echo_n "(cached) " >&6
5480else
5481    i=0
5482  teststring="ABCD"
5483
5484  case $build_os in
5485  msdosdjgpp*)
5486    # On DJGPP, this test can blow up pretty badly due to problems in libc
5487    # (any single argument exceeding 2000 bytes causes a buffer overrun
5488    # during glob expansion).  Even if it were fixed, the result of this
5489    # check would be larger than it should be.
5490    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5491    ;;
5492
5493  gnu*)
5494    # Under GNU Hurd, this test is not required because there is
5495    # no limit to the length of command line arguments.
5496    # Libtool will interpret -1 as no limit whatsoever
5497    lt_cv_sys_max_cmd_len=-1;
5498    ;;
5499
5500  cygwin* | mingw*)
5501    # On Win9x/ME, this test blows up -- it succeeds, but takes
5502    # about 5 minutes as the teststring grows exponentially.
5503    # Worse, since 9x/ME are not pre-emptively multitasking,
5504    # you end up with a "frozen" computer, even though with patience
5505    # the test eventually succeeds (with a max line length of 256k).
5506    # Instead, let's just punt: use the minimum linelength reported by
5507    # all of the supported platforms: 8192 (on NT/2K/XP).
5508    lt_cv_sys_max_cmd_len=8192;
5509    ;;
5510
5511  amigaos*)
5512    # On AmigaOS with pdksh, this test takes hours, literally.
5513    # So we just punt and use a minimum line length of 8192.
5514    lt_cv_sys_max_cmd_len=8192;
5515    ;;
5516
5517  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5518    # This has been around since 386BSD, at least.  Likely further.
5519    if test -x /sbin/sysctl; then
5520      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5521    elif test -x /usr/sbin/sysctl; then
5522      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5523    else
5524      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5525    fi
5526    # And add a safety zone
5527    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5528    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5529    ;;
5530  osf*)
5531    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5532    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5533    # nice to cause kernel panics so lets avoid the loop below.
5534    # First set a reasonable default.
5535    lt_cv_sys_max_cmd_len=16384
5536    #
5537    if test -x /sbin/sysconfig; then
5538      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5539        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5540      esac
5541    fi
5542    ;;
5543  *)
5544    # If test is not a shell built-in, we'll probably end up computing a
5545    # maximum length that is only half of the actual maximum length, but
5546    # we can't tell.
5547    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5548    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5549	       = "XX$teststring") >/dev/null 2>&1 &&
5550	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5551	    lt_cv_sys_max_cmd_len=$new_result &&
5552	    test $i != 17 # 1/2 MB should be enough
5553    do
5554      i=`expr $i + 1`
5555      teststring=$teststring$teststring
5556    done
5557    teststring=
5558    # Add a significant safety factor because C++ compilers can tack on massive
5559    # amounts of additional arguments before passing them to the linker.
5560    # It appears as though 1/2 is a usable value.
5561    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5562    ;;
5563  esac
5564
5565fi
5566
5567if test -n $lt_cv_sys_max_cmd_len ; then
5568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5569$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5570else
5571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5572$as_echo "none" >&6; }
5573fi
5574
5575
5576
5577
5578# Check for command to grab the raw symbol name followed by C symbol from nm.
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5580$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5581if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5582  $as_echo_n "(cached) " >&6
5583else
5584
5585# These are sane defaults that work on at least a few old systems.
5586# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5587
5588# Character class describing NM global symbol codes.
5589symcode='[BCDEGRST]'
5590
5591# Regexp to match symbols that can be accessed directly from C.
5592sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5593
5594# Transform an extracted symbol line into a proper C declaration
5595lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5596
5597# Transform an extracted symbol line into symbol name and symbol address
5598lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5599
5600# Define system-specific variables.
5601case $host_os in
5602aix*)
5603  symcode='[BCDT]'
5604  ;;
5605cygwin* | mingw* | pw32*)
5606  symcode='[ABCDGISTW]'
5607  ;;
5608hpux*) # Its linker distinguishes data from code symbols
5609  if test "$host_cpu" = ia64; then
5610    symcode='[ABCDEGRST]'
5611  fi
5612  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5613  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5614  ;;
5615linux*)
5616  if test "$host_cpu" = ia64; then
5617    symcode='[ABCDGIRSTW]'
5618    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5619    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5620  fi
5621  ;;
5622irix* | nonstopux*)
5623  symcode='[BCDEGRST]'
5624  ;;
5625osf*)
5626  symcode='[BCDEGQRST]'
5627  ;;
5628solaris* | sysv5*)
5629  symcode='[BDRT]'
5630  ;;
5631sysv4)
5632  symcode='[DFNSTU]'
5633  ;;
5634esac
5635
5636# Handle CRLF in mingw tool chain
5637opt_cr=
5638case $build_os in
5639mingw*)
5640  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5641  ;;
5642esac
5643
5644# If we're using GNU nm, then use its standard symbol codes.
5645case `$NM -V 2>&1` in
5646*GNU* | *'with BFD'*)
5647  symcode='[ABCDGIRSTW]' ;;
5648esac
5649
5650# Try without a prefix undercore, then with it.
5651for ac_symprfx in "" "_"; do
5652
5653  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5654  symxfrm="\\1 $ac_symprfx\\2 \\2"
5655
5656  # Write the raw and C identifiers.
5657  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5658
5659  # Check to see that the pipe works correctly.
5660  pipe_works=no
5661
5662  rm -f conftest*
5663  cat > conftest.$ac_ext <<EOF
5664#ifdef __cplusplus
5665extern "C" {
5666#endif
5667char nm_test_var;
5668void nm_test_func(){}
5669#ifdef __cplusplus
5670}
5671#endif
5672int main(){nm_test_var='a';nm_test_func();return(0);}
5673EOF
5674
5675  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5676  (eval $ac_compile) 2>&5
5677  ac_status=$?
5678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5679  test $ac_status = 0; }; then
5680    # Now try to grab the symbols.
5681    nlist=conftest.nm
5682    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5683  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5684  ac_status=$?
5685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5686  test $ac_status = 0; } && test -s "$nlist"; then
5687      # Try sorting and uniquifying the output.
5688      if sort "$nlist" | uniq > "$nlist"T; then
5689	mv -f "$nlist"T "$nlist"
5690      else
5691	rm -f "$nlist"T
5692      fi
5693
5694      # Make sure that we snagged all the symbols we need.
5695      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5696	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5697	  cat <<EOF > conftest.$ac_ext
5698#ifdef __cplusplus
5699extern "C" {
5700#endif
5701
5702EOF
5703	  # Now generate the symbol file.
5704	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5705
5706	  cat <<EOF >> conftest.$ac_ext
5707#if defined (__STDC__) && __STDC__
5708# define lt_ptr_t void *
5709#else
5710# define lt_ptr_t char *
5711# define const
5712#endif
5713
5714/* The mapping between symbol names and symbols. */
5715const struct {
5716  const char *name;
5717  lt_ptr_t address;
5718}
5719lt_preloaded_symbols[] =
5720{
5721EOF
5722	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5723	  cat <<\EOF >> conftest.$ac_ext
5724  {0, (lt_ptr_t) 0}
5725};
5726
5727#ifdef __cplusplus
5728}
5729#endif
5730EOF
5731	  # Now try linking the two files.
5732	  mv conftest.$ac_objext conftstm.$ac_objext
5733	  lt_save_LIBS="$LIBS"
5734	  lt_save_CFLAGS="$CFLAGS"
5735	  LIBS="conftstm.$ac_objext"
5736	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5737	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5738  (eval $ac_link) 2>&5
5739  ac_status=$?
5740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5741  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5742	    pipe_works=yes
5743	  fi
5744	  LIBS="$lt_save_LIBS"
5745	  CFLAGS="$lt_save_CFLAGS"
5746	else
5747	  echo "cannot find nm_test_func in $nlist" >&5
5748	fi
5749      else
5750	echo "cannot find nm_test_var in $nlist" >&5
5751      fi
5752    else
5753      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5754    fi
5755  else
5756    echo "$progname: failed program was:" >&5
5757    cat conftest.$ac_ext >&5
5758  fi
5759  rm -f conftest* conftst*
5760
5761  # Do not use the global_symbol_pipe unless it works.
5762  if test "$pipe_works" = yes; then
5763    break
5764  else
5765    lt_cv_sys_global_symbol_pipe=
5766  fi
5767done
5768
5769fi
5770
5771if test -z "$lt_cv_sys_global_symbol_pipe"; then
5772  lt_cv_sys_global_symbol_to_cdecl=
5773fi
5774if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5776$as_echo "failed" >&6; }
5777else
5778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5779$as_echo "ok" >&6; }
5780fi
5781
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5783$as_echo_n "checking for objdir... " >&6; }
5784if test "${lt_cv_objdir+set}" = set; then :
5785  $as_echo_n "(cached) " >&6
5786else
5787  rm -f .libs 2>/dev/null
5788mkdir .libs 2>/dev/null
5789if test -d .libs; then
5790  lt_cv_objdir=.libs
5791else
5792  # MS-DOS does not allow filenames that begin with a dot.
5793  lt_cv_objdir=_libs
5794fi
5795rmdir .libs 2>/dev/null
5796fi
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5798$as_echo "$lt_cv_objdir" >&6; }
5799objdir=$lt_cv_objdir
5800
5801
5802
5803
5804
5805case $host_os in
5806aix3*)
5807  # AIX sometimes has problems with the GCC collect2 program.  For some
5808  # reason, if we set the COLLECT_NAMES environment variable, the problems
5809  # vanish in a puff of smoke.
5810  if test "X${COLLECT_NAMES+set}" != Xset; then
5811    COLLECT_NAMES=
5812    export COLLECT_NAMES
5813  fi
5814  ;;
5815esac
5816
5817# Sed substitution that helps us do robust quoting.  It backslashifies
5818# metacharacters that are still active within double-quoted strings.
5819Xsed='sed -e 1s/^X//'
5820sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5821
5822# Same as above, but do not quote variable references.
5823double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5824
5825# Sed substitution to delay expansion of an escaped shell variable in a
5826# double_quote_subst'ed string.
5827delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5828
5829# Sed substitution to avoid accidental globbing in evaled expressions
5830no_glob_subst='s/\*/\\\*/g'
5831
5832# Constants:
5833rm="rm -f"
5834
5835# Global variables:
5836default_ofile=libtool
5837can_build_shared=yes
5838
5839# All known linkers require a `.a' archive for static linking (except M$VC,
5840# which needs '.lib').
5841libext=a
5842ltmain="$ac_aux_dir/ltmain.sh"
5843ofile="$default_ofile"
5844with_gnu_ld="$lt_cv_prog_gnu_ld"
5845
5846if test -n "$ac_tool_prefix"; then
5847  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5848set dummy ${ac_tool_prefix}ar; ac_word=$2
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850$as_echo_n "checking for $ac_word... " >&6; }
5851if test "${ac_cv_prog_AR+set}" = set; then :
5852  $as_echo_n "(cached) " >&6
5853else
5854  if test -n "$AR"; then
5855  ac_cv_prog_AR="$AR" # Let the user override the test.
5856else
5857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858for as_dir in $PATH
5859do
5860  IFS=$as_save_IFS
5861  test -z "$as_dir" && as_dir=.
5862    for ac_exec_ext in '' $ac_executable_extensions; do
5863  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864    ac_cv_prog_AR="${ac_tool_prefix}ar"
5865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866    break 2
5867  fi
5868done
5869  done
5870IFS=$as_save_IFS
5871
5872fi
5873fi
5874AR=$ac_cv_prog_AR
5875if test -n "$AR"; then
5876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5877$as_echo "$AR" >&6; }
5878else
5879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880$as_echo "no" >&6; }
5881fi
5882
5883
5884fi
5885if test -z "$ac_cv_prog_AR"; then
5886  ac_ct_AR=$AR
5887  # Extract the first word of "ar", so it can be a program name with args.
5888set dummy ar; ac_word=$2
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890$as_echo_n "checking for $ac_word... " >&6; }
5891if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5892  $as_echo_n "(cached) " >&6
5893else
5894  if test -n "$ac_ct_AR"; then
5895  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5896else
5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898for as_dir in $PATH
5899do
5900  IFS=$as_save_IFS
5901  test -z "$as_dir" && as_dir=.
5902    for ac_exec_ext in '' $ac_executable_extensions; do
5903  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904    ac_cv_prog_ac_ct_AR="ar"
5905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906    break 2
5907  fi
5908done
5909  done
5910IFS=$as_save_IFS
5911
5912fi
5913fi
5914ac_ct_AR=$ac_cv_prog_ac_ct_AR
5915if test -n "$ac_ct_AR"; then
5916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5917$as_echo "$ac_ct_AR" >&6; }
5918else
5919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920$as_echo "no" >&6; }
5921fi
5922
5923  if test "x$ac_ct_AR" = x; then
5924    AR="false"
5925  else
5926    case $cross_compiling:$ac_tool_warned in
5927yes:)
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5930ac_tool_warned=yes ;;
5931esac
5932    AR=$ac_ct_AR
5933  fi
5934else
5935  AR="$ac_cv_prog_AR"
5936fi
5937
5938if test -n "$ac_tool_prefix"; then
5939  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5940set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942$as_echo_n "checking for $ac_word... " >&6; }
5943if test "${ac_cv_prog_RANLIB+set}" = set; then :
5944  $as_echo_n "(cached) " >&6
5945else
5946  if test -n "$RANLIB"; then
5947  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5948else
5949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950for as_dir in $PATH
5951do
5952  IFS=$as_save_IFS
5953  test -z "$as_dir" && as_dir=.
5954    for ac_exec_ext in '' $ac_executable_extensions; do
5955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958    break 2
5959  fi
5960done
5961  done
5962IFS=$as_save_IFS
5963
5964fi
5965fi
5966RANLIB=$ac_cv_prog_RANLIB
5967if test -n "$RANLIB"; then
5968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5969$as_echo "$RANLIB" >&6; }
5970else
5971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972$as_echo "no" >&6; }
5973fi
5974
5975
5976fi
5977if test -z "$ac_cv_prog_RANLIB"; then
5978  ac_ct_RANLIB=$RANLIB
5979  # Extract the first word of "ranlib", so it can be a program name with args.
5980set dummy ranlib; ac_word=$2
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982$as_echo_n "checking for $ac_word... " >&6; }
5983if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5984  $as_echo_n "(cached) " >&6
5985else
5986  if test -n "$ac_ct_RANLIB"; then
5987  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5988else
5989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990for as_dir in $PATH
5991do
5992  IFS=$as_save_IFS
5993  test -z "$as_dir" && as_dir=.
5994    for ac_exec_ext in '' $ac_executable_extensions; do
5995  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5996    ac_cv_prog_ac_ct_RANLIB="ranlib"
5997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5998    break 2
5999  fi
6000done
6001  done
6002IFS=$as_save_IFS
6003
6004fi
6005fi
6006ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6007if test -n "$ac_ct_RANLIB"; then
6008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6009$as_echo "$ac_ct_RANLIB" >&6; }
6010else
6011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012$as_echo "no" >&6; }
6013fi
6014
6015  if test "x$ac_ct_RANLIB" = x; then
6016    RANLIB=":"
6017  else
6018    case $cross_compiling:$ac_tool_warned in
6019yes:)
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6022ac_tool_warned=yes ;;
6023esac
6024    RANLIB=$ac_ct_RANLIB
6025  fi
6026else
6027  RANLIB="$ac_cv_prog_RANLIB"
6028fi
6029
6030if test -n "$ac_tool_prefix"; then
6031  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6032set dummy ${ac_tool_prefix}strip; ac_word=$2
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034$as_echo_n "checking for $ac_word... " >&6; }
6035if test "${ac_cv_prog_STRIP+set}" = set; then :
6036  $as_echo_n "(cached) " >&6
6037else
6038  if test -n "$STRIP"; then
6039  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044  IFS=$as_save_IFS
6045  test -z "$as_dir" && as_dir=.
6046    for ac_exec_ext in '' $ac_executable_extensions; do
6047  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050    break 2
6051  fi
6052done
6053  done
6054IFS=$as_save_IFS
6055
6056fi
6057fi
6058STRIP=$ac_cv_prog_STRIP
6059if test -n "$STRIP"; then
6060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6061$as_echo "$STRIP" >&6; }
6062else
6063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064$as_echo "no" >&6; }
6065fi
6066
6067
6068fi
6069if test -z "$ac_cv_prog_STRIP"; then
6070  ac_ct_STRIP=$STRIP
6071  # Extract the first word of "strip", so it can be a program name with args.
6072set dummy strip; ac_word=$2
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074$as_echo_n "checking for $ac_word... " >&6; }
6075if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6076  $as_echo_n "(cached) " >&6
6077else
6078  if test -n "$ac_ct_STRIP"; then
6079  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6080else
6081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082for as_dir in $PATH
6083do
6084  IFS=$as_save_IFS
6085  test -z "$as_dir" && as_dir=.
6086    for ac_exec_ext in '' $ac_executable_extensions; do
6087  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088    ac_cv_prog_ac_ct_STRIP="strip"
6089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090    break 2
6091  fi
6092done
6093  done
6094IFS=$as_save_IFS
6095
6096fi
6097fi
6098ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6099if test -n "$ac_ct_STRIP"; then
6100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6101$as_echo "$ac_ct_STRIP" >&6; }
6102else
6103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104$as_echo "no" >&6; }
6105fi
6106
6107  if test "x$ac_ct_STRIP" = x; then
6108    STRIP=":"
6109  else
6110    case $cross_compiling:$ac_tool_warned in
6111yes:)
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114ac_tool_warned=yes ;;
6115esac
6116    STRIP=$ac_ct_STRIP
6117  fi
6118else
6119  STRIP="$ac_cv_prog_STRIP"
6120fi
6121
6122
6123old_CC="$CC"
6124old_CFLAGS="$CFLAGS"
6125
6126# Set sane defaults for various variables
6127test -z "$AR" && AR=ar
6128test -z "$AR_FLAGS" && AR_FLAGS=cru
6129test -z "$AS" && AS=as
6130test -z "$CC" && CC=cc
6131test -z "$LTCC" && LTCC=$CC
6132test -z "$DLLTOOL" && DLLTOOL=dlltool
6133test -z "$LD" && LD=ld
6134test -z "$LN_S" && LN_S="ln -s"
6135test -z "$MAGIC_CMD" && MAGIC_CMD=file
6136test -z "$NM" && NM=nm
6137test -z "$SED" && SED=sed
6138test -z "$OBJDUMP" && OBJDUMP=objdump
6139test -z "$RANLIB" && RANLIB=:
6140test -z "$STRIP" && STRIP=:
6141test -z "$ac_objext" && ac_objext=o
6142
6143# Determine commands to create old-style static archives.
6144old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6145old_postinstall_cmds='chmod 644 $oldlib'
6146old_postuninstall_cmds=
6147
6148if test -n "$RANLIB"; then
6149  case $host_os in
6150  openbsd*)
6151    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6152    ;;
6153  *)
6154    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6155    ;;
6156  esac
6157  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6158fi
6159
6160for cc_temp in $compiler""; do
6161  case $cc_temp in
6162    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6163    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6164    \-*) ;;
6165    *) break;;
6166  esac
6167done
6168cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6169
6170
6171# Only perform the check for file, if the check method requires it
6172case $deplibs_check_method in
6173file_magic*)
6174  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6175    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6176$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6177if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6178  $as_echo_n "(cached) " >&6
6179else
6180  case $MAGIC_CMD in
6181[\\/*] |  ?:[\\/]*)
6182  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6183  ;;
6184*)
6185  lt_save_MAGIC_CMD="$MAGIC_CMD"
6186  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6187  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6188  for ac_dir in $ac_dummy; do
6189    IFS="$lt_save_ifs"
6190    test -z "$ac_dir" && ac_dir=.
6191    if test -f $ac_dir/${ac_tool_prefix}file; then
6192      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6193      if test -n "$file_magic_test_file"; then
6194	case $deplibs_check_method in
6195	"file_magic "*)
6196	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6197	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6198	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6199	    $EGREP "$file_magic_regex" > /dev/null; then
6200	    :
6201	  else
6202	    cat <<EOF 1>&2
6203
6204*** Warning: the command libtool uses to detect shared libraries,
6205*** $file_magic_cmd, produces output that libtool cannot recognize.
6206*** The result is that libtool may fail to recognize shared libraries
6207*** as such.  This will affect the creation of libtool libraries that
6208*** depend on shared libraries, but programs linked with such libtool
6209*** libraries will work regardless of this problem.  Nevertheless, you
6210*** may want to report the problem to your system manager and/or to
6211*** bug-libtool@gnu.org
6212
6213EOF
6214	  fi ;;
6215	esac
6216      fi
6217      break
6218    fi
6219  done
6220  IFS="$lt_save_ifs"
6221  MAGIC_CMD="$lt_save_MAGIC_CMD"
6222  ;;
6223esac
6224fi
6225
6226MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6227if test -n "$MAGIC_CMD"; then
6228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6229$as_echo "$MAGIC_CMD" >&6; }
6230else
6231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232$as_echo "no" >&6; }
6233fi
6234
6235if test -z "$lt_cv_path_MAGIC_CMD"; then
6236  if test -n "$ac_tool_prefix"; then
6237    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6238$as_echo_n "checking for file... " >&6; }
6239if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  case $MAGIC_CMD in
6243[\\/*] |  ?:[\\/]*)
6244  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6245  ;;
6246*)
6247  lt_save_MAGIC_CMD="$MAGIC_CMD"
6248  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6249  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6250  for ac_dir in $ac_dummy; do
6251    IFS="$lt_save_ifs"
6252    test -z "$ac_dir" && ac_dir=.
6253    if test -f $ac_dir/file; then
6254      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6255      if test -n "$file_magic_test_file"; then
6256	case $deplibs_check_method in
6257	"file_magic "*)
6258	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6259	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6260	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6261	    $EGREP "$file_magic_regex" > /dev/null; then
6262	    :
6263	  else
6264	    cat <<EOF 1>&2
6265
6266*** Warning: the command libtool uses to detect shared libraries,
6267*** $file_magic_cmd, produces output that libtool cannot recognize.
6268*** The result is that libtool may fail to recognize shared libraries
6269*** as such.  This will affect the creation of libtool libraries that
6270*** depend on shared libraries, but programs linked with such libtool
6271*** libraries will work regardless of this problem.  Nevertheless, you
6272*** may want to report the problem to your system manager and/or to
6273*** bug-libtool@gnu.org
6274
6275EOF
6276	  fi ;;
6277	esac
6278      fi
6279      break
6280    fi
6281  done
6282  IFS="$lt_save_ifs"
6283  MAGIC_CMD="$lt_save_MAGIC_CMD"
6284  ;;
6285esac
6286fi
6287
6288MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6289if test -n "$MAGIC_CMD"; then
6290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6291$as_echo "$MAGIC_CMD" >&6; }
6292else
6293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294$as_echo "no" >&6; }
6295fi
6296
6297  else
6298    MAGIC_CMD=:
6299  fi
6300fi
6301
6302  fi
6303  ;;
6304esac
6305
6306enable_dlopen=no
6307enable_win32_dll=yes
6308
6309# Check whether --enable-libtool-lock was given.
6310if test "${enable_libtool_lock+set}" = set; then :
6311  enableval=$enable_libtool_lock;
6312fi
6313
6314test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6315
6316
6317# Check whether --with-pic was given.
6318if test "${with_pic+set}" = set; then :
6319  withval=$with_pic; pic_mode="$withval"
6320else
6321  pic_mode=default
6322fi
6323
6324test -z "$pic_mode" && pic_mode=default
6325
6326# Use C for the default configuration in the libtool script
6327tagname=
6328lt_save_CC="$CC"
6329ac_ext=c
6330ac_cpp='$CPP $CPPFLAGS'
6331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6333ac_compiler_gnu=$ac_cv_c_compiler_gnu
6334
6335
6336# Source file extension for C test sources.
6337ac_ext=c
6338
6339# Object file extension for compiled C test sources.
6340objext=o
6341objext=$objext
6342
6343# Code to be used in simple compile tests
6344lt_simple_compile_test_code="int some_variable = 0;\n"
6345
6346# Code to be used in simple link tests
6347lt_simple_link_test_code='int main(){return(0);}\n'
6348
6349
6350# If no C compiler was specified, use CC.
6351LTCC=${LTCC-"$CC"}
6352
6353# Allow CC to be a program name with arguments.
6354compiler=$CC
6355
6356
6357# save warnings/boilerplate of simple test code
6358ac_outfile=conftest.$ac_objext
6359printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6360eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6361_lt_compiler_boilerplate=`cat conftest.err`
6362$rm conftest*
6363
6364ac_outfile=conftest.$ac_objext
6365printf "$lt_simple_link_test_code" >conftest.$ac_ext
6366eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6367_lt_linker_boilerplate=`cat conftest.err`
6368$rm conftest*
6369
6370
6371#
6372# Check for any special shared library compilation flags.
6373#
6374lt_prog_cc_shlib=
6375if test "$GCC" = no; then
6376  case $host_os in
6377  sco3.2v5*)
6378    lt_prog_cc_shlib='-belf'
6379    ;;
6380  esac
6381fi
6382if test -n "$lt_prog_cc_shlib"; then
6383  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6384$as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6385  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6386  else
6387    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6388$as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6389    lt_cv_prog_cc_can_build_shared=no
6390  fi
6391fi
6392
6393
6394#
6395# Check to make sure the static flag actually works.
6396#
6397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6398$as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
6399if test "${lt_prog_compiler_static_works+set}" = set; then :
6400  $as_echo_n "(cached) " >&6
6401else
6402  lt_prog_compiler_static_works=no
6403   save_LDFLAGS="$LDFLAGS"
6404   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6405   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6406   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6407     # The compiler can only warn and ignore the option if not recognized
6408     # So say no if there are warnings
6409     if test -s conftest.err; then
6410       # Append any errors to the config.log.
6411       cat conftest.err 1>&5
6412       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6413       $SED '/^$/d' conftest.err >conftest.er2
6414       if diff conftest.exp conftest.er2 >/dev/null; then
6415         lt_prog_compiler_static_works=yes
6416       fi
6417     else
6418       lt_prog_compiler_static_works=yes
6419     fi
6420   fi
6421   $rm conftest*
6422   LDFLAGS="$save_LDFLAGS"
6423
6424fi
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
6426$as_echo "$lt_prog_compiler_static_works" >&6; }
6427
6428if test x"$lt_prog_compiler_static_works" = xyes; then
6429    :
6430else
6431    lt_prog_compiler_static=
6432fi
6433
6434
6435
6436## CAVEAT EMPTOR:
6437## There is no encapsulation within the following macros, do not change
6438## the running order or otherwise move them around unless you know exactly
6439## what you are doing...
6440
6441lt_prog_compiler_no_builtin_flag=
6442
6443if test "$GCC" = yes; then
6444  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6445
6446
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6448$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6449if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6450  $as_echo_n "(cached) " >&6
6451else
6452  lt_cv_prog_compiler_rtti_exceptions=no
6453  ac_outfile=conftest.$ac_objext
6454   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6455   lt_compiler_flag="-fno-rtti -fno-exceptions"
6456   # Insert the option either (1) after the last *FLAGS variable, or
6457   # (2) before a word containing "conftest.", or (3) at the end.
6458   # Note that $ac_compile itself does not contain backslashes and begins
6459   # with a dollar sign (not a hyphen), so the echo should work correctly.
6460   # The option is referenced via a variable to avoid confusing sed.
6461   lt_compile=`echo "$ac_compile" | $SED \
6462   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6463   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6464   -e 's:$: $lt_compiler_flag:'`
6465   (eval echo "\"\$as_me:6465: $lt_compile\"" >&5)
6466   (eval "$lt_compile" 2>conftest.err)
6467   ac_status=$?
6468   cat conftest.err >&5
6469   echo "$as_me:6469: \$? = $ac_status" >&5
6470   if (exit $ac_status) && test -s "$ac_outfile"; then
6471     # The compiler can only warn and ignore the option if not recognized
6472     # So say no if there are warnings other than the usual output.
6473     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6474     $SED '/^$/d' conftest.err >conftest.er2
6475     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6476       lt_cv_prog_compiler_rtti_exceptions=yes
6477     fi
6478   fi
6479   $rm conftest*
6480
6481fi
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6483$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6484
6485if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6486    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6487else
6488    :
6489fi
6490
6491fi
6492
6493lt_prog_compiler_wl=
6494lt_prog_compiler_pic=
6495lt_prog_compiler_static=
6496
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6498$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6499
6500  if test "$GCC" = yes; then
6501    lt_prog_compiler_wl='-Wl,'
6502    lt_prog_compiler_static='-static'
6503
6504    case $host_os in
6505      aix*)
6506      # All AIX code is PIC.
6507      if test "$host_cpu" = ia64; then
6508	# AIX 5 now supports IA64 processor
6509	lt_prog_compiler_static='-Bstatic'
6510      fi
6511      ;;
6512
6513    amigaos*)
6514      # FIXME: we need at least 68020 code to build shared libraries, but
6515      # adding the `-m68020' flag to GCC prevents building anything better,
6516      # like `-m68040'.
6517      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6518      ;;
6519
6520    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6521      # PIC is the default for these OSes.
6522      ;;
6523
6524    mingw* | pw32* | os2*)
6525      # This hack is so that the source file can tell whether it is being
6526      # built for inclusion in a dll (and should export symbols for example).
6527      lt_prog_compiler_pic='-DDLL_EXPORT'
6528      ;;
6529
6530    darwin* | rhapsody*)
6531      # PIC is the default on this platform
6532      # Common symbols not allowed in MH_DYLIB files
6533      lt_prog_compiler_pic='-fno-common'
6534      ;;
6535
6536    msdosdjgpp*)
6537      # Just because we use GCC doesn't mean we suddenly get shared libraries
6538      # on systems that don't support them.
6539      lt_prog_compiler_can_build_shared=no
6540      enable_shared=no
6541      ;;
6542
6543    sysv4*MP*)
6544      if test -d /usr/nec; then
6545	lt_prog_compiler_pic=-Kconform_pic
6546      fi
6547      ;;
6548
6549    hpux*)
6550      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6551      # not for PA HP-UX.
6552      case "$host_cpu" in
6553      hppa*64*|ia64*)
6554	# +Z the default
6555	;;
6556      *)
6557	lt_prog_compiler_pic='-fPIC'
6558	;;
6559      esac
6560      ;;
6561
6562    *)
6563      lt_prog_compiler_pic='-fPIC'
6564      ;;
6565    esac
6566  else
6567    # PORTME Check for flag to pass linker flags through the system compiler.
6568    case $host_os in
6569    aix*)
6570      lt_prog_compiler_wl='-Wl,'
6571      if test "$host_cpu" = ia64; then
6572	# AIX 5 now supports IA64 processor
6573	lt_prog_compiler_static='-Bstatic'
6574      else
6575	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6576      fi
6577      ;;
6578      darwin*)
6579        # PIC is the default on this platform
6580        # Common symbols not allowed in MH_DYLIB files
6581       case $cc_basename in
6582         xlc*)
6583         lt_prog_compiler_pic='-qnocommon'
6584         lt_prog_compiler_wl='-Wl,'
6585         ;;
6586       esac
6587       ;;
6588
6589    mingw* | pw32* | os2*)
6590      # This hack is so that the source file can tell whether it is being
6591      # built for inclusion in a dll (and should export symbols for example).
6592      lt_prog_compiler_pic='-DDLL_EXPORT'
6593      ;;
6594
6595    hpux9* | hpux10* | hpux11*)
6596      lt_prog_compiler_wl='-Wl,'
6597      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6598      # not for PA HP-UX.
6599      case "$host_cpu" in
6600      hppa*64*|ia64*)
6601	# +Z the default
6602	;;
6603      *)
6604	lt_prog_compiler_pic='+Z'
6605	;;
6606      esac
6607      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6608      lt_prog_compiler_static='${wl}-a ${wl}archive'
6609      ;;
6610
6611    irix5* | irix6* | nonstopux*)
6612      lt_prog_compiler_wl='-Wl,'
6613      # PIC (with -KPIC) is the default.
6614      lt_prog_compiler_static='-non_shared'
6615      ;;
6616
6617    newsos6)
6618      lt_prog_compiler_pic='-KPIC'
6619      lt_prog_compiler_static='-Bstatic'
6620      ;;
6621
6622    linux*)
6623      case $cc_basename in
6624      icc* | ecc*)
6625	lt_prog_compiler_wl='-Wl,'
6626	lt_prog_compiler_pic='-KPIC'
6627	lt_prog_compiler_static='-static'
6628        ;;
6629      pgcc* | pgf77* | pgf90*)
6630        # Portland Group compilers (*not* the Pentium gcc compiler,
6631	# which looks to be a dead project)
6632	lt_prog_compiler_wl='-Wl,'
6633	lt_prog_compiler_pic='-fpic'
6634	lt_prog_compiler_static='-static'
6635        ;;
6636      ccc*)
6637        lt_prog_compiler_wl='-Wl,'
6638        # All Alpha code is PIC.
6639        lt_prog_compiler_static='-non_shared'
6640        ;;
6641      esac
6642      ;;
6643
6644    osf3* | osf4* | osf5*)
6645      lt_prog_compiler_wl='-Wl,'
6646      # All OSF/1 code is PIC.
6647      lt_prog_compiler_static='-non_shared'
6648      ;;
6649
6650    sco3.2v5*)
6651      lt_prog_compiler_pic='-Kpic'
6652      lt_prog_compiler_static='-dn'
6653      ;;
6654
6655    solaris*)
6656      lt_prog_compiler_pic='-KPIC'
6657      lt_prog_compiler_static='-Bstatic'
6658      case $cc_basename in
6659      f77* | f90* | f95*)
6660	lt_prog_compiler_wl='-Qoption ld ';;
6661      *)
6662	lt_prog_compiler_wl='-Wl,';;
6663      esac
6664      ;;
6665
6666    sunos4*)
6667      lt_prog_compiler_wl='-Qoption ld '
6668      lt_prog_compiler_pic='-PIC'
6669      lt_prog_compiler_static='-Bstatic'
6670      ;;
6671
6672    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6673      lt_prog_compiler_wl='-Wl,'
6674      lt_prog_compiler_pic='-KPIC'
6675      lt_prog_compiler_static='-Bstatic'
6676      ;;
6677
6678    sysv4*MP*)
6679      if test -d /usr/nec ;then
6680	lt_prog_compiler_pic='-Kconform_pic'
6681	lt_prog_compiler_static='-Bstatic'
6682      fi
6683      ;;
6684
6685    unicos*)
6686      lt_prog_compiler_wl='-Wl,'
6687      lt_prog_compiler_can_build_shared=no
6688      ;;
6689
6690    uts4*)
6691      lt_prog_compiler_pic='-pic'
6692      lt_prog_compiler_static='-Bstatic'
6693      ;;
6694
6695    *)
6696      lt_prog_compiler_can_build_shared=no
6697      ;;
6698    esac
6699  fi
6700
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6702$as_echo "$lt_prog_compiler_pic" >&6; }
6703
6704#
6705# Check to make sure the PIC flag actually works.
6706#
6707if test -n "$lt_prog_compiler_pic"; then
6708
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6710$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6711if test "${lt_prog_compiler_pic_works+set}" = set; then :
6712  $as_echo_n "(cached) " >&6
6713else
6714  lt_prog_compiler_pic_works=no
6715  ac_outfile=conftest.$ac_objext
6716   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6717   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6718   # Insert the option either (1) after the last *FLAGS variable, or
6719   # (2) before a word containing "conftest.", or (3) at the end.
6720   # Note that $ac_compile itself does not contain backslashes and begins
6721   # with a dollar sign (not a hyphen), so the echo should work correctly.
6722   # The option is referenced via a variable to avoid confusing sed.
6723   lt_compile=`echo "$ac_compile" | $SED \
6724   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6725   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6726   -e 's:$: $lt_compiler_flag:'`
6727   (eval echo "\"\$as_me:6727: $lt_compile\"" >&5)
6728   (eval "$lt_compile" 2>conftest.err)
6729   ac_status=$?
6730   cat conftest.err >&5
6731   echo "$as_me:6731: \$? = $ac_status" >&5
6732   if (exit $ac_status) && test -s "$ac_outfile"; then
6733     # The compiler can only warn and ignore the option if not recognized
6734     # So say no if there are warnings other than the usual output.
6735     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6736     $SED '/^$/d' conftest.err >conftest.er2
6737     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6738       lt_prog_compiler_pic_works=yes
6739     fi
6740   fi
6741   $rm conftest*
6742
6743fi
6744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
6745$as_echo "$lt_prog_compiler_pic_works" >&6; }
6746
6747if test x"$lt_prog_compiler_pic_works" = xyes; then
6748    case $lt_prog_compiler_pic in
6749     "" | " "*) ;;
6750     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6751     esac
6752else
6753    lt_prog_compiler_pic=
6754     lt_prog_compiler_can_build_shared=no
6755fi
6756
6757fi
6758case "$host_os" in
6759  # For platforms which do not support PIC, -DPIC is meaningless:
6760  *djgpp*)
6761    lt_prog_compiler_pic=
6762    ;;
6763  *)
6764    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6765    ;;
6766esac
6767
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
6769$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
6770if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
6771  $as_echo_n "(cached) " >&6
6772else
6773  lt_cv_prog_compiler_c_o=no
6774   $rm -r conftest 2>/dev/null
6775   mkdir conftest
6776   cd conftest
6777   mkdir out
6778   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6779
6780   lt_compiler_flag="-o out/conftest2.$ac_objext"
6781   # Insert the option either (1) after the last *FLAGS variable, or
6782   # (2) before a word containing "conftest.", or (3) at the end.
6783   # Note that $ac_compile itself does not contain backslashes and begins
6784   # with a dollar sign (not a hyphen), so the echo should work correctly.
6785   lt_compile=`echo "$ac_compile" | $SED \
6786   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6787   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6788   -e 's:$: $lt_compiler_flag:'`
6789   (eval echo "\"\$as_me:6789: $lt_compile\"" >&5)
6790   (eval "$lt_compile" 2>out/conftest.err)
6791   ac_status=$?
6792   cat out/conftest.err >&5
6793   echo "$as_me:6793: \$? = $ac_status" >&5
6794   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6795   then
6796     # The compiler can only warn and ignore the option if not recognized
6797     # So say no if there are warnings
6798     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6799     $SED '/^$/d' out/conftest.err >out/conftest.er2
6800     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6801       lt_cv_prog_compiler_c_o=yes
6802     fi
6803   fi
6804   chmod u+w .
6805   $rm conftest*
6806   # SGI C++ compiler will create directory out/ii_files/ for
6807   # template instantiation
6808   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6809   $rm out/* && rmdir out
6810   cd ..
6811   rmdir conftest
6812   $rm conftest*
6813
6814fi
6815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
6816$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
6817
6818
6819hard_links="nottested"
6820if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6821  # do not overwrite the value of need_locks provided by the user
6822  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
6823$as_echo_n "checking if we can lock with hard links... " >&6; }
6824  hard_links=yes
6825  $rm conftest*
6826  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6827  touch conftest.a
6828  ln conftest.a conftest.b 2>&5 || hard_links=no
6829  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
6831$as_echo "$hard_links" >&6; }
6832  if test "$hard_links" = no; then
6833    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6834$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6835    need_locks=warn
6836  fi
6837else
6838  need_locks=no
6839fi
6840
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6842$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
6843
6844  runpath_var=
6845  allow_undefined_flag=
6846  enable_shared_with_static_runtimes=no
6847  archive_cmds=
6848  archive_expsym_cmds=
6849  old_archive_From_new_cmds=
6850  old_archive_from_expsyms_cmds=
6851  export_dynamic_flag_spec=
6852  whole_archive_flag_spec=
6853  thread_safe_flag_spec=
6854  hardcode_libdir_flag_spec=
6855  hardcode_libdir_flag_spec_ld=
6856  hardcode_libdir_separator=
6857  hardcode_direct=no
6858  hardcode_minus_L=no
6859  hardcode_shlibpath_var=unsupported
6860  link_all_deplibs=unknown
6861  hardcode_automatic=no
6862  module_cmds=
6863  module_expsym_cmds=
6864  always_export_symbols=no
6865  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6866  # include_expsyms should be a list of space-separated symbols to be *always*
6867  # included in the symbol list
6868  include_expsyms=
6869  # exclude_expsyms can be an extended regexp of symbols to exclude
6870  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6871  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6872  # as well as any symbol that contains `d'.
6873  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6874  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6875  # platforms (ab)use it in PIC code, but their linkers get confused if
6876  # the symbol is explicitly referenced.  Since portable code cannot
6877  # rely on this symbol name, it's probably fine to never include it in
6878  # preloaded symbol tables.
6879  extract_expsyms_cmds=
6880  # Just being paranoid about ensuring that cc_basename is set.
6881  for cc_temp in $compiler""; do
6882  case $cc_temp in
6883    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6884    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6885    \-*) ;;
6886    *) break;;
6887  esac
6888done
6889cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6890
6891  case $host_os in
6892  cygwin* | mingw* | pw32*)
6893    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6894    # When not using gcc, we currently assume that we are using
6895    # Microsoft Visual C++.
6896    if test "$GCC" != yes; then
6897      with_gnu_ld=no
6898    fi
6899    ;;
6900  openbsd*)
6901    with_gnu_ld=no
6902    ;;
6903  esac
6904
6905  ld_shlibs=yes
6906  if test "$with_gnu_ld" = yes; then
6907    # If archive_cmds runs LD, not CC, wlarc should be empty
6908    wlarc='${wl}'
6909
6910    # Set some defaults for GNU ld with shared library support. These
6911    # are reset later if shared libraries are not supported. Putting them
6912    # here allows them to be overridden if necessary.
6913    runpath_var=LD_RUN_PATH
6914    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6915    export_dynamic_flag_spec='${wl}--export-dynamic'
6916    # ancient GNU ld didn't support --whole-archive et. al.
6917    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6918	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6919      else
6920  	whole_archive_flag_spec=
6921    fi
6922    supports_anon_versioning=no
6923    case `$LD -v 2>/dev/null` in
6924      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6925      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6926      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6927      *\ 2.11.*) ;; # other 2.11 versions
6928      *) supports_anon_versioning=yes ;;
6929    esac
6930
6931    # See if GNU ld supports shared libraries.
6932    case $host_os in
6933    aix3* | aix4* | aix5*)
6934      # On AIX/PPC, the GNU linker is very broken
6935      if test "$host_cpu" != ia64; then
6936	ld_shlibs=no
6937	cat <<EOF 1>&2
6938
6939*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6940*** to be unable to reliably create shared libraries on AIX.
6941*** Therefore, libtool is disabling shared libraries support.  If you
6942*** really care for shared libraries, you may want to modify your PATH
6943*** so that a non-GNU linker is found, and then restart.
6944
6945EOF
6946      fi
6947      ;;
6948
6949    amigaos*)
6950      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)'
6951      hardcode_libdir_flag_spec='-L$libdir'
6952      hardcode_minus_L=yes
6953
6954      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6955      # that the semantics of dynamic libraries on AmigaOS, at least up
6956      # to version 4, is to share data among multiple programs linked
6957      # with the same dynamic library.  Since this doesn't match the
6958      # behavior of shared libraries on other platforms, we can't use
6959      # them.
6960      ld_shlibs=no
6961      ;;
6962
6963    beos*)
6964      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6965	allow_undefined_flag=unsupported
6966	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6967	# support --undefined.  This deserves some investigation.  FIXME
6968	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6969      else
6970	ld_shlibs=no
6971      fi
6972      ;;
6973
6974    cygwin* | mingw* | pw32*)
6975      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6976      # as there is no search path for DLLs.
6977      hardcode_libdir_flag_spec='-L$libdir'
6978      allow_undefined_flag=unsupported
6979      always_export_symbols=no
6980      enable_shared_with_static_runtimes=yes
6981      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6982
6983      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6984        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6985	# If the export-symbols file already is a .def file (1st line
6986	# is EXPORTS), use it as is; otherwise, prepend...
6987	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6988	  cp $export_symbols $output_objdir/$soname.def;
6989	else
6990	  echo EXPORTS > $output_objdir/$soname.def;
6991	  cat $export_symbols >> $output_objdir/$soname.def;
6992	fi~
6993	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6994      else
6995	ld_shlibs=no
6996      fi
6997      ;;
6998
6999    linux*)
7000      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7001	tmp_addflag=
7002	case $cc_basename,$host_cpu in
7003	pgcc*)				# Portland Group C compiler
7004	  whole_archive_flag_spec=
7005	  ;;
7006	pgf77* | pgf90* )			# Portland Group f77 and f90 compilers
7007	  whole_archive_flag_spec=
7008	  tmp_addflag=' -fpic -Mnomain' ;;
7009	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7010	  tmp_addflag=' -i_dynamic' ;;
7011	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7012	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7013	ifc* | ifort*)			# Intel Fortran compiler
7014	  tmp_addflag=' -nofor_main' ;;
7015	esac
7016	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7017
7018	if test $supports_anon_versioning = yes; then
7019	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7020  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7021  $echo "local: *; };" >> $output_objdir/$libname.ver~
7022	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7023	fi
7024      else
7025	ld_shlibs=no
7026      fi
7027      ;;
7028
7029    netbsd*)
7030      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7031	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7032	wlarc=
7033      else
7034	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7035	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7036      fi
7037      ;;
7038
7039    solaris* | sysv5*)
7040      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7041	ld_shlibs=no
7042	cat <<EOF 1>&2
7043
7044*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7045*** create shared libraries on Solaris systems.  Therefore, libtool
7046*** is disabling shared libraries support.  We urge you to upgrade GNU
7047*** binutils to release 2.9.1 or newer.  Another option is to modify
7048*** your PATH or compiler configuration so that the native linker is
7049*** used, and then restart.
7050
7051EOF
7052      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7053	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7054	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7055      else
7056	ld_shlibs=no
7057      fi
7058      ;;
7059
7060    sunos4*)
7061      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7062      wlarc=
7063      hardcode_direct=yes
7064      hardcode_shlibpath_var=no
7065      ;;
7066
7067    *)
7068      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7069	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7070	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7071      else
7072	ld_shlibs=no
7073      fi
7074      ;;
7075    esac
7076
7077    if test "$ld_shlibs" = no; then
7078      runpath_var=
7079      hardcode_libdir_flag_spec=
7080      export_dynamic_flag_spec=
7081      whole_archive_flag_spec=
7082    fi
7083  else
7084    # PORTME fill in a description of your system's linker (not GNU ld)
7085    case $host_os in
7086    aix3*)
7087      allow_undefined_flag=unsupported
7088      always_export_symbols=yes
7089      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'
7090      # Note: this linker hardcodes the directories in LIBPATH if there
7091      # are no directories specified by -L.
7092      hardcode_minus_L=yes
7093      if test "$GCC" = yes && test -z "$link_static_flag"; then
7094	# Neither direct hardcoding nor static linking is supported with a
7095	# broken collect2.
7096	hardcode_direct=unsupported
7097      fi
7098      ;;
7099
7100    aix4* | aix5*)
7101      if test "$host_cpu" = ia64; then
7102	# On IA64, the linker does run time linking by default, so we don't
7103	# have to do anything special.
7104	aix_use_runtimelinking=no
7105	exp_sym_flag='-Bexport'
7106	no_entry_flag=""
7107      else
7108	# If we're using GNU nm, then we don't want the "-C" option.
7109	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7110	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7111	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7112	else
7113	  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'
7114	fi
7115	aix_use_runtimelinking=no
7116
7117	# Test if we are trying to use run time linking or normal
7118	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7119	# need to do runtime linking.
7120	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7121	  for ld_flag in $LDFLAGS; do
7122  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7123  	    aix_use_runtimelinking=yes
7124  	    break
7125  	  fi
7126	  done
7127	esac
7128
7129	exp_sym_flag='-bexport'
7130	no_entry_flag='-bnoentry'
7131      fi
7132
7133      # When large executables or shared objects are built, AIX ld can
7134      # have problems creating the table of contents.  If linking a library
7135      # or program results in "error TOC overflow" add -mminimal-toc to
7136      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7137      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7138
7139      archive_cmds=''
7140      hardcode_direct=yes
7141      hardcode_libdir_separator=':'
7142      link_all_deplibs=yes
7143
7144      if test "$GCC" = yes; then
7145	case $host_os in aix4.[012]|aix4.[012].*)
7146	# We only want to do this on AIX 4.2 and lower, the check
7147	# below for broken collect2 doesn't work under 4.3+
7148	  collect2name=`${CC} -print-prog-name=collect2`
7149	  if test -f "$collect2name" && \
7150  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7151	  then
7152  	  # We have reworked collect2
7153  	  hardcode_direct=yes
7154	  else
7155  	  # We have old collect2
7156  	  hardcode_direct=unsupported
7157  	  # It fails to find uninstalled libraries when the uninstalled
7158  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7159  	  # to unsupported forces relinking
7160  	  hardcode_minus_L=yes
7161  	  hardcode_libdir_flag_spec='-L$libdir'
7162  	  hardcode_libdir_separator=
7163	  fi
7164	esac
7165	shared_flag='-shared'
7166	if test "$aix_use_runtimelinking" = yes; then
7167	  shared_flag="$shared_flag "'${wl}-G'
7168	fi
7169      else
7170	# not using gcc
7171	if test "$host_cpu" = ia64; then
7172  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7173  	# chokes on -Wl,-G. The following line is correct:
7174	  shared_flag='-G'
7175	else
7176  	if test "$aix_use_runtimelinking" = yes; then
7177	    shared_flag='${wl}-G'
7178	  else
7179	    shared_flag='${wl}-bM:SRE'
7180  	fi
7181	fi
7182      fi
7183
7184      # It seems that -bexpall does not export symbols beginning with
7185      # underscore (_), so it is better to generate a list of symbols to export.
7186      always_export_symbols=yes
7187      if test "$aix_use_runtimelinking" = yes; then
7188	# Warning - without using the other runtime loading flags (-brtl),
7189	# -berok will link without error, but may produce a broken library.
7190	allow_undefined_flag='-berok'
7191       # Determine the default libpath from the value encoded in an empty executable.
7192       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193/* end confdefs.h.  */
7194
7195int
7196main ()
7197{
7198
7199  ;
7200  return 0;
7201}
7202_ACEOF
7203if ac_fn_c_try_link "$LINENO"; then :
7204
7205aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7206}'`
7207# Check for a 64-bit object if we didn't find anything.
7208if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7209}'`; fi
7210fi
7211rm -f core conftest.err conftest.$ac_objext \
7212    conftest$ac_exeext conftest.$ac_ext
7213if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7214
7215       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7216	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7217       else
7218	if test "$host_cpu" = ia64; then
7219	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7220	  allow_undefined_flag="-z nodefs"
7221	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7222	else
7223	 # Determine the default libpath from the value encoded in an empty executable.
7224	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225/* end confdefs.h.  */
7226
7227int
7228main ()
7229{
7230
7231  ;
7232  return 0;
7233}
7234_ACEOF
7235if ac_fn_c_try_link "$LINENO"; then :
7236
7237aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7238}'`
7239# Check for a 64-bit object if we didn't find anything.
7240if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7241}'`; fi
7242fi
7243rm -f core conftest.err conftest.$ac_objext \
7244    conftest$ac_exeext conftest.$ac_ext
7245if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7246
7247	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7248	  # Warning - without using the other run time loading flags,
7249	  # -berok will link without error, but may produce a broken library.
7250	  no_undefined_flag=' ${wl}-bernotok'
7251	  allow_undefined_flag=' ${wl}-berok'
7252	  # -bexpall does not export symbols beginning with underscore (_)
7253	  always_export_symbols=yes
7254	  # Exported symbols can be pulled into shared objects from archives
7255	  whole_archive_flag_spec=' '
7256	  archive_cmds_need_lc=yes
7257	  # This is similar to how AIX traditionally builds it's shared libraries.
7258	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7259	fi
7260      fi
7261      ;;
7262
7263    amigaos*)
7264      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)'
7265      hardcode_libdir_flag_spec='-L$libdir'
7266      hardcode_minus_L=yes
7267      # see comment about different semantics on the GNU ld section
7268      ld_shlibs=no
7269      ;;
7270
7271    bsdi[45]*)
7272      export_dynamic_flag_spec=-rdynamic
7273      ;;
7274
7275    cygwin* | mingw* | pw32*)
7276      # When not using gcc, we currently assume that we are using
7277      # Microsoft Visual C++.
7278      # hardcode_libdir_flag_spec is actually meaningless, as there is
7279      # no search path for DLLs.
7280      hardcode_libdir_flag_spec=' '
7281      allow_undefined_flag=unsupported
7282      # Tell ltmain to make .lib files, not .a files.
7283      libext=lib
7284      # Tell ltmain to make .dll files, not .so files.
7285      shrext_cmds=".dll"
7286      # FIXME: Setting linknames here is a bad hack.
7287      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7288      # The linker will automatically build a .lib file if we build a DLL.
7289      old_archive_From_new_cmds='true'
7290      # FIXME: Should let the user specify the lib program.
7291      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7292      fix_srcfile_path='`cygpath -w "$srcfile"`'
7293      enable_shared_with_static_runtimes=yes
7294      ;;
7295
7296    darwin* | rhapsody*)
7297      case "$host_os" in
7298        rhapsody* | darwin1.[012])
7299         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7300         ;;
7301       *) # Darwin 1.3 on
7302         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7303           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7304         else
7305           case ${MACOSX_DEPLOYMENT_TARGET} in
7306             10.[012])
7307               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7308               ;;
7309             10.*)
7310               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7311               ;;
7312           esac
7313         fi
7314         ;;
7315      esac
7316      archive_cmds_need_lc=no
7317      hardcode_direct=no
7318      hardcode_automatic=yes
7319      hardcode_shlibpath_var=unsupported
7320      whole_archive_flag_spec=''
7321      link_all_deplibs=yes
7322    if test "$GCC" = yes ; then
7323    	output_verbose_link_cmd='echo'
7324        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7325      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7326      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7327      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7328      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7329    else
7330      case $cc_basename in
7331        xlc*)
7332         output_verbose_link_cmd='echo'
7333         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7334         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7335          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7336         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7337          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7338          ;;
7339       *)
7340         ld_shlibs=no
7341          ;;
7342      esac
7343    fi
7344      ;;
7345
7346    dgux*)
7347      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7348      hardcode_libdir_flag_spec='-L$libdir'
7349      hardcode_shlibpath_var=no
7350      ;;
7351
7352    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7353    # support.  Future versions do this automatically, but an explicit c++rt0.o
7354    # does not break anything, and helps significantly (at the cost of a little
7355    # extra space).
7356    freebsd2.2*)
7357      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7358      hardcode_libdir_flag_spec='-R$libdir'
7359      hardcode_direct=yes
7360      hardcode_shlibpath_var=no
7361      ;;
7362
7363    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7364    freebsd2.*)
7365      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7366      hardcode_direct=yes
7367      hardcode_minus_L=yes
7368      hardcode_shlibpath_var=no
7369      ;;
7370
7371    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7372    freebsd* | kfreebsd*-gnu | dragonfly*)
7373      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7374      hardcode_libdir_flag_spec='-R$libdir'
7375      hardcode_direct=yes
7376      hardcode_shlibpath_var=no
7377      ;;
7378
7379    hpux9*)
7380      if test "$GCC" = yes; then
7381	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'
7382      else
7383	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'
7384      fi
7385      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7386      hardcode_libdir_separator=:
7387      hardcode_direct=yes
7388
7389      # hardcode_minus_L: Not really in the search PATH,
7390      # but as the default location of the library.
7391      hardcode_minus_L=yes
7392      export_dynamic_flag_spec='${wl}-E'
7393      ;;
7394
7395    hpux10* | hpux11*)
7396      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7397	case "$host_cpu" in
7398	hppa*64*|ia64*)
7399	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7400	  ;;
7401	*)
7402	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7403	  ;;
7404	esac
7405      else
7406	case "$host_cpu" in
7407	hppa*64*|ia64*)
7408	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7409	  ;;
7410	*)
7411	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7412	  ;;
7413	esac
7414      fi
7415      if test "$with_gnu_ld" = no; then
7416	case "$host_cpu" in
7417	hppa*64*)
7418	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7419	  hardcode_libdir_flag_spec_ld='+b $libdir'
7420	  hardcode_libdir_separator=:
7421	  hardcode_direct=no
7422	  hardcode_shlibpath_var=no
7423	  ;;
7424	ia64*)
7425	  hardcode_libdir_flag_spec='-L$libdir'
7426	  hardcode_direct=no
7427	  hardcode_shlibpath_var=no
7428
7429	  # hardcode_minus_L: Not really in the search PATH,
7430	  # but as the default location of the library.
7431	  hardcode_minus_L=yes
7432	  ;;
7433	*)
7434	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7435	  hardcode_libdir_separator=:
7436	  hardcode_direct=yes
7437	  export_dynamic_flag_spec='${wl}-E'
7438
7439	  # hardcode_minus_L: Not really in the search PATH,
7440	  # but as the default location of the library.
7441	  hardcode_minus_L=yes
7442	  ;;
7443	esac
7444      fi
7445      ;;
7446
7447    irix5* | irix6* | nonstopux*)
7448      if test "$GCC" = yes; then
7449	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7450      else
7451	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7452	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7453      fi
7454      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7455      hardcode_libdir_separator=:
7456      link_all_deplibs=yes
7457      ;;
7458
7459    netbsd*)
7460      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7461	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7462      else
7463	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7464      fi
7465      hardcode_libdir_flag_spec='-R$libdir'
7466      hardcode_direct=yes
7467      hardcode_shlibpath_var=no
7468      ;;
7469
7470    newsos6)
7471      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7472      hardcode_direct=yes
7473      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7474      hardcode_libdir_separator=:
7475      hardcode_shlibpath_var=no
7476      ;;
7477
7478    openbsd*)
7479      hardcode_direct=yes
7480      hardcode_shlibpath_var=no
7481      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7482	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7483	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7484	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7485	export_dynamic_flag_spec='${wl}-E'
7486      else
7487       case $host_os in
7488	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7489	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7490	   hardcode_libdir_flag_spec='-R$libdir'
7491	   ;;
7492	 *)
7493	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7494	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7495	   ;;
7496       esac
7497      fi
7498      ;;
7499
7500    os2*)
7501      hardcode_libdir_flag_spec='-L$libdir'
7502      hardcode_minus_L=yes
7503      allow_undefined_flag=unsupported
7504      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'
7505      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7506      ;;
7507
7508    osf3*)
7509      if test "$GCC" = yes; then
7510	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7511	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7512      else
7513	allow_undefined_flag=' -expect_unresolved \*'
7514	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7515      fi
7516      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7517      hardcode_libdir_separator=:
7518      ;;
7519
7520    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7521      if test "$GCC" = yes; then
7522	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7523	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7524	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7525      else
7526	allow_undefined_flag=' -expect_unresolved \*'
7527	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7528	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7529	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7530
7531	# Both c and cxx compiler support -rpath directly
7532	hardcode_libdir_flag_spec='-rpath $libdir'
7533      fi
7534      hardcode_libdir_separator=:
7535      ;;
7536
7537    sco3.2v5*)
7538      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7539      hardcode_shlibpath_var=no
7540      export_dynamic_flag_spec='${wl}-Bexport'
7541      runpath_var=LD_RUN_PATH
7542      hardcode_runpath_var=yes
7543      ;;
7544
7545    solaris*)
7546      no_undefined_flag=' -z text'
7547      if test "$GCC" = yes; then
7548	wlarc='${wl}'
7549	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7550	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7551	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7552      else
7553	wlarc=''
7554	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7555	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7556  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7557      fi
7558      hardcode_libdir_flag_spec='-R$libdir'
7559      hardcode_shlibpath_var=no
7560      case $host_os in
7561      solaris2.[0-5] | solaris2.[0-5].*) ;;
7562      *)
7563 	# The compiler driver will combine linker options so we
7564 	# cannot just pass the convience library names through
7565 	# without $wl, iff we do not link with $LD.
7566 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7567 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7568 	case $wlarc in
7569 	'')
7570 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7571 	*)
7572 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7573 	esac ;;
7574      esac
7575      link_all_deplibs=yes
7576      ;;
7577
7578    sunos4*)
7579      if test "x$host_vendor" = xsequent; then
7580	# Use $CC to link under sequent, because it throws in some extra .o
7581	# files that make .init and .fini sections work.
7582	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7583      else
7584	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7585      fi
7586      hardcode_libdir_flag_spec='-L$libdir'
7587      hardcode_direct=yes
7588      hardcode_minus_L=yes
7589      hardcode_shlibpath_var=no
7590      ;;
7591
7592    sysv4)
7593      case $host_vendor in
7594	sni)
7595	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7596	  hardcode_direct=yes # is this really true???
7597	;;
7598	siemens)
7599	  ## LD is ld it makes a PLAMLIB
7600	  ## CC just makes a GrossModule.
7601	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7602	  reload_cmds='$CC -r -o $output$reload_objs'
7603	  hardcode_direct=no
7604        ;;
7605	motorola)
7606	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7607	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7608	;;
7609      esac
7610      runpath_var='LD_RUN_PATH'
7611      hardcode_shlibpath_var=no
7612      ;;
7613
7614    sysv4.3*)
7615      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7616      hardcode_shlibpath_var=no
7617      export_dynamic_flag_spec='-Bexport'
7618      ;;
7619
7620    sysv4*MP*)
7621      if test -d /usr/nec; then
7622	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7623	hardcode_shlibpath_var=no
7624	runpath_var=LD_RUN_PATH
7625	hardcode_runpath_var=yes
7626	ld_shlibs=yes
7627      fi
7628      ;;
7629
7630    sysv4.2uw2*)
7631      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7632      hardcode_direct=yes
7633      hardcode_minus_L=no
7634      hardcode_shlibpath_var=no
7635      hardcode_runpath_var=yes
7636      runpath_var=LD_RUN_PATH
7637      ;;
7638
7639   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7640      no_undefined_flag='${wl}-z ${wl}text'
7641      if test "$GCC" = yes; then
7642	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7643      else
7644	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7645      fi
7646      runpath_var='LD_RUN_PATH'
7647      hardcode_shlibpath_var=no
7648      ;;
7649
7650    sysv5*)
7651      no_undefined_flag=' -z text'
7652      # $CC -shared without GNU ld will not create a library from C++
7653      # object files and a static libstdc++, better avoid it by now
7654      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7655      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7656  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7657      hardcode_libdir_flag_spec=
7658      hardcode_shlibpath_var=no
7659      runpath_var='LD_RUN_PATH'
7660      ;;
7661
7662    uts4*)
7663      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7664      hardcode_libdir_flag_spec='-L$libdir'
7665      hardcode_shlibpath_var=no
7666      ;;
7667
7668    *)
7669      ld_shlibs=no
7670      ;;
7671    esac
7672  fi
7673
7674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
7675$as_echo "$ld_shlibs" >&6; }
7676test "$ld_shlibs" = no && can_build_shared=no
7677
7678variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7679if test "$GCC" = yes; then
7680  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7681fi
7682
7683#
7684# Do we need to explicitly link libc?
7685#
7686case "x$archive_cmds_need_lc" in
7687x|xyes)
7688  # Assume -lc should be added
7689  archive_cmds_need_lc=yes
7690
7691  if test "$enable_shared" = yes && test "$GCC" = yes; then
7692    case $archive_cmds in
7693    *'~'*)
7694      # FIXME: we may have to deal with multi-command sequences.
7695      ;;
7696    '$CC '*)
7697      # Test whether the compiler implicitly links with -lc since on some
7698      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7699      # to ld, don't add -lc before -lgcc.
7700      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
7701$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7702      $rm conftest*
7703      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7704
7705      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7706  (eval $ac_compile) 2>&5
7707  ac_status=$?
7708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7709  test $ac_status = 0; } 2>conftest.err; then
7710        soname=conftest
7711        lib=conftest
7712        libobjs=conftest.$ac_objext
7713        deplibs=
7714        wl=$lt_prog_compiler_wl
7715        compiler_flags=-v
7716        linker_flags=-v
7717        verstring=
7718        output_objdir=.
7719        libname=conftest
7720        lt_save_allow_undefined_flag=$allow_undefined_flag
7721        allow_undefined_flag=
7722        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
7723  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7724  ac_status=$?
7725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7726  test $ac_status = 0; }
7727        then
7728	  archive_cmds_need_lc=no
7729        else
7730	  archive_cmds_need_lc=yes
7731        fi
7732        allow_undefined_flag=$lt_save_allow_undefined_flag
7733      else
7734        cat conftest.err 1>&5
7735      fi
7736      $rm conftest*
7737      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
7738$as_echo "$archive_cmds_need_lc" >&6; }
7739      ;;
7740    esac
7741  fi
7742  ;;
7743esac
7744
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
7746$as_echo_n "checking dynamic linker characteristics... " >&6; }
7747library_names_spec=
7748libname_spec='lib$name'
7749soname_spec=
7750shrext_cmds=".so"
7751postinstall_cmds=
7752postuninstall_cmds=
7753finish_cmds=
7754finish_eval=
7755shlibpath_var=
7756shlibpath_overrides_runpath=unknown
7757version_type=none
7758dynamic_linker="$host_os ld.so"
7759sys_lib_dlsearch_path_spec="/lib /usr/lib"
7760if test "$GCC" = yes; then
7761  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7762  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7763    # if the path contains ";" then we assume it to be the separator
7764    # otherwise default to the standard path separator (i.e. ":") - it is
7765    # assumed that no part of a normal pathname contains ";" but that should
7766    # okay in the real world where ";" in dirpaths is itself problematic.
7767    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7768  else
7769    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7770  fi
7771else
7772  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7773fi
7774need_lib_prefix=unknown
7775hardcode_into_libs=no
7776
7777# when you set need_version to no, make sure it does not cause -set_version
7778# flags to be left without arguments
7779need_version=unknown
7780
7781case $host_os in
7782aix3*)
7783  version_type=linux
7784  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7785  shlibpath_var=LIBPATH
7786
7787  # AIX 3 has no versioning support, so we append a major version to the name.
7788  soname_spec='${libname}${release}${shared_ext}$major'
7789  ;;
7790
7791aix4* | aix5*)
7792  version_type=linux
7793  need_lib_prefix=no
7794  need_version=no
7795  hardcode_into_libs=yes
7796  if test "$host_cpu" = ia64; then
7797    # AIX 5 supports IA64
7798    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7799    shlibpath_var=LD_LIBRARY_PATH
7800  else
7801    # With GCC up to 2.95.x, collect2 would create an import file
7802    # for dependence libraries.  The import file would start with
7803    # the line `#! .'.  This would cause the generated library to
7804    # depend on `.', always an invalid library.  This was fixed in
7805    # development snapshots of GCC prior to 3.0.
7806    case $host_os in
7807      aix4 | aix4.[01] | aix4.[01].*)
7808      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7809	   echo ' yes '
7810	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7811	:
7812      else
7813	can_build_shared=no
7814      fi
7815      ;;
7816    esac
7817    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7818    # soname into executable. Probably we can add versioning support to
7819    # collect2, so additional links can be useful in future.
7820    if test "$aix_use_runtimelinking" = yes; then
7821      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7822      # instead of lib<name>.a to let people know that these are not
7823      # typical AIX shared libraries.
7824      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7825    else
7826      # We preserve .a as extension for shared libraries through AIX4.2
7827      # and later when we are not doing run time linking.
7828      library_names_spec='${libname}${release}.a $libname.a'
7829      soname_spec='${libname}${release}${shared_ext}$major'
7830    fi
7831    shlibpath_var=LIBPATH
7832  fi
7833  ;;
7834
7835amigaos*)
7836  library_names_spec='$libname.ixlibrary $libname.a'
7837  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7838  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
7839  ;;
7840
7841beos*)
7842  library_names_spec='${libname}${shared_ext}'
7843  dynamic_linker="$host_os ld.so"
7844  shlibpath_var=LIBRARY_PATH
7845  ;;
7846
7847bsdi[45]*)
7848  version_type=linux
7849  need_version=no
7850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7851  soname_spec='${libname}${release}${shared_ext}$major'
7852  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7853  shlibpath_var=LD_LIBRARY_PATH
7854  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7855  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7856  # the default ld.so.conf also contains /usr/contrib/lib and
7857  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7858  # libtool to hard-code these into programs
7859  ;;
7860
7861cygwin* | mingw* | pw32*)
7862  version_type=windows
7863  shrext_cmds=".dll"
7864  need_version=no
7865  need_lib_prefix=no
7866
7867  case $GCC,$host_os in
7868  yes,cygwin* | yes,mingw* | yes,pw32*)
7869    library_names_spec='$libname.dll.a'
7870    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7871    postinstall_cmds='base_file=`basename \${file}`~
7872      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7873      dldir=$destdir/`dirname \$dlpath`~
7874      test -d \$dldir || mkdir -p \$dldir~
7875      $install_prog $dir/$dlname \$dldir/$dlname'
7876    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7877      dlpath=$dir/\$dldll~
7878       $rm \$dlpath'
7879    shlibpath_overrides_runpath=yes
7880
7881    case $host_os in
7882    cygwin*)
7883      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7884      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7885      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7886      ;;
7887    mingw*)
7888      # MinGW DLLs use traditional 'lib' prefix
7889      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7890      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7891      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7892        # It is most probably a Windows format PATH printed by
7893        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7894        # path with ; separators, and with drive letters. We can handle the
7895        # drive letters (cygwin fileutils understands them), so leave them,
7896        # especially as we might pass files found there to a mingw objdump,
7897        # which wouldn't understand a cygwinified path. Ahh.
7898        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7899      else
7900        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7901      fi
7902      ;;
7903    pw32*)
7904      # pw32 DLLs use 'pw' prefix rather than 'lib'
7905      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7906      ;;
7907    esac
7908    ;;
7909
7910  *)
7911    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7912    ;;
7913  esac
7914  dynamic_linker='Win32 ld.exe'
7915  # FIXME: first we should search . and the directory the executable is in
7916  shlibpath_var=PATH
7917  ;;
7918
7919darwin* | rhapsody*)
7920  dynamic_linker="$host_os dyld"
7921  version_type=darwin
7922  need_lib_prefix=no
7923  need_version=no
7924  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7925  soname_spec='${libname}${release}${major}$shared_ext'
7926  shlibpath_overrides_runpath=yes
7927  shlibpath_var=DYLD_LIBRARY_PATH
7928  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7929  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7930  if test "$GCC" = yes; then
7931    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7932  else
7933    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7934  fi
7935  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7936  ;;
7937
7938dgux*)
7939  version_type=linux
7940  need_lib_prefix=no
7941  need_version=no
7942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7943  soname_spec='${libname}${release}${shared_ext}$major'
7944  shlibpath_var=LD_LIBRARY_PATH
7945  ;;
7946
7947kfreebsd*-gnu)
7948  version_type=linux
7949  need_lib_prefix=no
7950  need_version=no
7951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7952  soname_spec='${libname}${release}${shared_ext}$major'
7953  shlibpath_var=LD_LIBRARY_PATH
7954  shlibpath_overrides_runpath=no
7955  hardcode_into_libs=yes
7956  dynamic_linker='GNU ld.so'
7957  ;;
7958
7959freebsd* | dragonfly*)
7960  # DragonFly does not have aout.  When/if they implement a new
7961  # versioning mechanism, adjust this.
7962  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7963  version_type=freebsd-$objformat
7964  case $version_type in
7965    freebsd-elf*)
7966      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7967      need_version=no
7968      need_lib_prefix=no
7969      ;;
7970    freebsd-*)
7971      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7972      need_version=yes
7973      ;;
7974  esac
7975  shlibpath_var=LD_LIBRARY_PATH
7976  case $host_os in
7977  freebsd2.*)
7978    shlibpath_overrides_runpath=yes
7979    ;;
7980  freebsd3.[01]* | freebsdelf3.[01]*)
7981    shlibpath_overrides_runpath=yes
7982    hardcode_into_libs=yes
7983    ;;
7984  *) # from 3.2 on
7985    shlibpath_overrides_runpath=no
7986    hardcode_into_libs=yes
7987    ;;
7988  esac
7989  ;;
7990
7991gnu*)
7992  version_type=linux
7993  need_lib_prefix=no
7994  need_version=no
7995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7996  soname_spec='${libname}${release}${shared_ext}$major'
7997  shlibpath_var=LD_LIBRARY_PATH
7998  hardcode_into_libs=yes
7999  ;;
8000
8001hpux9* | hpux10* | hpux11*)
8002  # Give a soname corresponding to the major version so that dld.sl refuses to
8003  # link against other versions.
8004  version_type=sunos
8005  need_lib_prefix=no
8006  need_version=no
8007  case "$host_cpu" in
8008  ia64*)
8009    shrext_cmds='.so'
8010    hardcode_into_libs=yes
8011    dynamic_linker="$host_os dld.so"
8012    shlibpath_var=LD_LIBRARY_PATH
8013    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8014    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8015    soname_spec='${libname}${release}${shared_ext}$major'
8016    if test "X$HPUX_IA64_MODE" = X32; then
8017      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8018    else
8019      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8020    fi
8021    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8022    ;;
8023   hppa*64*)
8024     shrext_cmds='.sl'
8025     hardcode_into_libs=yes
8026     dynamic_linker="$host_os dld.sl"
8027     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8028     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8029     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8030     soname_spec='${libname}${release}${shared_ext}$major'
8031     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8032     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8033     ;;
8034   *)
8035    shrext_cmds='.sl'
8036    dynamic_linker="$host_os dld.sl"
8037    shlibpath_var=SHLIB_PATH
8038    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8039    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8040    soname_spec='${libname}${release}${shared_ext}$major'
8041    ;;
8042  esac
8043  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8044  postinstall_cmds='chmod 555 $lib'
8045  ;;
8046
8047irix5* | irix6* | nonstopux*)
8048  case $host_os in
8049    nonstopux*) version_type=nonstopux ;;
8050    *)
8051	if test "$lt_cv_prog_gnu_ld" = yes; then
8052		version_type=linux
8053	else
8054		version_type=irix
8055	fi ;;
8056  esac
8057  need_lib_prefix=no
8058  need_version=no
8059  soname_spec='${libname}${release}${shared_ext}$major'
8060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8061  case $host_os in
8062  irix5* | nonstopux*)
8063    libsuff= shlibsuff=
8064    ;;
8065  *)
8066    case $LD in # libtool.m4 will add one of these switches to LD
8067    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8068      libsuff= shlibsuff= libmagic=32-bit;;
8069    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8070      libsuff=32 shlibsuff=N32 libmagic=N32;;
8071    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8072      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8073    *) libsuff= shlibsuff= libmagic=never-match;;
8074    esac
8075    ;;
8076  esac
8077  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8078  shlibpath_overrides_runpath=no
8079  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8080  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8081  hardcode_into_libs=yes
8082  ;;
8083
8084# No shared lib support for Linux oldld, aout, or coff.
8085linux*oldld* | linux*aout* | linux*coff*)
8086  dynamic_linker=no
8087  ;;
8088
8089# This must be Linux ELF.
8090linux*)
8091  version_type=linux
8092  need_lib_prefix=no
8093  need_version=no
8094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8095  soname_spec='${libname}${release}${shared_ext}$major'
8096  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8097  shlibpath_var=LD_LIBRARY_PATH
8098  shlibpath_overrides_runpath=no
8099  # This implies no fast_install, which is unacceptable.
8100  # Some rework will be needed to allow for fast_install
8101  # before this can be enabled.
8102  hardcode_into_libs=yes
8103
8104  # find out which ABI we are using
8105  libsuff=
8106  case "$host_cpu" in
8107  x86_64*|s390x*|powerpc64*)
8108    echo '#line 8108 "configure"' > conftest.$ac_ext
8109    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8110  (eval $ac_compile) 2>&5
8111  ac_status=$?
8112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8113  test $ac_status = 0; }; then
8114      case `/usr/bin/file conftest.$ac_objext` in
8115      *64-bit*)
8116        libsuff=64
8117        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8118        ;;
8119      esac
8120    fi
8121    rm -rf conftest*
8122    ;;
8123  esac
8124
8125  # Append ld.so.conf contents to the search path
8126  if test -f /etc/ld.so.conf; then
8127    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8128    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8129  fi
8130
8131  # We used to test for /lib/ld.so.1 and disable shared libraries on
8132  # powerpc, because MkLinux only supported shared libraries with the
8133  # GNU dynamic linker.  Since this was broken with cross compilers,
8134  # most powerpc-linux boxes support dynamic linking these days and
8135  # people can always --disable-shared, the test was removed, and we
8136  # assume the GNU/Linux dynamic linker is in use.
8137  dynamic_linker='GNU/Linux ld.so'
8138  ;;
8139
8140knetbsd*-gnu)
8141  version_type=linux
8142  need_lib_prefix=no
8143  need_version=no
8144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8145  soname_spec='${libname}${release}${shared_ext}$major'
8146  shlibpath_var=LD_LIBRARY_PATH
8147  shlibpath_overrides_runpath=no
8148  hardcode_into_libs=yes
8149  dynamic_linker='GNU ld.so'
8150  ;;
8151
8152netbsd*)
8153  version_type=sunos
8154  need_lib_prefix=no
8155  need_version=no
8156  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8157    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8158    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8159    dynamic_linker='NetBSD (a.out) ld.so'
8160  else
8161    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8162    soname_spec='${libname}${release}${shared_ext}$major'
8163    dynamic_linker='NetBSD ld.elf_so'
8164  fi
8165  shlibpath_var=LD_LIBRARY_PATH
8166  shlibpath_overrides_runpath=yes
8167  hardcode_into_libs=yes
8168  ;;
8169
8170newsos6)
8171  version_type=linux
8172  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8173  shlibpath_var=LD_LIBRARY_PATH
8174  shlibpath_overrides_runpath=yes
8175  ;;
8176
8177nto-qnx*)
8178  version_type=linux
8179  need_lib_prefix=no
8180  need_version=no
8181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8182  soname_spec='${libname}${release}${shared_ext}$major'
8183  shlibpath_var=LD_LIBRARY_PATH
8184  shlibpath_overrides_runpath=yes
8185  ;;
8186
8187openbsd*)
8188  version_type=sunos
8189  need_lib_prefix=no
8190  need_version=no
8191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8192  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8193  shlibpath_var=LD_LIBRARY_PATH
8194  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8195    case $host_os in
8196      openbsd2.[89] | openbsd2.[89].*)
8197	shlibpath_overrides_runpath=no
8198	;;
8199      *)
8200	shlibpath_overrides_runpath=yes
8201	;;
8202      esac
8203  else
8204    shlibpath_overrides_runpath=yes
8205  fi
8206  ;;
8207
8208os2*)
8209  libname_spec='$name'
8210  shrext_cmds=".dll"
8211  need_lib_prefix=no
8212  library_names_spec='$libname${shared_ext} $libname.a'
8213  dynamic_linker='OS/2 ld.exe'
8214  shlibpath_var=LIBPATH
8215  ;;
8216
8217osf3* | osf4* | osf5*)
8218  version_type=osf
8219  need_lib_prefix=no
8220  need_version=no
8221  soname_spec='${libname}${release}${shared_ext}$major'
8222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8223  shlibpath_var=LD_LIBRARY_PATH
8224  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8225  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8226  ;;
8227
8228sco3.2v5*)
8229  version_type=osf
8230  soname_spec='${libname}${release}${shared_ext}$major'
8231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8232  shlibpath_var=LD_LIBRARY_PATH
8233  ;;
8234
8235solaris*)
8236  version_type=linux
8237  need_lib_prefix=no
8238  need_version=no
8239  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8240  soname_spec='${libname}${release}${shared_ext}$major'
8241  shlibpath_var=LD_LIBRARY_PATH
8242  shlibpath_overrides_runpath=yes
8243  hardcode_into_libs=yes
8244  # ldd complains unless libraries are executable
8245  postinstall_cmds='chmod +x $lib'
8246  ;;
8247
8248sunos4*)
8249  version_type=sunos
8250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8251  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8252  shlibpath_var=LD_LIBRARY_PATH
8253  shlibpath_overrides_runpath=yes
8254  if test "$with_gnu_ld" = yes; then
8255    need_lib_prefix=no
8256  fi
8257  need_version=yes
8258  ;;
8259
8260sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8261  version_type=linux
8262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8263  soname_spec='${libname}${release}${shared_ext}$major'
8264  shlibpath_var=LD_LIBRARY_PATH
8265  case $host_vendor in
8266    sni)
8267      shlibpath_overrides_runpath=no
8268      need_lib_prefix=no
8269      export_dynamic_flag_spec='${wl}-Blargedynsym'
8270      runpath_var=LD_RUN_PATH
8271      ;;
8272    siemens)
8273      need_lib_prefix=no
8274      ;;
8275    motorola)
8276      need_lib_prefix=no
8277      need_version=no
8278      shlibpath_overrides_runpath=no
8279      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8280      ;;
8281  esac
8282  ;;
8283
8284sysv4*MP*)
8285  if test -d /usr/nec ;then
8286    version_type=linux
8287    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8288    soname_spec='$libname${shared_ext}.$major'
8289    shlibpath_var=LD_LIBRARY_PATH
8290  fi
8291  ;;
8292
8293uts4*)
8294  version_type=linux
8295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8296  soname_spec='${libname}${release}${shared_ext}$major'
8297  shlibpath_var=LD_LIBRARY_PATH
8298  ;;
8299
8300*)
8301  dynamic_linker=no
8302  ;;
8303esac
8304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8305$as_echo "$dynamic_linker" >&6; }
8306test "$dynamic_linker" = no && can_build_shared=no
8307
8308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8309$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8310hardcode_action=
8311if test -n "$hardcode_libdir_flag_spec" || \
8312   test -n "$runpath_var" || \
8313   test "X$hardcode_automatic" = "Xyes" ; then
8314
8315  # We can hardcode non-existant directories.
8316  if test "$hardcode_direct" != no &&
8317     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8318     # have to relink, otherwise we might link with an installed library
8319     # when we should be linking with a yet-to-be-installed one
8320     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8321     test "$hardcode_minus_L" != no; then
8322    # Linking always hardcodes the temporary library directory.
8323    hardcode_action=relink
8324  else
8325    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8326    hardcode_action=immediate
8327  fi
8328else
8329  # We cannot hardcode anything, or else we can only hardcode existing
8330  # directories.
8331  hardcode_action=unsupported
8332fi
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8334$as_echo "$hardcode_action" >&6; }
8335
8336if test "$hardcode_action" = relink; then
8337  # Fast installation is not supported
8338  enable_fast_install=no
8339elif test "$shlibpath_overrides_runpath" = yes ||
8340     test "$enable_shared" = no; then
8341  # Fast installation is not necessary
8342  enable_fast_install=needless
8343fi
8344
8345striplib=
8346old_striplib=
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8348$as_echo_n "checking whether stripping libraries is possible... " >&6; }
8349if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8350  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8351  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8353$as_echo "yes" >&6; }
8354else
8355# FIXME - insert some real tests, host_os isn't really good enough
8356  case $host_os in
8357   darwin*)
8358       if test -n "$STRIP" ; then
8359         striplib="$STRIP -x"
8360         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8361$as_echo "yes" >&6; }
8362       else
8363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364$as_echo "no" >&6; }
8365fi
8366       ;;
8367   *)
8368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369$as_echo "no" >&6; }
8370    ;;
8371  esac
8372fi
8373
8374if test "x$enable_dlopen" != xyes; then
8375  enable_dlopen=unknown
8376  enable_dlopen_self=unknown
8377  enable_dlopen_self_static=unknown
8378else
8379  lt_cv_dlopen=no
8380  lt_cv_dlopen_libs=
8381
8382  case $host_os in
8383  beos*)
8384    lt_cv_dlopen="load_add_on"
8385    lt_cv_dlopen_libs=
8386    lt_cv_dlopen_self=yes
8387    ;;
8388
8389  mingw* | pw32*)
8390    lt_cv_dlopen="LoadLibrary"
8391    lt_cv_dlopen_libs=
8392   ;;
8393
8394  cygwin*)
8395    lt_cv_dlopen="dlopen"
8396    lt_cv_dlopen_libs=
8397   ;;
8398
8399  darwin*)
8400  # if libdl is installed we need to link against it
8401    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8402$as_echo_n "checking for dlopen in -ldl... " >&6; }
8403if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8404  $as_echo_n "(cached) " >&6
8405else
8406  ac_check_lib_save_LIBS=$LIBS
8407LIBS="-ldl  $LIBS"
8408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409/* end confdefs.h.  */
8410
8411/* Override any GCC internal prototype to avoid an error.
8412   Use char because int might match the return type of a GCC
8413   builtin and then its argument prototype would still apply.  */
8414#ifdef __cplusplus
8415extern "C"
8416#endif
8417char dlopen ();
8418int
8419main ()
8420{
8421return dlopen ();
8422  ;
8423  return 0;
8424}
8425_ACEOF
8426if ac_fn_c_try_link "$LINENO"; then :
8427  ac_cv_lib_dl_dlopen=yes
8428else
8429  ac_cv_lib_dl_dlopen=no
8430fi
8431rm -f core conftest.err conftest.$ac_objext \
8432    conftest$ac_exeext conftest.$ac_ext
8433LIBS=$ac_check_lib_save_LIBS
8434fi
8435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8436$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8437if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8438  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8439else
8440
8441    lt_cv_dlopen="dyld"
8442    lt_cv_dlopen_libs=
8443    lt_cv_dlopen_self=yes
8444
8445fi
8446
8447   ;;
8448
8449  *)
8450    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
8451if test "x$ac_cv_func_shl_load" = x""yes; then :
8452  lt_cv_dlopen="shl_load"
8453else
8454  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8455$as_echo_n "checking for shl_load in -ldld... " >&6; }
8456if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
8457  $as_echo_n "(cached) " >&6
8458else
8459  ac_check_lib_save_LIBS=$LIBS
8460LIBS="-ldld  $LIBS"
8461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462/* end confdefs.h.  */
8463
8464/* Override any GCC internal prototype to avoid an error.
8465   Use char because int might match the return type of a GCC
8466   builtin and then its argument prototype would still apply.  */
8467#ifdef __cplusplus
8468extern "C"
8469#endif
8470char shl_load ();
8471int
8472main ()
8473{
8474return shl_load ();
8475  ;
8476  return 0;
8477}
8478_ACEOF
8479if ac_fn_c_try_link "$LINENO"; then :
8480  ac_cv_lib_dld_shl_load=yes
8481else
8482  ac_cv_lib_dld_shl_load=no
8483fi
8484rm -f core conftest.err conftest.$ac_objext \
8485    conftest$ac_exeext conftest.$ac_ext
8486LIBS=$ac_check_lib_save_LIBS
8487fi
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8489$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8490if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
8491  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8492else
8493  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8494if test "x$ac_cv_func_dlopen" = x""yes; then :
8495  lt_cv_dlopen="dlopen"
8496else
8497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8498$as_echo_n "checking for dlopen in -ldl... " >&6; }
8499if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8500  $as_echo_n "(cached) " >&6
8501else
8502  ac_check_lib_save_LIBS=$LIBS
8503LIBS="-ldl  $LIBS"
8504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505/* end confdefs.h.  */
8506
8507/* Override any GCC internal prototype to avoid an error.
8508   Use char because int might match the return type of a GCC
8509   builtin and then its argument prototype would still apply.  */
8510#ifdef __cplusplus
8511extern "C"
8512#endif
8513char dlopen ();
8514int
8515main ()
8516{
8517return dlopen ();
8518  ;
8519  return 0;
8520}
8521_ACEOF
8522if ac_fn_c_try_link "$LINENO"; then :
8523  ac_cv_lib_dl_dlopen=yes
8524else
8525  ac_cv_lib_dl_dlopen=no
8526fi
8527rm -f core conftest.err conftest.$ac_objext \
8528    conftest$ac_exeext conftest.$ac_ext
8529LIBS=$ac_check_lib_save_LIBS
8530fi
8531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8532$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8533if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8534  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8535else
8536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8537$as_echo_n "checking for dlopen in -lsvld... " >&6; }
8538if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
8539  $as_echo_n "(cached) " >&6
8540else
8541  ac_check_lib_save_LIBS=$LIBS
8542LIBS="-lsvld  $LIBS"
8543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544/* end confdefs.h.  */
8545
8546/* Override any GCC internal prototype to avoid an error.
8547   Use char because int might match the return type of a GCC
8548   builtin and then its argument prototype would still apply.  */
8549#ifdef __cplusplus
8550extern "C"
8551#endif
8552char dlopen ();
8553int
8554main ()
8555{
8556return dlopen ();
8557  ;
8558  return 0;
8559}
8560_ACEOF
8561if ac_fn_c_try_link "$LINENO"; then :
8562  ac_cv_lib_svld_dlopen=yes
8563else
8564  ac_cv_lib_svld_dlopen=no
8565fi
8566rm -f core conftest.err conftest.$ac_objext \
8567    conftest$ac_exeext conftest.$ac_ext
8568LIBS=$ac_check_lib_save_LIBS
8569fi
8570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8571$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8572if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
8573  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8574else
8575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8576$as_echo_n "checking for dld_link in -ldld... " >&6; }
8577if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
8578  $as_echo_n "(cached) " >&6
8579else
8580  ac_check_lib_save_LIBS=$LIBS
8581LIBS="-ldld  $LIBS"
8582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583/* end confdefs.h.  */
8584
8585/* Override any GCC internal prototype to avoid an error.
8586   Use char because int might match the return type of a GCC
8587   builtin and then its argument prototype would still apply.  */
8588#ifdef __cplusplus
8589extern "C"
8590#endif
8591char dld_link ();
8592int
8593main ()
8594{
8595return dld_link ();
8596  ;
8597  return 0;
8598}
8599_ACEOF
8600if ac_fn_c_try_link "$LINENO"; then :
8601  ac_cv_lib_dld_dld_link=yes
8602else
8603  ac_cv_lib_dld_dld_link=no
8604fi
8605rm -f core conftest.err conftest.$ac_objext \
8606    conftest$ac_exeext conftest.$ac_ext
8607LIBS=$ac_check_lib_save_LIBS
8608fi
8609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8610$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8611if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
8612  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8613fi
8614
8615
8616fi
8617
8618
8619fi
8620
8621
8622fi
8623
8624
8625fi
8626
8627
8628fi
8629
8630    ;;
8631  esac
8632
8633  if test "x$lt_cv_dlopen" != xno; then
8634    enable_dlopen=yes
8635  else
8636    enable_dlopen=no
8637  fi
8638
8639  case $lt_cv_dlopen in
8640  dlopen)
8641    save_CPPFLAGS="$CPPFLAGS"
8642    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8643
8644    save_LDFLAGS="$LDFLAGS"
8645    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8646
8647    save_LIBS="$LIBS"
8648    LIBS="$lt_cv_dlopen_libs $LIBS"
8649
8650    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8651$as_echo_n "checking whether a program can dlopen itself... " >&6; }
8652if test "${lt_cv_dlopen_self+set}" = set; then :
8653  $as_echo_n "(cached) " >&6
8654else
8655  	  if test "$cross_compiling" = yes; then :
8656  lt_cv_dlopen_self=cross
8657else
8658  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8659  lt_status=$lt_dlunknown
8660  cat > conftest.$ac_ext <<EOF
8661#line 8661 "configure"
8662#include "confdefs.h"
8663
8664#if HAVE_DLFCN_H
8665#include <dlfcn.h>
8666#endif
8667
8668#include <stdio.h>
8669
8670#ifdef RTLD_GLOBAL
8671#  define LT_DLGLOBAL		RTLD_GLOBAL
8672#else
8673#  ifdef DL_GLOBAL
8674#    define LT_DLGLOBAL		DL_GLOBAL
8675#  else
8676#    define LT_DLGLOBAL		0
8677#  endif
8678#endif
8679
8680/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8681   find out it does not work in some platform. */
8682#ifndef LT_DLLAZY_OR_NOW
8683#  ifdef RTLD_LAZY
8684#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8685#  else
8686#    ifdef DL_LAZY
8687#      define LT_DLLAZY_OR_NOW		DL_LAZY
8688#    else
8689#      ifdef RTLD_NOW
8690#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8691#      else
8692#        ifdef DL_NOW
8693#          define LT_DLLAZY_OR_NOW	DL_NOW
8694#        else
8695#          define LT_DLLAZY_OR_NOW	0
8696#        endif
8697#      endif
8698#    endif
8699#  endif
8700#endif
8701
8702#ifdef __cplusplus
8703extern "C" void exit (int);
8704#endif
8705
8706void fnord() { int i=42;}
8707int main ()
8708{
8709  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8710  int status = $lt_dlunknown;
8711
8712  if (self)
8713    {
8714      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8715      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8716      /* dlclose (self); */
8717    }
8718
8719    exit (status);
8720}
8721EOF
8722  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8723  (eval $ac_link) 2>&5
8724  ac_status=$?
8725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8726  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8727    (./conftest; exit; ) 2>/dev/null
8728    lt_status=$?
8729    case x$lt_status in
8730      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8731      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8732      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8733    esac
8734  else :
8735    # compilation failed
8736    lt_cv_dlopen_self=no
8737  fi
8738fi
8739rm -fr conftest*
8740
8741
8742fi
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8744$as_echo "$lt_cv_dlopen_self" >&6; }
8745
8746    if test "x$lt_cv_dlopen_self" = xyes; then
8747      LDFLAGS="$LDFLAGS $link_static_flag"
8748      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8749$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8750if test "${lt_cv_dlopen_self_static+set}" = set; then :
8751  $as_echo_n "(cached) " >&6
8752else
8753  	  if test "$cross_compiling" = yes; then :
8754  lt_cv_dlopen_self_static=cross
8755else
8756  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8757  lt_status=$lt_dlunknown
8758  cat > conftest.$ac_ext <<EOF
8759#line 8759 "configure"
8760#include "confdefs.h"
8761
8762#if HAVE_DLFCN_H
8763#include <dlfcn.h>
8764#endif
8765
8766#include <stdio.h>
8767
8768#ifdef RTLD_GLOBAL
8769#  define LT_DLGLOBAL		RTLD_GLOBAL
8770#else
8771#  ifdef DL_GLOBAL
8772#    define LT_DLGLOBAL		DL_GLOBAL
8773#  else
8774#    define LT_DLGLOBAL		0
8775#  endif
8776#endif
8777
8778/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8779   find out it does not work in some platform. */
8780#ifndef LT_DLLAZY_OR_NOW
8781#  ifdef RTLD_LAZY
8782#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8783#  else
8784#    ifdef DL_LAZY
8785#      define LT_DLLAZY_OR_NOW		DL_LAZY
8786#    else
8787#      ifdef RTLD_NOW
8788#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8789#      else
8790#        ifdef DL_NOW
8791#          define LT_DLLAZY_OR_NOW	DL_NOW
8792#        else
8793#          define LT_DLLAZY_OR_NOW	0
8794#        endif
8795#      endif
8796#    endif
8797#  endif
8798#endif
8799
8800#ifdef __cplusplus
8801extern "C" void exit (int);
8802#endif
8803
8804void fnord() { int i=42;}
8805int main ()
8806{
8807  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8808  int status = $lt_dlunknown;
8809
8810  if (self)
8811    {
8812      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8813      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8814      /* dlclose (self); */
8815    }
8816
8817    exit (status);
8818}
8819EOF
8820  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8821  (eval $ac_link) 2>&5
8822  ac_status=$?
8823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8824  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8825    (./conftest; exit; ) 2>/dev/null
8826    lt_status=$?
8827    case x$lt_status in
8828      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8829      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8830      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8831    esac
8832  else :
8833    # compilation failed
8834    lt_cv_dlopen_self_static=no
8835  fi
8836fi
8837rm -fr conftest*
8838
8839
8840fi
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8842$as_echo "$lt_cv_dlopen_self_static" >&6; }
8843    fi
8844
8845    CPPFLAGS="$save_CPPFLAGS"
8846    LDFLAGS="$save_LDFLAGS"
8847    LIBS="$save_LIBS"
8848    ;;
8849  esac
8850
8851  case $lt_cv_dlopen_self in
8852  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8853  *) enable_dlopen_self=unknown ;;
8854  esac
8855
8856  case $lt_cv_dlopen_self_static in
8857  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8858  *) enable_dlopen_self_static=unknown ;;
8859  esac
8860fi
8861
8862
8863# Report which librarie types wil actually be built
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8865$as_echo_n "checking if libtool supports shared libraries... " >&6; }
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8867$as_echo "$can_build_shared" >&6; }
8868
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8870$as_echo_n "checking whether to build shared libraries... " >&6; }
8871test "$can_build_shared" = "no" && enable_shared=no
8872
8873# On AIX, shared libraries and static libraries use the same namespace, and
8874# are all built from PIC.
8875case "$host_os" in
8876aix3*)
8877  test "$enable_shared" = yes && enable_static=no
8878  if test -n "$RANLIB"; then
8879    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8880    postinstall_cmds='$RANLIB $lib'
8881  fi
8882  ;;
8883
8884aix4* | aix5*)
8885  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8886    test "$enable_shared" = yes && enable_static=no
8887  fi
8888    ;;
8889esac
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8891$as_echo "$enable_shared" >&6; }
8892
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8894$as_echo_n "checking whether to build static libraries... " >&6; }
8895# Make sure either enable_shared or enable_static is yes.
8896test "$enable_shared" = yes || enable_static=yes
8897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8898$as_echo "$enable_static" >&6; }
8899
8900# The else clause should only fire when bootstrapping the
8901# libtool distribution, otherwise you forgot to ship ltmain.sh
8902# with your package, and you will get complaints that there are
8903# no rules to generate ltmain.sh.
8904if test -f "$ltmain"; then
8905  # See if we are running on zsh, and set the options which allow our commands through
8906  # without removal of \ escapes.
8907  if test -n "${ZSH_VERSION+set}" ; then
8908    setopt NO_GLOB_SUBST
8909  fi
8910  # Now quote all the things that may contain metacharacters while being
8911  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8912  # variables and quote the copies for generation of the libtool script.
8913  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8914    SED SHELL STRIP \
8915    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8916    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8917    deplibs_check_method reload_flag reload_cmds need_locks \
8918    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8919    lt_cv_sys_global_symbol_to_c_name_address \
8920    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8921    old_postinstall_cmds old_postuninstall_cmds \
8922    compiler \
8923    CC \
8924    LD \
8925    lt_prog_compiler_wl \
8926    lt_prog_compiler_pic \
8927    lt_prog_compiler_static \
8928    lt_prog_compiler_no_builtin_flag \
8929    export_dynamic_flag_spec \
8930    thread_safe_flag_spec \
8931    whole_archive_flag_spec \
8932    enable_shared_with_static_runtimes \
8933    old_archive_cmds \
8934    old_archive_from_new_cmds \
8935    predep_objects \
8936    postdep_objects \
8937    predeps \
8938    postdeps \
8939    compiler_lib_search_path \
8940    archive_cmds \
8941    archive_expsym_cmds \
8942    postinstall_cmds \
8943    postuninstall_cmds \
8944    old_archive_from_expsyms_cmds \
8945    allow_undefined_flag \
8946    no_undefined_flag \
8947    export_symbols_cmds \
8948    hardcode_libdir_flag_spec \
8949    hardcode_libdir_flag_spec_ld \
8950    hardcode_libdir_separator \
8951    hardcode_automatic \
8952    module_cmds \
8953    module_expsym_cmds \
8954    lt_cv_prog_compiler_c_o \
8955    exclude_expsyms \
8956    include_expsyms; do
8957
8958    case $var in
8959    old_archive_cmds | \
8960    old_archive_from_new_cmds | \
8961    archive_cmds | \
8962    archive_expsym_cmds | \
8963    module_cmds | \
8964    module_expsym_cmds | \
8965    old_archive_from_expsyms_cmds | \
8966    export_symbols_cmds | \
8967    extract_expsyms_cmds | reload_cmds | finish_cmds | \
8968    postinstall_cmds | postuninstall_cmds | \
8969    old_postinstall_cmds | old_postuninstall_cmds | \
8970    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8971      # Double-quote double-evaled strings.
8972      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8973      ;;
8974    *)
8975      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8976      ;;
8977    esac
8978  done
8979
8980  case $lt_echo in
8981  *'\$0 --fallback-echo"')
8982    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8983    ;;
8984  esac
8985
8986cfgfile="${ofile}T"
8987  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8988  $rm -f "$cfgfile"
8989  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
8990$as_echo "$as_me: creating $ofile" >&6;}
8991
8992  cat <<__EOF__ >> "$cfgfile"
8993#! $SHELL
8994
8995# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8996# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8997# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8998#
8999# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9000# Free Software Foundation, Inc.
9001#
9002# This file is part of GNU Libtool:
9003# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9004#
9005# This program is free software; you can redistribute it and/or modify
9006# it under the terms of the GNU General Public License as published by
9007# the Free Software Foundation; either version 2 of the License, or
9008# (at your option) any later version.
9009#
9010# This program is distributed in the hope that it will be useful, but
9011# WITHOUT ANY WARRANTY; without even the implied warranty of
9012# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9013# General Public License for more details.
9014#
9015# You should have received a copy of the GNU General Public License
9016# along with this program; if not, write to the Free Software
9017# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9018#
9019# As a special exception to the GNU General Public License, if you
9020# distribute this file as part of a program that contains a
9021# configuration script generated by Autoconf, you may include it under
9022# the same distribution terms that you use for the rest of that program.
9023
9024# A sed program that does not truncate output.
9025SED=$lt_SED
9026
9027# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9028Xsed="$SED -e 1s/^X//"
9029
9030# The HP-UX ksh and POSIX shell print the target directory to stdout
9031# if CDPATH is set.
9032(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9033
9034# The names of the tagged configurations supported by this script.
9035available_tags=
9036
9037# ### BEGIN LIBTOOL CONFIG
9038
9039# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9040
9041# Shell to use when invoking shell scripts.
9042SHELL=$lt_SHELL
9043
9044# Whether or not to build shared libraries.
9045build_libtool_libs=$enable_shared
9046
9047# Whether or not to build static libraries.
9048build_old_libs=$enable_static
9049
9050# Whether or not to add -lc for building shared libraries.
9051build_libtool_need_lc=$archive_cmds_need_lc
9052
9053# Whether or not to disallow shared libs when runtime libs are static
9054allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9055
9056# Whether or not to optimize for fast installation.
9057fast_install=$enable_fast_install
9058
9059# The host system.
9060host_alias=$host_alias
9061host=$host
9062host_os=$host_os
9063
9064# The build system.
9065build_alias=$build_alias
9066build=$build
9067build_os=$build_os
9068
9069# An echo program that does not interpret backslashes.
9070echo=$lt_echo
9071
9072# The archiver.
9073AR=$lt_AR
9074AR_FLAGS=$lt_AR_FLAGS
9075
9076# A C compiler.
9077LTCC=$lt_LTCC
9078
9079# A language-specific compiler.
9080CC=$lt_compiler
9081
9082# Is the compiler the GNU C compiler?
9083with_gcc=$GCC
9084
9085# An ERE matcher.
9086EGREP=$lt_EGREP
9087
9088# The linker used to build libraries.
9089LD=$lt_LD
9090
9091# Whether we need hard or soft links.
9092LN_S=$lt_LN_S
9093
9094# A BSD-compatible nm program.
9095NM=$lt_NM
9096
9097# A symbol stripping program
9098STRIP=$lt_STRIP
9099
9100# Used to examine libraries when file_magic_cmd begins "file"
9101MAGIC_CMD=$MAGIC_CMD
9102
9103# Used on cygwin: DLL creation program.
9104DLLTOOL="$DLLTOOL"
9105
9106# Used on cygwin: object dumper.
9107OBJDUMP="$OBJDUMP"
9108
9109# Used on cygwin: assembler.
9110AS="$AS"
9111
9112# The name of the directory that contains temporary libtool files.
9113objdir=$objdir
9114
9115# How to create reloadable object files.
9116reload_flag=$lt_reload_flag
9117reload_cmds=$lt_reload_cmds
9118
9119# How to pass a linker flag through the compiler.
9120wl=$lt_lt_prog_compiler_wl
9121
9122# Object file suffix (normally "o").
9123objext="$ac_objext"
9124
9125# Old archive suffix (normally "a").
9126libext="$libext"
9127
9128# Shared library suffix (normally ".so").
9129shrext_cmds='$shrext_cmds'
9130
9131# Executable file suffix (normally "").
9132exeext="$exeext"
9133
9134# Additional compiler flags for building library objects.
9135pic_flag=$lt_lt_prog_compiler_pic
9136pic_mode=$pic_mode
9137
9138# What is the maximum length of a command?
9139max_cmd_len=$lt_cv_sys_max_cmd_len
9140
9141# Does compiler simultaneously support -c and -o options?
9142compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9143
9144# Must we lock files when doing compilation?
9145need_locks=$lt_need_locks
9146
9147# Do we need the lib prefix for modules?
9148need_lib_prefix=$need_lib_prefix
9149
9150# Do we need a version for libraries?
9151need_version=$need_version
9152
9153# Whether dlopen is supported.
9154dlopen_support=$enable_dlopen
9155
9156# Whether dlopen of programs is supported.
9157dlopen_self=$enable_dlopen_self
9158
9159# Whether dlopen of statically linked programs is supported.
9160dlopen_self_static=$enable_dlopen_self_static
9161
9162# Compiler flag to prevent dynamic linking.
9163link_static_flag=$lt_lt_prog_compiler_static
9164
9165# Compiler flag to turn off builtin functions.
9166no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9167
9168# Compiler flag to allow reflexive dlopens.
9169export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9170
9171# Compiler flag to generate shared objects directly from archives.
9172whole_archive_flag_spec=$lt_whole_archive_flag_spec
9173
9174# Compiler flag to generate thread-safe objects.
9175thread_safe_flag_spec=$lt_thread_safe_flag_spec
9176
9177# Library versioning type.
9178version_type=$version_type
9179
9180# Format of library name prefix.
9181libname_spec=$lt_libname_spec
9182
9183# List of archive names.  First name is the real one, the rest are links.
9184# The last name is the one that the linker finds with -lNAME.
9185library_names_spec=$lt_library_names_spec
9186
9187# The coded name of the library, if different from the real name.
9188soname_spec=$lt_soname_spec
9189
9190# Commands used to build and install an old-style archive.
9191RANLIB=$lt_RANLIB
9192old_archive_cmds=$lt_old_archive_cmds
9193old_postinstall_cmds=$lt_old_postinstall_cmds
9194old_postuninstall_cmds=$lt_old_postuninstall_cmds
9195
9196# Create an old-style archive from a shared archive.
9197old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9198
9199# Create a temporary old-style archive to link instead of a shared archive.
9200old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9201
9202# Commands used to build and install a shared archive.
9203archive_cmds=$lt_archive_cmds
9204archive_expsym_cmds=$lt_archive_expsym_cmds
9205postinstall_cmds=$lt_postinstall_cmds
9206postuninstall_cmds=$lt_postuninstall_cmds
9207
9208# Commands used to build a loadable module (assumed same as above if empty)
9209module_cmds=$lt_module_cmds
9210module_expsym_cmds=$lt_module_expsym_cmds
9211
9212# Commands to strip libraries.
9213old_striplib=$lt_old_striplib
9214striplib=$lt_striplib
9215
9216# Dependencies to place before the objects being linked to create a
9217# shared library.
9218predep_objects=$lt_predep_objects
9219
9220# Dependencies to place after the objects being linked to create a
9221# shared library.
9222postdep_objects=$lt_postdep_objects
9223
9224# Dependencies to place before the objects being linked to create a
9225# shared library.
9226predeps=$lt_predeps
9227
9228# Dependencies to place after the objects being linked to create a
9229# shared library.
9230postdeps=$lt_postdeps
9231
9232# The library search path used internally by the compiler when linking
9233# a shared library.
9234compiler_lib_search_path=$lt_compiler_lib_search_path
9235
9236# Method to check whether dependent libraries are shared objects.
9237deplibs_check_method=$lt_deplibs_check_method
9238
9239# Command to use when deplibs_check_method == file_magic.
9240file_magic_cmd=$lt_file_magic_cmd
9241
9242# Flag that allows shared libraries with undefined symbols to be built.
9243allow_undefined_flag=$lt_allow_undefined_flag
9244
9245# Flag that forces no undefined symbols.
9246no_undefined_flag=$lt_no_undefined_flag
9247
9248# Commands used to finish a libtool library installation in a directory.
9249finish_cmds=$lt_finish_cmds
9250
9251# Same as above, but a single script fragment to be evaled but not shown.
9252finish_eval=$lt_finish_eval
9253
9254# Take the output of nm and produce a listing of raw symbols and C names.
9255global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9256
9257# Transform the output of nm in a proper C declaration
9258global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9259
9260# Transform the output of nm in a C name address pair
9261global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9262
9263# This is the shared library runtime path variable.
9264runpath_var=$runpath_var
9265
9266# This is the shared library path variable.
9267shlibpath_var=$shlibpath_var
9268
9269# Is shlibpath searched before the hard-coded library search path?
9270shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9271
9272# How to hardcode a shared library path into an executable.
9273hardcode_action=$hardcode_action
9274
9275# Whether we should hardcode library paths into libraries.
9276hardcode_into_libs=$hardcode_into_libs
9277
9278# Flag to hardcode \$libdir into a binary during linking.
9279# This must work even if \$libdir does not exist.
9280hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9281
9282# If ld is used when linking, flag to hardcode \$libdir into
9283# a binary during linking. This must work even if \$libdir does
9284# not exist.
9285hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9286
9287# Whether we need a single -rpath flag with a separated argument.
9288hardcode_libdir_separator=$lt_hardcode_libdir_separator
9289
9290# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9291# resulting binary.
9292hardcode_direct=$hardcode_direct
9293
9294# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9295# resulting binary.
9296hardcode_minus_L=$hardcode_minus_L
9297
9298# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9299# the resulting binary.
9300hardcode_shlibpath_var=$hardcode_shlibpath_var
9301
9302# Set to yes if building a shared library automatically hardcodes DIR into the library
9303# and all subsequent libraries and executables linked against it.
9304hardcode_automatic=$hardcode_automatic
9305
9306# Variables whose values should be saved in libtool wrapper scripts and
9307# restored at relink time.
9308variables_saved_for_relink="$variables_saved_for_relink"
9309
9310# Whether libtool must link a program against all its dependency libraries.
9311link_all_deplibs=$link_all_deplibs
9312
9313# Compile-time system search path for libraries
9314sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9315
9316# Run-time system search path for libraries
9317sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9318
9319# Fix the shell variable \$srcfile for the compiler.
9320fix_srcfile_path="$fix_srcfile_path"
9321
9322# Set to yes if exported symbols are required.
9323always_export_symbols=$always_export_symbols
9324
9325# The commands to list exported symbols.
9326export_symbols_cmds=$lt_export_symbols_cmds
9327
9328# The commands to extract the exported symbol list from a shared archive.
9329extract_expsyms_cmds=$lt_extract_expsyms_cmds
9330
9331# Symbols that should not be listed in the preloaded symbols.
9332exclude_expsyms=$lt_exclude_expsyms
9333
9334# Symbols that must always be exported.
9335include_expsyms=$lt_include_expsyms
9336
9337# ### END LIBTOOL CONFIG
9338
9339__EOF__
9340
9341
9342  case $host_os in
9343  aix3*)
9344    cat <<\EOF >> "$cfgfile"
9345
9346# AIX sometimes has problems with the GCC collect2 program.  For some
9347# reason, if we set the COLLECT_NAMES environment variable, the problems
9348# vanish in a puff of smoke.
9349if test "X${COLLECT_NAMES+set}" != Xset; then
9350  COLLECT_NAMES=
9351  export COLLECT_NAMES
9352fi
9353EOF
9354    ;;
9355  esac
9356
9357  # We use sed instead of cat because bash on DJGPP gets confused if
9358  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9359  # text mode, it properly converts lines to CR/LF.  This bash problem
9360  # is reportedly fixed, but why not run on old versions too?
9361  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9362
9363  mv -f "$cfgfile" "$ofile" || \
9364    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9365  chmod +x "$ofile"
9366
9367else
9368  # If there is no Makefile yet, we rely on a make rule to execute
9369  # `config.status --recheck' to rerun these tests and create the
9370  # libtool script then.
9371  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9372  if test -f "$ltmain_in"; then
9373    test -f Makefile && make "$ltmain"
9374  fi
9375fi
9376
9377
9378ac_ext=c
9379ac_cpp='$CPP $CPPFLAGS'
9380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9382ac_compiler_gnu=$ac_cv_c_compiler_gnu
9383
9384CC="$lt_save_CC"
9385
9386
9387# Check whether --with-tags was given.
9388if test "${with_tags+set}" = set; then :
9389  withval=$with_tags; tagnames="$withval"
9390fi
9391
9392
9393if test -f "$ltmain" && test -n "$tagnames"; then
9394  if test ! -f "${ofile}"; then
9395    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
9396$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9397  fi
9398
9399  if test -z "$LTCC"; then
9400    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9401    if test -z "$LTCC"; then
9402      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9403$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9404    else
9405      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9406$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9407    fi
9408  fi
9409
9410  # Extract list of available tagged configurations in $ofile.
9411  # Note that this assumes the entire list is on one line.
9412  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9413
9414  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9415  for tagname in $tagnames; do
9416    IFS="$lt_save_ifs"
9417    # Check whether tagname contains only valid characters
9418    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9419    "") ;;
9420    *)  as_fn_error "invalid tag name: $tagname" "$LINENO" 5
9421	;;
9422    esac
9423
9424    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9425    then
9426      as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
9427    fi
9428
9429    # Update the list of available tags.
9430    if test -n "$tagname"; then
9431      echo appending configuration tag \"$tagname\" to $ofile
9432
9433      case $tagname in
9434      CXX)
9435	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9436	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9437	    (test "X$CXX" != "Xg++"))) ; then
9438	  :
9439	else
9440	  tagname=""
9441	fi
9442	;;
9443
9444      F77)
9445	if test -n "$F77" && test "X$F77" != "Xno"; then
9446	  :
9447	else
9448	  tagname=""
9449	fi
9450	;;
9451
9452      GCJ)
9453	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
9454	  :
9455	else
9456	  tagname=""
9457	fi
9458	;;
9459
9460      RC)
9461
9462
9463# Source file extension for RC test sources.
9464ac_ext=rc
9465
9466# Object file extension for compiled RC test sources.
9467objext=o
9468objext_RC=$objext
9469
9470# Code to be used in simple compile tests
9471lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
9472
9473# Code to be used in simple link tests
9474lt_simple_link_test_code="$lt_simple_compile_test_code"
9475
9476# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9477
9478# If no C compiler was specified, use CC.
9479LTCC=${LTCC-"$CC"}
9480
9481# Allow CC to be a program name with arguments.
9482compiler=$CC
9483
9484
9485# save warnings/boilerplate of simple test code
9486ac_outfile=conftest.$ac_objext
9487printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9488eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9489_lt_compiler_boilerplate=`cat conftest.err`
9490$rm conftest*
9491
9492ac_outfile=conftest.$ac_objext
9493printf "$lt_simple_link_test_code" >conftest.$ac_ext
9494eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9495_lt_linker_boilerplate=`cat conftest.err`
9496$rm conftest*
9497
9498
9499# Allow CC to be a program name with arguments.
9500lt_save_CC="$CC"
9501CC=${RC-"windres"}
9502compiler=$CC
9503compiler_RC=$CC
9504for cc_temp in $compiler""; do
9505  case $cc_temp in
9506    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9507    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9508    \-*) ;;
9509    *) break;;
9510  esac
9511done
9512cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9513
9514lt_cv_prog_compiler_c_o_RC=yes
9515
9516# The else clause should only fire when bootstrapping the
9517# libtool distribution, otherwise you forgot to ship ltmain.sh
9518# with your package, and you will get complaints that there are
9519# no rules to generate ltmain.sh.
9520if test -f "$ltmain"; then
9521  # See if we are running on zsh, and set the options which allow our commands through
9522  # without removal of \ escapes.
9523  if test -n "${ZSH_VERSION+set}" ; then
9524    setopt NO_GLOB_SUBST
9525  fi
9526  # Now quote all the things that may contain metacharacters while being
9527  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9528  # variables and quote the copies for generation of the libtool script.
9529  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9530    SED SHELL STRIP \
9531    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9532    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9533    deplibs_check_method reload_flag reload_cmds need_locks \
9534    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9535    lt_cv_sys_global_symbol_to_c_name_address \
9536    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9537    old_postinstall_cmds old_postuninstall_cmds \
9538    compiler_RC \
9539    CC_RC \
9540    LD_RC \
9541    lt_prog_compiler_wl_RC \
9542    lt_prog_compiler_pic_RC \
9543    lt_prog_compiler_static_RC \
9544    lt_prog_compiler_no_builtin_flag_RC \
9545    export_dynamic_flag_spec_RC \
9546    thread_safe_flag_spec_RC \
9547    whole_archive_flag_spec_RC \
9548    enable_shared_with_static_runtimes_RC \
9549    old_archive_cmds_RC \
9550    old_archive_from_new_cmds_RC \
9551    predep_objects_RC \
9552    postdep_objects_RC \
9553    predeps_RC \
9554    postdeps_RC \
9555    compiler_lib_search_path_RC \
9556    archive_cmds_RC \
9557    archive_expsym_cmds_RC \
9558    postinstall_cmds_RC \
9559    postuninstall_cmds_RC \
9560    old_archive_from_expsyms_cmds_RC \
9561    allow_undefined_flag_RC \
9562    no_undefined_flag_RC \
9563    export_symbols_cmds_RC \
9564    hardcode_libdir_flag_spec_RC \
9565    hardcode_libdir_flag_spec_ld_RC \
9566    hardcode_libdir_separator_RC \
9567    hardcode_automatic_RC \
9568    module_cmds_RC \
9569    module_expsym_cmds_RC \
9570    lt_cv_prog_compiler_c_o_RC \
9571    exclude_expsyms_RC \
9572    include_expsyms_RC; do
9573
9574    case $var in
9575    old_archive_cmds_RC | \
9576    old_archive_from_new_cmds_RC | \
9577    archive_cmds_RC | \
9578    archive_expsym_cmds_RC | \
9579    module_cmds_RC | \
9580    module_expsym_cmds_RC | \
9581    old_archive_from_expsyms_cmds_RC | \
9582    export_symbols_cmds_RC | \
9583    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9584    postinstall_cmds | postuninstall_cmds | \
9585    old_postinstall_cmds | old_postuninstall_cmds | \
9586    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9587      # Double-quote double-evaled strings.
9588      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9589      ;;
9590    *)
9591      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9592      ;;
9593    esac
9594  done
9595
9596  case $lt_echo in
9597  *'\$0 --fallback-echo"')
9598    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9599    ;;
9600  esac
9601
9602cfgfile="$ofile"
9603
9604  cat <<__EOF__ >> "$cfgfile"
9605# ### BEGIN LIBTOOL TAG CONFIG: $tagname
9606
9607# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9608
9609# Shell to use when invoking shell scripts.
9610SHELL=$lt_SHELL
9611
9612# Whether or not to build shared libraries.
9613build_libtool_libs=$enable_shared
9614
9615# Whether or not to build static libraries.
9616build_old_libs=$enable_static
9617
9618# Whether or not to add -lc for building shared libraries.
9619build_libtool_need_lc=$archive_cmds_need_lc_RC
9620
9621# Whether or not to disallow shared libs when runtime libs are static
9622allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
9623
9624# Whether or not to optimize for fast installation.
9625fast_install=$enable_fast_install
9626
9627# The host system.
9628host_alias=$host_alias
9629host=$host
9630host_os=$host_os
9631
9632# The build system.
9633build_alias=$build_alias
9634build=$build
9635build_os=$build_os
9636
9637# An echo program that does not interpret backslashes.
9638echo=$lt_echo
9639
9640# The archiver.
9641AR=$lt_AR
9642AR_FLAGS=$lt_AR_FLAGS
9643
9644# A C compiler.
9645LTCC=$lt_LTCC
9646
9647# A language-specific compiler.
9648CC=$lt_compiler_RC
9649
9650# Is the compiler the GNU C compiler?
9651with_gcc=$GCC_RC
9652
9653# An ERE matcher.
9654EGREP=$lt_EGREP
9655
9656# The linker used to build libraries.
9657LD=$lt_LD_RC
9658
9659# Whether we need hard or soft links.
9660LN_S=$lt_LN_S
9661
9662# A BSD-compatible nm program.
9663NM=$lt_NM
9664
9665# A symbol stripping program
9666STRIP=$lt_STRIP
9667
9668# Used to examine libraries when file_magic_cmd begins "file"
9669MAGIC_CMD=$MAGIC_CMD
9670
9671# Used on cygwin: DLL creation program.
9672DLLTOOL="$DLLTOOL"
9673
9674# Used on cygwin: object dumper.
9675OBJDUMP="$OBJDUMP"
9676
9677# Used on cygwin: assembler.
9678AS="$AS"
9679
9680# The name of the directory that contains temporary libtool files.
9681objdir=$objdir
9682
9683# How to create reloadable object files.
9684reload_flag=$lt_reload_flag
9685reload_cmds=$lt_reload_cmds
9686
9687# How to pass a linker flag through the compiler.
9688wl=$lt_lt_prog_compiler_wl_RC
9689
9690# Object file suffix (normally "o").
9691objext="$ac_objext"
9692
9693# Old archive suffix (normally "a").
9694libext="$libext"
9695
9696# Shared library suffix (normally ".so").
9697shrext_cmds='$shrext_cmds'
9698
9699# Executable file suffix (normally "").
9700exeext="$exeext"
9701
9702# Additional compiler flags for building library objects.
9703pic_flag=$lt_lt_prog_compiler_pic_RC
9704pic_mode=$pic_mode
9705
9706# What is the maximum length of a command?
9707max_cmd_len=$lt_cv_sys_max_cmd_len
9708
9709# Does compiler simultaneously support -c and -o options?
9710compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
9711
9712# Must we lock files when doing compilation?
9713need_locks=$lt_need_locks
9714
9715# Do we need the lib prefix for modules?
9716need_lib_prefix=$need_lib_prefix
9717
9718# Do we need a version for libraries?
9719need_version=$need_version
9720
9721# Whether dlopen is supported.
9722dlopen_support=$enable_dlopen
9723
9724# Whether dlopen of programs is supported.
9725dlopen_self=$enable_dlopen_self
9726
9727# Whether dlopen of statically linked programs is supported.
9728dlopen_self_static=$enable_dlopen_self_static
9729
9730# Compiler flag to prevent dynamic linking.
9731link_static_flag=$lt_lt_prog_compiler_static_RC
9732
9733# Compiler flag to turn off builtin functions.
9734no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
9735
9736# Compiler flag to allow reflexive dlopens.
9737export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
9738
9739# Compiler flag to generate shared objects directly from archives.
9740whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
9741
9742# Compiler flag to generate thread-safe objects.
9743thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
9744
9745# Library versioning type.
9746version_type=$version_type
9747
9748# Format of library name prefix.
9749libname_spec=$lt_libname_spec
9750
9751# List of archive names.  First name is the real one, the rest are links.
9752# The last name is the one that the linker finds with -lNAME.
9753library_names_spec=$lt_library_names_spec
9754
9755# The coded name of the library, if different from the real name.
9756soname_spec=$lt_soname_spec
9757
9758# Commands used to build and install an old-style archive.
9759RANLIB=$lt_RANLIB
9760old_archive_cmds=$lt_old_archive_cmds_RC
9761old_postinstall_cmds=$lt_old_postinstall_cmds
9762old_postuninstall_cmds=$lt_old_postuninstall_cmds
9763
9764# Create an old-style archive from a shared archive.
9765old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
9766
9767# Create a temporary old-style archive to link instead of a shared archive.
9768old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
9769
9770# Commands used to build and install a shared archive.
9771archive_cmds=$lt_archive_cmds_RC
9772archive_expsym_cmds=$lt_archive_expsym_cmds_RC
9773postinstall_cmds=$lt_postinstall_cmds
9774postuninstall_cmds=$lt_postuninstall_cmds
9775
9776# Commands used to build a loadable module (assumed same as above if empty)
9777module_cmds=$lt_module_cmds_RC
9778module_expsym_cmds=$lt_module_expsym_cmds_RC
9779
9780# Commands to strip libraries.
9781old_striplib=$lt_old_striplib
9782striplib=$lt_striplib
9783
9784# Dependencies to place before the objects being linked to create a
9785# shared library.
9786predep_objects=$lt_predep_objects_RC
9787
9788# Dependencies to place after the objects being linked to create a
9789# shared library.
9790postdep_objects=$lt_postdep_objects_RC
9791
9792# Dependencies to place before the objects being linked to create a
9793# shared library.
9794predeps=$lt_predeps_RC
9795
9796# Dependencies to place after the objects being linked to create a
9797# shared library.
9798postdeps=$lt_postdeps_RC
9799
9800# The library search path used internally by the compiler when linking
9801# a shared library.
9802compiler_lib_search_path=$lt_compiler_lib_search_path_RC
9803
9804# Method to check whether dependent libraries are shared objects.
9805deplibs_check_method=$lt_deplibs_check_method
9806
9807# Command to use when deplibs_check_method == file_magic.
9808file_magic_cmd=$lt_file_magic_cmd
9809
9810# Flag that allows shared libraries with undefined symbols to be built.
9811allow_undefined_flag=$lt_allow_undefined_flag_RC
9812
9813# Flag that forces no undefined symbols.
9814no_undefined_flag=$lt_no_undefined_flag_RC
9815
9816# Commands used to finish a libtool library installation in a directory.
9817finish_cmds=$lt_finish_cmds
9818
9819# Same as above, but a single script fragment to be evaled but not shown.
9820finish_eval=$lt_finish_eval
9821
9822# Take the output of nm and produce a listing of raw symbols and C names.
9823global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9824
9825# Transform the output of nm in a proper C declaration
9826global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9827
9828# Transform the output of nm in a C name address pair
9829global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9830
9831# This is the shared library runtime path variable.
9832runpath_var=$runpath_var
9833
9834# This is the shared library path variable.
9835shlibpath_var=$shlibpath_var
9836
9837# Is shlibpath searched before the hard-coded library search path?
9838shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9839
9840# How to hardcode a shared library path into an executable.
9841hardcode_action=$hardcode_action_RC
9842
9843# Whether we should hardcode library paths into libraries.
9844hardcode_into_libs=$hardcode_into_libs
9845
9846# Flag to hardcode \$libdir into a binary during linking.
9847# This must work even if \$libdir does not exist.
9848hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
9849
9850# If ld is used when linking, flag to hardcode \$libdir into
9851# a binary during linking. This must work even if \$libdir does
9852# not exist.
9853hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
9854
9855# Whether we need a single -rpath flag with a separated argument.
9856hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
9857
9858# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9859# resulting binary.
9860hardcode_direct=$hardcode_direct_RC
9861
9862# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9863# resulting binary.
9864hardcode_minus_L=$hardcode_minus_L_RC
9865
9866# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9867# the resulting binary.
9868hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
9869
9870# Set to yes if building a shared library automatically hardcodes DIR into the library
9871# and all subsequent libraries and executables linked against it.
9872hardcode_automatic=$hardcode_automatic_RC
9873
9874# Variables whose values should be saved in libtool wrapper scripts and
9875# restored at relink time.
9876variables_saved_for_relink="$variables_saved_for_relink"
9877
9878# Whether libtool must link a program against all its dependency libraries.
9879link_all_deplibs=$link_all_deplibs_RC
9880
9881# Compile-time system search path for libraries
9882sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9883
9884# Run-time system search path for libraries
9885sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9886
9887# Fix the shell variable \$srcfile for the compiler.
9888fix_srcfile_path="$fix_srcfile_path_RC"
9889
9890# Set to yes if exported symbols are required.
9891always_export_symbols=$always_export_symbols_RC
9892
9893# The commands to list exported symbols.
9894export_symbols_cmds=$lt_export_symbols_cmds_RC
9895
9896# The commands to extract the exported symbol list from a shared archive.
9897extract_expsyms_cmds=$lt_extract_expsyms_cmds
9898
9899# Symbols that should not be listed in the preloaded symbols.
9900exclude_expsyms=$lt_exclude_expsyms_RC
9901
9902# Symbols that must always be exported.
9903include_expsyms=$lt_include_expsyms_RC
9904
9905# ### END LIBTOOL TAG CONFIG: $tagname
9906
9907__EOF__
9908
9909
9910else
9911  # If there is no Makefile yet, we rely on a make rule to execute
9912  # `config.status --recheck' to rerun these tests and create the
9913  # libtool script then.
9914  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9915  if test -f "$ltmain_in"; then
9916    test -f Makefile && make "$ltmain"
9917  fi
9918fi
9919
9920
9921ac_ext=c
9922ac_cpp='$CPP $CPPFLAGS'
9923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9925ac_compiler_gnu=$ac_cv_c_compiler_gnu
9926
9927CC="$lt_save_CC"
9928
9929	;;
9930
9931      *)
9932	as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
9933	;;
9934      esac
9935
9936      # Append the new tag name to the list of available tags.
9937      if test -n "$tagname" ; then
9938      available_tags="$available_tags $tagname"
9939    fi
9940    fi
9941  done
9942  IFS="$lt_save_ifs"
9943
9944  # Now substitute the updated list of available tags.
9945  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
9946    mv "${ofile}T" "$ofile"
9947    chmod +x "$ofile"
9948  else
9949    rm -f "${ofile}T"
9950    as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
9951  fi
9952fi
9953
9954
9955
9956# This can be used to rebuild libtool when needed
9957LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
9958
9959# Always use our own libtool.
9960LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9961
9962# Prevent multiple expansion
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974ac_header_dirent=no
9975for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9976  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9978$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9980  $as_echo_n "(cached) " >&6
9981else
9982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983/* end confdefs.h.  */
9984#include <sys/types.h>
9985#include <$ac_hdr>
9986
9987int
9988main ()
9989{
9990if ((DIR *) 0)
9991return 0;
9992  ;
9993  return 0;
9994}
9995_ACEOF
9996if ac_fn_c_try_compile "$LINENO"; then :
9997  eval "$as_ac_Header=yes"
9998else
9999  eval "$as_ac_Header=no"
10000fi
10001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10002fi
10003eval ac_res=\$$as_ac_Header
10004	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10005$as_echo "$ac_res" >&6; }
10006eval as_val=\$$as_ac_Header
10007   if test "x$as_val" = x""yes; then :
10008  cat >>confdefs.h <<_ACEOF
10009#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10010_ACEOF
10011
10012ac_header_dirent=$ac_hdr; break
10013fi
10014
10015done
10016# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10017if test $ac_header_dirent = dirent.h; then
10018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10019$as_echo_n "checking for library containing opendir... " >&6; }
10020if test "${ac_cv_search_opendir+set}" = set; then :
10021  $as_echo_n "(cached) " >&6
10022else
10023  ac_func_search_save_LIBS=$LIBS
10024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025/* end confdefs.h.  */
10026
10027/* Override any GCC internal prototype to avoid an error.
10028   Use char because int might match the return type of a GCC
10029   builtin and then its argument prototype would still apply.  */
10030#ifdef __cplusplus
10031extern "C"
10032#endif
10033char opendir ();
10034int
10035main ()
10036{
10037return opendir ();
10038  ;
10039  return 0;
10040}
10041_ACEOF
10042for ac_lib in '' dir; do
10043  if test -z "$ac_lib"; then
10044    ac_res="none required"
10045  else
10046    ac_res=-l$ac_lib
10047    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10048  fi
10049  if ac_fn_c_try_link "$LINENO"; then :
10050  ac_cv_search_opendir=$ac_res
10051fi
10052rm -f core conftest.err conftest.$ac_objext \
10053    conftest$ac_exeext
10054  if test "${ac_cv_search_opendir+set}" = set; then :
10055  break
10056fi
10057done
10058if test "${ac_cv_search_opendir+set}" = set; then :
10059
10060else
10061  ac_cv_search_opendir=no
10062fi
10063rm conftest.$ac_ext
10064LIBS=$ac_func_search_save_LIBS
10065fi
10066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10067$as_echo "$ac_cv_search_opendir" >&6; }
10068ac_res=$ac_cv_search_opendir
10069if test "$ac_res" != no; then :
10070  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10071
10072fi
10073
10074else
10075  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10076$as_echo_n "checking for library containing opendir... " >&6; }
10077if test "${ac_cv_search_opendir+set}" = set; then :
10078  $as_echo_n "(cached) " >&6
10079else
10080  ac_func_search_save_LIBS=$LIBS
10081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082/* end confdefs.h.  */
10083
10084/* Override any GCC internal prototype to avoid an error.
10085   Use char because int might match the return type of a GCC
10086   builtin and then its argument prototype would still apply.  */
10087#ifdef __cplusplus
10088extern "C"
10089#endif
10090char opendir ();
10091int
10092main ()
10093{
10094return opendir ();
10095  ;
10096  return 0;
10097}
10098_ACEOF
10099for ac_lib in '' x; do
10100  if test -z "$ac_lib"; then
10101    ac_res="none required"
10102  else
10103    ac_res=-l$ac_lib
10104    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10105  fi
10106  if ac_fn_c_try_link "$LINENO"; then :
10107  ac_cv_search_opendir=$ac_res
10108fi
10109rm -f core conftest.err conftest.$ac_objext \
10110    conftest$ac_exeext
10111  if test "${ac_cv_search_opendir+set}" = set; then :
10112  break
10113fi
10114done
10115if test "${ac_cv_search_opendir+set}" = set; then :
10116
10117else
10118  ac_cv_search_opendir=no
10119fi
10120rm conftest.$ac_ext
10121LIBS=$ac_func_search_save_LIBS
10122fi
10123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10124$as_echo "$ac_cv_search_opendir" >&6; }
10125ac_res=$ac_cv_search_opendir
10126if test "$ac_res" != no; then :
10127  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10128
10129fi
10130
10131fi
10132
10133# Check whether --enable-ltdl-install was given.
10134if test "${enable_ltdl_install+set}" = set; then :
10135  enableval=$enable_ltdl_install;
10136fi
10137
10138
10139 if test x"${enable_ltdl_install-no}" != xno; then
10140  INSTALL_LTDL_TRUE=
10141  INSTALL_LTDL_FALSE='#'
10142else
10143  INSTALL_LTDL_TRUE='#'
10144  INSTALL_LTDL_FALSE=
10145fi
10146
10147 if test x"${enable_ltdl_convenience-no}" != xno; then
10148  CONVENIENCE_LTDL_TRUE=
10149  CONVENIENCE_LTDL_FALSE='#'
10150else
10151  CONVENIENCE_LTDL_TRUE='#'
10152  CONVENIENCE_LTDL_FALSE=
10153fi
10154
10155
10156
10157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for loadable modules" >&5
10158$as_echo_n "checking which extension is used for loadable modules... " >&6; }
10159if test "${libltdl_cv_shlibext+set}" = set; then :
10160  $as_echo_n "(cached) " >&6
10161else
10162
10163## GCJ LOCAL: gcj specific stuff. Please keep it.
10164# Here in libltdl for libgcj we don't build modules for darwin.
10165# So we say no. Then the extension gets .dylib which is the right
10166# thing for shared libraries on darwin. Please keep me next time you
10167# import libltdl.
10168case "$host_os" in
10169darwin*)
10170	module=no
10171	;;
10172*)
10173	module=yes
10174	;;
10175esac
10176eval libltdl_cv_shlibext=$shrext_cmds
10177
10178fi
10179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
10180$as_echo "$libltdl_cv_shlibext" >&6; }
10181if test -n "$libltdl_cv_shlibext"; then
10182
10183cat >>confdefs.h <<_ACEOF
10184#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10185_ACEOF
10186
10187fi
10188
10189
10190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
10191$as_echo_n "checking which variable specifies run-time library path... " >&6; }
10192if test "${libltdl_cv_shlibpath_var+set}" = set; then :
10193  $as_echo_n "(cached) " >&6
10194else
10195  libltdl_cv_shlibpath_var="$shlibpath_var"
10196fi
10197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
10198$as_echo "$libltdl_cv_shlibpath_var" >&6; }
10199if test -n "$libltdl_cv_shlibpath_var"; then
10200
10201cat >>confdefs.h <<_ACEOF
10202#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10203_ACEOF
10204
10205fi
10206
10207
10208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
10209$as_echo_n "checking for the default library search path... " >&6; }
10210if test "${libltdl_cv_sys_search_path+set}" = set; then :
10211  $as_echo_n "(cached) " >&6
10212else
10213  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10214fi
10215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_search_path" >&5
10216$as_echo "$libltdl_cv_sys_search_path" >&6; }
10217if test -n "$libltdl_cv_sys_search_path"; then
10218  sys_search_path=
10219  for dir in $libltdl_cv_sys_search_path; do
10220    if test -z "$sys_search_path"; then
10221      sys_search_path="$dir"
10222    else
10223      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10224    fi
10225  done
10226
10227cat >>confdefs.h <<_ACEOF
10228#define LTDL_SYSSEARCHPATH "$sys_search_path"
10229_ACEOF
10230
10231fi
10232
10233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10234$as_echo_n "checking for objdir... " >&6; }
10235if test "${libltdl_cv_objdir+set}" = set; then :
10236  $as_echo_n "(cached) " >&6
10237else
10238  libltdl_cv_objdir="$objdir"
10239  if test -n "$objdir"; then
10240    :
10241  else
10242    rm -f .libs 2>/dev/null
10243    mkdir .libs 2>/dev/null
10244    if test -d .libs; then
10245      libltdl_cv_objdir=.libs
10246    else
10247      # MS-DOS does not allow filenames that begin with a dot.
10248      libltdl_cv_objdir=_libs
10249    fi
10250  rmdir .libs 2>/dev/null
10251  fi
10252
10253fi
10254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_objdir" >&5
10255$as_echo "$libltdl_cv_objdir" >&6; }
10256
10257cat >>confdefs.h <<_ACEOF
10258#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10259_ACEOF
10260
10261
10262
10263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
10264$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
10265if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
10266  $as_echo_n "(cached) " >&6
10267else
10268  if test -n "$lt_cv_sys_global_symbol_pipe"; then
10269    libltdl_cv_preloaded_symbols=yes
10270  else
10271    libltdl_cv_preloaded_symbols=no
10272  fi
10273
10274fi
10275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
10276$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
10277if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10278
10279$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
10280
10281fi
10282
10283LIBADD_DL=
10284
10285ac_ext=c
10286ac_cpp='$CPP $CPPFLAGS'
10287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10289ac_compiler_gnu=$ac_cv_c_compiler_gnu
10290
10291
10292ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10293if test "x$ac_cv_func_shl_load" = x""yes; then :
10294
10295$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
10296
10297else
10298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10299$as_echo_n "checking for shl_load in -ldld... " >&6; }
10300if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10301  $as_echo_n "(cached) " >&6
10302else
10303  ac_check_lib_save_LIBS=$LIBS
10304LIBS="-ldld  $LIBS"
10305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306/* end confdefs.h.  */
10307
10308/* Override any GCC internal prototype to avoid an error.
10309   Use char because int might match the return type of a GCC
10310   builtin and then its argument prototype would still apply.  */
10311#ifdef __cplusplus
10312extern "C"
10313#endif
10314char shl_load ();
10315int
10316main ()
10317{
10318return shl_load ();
10319  ;
10320  return 0;
10321}
10322_ACEOF
10323if ac_fn_c_try_link "$LINENO"; then :
10324  ac_cv_lib_dld_shl_load=yes
10325else
10326  ac_cv_lib_dld_shl_load=no
10327fi
10328rm -f core conftest.err conftest.$ac_objext \
10329    conftest$ac_exeext conftest.$ac_ext
10330LIBS=$ac_check_lib_save_LIBS
10331fi
10332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10333$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10334if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10335
10336$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
10337
10338	LIBADD_DL="$LIBADD_DL -ldld"
10339else
10340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10341$as_echo_n "checking for dlopen in -ldl... " >&6; }
10342if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10343  $as_echo_n "(cached) " >&6
10344else
10345  ac_check_lib_save_LIBS=$LIBS
10346LIBS="-ldl  $LIBS"
10347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348/* end confdefs.h.  */
10349
10350/* Override any GCC internal prototype to avoid an error.
10351   Use char because int might match the return type of a GCC
10352   builtin and then its argument prototype would still apply.  */
10353#ifdef __cplusplus
10354extern "C"
10355#endif
10356char dlopen ();
10357int
10358main ()
10359{
10360return dlopen ();
10361  ;
10362  return 0;
10363}
10364_ACEOF
10365if ac_fn_c_try_link "$LINENO"; then :
10366  ac_cv_lib_dl_dlopen=yes
10367else
10368  ac_cv_lib_dl_dlopen=no
10369fi
10370rm -f core conftest.err conftest.$ac_objext \
10371    conftest$ac_exeext conftest.$ac_ext
10372LIBS=$ac_check_lib_save_LIBS
10373fi
10374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10375$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10376if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10377
10378$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
10379
10380	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10381else
10382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383/* end confdefs.h.  */
10384#if HAVE_DLFCN_H
10385#  include <dlfcn.h>
10386#endif
10387
10388int
10389main ()
10390{
10391dlopen(0, 0);
10392  ;
10393  return 0;
10394}
10395_ACEOF
10396if ac_fn_c_try_link "$LINENO"; then :
10397
10398$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
10399 libltdl_cv_func_dlopen="yes"
10400else
10401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10402$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10403if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10404  $as_echo_n "(cached) " >&6
10405else
10406  ac_check_lib_save_LIBS=$LIBS
10407LIBS="-lsvld  $LIBS"
10408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409/* end confdefs.h.  */
10410
10411/* Override any GCC internal prototype to avoid an error.
10412   Use char because int might match the return type of a GCC
10413   builtin and then its argument prototype would still apply.  */
10414#ifdef __cplusplus
10415extern "C"
10416#endif
10417char dlopen ();
10418int
10419main ()
10420{
10421return dlopen ();
10422  ;
10423  return 0;
10424}
10425_ACEOF
10426if ac_fn_c_try_link "$LINENO"; then :
10427  ac_cv_lib_svld_dlopen=yes
10428else
10429  ac_cv_lib_svld_dlopen=no
10430fi
10431rm -f core conftest.err conftest.$ac_objext \
10432    conftest$ac_exeext conftest.$ac_ext
10433LIBS=$ac_check_lib_save_LIBS
10434fi
10435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10436$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10437if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10438
10439$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
10440
10441	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10442else
10443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10444$as_echo_n "checking for dld_link in -ldld... " >&6; }
10445if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10446  $as_echo_n "(cached) " >&6
10447else
10448  ac_check_lib_save_LIBS=$LIBS
10449LIBS="-ldld  $LIBS"
10450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451/* end confdefs.h.  */
10452
10453/* Override any GCC internal prototype to avoid an error.
10454   Use char because int might match the return type of a GCC
10455   builtin and then its argument prototype would still apply.  */
10456#ifdef __cplusplus
10457extern "C"
10458#endif
10459char dld_link ();
10460int
10461main ()
10462{
10463return dld_link ();
10464  ;
10465  return 0;
10466}
10467_ACEOF
10468if ac_fn_c_try_link "$LINENO"; then :
10469  ac_cv_lib_dld_dld_link=yes
10470else
10471  ac_cv_lib_dld_dld_link=no
10472fi
10473rm -f core conftest.err conftest.$ac_objext \
10474    conftest$ac_exeext conftest.$ac_ext
10475LIBS=$ac_check_lib_save_LIBS
10476fi
10477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10478$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10479if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10480
10481$as_echo "#define HAVE_DLD 1" >>confdefs.h
10482
10483	 	LIBADD_DL="$LIBADD_DL -ldld"
10484else
10485  ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
10486if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
10487
10488$as_echo "#define HAVE_DYLD 1" >>confdefs.h
10489
10490fi
10491
10492
10493fi
10494
10495
10496fi
10497
10498
10499fi
10500rm -f core conftest.err conftest.$ac_objext \
10501    conftest$ac_exeext conftest.$ac_ext
10502
10503fi
10504
10505
10506fi
10507
10508
10509fi
10510
10511
10512if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10513then
10514  lt_save_LIBS="$LIBS"
10515  LIBS="$LIBS $LIBADD_DL"
10516  for ac_func in dlerror
10517do :
10518  ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
10519if test "x$ac_cv_func_dlerror" = x""yes; then :
10520  cat >>confdefs.h <<_ACEOF
10521#define HAVE_DLERROR 1
10522_ACEOF
10523
10524fi
10525done
10526
10527  LIBS="$lt_save_LIBS"
10528fi
10529ac_ext=c
10530ac_cpp='$CPP $CPPFLAGS'
10531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10533ac_compiler_gnu=$ac_cv_c_compiler_gnu
10534
10535
10536
10537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
10538$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
10539if test "${ac_cv_sys_symbol_underscore+set}" = set; then :
10540  $as_echo_n "(cached) " >&6
10541else
10542  ac_cv_sys_symbol_underscore=no
10543  cat > conftest.$ac_ext <<EOF
10544void nm_test_func(){}
10545int main(){nm_test_func;return 0;}
10546EOF
10547  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10548  (eval $ac_compile) 2>&5
10549  ac_status=$?
10550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10551  test $ac_status = 0; }; then
10552    # Now try to grab the symbols.
10553    ac_nlist=conftest.nm
10554    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
10555  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10556  ac_status=$?
10557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10558  test $ac_status = 0; } && test -s "$ac_nlist"; then
10559      # See whether the symbols have a leading underscore.
10560      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10561        ac_cv_sys_symbol_underscore=yes
10562      else
10563        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10564	  :
10565        else
10566	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10567        fi
10568      fi
10569    else
10570      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10571    fi
10572  else
10573    echo "configure: failed program was:" >&5
10574    cat conftest.c >&5
10575  fi
10576  rm -rf conftest*
10577
10578fi
10579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
10580$as_echo "$ac_cv_sys_symbol_underscore" >&6; }
10581
10582
10583if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10584  if test x"$libltdl_cv_func_dlopen" = xyes ||
10585     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10586	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
10587$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
10588if test "${libltdl_cv_need_uscore+set}" = set; then :
10589  $as_echo_n "(cached) " >&6
10590else
10591  libltdl_cv_need_uscore=unknown
10592          save_LIBS="$LIBS"
10593          LIBS="$LIBS $LIBADD_DL"
10594	  if test "$cross_compiling" = yes; then :
10595  libltdl_cv_need_uscore=cross
10596else
10597  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10598  lt_status=$lt_dlunknown
10599  cat > conftest.$ac_ext <<EOF
10600#line 10600 "configure"
10601#include "confdefs.h"
10602
10603#if HAVE_DLFCN_H
10604#include <dlfcn.h>
10605#endif
10606
10607#include <stdio.h>
10608
10609#ifdef RTLD_GLOBAL
10610#  define LT_DLGLOBAL		RTLD_GLOBAL
10611#else
10612#  ifdef DL_GLOBAL
10613#    define LT_DLGLOBAL		DL_GLOBAL
10614#  else
10615#    define LT_DLGLOBAL		0
10616#  endif
10617#endif
10618
10619/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10620   find out it does not work in some platform. */
10621#ifndef LT_DLLAZY_OR_NOW
10622#  ifdef RTLD_LAZY
10623#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10624#  else
10625#    ifdef DL_LAZY
10626#      define LT_DLLAZY_OR_NOW		DL_LAZY
10627#    else
10628#      ifdef RTLD_NOW
10629#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10630#      else
10631#        ifdef DL_NOW
10632#          define LT_DLLAZY_OR_NOW	DL_NOW
10633#        else
10634#          define LT_DLLAZY_OR_NOW	0
10635#        endif
10636#      endif
10637#    endif
10638#  endif
10639#endif
10640
10641#ifdef __cplusplus
10642extern "C" void exit (int);
10643#endif
10644
10645void fnord() { int i=42;}
10646int main ()
10647{
10648  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10649  int status = $lt_dlunknown;
10650
10651  if (self)
10652    {
10653      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10654      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10655      /* dlclose (self); */
10656    }
10657
10658    exit (status);
10659}
10660EOF
10661  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10662  (eval $ac_link) 2>&5
10663  ac_status=$?
10664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10665  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10666    (./conftest; exit; ) 2>/dev/null
10667    lt_status=$?
10668    case x$lt_status in
10669      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10670      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10671      x$lt_unknown|x*)  ;;
10672    esac
10673  else :
10674    # compilation failed
10675
10676  fi
10677fi
10678rm -fr conftest*
10679
10680	  LIBS="$save_LIBS"
10681
10682fi
10683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
10684$as_echo "$libltdl_cv_need_uscore" >&6; }
10685  fi
10686fi
10687
10688if test x"$libltdl_cv_need_uscore" = xyes; then
10689
10690$as_echo "#define NEED_USCORE 1" >>confdefs.h
10691
10692fi
10693
10694
10695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
10696$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
10697if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then :
10698  $as_echo_n "(cached) " >&6
10699else
10700  # PORTME does your system automatically load deplibs for dlopen?
10701  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10702  # For now, we just catch OSes we know something about -- in the
10703  # future, we'll try test this programmatically.
10704  libltdl_cv_sys_dlopen_deplibs=unknown
10705  case "$host_os" in
10706  aix3*|aix4.1.*|aix4.2.*)
10707    # Unknown whether this is true for these versions of AIX, but
10708    # we want this `case' here to explicitly catch those versions.
10709    libltdl_cv_sys_dlopen_deplibs=unknown
10710    ;;
10711  aix[45]*)
10712    libltdl_cv_sys_dlopen_deplibs=yes
10713    ;;
10714  darwin*)
10715    # Assuming the user has installed a libdl from somewhere, this is true
10716    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10717    libltdl_cv_sys_dlopen_deplibs=yes
10718    ;;
10719  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10720    # GNU and its variants, using gnu ld.so (Glibc)
10721    libltdl_cv_sys_dlopen_deplibs=yes
10722    ;;
10723  hpux10*|hpux11*)
10724    libltdl_cv_sys_dlopen_deplibs=yes
10725    ;;
10726  irix[12345]*|irix6.[01]*)
10727    # Catch all versions of IRIX before 6.2, and indicate that we don't
10728    # know how it worked for any of those versions.
10729    libltdl_cv_sys_dlopen_deplibs=unknown
10730    ;;
10731  irix*)
10732    # The case above catches anything before 6.2, and it's known that
10733    # at 6.2 and later dlopen does load deplibs.
10734    libltdl_cv_sys_dlopen_deplibs=yes
10735    ;;
10736  netbsd*)
10737    libltdl_cv_sys_dlopen_deplibs=yes
10738    ;;
10739  openbsd*)
10740    libltdl_cv_sys_dlopen_deplibs=yes
10741    ;;
10742  osf[1234]*)
10743    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10744    # it did *not* use an RPATH in a shared library to find objects the
10745    # library depends on, so we explictly say `no'.
10746    libltdl_cv_sys_dlopen_deplibs=no
10747    ;;
10748  osf5.0|osf5.0a|osf5.1)
10749    # dlopen *does* load deplibs and with the right loader patch applied
10750    # it even uses RPATH in a shared library to search for shared objects
10751    # that the library depends on, but there's no easy way to know if that
10752    # patch is installed.  Since this is the case, all we can really
10753    # say is unknown -- it depends on the patch being installed.  If
10754    # it is, this changes to `yes'.  Without it, it would be `no'.
10755    libltdl_cv_sys_dlopen_deplibs=unknown
10756    ;;
10757  osf*)
10758    # the two cases above should catch all versions of osf <= 5.1.  Read
10759    # the comments above for what we know about them.
10760    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10761    # is used to find them so we can finally say `yes'.
10762    libltdl_cv_sys_dlopen_deplibs=yes
10763    ;;
10764  solaris*)
10765    libltdl_cv_sys_dlopen_deplibs=yes
10766    ;;
10767  esac
10768
10769fi
10770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10771$as_echo "$libltdl_cv_sys_dlopen_deplibs" >&6; }
10772if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10773
10774$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
10775
10776fi
10777
10778for ac_header in argz.h
10779do :
10780  ac_fn_c_check_header_mongrel "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default"
10781if test "x$ac_cv_header_argz_h" = x""yes; then :
10782  cat >>confdefs.h <<_ACEOF
10783#define HAVE_ARGZ_H 1
10784_ACEOF
10785
10786fi
10787
10788done
10789
10790
10791ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if HAVE_ARGZ_H
10792#  include <argz.h>
10793#endif
10794"
10795if test "x$ac_cv_type_error_t" = x""yes; then :
10796
10797cat >>confdefs.h <<_ACEOF
10798#define HAVE_ERROR_T 1
10799_ACEOF
10800
10801
10802else
10803
10804$as_echo "#define error_t int" >>confdefs.h
10805
10806fi
10807
10808
10809for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10810do :
10811  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10812ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10813eval as_val=\$$as_ac_var
10814   if test "x$as_val" = x""yes; then :
10815  cat >>confdefs.h <<_ACEOF
10816#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10817_ACEOF
10818
10819fi
10820done
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10842		  stdio.h unistd.h
10843do :
10844  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10845ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10846eval as_val=\$$as_ac_Header
10847   if test "x$as_val" = x""yes; then :
10848  cat >>confdefs.h <<_ACEOF
10849#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10850_ACEOF
10851
10852fi
10853
10854done
10855
10856for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10857do :
10858  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10859ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10860eval as_val=\$$as_ac_Header
10861   if test "x$as_val" = x""yes; then :
10862  cat >>confdefs.h <<_ACEOF
10863#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10864_ACEOF
10865
10866fi
10867
10868done
10869
10870for ac_header in string.h strings.h
10871do :
10872  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10873ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10874eval as_val=\$$as_ac_Header
10875   if test "x$as_val" = x""yes; then :
10876  cat >>confdefs.h <<_ACEOF
10877#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10878_ACEOF
10879 break
10880fi
10881
10882done
10883
10884
10885for ac_func in strchr index
10886do :
10887  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10888ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10889eval as_val=\$$as_ac_var
10890   if test "x$as_val" = x""yes; then :
10891  cat >>confdefs.h <<_ACEOF
10892#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10893_ACEOF
10894 break
10895fi
10896done
10897
10898for ac_func in strrchr rindex
10899do :
10900  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10901ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10902eval as_val=\$$as_ac_var
10903   if test "x$as_val" = x""yes; then :
10904  cat >>confdefs.h <<_ACEOF
10905#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10906_ACEOF
10907 break
10908fi
10909done
10910
10911for ac_func in memcpy bcopy
10912do :
10913  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10914ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10915eval as_val=\$$as_ac_var
10916   if test "x$as_val" = x""yes; then :
10917  cat >>confdefs.h <<_ACEOF
10918#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10919_ACEOF
10920 break
10921fi
10922done
10923
10924for ac_func in memmove strcmp
10925do :
10926  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10927ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10928eval as_val=\$$as_ac_var
10929   if test "x$as_val" = x""yes; then :
10930  cat >>confdefs.h <<_ACEOF
10931#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10932_ACEOF
10933
10934fi
10935done
10936
10937for ac_func in closedir opendir readdir
10938do :
10939  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10940ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10941eval as_val=\$$as_ac_var
10942   if test "x$as_val" = x""yes; then :
10943  cat >>confdefs.h <<_ACEOF
10944#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10945_ACEOF
10946
10947fi
10948done
10949
10950
10951
10952
10953## -------- ##
10954## Outputs. ##
10955## -------- ##
10956ac_config_files="$ac_config_files Makefile"
10957
10958cat >confcache <<\_ACEOF
10959# This file is a shell script that caches the results of configure
10960# tests run on this system so they can be shared between configure
10961# scripts and configure runs, see configure's option --config-cache.
10962# It is not useful on other systems.  If it contains results you don't
10963# want to keep, you may remove or edit it.
10964#
10965# config.status only pays attention to the cache file if you give it
10966# the --recheck option to rerun configure.
10967#
10968# `ac_cv_env_foo' variables (set or unset) will be overridden when
10969# loading this file, other *unset* `ac_cv_foo' will be assigned the
10970# following values.
10971
10972_ACEOF
10973
10974# The following way of writing the cache mishandles newlines in values,
10975# but we know of no workaround that is simple, portable, and efficient.
10976# So, we kill variables containing newlines.
10977# Ultrix sh set writes to stderr and can't be redirected directly,
10978# and sets the high bit in the cache file unless we assign to the vars.
10979(
10980  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10981    eval ac_val=\$$ac_var
10982    case $ac_val in #(
10983    *${as_nl}*)
10984      case $ac_var in #(
10985      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10986$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10987      esac
10988      case $ac_var in #(
10989      _ | IFS | as_nl) ;; #(
10990      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10991      *) { eval $ac_var=; unset $ac_var;} ;;
10992      esac ;;
10993    esac
10994  done
10995
10996  (set) 2>&1 |
10997    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10998    *${as_nl}ac_space=\ *)
10999      # `set' does not quote correctly, so add quotes: double-quote
11000      # substitution turns \\\\ into \\, and sed turns \\ into \.
11001      sed -n \
11002	"s/'/'\\\\''/g;
11003	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11004      ;; #(
11005    *)
11006      # `set' quotes correctly as required by POSIX, so do not add quotes.
11007      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11008      ;;
11009    esac |
11010    sort
11011) |
11012  sed '
11013     /^ac_cv_env_/b end
11014     t clear
11015     :clear
11016     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11017     t end
11018     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11019     :end' >>confcache
11020if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11021  if test -w "$cache_file"; then
11022    test "x$cache_file" != "x/dev/null" &&
11023      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11024$as_echo "$as_me: updating cache $cache_file" >&6;}
11025    cat confcache >$cache_file
11026  else
11027    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11028$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11029  fi
11030fi
11031rm -f confcache
11032
11033test "x$prefix" = xNONE && prefix=$ac_default_prefix
11034# Let make expand exec_prefix.
11035test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11036
11037DEFS=-DHAVE_CONFIG_H
11038
11039ac_libobjs=
11040ac_ltlibobjs=
11041for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11042  # 1. Remove the extension, and $U if already installed.
11043  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11044  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11045  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11046  #    will be set to the directory where LIBOBJS objects are built.
11047  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11048  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11049done
11050LIBOBJS=$ac_libobjs
11051
11052LTLIBOBJS=$ac_ltlibobjs
11053
11054
11055if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11056  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11057Usually this means the macro was only invoked conditionally." "$LINENO" 5
11058fi
11059 if test -n "$EXEEXT"; then
11060  am__EXEEXT_TRUE=
11061  am__EXEEXT_FALSE='#'
11062else
11063  am__EXEEXT_TRUE='#'
11064  am__EXEEXT_FALSE=
11065fi
11066
11067if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11068  as_fn_error "conditional \"AMDEP\" was never defined.
11069Usually this means the macro was only invoked conditionally." "$LINENO" 5
11070fi
11071if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11072  as_fn_error "conditional \"am__fastdepCC\" was never defined.
11073Usually this means the macro was only invoked conditionally." "$LINENO" 5
11074fi
11075if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
11076  as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
11077Usually this means the macro was only invoked conditionally." "$LINENO" 5
11078fi
11079if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
11080  as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
11081Usually this means the macro was only invoked conditionally." "$LINENO" 5
11082fi
11083
11084: ${CONFIG_STATUS=./config.status}
11085ac_write_fail=0
11086ac_clean_files_save=$ac_clean_files
11087ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11088{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11089$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11090as_write_fail=0
11091cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11092#! $SHELL
11093# Generated by $as_me.
11094# Run this file to recreate the current configuration.
11095# Compiler output produced by configure, useful for debugging
11096# configure, is in config.log if it exists.
11097
11098debug=false
11099ac_cs_recheck=false
11100ac_cs_silent=false
11101
11102SHELL=\${CONFIG_SHELL-$SHELL}
11103export SHELL
11104_ASEOF
11105cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11106## -------------------- ##
11107## M4sh Initialization. ##
11108## -------------------- ##
11109
11110# Be more Bourne compatible
11111DUALCASE=1; export DUALCASE # for MKS sh
11112if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11113  emulate sh
11114  NULLCMD=:
11115  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11116  # is contrary to our usage.  Disable this feature.
11117  alias -g '${1+"$@"}'='"$@"'
11118  setopt NO_GLOB_SUBST
11119else
11120  case `(set -o) 2>/dev/null` in #(
11121  *posix*) :
11122    set -o posix ;; #(
11123  *) :
11124     ;;
11125esac
11126fi
11127
11128
11129as_nl='
11130'
11131export as_nl
11132# Printing a long string crashes Solaris 7 /usr/bin/printf.
11133as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11134as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11135as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11136# Prefer a ksh shell builtin over an external printf program on Solaris,
11137# but without wasting forks for bash or zsh.
11138if test -z "$BASH_VERSION$ZSH_VERSION" \
11139    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11140  as_echo='print -r --'
11141  as_echo_n='print -rn --'
11142elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11143  as_echo='printf %s\n'
11144  as_echo_n='printf %s'
11145else
11146  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11147    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11148    as_echo_n='/usr/ucb/echo -n'
11149  else
11150    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11151    as_echo_n_body='eval
11152      arg=$1;
11153      case $arg in #(
11154      *"$as_nl"*)
11155	expr "X$arg" : "X\\(.*\\)$as_nl";
11156	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11157      esac;
11158      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11159    '
11160    export as_echo_n_body
11161    as_echo_n='sh -c $as_echo_n_body as_echo'
11162  fi
11163  export as_echo_body
11164  as_echo='sh -c $as_echo_body as_echo'
11165fi
11166
11167# The user is always right.
11168if test "${PATH_SEPARATOR+set}" != set; then
11169  PATH_SEPARATOR=:
11170  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11171    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11172      PATH_SEPARATOR=';'
11173  }
11174fi
11175
11176
11177# IFS
11178# We need space, tab and new line, in precisely that order.  Quoting is
11179# there to prevent editors from complaining about space-tab.
11180# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11181# splitting by setting IFS to empty value.)
11182IFS=" ""	$as_nl"
11183
11184# Find who we are.  Look in the path if we contain no directory separator.
11185case $0 in #((
11186  *[\\/]* ) as_myself=$0 ;;
11187  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188for as_dir in $PATH
11189do
11190  IFS=$as_save_IFS
11191  test -z "$as_dir" && as_dir=.
11192    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11193  done
11194IFS=$as_save_IFS
11195
11196     ;;
11197esac
11198# We did not find ourselves, most probably we were run as `sh COMMAND'
11199# in which case we are not to be found in the path.
11200if test "x$as_myself" = x; then
11201  as_myself=$0
11202fi
11203if test ! -f "$as_myself"; then
11204  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11205  exit 1
11206fi
11207
11208# Unset variables that we do not need and which cause bugs (e.g. in
11209# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11210# suppresses any "Segmentation fault" message there.  '((' could
11211# trigger a bug in pdksh 5.2.14.
11212for as_var in BASH_ENV ENV MAIL MAILPATH
11213do eval test x\${$as_var+set} = xset \
11214  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11215done
11216PS1='$ '
11217PS2='> '
11218PS4='+ '
11219
11220# NLS nuisances.
11221LC_ALL=C
11222export LC_ALL
11223LANGUAGE=C
11224export LANGUAGE
11225
11226# CDPATH.
11227(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11228
11229
11230# as_fn_error ERROR [LINENO LOG_FD]
11231# ---------------------------------
11232# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11233# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11234# script with status $?, using 1 if that was 0.
11235as_fn_error ()
11236{
11237  as_status=$?; test $as_status -eq 0 && as_status=1
11238  if test "$3"; then
11239    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11240    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11241  fi
11242  $as_echo "$as_me: error: $1" >&2
11243  as_fn_exit $as_status
11244} # as_fn_error
11245
11246
11247# as_fn_set_status STATUS
11248# -----------------------
11249# Set $? to STATUS, without forking.
11250as_fn_set_status ()
11251{
11252  return $1
11253} # as_fn_set_status
11254
11255# as_fn_exit STATUS
11256# -----------------
11257# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11258as_fn_exit ()
11259{
11260  set +e
11261  as_fn_set_status $1
11262  exit $1
11263} # as_fn_exit
11264
11265# as_fn_unset VAR
11266# ---------------
11267# Portably unset VAR.
11268as_fn_unset ()
11269{
11270  { eval $1=; unset $1;}
11271}
11272as_unset=as_fn_unset
11273# as_fn_append VAR VALUE
11274# ----------------------
11275# Append the text in VALUE to the end of the definition contained in VAR. Take
11276# advantage of any shell optimizations that allow amortized linear growth over
11277# repeated appends, instead of the typical quadratic growth present in naive
11278# implementations.
11279if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11280  eval 'as_fn_append ()
11281  {
11282    eval $1+=\$2
11283  }'
11284else
11285  as_fn_append ()
11286  {
11287    eval $1=\$$1\$2
11288  }
11289fi # as_fn_append
11290
11291# as_fn_arith ARG...
11292# ------------------
11293# Perform arithmetic evaluation on the ARGs, and store the result in the
11294# global $as_val. Take advantage of shells that can avoid forks. The arguments
11295# must be portable across $(()) and expr.
11296if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11297  eval 'as_fn_arith ()
11298  {
11299    as_val=$(( $* ))
11300  }'
11301else
11302  as_fn_arith ()
11303  {
11304    as_val=`expr "$@" || test $? -eq 1`
11305  }
11306fi # as_fn_arith
11307
11308
11309if expr a : '\(a\)' >/dev/null 2>&1 &&
11310   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11311  as_expr=expr
11312else
11313  as_expr=false
11314fi
11315
11316if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11317  as_basename=basename
11318else
11319  as_basename=false
11320fi
11321
11322if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11323  as_dirname=dirname
11324else
11325  as_dirname=false
11326fi
11327
11328as_me=`$as_basename -- "$0" ||
11329$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11330	 X"$0" : 'X\(//\)$' \| \
11331	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11332$as_echo X/"$0" |
11333    sed '/^.*\/\([^/][^/]*\)\/*$/{
11334	    s//\1/
11335	    q
11336	  }
11337	  /^X\/\(\/\/\)$/{
11338	    s//\1/
11339	    q
11340	  }
11341	  /^X\/\(\/\).*/{
11342	    s//\1/
11343	    q
11344	  }
11345	  s/.*/./; q'`
11346
11347# Avoid depending upon Character Ranges.
11348as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11349as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11350as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11351as_cr_digits='0123456789'
11352as_cr_alnum=$as_cr_Letters$as_cr_digits
11353
11354ECHO_C= ECHO_N= ECHO_T=
11355case `echo -n x` in #(((((
11356-n*)
11357  case `echo 'xy\c'` in
11358  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11359  xy)  ECHO_C='\c';;
11360  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11361       ECHO_T='	';;
11362  esac;;
11363*)
11364  ECHO_N='-n';;
11365esac
11366
11367rm -f conf$$ conf$$.exe conf$$.file
11368if test -d conf$$.dir; then
11369  rm -f conf$$.dir/conf$$.file
11370else
11371  rm -f conf$$.dir
11372  mkdir conf$$.dir 2>/dev/null
11373fi
11374if (echo >conf$$.file) 2>/dev/null; then
11375  if ln -s conf$$.file conf$$ 2>/dev/null; then
11376    as_ln_s='ln -s'
11377    # ... but there are two gotchas:
11378    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11379    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11380    # In both cases, we have to default to `cp -p'.
11381    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11382      as_ln_s='cp -p'
11383  elif ln conf$$.file conf$$ 2>/dev/null; then
11384    as_ln_s=ln
11385  else
11386    as_ln_s='cp -p'
11387  fi
11388else
11389  as_ln_s='cp -p'
11390fi
11391rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11392rmdir conf$$.dir 2>/dev/null
11393
11394
11395# as_fn_mkdir_p
11396# -------------
11397# Create "$as_dir" as a directory, including parents if necessary.
11398as_fn_mkdir_p ()
11399{
11400
11401  case $as_dir in #(
11402  -*) as_dir=./$as_dir;;
11403  esac
11404  test -d "$as_dir" || eval $as_mkdir_p || {
11405    as_dirs=
11406    while :; do
11407      case $as_dir in #(
11408      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11409      *) as_qdir=$as_dir;;
11410      esac
11411      as_dirs="'$as_qdir' $as_dirs"
11412      as_dir=`$as_dirname -- "$as_dir" ||
11413$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11414	 X"$as_dir" : 'X\(//\)[^/]' \| \
11415	 X"$as_dir" : 'X\(//\)$' \| \
11416	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11417$as_echo X"$as_dir" |
11418    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11419	    s//\1/
11420	    q
11421	  }
11422	  /^X\(\/\/\)[^/].*/{
11423	    s//\1/
11424	    q
11425	  }
11426	  /^X\(\/\/\)$/{
11427	    s//\1/
11428	    q
11429	  }
11430	  /^X\(\/\).*/{
11431	    s//\1/
11432	    q
11433	  }
11434	  s/.*/./; q'`
11435      test -d "$as_dir" && break
11436    done
11437    test -z "$as_dirs" || eval "mkdir $as_dirs"
11438  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11439
11440
11441} # as_fn_mkdir_p
11442if mkdir -p . 2>/dev/null; then
11443  as_mkdir_p='mkdir -p "$as_dir"'
11444else
11445  test -d ./-p && rmdir ./-p
11446  as_mkdir_p=false
11447fi
11448
11449if test -x / >/dev/null 2>&1; then
11450  as_test_x='test -x'
11451else
11452  if ls -dL / >/dev/null 2>&1; then
11453    as_ls_L_option=L
11454  else
11455    as_ls_L_option=
11456  fi
11457  as_test_x='
11458    eval sh -c '\''
11459      if test -d "$1"; then
11460	test -d "$1/.";
11461      else
11462	case $1 in #(
11463	-*)set "./$1";;
11464	esac;
11465	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11466	???[sx]*):;;*)false;;esac;fi
11467    '\'' sh
11468  '
11469fi
11470as_executable_p=$as_test_x
11471
11472# Sed expression to map a string onto a valid CPP name.
11473as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11474
11475# Sed expression to map a string onto a valid variable name.
11476as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11477
11478
11479exec 6>&1
11480## ----------------------------------- ##
11481## Main body of $CONFIG_STATUS script. ##
11482## ----------------------------------- ##
11483_ASEOF
11484test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11485
11486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11487# Save the log message, to keep $0 and so on meaningful, and to
11488# report actual input values of CONFIG_FILES etc. instead of their
11489# values after options handling.
11490ac_log="
11491This file was extended by libltdl $as_me 1.2, which was
11492generated by GNU Autoconf 2.64.  Invocation command line was
11493
11494  CONFIG_FILES    = $CONFIG_FILES
11495  CONFIG_HEADERS  = $CONFIG_HEADERS
11496  CONFIG_LINKS    = $CONFIG_LINKS
11497  CONFIG_COMMANDS = $CONFIG_COMMANDS
11498  $ $0 $@
11499
11500on `(hostname || uname -n) 2>/dev/null | sed 1q`
11501"
11502
11503_ACEOF
11504
11505case $ac_config_files in *"
11506"*) set x $ac_config_files; shift; ac_config_files=$*;;
11507esac
11508
11509case $ac_config_headers in *"
11510"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11511esac
11512
11513
11514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11515# Files that config.status was made for.
11516config_files="$ac_config_files"
11517config_headers="$ac_config_headers"
11518config_commands="$ac_config_commands"
11519
11520_ACEOF
11521
11522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11523ac_cs_usage="\
11524\`$as_me' instantiates files and other configuration actions
11525from templates according to the current configuration.  Unless the files
11526and actions are specified as TAGs, all are instantiated by default.
11527
11528Usage: $0 [OPTION]... [TAG]...
11529
11530  -h, --help       print this help, then exit
11531  -V, --version    print version number and configuration settings, then exit
11532  -q, --quiet, --silent
11533                   do not print progress messages
11534  -d, --debug      don't remove temporary files
11535      --recheck    update $as_me by reconfiguring in the same conditions
11536      --file=FILE[:TEMPLATE]
11537                   instantiate the configuration file FILE
11538      --header=FILE[:TEMPLATE]
11539                   instantiate the configuration header FILE
11540
11541Configuration files:
11542$config_files
11543
11544Configuration headers:
11545$config_headers
11546
11547Configuration commands:
11548$config_commands
11549
11550Report bugs to <bug-libtool@gnu.org>."
11551
11552_ACEOF
11553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11554ac_cs_version="\\
11555libltdl config.status 1.2
11556configured by $0, generated by GNU Autoconf 2.64,
11557  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11558
11559Copyright (C) 2009 Free Software Foundation, Inc.
11560This config.status script is free software; the Free Software Foundation
11561gives unlimited permission to copy, distribute and modify it."
11562
11563ac_pwd='$ac_pwd'
11564srcdir='$srcdir'
11565INSTALL='$INSTALL'
11566MKDIR_P='$MKDIR_P'
11567AWK='$AWK'
11568test -n "\$AWK" || AWK=awk
11569_ACEOF
11570
11571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11572# The default lists apply if the user does not specify any file.
11573ac_need_defaults=:
11574while test $# != 0
11575do
11576  case $1 in
11577  --*=*)
11578    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11579    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11580    ac_shift=:
11581    ;;
11582  *)
11583    ac_option=$1
11584    ac_optarg=$2
11585    ac_shift=shift
11586    ;;
11587  esac
11588
11589  case $ac_option in
11590  # Handling of the options.
11591  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11592    ac_cs_recheck=: ;;
11593  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11594    $as_echo "$ac_cs_version"; exit ;;
11595  --debug | --debu | --deb | --de | --d | -d )
11596    debug=: ;;
11597  --file | --fil | --fi | --f )
11598    $ac_shift
11599    case $ac_optarg in
11600    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11601    esac
11602    as_fn_append CONFIG_FILES " '$ac_optarg'"
11603    ac_need_defaults=false;;
11604  --header | --heade | --head | --hea )
11605    $ac_shift
11606    case $ac_optarg in
11607    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11608    esac
11609    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11610    ac_need_defaults=false;;
11611  --he | --h)
11612    # Conflict between --help and --header
11613    as_fn_error "ambiguous option: \`$1'
11614Try \`$0 --help' for more information.";;
11615  --help | --hel | -h )
11616    $as_echo "$ac_cs_usage"; exit ;;
11617  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11618  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11619    ac_cs_silent=: ;;
11620
11621  # This is an error.
11622  -*) as_fn_error "unrecognized option: \`$1'
11623Try \`$0 --help' for more information." ;;
11624
11625  *) as_fn_append ac_config_targets " $1"
11626     ac_need_defaults=false ;;
11627
11628  esac
11629  shift
11630done
11631
11632ac_configure_extra_args=
11633
11634if $ac_cs_silent; then
11635  exec 6>/dev/null
11636  ac_configure_extra_args="$ac_configure_extra_args --silent"
11637fi
11638
11639_ACEOF
11640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11641if \$ac_cs_recheck; then
11642  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11643  shift
11644  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11645  CONFIG_SHELL='$SHELL'
11646  export CONFIG_SHELL
11647  exec "\$@"
11648fi
11649
11650_ACEOF
11651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11652exec 5>>config.log
11653{
11654  echo
11655  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11656## Running $as_me. ##
11657_ASBOX
11658  $as_echo "$ac_log"
11659} >&5
11660
11661_ACEOF
11662cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11663#
11664# INIT-COMMANDS
11665#
11666
11667srcdir="$srcdir"
11668host="$host"
11669target="$target"
11670with_multisubdir="$with_multisubdir"
11671with_multisrctop="$with_multisrctop"
11672with_target_subdir="$with_target_subdir"
11673ac_configure_args="${multilib_arg} ${ac_configure_args}"
11674multi_basedir="$multi_basedir"
11675CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11676CC="$CC"
11677CXX="$CXX"
11678GFORTRAN="$GFORTRAN"
11679GCJ="$GCJ"
11680AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11681
11682_ACEOF
11683
11684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11685
11686# Handling of arguments.
11687for ac_config_target in $ac_config_targets
11688do
11689  case $ac_config_target in
11690    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11691    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
11692    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11693    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11694
11695  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11696  esac
11697done
11698
11699
11700# If the user did not use the arguments to specify the items to instantiate,
11701# then the envvar interface is used.  Set only those that are not.
11702# We use the long form for the default assignment because of an extremely
11703# bizarre bug on SunOS 4.1.3.
11704if $ac_need_defaults; then
11705  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11706  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11707  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11708fi
11709
11710# Have a temporary directory for convenience.  Make it in the build tree
11711# simply because there is no reason against having it here, and in addition,
11712# creating and moving files from /tmp can sometimes cause problems.
11713# Hook for its removal unless debugging.
11714# Note that there is a small window in which the directory will not be cleaned:
11715# after its creation but before its name has been assigned to `$tmp'.
11716$debug ||
11717{
11718  tmp=
11719  trap 'exit_status=$?
11720  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11721' 0
11722  trap 'as_fn_exit 1' 1 2 13 15
11723}
11724# Create a (secure) tmp directory for tmp files.
11725
11726{
11727  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11728  test -n "$tmp" && test -d "$tmp"
11729}  ||
11730{
11731  tmp=./conf$$-$RANDOM
11732  (umask 077 && mkdir "$tmp")
11733} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11734
11735# Set up the scripts for CONFIG_FILES section.
11736# No need to generate them if there are no CONFIG_FILES.
11737# This happens for instance with `./config.status config.h'.
11738if test -n "$CONFIG_FILES"; then
11739
11740
11741ac_cr=`echo X | tr X '\015'`
11742# On cygwin, bash can eat \r inside `` if the user requested igncr.
11743# But we know of no other shell where ac_cr would be empty at this
11744# point, so we can use a bashism as a fallback.
11745if test "x$ac_cr" = x; then
11746  eval ac_cr=\$\'\\r\'
11747fi
11748ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11749if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11750  ac_cs_awk_cr='\r'
11751else
11752  ac_cs_awk_cr=$ac_cr
11753fi
11754
11755echo 'BEGIN {' >"$tmp/subs1.awk" &&
11756_ACEOF
11757
11758
11759{
11760  echo "cat >conf$$subs.awk <<_ACEOF" &&
11761  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11762  echo "_ACEOF"
11763} >conf$$subs.sh ||
11764  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11765ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11766ac_delim='%!_!# '
11767for ac_last_try in false false false false false :; do
11768  . ./conf$$subs.sh ||
11769    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11770
11771  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11772  if test $ac_delim_n = $ac_delim_num; then
11773    break
11774  elif $ac_last_try; then
11775    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11776  else
11777    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11778  fi
11779done
11780rm -f conf$$subs.sh
11781
11782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11783cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11784_ACEOF
11785sed -n '
11786h
11787s/^/S["/; s/!.*/"]=/
11788p
11789g
11790s/^[^!]*!//
11791:repl
11792t repl
11793s/'"$ac_delim"'$//
11794t delim
11795:nl
11796h
11797s/\(.\{148\}\).*/\1/
11798t more1
11799s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11800p
11801n
11802b repl
11803:more1
11804s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11805p
11806g
11807s/.\{148\}//
11808t nl
11809:delim
11810h
11811s/\(.\{148\}\).*/\1/
11812t more2
11813s/["\\]/\\&/g; s/^/"/; s/$/"/
11814p
11815b
11816:more2
11817s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11818p
11819g
11820s/.\{148\}//
11821t delim
11822' <conf$$subs.awk | sed '
11823/^[^""]/{
11824  N
11825  s/\n//
11826}
11827' >>$CONFIG_STATUS || ac_write_fail=1
11828rm -f conf$$subs.awk
11829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11830_ACAWK
11831cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11832  for (key in S) S_is_set[key] = 1
11833  FS = ""
11834
11835}
11836{
11837  line = $ 0
11838  nfields = split(line, field, "@")
11839  substed = 0
11840  len = length(field[1])
11841  for (i = 2; i < nfields; i++) {
11842    key = field[i]
11843    keylen = length(key)
11844    if (S_is_set[key]) {
11845      value = S[key]
11846      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11847      len += length(value) + length(field[++i])
11848      substed = 1
11849    } else
11850      len += 1 + keylen
11851  }
11852
11853  print line
11854}
11855
11856_ACAWK
11857_ACEOF
11858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11859if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11860  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11861else
11862  cat
11863fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11864  || as_fn_error "could not setup config files machinery" "$LINENO" 5
11865_ACEOF
11866
11867# VPATH may cause trouble with some makes, so we remove $(srcdir),
11868# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11869# trailing colons and then remove the whole line if VPATH becomes empty
11870# (actually we leave an empty line to preserve line numbers).
11871if test "x$srcdir" = x.; then
11872  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
11873s/:*\$(srcdir):*/:/
11874s/:*\${srcdir}:*/:/
11875s/:*@srcdir@:*/:/
11876s/^\([^=]*=[	 ]*\):*/\1/
11877s/:*$//
11878s/^[^=]*=[	 ]*$//
11879}'
11880fi
11881
11882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11883fi # test -n "$CONFIG_FILES"
11884
11885# Set up the scripts for CONFIG_HEADERS section.
11886# No need to generate them if there are no CONFIG_HEADERS.
11887# This happens for instance with `./config.status Makefile'.
11888if test -n "$CONFIG_HEADERS"; then
11889cat >"$tmp/defines.awk" <<\_ACAWK ||
11890BEGIN {
11891_ACEOF
11892
11893# Transform confdefs.h into an awk script `defines.awk', embedded as
11894# here-document in config.status, that substitutes the proper values into
11895# config.h.in to produce config.h.
11896
11897# Create a delimiter string that does not exist in confdefs.h, to ease
11898# handling of long lines.
11899ac_delim='%!_!# '
11900for ac_last_try in false false :; do
11901  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11902  if test -z "$ac_t"; then
11903    break
11904  elif $ac_last_try; then
11905    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
11906  else
11907    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11908  fi
11909done
11910
11911# For the awk script, D is an array of macro values keyed by name,
11912# likewise P contains macro parameters if any.  Preserve backslash
11913# newline sequences.
11914
11915ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11916sed -n '
11917s/.\{148\}/&'"$ac_delim"'/g
11918t rset
11919:rset
11920s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11921t def
11922d
11923:def
11924s/\\$//
11925t bsnl
11926s/["\\]/\\&/g
11927s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11928D["\1"]=" \3"/p
11929s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11930d
11931:bsnl
11932s/["\\]/\\&/g
11933s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11934D["\1"]=" \3\\\\\\n"\\/p
11935t cont
11936s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11937t cont
11938d
11939:cont
11940n
11941s/.\{148\}/&'"$ac_delim"'/g
11942t clear
11943:clear
11944s/\\$//
11945t bsnlc
11946s/["\\]/\\&/g; s/^/"/; s/$/"/p
11947d
11948:bsnlc
11949s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11950b cont
11951' <confdefs.h | sed '
11952s/'"$ac_delim"'/"\\\
11953"/g' >>$CONFIG_STATUS || ac_write_fail=1
11954
11955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11956  for (key in D) D_is_set[key] = 1
11957  FS = ""
11958}
11959/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11960  line = \$ 0
11961  split(line, arg, " ")
11962  if (arg[1] == "#") {
11963    defundef = arg[2]
11964    mac1 = arg[3]
11965  } else {
11966    defundef = substr(arg[1], 2)
11967    mac1 = arg[2]
11968  }
11969  split(mac1, mac2, "(") #)
11970  macro = mac2[1]
11971  prefix = substr(line, 1, index(line, defundef) - 1)
11972  if (D_is_set[macro]) {
11973    # Preserve the white space surrounding the "#".
11974    print prefix "define", macro P[macro] D[macro]
11975    next
11976  } else {
11977    # Replace #undef with comments.  This is necessary, for example,
11978    # in the case of _POSIX_SOURCE, which is predefined and required
11979    # on some systems where configure will not decide to define it.
11980    if (defundef == "undef") {
11981      print "/*", prefix defundef, macro, "*/"
11982      next
11983    }
11984  }
11985}
11986{ print }
11987_ACAWK
11988_ACEOF
11989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11990  as_fn_error "could not setup config headers machinery" "$LINENO" 5
11991fi # test -n "$CONFIG_HEADERS"
11992
11993
11994eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11995shift
11996for ac_tag
11997do
11998  case $ac_tag in
11999  :[FHLC]) ac_mode=$ac_tag; continue;;
12000  esac
12001  case $ac_mode$ac_tag in
12002  :[FHL]*:*);;
12003  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12004  :[FH]-) ac_tag=-:-;;
12005  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12006  esac
12007  ac_save_IFS=$IFS
12008  IFS=:
12009  set x $ac_tag
12010  IFS=$ac_save_IFS
12011  shift
12012  ac_file=$1
12013  shift
12014
12015  case $ac_mode in
12016  :L) ac_source=$1;;
12017  :[FH])
12018    ac_file_inputs=
12019    for ac_f
12020    do
12021      case $ac_f in
12022      -) ac_f="$tmp/stdin";;
12023      *) # Look for the file first in the build tree, then in the source tree
12024	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12025	 # because $ac_f cannot contain `:'.
12026	 test -f "$ac_f" ||
12027	   case $ac_f in
12028	   [\\/$]*) false;;
12029	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12030	   esac ||
12031	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12032      esac
12033      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12034      as_fn_append ac_file_inputs " '$ac_f'"
12035    done
12036
12037    # Let's still pretend it is `configure' which instantiates (i.e., don't
12038    # use $as_me), people would be surprised to read:
12039    #    /* config.h.  Generated by config.status.  */
12040    configure_input='Generated from '`
12041	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12042	`' by configure.'
12043    if test x"$ac_file" != x-; then
12044      configure_input="$ac_file.  $configure_input"
12045      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12046$as_echo "$as_me: creating $ac_file" >&6;}
12047    fi
12048    # Neutralize special characters interpreted by sed in replacement strings.
12049    case $configure_input in #(
12050    *\&* | *\|* | *\\* )
12051       ac_sed_conf_input=`$as_echo "$configure_input" |
12052       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12053    *) ac_sed_conf_input=$configure_input;;
12054    esac
12055
12056    case $ac_tag in
12057    *:-:* | *:-) cat >"$tmp/stdin" \
12058      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12059    esac
12060    ;;
12061  esac
12062
12063  ac_dir=`$as_dirname -- "$ac_file" ||
12064$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12065	 X"$ac_file" : 'X\(//\)[^/]' \| \
12066	 X"$ac_file" : 'X\(//\)$' \| \
12067	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12068$as_echo X"$ac_file" |
12069    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12070	    s//\1/
12071	    q
12072	  }
12073	  /^X\(\/\/\)[^/].*/{
12074	    s//\1/
12075	    q
12076	  }
12077	  /^X\(\/\/\)$/{
12078	    s//\1/
12079	    q
12080	  }
12081	  /^X\(\/\).*/{
12082	    s//\1/
12083	    q
12084	  }
12085	  s/.*/./; q'`
12086  as_dir="$ac_dir"; as_fn_mkdir_p
12087  ac_builddir=.
12088
12089case "$ac_dir" in
12090.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12091*)
12092  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12093  # A ".." for each directory in $ac_dir_suffix.
12094  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12095  case $ac_top_builddir_sub in
12096  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12097  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12098  esac ;;
12099esac
12100ac_abs_top_builddir=$ac_pwd
12101ac_abs_builddir=$ac_pwd$ac_dir_suffix
12102# for backward compatibility:
12103ac_top_builddir=$ac_top_build_prefix
12104
12105case $srcdir in
12106  .)  # We are building in place.
12107    ac_srcdir=.
12108    ac_top_srcdir=$ac_top_builddir_sub
12109    ac_abs_top_srcdir=$ac_pwd ;;
12110  [\\/]* | ?:[\\/]* )  # Absolute name.
12111    ac_srcdir=$srcdir$ac_dir_suffix;
12112    ac_top_srcdir=$srcdir
12113    ac_abs_top_srcdir=$srcdir ;;
12114  *) # Relative name.
12115    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12116    ac_top_srcdir=$ac_top_build_prefix$srcdir
12117    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12118esac
12119ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12120
12121
12122  case $ac_mode in
12123  :F)
12124  #
12125  # CONFIG_FILE
12126  #
12127
12128  case $INSTALL in
12129  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12130  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12131  esac
12132  ac_MKDIR_P=$MKDIR_P
12133  case $MKDIR_P in
12134  [\\/$]* | ?:[\\/]* ) ;;
12135  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12136  esac
12137_ACEOF
12138
12139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12140# If the template does not know about datarootdir, expand it.
12141# FIXME: This hack should be removed a few years after 2.60.
12142ac_datarootdir_hack=; ac_datarootdir_seen=
12143ac_sed_dataroot='
12144/datarootdir/ {
12145  p
12146  q
12147}
12148/@datadir@/p
12149/@docdir@/p
12150/@infodir@/p
12151/@localedir@/p
12152/@mandir@/p'
12153case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12154*datarootdir*) ac_datarootdir_seen=yes;;
12155*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12156  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12157$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12158_ACEOF
12159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12160  ac_datarootdir_hack='
12161  s&@datadir@&$datadir&g
12162  s&@docdir@&$docdir&g
12163  s&@infodir@&$infodir&g
12164  s&@localedir@&$localedir&g
12165  s&@mandir@&$mandir&g
12166  s&\\\${datarootdir}&$datarootdir&g' ;;
12167esac
12168_ACEOF
12169
12170# Neutralize VPATH when `$srcdir' = `.'.
12171# Shell code in configure.ac might set extrasub.
12172# FIXME: do we really want to maintain this feature?
12173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12174ac_sed_extra="$ac_vpsub
12175$extrasub
12176_ACEOF
12177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12178:t
12179/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12180s|@configure_input@|$ac_sed_conf_input|;t t
12181s&@top_builddir@&$ac_top_builddir_sub&;t t
12182s&@top_build_prefix@&$ac_top_build_prefix&;t t
12183s&@srcdir@&$ac_srcdir&;t t
12184s&@abs_srcdir@&$ac_abs_srcdir&;t t
12185s&@top_srcdir@&$ac_top_srcdir&;t t
12186s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12187s&@builddir@&$ac_builddir&;t t
12188s&@abs_builddir@&$ac_abs_builddir&;t t
12189s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12190s&@INSTALL@&$ac_INSTALL&;t t
12191s&@MKDIR_P@&$ac_MKDIR_P&;t t
12192$ac_datarootdir_hack
12193"
12194eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12195  || as_fn_error "could not create $ac_file" "$LINENO" 5
12196
12197test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12198  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12199  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12200  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12201which seems to be undefined.  Please make sure it is defined." >&5
12202$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12203which seems to be undefined.  Please make sure it is defined." >&2;}
12204
12205  rm -f "$tmp/stdin"
12206  case $ac_file in
12207  -) cat "$tmp/out" && rm -f "$tmp/out";;
12208  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12209  esac \
12210  || as_fn_error "could not create $ac_file" "$LINENO" 5
12211 ;;
12212  :H)
12213  #
12214  # CONFIG_HEADER
12215  #
12216  if test x"$ac_file" != x-; then
12217    {
12218      $as_echo "/* $configure_input  */" \
12219      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12220    } >"$tmp/config.h" \
12221      || as_fn_error "could not create $ac_file" "$LINENO" 5
12222    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12223      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12224$as_echo "$as_me: $ac_file is unchanged" >&6;}
12225    else
12226      rm -f "$ac_file"
12227      mv "$tmp/config.h" "$ac_file" \
12228	|| as_fn_error "could not create $ac_file" "$LINENO" 5
12229    fi
12230  else
12231    $as_echo "/* $configure_input  */" \
12232      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12233      || as_fn_error "could not create -" "$LINENO" 5
12234  fi
12235# Compute "$ac_file"'s index in $config_headers.
12236_am_arg="$ac_file"
12237_am_stamp_count=1
12238for _am_header in $config_headers :; do
12239  case $_am_header in
12240    $_am_arg | $_am_arg:* )
12241      break ;;
12242    * )
12243      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12244  esac
12245done
12246echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12247$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12248	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12249	 X"$_am_arg" : 'X\(//\)$' \| \
12250	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12251$as_echo X"$_am_arg" |
12252    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12253	    s//\1/
12254	    q
12255	  }
12256	  /^X\(\/\/\)[^/].*/{
12257	    s//\1/
12258	    q
12259	  }
12260	  /^X\(\/\/\)$/{
12261	    s//\1/
12262	    q
12263	  }
12264	  /^X\(\/\).*/{
12265	    s//\1/
12266	    q
12267	  }
12268	  s/.*/./; q'`/stamp-h$_am_stamp_count
12269 ;;
12270
12271  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12272$as_echo "$as_me: executing $ac_file commands" >&6;}
12273 ;;
12274  esac
12275
12276
12277  case $ac_file$ac_mode in
12278    "default-1":C)
12279# Only add multilib support code if we just rebuilt the top-level
12280# Makefile.
12281case " $CONFIG_FILES " in
12282 *" Makefile "*)
12283   ac_file=Makefile . ${multi_basedir}/config-ml.in
12284   ;;
12285esac ;;
12286    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12287  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12288  # are listed without --file.  Let's play safe and only enable the eval
12289  # if we detect the quoting.
12290  case $CONFIG_FILES in
12291  *\'*) eval set x "$CONFIG_FILES" ;;
12292  *)   set x $CONFIG_FILES ;;
12293  esac
12294  shift
12295  for mf
12296  do
12297    # Strip MF so we end up with the name of the file.
12298    mf=`echo "$mf" | sed -e 's/:.*$//'`
12299    # Check whether this is an Automake generated Makefile or not.
12300    # We used to match only the files named `Makefile.in', but
12301    # some people rename them; so instead we look at the file content.
12302    # Grep'ing the first line is not enough: some people post-process
12303    # each Makefile.in and add a new line on top of each file to say so.
12304    # Grep'ing the whole file is not good either: AIX grep has a line
12305    # limit of 2048, but all sed's we know have understand at least 4000.
12306    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12307      dirpart=`$as_dirname -- "$mf" ||
12308$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12309	 X"$mf" : 'X\(//\)[^/]' \| \
12310	 X"$mf" : 'X\(//\)$' \| \
12311	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12312$as_echo X"$mf" |
12313    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12314	    s//\1/
12315	    q
12316	  }
12317	  /^X\(\/\/\)[^/].*/{
12318	    s//\1/
12319	    q
12320	  }
12321	  /^X\(\/\/\)$/{
12322	    s//\1/
12323	    q
12324	  }
12325	  /^X\(\/\).*/{
12326	    s//\1/
12327	    q
12328	  }
12329	  s/.*/./; q'`
12330    else
12331      continue
12332    fi
12333    # Extract the definition of DEPDIR, am__include, and am__quote
12334    # from the Makefile without running `make'.
12335    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12336    test -z "$DEPDIR" && continue
12337    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12338    test -z "am__include" && continue
12339    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12340    # When using ansi2knr, U may be empty or an underscore; expand it
12341    U=`sed -n 's/^U = //p' < "$mf"`
12342    # Find all dependency output files, they are included files with
12343    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12344    # simplest approach to changing $(DEPDIR) to its actual value in the
12345    # expansion.
12346    for file in `sed -n "
12347      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12348	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12349      # Make sure the directory exists.
12350      test -f "$dirpart/$file" && continue
12351      fdir=`$as_dirname -- "$file" ||
12352$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12353	 X"$file" : 'X\(//\)[^/]' \| \
12354	 X"$file" : 'X\(//\)$' \| \
12355	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12356$as_echo X"$file" |
12357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12358	    s//\1/
12359	    q
12360	  }
12361	  /^X\(\/\/\)[^/].*/{
12362	    s//\1/
12363	    q
12364	  }
12365	  /^X\(\/\/\)$/{
12366	    s//\1/
12367	    q
12368	  }
12369	  /^X\(\/\).*/{
12370	    s//\1/
12371	    q
12372	  }
12373	  s/.*/./; q'`
12374      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12375      # echo "creating $dirpart/$file"
12376      echo '# dummy' > "$dirpart/$file"
12377    done
12378  done
12379}
12380 ;;
12381
12382  esac
12383done # for ac_tag
12384
12385
12386as_fn_exit 0
12387_ACEOF
12388ac_clean_files=$ac_clean_files_save
12389
12390test $ac_write_fail = 0 ||
12391  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12392
12393
12394# configure is writing to config.log, and then calls config.status.
12395# config.status does its own redirection, appending to config.log.
12396# Unfortunately, on DOS this fails, as config.log is still kept open
12397# by configure, so config.status won't be able to write to it; its
12398# output is simply discarded.  So we exec the FD to /dev/null,
12399# effectively closing config.log, so it can be properly (re)opened and
12400# appended to by config.status.  When coming back to configure, we
12401# need to make the FD available again.
12402if test "$no_create" != yes; then
12403  ac_cs_success=:
12404  ac_config_status_args=
12405  test "$silent" = yes &&
12406    ac_config_status_args="$ac_config_status_args --quiet"
12407  exec 5>/dev/null
12408  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12409  exec 5>>config.log
12410  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12411  # would make configure fail if this is the last instruction.
12412  $ac_cs_success || as_fn_exit $?
12413fi
12414if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12415  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12416$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12417fi
12418
12419