1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for ntfs-3g 2009.3.8.
4#
5# Report bugs to <ntfs-3g-devel@lists.sf.net>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560  # Remove one level of quotation (which was required for Make).
561  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562  ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567  # Discard the --no-reexec flag, and continue.
568  shift
569elif test "X$1" = X--fallback-echo; then
570  # Avoid inline document here, it may be left over
571  :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573  # Yippee, $echo works!
574  :
575else
576  # Restart under the correct shell.
577  exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581  # used as fallback echo
582  shift
583  cat <<EOF
584$*
585EOF
586  exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599       echo_test_string=`eval $cmd` &&
600       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601    then
602      break
603    fi
604  done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609   test "X$echo_testing_string" = "X$echo_test_string"; then
610  :
611else
612  # The Solaris, AIX, and Digital Unix default echo programs unquote
613  # backslashes.  This makes it impossible to quote backslashes using
614  #   echo "$something" | sed 's/\\/\\\\/g'
615  #
616  # So, first we look for a working echo in the user's PATH.
617
618  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619  for dir in $PATH /usr/ucb; do
620    IFS="$lt_save_ifs"
621    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624       test "X$echo_testing_string" = "X$echo_test_string"; then
625      echo="$dir/echo"
626      break
627    fi
628  done
629  IFS="$lt_save_ifs"
630
631  if test "X$echo" = Xecho; then
632    # We didn't find a better echo, so look for alternatives.
633    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635       test "X$echo_testing_string" = "X$echo_test_string"; then
636      # This shell has a builtin print -r that does the trick.
637      echo='print -r'
638    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639	 test "X$CONFIG_SHELL" != X/bin/ksh; then
640      # If we have ksh, try running configure again with it.
641      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642      export ORIGINAL_CONFIG_SHELL
643      CONFIG_SHELL=/bin/ksh
644      export CONFIG_SHELL
645      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646    else
647      # Try using printf.
648      echo='printf %s\n'
649      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651	 test "X$echo_testing_string" = "X$echo_test_string"; then
652	# Cool, printf works
653	:
654      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655	   test "X$echo_testing_string" = 'X\t' &&
656	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657	   test "X$echo_testing_string" = "X$echo_test_string"; then
658	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659	export CONFIG_SHELL
660	SHELL="$CONFIG_SHELL"
661	export SHELL
662	echo="$CONFIG_SHELL $0 --fallback-echo"
663      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664	   test "X$echo_testing_string" = 'X\t' &&
665	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666	   test "X$echo_testing_string" = "X$echo_test_string"; then
667	echo="$CONFIG_SHELL $0 --fallback-echo"
668      else
669	# maybe with a smaller string...
670	prev=:
671
672	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674	  then
675	    break
676	  fi
677	  prev="$cmd"
678	done
679
680	if test "$prev" != 'sed 50q "$0"'; then
681	  echo_test_string=`eval $prev`
682	  export echo_test_string
683	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684	else
685	  # Oops.  We lost completely, so just stick with echo.
686	  echo=echo
687	fi
688      fi
689    fi
690  fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
708exec 7<&0 </dev/null 6>&1
709
710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='ntfs-3g'
730PACKAGE_TARNAME='ntfs-3g'
731PACKAGE_VERSION='2009.3.8'
732PACKAGE_STRING='ntfs-3g 2009.3.8'
733PACKAGE_BUGREPORT='ntfs-3g-devel@lists.sf.net'
734
735ac_unique_file="src/ntfs-3g.c"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
739#ifdef HAVE_SYS_TYPES_H
740# include <sys/types.h>
741#endif
742#ifdef HAVE_SYS_STAT_H
743# include <sys/stat.h>
744#endif
745#ifdef STDC_HEADERS
746# include <stdlib.h>
747# include <stddef.h>
748#else
749# ifdef HAVE_STDLIB_H
750#  include <stdlib.h>
751# endif
752#endif
753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755#  include <memory.h>
756# endif
757# include <string.h>
758#endif
759#ifdef HAVE_STRINGS_H
760# include <strings.h>
761#endif
762#ifdef HAVE_INTTYPES_H
763# include <inttypes.h>
764#endif
765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
769# include <unistd.h>
770#endif"
771
772ac_header_list=
773ac_subst_vars='SHELL
774PATH_SEPARATOR
775PACKAGE_NAME
776PACKAGE_TARNAME
777PACKAGE_VERSION
778PACKAGE_STRING
779PACKAGE_BUGREPORT
780exec_prefix
781prefix
782program_transform_name
783bindir
784sbindir
785libexecdir
786datarootdir
787datadir
788sysconfdir
789sharedstatedir
790localstatedir
791includedir
792oldincludedir
793docdir
794infodir
795htmldir
796dvidir
797pdfdir
798psdir
799libdir
800localedir
801mandir
802DEFS
803ECHO_C
804ECHO_N
805ECHO_T
806LIBS
807build_alias
808host_alias
809target_alias
810build
811build_cpu
812build_vendor
813build_os
814host
815host_cpu
816host_vendor
817host_os
818target
819target_cpu
820target_vendor
821target_os
822INSTALL_PROGRAM
823INSTALL_SCRIPT
824INSTALL_DATA
825CYGPATH_W
826PACKAGE
827VERSION
828ACLOCAL
829AUTOCONF
830AUTOMAKE
831AUTOHEADER
832MAKEINFO
833install_sh
834STRIP
835INSTALL_STRIP_PROGRAM
836mkdir_p
837AWK
838SET_MAKE
839am__leading_dot
840AMTAR
841am__tar
842am__untar
843MAINTAINER_MODE_TRUE
844MAINTAINER_MODE_FALSE
845MAINT
846CC
847CFLAGS
848LDFLAGS
849CPPFLAGS
850ac_ct_CC
851EXEEXT
852OBJEXT
853DEPDIR
854am__include
855am__quote
856AMDEP_TRUE
857AMDEP_FALSE
858AMDEPBACKSLASH
859CCDEPMODE
860am__fastdepCC_TRUE
861am__fastdepCC_FALSE
862LN_S
863GREP
864EGREP
865ECHO
866AR
867RANLIB
868CPP
869CXX
870CXXFLAGS
871ac_ct_CXX
872CXXDEPMODE
873am__fastdepCXX_TRUE
874am__fastdepCXX_FALSE
875CXXCPP
876F77
877FFLAGS
878ac_ct_F77
879LIBTOOL
880MV
881RM
882SED
883LDCONFIG
884PKG_CONFIG
885FUSE_MODULE_CFLAGS
886FUSE_MODULE_LIBS
887LIBOBJS
888pkgconfigdir
889ntfs3gincludedir
890rootbindir
891rootsbindir
892rootlibdir
893LIBNTFS_3G_VERSION
894LIBFUSE_LITE_LIBS
895OUTPUT_FORMAT
896FUSE_INTERNAL_TRUE
897FUSE_INTERNAL_FALSE
898GENERATE_LDSCRIPT_TRUE
899GENERATE_LDSCRIPT_FALSE
900WINDOWS_TRUE
901WINDOWS_FALSE
902NTFS_DEVICE_DEFAULT_IO_OPS_TRUE
903NTFS_DEVICE_DEFAULT_IO_OPS_FALSE
904RUN_LDCONFIG_TRUE
905RUN_LDCONFIG_FALSE
906REALLYSTATIC_TRUE
907REALLYSTATIC_FALSE
908INSTALL_LIBRARY_TRUE
909INSTALL_LIBRARY_FALSE
910ENABLE_MOUNT_HELPER_TRUE
911ENABLE_MOUNT_HELPER_FALSE
912MKDIR_P
913LTLIBOBJS'
914ac_subst_files=''
915      ac_precious_vars='build_alias
916host_alias
917target_alias
918CC
919CFLAGS
920LDFLAGS
921LIBS
922CPPFLAGS
923CPP
924CXX
925CXXFLAGS
926CCC
927CXXCPP
928F77
929FFLAGS
930LDCONFIG
931PKG_CONFIG
932FUSE_MODULE_CFLAGS
933FUSE_MODULE_LIBS'
934
935
936# Initialize some variables set by options.
937ac_init_help=
938ac_init_version=false
939# The variables have the same names as the options, with
940# dashes changed to underlines.
941cache_file=/dev/null
942exec_prefix=NONE
943no_create=
944no_recursion=
945prefix=NONE
946program_prefix=NONE
947program_suffix=NONE
948program_transform_name=s,x,x,
949silent=
950site=
951srcdir=
952verbose=
953x_includes=NONE
954x_libraries=NONE
955
956# Installation directory options.
957# These are left unexpanded so users can "make install exec_prefix=/foo"
958# and all the variables that are supposed to be based on exec_prefix
959# by default will actually change.
960# Use braces instead of parens because sh, perl, etc. also accept them.
961# (The list follows the same order as the GNU Coding Standards.)
962bindir='${exec_prefix}/bin'
963sbindir='${exec_prefix}/sbin'
964libexecdir='${exec_prefix}/libexec'
965datarootdir='${prefix}/share'
966datadir='${datarootdir}'
967sysconfdir='${prefix}/etc'
968sharedstatedir='${prefix}/com'
969localstatedir='${prefix}/var'
970includedir='${prefix}/include'
971oldincludedir='/usr/include'
972docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
973infodir='${datarootdir}/info'
974htmldir='${docdir}'
975dvidir='${docdir}'
976pdfdir='${docdir}'
977psdir='${docdir}'
978libdir='${exec_prefix}/lib'
979localedir='${datarootdir}/locale'
980mandir='${datarootdir}/man'
981
982ac_prev=
983ac_dashdash=
984for ac_option
985do
986  # If the previous option needs an argument, assign it.
987  if test -n "$ac_prev"; then
988    eval $ac_prev=\$ac_option
989    ac_prev=
990    continue
991  fi
992
993  case $ac_option in
994  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995  *)	ac_optarg=yes ;;
996  esac
997
998  # Accept the important Cygnus configure options, so we can diagnose typos.
999
1000  case $ac_dashdash$ac_option in
1001  --)
1002    ac_dashdash=yes ;;
1003
1004  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1005    ac_prev=bindir ;;
1006  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007    bindir=$ac_optarg ;;
1008
1009  -build | --build | --buil | --bui | --bu)
1010    ac_prev=build_alias ;;
1011  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012    build_alias=$ac_optarg ;;
1013
1014  -cache-file | --cache-file | --cache-fil | --cache-fi \
1015  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016    ac_prev=cache_file ;;
1017  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019    cache_file=$ac_optarg ;;
1020
1021  --config-cache | -C)
1022    cache_file=config.cache ;;
1023
1024  -datadir | --datadir | --datadi | --datad)
1025    ac_prev=datadir ;;
1026  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027    datadir=$ac_optarg ;;
1028
1029  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030  | --dataroo | --dataro | --datar)
1031    ac_prev=datarootdir ;;
1032  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034    datarootdir=$ac_optarg ;;
1035
1036  -disable-* | --disable-*)
1037    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038    # Reject names that are not valid shell variable names.
1039    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1041   { (exit 1); exit 1; }; }
1042    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1043    eval enable_$ac_feature=no ;;
1044
1045  -docdir | --docdir | --docdi | --doc | --do)
1046    ac_prev=docdir ;;
1047  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1048    docdir=$ac_optarg ;;
1049
1050  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1051    ac_prev=dvidir ;;
1052  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1053    dvidir=$ac_optarg ;;
1054
1055  -enable-* | --enable-*)
1056    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1057    # Reject names that are not valid shell variable names.
1058    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1059      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1060   { (exit 1); exit 1; }; }
1061    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1062    eval enable_$ac_feature=\$ac_optarg ;;
1063
1064  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1065  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1066  | --exec | --exe | --ex)
1067    ac_prev=exec_prefix ;;
1068  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1069  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1070  | --exec=* | --exe=* | --ex=*)
1071    exec_prefix=$ac_optarg ;;
1072
1073  -gas | --gas | --ga | --g)
1074    # Obsolete; use --with-gas.
1075    with_gas=yes ;;
1076
1077  -help | --help | --hel | --he | -h)
1078    ac_init_help=long ;;
1079  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1080    ac_init_help=recursive ;;
1081  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1082    ac_init_help=short ;;
1083
1084  -host | --host | --hos | --ho)
1085    ac_prev=host_alias ;;
1086  -host=* | --host=* | --hos=* | --ho=*)
1087    host_alias=$ac_optarg ;;
1088
1089  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1090    ac_prev=htmldir ;;
1091  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1092  | --ht=*)
1093    htmldir=$ac_optarg ;;
1094
1095  -includedir | --includedir | --includedi | --included | --include \
1096  | --includ | --inclu | --incl | --inc)
1097    ac_prev=includedir ;;
1098  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1099  | --includ=* | --inclu=* | --incl=* | --inc=*)
1100    includedir=$ac_optarg ;;
1101
1102  -infodir | --infodir | --infodi | --infod | --info | --inf)
1103    ac_prev=infodir ;;
1104  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1105    infodir=$ac_optarg ;;
1106
1107  -libdir | --libdir | --libdi | --libd)
1108    ac_prev=libdir ;;
1109  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1110    libdir=$ac_optarg ;;
1111
1112  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1113  | --libexe | --libex | --libe)
1114    ac_prev=libexecdir ;;
1115  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1116  | --libexe=* | --libex=* | --libe=*)
1117    libexecdir=$ac_optarg ;;
1118
1119  -localedir | --localedir | --localedi | --localed | --locale)
1120    ac_prev=localedir ;;
1121  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1122    localedir=$ac_optarg ;;
1123
1124  -localstatedir | --localstatedir | --localstatedi | --localstated \
1125  | --localstate | --localstat | --localsta | --localst | --locals)
1126    ac_prev=localstatedir ;;
1127  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1128  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1129    localstatedir=$ac_optarg ;;
1130
1131  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1132    ac_prev=mandir ;;
1133  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1134    mandir=$ac_optarg ;;
1135
1136  -nfp | --nfp | --nf)
1137    # Obsolete; use --without-fp.
1138    with_fp=no ;;
1139
1140  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1141  | --no-cr | --no-c | -n)
1142    no_create=yes ;;
1143
1144  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1145  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146    no_recursion=yes ;;
1147
1148  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1149  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1150  | --oldin | --oldi | --old | --ol | --o)
1151    ac_prev=oldincludedir ;;
1152  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1153  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1154  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1155    oldincludedir=$ac_optarg ;;
1156
1157  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1158    ac_prev=prefix ;;
1159  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1160    prefix=$ac_optarg ;;
1161
1162  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1163  | --program-pre | --program-pr | --program-p)
1164    ac_prev=program_prefix ;;
1165  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1166  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1167    program_prefix=$ac_optarg ;;
1168
1169  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1170  | --program-suf | --program-su | --program-s)
1171    ac_prev=program_suffix ;;
1172  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1173  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1174    program_suffix=$ac_optarg ;;
1175
1176  -program-transform-name | --program-transform-name \
1177  | --program-transform-nam | --program-transform-na \
1178  | --program-transform-n | --program-transform- \
1179  | --program-transform | --program-transfor \
1180  | --program-transfo | --program-transf \
1181  | --program-trans | --program-tran \
1182  | --progr-tra | --program-tr | --program-t)
1183    ac_prev=program_transform_name ;;
1184  -program-transform-name=* | --program-transform-name=* \
1185  | --program-transform-nam=* | --program-transform-na=* \
1186  | --program-transform-n=* | --program-transform-=* \
1187  | --program-transform=* | --program-transfor=* \
1188  | --program-transfo=* | --program-transf=* \
1189  | --program-trans=* | --program-tran=* \
1190  | --progr-tra=* | --program-tr=* | --program-t=*)
1191    program_transform_name=$ac_optarg ;;
1192
1193  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1194    ac_prev=pdfdir ;;
1195  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1196    pdfdir=$ac_optarg ;;
1197
1198  -psdir | --psdir | --psdi | --psd | --ps)
1199    ac_prev=psdir ;;
1200  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201    psdir=$ac_optarg ;;
1202
1203  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204  | -silent | --silent | --silen | --sile | --sil)
1205    silent=yes ;;
1206
1207  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1208    ac_prev=sbindir ;;
1209  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1210  | --sbi=* | --sb=*)
1211    sbindir=$ac_optarg ;;
1212
1213  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1214  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1215  | --sharedst | --shareds | --shared | --share | --shar \
1216  | --sha | --sh)
1217    ac_prev=sharedstatedir ;;
1218  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1219  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1220  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1221  | --sha=* | --sh=*)
1222    sharedstatedir=$ac_optarg ;;
1223
1224  -site | --site | --sit)
1225    ac_prev=site ;;
1226  -site=* | --site=* | --sit=*)
1227    site=$ac_optarg ;;
1228
1229  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1230    ac_prev=srcdir ;;
1231  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1232    srcdir=$ac_optarg ;;
1233
1234  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1235  | --syscon | --sysco | --sysc | --sys | --sy)
1236    ac_prev=sysconfdir ;;
1237  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1238  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1239    sysconfdir=$ac_optarg ;;
1240
1241  -target | --target | --targe | --targ | --tar | --ta | --t)
1242    ac_prev=target_alias ;;
1243  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1244    target_alias=$ac_optarg ;;
1245
1246  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247    verbose=yes ;;
1248
1249  -version | --version | --versio | --versi | --vers | -V)
1250    ac_init_version=: ;;
1251
1252  -with-* | --with-*)
1253    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1254    # Reject names that are not valid shell variable names.
1255    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256      { echo "$as_me: error: invalid package name: $ac_package" >&2
1257   { (exit 1); exit 1; }; }
1258    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1259    eval with_$ac_package=\$ac_optarg ;;
1260
1261  -without-* | --without-*)
1262    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1263    # Reject names that are not valid shell variable names.
1264    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265      { echo "$as_me: error: invalid package name: $ac_package" >&2
1266   { (exit 1); exit 1; }; }
1267    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1268    eval with_$ac_package=no ;;
1269
1270  --x)
1271    # Obsolete; use --with-x.
1272    with_x=yes ;;
1273
1274  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275  | --x-incl | --x-inc | --x-in | --x-i)
1276    ac_prev=x_includes ;;
1277  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1279    x_includes=$ac_optarg ;;
1280
1281  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283    ac_prev=x_libraries ;;
1284  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1286    x_libraries=$ac_optarg ;;
1287
1288  -*) { echo "$as_me: error: unrecognized option: $ac_option
1289Try \`$0 --help' for more information." >&2
1290   { (exit 1); exit 1; }; }
1291    ;;
1292
1293  *=*)
1294    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295    # Reject names that are not valid shell variable names.
1296    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1297      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1298   { (exit 1); exit 1; }; }
1299    eval $ac_envvar=\$ac_optarg
1300    export $ac_envvar ;;
1301
1302  *)
1303    # FIXME: should be removed in autoconf 3.0.
1304    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1305    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1307    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1308    ;;
1309
1310  esac
1311done
1312
1313if test -n "$ac_prev"; then
1314  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1315  { echo "$as_me: error: missing argument to $ac_option" >&2
1316   { (exit 1); exit 1; }; }
1317fi
1318
1319# Be sure to have absolute directory names.
1320for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1321		datadir sysconfdir sharedstatedir localstatedir includedir \
1322		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1323		libdir localedir mandir
1324do
1325  eval ac_val=\$$ac_var
1326  case $ac_val in
1327    [\\/$]* | ?:[\\/]* )  continue;;
1328    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1329  esac
1330  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1331   { (exit 1); exit 1; }; }
1332done
1333
1334# There might be people who depend on the old broken behavior: `$host'
1335# used to hold the argument of --host etc.
1336# FIXME: To remove some day.
1337build=$build_alias
1338host=$host_alias
1339target=$target_alias
1340
1341# FIXME: To remove some day.
1342if test "x$host_alias" != x; then
1343  if test "x$build_alias" = x; then
1344    cross_compiling=maybe
1345    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1346    If a cross compiler is detected then cross compile mode will be used." >&2
1347  elif test "x$build_alias" != "x$host_alias"; then
1348    cross_compiling=yes
1349  fi
1350fi
1351
1352ac_tool_prefix=
1353test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354
1355test "$silent" = yes && exec 6>/dev/null
1356
1357
1358ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359ac_ls_di=`ls -di .` &&
1360ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361  { echo "$as_me: error: Working directory cannot be determined" >&2
1362   { (exit 1); exit 1; }; }
1363test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1364  { echo "$as_me: error: pwd does not report name of working directory" >&2
1365   { (exit 1); exit 1; }; }
1366
1367
1368# Find the source files, if location was not specified.
1369if test -z "$srcdir"; then
1370  ac_srcdir_defaulted=yes
1371  # Try the directory containing this script, then the parent directory.
1372  ac_confdir=`$as_dirname -- "$0" ||
1373$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374	 X"$0" : 'X\(//\)[^/]' \| \
1375	 X"$0" : 'X\(//\)$' \| \
1376	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1377echo X"$0" |
1378    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379	    s//\1/
1380	    q
1381	  }
1382	  /^X\(\/\/\)[^/].*/{
1383	    s//\1/
1384	    q
1385	  }
1386	  /^X\(\/\/\)$/{
1387	    s//\1/
1388	    q
1389	  }
1390	  /^X\(\/\).*/{
1391	    s//\1/
1392	    q
1393	  }
1394	  s/.*/./; q'`
1395  srcdir=$ac_confdir
1396  if test ! -r "$srcdir/$ac_unique_file"; then
1397    srcdir=..
1398  fi
1399else
1400  ac_srcdir_defaulted=no
1401fi
1402if test ! -r "$srcdir/$ac_unique_file"; then
1403  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1405   { (exit 1); exit 1; }; }
1406fi
1407ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408ac_abs_confdir=`(
1409	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1410   { (exit 1); exit 1; }; }
1411	pwd)`
1412# When building in place, set srcdir=.
1413if test "$ac_abs_confdir" = "$ac_pwd"; then
1414  srcdir=.
1415fi
1416# Remove unnecessary trailing slashes from srcdir.
1417# Double slashes in file names in object file debugging info
1418# mess up M-x gdb in Emacs.
1419case $srcdir in
1420*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421esac
1422for ac_var in $ac_precious_vars; do
1423  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424  eval ac_env_${ac_var}_value=\$${ac_var}
1425  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427done
1428
1429#
1430# Report the --help message.
1431#
1432if test "$ac_init_help" = "long"; then
1433  # Omit some internal or obsolete options to make the list less imposing.
1434  # This message is too long to be a string in the A/UX 3.1 sh.
1435  cat <<_ACEOF
1436\`configure' configures ntfs-3g 2009.3.8 to adapt to many kinds of systems.
1437
1438Usage: $0 [OPTION]... [VAR=VALUE]...
1439
1440To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441VAR=VALUE.  See below for descriptions of some of the useful variables.
1442
1443Defaults for the options are specified in brackets.
1444
1445Configuration:
1446  -h, --help              display this help and exit
1447      --help=short        display options specific to this package
1448      --help=recursive    display the short help of all the included packages
1449  -V, --version           display version information and exit
1450  -q, --quiet, --silent   do not print \`checking...' messages
1451      --cache-file=FILE   cache test results in FILE [disabled]
1452  -C, --config-cache      alias for \`--cache-file=config.cache'
1453  -n, --no-create         do not create output files
1454      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1455
1456Installation directories:
1457  --prefix=PREFIX         install architecture-independent files in PREFIX
1458			  [$ac_default_prefix]
1459  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1460			  [PREFIX]
1461
1462By default, \`make install' will install all the files in
1463\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1464an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465for instance \`--prefix=\$HOME'.
1466
1467For better control, use the options below.
1468
1469Fine tuning of the installation directories:
1470  --bindir=DIR           user executables [EPREFIX/bin]
1471  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1472  --libexecdir=DIR       program executables [EPREFIX/libexec]
1473  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1474  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1475  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1476  --libdir=DIR           object code libraries [EPREFIX/lib]
1477  --includedir=DIR       C header files [PREFIX/include]
1478  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1479  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1480  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1481  --infodir=DIR          info documentation [DATAROOTDIR/info]
1482  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1483  --mandir=DIR           man documentation [DATAROOTDIR/man]
1484  --docdir=DIR           documentation root [DATAROOTDIR/doc/ntfs-3g]
1485  --htmldir=DIR          html documentation [DOCDIR]
1486  --dvidir=DIR           dvi documentation [DOCDIR]
1487  --pdfdir=DIR           pdf documentation [DOCDIR]
1488  --psdir=DIR            ps documentation [DOCDIR]
1489_ACEOF
1490
1491  cat <<\_ACEOF
1492
1493Program names:
1494  --program-prefix=PREFIX            prepend PREFIX to installed program names
1495  --program-suffix=SUFFIX            append SUFFIX to installed program names
1496  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1497
1498System types:
1499  --build=BUILD     configure for building on BUILD [guessed]
1500  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1501  --target=TARGET   configure for building compilers for TARGET [HOST]
1502_ACEOF
1503fi
1504
1505if test -n "$ac_init_help"; then
1506  case $ac_init_help in
1507     short | recursive ) echo "Configuration of ntfs-3g 2009.3.8:";;
1508   esac
1509  cat <<\_ACEOF
1510
1511Optional Features:
1512  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1513  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1514  --enable-maintainer-mode  enable make rules and dependencies not useful
1515			  (and sometimes confusing) to the casual installer
1516  --enable-debug          enable debugging code and output
1517  --enable-warnings       enable lots of compiler warnings
1518  --enable-pedantic       enable compile pedantic mode
1519  --enable-really-static  create fully static binaries
1520  --enable-mount-helper   install mount helper [default=enabled for linux]
1521  --enable-ldscript       use ldscript instead of .so symlink
1522  --disable-ldconfig      do not update dynamic linker cache using ldconfig
1523  --disable-library       do not install libntfs-3g but link it into ntfs-3g
1524  --disable-mtab          disable and ignore usage of /etc/mtab
1525  --disable-device-default-io-ops
1526                          install default IO ops
1527  --disable-dependency-tracking  speeds up one-time build
1528  --enable-dependency-tracking   do not reject slow dependency extractors
1529  --enable-shared[=PKGS]  build shared libraries [default=yes]
1530  --enable-static[=PKGS]  build static libraries [default=yes]
1531  --enable-fast-install[=PKGS]
1532                          optimize for fast installation [default=yes]
1533  --disable-libtool-lock  avoid locking (might break parallel builds)
1534  --disable-largefile     omit support for large files
1535
1536Optional Packages:
1537  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1538  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1539  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1540  --with-pic              try to use only PIC/non-PIC objects [default=use
1541                          both]
1542  --with-tags[=TAGS]      include additional configurations [automatic]
1543  --with-fuse=<internal|external>
1544                          Select FUSE library: internal or external
1545                          [default=internal]
1546
1547Some influential environment variables:
1548  CC          C compiler command
1549  CFLAGS      C compiler flags
1550  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1551              nonstandard directory <lib dir>
1552  LIBS        libraries to pass to the linker, e.g. -l<library>
1553  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554              you have headers in a nonstandard directory <include dir>
1555  CPP         C preprocessor
1556  CXX         C++ compiler command
1557  CXXFLAGS    C++ compiler flags
1558  CXXCPP      C++ preprocessor
1559  F77         Fortran 77 compiler command
1560  FFLAGS      Fortran 77 compiler flags
1561  LDCONFIG    ldconfig utility
1562  PKG_CONFIG  path to pkg-config utility
1563  FUSE_MODULE_CFLAGS
1564              C compiler flags for FUSE_MODULE, overriding pkg-config
1565  FUSE_MODULE_LIBS
1566              linker flags for FUSE_MODULE, overriding pkg-config
1567
1568Use these variables to override the choices made by `configure' or to help
1569it to find libraries and programs with nonstandard names/locations.
1570
1571Report bugs to <ntfs-3g-devel@lists.sf.net>.
1572_ACEOF
1573ac_status=$?
1574fi
1575
1576if test "$ac_init_help" = "recursive"; then
1577  # If there are subdirs, report their specific --help.
1578  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579    test -d "$ac_dir" || continue
1580    ac_builddir=.
1581
1582case "$ac_dir" in
1583.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584*)
1585  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1586  # A ".." for each directory in $ac_dir_suffix.
1587  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1588  case $ac_top_builddir_sub in
1589  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591  esac ;;
1592esac
1593ac_abs_top_builddir=$ac_pwd
1594ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595# for backward compatibility:
1596ac_top_builddir=$ac_top_build_prefix
1597
1598case $srcdir in
1599  .)  # We are building in place.
1600    ac_srcdir=.
1601    ac_top_srcdir=$ac_top_builddir_sub
1602    ac_abs_top_srcdir=$ac_pwd ;;
1603  [\\/]* | ?:[\\/]* )  # Absolute name.
1604    ac_srcdir=$srcdir$ac_dir_suffix;
1605    ac_top_srcdir=$srcdir
1606    ac_abs_top_srcdir=$srcdir ;;
1607  *) # Relative name.
1608    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609    ac_top_srcdir=$ac_top_build_prefix$srcdir
1610    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611esac
1612ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614    cd "$ac_dir" || { ac_status=$?; continue; }
1615    # Check for guested configure.
1616    if test -f "$ac_srcdir/configure.gnu"; then
1617      echo &&
1618      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619    elif test -f "$ac_srcdir/configure"; then
1620      echo &&
1621      $SHELL "$ac_srcdir/configure" --help=recursive
1622    else
1623      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624    fi || ac_status=$?
1625    cd "$ac_pwd" || { ac_status=$?; break; }
1626  done
1627fi
1628
1629test -n "$ac_init_help" && exit $ac_status
1630if $ac_init_version; then
1631  cat <<\_ACEOF
1632ntfs-3g configure 2009.3.8
1633generated by GNU Autoconf 2.61
1634
1635Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16362002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1637This configure script is free software; the Free Software Foundation
1638gives unlimited permission to copy, distribute and modify it.
1639_ACEOF
1640  exit
1641fi
1642cat >config.log <<_ACEOF
1643This file contains any messages produced by compilers while
1644running configure, to aid debugging if configure makes a mistake.
1645
1646It was created by ntfs-3g $as_me 2009.3.8, which was
1647generated by GNU Autoconf 2.61.  Invocation command line was
1648
1649  $ $0 $@
1650
1651_ACEOF
1652exec 5>>config.log
1653{
1654cat <<_ASUNAME
1655## --------- ##
1656## Platform. ##
1657## --------- ##
1658
1659hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1660uname -m = `(uname -m) 2>/dev/null || echo unknown`
1661uname -r = `(uname -r) 2>/dev/null || echo unknown`
1662uname -s = `(uname -s) 2>/dev/null || echo unknown`
1663uname -v = `(uname -v) 2>/dev/null || echo unknown`
1664
1665/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1666/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1667
1668/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1669/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1670/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1671/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1672/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1673/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1674/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1675
1676_ASUNAME
1677
1678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679for as_dir in $PATH
1680do
1681  IFS=$as_save_IFS
1682  test -z "$as_dir" && as_dir=.
1683  echo "PATH: $as_dir"
1684done
1685IFS=$as_save_IFS
1686
1687} >&5
1688
1689cat >&5 <<_ACEOF
1690
1691
1692## ----------- ##
1693## Core tests. ##
1694## ----------- ##
1695
1696_ACEOF
1697
1698
1699# Keep a trace of the command line.
1700# Strip out --no-create and --no-recursion so they do not pile up.
1701# Strip out --silent because we don't want to record it for future runs.
1702# Also quote any args containing shell meta-characters.
1703# Make two passes to allow for proper duplicate-argument suppression.
1704ac_configure_args=
1705ac_configure_args0=
1706ac_configure_args1=
1707ac_must_keep_next=false
1708for ac_pass in 1 2
1709do
1710  for ac_arg
1711  do
1712    case $ac_arg in
1713    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1714    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715    | -silent | --silent | --silen | --sile | --sil)
1716      continue ;;
1717    *\'*)
1718      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1719    esac
1720    case $ac_pass in
1721    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1722    2)
1723      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1724      if test $ac_must_keep_next = true; then
1725	ac_must_keep_next=false # Got value, back to normal.
1726      else
1727	case $ac_arg in
1728	  *=* | --config-cache | -C | -disable-* | --disable-* \
1729	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1730	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1731	  | -with-* | --with-* | -without-* | --without-* | --x)
1732	    case "$ac_configure_args0 " in
1733	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1734	    esac
1735	    ;;
1736	  -* ) ac_must_keep_next=true ;;
1737	esac
1738      fi
1739      ac_configure_args="$ac_configure_args '$ac_arg'"
1740      ;;
1741    esac
1742  done
1743done
1744$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1745$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1746
1747# When interrupted or exit'd, cleanup temporary files, and complete
1748# config.log.  We remove comments because anyway the quotes in there
1749# would cause problems or look ugly.
1750# WARNING: Use '\'' to represent an apostrophe within the trap.
1751# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1752trap 'exit_status=$?
1753  # Save into config.log some information that might help in debugging.
1754  {
1755    echo
1756
1757    cat <<\_ASBOX
1758## ---------------- ##
1759## Cache variables. ##
1760## ---------------- ##
1761_ASBOX
1762    echo
1763    # The following way of writing the cache mishandles newlines in values,
1764(
1765  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1766    eval ac_val=\$$ac_var
1767    case $ac_val in #(
1768    *${as_nl}*)
1769      case $ac_var in #(
1770      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1771echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1772      esac
1773      case $ac_var in #(
1774      _ | IFS | as_nl) ;; #(
1775      *) $as_unset $ac_var ;;
1776      esac ;;
1777    esac
1778  done
1779  (set) 2>&1 |
1780    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1781    *${as_nl}ac_space=\ *)
1782      sed -n \
1783	"s/'\''/'\''\\\\'\'''\''/g;
1784	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1785      ;; #(
1786    *)
1787      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1788      ;;
1789    esac |
1790    sort
1791)
1792    echo
1793
1794    cat <<\_ASBOX
1795## ----------------- ##
1796## Output variables. ##
1797## ----------------- ##
1798_ASBOX
1799    echo
1800    for ac_var in $ac_subst_vars
1801    do
1802      eval ac_val=\$$ac_var
1803      case $ac_val in
1804      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1805      esac
1806      echo "$ac_var='\''$ac_val'\''"
1807    done | sort
1808    echo
1809
1810    if test -n "$ac_subst_files"; then
1811      cat <<\_ASBOX
1812## ------------------- ##
1813## File substitutions. ##
1814## ------------------- ##
1815_ASBOX
1816      echo
1817      for ac_var in $ac_subst_files
1818      do
1819	eval ac_val=\$$ac_var
1820	case $ac_val in
1821	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822	esac
1823	echo "$ac_var='\''$ac_val'\''"
1824      done | sort
1825      echo
1826    fi
1827
1828    if test -s confdefs.h; then
1829      cat <<\_ASBOX
1830## ----------- ##
1831## confdefs.h. ##
1832## ----------- ##
1833_ASBOX
1834      echo
1835      cat confdefs.h
1836      echo
1837    fi
1838    test "$ac_signal" != 0 &&
1839      echo "$as_me: caught signal $ac_signal"
1840    echo "$as_me: exit $exit_status"
1841  } >&5
1842  rm -f core *.core core.conftest.* &&
1843    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1844    exit $exit_status
1845' 0
1846for ac_signal in 1 2 13 15; do
1847  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1848done
1849ac_signal=0
1850
1851# confdefs.h avoids OS command line length limits that DEFS can exceed.
1852rm -f -r conftest* confdefs.h
1853
1854# Predefined preprocessor variables.
1855
1856cat >>confdefs.h <<_ACEOF
1857#define PACKAGE_NAME "$PACKAGE_NAME"
1858_ACEOF
1859
1860
1861cat >>confdefs.h <<_ACEOF
1862#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1863_ACEOF
1864
1865
1866cat >>confdefs.h <<_ACEOF
1867#define PACKAGE_VERSION "$PACKAGE_VERSION"
1868_ACEOF
1869
1870
1871cat >>confdefs.h <<_ACEOF
1872#define PACKAGE_STRING "$PACKAGE_STRING"
1873_ACEOF
1874
1875
1876cat >>confdefs.h <<_ACEOF
1877#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1878_ACEOF
1879
1880
1881# Let the site file select an alternate cache file if it wants to.
1882# Prefer explicitly selected file to automatically selected ones.
1883if test -n "$CONFIG_SITE"; then
1884  set x "$CONFIG_SITE"
1885elif test "x$prefix" != xNONE; then
1886  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1887else
1888  set x "$ac_default_prefix/share/config.site" \
1889	"$ac_default_prefix/etc/config.site"
1890fi
1891shift
1892for ac_site_file
1893do
1894  if test -r "$ac_site_file"; then
1895    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1896echo "$as_me: loading site script $ac_site_file" >&6;}
1897    sed 's/^/| /' "$ac_site_file" >&5
1898    . "$ac_site_file"
1899  fi
1900done
1901
1902if test -r "$cache_file"; then
1903  # Some versions of bash will fail to source /dev/null (special
1904  # files actually), so we avoid doing that.
1905  if test -f "$cache_file"; then
1906    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1907echo "$as_me: loading cache $cache_file" >&6;}
1908    case $cache_file in
1909      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1910      *)                      . "./$cache_file";;
1911    esac
1912  fi
1913else
1914  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1915echo "$as_me: creating cache $cache_file" >&6;}
1916  >$cache_file
1917fi
1918
1919ac_header_list="$ac_header_list utime.h"
1920# Check that the precious variables saved in the cache have kept the same
1921# value.
1922ac_cache_corrupted=false
1923for ac_var in $ac_precious_vars; do
1924  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1925  eval ac_new_set=\$ac_env_${ac_var}_set
1926  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1927  eval ac_new_val=\$ac_env_${ac_var}_value
1928  case $ac_old_set,$ac_new_set in
1929    set,)
1930      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1931echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1932      ac_cache_corrupted=: ;;
1933    ,set)
1934      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1935echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1936      ac_cache_corrupted=: ;;
1937    ,);;
1938    *)
1939      if test "x$ac_old_val" != "x$ac_new_val"; then
1940	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1941echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1942	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1943echo "$as_me:   former value:  $ac_old_val" >&2;}
1944	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1945echo "$as_me:   current value: $ac_new_val" >&2;}
1946	ac_cache_corrupted=:
1947      fi;;
1948  esac
1949  # Pass precious variables to config.status.
1950  if test "$ac_new_set" = set; then
1951    case $ac_new_val in
1952    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1953    *) ac_arg=$ac_var=$ac_new_val ;;
1954    esac
1955    case " $ac_configure_args " in
1956      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1957      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1958    esac
1959  fi
1960done
1961if $ac_cache_corrupted; then
1962  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1963echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1964  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1965echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1966   { (exit 1); exit 1; }; }
1967fi
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993ac_ext=c
1994ac_cpp='$CPP $CPPFLAGS'
1995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998
1999
2000LIBNTFS_3G_VERSION="52"
2001
2002
2003# Environment
2004ac_aux_dir=
2005for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2006  if test -f "$ac_dir/install-sh"; then
2007    ac_aux_dir=$ac_dir
2008    ac_install_sh="$ac_aux_dir/install-sh -c"
2009    break
2010  elif test -f "$ac_dir/install.sh"; then
2011    ac_aux_dir=$ac_dir
2012    ac_install_sh="$ac_aux_dir/install.sh -c"
2013    break
2014  elif test -f "$ac_dir/shtool"; then
2015    ac_aux_dir=$ac_dir
2016    ac_install_sh="$ac_aux_dir/shtool install -c"
2017    break
2018  fi
2019done
2020if test -z "$ac_aux_dir"; then
2021  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2022echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2023   { (exit 1); exit 1; }; }
2024fi
2025
2026# These three variables are undocumented and unsupported,
2027# and are intended to be withdrawn in a future Autoconf release.
2028# They can cause serious problems if a builder's source tree is in a directory
2029# whose full name contains unusual characters.
2030ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2031ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2032ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2033
2034
2035# Make sure we can run config.sub.
2036$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2037  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2038echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2039   { (exit 1); exit 1; }; }
2040
2041{ echo "$as_me:$LINENO: checking build system type" >&5
2042echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2043if test "${ac_cv_build+set}" = set; then
2044  echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
2046  ac_build_alias=$build_alias
2047test "x$ac_build_alias" = x &&
2048  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2049test "x$ac_build_alias" = x &&
2050  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2051echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2052   { (exit 1); exit 1; }; }
2053ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2054  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2055echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2056   { (exit 1); exit 1; }; }
2057
2058fi
2059{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2060echo "${ECHO_T}$ac_cv_build" >&6; }
2061case $ac_cv_build in
2062*-*-*) ;;
2063*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2064echo "$as_me: error: invalid value of canonical build" >&2;}
2065   { (exit 1); exit 1; }; };;
2066esac
2067build=$ac_cv_build
2068ac_save_IFS=$IFS; IFS='-'
2069set x $ac_cv_build
2070shift
2071build_cpu=$1
2072build_vendor=$2
2073shift; shift
2074# Remember, the first character of IFS is used to create $*,
2075# except with old shells:
2076build_os=$*
2077IFS=$ac_save_IFS
2078case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2079
2080
2081{ echo "$as_me:$LINENO: checking host system type" >&5
2082echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2083if test "${ac_cv_host+set}" = set; then
2084  echo $ECHO_N "(cached) $ECHO_C" >&6
2085else
2086  if test "x$host_alias" = x; then
2087  ac_cv_host=$ac_cv_build
2088else
2089  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2090    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2091echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2092   { (exit 1); exit 1; }; }
2093fi
2094
2095fi
2096{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2097echo "${ECHO_T}$ac_cv_host" >&6; }
2098case $ac_cv_host in
2099*-*-*) ;;
2100*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2101echo "$as_me: error: invalid value of canonical host" >&2;}
2102   { (exit 1); exit 1; }; };;
2103esac
2104host=$ac_cv_host
2105ac_save_IFS=$IFS; IFS='-'
2106set x $ac_cv_host
2107shift
2108host_cpu=$1
2109host_vendor=$2
2110shift; shift
2111# Remember, the first character of IFS is used to create $*,
2112# except with old shells:
2113host_os=$*
2114IFS=$ac_save_IFS
2115case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2116
2117
2118{ echo "$as_me:$LINENO: checking target system type" >&5
2119echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2120if test "${ac_cv_target+set}" = set; then
2121  echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
2123  if test "x$target_alias" = x; then
2124  ac_cv_target=$ac_cv_host
2125else
2126  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2127    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2128echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2129   { (exit 1); exit 1; }; }
2130fi
2131
2132fi
2133{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2134echo "${ECHO_T}$ac_cv_target" >&6; }
2135case $ac_cv_target in
2136*-*-*) ;;
2137*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2138echo "$as_me: error: invalid value of canonical target" >&2;}
2139   { (exit 1); exit 1; }; };;
2140esac
2141target=$ac_cv_target
2142ac_save_IFS=$IFS; IFS='-'
2143set x $ac_cv_target
2144shift
2145target_cpu=$1
2146target_vendor=$2
2147shift; shift
2148# Remember, the first character of IFS is used to create $*,
2149# except with old shells:
2150target_os=$*
2151IFS=$ac_save_IFS
2152case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2153
2154
2155# The aliases save the names the user supplied, while $host etc.
2156# will get canonicalized.
2157test -n "$target_alias" &&
2158  test "$program_prefix$program_suffix$program_transform_name" = \
2159    NONENONEs,x,x, &&
2160  program_prefix=${target_alias}-
2161
2162# Automake
2163am__api_version="1.9"
2164# Find a good install program.  We prefer a C program (faster),
2165# so one script is as good as another.  But avoid the broken or
2166# incompatible versions:
2167# SysV /etc/install, /usr/sbin/install
2168# SunOS /usr/etc/install
2169# IRIX /sbin/install
2170# AIX /bin/install
2171# AmigaOS /C/install, which installs bootblocks on floppy discs
2172# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2173# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2174# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2175# OS/2's system install, which has a completely different semantic
2176# ./install, which can be erroneously created by make from ./install.sh.
2177{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2178echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2179if test -z "$INSTALL"; then
2180if test "${ac_cv_path_install+set}" = set; then
2181  echo $ECHO_N "(cached) $ECHO_C" >&6
2182else
2183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184for as_dir in $PATH
2185do
2186  IFS=$as_save_IFS
2187  test -z "$as_dir" && as_dir=.
2188  # Account for people who put trailing slashes in PATH elements.
2189case $as_dir/ in
2190  ./ | .// | /cC/* | \
2191  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2192  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2193  /usr/ucb/* ) ;;
2194  *)
2195    # OSF1 and SCO ODT 3.0 have their own names for install.
2196    # Don't use installbsd from OSF since it installs stuff as root
2197    # by default.
2198    for ac_prog in ginstall scoinst install; do
2199      for ac_exec_ext in '' $ac_executable_extensions; do
2200	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2201	  if test $ac_prog = install &&
2202	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2203	    # AIX install.  It has an incompatible calling convention.
2204	    :
2205	  elif test $ac_prog = install &&
2206	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2207	    # program-specific install script used by HP pwplus--don't use.
2208	    :
2209	  else
2210	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2211	    break 3
2212	  fi
2213	fi
2214      done
2215    done
2216    ;;
2217esac
2218done
2219IFS=$as_save_IFS
2220
2221
2222fi
2223  if test "${ac_cv_path_install+set}" = set; then
2224    INSTALL=$ac_cv_path_install
2225  else
2226    # As a last resort, use the slow shell script.  Don't cache a
2227    # value for INSTALL within a source directory, because that will
2228    # break other packages using the cache if that directory is
2229    # removed, or if the value is a relative name.
2230    INSTALL=$ac_install_sh
2231  fi
2232fi
2233{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2234echo "${ECHO_T}$INSTALL" >&6; }
2235
2236# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2237# It thinks the first close brace ends the variable substitution.
2238test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2239
2240test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2241
2242test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2243
2244{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2245echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2246# Just in case
2247sleep 1
2248echo timestamp > conftest.file
2249# Do `set' in a subshell so we don't clobber the current shell's
2250# arguments.  Must try -L first in case configure is actually a
2251# symlink; some systems play weird games with the mod time of symlinks
2252# (eg FreeBSD returns the mod time of the symlink's containing
2253# directory).
2254if (
2255   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2256   if test "$*" = "X"; then
2257      # -L didn't work.
2258      set X `ls -t $srcdir/configure conftest.file`
2259   fi
2260   rm -f conftest.file
2261   if test "$*" != "X $srcdir/configure conftest.file" \
2262      && test "$*" != "X conftest.file $srcdir/configure"; then
2263
2264      # If neither matched, then we have a broken ls.  This can happen
2265      # if, for instance, CONFIG_SHELL is bash and it inherits a
2266      # broken ls alias from the environment.  This has actually
2267      # happened.  Such a system could not be considered "sane".
2268      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2269alias in your environment" >&5
2270echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2271alias in your environment" >&2;}
2272   { (exit 1); exit 1; }; }
2273   fi
2274
2275   test "$2" = conftest.file
2276   )
2277then
2278   # Ok.
2279   :
2280else
2281   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2282Check your system clock" >&5
2283echo "$as_me: error: newly created file is older than distributed files!
2284Check your system clock" >&2;}
2285   { (exit 1); exit 1; }; }
2286fi
2287{ echo "$as_me:$LINENO: result: yes" >&5
2288echo "${ECHO_T}yes" >&6; }
2289test "$program_prefix" != NONE &&
2290  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2291# Use a double $ so make ignores it.
2292test "$program_suffix" != NONE &&
2293  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2294# Double any \ or $.  echo might interpret backslashes.
2295# By default was `s,x,x', remove it if useless.
2296cat <<\_ACEOF >conftest.sed
2297s/[\\$]/&&/g;s/;s,x,x,$//
2298_ACEOF
2299program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2300rm -f conftest.sed
2301
2302# expand $ac_aux_dir to an absolute path
2303am_aux_dir=`cd $ac_aux_dir && pwd`
2304
2305test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2306# Use eval to expand $SHELL
2307if eval "$MISSING --run true"; then
2308  am_missing_run="$MISSING --run "
2309else
2310  am_missing_run=
2311  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2312echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2313fi
2314
2315if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2316  # We used to keeping the `.' as first argument, in order to
2317  # allow $(mkdir_p) to be used without argument.  As in
2318  #   $(mkdir_p) $(somedir)
2319  # where $(somedir) is conditionally defined.  However this is wrong
2320  # for two reasons:
2321  #  1. if the package is installed by a user who cannot write `.'
2322  #     make install will fail,
2323  #  2. the above comment should most certainly read
2324  #     $(mkdir_p) $(DESTDIR)$(somedir)
2325  #     so it does not work when $(somedir) is undefined and
2326  #     $(DESTDIR) is not.
2327  #  To support the latter case, we have to write
2328  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2329  #  so the `.' trick is pointless.
2330  mkdir_p='mkdir -p --'
2331else
2332  # On NextStep and OpenStep, the `mkdir' command does not
2333  # recognize any option.  It will interpret all options as
2334  # directories to create, and then abort because `.' already
2335  # exists.
2336  for d in ./-p ./--version;
2337  do
2338    test -d $d && rmdir $d
2339  done
2340  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2341  if test -f "$ac_aux_dir/mkinstalldirs"; then
2342    mkdir_p='$(mkinstalldirs)'
2343  else
2344    mkdir_p='$(install_sh) -d'
2345  fi
2346fi
2347
2348for ac_prog in gawk mawk nawk awk
2349do
2350  # Extract the first word of "$ac_prog", so it can be a program name with args.
2351set dummy $ac_prog; ac_word=$2
2352{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2354if test "${ac_cv_prog_AWK+set}" = set; then
2355  echo $ECHO_N "(cached) $ECHO_C" >&6
2356else
2357  if test -n "$AWK"; then
2358  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2359else
2360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361for as_dir in $PATH
2362do
2363  IFS=$as_save_IFS
2364  test -z "$as_dir" && as_dir=.
2365  for ac_exec_ext in '' $ac_executable_extensions; do
2366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2367    ac_cv_prog_AWK="$ac_prog"
2368    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369    break 2
2370  fi
2371done
2372done
2373IFS=$as_save_IFS
2374
2375fi
2376fi
2377AWK=$ac_cv_prog_AWK
2378if test -n "$AWK"; then
2379  { echo "$as_me:$LINENO: result: $AWK" >&5
2380echo "${ECHO_T}$AWK" >&6; }
2381else
2382  { echo "$as_me:$LINENO: result: no" >&5
2383echo "${ECHO_T}no" >&6; }
2384fi
2385
2386
2387  test -n "$AWK" && break
2388done
2389
2390{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2391echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2392set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2393if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2394  echo $ECHO_N "(cached) $ECHO_C" >&6
2395else
2396  cat >conftest.make <<\_ACEOF
2397SHELL = /bin/sh
2398all:
2399	@echo '@@@%%%=$(MAKE)=@@@%%%'
2400_ACEOF
2401# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2402case `${MAKE-make} -f conftest.make 2>/dev/null` in
2403  *@@@%%%=?*=@@@%%%*)
2404    eval ac_cv_prog_make_${ac_make}_set=yes;;
2405  *)
2406    eval ac_cv_prog_make_${ac_make}_set=no;;
2407esac
2408rm -f conftest.make
2409fi
2410if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2411  { echo "$as_me:$LINENO: result: yes" >&5
2412echo "${ECHO_T}yes" >&6; }
2413  SET_MAKE=
2414else
2415  { echo "$as_me:$LINENO: result: no" >&5
2416echo "${ECHO_T}no" >&6; }
2417  SET_MAKE="MAKE=${MAKE-make}"
2418fi
2419
2420rm -rf .tst 2>/dev/null
2421mkdir .tst 2>/dev/null
2422if test -d .tst; then
2423  am__leading_dot=.
2424else
2425  am__leading_dot=_
2426fi
2427rmdir .tst 2>/dev/null
2428
2429# test to see if srcdir already configured
2430if test "`cd $srcdir && pwd`" != "`pwd`" &&
2431   test -f $srcdir/config.status; then
2432  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2433echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2434   { (exit 1); exit 1; }; }
2435fi
2436
2437# test whether we have cygpath
2438if test -z "$CYGPATH_W"; then
2439  if (cygpath --version) >/dev/null 2>/dev/null; then
2440    CYGPATH_W='cygpath -w'
2441  else
2442    CYGPATH_W=echo
2443  fi
2444fi
2445
2446
2447# Define the identity of the package.
2448 PACKAGE=${PACKAGE_NAME}
2449 VERSION=${PACKAGE_VERSION}
2450
2451
2452cat >>confdefs.h <<_ACEOF
2453#define PACKAGE "$PACKAGE"
2454_ACEOF
2455
2456
2457cat >>confdefs.h <<_ACEOF
2458#define VERSION "$VERSION"
2459_ACEOF
2460
2461# Some tools Automake needs.
2462
2463ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2464
2465
2466AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2467
2468
2469AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2470
2471
2472AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2473
2474
2475MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2476
2477install_sh=${install_sh-"$am_aux_dir/install-sh"}
2478
2479# Installed binaries are usually stripped using `strip' when the user
2480# run `make install-strip'.  However `strip' might not be the right
2481# tool to use in cross-compilation environments, therefore Automake
2482# will honor the `STRIP' environment variable to overrule this program.
2483if test "$cross_compiling" != no; then
2484  if test -n "$ac_tool_prefix"; then
2485  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2486set dummy ${ac_tool_prefix}strip; ac_word=$2
2487{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489if test "${ac_cv_prog_STRIP+set}" = set; then
2490  echo $ECHO_N "(cached) $ECHO_C" >&6
2491else
2492  if test -n "$STRIP"; then
2493  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2494else
2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496for as_dir in $PATH
2497do
2498  IFS=$as_save_IFS
2499  test -z "$as_dir" && as_dir=.
2500  for ac_exec_ext in '' $ac_executable_extensions; do
2501  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2503    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504    break 2
2505  fi
2506done
2507done
2508IFS=$as_save_IFS
2509
2510fi
2511fi
2512STRIP=$ac_cv_prog_STRIP
2513if test -n "$STRIP"; then
2514  { echo "$as_me:$LINENO: result: $STRIP" >&5
2515echo "${ECHO_T}$STRIP" >&6; }
2516else
2517  { echo "$as_me:$LINENO: result: no" >&5
2518echo "${ECHO_T}no" >&6; }
2519fi
2520
2521
2522fi
2523if test -z "$ac_cv_prog_STRIP"; then
2524  ac_ct_STRIP=$STRIP
2525  # Extract the first word of "strip", so it can be a program name with args.
2526set dummy strip; ac_word=$2
2527{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2529if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2530  echo $ECHO_N "(cached) $ECHO_C" >&6
2531else
2532  if test -n "$ac_ct_STRIP"; then
2533  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2534else
2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538  IFS=$as_save_IFS
2539  test -z "$as_dir" && as_dir=.
2540  for ac_exec_ext in '' $ac_executable_extensions; do
2541  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542    ac_cv_prog_ac_ct_STRIP="strip"
2543    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544    break 2
2545  fi
2546done
2547done
2548IFS=$as_save_IFS
2549
2550fi
2551fi
2552ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2553if test -n "$ac_ct_STRIP"; then
2554  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2555echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2556else
2557  { echo "$as_me:$LINENO: result: no" >&5
2558echo "${ECHO_T}no" >&6; }
2559fi
2560
2561  if test "x$ac_ct_STRIP" = x; then
2562    STRIP=":"
2563  else
2564    case $cross_compiling:$ac_tool_warned in
2565yes:)
2566{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2567whose name does not start with the host triplet.  If you think this
2568configuration is useful to you, please write to autoconf@gnu.org." >&5
2569echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2570whose name does not start with the host triplet.  If you think this
2571configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2572ac_tool_warned=yes ;;
2573esac
2574    STRIP=$ac_ct_STRIP
2575  fi
2576else
2577  STRIP="$ac_cv_prog_STRIP"
2578fi
2579
2580fi
2581INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2582
2583# We need awk for the "check" target.  The system "awk" is bad on
2584# some platforms.
2585# Always define AMTAR for backward compatibility.
2586
2587AMTAR=${AMTAR-"${am_missing_run}tar"}
2588
2589am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2590
2591
2592
2593
2594
2595ac_config_headers="$ac_config_headers config.h"
2596
2597
2598{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2599echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2600    # Check whether --enable-maintainer-mode was given.
2601if test "${enable_maintainer_mode+set}" = set; then
2602  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2603else
2604  USE_MAINTAINER_MODE=no
2605fi
2606
2607  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2608echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2609
2610
2611if test $USE_MAINTAINER_MODE = yes; then
2612  MAINTAINER_MODE_TRUE=
2613  MAINTAINER_MODE_FALSE='#'
2614else
2615  MAINTAINER_MODE_TRUE='#'
2616  MAINTAINER_MODE_FALSE=
2617fi
2618
2619  MAINT=$MAINTAINER_MODE_TRUE
2620
2621
2622
2623# Options
2624# Check whether --enable-debug was given.
2625if test "${enable_debug+set}" = set; then
2626  enableval=$enable_debug;
2627else
2628  enable_debug="no"
2629
2630fi
2631
2632
2633# Check whether --enable-warnings was given.
2634if test "${enable_warnings+set}" = set; then
2635  enableval=$enable_warnings;
2636else
2637  enable_warnings="no"
2638
2639fi
2640
2641
2642# Check whether --enable-pedantic was given.
2643if test "${enable_pedantic+set}" = set; then
2644  enableval=$enable_pedantic;
2645else
2646  enable_pedantic="no"
2647
2648fi
2649
2650
2651# Check whether --enable-really-static was given.
2652if test "${enable_really_static+set}" = set; then
2653  enableval=$enable_really_static;
2654else
2655  enable_really_static="no"
2656
2657fi
2658
2659
2660# Check whether --enable-mount-helper was given.
2661if test "${enable_mount_helper+set}" = set; then
2662  enableval=$enable_mount_helper;
2663else
2664
2665		case "${target_os}" in
2666			linux*) enable_mount_helper="yes" ;;
2667			*) enable_mount_helper="no" ;;
2668		esac
2669
2670
2671fi
2672
2673
2674# Check whether --enable-ldscript was given.
2675if test "${enable_ldscript+set}" = set; then
2676  enableval=$enable_ldscript;
2677else
2678  enable_ldscript="no"
2679
2680fi
2681
2682
2683# Check whether --enable-ldconfig was given.
2684if test "${enable_ldconfig+set}" = set; then
2685  enableval=$enable_ldconfig;
2686else
2687  enable_ldconfig="yes"
2688
2689fi
2690
2691
2692# Check whether --enable-library was given.
2693if test "${enable_library+set}" = set; then
2694  enableval=$enable_library;
2695else
2696  enable_library="yes"
2697
2698fi
2699
2700
2701# Check whether --enable-mtab was given.
2702if test "${enable_mtab+set}" = set; then
2703  enableval=$enable_mtab;
2704else
2705  enable_mtab="yes"
2706
2707fi
2708
2709
2710# Check whether --enable-device-default-io-ops was given.
2711if test "${enable_device_default_io_ops+set}" = set; then
2712  enableval=$enable_device_default_io_ops;
2713else
2714  enable_device_default_io_ops="yes"
2715
2716fi
2717
2718
2719# pthread_rwlock_t requires _GNU_SOURCE
2720
2721cat >>confdefs.h <<\_ACEOF
2722#define _GNU_SOURCE 1
2723_ACEOF
2724
2725
2726
2727# Programs
2728ac_ext=c
2729ac_cpp='$CPP $CPPFLAGS'
2730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733if test -n "$ac_tool_prefix"; then
2734  for ac_prog in gcc cc
2735  do
2736    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2737set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2740if test "${ac_cv_prog_CC+set}" = set; then
2741  echo $ECHO_N "(cached) $ECHO_C" >&6
2742else
2743  if test -n "$CC"; then
2744  ac_cv_prog_CC="$CC" # Let the user override the test.
2745else
2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH
2748do
2749  IFS=$as_save_IFS
2750  test -z "$as_dir" && as_dir=.
2751  for ac_exec_ext in '' $ac_executable_extensions; do
2752  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2754    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755    break 2
2756  fi
2757done
2758done
2759IFS=$as_save_IFS
2760
2761fi
2762fi
2763CC=$ac_cv_prog_CC
2764if test -n "$CC"; then
2765  { echo "$as_me:$LINENO: result: $CC" >&5
2766echo "${ECHO_T}$CC" >&6; }
2767else
2768  { echo "$as_me:$LINENO: result: no" >&5
2769echo "${ECHO_T}no" >&6; }
2770fi
2771
2772
2773    test -n "$CC" && break
2774  done
2775fi
2776if test -z "$CC"; then
2777  ac_ct_CC=$CC
2778  for ac_prog in gcc cc
2779do
2780  # Extract the first word of "$ac_prog", so it can be a program name with args.
2781set dummy $ac_prog; ac_word=$2
2782{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2784if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2785  echo $ECHO_N "(cached) $ECHO_C" >&6
2786else
2787  if test -n "$ac_ct_CC"; then
2788  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2789else
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793  IFS=$as_save_IFS
2794  test -z "$as_dir" && as_dir=.
2795  for ac_exec_ext in '' $ac_executable_extensions; do
2796  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797    ac_cv_prog_ac_ct_CC="$ac_prog"
2798    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799    break 2
2800  fi
2801done
2802done
2803IFS=$as_save_IFS
2804
2805fi
2806fi
2807ac_ct_CC=$ac_cv_prog_ac_ct_CC
2808if test -n "$ac_ct_CC"; then
2809  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2810echo "${ECHO_T}$ac_ct_CC" >&6; }
2811else
2812  { echo "$as_me:$LINENO: result: no" >&5
2813echo "${ECHO_T}no" >&6; }
2814fi
2815
2816
2817  test -n "$ac_ct_CC" && break
2818done
2819
2820  if test "x$ac_ct_CC" = x; then
2821    CC=""
2822  else
2823    case $cross_compiling:$ac_tool_warned in
2824yes:)
2825{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2826whose name does not start with the host triplet.  If you think this
2827configuration is useful to you, please write to autoconf@gnu.org." >&5
2828echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2829whose name does not start with the host triplet.  If you think this
2830configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2831ac_tool_warned=yes ;;
2832esac
2833    CC=$ac_ct_CC
2834  fi
2835fi
2836
2837
2838test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2839See \`config.log' for more details." >&5
2840echo "$as_me: error: no acceptable C compiler found in \$PATH
2841See \`config.log' for more details." >&2;}
2842   { (exit 1); exit 1; }; }
2843
2844# Provide some information about the compiler.
2845echo "$as_me:$LINENO: checking for C compiler version" >&5
2846ac_compiler=`set X $ac_compile; echo $2`
2847{ (ac_try="$ac_compiler --version >&5"
2848case "(($ac_try" in
2849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850  *) ac_try_echo=$ac_try;;
2851esac
2852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853  (eval "$ac_compiler --version >&5") 2>&5
2854  ac_status=$?
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); }
2857{ (ac_try="$ac_compiler -v >&5"
2858case "(($ac_try" in
2859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860  *) ac_try_echo=$ac_try;;
2861esac
2862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863  (eval "$ac_compiler -v >&5") 2>&5
2864  ac_status=$?
2865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866  (exit $ac_status); }
2867{ (ac_try="$ac_compiler -V >&5"
2868case "(($ac_try" in
2869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870  *) ac_try_echo=$ac_try;;
2871esac
2872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2873  (eval "$ac_compiler -V >&5") 2>&5
2874  ac_status=$?
2875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876  (exit $ac_status); }
2877
2878cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h.  */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h.  */
2884
2885int
2886main ()
2887{
2888
2889  ;
2890  return 0;
2891}
2892_ACEOF
2893ac_clean_files_save=$ac_clean_files
2894ac_clean_files="$ac_clean_files a.out a.exe b.out"
2895# Try to create an executable without -o first, disregard a.out.
2896# It will help us diagnose broken compilers, and finding out an intuition
2897# of exeext.
2898{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2899echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2900ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2901#
2902# List of possible output files, starting from the most likely.
2903# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2904# only as a last resort.  b.out is created by i960 compilers.
2905ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2906#
2907# The IRIX 6 linker writes into existing files which may not be
2908# executable, retaining their permissions.  Remove them first so a
2909# subsequent execution test works.
2910ac_rmfiles=
2911for ac_file in $ac_files
2912do
2913  case $ac_file in
2914    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2915    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2916  esac
2917done
2918rm -f $ac_rmfiles
2919
2920if { (ac_try="$ac_link_default"
2921case "(($ac_try" in
2922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923  *) ac_try_echo=$ac_try;;
2924esac
2925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926  (eval "$ac_link_default") 2>&5
2927  ac_status=$?
2928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929  (exit $ac_status); }; then
2930  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2931# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2932# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2933# so that the user can short-circuit this test for compilers unknown to
2934# Autoconf.
2935for ac_file in $ac_files ''
2936do
2937  test -f "$ac_file" || continue
2938  case $ac_file in
2939    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2940	;;
2941    [ab].out )
2942	# We found the default executable, but exeext='' is most
2943	# certainly right.
2944	break;;
2945    *.* )
2946        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2947	then :; else
2948	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2949	fi
2950	# We set ac_cv_exeext here because the later test for it is not
2951	# safe: cross compilers may not add the suffix if given an `-o'
2952	# argument, so we may need to know it at that point already.
2953	# Even if this section looks crufty: it has the advantage of
2954	# actually working.
2955	break;;
2956    * )
2957	break;;
2958  esac
2959done
2960test "$ac_cv_exeext" = no && ac_cv_exeext=
2961
2962else
2963  ac_file=''
2964fi
2965
2966{ echo "$as_me:$LINENO: result: $ac_file" >&5
2967echo "${ECHO_T}$ac_file" >&6; }
2968if test -z "$ac_file"; then
2969  echo "$as_me: failed program was:" >&5
2970sed 's/^/| /' conftest.$ac_ext >&5
2971
2972{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2973See \`config.log' for more details." >&5
2974echo "$as_me: error: C compiler cannot create executables
2975See \`config.log' for more details." >&2;}
2976   { (exit 77); exit 77; }; }
2977fi
2978
2979ac_exeext=$ac_cv_exeext
2980
2981# Check that the compiler produces executables we can run.  If not, either
2982# the compiler is broken, or we cross compile.
2983{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2984echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2985# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2986# If not cross compiling, check that we can run a simple program.
2987if test "$cross_compiling" != yes; then
2988  if { ac_try='./$ac_file'
2989  { (case "(($ac_try" in
2990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991  *) ac_try_echo=$ac_try;;
2992esac
2993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994  (eval "$ac_try") 2>&5
2995  ac_status=$?
2996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997  (exit $ac_status); }; }; then
2998    cross_compiling=no
2999  else
3000    if test "$cross_compiling" = maybe; then
3001	cross_compiling=yes
3002    else
3003	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3004If you meant to cross compile, use \`--host'.
3005See \`config.log' for more details." >&5
3006echo "$as_me: error: cannot run C compiled programs.
3007If you meant to cross compile, use \`--host'.
3008See \`config.log' for more details." >&2;}
3009   { (exit 1); exit 1; }; }
3010    fi
3011  fi
3012fi
3013{ echo "$as_me:$LINENO: result: yes" >&5
3014echo "${ECHO_T}yes" >&6; }
3015
3016rm -f a.out a.exe conftest$ac_cv_exeext b.out
3017ac_clean_files=$ac_clean_files_save
3018# Check that the compiler produces executables we can run.  If not, either
3019# the compiler is broken, or we cross compile.
3020{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3021echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3022{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3023echo "${ECHO_T}$cross_compiling" >&6; }
3024
3025{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3026echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3027if { (ac_try="$ac_link"
3028case "(($ac_try" in
3029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030  *) ac_try_echo=$ac_try;;
3031esac
3032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033  (eval "$ac_link") 2>&5
3034  ac_status=$?
3035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036  (exit $ac_status); }; then
3037  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3038# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3039# work properly (i.e., refer to `conftest.exe'), while it won't with
3040# `rm'.
3041for ac_file in conftest.exe conftest conftest.*; do
3042  test -f "$ac_file" || continue
3043  case $ac_file in
3044    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3045    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3046	  break;;
3047    * ) break;;
3048  esac
3049done
3050else
3051  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3052See \`config.log' for more details." >&5
3053echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3054See \`config.log' for more details." >&2;}
3055   { (exit 1); exit 1; }; }
3056fi
3057
3058rm -f conftest$ac_cv_exeext
3059{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3060echo "${ECHO_T}$ac_cv_exeext" >&6; }
3061
3062rm -f conftest.$ac_ext
3063EXEEXT=$ac_cv_exeext
3064ac_exeext=$EXEEXT
3065{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3066echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3067if test "${ac_cv_objext+set}" = set; then
3068  echo $ECHO_N "(cached) $ECHO_C" >&6
3069else
3070  cat >conftest.$ac_ext <<_ACEOF
3071/* confdefs.h.  */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h.  */
3076
3077int
3078main ()
3079{
3080
3081  ;
3082  return 0;
3083}
3084_ACEOF
3085rm -f conftest.o conftest.obj
3086if { (ac_try="$ac_compile"
3087case "(($ac_try" in
3088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089  *) ac_try_echo=$ac_try;;
3090esac
3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092  (eval "$ac_compile") 2>&5
3093  ac_status=$?
3094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095  (exit $ac_status); }; then
3096  for ac_file in conftest.o conftest.obj conftest.*; do
3097  test -f "$ac_file" || continue;
3098  case $ac_file in
3099    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3100    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3101       break;;
3102  esac
3103done
3104else
3105  echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3109See \`config.log' for more details." >&5
3110echo "$as_me: error: cannot compute suffix of object files: cannot compile
3111See \`config.log' for more details." >&2;}
3112   { (exit 1); exit 1; }; }
3113fi
3114
3115rm -f conftest.$ac_cv_objext conftest.$ac_ext
3116fi
3117{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3118echo "${ECHO_T}$ac_cv_objext" >&6; }
3119OBJEXT=$ac_cv_objext
3120ac_objext=$OBJEXT
3121{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3122echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3123if test "${ac_cv_c_compiler_gnu+set}" = set; then
3124  echo $ECHO_N "(cached) $ECHO_C" >&6
3125else
3126  cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h.  */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h.  */
3132
3133int
3134main ()
3135{
3136#ifndef __GNUC__
3137       choke me
3138#endif
3139
3140  ;
3141  return 0;
3142}
3143_ACEOF
3144rm -f conftest.$ac_objext
3145if { (ac_try="$ac_compile"
3146case "(($ac_try" in
3147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148  *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151  (eval "$ac_compile") 2>conftest.er1
3152  ac_status=$?
3153  grep -v '^ *+' conftest.er1 >conftest.err
3154  rm -f conftest.er1
3155  cat conftest.err >&5
3156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157  (exit $ac_status); } && {
3158	 test -z "$ac_c_werror_flag" ||
3159	 test ! -s conftest.err
3160       } && test -s conftest.$ac_objext; then
3161  ac_compiler_gnu=yes
3162else
3163  echo "$as_me: failed program was:" >&5
3164sed 's/^/| /' conftest.$ac_ext >&5
3165
3166	ac_compiler_gnu=no
3167fi
3168
3169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170ac_cv_c_compiler_gnu=$ac_compiler_gnu
3171
3172fi
3173{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3174echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3175GCC=`test $ac_compiler_gnu = yes && echo yes`
3176ac_test_CFLAGS=${CFLAGS+set}
3177ac_save_CFLAGS=$CFLAGS
3178{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3179echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3180if test "${ac_cv_prog_cc_g+set}" = set; then
3181  echo $ECHO_N "(cached) $ECHO_C" >&6
3182else
3183  ac_save_c_werror_flag=$ac_c_werror_flag
3184   ac_c_werror_flag=yes
3185   ac_cv_prog_cc_g=no
3186   CFLAGS="-g"
3187   cat >conftest.$ac_ext <<_ACEOF
3188/* confdefs.h.  */
3189_ACEOF
3190cat confdefs.h >>conftest.$ac_ext
3191cat >>conftest.$ac_ext <<_ACEOF
3192/* end confdefs.h.  */
3193
3194int
3195main ()
3196{
3197
3198  ;
3199  return 0;
3200}
3201_ACEOF
3202rm -f conftest.$ac_objext
3203if { (ac_try="$ac_compile"
3204case "(($ac_try" in
3205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206  *) ac_try_echo=$ac_try;;
3207esac
3208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209  (eval "$ac_compile") 2>conftest.er1
3210  ac_status=$?
3211  grep -v '^ *+' conftest.er1 >conftest.err
3212  rm -f conftest.er1
3213  cat conftest.err >&5
3214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); } && {
3216	 test -z "$ac_c_werror_flag" ||
3217	 test ! -s conftest.err
3218       } && test -s conftest.$ac_objext; then
3219  ac_cv_prog_cc_g=yes
3220else
3221  echo "$as_me: failed program was:" >&5
3222sed 's/^/| /' conftest.$ac_ext >&5
3223
3224	CFLAGS=""
3225      cat >conftest.$ac_ext <<_ACEOF
3226/* confdefs.h.  */
3227_ACEOF
3228cat confdefs.h >>conftest.$ac_ext
3229cat >>conftest.$ac_ext <<_ACEOF
3230/* end confdefs.h.  */
3231
3232int
3233main ()
3234{
3235
3236  ;
3237  return 0;
3238}
3239_ACEOF
3240rm -f conftest.$ac_objext
3241if { (ac_try="$ac_compile"
3242case "(($ac_try" in
3243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244  *) ac_try_echo=$ac_try;;
3245esac
3246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247  (eval "$ac_compile") 2>conftest.er1
3248  ac_status=$?
3249  grep -v '^ *+' conftest.er1 >conftest.err
3250  rm -f conftest.er1
3251  cat conftest.err >&5
3252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253  (exit $ac_status); } && {
3254	 test -z "$ac_c_werror_flag" ||
3255	 test ! -s conftest.err
3256       } && test -s conftest.$ac_objext; then
3257  :
3258else
3259  echo "$as_me: failed program was:" >&5
3260sed 's/^/| /' conftest.$ac_ext >&5
3261
3262	ac_c_werror_flag=$ac_save_c_werror_flag
3263	 CFLAGS="-g"
3264	 cat >conftest.$ac_ext <<_ACEOF
3265/* confdefs.h.  */
3266_ACEOF
3267cat confdefs.h >>conftest.$ac_ext
3268cat >>conftest.$ac_ext <<_ACEOF
3269/* end confdefs.h.  */
3270
3271int
3272main ()
3273{
3274
3275  ;
3276  return 0;
3277}
3278_ACEOF
3279rm -f conftest.$ac_objext
3280if { (ac_try="$ac_compile"
3281case "(($ac_try" in
3282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283  *) ac_try_echo=$ac_try;;
3284esac
3285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3286  (eval "$ac_compile") 2>conftest.er1
3287  ac_status=$?
3288  grep -v '^ *+' conftest.er1 >conftest.err
3289  rm -f conftest.er1
3290  cat conftest.err >&5
3291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292  (exit $ac_status); } && {
3293	 test -z "$ac_c_werror_flag" ||
3294	 test ! -s conftest.err
3295       } && test -s conftest.$ac_objext; then
3296  ac_cv_prog_cc_g=yes
3297else
3298  echo "$as_me: failed program was:" >&5
3299sed 's/^/| /' conftest.$ac_ext >&5
3300
3301
3302fi
3303
3304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305fi
3306
3307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308fi
3309
3310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311   ac_c_werror_flag=$ac_save_c_werror_flag
3312fi
3313{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3314echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3315if test "$ac_test_CFLAGS" = set; then
3316  CFLAGS=$ac_save_CFLAGS
3317elif test $ac_cv_prog_cc_g = yes; then
3318  if test "$GCC" = yes; then
3319    CFLAGS="-g -O2"
3320  else
3321    CFLAGS="-g"
3322  fi
3323else
3324  if test "$GCC" = yes; then
3325    CFLAGS="-O2"
3326  else
3327    CFLAGS=
3328  fi
3329fi
3330{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3331echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3332if test "${ac_cv_prog_cc_c89+set}" = set; then
3333  echo $ECHO_N "(cached) $ECHO_C" >&6
3334else
3335  ac_cv_prog_cc_c89=no
3336ac_save_CC=$CC
3337cat >conftest.$ac_ext <<_ACEOF
3338/* confdefs.h.  */
3339_ACEOF
3340cat confdefs.h >>conftest.$ac_ext
3341cat >>conftest.$ac_ext <<_ACEOF
3342/* end confdefs.h.  */
3343#include <stdarg.h>
3344#include <stdio.h>
3345#include <sys/types.h>
3346#include <sys/stat.h>
3347/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3348struct buf { int x; };
3349FILE * (*rcsopen) (struct buf *, struct stat *, int);
3350static char *e (p, i)
3351     char **p;
3352     int i;
3353{
3354  return p[i];
3355}
3356static char *f (char * (*g) (char **, int), char **p, ...)
3357{
3358  char *s;
3359  va_list v;
3360  va_start (v,p);
3361  s = g (p, va_arg (v,int));
3362  va_end (v);
3363  return s;
3364}
3365
3366/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3367   function prototypes and stuff, but not '\xHH' hex character constants.
3368   These don't provoke an error unfortunately, instead are silently treated
3369   as 'x'.  The following induces an error, until -std is added to get
3370   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3371   array size at least.  It's necessary to write '\x00'==0 to get something
3372   that's true only with -std.  */
3373int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3374
3375/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3376   inside strings and character constants.  */
3377#define FOO(x) 'x'
3378int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3379
3380int test (int i, double x);
3381struct s1 {int (*f) (int a);};
3382struct s2 {int (*f) (double a);};
3383int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3384int argc;
3385char **argv;
3386int
3387main ()
3388{
3389return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3390  ;
3391  return 0;
3392}
3393_ACEOF
3394for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3395	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3396do
3397  CC="$ac_save_CC $ac_arg"
3398  rm -f conftest.$ac_objext
3399if { (ac_try="$ac_compile"
3400case "(($ac_try" in
3401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402  *) ac_try_echo=$ac_try;;
3403esac
3404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405  (eval "$ac_compile") 2>conftest.er1
3406  ac_status=$?
3407  grep -v '^ *+' conftest.er1 >conftest.err
3408  rm -f conftest.er1
3409  cat conftest.err >&5
3410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411  (exit $ac_status); } && {
3412	 test -z "$ac_c_werror_flag" ||
3413	 test ! -s conftest.err
3414       } && test -s conftest.$ac_objext; then
3415  ac_cv_prog_cc_c89=$ac_arg
3416else
3417  echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
3420
3421fi
3422
3423rm -f core conftest.err conftest.$ac_objext
3424  test "x$ac_cv_prog_cc_c89" != "xno" && break
3425done
3426rm -f conftest.$ac_ext
3427CC=$ac_save_CC
3428
3429fi
3430# AC_CACHE_VAL
3431case "x$ac_cv_prog_cc_c89" in
3432  x)
3433    { echo "$as_me:$LINENO: result: none needed" >&5
3434echo "${ECHO_T}none needed" >&6; } ;;
3435  xno)
3436    { echo "$as_me:$LINENO: result: unsupported" >&5
3437echo "${ECHO_T}unsupported" >&6; } ;;
3438  *)
3439    CC="$CC $ac_cv_prog_cc_c89"
3440    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3441echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3442esac
3443
3444
3445ac_ext=c
3446ac_cpp='$CPP $CPPFLAGS'
3447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449ac_compiler_gnu=$ac_cv_c_compiler_gnu
3450DEPDIR="${am__leading_dot}deps"
3451
3452ac_config_commands="$ac_config_commands depfiles"
3453
3454
3455am_make=${MAKE-make}
3456cat > confinc << 'END'
3457am__doit:
3458	@echo done
3459.PHONY: am__doit
3460END
3461# If we don't find an include directive, just comment out the code.
3462{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3463echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3464am__include="#"
3465am__quote=
3466_am_result=none
3467# First try GNU make style include.
3468echo "include confinc" > confmf
3469# We grep out `Entering directory' and `Leaving directory'
3470# messages which can occur if `w' ends up in MAKEFLAGS.
3471# In particular we don't look at `^make:' because GNU make might
3472# be invoked under some other name (usually "gmake"), in which
3473# case it prints its new name instead of `make'.
3474if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3475   am__include=include
3476   am__quote=
3477   _am_result=GNU
3478fi
3479# Now try BSD make style include.
3480if test "$am__include" = "#"; then
3481   echo '.include "confinc"' > confmf
3482   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3483      am__include=.include
3484      am__quote="\""
3485      _am_result=BSD
3486   fi
3487fi
3488
3489
3490{ echo "$as_me:$LINENO: result: $_am_result" >&5
3491echo "${ECHO_T}$_am_result" >&6; }
3492rm -f confinc confmf
3493
3494# Check whether --enable-dependency-tracking was given.
3495if test "${enable_dependency_tracking+set}" = set; then
3496  enableval=$enable_dependency_tracking;
3497fi
3498
3499if test "x$enable_dependency_tracking" != xno; then
3500  am_depcomp="$ac_aux_dir/depcomp"
3501  AMDEPBACKSLASH='\'
3502fi
3503
3504
3505if test "x$enable_dependency_tracking" != xno; then
3506  AMDEP_TRUE=
3507  AMDEP_FALSE='#'
3508else
3509  AMDEP_TRUE='#'
3510  AMDEP_FALSE=
3511fi
3512
3513
3514
3515
3516depcc="$CC"   am_compiler_list=
3517
3518{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3519echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3520if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3521  echo $ECHO_N "(cached) $ECHO_C" >&6
3522else
3523  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3524  # We make a subdir and do the tests there.  Otherwise we can end up
3525  # making bogus files that we don't know about and never remove.  For
3526  # instance it was reported that on HP-UX the gcc test will end up
3527  # making a dummy file named `D' -- because `-MD' means `put the output
3528  # in D'.
3529  mkdir conftest.dir
3530  # Copy depcomp to subdir because otherwise we won't find it if we're
3531  # using a relative directory.
3532  cp "$am_depcomp" conftest.dir
3533  cd conftest.dir
3534  # We will build objects and dependencies in a subdirectory because
3535  # it helps to detect inapplicable dependency modes.  For instance
3536  # both Tru64's cc and ICC support -MD to output dependencies as a
3537  # side effect of compilation, but ICC will put the dependencies in
3538  # the current directory while Tru64 will put them in the object
3539  # directory.
3540  mkdir sub
3541
3542  am_cv_CC_dependencies_compiler_type=none
3543  if test "$am_compiler_list" = ""; then
3544     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3545  fi
3546  for depmode in $am_compiler_list; do
3547    # Setup a source with many dependencies, because some compilers
3548    # like to wrap large dependency lists on column 80 (with \), and
3549    # we should not choose a depcomp mode which is confused by this.
3550    #
3551    # We need to recreate these files for each test, as the compiler may
3552    # overwrite some of them when testing with obscure command lines.
3553    # This happens at least with the AIX C compiler.
3554    : > sub/conftest.c
3555    for i in 1 2 3 4 5 6; do
3556      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3557      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3558      # Solaris 8's {/usr,}/bin/sh.
3559      touch sub/conftst$i.h
3560    done
3561    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3562
3563    case $depmode in
3564    nosideeffect)
3565      # after this tag, mechanisms are not by side-effect, so they'll
3566      # only be used when explicitly requested
3567      if test "x$enable_dependency_tracking" = xyes; then
3568	continue
3569      else
3570	break
3571      fi
3572      ;;
3573    none) break ;;
3574    esac
3575    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3576    # mode.  It turns out that the SunPro C++ compiler does not properly
3577    # handle `-M -o', and we need to detect this.
3578    if depmode=$depmode \
3579       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3580       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3581       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3582         >/dev/null 2>conftest.err &&
3583       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3584       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3585       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3586      # icc doesn't choke on unknown options, it will just issue warnings
3587      # or remarks (even with -Werror).  So we grep stderr for any message
3588      # that says an option was ignored or not supported.
3589      # When given -MP, icc 7.0 and 7.1 complain thusly:
3590      #   icc: Command line warning: ignoring option '-M'; no argument required
3591      # The diagnosis changed in icc 8.0:
3592      #   icc: Command line remark: option '-MP' not supported
3593      if (grep 'ignoring option' conftest.err ||
3594          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3595        am_cv_CC_dependencies_compiler_type=$depmode
3596        break
3597      fi
3598    fi
3599  done
3600
3601  cd ..
3602  rm -rf conftest.dir
3603else
3604  am_cv_CC_dependencies_compiler_type=none
3605fi
3606
3607fi
3608{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3609echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3610CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3611
3612
3613
3614if
3615  test "x$enable_dependency_tracking" != xno \
3616  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3617  am__fastdepCC_TRUE=
3618  am__fastdepCC_FALSE='#'
3619else
3620  am__fastdepCC_TRUE='#'
3621  am__fastdepCC_FALSE=
3622fi
3623
3624
3625{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3626echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3627LN_S=$as_ln_s
3628if test "$LN_S" = "ln -s"; then
3629  { echo "$as_me:$LINENO: result: yes" >&5
3630echo "${ECHO_T}yes" >&6; }
3631else
3632  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3633echo "${ECHO_T}no, using $LN_S" >&6; }
3634fi
3635
3636if test "x$CC" != xcc; then
3637  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3638echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3639else
3640  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3641echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3642fi
3643set dummy $CC; ac_cc=`echo $2 |
3644		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3645if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3646  echo $ECHO_N "(cached) $ECHO_C" >&6
3647else
3648  cat >conftest.$ac_ext <<_ACEOF
3649/* confdefs.h.  */
3650_ACEOF
3651cat confdefs.h >>conftest.$ac_ext
3652cat >>conftest.$ac_ext <<_ACEOF
3653/* end confdefs.h.  */
3654
3655int
3656main ()
3657{
3658
3659  ;
3660  return 0;
3661}
3662_ACEOF
3663# Make sure it works both with $CC and with simple cc.
3664# We do the test twice because some compilers refuse to overwrite an
3665# existing .o file with -o, though they will create one.
3666ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3667rm -f conftest2.*
3668if { (case "(($ac_try" in
3669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670  *) ac_try_echo=$ac_try;;
3671esac
3672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673  (eval "$ac_try") 2>&5
3674  ac_status=$?
3675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676  (exit $ac_status); } &&
3677   test -f conftest2.$ac_objext && { (case "(($ac_try" in
3678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679  *) ac_try_echo=$ac_try;;
3680esac
3681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682  (eval "$ac_try") 2>&5
3683  ac_status=$?
3684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685  (exit $ac_status); };
3686then
3687  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3688  if test "x$CC" != xcc; then
3689    # Test first that cc exists at all.
3690    if { ac_try='cc -c conftest.$ac_ext >&5'
3691  { (case "(($ac_try" in
3692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693  *) ac_try_echo=$ac_try;;
3694esac
3695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696  (eval "$ac_try") 2>&5
3697  ac_status=$?
3698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699  (exit $ac_status); }; }; then
3700      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3701      rm -f conftest2.*
3702      if { (case "(($ac_try" in
3703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704  *) ac_try_echo=$ac_try;;
3705esac
3706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707  (eval "$ac_try") 2>&5
3708  ac_status=$?
3709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710  (exit $ac_status); } &&
3711	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713  *) ac_try_echo=$ac_try;;
3714esac
3715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716  (eval "$ac_try") 2>&5
3717  ac_status=$?
3718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719  (exit $ac_status); };
3720      then
3721	# cc works too.
3722	:
3723      else
3724	# cc exists but doesn't like -o.
3725	eval ac_cv_prog_cc_${ac_cc}_c_o=no
3726      fi
3727    fi
3728  fi
3729else
3730  eval ac_cv_prog_cc_${ac_cc}_c_o=no
3731fi
3732rm -f core conftest*
3733
3734fi
3735if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3736  { echo "$as_me:$LINENO: result: yes" >&5
3737echo "${ECHO_T}yes" >&6; }
3738else
3739  { echo "$as_me:$LINENO: result: no" >&5
3740echo "${ECHO_T}no" >&6; }
3741
3742cat >>confdefs.h <<\_ACEOF
3743#define NO_MINUS_C_MINUS_O 1
3744_ACEOF
3745
3746fi
3747
3748# FIXME: we rely on the cache variable name because
3749# there is no other way.
3750set dummy $CC
3751ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3752if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3753   # Losing compiler, so override with the script.
3754   # FIXME: It is wrong to rewrite CC.
3755   # But if we don't then we get into trouble of one sort or another.
3756   # A longer-term fix would be to have automake use am__CC in this case,
3757   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3758   CC="$am_aux_dir/compile $CC"
3759fi
3760
3761
3762# Check whether --enable-shared was given.
3763if test "${enable_shared+set}" = set; then
3764  enableval=$enable_shared; p=${PACKAGE-default}
3765    case $enableval in
3766    yes) enable_shared=yes ;;
3767    no) enable_shared=no ;;
3768    *)
3769      enable_shared=no
3770      # Look at the argument we got.  We use all the common list separators.
3771      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3772      for pkg in $enableval; do
3773	IFS="$lt_save_ifs"
3774	if test "X$pkg" = "X$p"; then
3775	  enable_shared=yes
3776	fi
3777      done
3778      IFS="$lt_save_ifs"
3779      ;;
3780    esac
3781else
3782  enable_shared=yes
3783fi
3784
3785
3786# Check whether --enable-static was given.
3787if test "${enable_static+set}" = set; then
3788  enableval=$enable_static; p=${PACKAGE-default}
3789    case $enableval in
3790    yes) enable_static=yes ;;
3791    no) enable_static=no ;;
3792    *)
3793     enable_static=no
3794      # Look at the argument we got.  We use all the common list separators.
3795      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3796      for pkg in $enableval; do
3797	IFS="$lt_save_ifs"
3798	if test "X$pkg" = "X$p"; then
3799	  enable_static=yes
3800	fi
3801      done
3802      IFS="$lt_save_ifs"
3803      ;;
3804    esac
3805else
3806  enable_static=yes
3807fi
3808
3809
3810# Check whether --enable-fast-install was given.
3811if test "${enable_fast_install+set}" = set; then
3812  enableval=$enable_fast_install; p=${PACKAGE-default}
3813    case $enableval in
3814    yes) enable_fast_install=yes ;;
3815    no) enable_fast_install=no ;;
3816    *)
3817      enable_fast_install=no
3818      # Look at the argument we got.  We use all the common list separators.
3819      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3820      for pkg in $enableval; do
3821	IFS="$lt_save_ifs"
3822	if test "X$pkg" = "X$p"; then
3823	  enable_fast_install=yes
3824	fi
3825      done
3826      IFS="$lt_save_ifs"
3827      ;;
3828    esac
3829else
3830  enable_fast_install=yes
3831fi
3832
3833
3834{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3835echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3836if test "${lt_cv_path_SED+set}" = set; then
3837  echo $ECHO_N "(cached) $ECHO_C" >&6
3838else
3839  # Loop through the user's path and test for sed and gsed.
3840# Then use that list of sed's as ones to test for truncation.
3841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842for as_dir in $PATH
3843do
3844  IFS=$as_save_IFS
3845  test -z "$as_dir" && as_dir=.
3846  for lt_ac_prog in sed gsed; do
3847    for ac_exec_ext in '' $ac_executable_extensions; do
3848      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3849        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3850      fi
3851    done
3852  done
3853done
3854lt_ac_max=0
3855lt_ac_count=0
3856# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3857# along with /bin/sed that truncates output.
3858for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3859  test ! -f $lt_ac_sed && continue
3860  cat /dev/null > conftest.in
3861  lt_ac_count=0
3862  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3863  # Check for GNU sed and select it if it is found.
3864  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3865    lt_cv_path_SED=$lt_ac_sed
3866    break
3867  fi
3868  while true; do
3869    cat conftest.in conftest.in >conftest.tmp
3870    mv conftest.tmp conftest.in
3871    cp conftest.in conftest.nl
3872    echo >>conftest.nl
3873    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3874    cmp -s conftest.out conftest.nl || break
3875    # 10000 chars as input seems more than enough
3876    test $lt_ac_count -gt 10 && break
3877    lt_ac_count=`expr $lt_ac_count + 1`
3878    if test $lt_ac_count -gt $lt_ac_max; then
3879      lt_ac_max=$lt_ac_count
3880      lt_cv_path_SED=$lt_ac_sed
3881    fi
3882  done
3883done
3884
3885fi
3886
3887SED=$lt_cv_path_SED
3888{ echo "$as_me:$LINENO: result: $SED" >&5
3889echo "${ECHO_T}$SED" >&6; }
3890
3891{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3892echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3893if test "${ac_cv_path_GREP+set}" = set; then
3894  echo $ECHO_N "(cached) $ECHO_C" >&6
3895else
3896  # Extract the first word of "grep ggrep" to use in msg output
3897if test -z "$GREP"; then
3898set dummy grep ggrep; ac_prog_name=$2
3899if test "${ac_cv_path_GREP+set}" = set; then
3900  echo $ECHO_N "(cached) $ECHO_C" >&6
3901else
3902  ac_path_GREP_found=false
3903# Loop through the user's path and test for each of PROGNAME-LIST
3904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3906do
3907  IFS=$as_save_IFS
3908  test -z "$as_dir" && as_dir=.
3909  for ac_prog in grep ggrep; do
3910  for ac_exec_ext in '' $ac_executable_extensions; do
3911    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3912    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3913    # Check for GNU ac_path_GREP and select it if it is found.
3914  # Check for GNU $ac_path_GREP
3915case `"$ac_path_GREP" --version 2>&1` in
3916*GNU*)
3917  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3918*)
3919  ac_count=0
3920  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3921  while :
3922  do
3923    cat "conftest.in" "conftest.in" >"conftest.tmp"
3924    mv "conftest.tmp" "conftest.in"
3925    cp "conftest.in" "conftest.nl"
3926    echo 'GREP' >> "conftest.nl"
3927    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3928    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3929    ac_count=`expr $ac_count + 1`
3930    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3931      # Best one so far, save it but keep looking for a better one
3932      ac_cv_path_GREP="$ac_path_GREP"
3933      ac_path_GREP_max=$ac_count
3934    fi
3935    # 10*(2^10) chars as input seems more than enough
3936    test $ac_count -gt 10 && break
3937  done
3938  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3939esac
3940
3941
3942    $ac_path_GREP_found && break 3
3943  done
3944done
3945
3946done
3947IFS=$as_save_IFS
3948
3949
3950fi
3951
3952GREP="$ac_cv_path_GREP"
3953if test -z "$GREP"; then
3954  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3955echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3956   { (exit 1); exit 1; }; }
3957fi
3958
3959else
3960  ac_cv_path_GREP=$GREP
3961fi
3962
3963
3964fi
3965{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3966echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3967 GREP="$ac_cv_path_GREP"
3968
3969
3970{ echo "$as_me:$LINENO: checking for egrep" >&5
3971echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3972if test "${ac_cv_path_EGREP+set}" = set; then
3973  echo $ECHO_N "(cached) $ECHO_C" >&6
3974else
3975  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3976   then ac_cv_path_EGREP="$GREP -E"
3977   else
3978     # Extract the first word of "egrep" to use in msg output
3979if test -z "$EGREP"; then
3980set dummy egrep; ac_prog_name=$2
3981if test "${ac_cv_path_EGREP+set}" = set; then
3982  echo $ECHO_N "(cached) $ECHO_C" >&6
3983else
3984  ac_path_EGREP_found=false
3985# Loop through the user's path and test for each of PROGNAME-LIST
3986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3988do
3989  IFS=$as_save_IFS
3990  test -z "$as_dir" && as_dir=.
3991  for ac_prog in egrep; do
3992  for ac_exec_ext in '' $ac_executable_extensions; do
3993    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3994    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3995    # Check for GNU ac_path_EGREP and select it if it is found.
3996  # Check for GNU $ac_path_EGREP
3997case `"$ac_path_EGREP" --version 2>&1` in
3998*GNU*)
3999  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4000*)
4001  ac_count=0
4002  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4003  while :
4004  do
4005    cat "conftest.in" "conftest.in" >"conftest.tmp"
4006    mv "conftest.tmp" "conftest.in"
4007    cp "conftest.in" "conftest.nl"
4008    echo 'EGREP' >> "conftest.nl"
4009    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4010    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4011    ac_count=`expr $ac_count + 1`
4012    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4013      # Best one so far, save it but keep looking for a better one
4014      ac_cv_path_EGREP="$ac_path_EGREP"
4015      ac_path_EGREP_max=$ac_count
4016    fi
4017    # 10*(2^10) chars as input seems more than enough
4018    test $ac_count -gt 10 && break
4019  done
4020  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4021esac
4022
4023
4024    $ac_path_EGREP_found && break 3
4025  done
4026done
4027
4028done
4029IFS=$as_save_IFS
4030
4031
4032fi
4033
4034EGREP="$ac_cv_path_EGREP"
4035if test -z "$EGREP"; then
4036  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4037echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4038   { (exit 1); exit 1; }; }
4039fi
4040
4041else
4042  ac_cv_path_EGREP=$EGREP
4043fi
4044
4045
4046   fi
4047fi
4048{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4049echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4050 EGREP="$ac_cv_path_EGREP"
4051
4052
4053
4054# Check whether --with-gnu-ld was given.
4055if test "${with_gnu_ld+set}" = set; then
4056  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4057else
4058  with_gnu_ld=no
4059fi
4060
4061ac_prog=ld
4062if test "$GCC" = yes; then
4063  # Check if gcc -print-prog-name=ld gives a path.
4064  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4065echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4066  case $host in
4067  *-*-mingw*)
4068    # gcc leaves a trailing carriage return which upsets mingw
4069    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4070  *)
4071    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4072  esac
4073  case $ac_prog in
4074    # Accept absolute paths.
4075    [\\/]* | ?:[\\/]*)
4076      re_direlt='/[^/][^/]*/\.\./'
4077      # Canonicalize the pathname of ld
4078      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4079      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4080	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4081      done
4082      test -z "$LD" && LD="$ac_prog"
4083      ;;
4084  "")
4085    # If it fails, then pretend we aren't using GCC.
4086    ac_prog=ld
4087    ;;
4088  *)
4089    # If it is relative, then search for the first ld in PATH.
4090    with_gnu_ld=unknown
4091    ;;
4092  esac
4093elif test "$with_gnu_ld" = yes; then
4094  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4095echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4096else
4097  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4098echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4099fi
4100if test "${lt_cv_path_LD+set}" = set; then
4101  echo $ECHO_N "(cached) $ECHO_C" >&6
4102else
4103  if test -z "$LD"; then
4104  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4105  for ac_dir in $PATH; do
4106    IFS="$lt_save_ifs"
4107    test -z "$ac_dir" && ac_dir=.
4108    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4109      lt_cv_path_LD="$ac_dir/$ac_prog"
4110      # Check to see if the program is GNU ld.  I'd rather use --version,
4111      # but apparently some variants of GNU ld only accept -v.
4112      # Break only if it was the GNU/non-GNU ld that we prefer.
4113      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4114      *GNU* | *'with BFD'*)
4115	test "$with_gnu_ld" != no && break
4116	;;
4117      *)
4118	test "$with_gnu_ld" != yes && break
4119	;;
4120      esac
4121    fi
4122  done
4123  IFS="$lt_save_ifs"
4124else
4125  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4126fi
4127fi
4128
4129LD="$lt_cv_path_LD"
4130if test -n "$LD"; then
4131  { echo "$as_me:$LINENO: result: $LD" >&5
4132echo "${ECHO_T}$LD" >&6; }
4133else
4134  { echo "$as_me:$LINENO: result: no" >&5
4135echo "${ECHO_T}no" >&6; }
4136fi
4137test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4138echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4139   { (exit 1); exit 1; }; }
4140{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4141echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4142if test "${lt_cv_prog_gnu_ld+set}" = set; then
4143  echo $ECHO_N "(cached) $ECHO_C" >&6
4144else
4145  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4146case `$LD -v 2>&1 </dev/null` in
4147*GNU* | *'with BFD'*)
4148  lt_cv_prog_gnu_ld=yes
4149  ;;
4150*)
4151  lt_cv_prog_gnu_ld=no
4152  ;;
4153esac
4154fi
4155{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4156echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4157with_gnu_ld=$lt_cv_prog_gnu_ld
4158
4159
4160{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4161echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4162if test "${lt_cv_ld_reload_flag+set}" = set; then
4163  echo $ECHO_N "(cached) $ECHO_C" >&6
4164else
4165  lt_cv_ld_reload_flag='-r'
4166fi
4167{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4168echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4169reload_flag=$lt_cv_ld_reload_flag
4170case $reload_flag in
4171"" | " "*) ;;
4172*) reload_flag=" $reload_flag" ;;
4173esac
4174reload_cmds='$LD$reload_flag -o $output$reload_objs'
4175case $host_os in
4176  darwin*)
4177    if test "$GCC" = yes; then
4178      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4179    else
4180      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4181    fi
4182    ;;
4183esac
4184
4185{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4186echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4187if test "${lt_cv_path_NM+set}" = set; then
4188  echo $ECHO_N "(cached) $ECHO_C" >&6
4189else
4190  if test -n "$NM"; then
4191  # Let the user override the test.
4192  lt_cv_path_NM="$NM"
4193else
4194  lt_nm_to_check="${ac_tool_prefix}nm"
4195  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4196    lt_nm_to_check="$lt_nm_to_check nm"
4197  fi
4198  for lt_tmp_nm in $lt_nm_to_check; do
4199    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4200    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4201      IFS="$lt_save_ifs"
4202      test -z "$ac_dir" && ac_dir=.
4203      tmp_nm="$ac_dir/$lt_tmp_nm"
4204      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4205	# Check to see if the nm accepts a BSD-compat flag.
4206	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4207	#   nm: unknown option "B" ignored
4208	# Tru64's nm complains that /dev/null is an invalid object file
4209	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4210	*/dev/null* | *'Invalid file or object type'*)
4211	  lt_cv_path_NM="$tmp_nm -B"
4212	  break
4213	  ;;
4214	*)
4215	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4216	  */dev/null*)
4217	    lt_cv_path_NM="$tmp_nm -p"
4218	    break
4219	    ;;
4220	  *)
4221	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4222	    continue # so that we can try to find one that supports BSD flags
4223	    ;;
4224	  esac
4225	  ;;
4226	esac
4227      fi
4228    done
4229    IFS="$lt_save_ifs"
4230  done
4231  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4232fi
4233fi
4234{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4235echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4236NM="$lt_cv_path_NM"
4237
4238{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4239echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4240if test "${lt_cv_deplibs_check_method+set}" = set; then
4241  echo $ECHO_N "(cached) $ECHO_C" >&6
4242else
4243  lt_cv_file_magic_cmd='$MAGIC_CMD'
4244lt_cv_file_magic_test_file=
4245lt_cv_deplibs_check_method='unknown'
4246# Need to set the preceding variable on all platforms that support
4247# interlibrary dependencies.
4248# 'none' -- dependencies not supported.
4249# `unknown' -- same as none, but documents that we really don't know.
4250# 'pass_all' -- all dependencies passed with no checks.
4251# 'test_compile' -- check by making test program.
4252# 'file_magic [[regex]]' -- check by looking for files in library path
4253# which responds to the $file_magic_cmd with a given extended regex.
4254# If you have `file' or equivalent on your system and you're not sure
4255# whether `pass_all' will *always* work, you probably want this one.
4256
4257case $host_os in
4258aix4* | aix5*)
4259  lt_cv_deplibs_check_method=pass_all
4260  ;;
4261
4262beos*)
4263  lt_cv_deplibs_check_method=pass_all
4264  ;;
4265
4266bsdi[45]*)
4267  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4268  lt_cv_file_magic_cmd='/usr/bin/file -L'
4269  lt_cv_file_magic_test_file=/shlib/libc.so
4270  ;;
4271
4272cygwin*)
4273  # func_win32_libid is a shell function defined in ltmain.sh
4274  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4275  lt_cv_file_magic_cmd='func_win32_libid'
4276  ;;
4277
4278mingw* | pw32*)
4279  # Base MSYS/MinGW do not provide the 'file' command needed by
4280  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4281  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4282  lt_cv_file_magic_cmd='$OBJDUMP -f'
4283  ;;
4284
4285darwin* | rhapsody*)
4286  lt_cv_deplibs_check_method=pass_all
4287  ;;
4288
4289freebsd* | kfreebsd*-gnu | dragonfly*)
4290  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4291    case $host_cpu in
4292    i*86 )
4293      # Not sure whether the presence of OpenBSD here was a mistake.
4294      # Let's accept both of them until this is cleared up.
4295      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4296      lt_cv_file_magic_cmd=/usr/bin/file
4297      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4298      ;;
4299    esac
4300  else
4301    lt_cv_deplibs_check_method=pass_all
4302  fi
4303  ;;
4304
4305gnu*)
4306  lt_cv_deplibs_check_method=pass_all
4307  ;;
4308
4309hpux10.20* | hpux11*)
4310  lt_cv_file_magic_cmd=/usr/bin/file
4311  case $host_cpu in
4312  ia64*)
4313    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4314    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4315    ;;
4316  hppa*64*)
4317    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]'
4318    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4319    ;;
4320  *)
4321    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4322    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4323    ;;
4324  esac
4325  ;;
4326
4327interix3*)
4328  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4329  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4330  ;;
4331
4332irix5* | irix6* | nonstopux*)
4333  case $LD in
4334  *-32|*"-32 ") libmagic=32-bit;;
4335  *-n32|*"-n32 ") libmagic=N32;;
4336  *-64|*"-64 ") libmagic=64-bit;;
4337  *) libmagic=never-match;;
4338  esac
4339  lt_cv_deplibs_check_method=pass_all
4340  ;;
4341
4342# This must be Linux ELF.
4343linux*)
4344  lt_cv_deplibs_check_method=pass_all
4345  ;;
4346
4347netbsd*)
4348  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4349    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4350  else
4351    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4352  fi
4353  ;;
4354
4355newos6*)
4356  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4357  lt_cv_file_magic_cmd=/usr/bin/file
4358  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4359  ;;
4360
4361nto-qnx*)
4362  lt_cv_deplibs_check_method=unknown
4363  ;;
4364
4365openbsd*)
4366  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4367    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4368  else
4369    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4370  fi
4371  ;;
4372
4373osf3* | osf4* | osf5*)
4374  lt_cv_deplibs_check_method=pass_all
4375  ;;
4376
4377solaris*)
4378  lt_cv_deplibs_check_method=pass_all
4379  ;;
4380
4381sysv4 | sysv4.3*)
4382  case $host_vendor in
4383  motorola)
4384    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]'
4385    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4386    ;;
4387  ncr)
4388    lt_cv_deplibs_check_method=pass_all
4389    ;;
4390  sequent)
4391    lt_cv_file_magic_cmd='/bin/file'
4392    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4393    ;;
4394  sni)
4395    lt_cv_file_magic_cmd='/bin/file'
4396    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4397    lt_cv_file_magic_test_file=/lib/libc.so
4398    ;;
4399  siemens)
4400    lt_cv_deplibs_check_method=pass_all
4401    ;;
4402  pc)
4403    lt_cv_deplibs_check_method=pass_all
4404    ;;
4405  esac
4406  ;;
4407
4408sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4409  lt_cv_deplibs_check_method=pass_all
4410  ;;
4411esac
4412
4413fi
4414{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4415echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4416file_magic_cmd=$lt_cv_file_magic_cmd
4417deplibs_check_method=$lt_cv_deplibs_check_method
4418test -z "$deplibs_check_method" && deplibs_check_method=unknown
4419
4420
4421
4422
4423# If no C compiler was specified, use CC.
4424LTCC=${LTCC-"$CC"}
4425
4426# If no C compiler flags were specified, use CFLAGS.
4427LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4428
4429# Allow CC to be a program name with arguments.
4430compiler=$CC
4431
4432
4433# Check whether --enable-libtool-lock was given.
4434if test "${enable_libtool_lock+set}" = set; then
4435  enableval=$enable_libtool_lock;
4436fi
4437
4438test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4439
4440# Some flags need to be propagated to the compiler or linker for good
4441# libtool support.
4442case $host in
4443ia64-*-hpux*)
4444  # Find out which ABI we are using.
4445  echo 'int i;' > conftest.$ac_ext
4446  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4447  (eval $ac_compile) 2>&5
4448  ac_status=$?
4449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450  (exit $ac_status); }; then
4451    case `/usr/bin/file conftest.$ac_objext` in
4452    *ELF-32*)
4453      HPUX_IA64_MODE="32"
4454      ;;
4455    *ELF-64*)
4456      HPUX_IA64_MODE="64"
4457      ;;
4458    esac
4459  fi
4460  rm -rf conftest*
4461  ;;
4462*-*-irix6*)
4463  # Find out which ABI we are using.
4464  echo '#line 4464 "configure"' > conftest.$ac_ext
4465  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4466  (eval $ac_compile) 2>&5
4467  ac_status=$?
4468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469  (exit $ac_status); }; then
4470   if test "$lt_cv_prog_gnu_ld" = yes; then
4471    case `/usr/bin/file conftest.$ac_objext` in
4472    *32-bit*)
4473      LD="${LD-ld} -melf32bsmip"
4474      ;;
4475    *N32*)
4476      LD="${LD-ld} -melf32bmipn32"
4477      ;;
4478    *64-bit*)
4479      LD="${LD-ld} -melf64bmip"
4480      ;;
4481    esac
4482   else
4483    case `/usr/bin/file conftest.$ac_objext` in
4484    *32-bit*)
4485      LD="${LD-ld} -32"
4486      ;;
4487    *N32*)
4488      LD="${LD-ld} -n32"
4489      ;;
4490    *64-bit*)
4491      LD="${LD-ld} -64"
4492      ;;
4493    esac
4494   fi
4495  fi
4496  rm -rf conftest*
4497  ;;
4498
4499x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4500  # Find out which ABI we are using.
4501  echo 'int i;' > conftest.$ac_ext
4502  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4503  (eval $ac_compile) 2>&5
4504  ac_status=$?
4505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506  (exit $ac_status); }; then
4507    case `/usr/bin/file conftest.o` in
4508    *32-bit*)
4509      case $host in
4510        x86_64-*linux*)
4511          LD="${LD-ld} -m elf_i386"
4512          ;;
4513        ppc64-*linux*|powerpc64-*linux*)
4514          LD="${LD-ld} -m elf32ppclinux"
4515          ;;
4516        s390x-*linux*)
4517          LD="${LD-ld} -m elf_s390"
4518          ;;
4519        sparc64-*linux*)
4520          LD="${LD-ld} -m elf32_sparc"
4521          ;;
4522      esac
4523      ;;
4524    *64-bit*)
4525      case $host in
4526        x86_64-*linux*)
4527          LD="${LD-ld} -m elf_x86_64"
4528          ;;
4529        ppc*-*linux*|powerpc*-*linux*)
4530          LD="${LD-ld} -m elf64ppc"
4531          ;;
4532        s390*-*linux*)
4533          LD="${LD-ld} -m elf64_s390"
4534          ;;
4535        sparc*-*linux*)
4536          LD="${LD-ld} -m elf64_sparc"
4537          ;;
4538      esac
4539      ;;
4540    esac
4541  fi
4542  rm -rf conftest*
4543  ;;
4544
4545*-*-sco3.2v5*)
4546  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4547  SAVE_CFLAGS="$CFLAGS"
4548  CFLAGS="$CFLAGS -belf"
4549  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4550echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4551if test "${lt_cv_cc_needs_belf+set}" = set; then
4552  echo $ECHO_N "(cached) $ECHO_C" >&6
4553else
4554  ac_ext=c
4555ac_cpp='$CPP $CPPFLAGS'
4556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559
4560     cat >conftest.$ac_ext <<_ACEOF
4561/* confdefs.h.  */
4562_ACEOF
4563cat confdefs.h >>conftest.$ac_ext
4564cat >>conftest.$ac_ext <<_ACEOF
4565/* end confdefs.h.  */
4566
4567int
4568main ()
4569{
4570
4571  ;
4572  return 0;
4573}
4574_ACEOF
4575rm -f conftest.$ac_objext conftest$ac_exeext
4576if { (ac_try="$ac_link"
4577case "(($ac_try" in
4578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579  *) ac_try_echo=$ac_try;;
4580esac
4581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582  (eval "$ac_link") 2>conftest.er1
4583  ac_status=$?
4584  grep -v '^ *+' conftest.er1 >conftest.err
4585  rm -f conftest.er1
4586  cat conftest.err >&5
4587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588  (exit $ac_status); } && {
4589	 test -z "$ac_c_werror_flag" ||
4590	 test ! -s conftest.err
4591       } && test -s conftest$ac_exeext &&
4592       $as_test_x conftest$ac_exeext; then
4593  lt_cv_cc_needs_belf=yes
4594else
4595  echo "$as_me: failed program was:" >&5
4596sed 's/^/| /' conftest.$ac_ext >&5
4597
4598	lt_cv_cc_needs_belf=no
4599fi
4600
4601rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4602      conftest$ac_exeext conftest.$ac_ext
4603     ac_ext=c
4604ac_cpp='$CPP $CPPFLAGS'
4605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607ac_compiler_gnu=$ac_cv_c_compiler_gnu
4608
4609fi
4610{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4611echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4612  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4613    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4614    CFLAGS="$SAVE_CFLAGS"
4615  fi
4616  ;;
4617sparc*-*solaris*)
4618  # Find out which ABI we are using.
4619  echo 'int i;' > conftest.$ac_ext
4620  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4621  (eval $ac_compile) 2>&5
4622  ac_status=$?
4623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624  (exit $ac_status); }; then
4625    case `/usr/bin/file conftest.o` in
4626    *64-bit*)
4627      case $lt_cv_prog_gnu_ld in
4628      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4629      *)    LD="${LD-ld} -64" ;;
4630      esac
4631      ;;
4632    esac
4633  fi
4634  rm -rf conftest*
4635  ;;
4636
4637
4638esac
4639
4640need_locks="$enable_libtool_lock"
4641
4642
4643ac_ext=c
4644ac_cpp='$CPP $CPPFLAGS'
4645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647ac_compiler_gnu=$ac_cv_c_compiler_gnu
4648{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4649echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4650# On Suns, sometimes $CPP names a directory.
4651if test -n "$CPP" && test -d "$CPP"; then
4652  CPP=
4653fi
4654if test -z "$CPP"; then
4655  if test "${ac_cv_prog_CPP+set}" = set; then
4656  echo $ECHO_N "(cached) $ECHO_C" >&6
4657else
4658      # Double quotes because CPP needs to be expanded
4659    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4660    do
4661      ac_preproc_ok=false
4662for ac_c_preproc_warn_flag in '' yes
4663do
4664  # Use a header file that comes with gcc, so configuring glibc
4665  # with a fresh cross-compiler works.
4666  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4667  # <limits.h> exists even on freestanding compilers.
4668  # On the NeXT, cc -E runs the code through the compiler's parser,
4669  # not just through cpp. "Syntax error" is here to catch this case.
4670  cat >conftest.$ac_ext <<_ACEOF
4671/* confdefs.h.  */
4672_ACEOF
4673cat confdefs.h >>conftest.$ac_ext
4674cat >>conftest.$ac_ext <<_ACEOF
4675/* end confdefs.h.  */
4676#ifdef __STDC__
4677# include <limits.h>
4678#else
4679# include <assert.h>
4680#endif
4681		     Syntax error
4682_ACEOF
4683if { (ac_try="$ac_cpp conftest.$ac_ext"
4684case "(($ac_try" in
4685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686  *) ac_try_echo=$ac_try;;
4687esac
4688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4690  ac_status=$?
4691  grep -v '^ *+' conftest.er1 >conftest.err
4692  rm -f conftest.er1
4693  cat conftest.err >&5
4694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695  (exit $ac_status); } >/dev/null && {
4696	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4697	 test ! -s conftest.err
4698       }; then
4699  :
4700else
4701  echo "$as_me: failed program was:" >&5
4702sed 's/^/| /' conftest.$ac_ext >&5
4703
4704  # Broken: fails on valid input.
4705continue
4706fi
4707
4708rm -f conftest.err conftest.$ac_ext
4709
4710  # OK, works on sane cases.  Now check whether nonexistent headers
4711  # can be detected and how.
4712  cat >conftest.$ac_ext <<_ACEOF
4713/* confdefs.h.  */
4714_ACEOF
4715cat confdefs.h >>conftest.$ac_ext
4716cat >>conftest.$ac_ext <<_ACEOF
4717/* end confdefs.h.  */
4718#include <ac_nonexistent.h>
4719_ACEOF
4720if { (ac_try="$ac_cpp conftest.$ac_ext"
4721case "(($ac_try" in
4722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723  *) ac_try_echo=$ac_try;;
4724esac
4725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4726  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4727  ac_status=$?
4728  grep -v '^ *+' conftest.er1 >conftest.err
4729  rm -f conftest.er1
4730  cat conftest.err >&5
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); } >/dev/null && {
4733	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4734	 test ! -s conftest.err
4735       }; then
4736  # Broken: success on invalid input.
4737continue
4738else
4739  echo "$as_me: failed program was:" >&5
4740sed 's/^/| /' conftest.$ac_ext >&5
4741
4742  # Passes both tests.
4743ac_preproc_ok=:
4744break
4745fi
4746
4747rm -f conftest.err conftest.$ac_ext
4748
4749done
4750# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4751rm -f conftest.err conftest.$ac_ext
4752if $ac_preproc_ok; then
4753  break
4754fi
4755
4756    done
4757    ac_cv_prog_CPP=$CPP
4758
4759fi
4760  CPP=$ac_cv_prog_CPP
4761else
4762  ac_cv_prog_CPP=$CPP
4763fi
4764{ echo "$as_me:$LINENO: result: $CPP" >&5
4765echo "${ECHO_T}$CPP" >&6; }
4766ac_preproc_ok=false
4767for ac_c_preproc_warn_flag in '' yes
4768do
4769  # Use a header file that comes with gcc, so configuring glibc
4770  # with a fresh cross-compiler works.
4771  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4772  # <limits.h> exists even on freestanding compilers.
4773  # On the NeXT, cc -E runs the code through the compiler's parser,
4774  # not just through cpp. "Syntax error" is here to catch this case.
4775  cat >conftest.$ac_ext <<_ACEOF
4776/* confdefs.h.  */
4777_ACEOF
4778cat confdefs.h >>conftest.$ac_ext
4779cat >>conftest.$ac_ext <<_ACEOF
4780/* end confdefs.h.  */
4781#ifdef __STDC__
4782# include <limits.h>
4783#else
4784# include <assert.h>
4785#endif
4786		     Syntax error
4787_ACEOF
4788if { (ac_try="$ac_cpp conftest.$ac_ext"
4789case "(($ac_try" in
4790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791  *) ac_try_echo=$ac_try;;
4792esac
4793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4794  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4795  ac_status=$?
4796  grep -v '^ *+' conftest.er1 >conftest.err
4797  rm -f conftest.er1
4798  cat conftest.err >&5
4799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800  (exit $ac_status); } >/dev/null && {
4801	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4802	 test ! -s conftest.err
4803       }; then
4804  :
4805else
4806  echo "$as_me: failed program was:" >&5
4807sed 's/^/| /' conftest.$ac_ext >&5
4808
4809  # Broken: fails on valid input.
4810continue
4811fi
4812
4813rm -f conftest.err conftest.$ac_ext
4814
4815  # OK, works on sane cases.  Now check whether nonexistent headers
4816  # can be detected and how.
4817  cat >conftest.$ac_ext <<_ACEOF
4818/* confdefs.h.  */
4819_ACEOF
4820cat confdefs.h >>conftest.$ac_ext
4821cat >>conftest.$ac_ext <<_ACEOF
4822/* end confdefs.h.  */
4823#include <ac_nonexistent.h>
4824_ACEOF
4825if { (ac_try="$ac_cpp conftest.$ac_ext"
4826case "(($ac_try" in
4827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828  *) ac_try_echo=$ac_try;;
4829esac
4830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4831  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4832  ac_status=$?
4833  grep -v '^ *+' conftest.er1 >conftest.err
4834  rm -f conftest.er1
4835  cat conftest.err >&5
4836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837  (exit $ac_status); } >/dev/null && {
4838	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4839	 test ! -s conftest.err
4840       }; then
4841  # Broken: success on invalid input.
4842continue
4843else
4844  echo "$as_me: failed program was:" >&5
4845sed 's/^/| /' conftest.$ac_ext >&5
4846
4847  # Passes both tests.
4848ac_preproc_ok=:
4849break
4850fi
4851
4852rm -f conftest.err conftest.$ac_ext
4853
4854done
4855# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4856rm -f conftest.err conftest.$ac_ext
4857if $ac_preproc_ok; then
4858  :
4859else
4860  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4861See \`config.log' for more details." >&5
4862echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4863See \`config.log' for more details." >&2;}
4864   { (exit 1); exit 1; }; }
4865fi
4866
4867ac_ext=c
4868ac_cpp='$CPP $CPPFLAGS'
4869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4871ac_compiler_gnu=$ac_cv_c_compiler_gnu
4872
4873
4874{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4875echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4876if test "${ac_cv_header_stdc+set}" = set; then
4877  echo $ECHO_N "(cached) $ECHO_C" >&6
4878else
4879  cat >conftest.$ac_ext <<_ACEOF
4880/* confdefs.h.  */
4881_ACEOF
4882cat confdefs.h >>conftest.$ac_ext
4883cat >>conftest.$ac_ext <<_ACEOF
4884/* end confdefs.h.  */
4885#include <stdlib.h>
4886#include <stdarg.h>
4887#include <string.h>
4888#include <float.h>
4889
4890int
4891main ()
4892{
4893
4894  ;
4895  return 0;
4896}
4897_ACEOF
4898rm -f conftest.$ac_objext
4899if { (ac_try="$ac_compile"
4900case "(($ac_try" in
4901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902  *) ac_try_echo=$ac_try;;
4903esac
4904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905  (eval "$ac_compile") 2>conftest.er1
4906  ac_status=$?
4907  grep -v '^ *+' conftest.er1 >conftest.err
4908  rm -f conftest.er1
4909  cat conftest.err >&5
4910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911  (exit $ac_status); } && {
4912	 test -z "$ac_c_werror_flag" ||
4913	 test ! -s conftest.err
4914       } && test -s conftest.$ac_objext; then
4915  ac_cv_header_stdc=yes
4916else
4917  echo "$as_me: failed program was:" >&5
4918sed 's/^/| /' conftest.$ac_ext >&5
4919
4920	ac_cv_header_stdc=no
4921fi
4922
4923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924
4925if test $ac_cv_header_stdc = yes; then
4926  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4927  cat >conftest.$ac_ext <<_ACEOF
4928/* confdefs.h.  */
4929_ACEOF
4930cat confdefs.h >>conftest.$ac_ext
4931cat >>conftest.$ac_ext <<_ACEOF
4932/* end confdefs.h.  */
4933#include <string.h>
4934
4935_ACEOF
4936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4937  $EGREP "memchr" >/dev/null 2>&1; then
4938  :
4939else
4940  ac_cv_header_stdc=no
4941fi
4942rm -f conftest*
4943
4944fi
4945
4946if test $ac_cv_header_stdc = yes; then
4947  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4948  cat >conftest.$ac_ext <<_ACEOF
4949/* confdefs.h.  */
4950_ACEOF
4951cat confdefs.h >>conftest.$ac_ext
4952cat >>conftest.$ac_ext <<_ACEOF
4953/* end confdefs.h.  */
4954#include <stdlib.h>
4955
4956_ACEOF
4957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4958  $EGREP "free" >/dev/null 2>&1; then
4959  :
4960else
4961  ac_cv_header_stdc=no
4962fi
4963rm -f conftest*
4964
4965fi
4966
4967if test $ac_cv_header_stdc = yes; then
4968  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4969  if test "$cross_compiling" = yes; then
4970  :
4971else
4972  cat >conftest.$ac_ext <<_ACEOF
4973/* confdefs.h.  */
4974_ACEOF
4975cat confdefs.h >>conftest.$ac_ext
4976cat >>conftest.$ac_ext <<_ACEOF
4977/* end confdefs.h.  */
4978#include <ctype.h>
4979#include <stdlib.h>
4980#if ((' ' & 0x0FF) == 0x020)
4981# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4982# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4983#else
4984# define ISLOWER(c) \
4985		   (('a' <= (c) && (c) <= 'i') \
4986		     || ('j' <= (c) && (c) <= 'r') \
4987		     || ('s' <= (c) && (c) <= 'z'))
4988# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4989#endif
4990
4991#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4992int
4993main ()
4994{
4995  int i;
4996  for (i = 0; i < 256; i++)
4997    if (XOR (islower (i), ISLOWER (i))
4998	|| toupper (i) != TOUPPER (i))
4999      return 2;
5000  return 0;
5001}
5002_ACEOF
5003rm -f conftest$ac_exeext
5004if { (ac_try="$ac_link"
5005case "(($ac_try" in
5006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007  *) ac_try_echo=$ac_try;;
5008esac
5009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010  (eval "$ac_link") 2>&5
5011  ac_status=$?
5012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5014  { (case "(($ac_try" in
5015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016  *) ac_try_echo=$ac_try;;
5017esac
5018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019  (eval "$ac_try") 2>&5
5020  ac_status=$?
5021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022  (exit $ac_status); }; }; then
5023  :
5024else
5025  echo "$as_me: program exited with status $ac_status" >&5
5026echo "$as_me: failed program was:" >&5
5027sed 's/^/| /' conftest.$ac_ext >&5
5028
5029( exit $ac_status )
5030ac_cv_header_stdc=no
5031fi
5032rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5033fi
5034
5035
5036fi
5037fi
5038{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5039echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5040if test $ac_cv_header_stdc = yes; then
5041
5042cat >>confdefs.h <<\_ACEOF
5043#define STDC_HEADERS 1
5044_ACEOF
5045
5046fi
5047
5048# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5059		  inttypes.h stdint.h unistd.h
5060do
5061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5062{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5065  echo $ECHO_N "(cached) $ECHO_C" >&6
5066else
5067  cat >conftest.$ac_ext <<_ACEOF
5068/* confdefs.h.  */
5069_ACEOF
5070cat confdefs.h >>conftest.$ac_ext
5071cat >>conftest.$ac_ext <<_ACEOF
5072/* end confdefs.h.  */
5073$ac_includes_default
5074
5075#include <$ac_header>
5076_ACEOF
5077rm -f conftest.$ac_objext
5078if { (ac_try="$ac_compile"
5079case "(($ac_try" in
5080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081  *) ac_try_echo=$ac_try;;
5082esac
5083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084  (eval "$ac_compile") 2>conftest.er1
5085  ac_status=$?
5086  grep -v '^ *+' conftest.er1 >conftest.err
5087  rm -f conftest.er1
5088  cat conftest.err >&5
5089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090  (exit $ac_status); } && {
5091	 test -z "$ac_c_werror_flag" ||
5092	 test ! -s conftest.err
5093       } && test -s conftest.$ac_objext; then
5094  eval "$as_ac_Header=yes"
5095else
5096  echo "$as_me: failed program was:" >&5
5097sed 's/^/| /' conftest.$ac_ext >&5
5098
5099	eval "$as_ac_Header=no"
5100fi
5101
5102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103fi
5104ac_res=`eval echo '${'$as_ac_Header'}'`
5105	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5106echo "${ECHO_T}$ac_res" >&6; }
5107if test `eval echo '${'$as_ac_Header'}'` = yes; then
5108  cat >>confdefs.h <<_ACEOF
5109#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5110_ACEOF
5111
5112fi
5113
5114done
5115
5116
5117
5118for ac_header in dlfcn.h
5119do
5120as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5122  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5124if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5125  echo $ECHO_N "(cached) $ECHO_C" >&6
5126fi
5127ac_res=`eval echo '${'$as_ac_Header'}'`
5128	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5129echo "${ECHO_T}$ac_res" >&6; }
5130else
5131  # Is the header compilable?
5132{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5133echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5134cat >conftest.$ac_ext <<_ACEOF
5135/* confdefs.h.  */
5136_ACEOF
5137cat confdefs.h >>conftest.$ac_ext
5138cat >>conftest.$ac_ext <<_ACEOF
5139/* end confdefs.h.  */
5140$ac_includes_default
5141#include <$ac_header>
5142_ACEOF
5143rm -f conftest.$ac_objext
5144if { (ac_try="$ac_compile"
5145case "(($ac_try" in
5146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147  *) ac_try_echo=$ac_try;;
5148esac
5149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5150  (eval "$ac_compile") 2>conftest.er1
5151  ac_status=$?
5152  grep -v '^ *+' conftest.er1 >conftest.err
5153  rm -f conftest.er1
5154  cat conftest.err >&5
5155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156  (exit $ac_status); } && {
5157	 test -z "$ac_c_werror_flag" ||
5158	 test ! -s conftest.err
5159       } && test -s conftest.$ac_objext; then
5160  ac_header_compiler=yes
5161else
5162  echo "$as_me: failed program was:" >&5
5163sed 's/^/| /' conftest.$ac_ext >&5
5164
5165	ac_header_compiler=no
5166fi
5167
5168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5169{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5170echo "${ECHO_T}$ac_header_compiler" >&6; }
5171
5172# Is the header present?
5173{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5174echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5175cat >conftest.$ac_ext <<_ACEOF
5176/* confdefs.h.  */
5177_ACEOF
5178cat confdefs.h >>conftest.$ac_ext
5179cat >>conftest.$ac_ext <<_ACEOF
5180/* end confdefs.h.  */
5181#include <$ac_header>
5182_ACEOF
5183if { (ac_try="$ac_cpp conftest.$ac_ext"
5184case "(($ac_try" in
5185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186  *) ac_try_echo=$ac_try;;
5187esac
5188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5189  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5190  ac_status=$?
5191  grep -v '^ *+' conftest.er1 >conftest.err
5192  rm -f conftest.er1
5193  cat conftest.err >&5
5194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195  (exit $ac_status); } >/dev/null && {
5196	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5197	 test ! -s conftest.err
5198       }; then
5199  ac_header_preproc=yes
5200else
5201  echo "$as_me: failed program was:" >&5
5202sed 's/^/| /' conftest.$ac_ext >&5
5203
5204  ac_header_preproc=no
5205fi
5206
5207rm -f conftest.err conftest.$ac_ext
5208{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5209echo "${ECHO_T}$ac_header_preproc" >&6; }
5210
5211# So?  What about this header?
5212case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5213  yes:no: )
5214    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5215echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5216    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5217echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5218    ac_header_preproc=yes
5219    ;;
5220  no:yes:* )
5221    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5222echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5223    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5224echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5225    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5226echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5227    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5228echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5229    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5230echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5231    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5232echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5233    ( cat <<\_ASBOX
5234## ----------------------------------------- ##
5235## Report this to ntfs-3g-devel@lists.sf.net ##
5236## ----------------------------------------- ##
5237_ASBOX
5238     ) | sed "s/^/$as_me: WARNING:     /" >&2
5239    ;;
5240esac
5241{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5244  echo $ECHO_N "(cached) $ECHO_C" >&6
5245else
5246  eval "$as_ac_Header=\$ac_header_preproc"
5247fi
5248ac_res=`eval echo '${'$as_ac_Header'}'`
5249	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5250echo "${ECHO_T}$ac_res" >&6; }
5251
5252fi
5253if test `eval echo '${'$as_ac_Header'}'` = yes; then
5254  cat >>confdefs.h <<_ACEOF
5255#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5256_ACEOF
5257
5258fi
5259
5260done
5261
5262ac_ext=cpp
5263ac_cpp='$CXXCPP $CPPFLAGS'
5264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5267if test -z "$CXX"; then
5268  if test -n "$CCC"; then
5269    CXX=$CCC
5270  else
5271    if test -n "$ac_tool_prefix"; then
5272  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5273  do
5274    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5275set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5276{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5278if test "${ac_cv_prog_CXX+set}" = set; then
5279  echo $ECHO_N "(cached) $ECHO_C" >&6
5280else
5281  if test -n "$CXX"; then
5282  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5283else
5284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285for as_dir in $PATH
5286do
5287  IFS=$as_save_IFS
5288  test -z "$as_dir" && as_dir=.
5289  for ac_exec_ext in '' $ac_executable_extensions; do
5290  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5292    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293    break 2
5294  fi
5295done
5296done
5297IFS=$as_save_IFS
5298
5299fi
5300fi
5301CXX=$ac_cv_prog_CXX
5302if test -n "$CXX"; then
5303  { echo "$as_me:$LINENO: result: $CXX" >&5
5304echo "${ECHO_T}$CXX" >&6; }
5305else
5306  { echo "$as_me:$LINENO: result: no" >&5
5307echo "${ECHO_T}no" >&6; }
5308fi
5309
5310
5311    test -n "$CXX" && break
5312  done
5313fi
5314if test -z "$CXX"; then
5315  ac_ct_CXX=$CXX
5316  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5317do
5318  # Extract the first word of "$ac_prog", so it can be a program name with args.
5319set dummy $ac_prog; ac_word=$2
5320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5322if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5323  echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
5325  if test -n "$ac_ct_CXX"; then
5326  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5327else
5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329for as_dir in $PATH
5330do
5331  IFS=$as_save_IFS
5332  test -z "$as_dir" && as_dir=.
5333  for ac_exec_ext in '' $ac_executable_extensions; do
5334  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5335    ac_cv_prog_ac_ct_CXX="$ac_prog"
5336    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337    break 2
5338  fi
5339done
5340done
5341IFS=$as_save_IFS
5342
5343fi
5344fi
5345ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5346if test -n "$ac_ct_CXX"; then
5347  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5348echo "${ECHO_T}$ac_ct_CXX" >&6; }
5349else
5350  { echo "$as_me:$LINENO: result: no" >&5
5351echo "${ECHO_T}no" >&6; }
5352fi
5353
5354
5355  test -n "$ac_ct_CXX" && break
5356done
5357
5358  if test "x$ac_ct_CXX" = x; then
5359    CXX="g++"
5360  else
5361    case $cross_compiling:$ac_tool_warned in
5362yes:)
5363{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5364whose name does not start with the host triplet.  If you think this
5365configuration is useful to you, please write to autoconf@gnu.org." >&5
5366echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5367whose name does not start with the host triplet.  If you think this
5368configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5369ac_tool_warned=yes ;;
5370esac
5371    CXX=$ac_ct_CXX
5372  fi
5373fi
5374
5375  fi
5376fi
5377# Provide some information about the compiler.
5378echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5379ac_compiler=`set X $ac_compile; echo $2`
5380{ (ac_try="$ac_compiler --version >&5"
5381case "(($ac_try" in
5382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383  *) ac_try_echo=$ac_try;;
5384esac
5385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386  (eval "$ac_compiler --version >&5") 2>&5
5387  ac_status=$?
5388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389  (exit $ac_status); }
5390{ (ac_try="$ac_compiler -v >&5"
5391case "(($ac_try" in
5392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393  *) ac_try_echo=$ac_try;;
5394esac
5395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396  (eval "$ac_compiler -v >&5") 2>&5
5397  ac_status=$?
5398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399  (exit $ac_status); }
5400{ (ac_try="$ac_compiler -V >&5"
5401case "(($ac_try" in
5402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403  *) ac_try_echo=$ac_try;;
5404esac
5405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5406  (eval "$ac_compiler -V >&5") 2>&5
5407  ac_status=$?
5408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409  (exit $ac_status); }
5410
5411{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5412echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5413if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5414  echo $ECHO_N "(cached) $ECHO_C" >&6
5415else
5416  cat >conftest.$ac_ext <<_ACEOF
5417/* confdefs.h.  */
5418_ACEOF
5419cat confdefs.h >>conftest.$ac_ext
5420cat >>conftest.$ac_ext <<_ACEOF
5421/* end confdefs.h.  */
5422
5423int
5424main ()
5425{
5426#ifndef __GNUC__
5427       choke me
5428#endif
5429
5430  ;
5431  return 0;
5432}
5433_ACEOF
5434rm -f conftest.$ac_objext
5435if { (ac_try="$ac_compile"
5436case "(($ac_try" in
5437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438  *) ac_try_echo=$ac_try;;
5439esac
5440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441  (eval "$ac_compile") 2>conftest.er1
5442  ac_status=$?
5443  grep -v '^ *+' conftest.er1 >conftest.err
5444  rm -f conftest.er1
5445  cat conftest.err >&5
5446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447  (exit $ac_status); } && {
5448	 test -z "$ac_cxx_werror_flag" ||
5449	 test ! -s conftest.err
5450       } && test -s conftest.$ac_objext; then
5451  ac_compiler_gnu=yes
5452else
5453  echo "$as_me: failed program was:" >&5
5454sed 's/^/| /' conftest.$ac_ext >&5
5455
5456	ac_compiler_gnu=no
5457fi
5458
5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5461
5462fi
5463{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5464echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5465GXX=`test $ac_compiler_gnu = yes && echo yes`
5466ac_test_CXXFLAGS=${CXXFLAGS+set}
5467ac_save_CXXFLAGS=$CXXFLAGS
5468{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5469echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5470if test "${ac_cv_prog_cxx_g+set}" = set; then
5471  echo $ECHO_N "(cached) $ECHO_C" >&6
5472else
5473  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5474   ac_cxx_werror_flag=yes
5475   ac_cv_prog_cxx_g=no
5476   CXXFLAGS="-g"
5477   cat >conftest.$ac_ext <<_ACEOF
5478/* confdefs.h.  */
5479_ACEOF
5480cat confdefs.h >>conftest.$ac_ext
5481cat >>conftest.$ac_ext <<_ACEOF
5482/* end confdefs.h.  */
5483
5484int
5485main ()
5486{
5487
5488  ;
5489  return 0;
5490}
5491_ACEOF
5492rm -f conftest.$ac_objext
5493if { (ac_try="$ac_compile"
5494case "(($ac_try" in
5495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496  *) ac_try_echo=$ac_try;;
5497esac
5498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499  (eval "$ac_compile") 2>conftest.er1
5500  ac_status=$?
5501  grep -v '^ *+' conftest.er1 >conftest.err
5502  rm -f conftest.er1
5503  cat conftest.err >&5
5504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505  (exit $ac_status); } && {
5506	 test -z "$ac_cxx_werror_flag" ||
5507	 test ! -s conftest.err
5508       } && test -s conftest.$ac_objext; then
5509  ac_cv_prog_cxx_g=yes
5510else
5511  echo "$as_me: failed program was:" >&5
5512sed 's/^/| /' conftest.$ac_ext >&5
5513
5514	CXXFLAGS=""
5515      cat >conftest.$ac_ext <<_ACEOF
5516/* confdefs.h.  */
5517_ACEOF
5518cat confdefs.h >>conftest.$ac_ext
5519cat >>conftest.$ac_ext <<_ACEOF
5520/* end confdefs.h.  */
5521
5522int
5523main ()
5524{
5525
5526  ;
5527  return 0;
5528}
5529_ACEOF
5530rm -f conftest.$ac_objext
5531if { (ac_try="$ac_compile"
5532case "(($ac_try" in
5533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534  *) ac_try_echo=$ac_try;;
5535esac
5536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5537  (eval "$ac_compile") 2>conftest.er1
5538  ac_status=$?
5539  grep -v '^ *+' conftest.er1 >conftest.err
5540  rm -f conftest.er1
5541  cat conftest.err >&5
5542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543  (exit $ac_status); } && {
5544	 test -z "$ac_cxx_werror_flag" ||
5545	 test ! -s conftest.err
5546       } && test -s conftest.$ac_objext; then
5547  :
5548else
5549  echo "$as_me: failed program was:" >&5
5550sed 's/^/| /' conftest.$ac_ext >&5
5551
5552	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5553	 CXXFLAGS="-g"
5554	 cat >conftest.$ac_ext <<_ACEOF
5555/* confdefs.h.  */
5556_ACEOF
5557cat confdefs.h >>conftest.$ac_ext
5558cat >>conftest.$ac_ext <<_ACEOF
5559/* end confdefs.h.  */
5560
5561int
5562main ()
5563{
5564
5565  ;
5566  return 0;
5567}
5568_ACEOF
5569rm -f conftest.$ac_objext
5570if { (ac_try="$ac_compile"
5571case "(($ac_try" in
5572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573  *) ac_try_echo=$ac_try;;
5574esac
5575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576  (eval "$ac_compile") 2>conftest.er1
5577  ac_status=$?
5578  grep -v '^ *+' conftest.er1 >conftest.err
5579  rm -f conftest.er1
5580  cat conftest.err >&5
5581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582  (exit $ac_status); } && {
5583	 test -z "$ac_cxx_werror_flag" ||
5584	 test ! -s conftest.err
5585       } && test -s conftest.$ac_objext; then
5586  ac_cv_prog_cxx_g=yes
5587else
5588  echo "$as_me: failed program was:" >&5
5589sed 's/^/| /' conftest.$ac_ext >&5
5590
5591
5592fi
5593
5594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595fi
5596
5597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598fi
5599
5600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5602fi
5603{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5604echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5605if test "$ac_test_CXXFLAGS" = set; then
5606  CXXFLAGS=$ac_save_CXXFLAGS
5607elif test $ac_cv_prog_cxx_g = yes; then
5608  if test "$GXX" = yes; then
5609    CXXFLAGS="-g -O2"
5610  else
5611    CXXFLAGS="-g"
5612  fi
5613else
5614  if test "$GXX" = yes; then
5615    CXXFLAGS="-O2"
5616  else
5617    CXXFLAGS=
5618  fi
5619fi
5620ac_ext=cpp
5621ac_cpp='$CXXCPP $CPPFLAGS'
5622ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5623ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5624ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5625
5626depcc="$CXX"  am_compiler_list=
5627
5628{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5629echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5630if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5631  echo $ECHO_N "(cached) $ECHO_C" >&6
5632else
5633  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5634  # We make a subdir and do the tests there.  Otherwise we can end up
5635  # making bogus files that we don't know about and never remove.  For
5636  # instance it was reported that on HP-UX the gcc test will end up
5637  # making a dummy file named `D' -- because `-MD' means `put the output
5638  # in D'.
5639  mkdir conftest.dir
5640  # Copy depcomp to subdir because otherwise we won't find it if we're
5641  # using a relative directory.
5642  cp "$am_depcomp" conftest.dir
5643  cd conftest.dir
5644  # We will build objects and dependencies in a subdirectory because
5645  # it helps to detect inapplicable dependency modes.  For instance
5646  # both Tru64's cc and ICC support -MD to output dependencies as a
5647  # side effect of compilation, but ICC will put the dependencies in
5648  # the current directory while Tru64 will put them in the object
5649  # directory.
5650  mkdir sub
5651
5652  am_cv_CXX_dependencies_compiler_type=none
5653  if test "$am_compiler_list" = ""; then
5654     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5655  fi
5656  for depmode in $am_compiler_list; do
5657    # Setup a source with many dependencies, because some compilers
5658    # like to wrap large dependency lists on column 80 (with \), and
5659    # we should not choose a depcomp mode which is confused by this.
5660    #
5661    # We need to recreate these files for each test, as the compiler may
5662    # overwrite some of them when testing with obscure command lines.
5663    # This happens at least with the AIX C compiler.
5664    : > sub/conftest.c
5665    for i in 1 2 3 4 5 6; do
5666      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5667      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5668      # Solaris 8's {/usr,}/bin/sh.
5669      touch sub/conftst$i.h
5670    done
5671    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5672
5673    case $depmode in
5674    nosideeffect)
5675      # after this tag, mechanisms are not by side-effect, so they'll
5676      # only be used when explicitly requested
5677      if test "x$enable_dependency_tracking" = xyes; then
5678	continue
5679      else
5680	break
5681      fi
5682      ;;
5683    none) break ;;
5684    esac
5685    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5686    # mode.  It turns out that the SunPro C++ compiler does not properly
5687    # handle `-M -o', and we need to detect this.
5688    if depmode=$depmode \
5689       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5690       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5691       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5692         >/dev/null 2>conftest.err &&
5693       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5694       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5695       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5696      # icc doesn't choke on unknown options, it will just issue warnings
5697      # or remarks (even with -Werror).  So we grep stderr for any message
5698      # that says an option was ignored or not supported.
5699      # When given -MP, icc 7.0 and 7.1 complain thusly:
5700      #   icc: Command line warning: ignoring option '-M'; no argument required
5701      # The diagnosis changed in icc 8.0:
5702      #   icc: Command line remark: option '-MP' not supported
5703      if (grep 'ignoring option' conftest.err ||
5704          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5705        am_cv_CXX_dependencies_compiler_type=$depmode
5706        break
5707      fi
5708    fi
5709  done
5710
5711  cd ..
5712  rm -rf conftest.dir
5713else
5714  am_cv_CXX_dependencies_compiler_type=none
5715fi
5716
5717fi
5718{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5719echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5720CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5721
5722
5723
5724if
5725  test "x$enable_dependency_tracking" != xno \
5726  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5727  am__fastdepCXX_TRUE=
5728  am__fastdepCXX_FALSE='#'
5729else
5730  am__fastdepCXX_TRUE='#'
5731  am__fastdepCXX_FALSE=
5732fi
5733
5734
5735
5736
5737if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5738    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5739    (test "X$CXX" != "Xg++"))) ; then
5740  ac_ext=cpp
5741ac_cpp='$CXXCPP $CPPFLAGS'
5742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5745{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5746echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5747if test -z "$CXXCPP"; then
5748  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5749  echo $ECHO_N "(cached) $ECHO_C" >&6
5750else
5751      # Double quotes because CXXCPP needs to be expanded
5752    for CXXCPP in "$CXX -E" "/lib/cpp"
5753    do
5754      ac_preproc_ok=false
5755for ac_cxx_preproc_warn_flag in '' yes
5756do
5757  # Use a header file that comes with gcc, so configuring glibc
5758  # with a fresh cross-compiler works.
5759  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5760  # <limits.h> exists even on freestanding compilers.
5761  # On the NeXT, cc -E runs the code through the compiler's parser,
5762  # not just through cpp. "Syntax error" is here to catch this case.
5763  cat >conftest.$ac_ext <<_ACEOF
5764/* confdefs.h.  */
5765_ACEOF
5766cat confdefs.h >>conftest.$ac_ext
5767cat >>conftest.$ac_ext <<_ACEOF
5768/* end confdefs.h.  */
5769#ifdef __STDC__
5770# include <limits.h>
5771#else
5772# include <assert.h>
5773#endif
5774		     Syntax error
5775_ACEOF
5776if { (ac_try="$ac_cpp conftest.$ac_ext"
5777case "(($ac_try" in
5778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779  *) ac_try_echo=$ac_try;;
5780esac
5781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5783  ac_status=$?
5784  grep -v '^ *+' conftest.er1 >conftest.err
5785  rm -f conftest.er1
5786  cat conftest.err >&5
5787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788  (exit $ac_status); } >/dev/null && {
5789	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5790	 test ! -s conftest.err
5791       }; then
5792  :
5793else
5794  echo "$as_me: failed program was:" >&5
5795sed 's/^/| /' conftest.$ac_ext >&5
5796
5797  # Broken: fails on valid input.
5798continue
5799fi
5800
5801rm -f conftest.err conftest.$ac_ext
5802
5803  # OK, works on sane cases.  Now check whether nonexistent headers
5804  # can be detected and how.
5805  cat >conftest.$ac_ext <<_ACEOF
5806/* confdefs.h.  */
5807_ACEOF
5808cat confdefs.h >>conftest.$ac_ext
5809cat >>conftest.$ac_ext <<_ACEOF
5810/* end confdefs.h.  */
5811#include <ac_nonexistent.h>
5812_ACEOF
5813if { (ac_try="$ac_cpp conftest.$ac_ext"
5814case "(($ac_try" in
5815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816  *) ac_try_echo=$ac_try;;
5817esac
5818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5820  ac_status=$?
5821  grep -v '^ *+' conftest.er1 >conftest.err
5822  rm -f conftest.er1
5823  cat conftest.err >&5
5824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825  (exit $ac_status); } >/dev/null && {
5826	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5827	 test ! -s conftest.err
5828       }; then
5829  # Broken: success on invalid input.
5830continue
5831else
5832  echo "$as_me: failed program was:" >&5
5833sed 's/^/| /' conftest.$ac_ext >&5
5834
5835  # Passes both tests.
5836ac_preproc_ok=:
5837break
5838fi
5839
5840rm -f conftest.err conftest.$ac_ext
5841
5842done
5843# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5844rm -f conftest.err conftest.$ac_ext
5845if $ac_preproc_ok; then
5846  break
5847fi
5848
5849    done
5850    ac_cv_prog_CXXCPP=$CXXCPP
5851
5852fi
5853  CXXCPP=$ac_cv_prog_CXXCPP
5854else
5855  ac_cv_prog_CXXCPP=$CXXCPP
5856fi
5857{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5858echo "${ECHO_T}$CXXCPP" >&6; }
5859ac_preproc_ok=false
5860for ac_cxx_preproc_warn_flag in '' yes
5861do
5862  # Use a header file that comes with gcc, so configuring glibc
5863  # with a fresh cross-compiler works.
5864  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5865  # <limits.h> exists even on freestanding compilers.
5866  # On the NeXT, cc -E runs the code through the compiler's parser,
5867  # not just through cpp. "Syntax error" is here to catch this case.
5868  cat >conftest.$ac_ext <<_ACEOF
5869/* confdefs.h.  */
5870_ACEOF
5871cat confdefs.h >>conftest.$ac_ext
5872cat >>conftest.$ac_ext <<_ACEOF
5873/* end confdefs.h.  */
5874#ifdef __STDC__
5875# include <limits.h>
5876#else
5877# include <assert.h>
5878#endif
5879		     Syntax error
5880_ACEOF
5881if { (ac_try="$ac_cpp conftest.$ac_ext"
5882case "(($ac_try" in
5883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884  *) ac_try_echo=$ac_try;;
5885esac
5886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5888  ac_status=$?
5889  grep -v '^ *+' conftest.er1 >conftest.err
5890  rm -f conftest.er1
5891  cat conftest.err >&5
5892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893  (exit $ac_status); } >/dev/null && {
5894	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5895	 test ! -s conftest.err
5896       }; then
5897  :
5898else
5899  echo "$as_me: failed program was:" >&5
5900sed 's/^/| /' conftest.$ac_ext >&5
5901
5902  # Broken: fails on valid input.
5903continue
5904fi
5905
5906rm -f conftest.err conftest.$ac_ext
5907
5908  # OK, works on sane cases.  Now check whether nonexistent headers
5909  # can be detected and how.
5910  cat >conftest.$ac_ext <<_ACEOF
5911/* confdefs.h.  */
5912_ACEOF
5913cat confdefs.h >>conftest.$ac_ext
5914cat >>conftest.$ac_ext <<_ACEOF
5915/* end confdefs.h.  */
5916#include <ac_nonexistent.h>
5917_ACEOF
5918if { (ac_try="$ac_cpp conftest.$ac_ext"
5919case "(($ac_try" in
5920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921  *) ac_try_echo=$ac_try;;
5922esac
5923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5925  ac_status=$?
5926  grep -v '^ *+' conftest.er1 >conftest.err
5927  rm -f conftest.er1
5928  cat conftest.err >&5
5929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930  (exit $ac_status); } >/dev/null && {
5931	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5932	 test ! -s conftest.err
5933       }; then
5934  # Broken: success on invalid input.
5935continue
5936else
5937  echo "$as_me: failed program was:" >&5
5938sed 's/^/| /' conftest.$ac_ext >&5
5939
5940  # Passes both tests.
5941ac_preproc_ok=:
5942break
5943fi
5944
5945rm -f conftest.err conftest.$ac_ext
5946
5947done
5948# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5949rm -f conftest.err conftest.$ac_ext
5950if $ac_preproc_ok; then
5951  :
5952else
5953  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5954See \`config.log' for more details." >&5
5955echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5956See \`config.log' for more details." >&2;}
5957   { (exit 1); exit 1; }; }
5958fi
5959
5960ac_ext=cpp
5961ac_cpp='$CXXCPP $CPPFLAGS'
5962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5965
5966fi
5967
5968
5969ac_ext=f
5970ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5971ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5972ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5973if test -n "$ac_tool_prefix"; then
5974  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5975  do
5976    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5977set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5978{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5980if test "${ac_cv_prog_F77+set}" = set; then
5981  echo $ECHO_N "(cached) $ECHO_C" >&6
5982else
5983  if test -n "$F77"; then
5984  ac_cv_prog_F77="$F77" # Let the user override the test.
5985else
5986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987for as_dir in $PATH
5988do
5989  IFS=$as_save_IFS
5990  test -z "$as_dir" && as_dir=.
5991  for ac_exec_ext in '' $ac_executable_extensions; do
5992  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5993    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995    break 2
5996  fi
5997done
5998done
5999IFS=$as_save_IFS
6000
6001fi
6002fi
6003F77=$ac_cv_prog_F77
6004if test -n "$F77"; then
6005  { echo "$as_me:$LINENO: result: $F77" >&5
6006echo "${ECHO_T}$F77" >&6; }
6007else
6008  { echo "$as_me:$LINENO: result: no" >&5
6009echo "${ECHO_T}no" >&6; }
6010fi
6011
6012
6013    test -n "$F77" && break
6014  done
6015fi
6016if test -z "$F77"; then
6017  ac_ct_F77=$F77
6018  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6019do
6020  # Extract the first word of "$ac_prog", so it can be a program name with args.
6021set dummy $ac_prog; ac_word=$2
6022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6024if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6025  echo $ECHO_N "(cached) $ECHO_C" >&6
6026else
6027  if test -n "$ac_ct_F77"; then
6028  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6029else
6030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031for as_dir in $PATH
6032do
6033  IFS=$as_save_IFS
6034  test -z "$as_dir" && as_dir=.
6035  for ac_exec_ext in '' $ac_executable_extensions; do
6036  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6037    ac_cv_prog_ac_ct_F77="$ac_prog"
6038    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039    break 2
6040  fi
6041done
6042done
6043IFS=$as_save_IFS
6044
6045fi
6046fi
6047ac_ct_F77=$ac_cv_prog_ac_ct_F77
6048if test -n "$ac_ct_F77"; then
6049  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6050echo "${ECHO_T}$ac_ct_F77" >&6; }
6051else
6052  { echo "$as_me:$LINENO: result: no" >&5
6053echo "${ECHO_T}no" >&6; }
6054fi
6055
6056
6057  test -n "$ac_ct_F77" && break
6058done
6059
6060  if test "x$ac_ct_F77" = x; then
6061    F77=""
6062  else
6063    case $cross_compiling:$ac_tool_warned in
6064yes:)
6065{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6066whose name does not start with the host triplet.  If you think this
6067configuration is useful to you, please write to autoconf@gnu.org." >&5
6068echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6069whose name does not start with the host triplet.  If you think this
6070configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6071ac_tool_warned=yes ;;
6072esac
6073    F77=$ac_ct_F77
6074  fi
6075fi
6076
6077
6078# Provide some information about the compiler.
6079echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6080ac_compiler=`set X $ac_compile; echo $2`
6081{ (ac_try="$ac_compiler --version >&5"
6082case "(($ac_try" in
6083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084  *) ac_try_echo=$ac_try;;
6085esac
6086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087  (eval "$ac_compiler --version >&5") 2>&5
6088  ac_status=$?
6089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090  (exit $ac_status); }
6091{ (ac_try="$ac_compiler -v >&5"
6092case "(($ac_try" in
6093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094  *) ac_try_echo=$ac_try;;
6095esac
6096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097  (eval "$ac_compiler -v >&5") 2>&5
6098  ac_status=$?
6099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100  (exit $ac_status); }
6101{ (ac_try="$ac_compiler -V >&5"
6102case "(($ac_try" in
6103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104  *) ac_try_echo=$ac_try;;
6105esac
6106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107  (eval "$ac_compiler -V >&5") 2>&5
6108  ac_status=$?
6109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110  (exit $ac_status); }
6111rm -f a.out
6112
6113# If we don't use `.F' as extension, the preprocessor is not run on the
6114# input file.  (Note that this only needs to work for GNU compilers.)
6115ac_save_ext=$ac_ext
6116ac_ext=F
6117{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6118echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6119if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6120  echo $ECHO_N "(cached) $ECHO_C" >&6
6121else
6122  cat >conftest.$ac_ext <<_ACEOF
6123      program main
6124#ifndef __GNUC__
6125       choke me
6126#endif
6127
6128      end
6129_ACEOF
6130rm -f conftest.$ac_objext
6131if { (ac_try="$ac_compile"
6132case "(($ac_try" in
6133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134  *) ac_try_echo=$ac_try;;
6135esac
6136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137  (eval "$ac_compile") 2>conftest.er1
6138  ac_status=$?
6139  grep -v '^ *+' conftest.er1 >conftest.err
6140  rm -f conftest.er1
6141  cat conftest.err >&5
6142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143  (exit $ac_status); } && {
6144	 test -z "$ac_f77_werror_flag" ||
6145	 test ! -s conftest.err
6146       } && test -s conftest.$ac_objext; then
6147  ac_compiler_gnu=yes
6148else
6149  echo "$as_me: failed program was:" >&5
6150sed 's/^/| /' conftest.$ac_ext >&5
6151
6152	ac_compiler_gnu=no
6153fi
6154
6155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6157
6158fi
6159{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6160echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6161ac_ext=$ac_save_ext
6162ac_test_FFLAGS=${FFLAGS+set}
6163ac_save_FFLAGS=$FFLAGS
6164FFLAGS=
6165{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6166echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6167if test "${ac_cv_prog_f77_g+set}" = set; then
6168  echo $ECHO_N "(cached) $ECHO_C" >&6
6169else
6170  FFLAGS=-g
6171cat >conftest.$ac_ext <<_ACEOF
6172      program main
6173
6174      end
6175_ACEOF
6176rm -f conftest.$ac_objext
6177if { (ac_try="$ac_compile"
6178case "(($ac_try" in
6179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180  *) ac_try_echo=$ac_try;;
6181esac
6182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183  (eval "$ac_compile") 2>conftest.er1
6184  ac_status=$?
6185  grep -v '^ *+' conftest.er1 >conftest.err
6186  rm -f conftest.er1
6187  cat conftest.err >&5
6188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189  (exit $ac_status); } && {
6190	 test -z "$ac_f77_werror_flag" ||
6191	 test ! -s conftest.err
6192       } && test -s conftest.$ac_objext; then
6193  ac_cv_prog_f77_g=yes
6194else
6195  echo "$as_me: failed program was:" >&5
6196sed 's/^/| /' conftest.$ac_ext >&5
6197
6198	ac_cv_prog_f77_g=no
6199fi
6200
6201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202
6203fi
6204{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6205echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6206if test "$ac_test_FFLAGS" = set; then
6207  FFLAGS=$ac_save_FFLAGS
6208elif test $ac_cv_prog_f77_g = yes; then
6209  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6210    FFLAGS="-g -O2"
6211  else
6212    FFLAGS="-g"
6213  fi
6214else
6215  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6216    FFLAGS="-O2"
6217  else
6218    FFLAGS=
6219  fi
6220fi
6221
6222G77=`test $ac_compiler_gnu = yes && echo yes`
6223ac_ext=c
6224ac_cpp='$CPP $CPPFLAGS'
6225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6227ac_compiler_gnu=$ac_cv_c_compiler_gnu
6228
6229
6230
6231# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6232
6233# find the maximum length of command line arguments
6234{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6235echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6236if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6237  echo $ECHO_N "(cached) $ECHO_C" >&6
6238else
6239    i=0
6240  teststring="ABCD"
6241
6242  case $build_os in
6243  msdosdjgpp*)
6244    # On DJGPP, this test can blow up pretty badly due to problems in libc
6245    # (any single argument exceeding 2000 bytes causes a buffer overrun
6246    # during glob expansion).  Even if it were fixed, the result of this
6247    # check would be larger than it should be.
6248    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6249    ;;
6250
6251  gnu*)
6252    # Under GNU Hurd, this test is not required because there is
6253    # no limit to the length of command line arguments.
6254    # Libtool will interpret -1 as no limit whatsoever
6255    lt_cv_sys_max_cmd_len=-1;
6256    ;;
6257
6258  cygwin* | mingw*)
6259    # On Win9x/ME, this test blows up -- it succeeds, but takes
6260    # about 5 minutes as the teststring grows exponentially.
6261    # Worse, since 9x/ME are not pre-emptively multitasking,
6262    # you end up with a "frozen" computer, even though with patience
6263    # the test eventually succeeds (with a max line length of 256k).
6264    # Instead, let's just punt: use the minimum linelength reported by
6265    # all of the supported platforms: 8192 (on NT/2K/XP).
6266    lt_cv_sys_max_cmd_len=8192;
6267    ;;
6268
6269  amigaos*)
6270    # On AmigaOS with pdksh, this test takes hours, literally.
6271    # So we just punt and use a minimum line length of 8192.
6272    lt_cv_sys_max_cmd_len=8192;
6273    ;;
6274
6275  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6276    # This has been around since 386BSD, at least.  Likely further.
6277    if test -x /sbin/sysctl; then
6278      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6279    elif test -x /usr/sbin/sysctl; then
6280      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6281    else
6282      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6283    fi
6284    # And add a safety zone
6285    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6286    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6287    ;;
6288
6289  interix*)
6290    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6291    lt_cv_sys_max_cmd_len=196608
6292    ;;
6293
6294  osf*)
6295    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6296    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6297    # nice to cause kernel panics so lets avoid the loop below.
6298    # First set a reasonable default.
6299    lt_cv_sys_max_cmd_len=16384
6300    #
6301    if test -x /sbin/sysconfig; then
6302      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6303        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6304      esac
6305    fi
6306    ;;
6307  sco3.2v5*)
6308    lt_cv_sys_max_cmd_len=102400
6309    ;;
6310  sysv5* | sco5v6* | sysv4.2uw2*)
6311    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6312    if test -n "$kargmax"; then
6313      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6314    else
6315      lt_cv_sys_max_cmd_len=32768
6316    fi
6317    ;;
6318  *)
6319    # If test is not a shell built-in, we'll probably end up computing a
6320    # maximum length that is only half of the actual maximum length, but
6321    # we can't tell.
6322    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6323    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6324	       = "XX$teststring") >/dev/null 2>&1 &&
6325	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6326	    lt_cv_sys_max_cmd_len=$new_result &&
6327	    test $i != 17 # 1/2 MB should be enough
6328    do
6329      i=`expr $i + 1`
6330      teststring=$teststring$teststring
6331    done
6332    teststring=
6333    # Add a significant safety factor because C++ compilers can tack on massive
6334    # amounts of additional arguments before passing them to the linker.
6335    # It appears as though 1/2 is a usable value.
6336    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6337    ;;
6338  esac
6339
6340fi
6341
6342if test -n $lt_cv_sys_max_cmd_len ; then
6343  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6344echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6345else
6346  { echo "$as_me:$LINENO: result: none" >&5
6347echo "${ECHO_T}none" >&6; }
6348fi
6349
6350
6351
6352
6353# Check for command to grab the raw symbol name followed by C symbol from nm.
6354{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6355echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6356if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6357  echo $ECHO_N "(cached) $ECHO_C" >&6
6358else
6359
6360# These are sane defaults that work on at least a few old systems.
6361# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6362
6363# Character class describing NM global symbol codes.
6364symcode='[BCDEGRST]'
6365
6366# Regexp to match symbols that can be accessed directly from C.
6367sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6368
6369# Transform an extracted symbol line into a proper C declaration
6370lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6371
6372# Transform an extracted symbol line into symbol name and symbol address
6373lt_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'"
6374
6375# Define system-specific variables.
6376case $host_os in
6377aix*)
6378  symcode='[BCDT]'
6379  ;;
6380cygwin* | mingw* | pw32*)
6381  symcode='[ABCDGISTW]'
6382  ;;
6383hpux*) # Its linker distinguishes data from code symbols
6384  if test "$host_cpu" = ia64; then
6385    symcode='[ABCDEGRST]'
6386  fi
6387  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6388  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'"
6389  ;;
6390linux*)
6391  if test "$host_cpu" = ia64; then
6392    symcode='[ABCDGIRSTW]'
6393    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6394    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'"
6395  fi
6396  ;;
6397irix* | nonstopux*)
6398  symcode='[BCDEGRST]'
6399  ;;
6400osf*)
6401  symcode='[BCDEGQRST]'
6402  ;;
6403solaris*)
6404  symcode='[BDRT]'
6405  ;;
6406sco3.2v5*)
6407  symcode='[DT]'
6408  ;;
6409sysv4.2uw2*)
6410  symcode='[DT]'
6411  ;;
6412sysv5* | sco5v6* | unixware* | OpenUNIX*)
6413  symcode='[ABDT]'
6414  ;;
6415sysv4)
6416  symcode='[DFNSTU]'
6417  ;;
6418esac
6419
6420# Handle CRLF in mingw tool chain
6421opt_cr=
6422case $build_os in
6423mingw*)
6424  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6425  ;;
6426esac
6427
6428# If we're using GNU nm, then use its standard symbol codes.
6429case `$NM -V 2>&1` in
6430*GNU* | *'with BFD'*)
6431  symcode='[ABCDGIRSTW]' ;;
6432esac
6433
6434# Try without a prefix undercore, then with it.
6435for ac_symprfx in "" "_"; do
6436
6437  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6438  symxfrm="\\1 $ac_symprfx\\2 \\2"
6439
6440  # Write the raw and C identifiers.
6441  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6442
6443  # Check to see that the pipe works correctly.
6444  pipe_works=no
6445
6446  rm -f conftest*
6447  cat > conftest.$ac_ext <<EOF
6448#ifdef __cplusplus
6449extern "C" {
6450#endif
6451char nm_test_var;
6452void nm_test_func(){}
6453#ifdef __cplusplus
6454}
6455#endif
6456int main(){nm_test_var='a';nm_test_func();return(0);}
6457EOF
6458
6459  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6460  (eval $ac_compile) 2>&5
6461  ac_status=$?
6462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463  (exit $ac_status); }; then
6464    # Now try to grab the symbols.
6465    nlist=conftest.nm
6466    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6467  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6468  ac_status=$?
6469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470  (exit $ac_status); } && test -s "$nlist"; then
6471      # Try sorting and uniquifying the output.
6472      if sort "$nlist" | uniq > "$nlist"T; then
6473	mv -f "$nlist"T "$nlist"
6474      else
6475	rm -f "$nlist"T
6476      fi
6477
6478      # Make sure that we snagged all the symbols we need.
6479      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6480	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6481	  cat <<EOF > conftest.$ac_ext
6482#ifdef __cplusplus
6483extern "C" {
6484#endif
6485
6486EOF
6487	  # Now generate the symbol file.
6488	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6489
6490	  cat <<EOF >> conftest.$ac_ext
6491#if defined (__STDC__) && __STDC__
6492# define lt_ptr_t void *
6493#else
6494# define lt_ptr_t char *
6495# define const
6496#endif
6497
6498/* The mapping between symbol names and symbols. */
6499const struct {
6500  const char *name;
6501  lt_ptr_t address;
6502}
6503lt_preloaded_symbols[] =
6504{
6505EOF
6506	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6507	  cat <<\EOF >> conftest.$ac_ext
6508  {0, (lt_ptr_t) 0}
6509};
6510
6511#ifdef __cplusplus
6512}
6513#endif
6514EOF
6515	  # Now try linking the two files.
6516	  mv conftest.$ac_objext conftstm.$ac_objext
6517	  lt_save_LIBS="$LIBS"
6518	  lt_save_CFLAGS="$CFLAGS"
6519	  LIBS="conftstm.$ac_objext"
6520	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6521	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6522  (eval $ac_link) 2>&5
6523  ac_status=$?
6524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6526	    pipe_works=yes
6527	  fi
6528	  LIBS="$lt_save_LIBS"
6529	  CFLAGS="$lt_save_CFLAGS"
6530	else
6531	  echo "cannot find nm_test_func in $nlist" >&5
6532	fi
6533      else
6534	echo "cannot find nm_test_var in $nlist" >&5
6535      fi
6536    else
6537      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6538    fi
6539  else
6540    echo "$progname: failed program was:" >&5
6541    cat conftest.$ac_ext >&5
6542  fi
6543  rm -f conftest* conftst*
6544
6545  # Do not use the global_symbol_pipe unless it works.
6546  if test "$pipe_works" = yes; then
6547    break
6548  else
6549    lt_cv_sys_global_symbol_pipe=
6550  fi
6551done
6552
6553fi
6554
6555if test -z "$lt_cv_sys_global_symbol_pipe"; then
6556  lt_cv_sys_global_symbol_to_cdecl=
6557fi
6558if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6559  { echo "$as_me:$LINENO: result: failed" >&5
6560echo "${ECHO_T}failed" >&6; }
6561else
6562  { echo "$as_me:$LINENO: result: ok" >&5
6563echo "${ECHO_T}ok" >&6; }
6564fi
6565
6566{ echo "$as_me:$LINENO: checking for objdir" >&5
6567echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6568if test "${lt_cv_objdir+set}" = set; then
6569  echo $ECHO_N "(cached) $ECHO_C" >&6
6570else
6571  rm -f .libs 2>/dev/null
6572mkdir .libs 2>/dev/null
6573if test -d .libs; then
6574  lt_cv_objdir=.libs
6575else
6576  # MS-DOS does not allow filenames that begin with a dot.
6577  lt_cv_objdir=_libs
6578fi
6579rmdir .libs 2>/dev/null
6580fi
6581{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6582echo "${ECHO_T}$lt_cv_objdir" >&6; }
6583objdir=$lt_cv_objdir
6584
6585
6586
6587
6588
6589case $host_os in
6590aix3*)
6591  # AIX sometimes has problems with the GCC collect2 program.  For some
6592  # reason, if we set the COLLECT_NAMES environment variable, the problems
6593  # vanish in a puff of smoke.
6594  if test "X${COLLECT_NAMES+set}" != Xset; then
6595    COLLECT_NAMES=
6596    export COLLECT_NAMES
6597  fi
6598  ;;
6599esac
6600
6601# Sed substitution that helps us do robust quoting.  It backslashifies
6602# metacharacters that are still active within double-quoted strings.
6603Xsed='sed -e 1s/^X//'
6604sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6605
6606# Same as above, but do not quote variable references.
6607double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6608
6609# Sed substitution to delay expansion of an escaped shell variable in a
6610# double_quote_subst'ed string.
6611delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6612
6613# Sed substitution to avoid accidental globbing in evaled expressions
6614no_glob_subst='s/\*/\\\*/g'
6615
6616# Constants:
6617rm="rm -f"
6618
6619# Global variables:
6620default_ofile=libtool
6621can_build_shared=yes
6622
6623# All known linkers require a `.a' archive for static linking (except MSVC,
6624# which needs '.lib').
6625libext=a
6626ltmain="$ac_aux_dir/ltmain.sh"
6627ofile="$default_ofile"
6628with_gnu_ld="$lt_cv_prog_gnu_ld"
6629
6630if test -n "$ac_tool_prefix"; then
6631  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6632set dummy ${ac_tool_prefix}ar; ac_word=$2
6633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6635if test "${ac_cv_prog_AR+set}" = set; then
6636  echo $ECHO_N "(cached) $ECHO_C" >&6
6637else
6638  if test -n "$AR"; then
6639  ac_cv_prog_AR="$AR" # Let the user override the test.
6640else
6641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644  IFS=$as_save_IFS
6645  test -z "$as_dir" && as_dir=.
6646  for ac_exec_ext in '' $ac_executable_extensions; do
6647  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648    ac_cv_prog_AR="${ac_tool_prefix}ar"
6649    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650    break 2
6651  fi
6652done
6653done
6654IFS=$as_save_IFS
6655
6656fi
6657fi
6658AR=$ac_cv_prog_AR
6659if test -n "$AR"; then
6660  { echo "$as_me:$LINENO: result: $AR" >&5
6661echo "${ECHO_T}$AR" >&6; }
6662else
6663  { echo "$as_me:$LINENO: result: no" >&5
6664echo "${ECHO_T}no" >&6; }
6665fi
6666
6667
6668fi
6669if test -z "$ac_cv_prog_AR"; then
6670  ac_ct_AR=$AR
6671  # Extract the first word of "ar", so it can be a program name with args.
6672set dummy ar; ac_word=$2
6673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6676  echo $ECHO_N "(cached) $ECHO_C" >&6
6677else
6678  if test -n "$ac_ct_AR"; then
6679  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6680else
6681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682for as_dir in $PATH
6683do
6684  IFS=$as_save_IFS
6685  test -z "$as_dir" && as_dir=.
6686  for ac_exec_ext in '' $ac_executable_extensions; do
6687  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688    ac_cv_prog_ac_ct_AR="ar"
6689    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690    break 2
6691  fi
6692done
6693done
6694IFS=$as_save_IFS
6695
6696fi
6697fi
6698ac_ct_AR=$ac_cv_prog_ac_ct_AR
6699if test -n "$ac_ct_AR"; then
6700  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6701echo "${ECHO_T}$ac_ct_AR" >&6; }
6702else
6703  { echo "$as_me:$LINENO: result: no" >&5
6704echo "${ECHO_T}no" >&6; }
6705fi
6706
6707  if test "x$ac_ct_AR" = x; then
6708    AR="false"
6709  else
6710    case $cross_compiling:$ac_tool_warned in
6711yes:)
6712{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6713whose name does not start with the host triplet.  If you think this
6714configuration is useful to you, please write to autoconf@gnu.org." >&5
6715echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6716whose name does not start with the host triplet.  If you think this
6717configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6718ac_tool_warned=yes ;;
6719esac
6720    AR=$ac_ct_AR
6721  fi
6722else
6723  AR="$ac_cv_prog_AR"
6724fi
6725
6726if test -n "$ac_tool_prefix"; then
6727  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6728set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731if test "${ac_cv_prog_RANLIB+set}" = set; then
6732  echo $ECHO_N "(cached) $ECHO_C" >&6
6733else
6734  if test -n "$RANLIB"; then
6735  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6736else
6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740  IFS=$as_save_IFS
6741  test -z "$as_dir" && as_dir=.
6742  for ac_exec_ext in '' $ac_executable_extensions; do
6743  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6745    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746    break 2
6747  fi
6748done
6749done
6750IFS=$as_save_IFS
6751
6752fi
6753fi
6754RANLIB=$ac_cv_prog_RANLIB
6755if test -n "$RANLIB"; then
6756  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6757echo "${ECHO_T}$RANLIB" >&6; }
6758else
6759  { echo "$as_me:$LINENO: result: no" >&5
6760echo "${ECHO_T}no" >&6; }
6761fi
6762
6763
6764fi
6765if test -z "$ac_cv_prog_RANLIB"; then
6766  ac_ct_RANLIB=$RANLIB
6767  # Extract the first word of "ranlib", so it can be a program name with args.
6768set dummy ranlib; ac_word=$2
6769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6771if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6772  echo $ECHO_N "(cached) $ECHO_C" >&6
6773else
6774  if test -n "$ac_ct_RANLIB"; then
6775  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6776else
6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780  IFS=$as_save_IFS
6781  test -z "$as_dir" && as_dir=.
6782  for ac_exec_ext in '' $ac_executable_extensions; do
6783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784    ac_cv_prog_ac_ct_RANLIB="ranlib"
6785    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786    break 2
6787  fi
6788done
6789done
6790IFS=$as_save_IFS
6791
6792fi
6793fi
6794ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6795if test -n "$ac_ct_RANLIB"; then
6796  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6797echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6798else
6799  { echo "$as_me:$LINENO: result: no" >&5
6800echo "${ECHO_T}no" >&6; }
6801fi
6802
6803  if test "x$ac_ct_RANLIB" = x; then
6804    RANLIB=":"
6805  else
6806    case $cross_compiling:$ac_tool_warned in
6807yes:)
6808{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6809whose name does not start with the host triplet.  If you think this
6810configuration is useful to you, please write to autoconf@gnu.org." >&5
6811echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6812whose name does not start with the host triplet.  If you think this
6813configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6814ac_tool_warned=yes ;;
6815esac
6816    RANLIB=$ac_ct_RANLIB
6817  fi
6818else
6819  RANLIB="$ac_cv_prog_RANLIB"
6820fi
6821
6822if test -n "$ac_tool_prefix"; then
6823  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6824set dummy ${ac_tool_prefix}strip; ac_word=$2
6825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827if test "${ac_cv_prog_STRIP+set}" = set; then
6828  echo $ECHO_N "(cached) $ECHO_C" >&6
6829else
6830  if test -n "$STRIP"; then
6831  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6832else
6833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834for as_dir in $PATH
6835do
6836  IFS=$as_save_IFS
6837  test -z "$as_dir" && as_dir=.
6838  for ac_exec_ext in '' $ac_executable_extensions; do
6839  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6841    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842    break 2
6843  fi
6844done
6845done
6846IFS=$as_save_IFS
6847
6848fi
6849fi
6850STRIP=$ac_cv_prog_STRIP
6851if test -n "$STRIP"; then
6852  { echo "$as_me:$LINENO: result: $STRIP" >&5
6853echo "${ECHO_T}$STRIP" >&6; }
6854else
6855  { echo "$as_me:$LINENO: result: no" >&5
6856echo "${ECHO_T}no" >&6; }
6857fi
6858
6859
6860fi
6861if test -z "$ac_cv_prog_STRIP"; then
6862  ac_ct_STRIP=$STRIP
6863  # Extract the first word of "strip", so it can be a program name with args.
6864set dummy strip; ac_word=$2
6865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6868  echo $ECHO_N "(cached) $ECHO_C" >&6
6869else
6870  if test -n "$ac_ct_STRIP"; then
6871  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6872else
6873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874for as_dir in $PATH
6875do
6876  IFS=$as_save_IFS
6877  test -z "$as_dir" && as_dir=.
6878  for ac_exec_ext in '' $ac_executable_extensions; do
6879  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880    ac_cv_prog_ac_ct_STRIP="strip"
6881    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882    break 2
6883  fi
6884done
6885done
6886IFS=$as_save_IFS
6887
6888fi
6889fi
6890ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6891if test -n "$ac_ct_STRIP"; then
6892  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6893echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6894else
6895  { echo "$as_me:$LINENO: result: no" >&5
6896echo "${ECHO_T}no" >&6; }
6897fi
6898
6899  if test "x$ac_ct_STRIP" = x; then
6900    STRIP=":"
6901  else
6902    case $cross_compiling:$ac_tool_warned in
6903yes:)
6904{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6905whose name does not start with the host triplet.  If you think this
6906configuration is useful to you, please write to autoconf@gnu.org." >&5
6907echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6908whose name does not start with the host triplet.  If you think this
6909configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6910ac_tool_warned=yes ;;
6911esac
6912    STRIP=$ac_ct_STRIP
6913  fi
6914else
6915  STRIP="$ac_cv_prog_STRIP"
6916fi
6917
6918
6919old_CC="$CC"
6920old_CFLAGS="$CFLAGS"
6921
6922# Set sane defaults for various variables
6923test -z "$AR" && AR=ar
6924test -z "$AR_FLAGS" && AR_FLAGS=cru
6925test -z "$AS" && AS=as
6926test -z "$CC" && CC=cc
6927test -z "$LTCC" && LTCC=$CC
6928test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6929test -z "$DLLTOOL" && DLLTOOL=dlltool
6930test -z "$LD" && LD=ld
6931test -z "$LN_S" && LN_S="ln -s"
6932test -z "$MAGIC_CMD" && MAGIC_CMD=file
6933test -z "$NM" && NM=nm
6934test -z "$SED" && SED=sed
6935test -z "$OBJDUMP" && OBJDUMP=objdump
6936test -z "$RANLIB" && RANLIB=:
6937test -z "$STRIP" && STRIP=:
6938test -z "$ac_objext" && ac_objext=o
6939
6940# Determine commands to create old-style static archives.
6941old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6942old_postinstall_cmds='chmod 644 $oldlib'
6943old_postuninstall_cmds=
6944
6945if test -n "$RANLIB"; then
6946  case $host_os in
6947  openbsd*)
6948    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6949    ;;
6950  *)
6951    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6952    ;;
6953  esac
6954  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6955fi
6956
6957for cc_temp in $compiler""; do
6958  case $cc_temp in
6959    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6960    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6961    \-*) ;;
6962    *) break;;
6963  esac
6964done
6965cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6966
6967
6968# Only perform the check for file, if the check method requires it
6969case $deplibs_check_method in
6970file_magic*)
6971  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6972    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6973echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6974if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6975  echo $ECHO_N "(cached) $ECHO_C" >&6
6976else
6977  case $MAGIC_CMD in
6978[\\/*] |  ?:[\\/]*)
6979  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6980  ;;
6981*)
6982  lt_save_MAGIC_CMD="$MAGIC_CMD"
6983  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6984  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6985  for ac_dir in $ac_dummy; do
6986    IFS="$lt_save_ifs"
6987    test -z "$ac_dir" && ac_dir=.
6988    if test -f $ac_dir/${ac_tool_prefix}file; then
6989      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6990      if test -n "$file_magic_test_file"; then
6991	case $deplibs_check_method in
6992	"file_magic "*)
6993	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6994	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6995	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6996	    $EGREP "$file_magic_regex" > /dev/null; then
6997	    :
6998	  else
6999	    cat <<EOF 1>&2
7000
7001*** Warning: the command libtool uses to detect shared libraries,
7002*** $file_magic_cmd, produces output that libtool cannot recognize.
7003*** The result is that libtool may fail to recognize shared libraries
7004*** as such.  This will affect the creation of libtool libraries that
7005*** depend on shared libraries, but programs linked with such libtool
7006*** libraries will work regardless of this problem.  Nevertheless, you
7007*** may want to report the problem to your system manager and/or to
7008*** bug-libtool@gnu.org
7009
7010EOF
7011	  fi ;;
7012	esac
7013      fi
7014      break
7015    fi
7016  done
7017  IFS="$lt_save_ifs"
7018  MAGIC_CMD="$lt_save_MAGIC_CMD"
7019  ;;
7020esac
7021fi
7022
7023MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7024if test -n "$MAGIC_CMD"; then
7025  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7026echo "${ECHO_T}$MAGIC_CMD" >&6; }
7027else
7028  { echo "$as_me:$LINENO: result: no" >&5
7029echo "${ECHO_T}no" >&6; }
7030fi
7031
7032if test -z "$lt_cv_path_MAGIC_CMD"; then
7033  if test -n "$ac_tool_prefix"; then
7034    { echo "$as_me:$LINENO: checking for file" >&5
7035echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7036if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7037  echo $ECHO_N "(cached) $ECHO_C" >&6
7038else
7039  case $MAGIC_CMD in
7040[\\/*] |  ?:[\\/]*)
7041  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7042  ;;
7043*)
7044  lt_save_MAGIC_CMD="$MAGIC_CMD"
7045  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7046  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7047  for ac_dir in $ac_dummy; do
7048    IFS="$lt_save_ifs"
7049    test -z "$ac_dir" && ac_dir=.
7050    if test -f $ac_dir/file; then
7051      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7052      if test -n "$file_magic_test_file"; then
7053	case $deplibs_check_method in
7054	"file_magic "*)
7055	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7056	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7057	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7058	    $EGREP "$file_magic_regex" > /dev/null; then
7059	    :
7060	  else
7061	    cat <<EOF 1>&2
7062
7063*** Warning: the command libtool uses to detect shared libraries,
7064*** $file_magic_cmd, produces output that libtool cannot recognize.
7065*** The result is that libtool may fail to recognize shared libraries
7066*** as such.  This will affect the creation of libtool libraries that
7067*** depend on shared libraries, but programs linked with such libtool
7068*** libraries will work regardless of this problem.  Nevertheless, you
7069*** may want to report the problem to your system manager and/or to
7070*** bug-libtool@gnu.org
7071
7072EOF
7073	  fi ;;
7074	esac
7075      fi
7076      break
7077    fi
7078  done
7079  IFS="$lt_save_ifs"
7080  MAGIC_CMD="$lt_save_MAGIC_CMD"
7081  ;;
7082esac
7083fi
7084
7085MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7086if test -n "$MAGIC_CMD"; then
7087  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7088echo "${ECHO_T}$MAGIC_CMD" >&6; }
7089else
7090  { echo "$as_me:$LINENO: result: no" >&5
7091echo "${ECHO_T}no" >&6; }
7092fi
7093
7094  else
7095    MAGIC_CMD=:
7096  fi
7097fi
7098
7099  fi
7100  ;;
7101esac
7102
7103enable_dlopen=no
7104enable_win32_dll=no
7105
7106# Check whether --enable-libtool-lock was given.
7107if test "${enable_libtool_lock+set}" = set; then
7108  enableval=$enable_libtool_lock;
7109fi
7110
7111test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7112
7113
7114# Check whether --with-pic was given.
7115if test "${with_pic+set}" = set; then
7116  withval=$with_pic; pic_mode="$withval"
7117else
7118  pic_mode=default
7119fi
7120
7121test -z "$pic_mode" && pic_mode=default
7122
7123# Use C for the default configuration in the libtool script
7124tagname=
7125lt_save_CC="$CC"
7126ac_ext=c
7127ac_cpp='$CPP $CPPFLAGS'
7128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7130ac_compiler_gnu=$ac_cv_c_compiler_gnu
7131
7132
7133# Source file extension for C test sources.
7134ac_ext=c
7135
7136# Object file extension for compiled C test sources.
7137objext=o
7138objext=$objext
7139
7140# Code to be used in simple compile tests
7141lt_simple_compile_test_code="int some_variable = 0;\n"
7142
7143# Code to be used in simple link tests
7144lt_simple_link_test_code='int main(){return(0);}\n'
7145
7146
7147# If no C compiler was specified, use CC.
7148LTCC=${LTCC-"$CC"}
7149
7150# If no C compiler flags were specified, use CFLAGS.
7151LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7152
7153# Allow CC to be a program name with arguments.
7154compiler=$CC
7155
7156
7157# save warnings/boilerplate of simple test code
7158ac_outfile=conftest.$ac_objext
7159printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7160eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7161_lt_compiler_boilerplate=`cat conftest.err`
7162$rm conftest*
7163
7164ac_outfile=conftest.$ac_objext
7165printf "$lt_simple_link_test_code" >conftest.$ac_ext
7166eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7167_lt_linker_boilerplate=`cat conftest.err`
7168$rm conftest*
7169
7170
7171
7172lt_prog_compiler_no_builtin_flag=
7173
7174if test "$GCC" = yes; then
7175  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7176
7177
7178{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7179echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7180if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7181  echo $ECHO_N "(cached) $ECHO_C" >&6
7182else
7183  lt_cv_prog_compiler_rtti_exceptions=no
7184  ac_outfile=conftest.$ac_objext
7185   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7186   lt_compiler_flag="-fno-rtti -fno-exceptions"
7187   # Insert the option either (1) after the last *FLAGS variable, or
7188   # (2) before a word containing "conftest.", or (3) at the end.
7189   # Note that $ac_compile itself does not contain backslashes and begins
7190   # with a dollar sign (not a hyphen), so the echo should work correctly.
7191   # The option is referenced via a variable to avoid confusing sed.
7192   lt_compile=`echo "$ac_compile" | $SED \
7193   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7194   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7195   -e 's:$: $lt_compiler_flag:'`
7196   (eval echo "\"\$as_me:7196: $lt_compile\"" >&5)
7197   (eval "$lt_compile" 2>conftest.err)
7198   ac_status=$?
7199   cat conftest.err >&5
7200   echo "$as_me:7200: \$? = $ac_status" >&5
7201   if (exit $ac_status) && test -s "$ac_outfile"; then
7202     # The compiler can only warn and ignore the option if not recognized
7203     # So say no if there are warnings other than the usual output.
7204     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7205     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7206     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7207       lt_cv_prog_compiler_rtti_exceptions=yes
7208     fi
7209   fi
7210   $rm conftest*
7211
7212fi
7213{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7214echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7215
7216if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7217    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7218else
7219    :
7220fi
7221
7222fi
7223
7224lt_prog_compiler_wl=
7225lt_prog_compiler_pic=
7226lt_prog_compiler_static=
7227
7228{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7229echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7230
7231  if test "$GCC" = yes; then
7232    lt_prog_compiler_wl='-Wl,'
7233    lt_prog_compiler_static='-static'
7234
7235    case $host_os in
7236      aix*)
7237      # All AIX code is PIC.
7238      if test "$host_cpu" = ia64; then
7239	# AIX 5 now supports IA64 processor
7240	lt_prog_compiler_static='-Bstatic'
7241      fi
7242      ;;
7243
7244    amigaos*)
7245      # FIXME: we need at least 68020 code to build shared libraries, but
7246      # adding the `-m68020' flag to GCC prevents building anything better,
7247      # like `-m68040'.
7248      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7249      ;;
7250
7251    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7252      # PIC is the default for these OSes.
7253      ;;
7254
7255    mingw* | pw32* | os2*)
7256      # This hack is so that the source file can tell whether it is being
7257      # built for inclusion in a dll (and should export symbols for example).
7258      lt_prog_compiler_pic='-DDLL_EXPORT'
7259      ;;
7260
7261    darwin* | rhapsody*)
7262      # PIC is the default on this platform
7263      # Common symbols not allowed in MH_DYLIB files
7264      lt_prog_compiler_pic='-fno-common'
7265      ;;
7266
7267    interix3*)
7268      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7269      # Instead, we relocate shared libraries at runtime.
7270      ;;
7271
7272    msdosdjgpp*)
7273      # Just because we use GCC doesn't mean we suddenly get shared libraries
7274      # on systems that don't support them.
7275      lt_prog_compiler_can_build_shared=no
7276      enable_shared=no
7277      ;;
7278
7279    sysv4*MP*)
7280      if test -d /usr/nec; then
7281	lt_prog_compiler_pic=-Kconform_pic
7282      fi
7283      ;;
7284
7285    hpux*)
7286      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7287      # not for PA HP-UX.
7288      case $host_cpu in
7289      hppa*64*|ia64*)
7290	# +Z the default
7291	;;
7292      *)
7293	lt_prog_compiler_pic='-fPIC'
7294	;;
7295      esac
7296      ;;
7297
7298    *)
7299      lt_prog_compiler_pic='-fPIC'
7300      ;;
7301    esac
7302  else
7303    # PORTME Check for flag to pass linker flags through the system compiler.
7304    case $host_os in
7305    aix*)
7306      lt_prog_compiler_wl='-Wl,'
7307      if test "$host_cpu" = ia64; then
7308	# AIX 5 now supports IA64 processor
7309	lt_prog_compiler_static='-Bstatic'
7310      else
7311	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7312      fi
7313      ;;
7314      darwin*)
7315        # PIC is the default on this platform
7316        # Common symbols not allowed in MH_DYLIB files
7317       case $cc_basename in
7318         xlc*)
7319         lt_prog_compiler_pic='-qnocommon'
7320         lt_prog_compiler_wl='-Wl,'
7321         ;;
7322       esac
7323       ;;
7324
7325    mingw* | pw32* | os2*)
7326      # This hack is so that the source file can tell whether it is being
7327      # built for inclusion in a dll (and should export symbols for example).
7328      lt_prog_compiler_pic='-DDLL_EXPORT'
7329      ;;
7330
7331    hpux9* | hpux10* | hpux11*)
7332      lt_prog_compiler_wl='-Wl,'
7333      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7334      # not for PA HP-UX.
7335      case $host_cpu in
7336      hppa*64*|ia64*)
7337	# +Z the default
7338	;;
7339      *)
7340	lt_prog_compiler_pic='+Z'
7341	;;
7342      esac
7343      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7344      lt_prog_compiler_static='${wl}-a ${wl}archive'
7345      ;;
7346
7347    irix5* | irix6* | nonstopux*)
7348      lt_prog_compiler_wl='-Wl,'
7349      # PIC (with -KPIC) is the default.
7350      lt_prog_compiler_static='-non_shared'
7351      ;;
7352
7353    newsos6)
7354      lt_prog_compiler_pic='-KPIC'
7355      lt_prog_compiler_static='-Bstatic'
7356      ;;
7357
7358    linux*)
7359      case $cc_basename in
7360      icc* | ecc*)
7361	lt_prog_compiler_wl='-Wl,'
7362	lt_prog_compiler_pic='-KPIC'
7363	lt_prog_compiler_static='-static'
7364        ;;
7365      pgcc* | pgf77* | pgf90* | pgf95*)
7366        # Portland Group compilers (*not* the Pentium gcc compiler,
7367	# which looks to be a dead project)
7368	lt_prog_compiler_wl='-Wl,'
7369	lt_prog_compiler_pic='-fpic'
7370	lt_prog_compiler_static='-Bstatic'
7371        ;;
7372      ccc*)
7373        lt_prog_compiler_wl='-Wl,'
7374        # All Alpha code is PIC.
7375        lt_prog_compiler_static='-non_shared'
7376        ;;
7377      esac
7378      ;;
7379
7380    osf3* | osf4* | osf5*)
7381      lt_prog_compiler_wl='-Wl,'
7382      # All OSF/1 code is PIC.
7383      lt_prog_compiler_static='-non_shared'
7384      ;;
7385
7386    solaris*)
7387      lt_prog_compiler_pic='-KPIC'
7388      lt_prog_compiler_static='-Bstatic'
7389      case $cc_basename in
7390      f77* | f90* | f95*)
7391	lt_prog_compiler_wl='-Qoption ld ';;
7392      *)
7393	lt_prog_compiler_wl='-Wl,';;
7394      esac
7395      ;;
7396
7397    sunos4*)
7398      lt_prog_compiler_wl='-Qoption ld '
7399      lt_prog_compiler_pic='-PIC'
7400      lt_prog_compiler_static='-Bstatic'
7401      ;;
7402
7403    sysv4 | sysv4.2uw2* | sysv4.3*)
7404      lt_prog_compiler_wl='-Wl,'
7405      lt_prog_compiler_pic='-KPIC'
7406      lt_prog_compiler_static='-Bstatic'
7407      ;;
7408
7409    sysv4*MP*)
7410      if test -d /usr/nec ;then
7411	lt_prog_compiler_pic='-Kconform_pic'
7412	lt_prog_compiler_static='-Bstatic'
7413      fi
7414      ;;
7415
7416    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7417      lt_prog_compiler_wl='-Wl,'
7418      lt_prog_compiler_pic='-KPIC'
7419      lt_prog_compiler_static='-Bstatic'
7420      ;;
7421
7422    unicos*)
7423      lt_prog_compiler_wl='-Wl,'
7424      lt_prog_compiler_can_build_shared=no
7425      ;;
7426
7427    uts4*)
7428      lt_prog_compiler_pic='-pic'
7429      lt_prog_compiler_static='-Bstatic'
7430      ;;
7431
7432    *)
7433      lt_prog_compiler_can_build_shared=no
7434      ;;
7435    esac
7436  fi
7437
7438{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7439echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7440
7441#
7442# Check to make sure the PIC flag actually works.
7443#
7444if test -n "$lt_prog_compiler_pic"; then
7445
7446{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7447echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7448if test "${lt_prog_compiler_pic_works+set}" = set; then
7449  echo $ECHO_N "(cached) $ECHO_C" >&6
7450else
7451  lt_prog_compiler_pic_works=no
7452  ac_outfile=conftest.$ac_objext
7453   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7454   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7455   # Insert the option either (1) after the last *FLAGS variable, or
7456   # (2) before a word containing "conftest.", or (3) at the end.
7457   # Note that $ac_compile itself does not contain backslashes and begins
7458   # with a dollar sign (not a hyphen), so the echo should work correctly.
7459   # The option is referenced via a variable to avoid confusing sed.
7460   lt_compile=`echo "$ac_compile" | $SED \
7461   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7462   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7463   -e 's:$: $lt_compiler_flag:'`
7464   (eval echo "\"\$as_me:7464: $lt_compile\"" >&5)
7465   (eval "$lt_compile" 2>conftest.err)
7466   ac_status=$?
7467   cat conftest.err >&5
7468   echo "$as_me:7468: \$? = $ac_status" >&5
7469   if (exit $ac_status) && test -s "$ac_outfile"; then
7470     # The compiler can only warn and ignore the option if not recognized
7471     # So say no if there are warnings other than the usual output.
7472     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7473     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7474     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7475       lt_prog_compiler_pic_works=yes
7476     fi
7477   fi
7478   $rm conftest*
7479
7480fi
7481{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7482echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7483
7484if test x"$lt_prog_compiler_pic_works" = xyes; then
7485    case $lt_prog_compiler_pic in
7486     "" | " "*) ;;
7487     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7488     esac
7489else
7490    lt_prog_compiler_pic=
7491     lt_prog_compiler_can_build_shared=no
7492fi
7493
7494fi
7495case $host_os in
7496  # For platforms which do not support PIC, -DPIC is meaningless:
7497  *djgpp*)
7498    lt_prog_compiler_pic=
7499    ;;
7500  *)
7501    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7502    ;;
7503esac
7504
7505#
7506# Check to make sure the static flag actually works.
7507#
7508wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7509{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7510echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7511if test "${lt_prog_compiler_static_works+set}" = set; then
7512  echo $ECHO_N "(cached) $ECHO_C" >&6
7513else
7514  lt_prog_compiler_static_works=no
7515   save_LDFLAGS="$LDFLAGS"
7516   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7517   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7518   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7519     # The linker can only warn and ignore the option if not recognized
7520     # So say no if there are warnings
7521     if test -s conftest.err; then
7522       # Append any errors to the config.log.
7523       cat conftest.err 1>&5
7524       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7525       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7526       if diff conftest.exp conftest.er2 >/dev/null; then
7527         lt_prog_compiler_static_works=yes
7528       fi
7529     else
7530       lt_prog_compiler_static_works=yes
7531     fi
7532   fi
7533   $rm conftest*
7534   LDFLAGS="$save_LDFLAGS"
7535
7536fi
7537{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7538echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7539
7540if test x"$lt_prog_compiler_static_works" = xyes; then
7541    :
7542else
7543    lt_prog_compiler_static=
7544fi
7545
7546
7547{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7548echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7549if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7550  echo $ECHO_N "(cached) $ECHO_C" >&6
7551else
7552  lt_cv_prog_compiler_c_o=no
7553   $rm -r conftest 2>/dev/null
7554   mkdir conftest
7555   cd conftest
7556   mkdir out
7557   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7558
7559   lt_compiler_flag="-o out/conftest2.$ac_objext"
7560   # Insert the option either (1) after the last *FLAGS variable, or
7561   # (2) before a word containing "conftest.", or (3) at the end.
7562   # Note that $ac_compile itself does not contain backslashes and begins
7563   # with a dollar sign (not a hyphen), so the echo should work correctly.
7564   lt_compile=`echo "$ac_compile" | $SED \
7565   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7566   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7567   -e 's:$: $lt_compiler_flag:'`
7568   (eval echo "\"\$as_me:7568: $lt_compile\"" >&5)
7569   (eval "$lt_compile" 2>out/conftest.err)
7570   ac_status=$?
7571   cat out/conftest.err >&5
7572   echo "$as_me:7572: \$? = $ac_status" >&5
7573   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7574   then
7575     # The compiler can only warn and ignore the option if not recognized
7576     # So say no if there are warnings
7577     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7578     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7579     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7580       lt_cv_prog_compiler_c_o=yes
7581     fi
7582   fi
7583   chmod u+w . 2>&5
7584   $rm conftest*
7585   # SGI C++ compiler will create directory out/ii_files/ for
7586   # template instantiation
7587   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7588   $rm out/* && rmdir out
7589   cd ..
7590   rmdir conftest
7591   $rm conftest*
7592
7593fi
7594{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7595echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7596
7597
7598hard_links="nottested"
7599if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7600  # do not overwrite the value of need_locks provided by the user
7601  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7602echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7603  hard_links=yes
7604  $rm conftest*
7605  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7606  touch conftest.a
7607  ln conftest.a conftest.b 2>&5 || hard_links=no
7608  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7609  { echo "$as_me:$LINENO: result: $hard_links" >&5
7610echo "${ECHO_T}$hard_links" >&6; }
7611  if test "$hard_links" = no; then
7612    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7613echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7614    need_locks=warn
7615  fi
7616else
7617  need_locks=no
7618fi
7619
7620{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7621echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7622
7623  runpath_var=
7624  allow_undefined_flag=
7625  enable_shared_with_static_runtimes=no
7626  archive_cmds=
7627  archive_expsym_cmds=
7628  old_archive_From_new_cmds=
7629  old_archive_from_expsyms_cmds=
7630  export_dynamic_flag_spec=
7631  whole_archive_flag_spec=
7632  thread_safe_flag_spec=
7633  hardcode_libdir_flag_spec=
7634  hardcode_libdir_flag_spec_ld=
7635  hardcode_libdir_separator=
7636  hardcode_direct=no
7637  hardcode_minus_L=no
7638  hardcode_shlibpath_var=unsupported
7639  link_all_deplibs=unknown
7640  hardcode_automatic=no
7641  module_cmds=
7642  module_expsym_cmds=
7643  always_export_symbols=no
7644  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7645  # include_expsyms should be a list of space-separated symbols to be *always*
7646  # included in the symbol list
7647  include_expsyms=
7648  # exclude_expsyms can be an extended regexp of symbols to exclude
7649  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7650  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7651  # as well as any symbol that contains `d'.
7652  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7653  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7654  # platforms (ab)use it in PIC code, but their linkers get confused if
7655  # the symbol is explicitly referenced.  Since portable code cannot
7656  # rely on this symbol name, it's probably fine to never include it in
7657  # preloaded symbol tables.
7658  extract_expsyms_cmds=
7659  # Just being paranoid about ensuring that cc_basename is set.
7660  for cc_temp in $compiler""; do
7661  case $cc_temp in
7662    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7663    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7664    \-*) ;;
7665    *) break;;
7666  esac
7667done
7668cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7669
7670  case $host_os in
7671  cygwin* | mingw* | pw32*)
7672    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7673    # When not using gcc, we currently assume that we are using
7674    # Microsoft Visual C++.
7675    if test "$GCC" != yes; then
7676      with_gnu_ld=no
7677    fi
7678    ;;
7679  interix*)
7680    # we just hope/assume this is gcc and not c89 (= MSVC++)
7681    with_gnu_ld=yes
7682    ;;
7683  openbsd*)
7684    with_gnu_ld=no
7685    ;;
7686  esac
7687
7688  ld_shlibs=yes
7689  if test "$with_gnu_ld" = yes; then
7690    # If archive_cmds runs LD, not CC, wlarc should be empty
7691    wlarc='${wl}'
7692
7693    # Set some defaults for GNU ld with shared library support. These
7694    # are reset later if shared libraries are not supported. Putting them
7695    # here allows them to be overridden if necessary.
7696    runpath_var=LD_RUN_PATH
7697    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7698    export_dynamic_flag_spec='${wl}--export-dynamic'
7699    # ancient GNU ld didn't support --whole-archive et. al.
7700    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7701	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7702      else
7703  	whole_archive_flag_spec=
7704    fi
7705    supports_anon_versioning=no
7706    case `$LD -v 2>/dev/null` in
7707      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7708      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7709      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7710      *\ 2.11.*) ;; # other 2.11 versions
7711      *) supports_anon_versioning=yes ;;
7712    esac
7713
7714    # See if GNU ld supports shared libraries.
7715    case $host_os in
7716    aix3* | aix4* | aix5*)
7717      # On AIX/PPC, the GNU linker is very broken
7718      if test "$host_cpu" != ia64; then
7719	ld_shlibs=no
7720	cat <<EOF 1>&2
7721
7722*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7723*** to be unable to reliably create shared libraries on AIX.
7724*** Therefore, libtool is disabling shared libraries support.  If you
7725*** really care for shared libraries, you may want to modify your PATH
7726*** so that a non-GNU linker is found, and then restart.
7727
7728EOF
7729      fi
7730      ;;
7731
7732    amigaos*)
7733      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)'
7734      hardcode_libdir_flag_spec='-L$libdir'
7735      hardcode_minus_L=yes
7736
7737      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7738      # that the semantics of dynamic libraries on AmigaOS, at least up
7739      # to version 4, is to share data among multiple programs linked
7740      # with the same dynamic library.  Since this doesn't match the
7741      # behavior of shared libraries on other platforms, we can't use
7742      # them.
7743      ld_shlibs=no
7744      ;;
7745
7746    beos*)
7747      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7748	allow_undefined_flag=unsupported
7749	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7750	# support --undefined.  This deserves some investigation.  FIXME
7751	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7752      else
7753	ld_shlibs=no
7754      fi
7755      ;;
7756
7757    cygwin* | mingw* | pw32*)
7758      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7759      # as there is no search path for DLLs.
7760      hardcode_libdir_flag_spec='-L$libdir'
7761      allow_undefined_flag=unsupported
7762      always_export_symbols=no
7763      enable_shared_with_static_runtimes=yes
7764      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7765
7766      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7767        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7768	# If the export-symbols file already is a .def file (1st line
7769	# is EXPORTS), use it as is; otherwise, prepend...
7770	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7771	  cp $export_symbols $output_objdir/$soname.def;
7772	else
7773	  echo EXPORTS > $output_objdir/$soname.def;
7774	  cat $export_symbols >> $output_objdir/$soname.def;
7775	fi~
7776	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7777      else
7778	ld_shlibs=no
7779      fi
7780      ;;
7781
7782    interix3*)
7783      hardcode_direct=no
7784      hardcode_shlibpath_var=no
7785      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7786      export_dynamic_flag_spec='${wl}-E'
7787      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7788      # Instead, shared libraries are loaded at an image base (0x10000000 by
7789      # default) and relocated if they conflict, which is a slow very memory
7790      # consuming and fragmenting process.  To avoid this, we pick a random,
7791      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7792      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7793      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7794      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7795      ;;
7796
7797    linux*)
7798      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7799	tmp_addflag=
7800	case $cc_basename,$host_cpu in
7801	pgcc*)				# Portland Group C compiler
7802	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7803	  tmp_addflag=' $pic_flag'
7804	  ;;
7805	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7806	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7807	  tmp_addflag=' $pic_flag -Mnomain' ;;
7808	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7809	  tmp_addflag=' -i_dynamic' ;;
7810	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7811	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7812	ifc* | ifort*)			# Intel Fortran compiler
7813	  tmp_addflag=' -nofor_main' ;;
7814	esac
7815	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7816
7817	if test $supports_anon_versioning = yes; then
7818	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7819  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7820  $echo "local: *; };" >> $output_objdir/$libname.ver~
7821	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7822	fi
7823      else
7824	ld_shlibs=no
7825      fi
7826      ;;
7827
7828    netbsd*)
7829      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7830	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7831	wlarc=
7832      else
7833	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7834	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7835      fi
7836      ;;
7837
7838    solaris*)
7839      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7840	ld_shlibs=no
7841	cat <<EOF 1>&2
7842
7843*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7844*** create shared libraries on Solaris systems.  Therefore, libtool
7845*** is disabling shared libraries support.  We urge you to upgrade GNU
7846*** binutils to release 2.9.1 or newer.  Another option is to modify
7847*** your PATH or compiler configuration so that the native linker is
7848*** used, and then restart.
7849
7850EOF
7851      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7852	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7853	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7854      else
7855	ld_shlibs=no
7856      fi
7857      ;;
7858
7859    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7860      case `$LD -v 2>&1` in
7861        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7862	ld_shlibs=no
7863	cat <<_LT_EOF 1>&2
7864
7865*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7866*** reliably create shared libraries on SCO systems.  Therefore, libtool
7867*** is disabling shared libraries support.  We urge you to upgrade GNU
7868*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7869*** your PATH or compiler configuration so that the native linker is
7870*** used, and then restart.
7871
7872_LT_EOF
7873	;;
7874	*)
7875	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7876	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7877	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7878	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7879	  else
7880	    ld_shlibs=no
7881	  fi
7882	;;
7883      esac
7884      ;;
7885
7886    sunos4*)
7887      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7888      wlarc=
7889      hardcode_direct=yes
7890      hardcode_shlibpath_var=no
7891      ;;
7892
7893    *)
7894      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7895	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7896	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7897      else
7898	ld_shlibs=no
7899      fi
7900      ;;
7901    esac
7902
7903    if test "$ld_shlibs" = no; then
7904      runpath_var=
7905      hardcode_libdir_flag_spec=
7906      export_dynamic_flag_spec=
7907      whole_archive_flag_spec=
7908    fi
7909  else
7910    # PORTME fill in a description of your system's linker (not GNU ld)
7911    case $host_os in
7912    aix3*)
7913      allow_undefined_flag=unsupported
7914      always_export_symbols=yes
7915      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'
7916      # Note: this linker hardcodes the directories in LIBPATH if there
7917      # are no directories specified by -L.
7918      hardcode_minus_L=yes
7919      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7920	# Neither direct hardcoding nor static linking is supported with a
7921	# broken collect2.
7922	hardcode_direct=unsupported
7923      fi
7924      ;;
7925
7926    aix4* | aix5*)
7927      if test "$host_cpu" = ia64; then
7928	# On IA64, the linker does run time linking by default, so we don't
7929	# have to do anything special.
7930	aix_use_runtimelinking=no
7931	exp_sym_flag='-Bexport'
7932	no_entry_flag=""
7933      else
7934	# If we're using GNU nm, then we don't want the "-C" option.
7935	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7936	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7937	  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'
7938	else
7939	  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'
7940	fi
7941	aix_use_runtimelinking=no
7942
7943	# Test if we are trying to use run time linking or normal
7944	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7945	# need to do runtime linking.
7946	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7947	  for ld_flag in $LDFLAGS; do
7948  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7949  	    aix_use_runtimelinking=yes
7950  	    break
7951  	  fi
7952	  done
7953	  ;;
7954	esac
7955
7956	exp_sym_flag='-bexport'
7957	no_entry_flag='-bnoentry'
7958      fi
7959
7960      # When large executables or shared objects are built, AIX ld can
7961      # have problems creating the table of contents.  If linking a library
7962      # or program results in "error TOC overflow" add -mminimal-toc to
7963      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7964      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7965
7966      archive_cmds=''
7967      hardcode_direct=yes
7968      hardcode_libdir_separator=':'
7969      link_all_deplibs=yes
7970
7971      if test "$GCC" = yes; then
7972	case $host_os in aix4.[012]|aix4.[012].*)
7973	# We only want to do this on AIX 4.2 and lower, the check
7974	# below for broken collect2 doesn't work under 4.3+
7975	  collect2name=`${CC} -print-prog-name=collect2`
7976	  if test -f "$collect2name" && \
7977  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7978	  then
7979  	  # We have reworked collect2
7980  	  hardcode_direct=yes
7981	  else
7982  	  # We have old collect2
7983  	  hardcode_direct=unsupported
7984  	  # It fails to find uninstalled libraries when the uninstalled
7985  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7986  	  # to unsupported forces relinking
7987  	  hardcode_minus_L=yes
7988  	  hardcode_libdir_flag_spec='-L$libdir'
7989  	  hardcode_libdir_separator=
7990	  fi
7991	  ;;
7992	esac
7993	shared_flag='-shared'
7994	if test "$aix_use_runtimelinking" = yes; then
7995	  shared_flag="$shared_flag "'${wl}-G'
7996	fi
7997      else
7998	# not using gcc
7999	if test "$host_cpu" = ia64; then
8000  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8001  	# chokes on -Wl,-G. The following line is correct:
8002	  shared_flag='-G'
8003	else
8004	  if test "$aix_use_runtimelinking" = yes; then
8005	    shared_flag='${wl}-G'
8006	  else
8007	    shared_flag='${wl}-bM:SRE'
8008	  fi
8009	fi
8010      fi
8011
8012      # It seems that -bexpall does not export symbols beginning with
8013      # underscore (_), so it is better to generate a list of symbols to export.
8014      always_export_symbols=yes
8015      if test "$aix_use_runtimelinking" = yes; then
8016	# Warning - without using the other runtime loading flags (-brtl),
8017	# -berok will link without error, but may produce a broken library.
8018	allow_undefined_flag='-berok'
8019       # Determine the default libpath from the value encoded in an empty executable.
8020       cat >conftest.$ac_ext <<_ACEOF
8021/* confdefs.h.  */
8022_ACEOF
8023cat confdefs.h >>conftest.$ac_ext
8024cat >>conftest.$ac_ext <<_ACEOF
8025/* end confdefs.h.  */
8026
8027int
8028main ()
8029{
8030
8031  ;
8032  return 0;
8033}
8034_ACEOF
8035rm -f conftest.$ac_objext conftest$ac_exeext
8036if { (ac_try="$ac_link"
8037case "(($ac_try" in
8038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039  *) ac_try_echo=$ac_try;;
8040esac
8041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042  (eval "$ac_link") 2>conftest.er1
8043  ac_status=$?
8044  grep -v '^ *+' conftest.er1 >conftest.err
8045  rm -f conftest.er1
8046  cat conftest.err >&5
8047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048  (exit $ac_status); } && {
8049	 test -z "$ac_c_werror_flag" ||
8050	 test ! -s conftest.err
8051       } && test -s conftest$ac_exeext &&
8052       $as_test_x conftest$ac_exeext; then
8053
8054aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8055}'`
8056# Check for a 64-bit object if we didn't find anything.
8057if 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; }
8058}'`; fi
8059else
8060  echo "$as_me: failed program was:" >&5
8061sed 's/^/| /' conftest.$ac_ext >&5
8062
8063
8064fi
8065
8066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8067      conftest$ac_exeext conftest.$ac_ext
8068if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8069
8070       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8071	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8072       else
8073	if test "$host_cpu" = ia64; then
8074	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8075	  allow_undefined_flag="-z nodefs"
8076	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8077	else
8078	 # Determine the default libpath from the value encoded in an empty executable.
8079	 cat >conftest.$ac_ext <<_ACEOF
8080/* confdefs.h.  */
8081_ACEOF
8082cat confdefs.h >>conftest.$ac_ext
8083cat >>conftest.$ac_ext <<_ACEOF
8084/* end confdefs.h.  */
8085
8086int
8087main ()
8088{
8089
8090  ;
8091  return 0;
8092}
8093_ACEOF
8094rm -f conftest.$ac_objext conftest$ac_exeext
8095if { (ac_try="$ac_link"
8096case "(($ac_try" in
8097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098  *) ac_try_echo=$ac_try;;
8099esac
8100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101  (eval "$ac_link") 2>conftest.er1
8102  ac_status=$?
8103  grep -v '^ *+' conftest.er1 >conftest.err
8104  rm -f conftest.er1
8105  cat conftest.err >&5
8106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107  (exit $ac_status); } && {
8108	 test -z "$ac_c_werror_flag" ||
8109	 test ! -s conftest.err
8110       } && test -s conftest$ac_exeext &&
8111       $as_test_x conftest$ac_exeext; then
8112
8113aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8114}'`
8115# Check for a 64-bit object if we didn't find anything.
8116if 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; }
8117}'`; fi
8118else
8119  echo "$as_me: failed program was:" >&5
8120sed 's/^/| /' conftest.$ac_ext >&5
8121
8122
8123fi
8124
8125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8126      conftest$ac_exeext conftest.$ac_ext
8127if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8128
8129	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8130	  # Warning - without using the other run time loading flags,
8131	  # -berok will link without error, but may produce a broken library.
8132	  no_undefined_flag=' ${wl}-bernotok'
8133	  allow_undefined_flag=' ${wl}-berok'
8134	  # Exported symbols can be pulled into shared objects from archives
8135	  whole_archive_flag_spec='$convenience'
8136	  archive_cmds_need_lc=yes
8137	  # This is similar to how AIX traditionally builds its shared libraries.
8138	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8139	fi
8140      fi
8141      ;;
8142
8143    amigaos*)
8144      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)'
8145      hardcode_libdir_flag_spec='-L$libdir'
8146      hardcode_minus_L=yes
8147      # see comment about different semantics on the GNU ld section
8148      ld_shlibs=no
8149      ;;
8150
8151    bsdi[45]*)
8152      export_dynamic_flag_spec=-rdynamic
8153      ;;
8154
8155    cygwin* | mingw* | pw32*)
8156      # When not using gcc, we currently assume that we are using
8157      # Microsoft Visual C++.
8158      # hardcode_libdir_flag_spec is actually meaningless, as there is
8159      # no search path for DLLs.
8160      hardcode_libdir_flag_spec=' '
8161      allow_undefined_flag=unsupported
8162      # Tell ltmain to make .lib files, not .a files.
8163      libext=lib
8164      # Tell ltmain to make .dll files, not .so files.
8165      shrext_cmds=".dll"
8166      # FIXME: Setting linknames here is a bad hack.
8167      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8168      # The linker will automatically build a .lib file if we build a DLL.
8169      old_archive_From_new_cmds='true'
8170      # FIXME: Should let the user specify the lib program.
8171      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8172      fix_srcfile_path='`cygpath -w "$srcfile"`'
8173      enable_shared_with_static_runtimes=yes
8174      ;;
8175
8176    darwin* | rhapsody*)
8177      case $host_os in
8178        rhapsody* | darwin1.[012])
8179         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8180         ;;
8181       *) # Darwin 1.3 on
8182         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8183           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8184         else
8185           case ${MACOSX_DEPLOYMENT_TARGET} in
8186             10.[012])
8187               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8188               ;;
8189             10.*)
8190               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8191               ;;
8192           esac
8193         fi
8194         ;;
8195      esac
8196      archive_cmds_need_lc=no
8197      hardcode_direct=no
8198      hardcode_automatic=yes
8199      hardcode_shlibpath_var=unsupported
8200      whole_archive_flag_spec=''
8201      link_all_deplibs=yes
8202    if test "$GCC" = yes ; then
8203    	output_verbose_link_cmd='echo'
8204        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8205      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8206      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8207      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}'
8208      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}'
8209    else
8210      case $cc_basename in
8211        xlc*)
8212         output_verbose_link_cmd='echo'
8213         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8214         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8215          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8216         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}'
8217          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}'
8218          ;;
8219       *)
8220         ld_shlibs=no
8221          ;;
8222      esac
8223    fi
8224      ;;
8225
8226    dgux*)
8227      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8228      hardcode_libdir_flag_spec='-L$libdir'
8229      hardcode_shlibpath_var=no
8230      ;;
8231
8232    freebsd1*)
8233      ld_shlibs=no
8234      ;;
8235
8236    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8237    # support.  Future versions do this automatically, but an explicit c++rt0.o
8238    # does not break anything, and helps significantly (at the cost of a little
8239    # extra space).
8240    freebsd2.2*)
8241      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8242      hardcode_libdir_flag_spec='-R$libdir'
8243      hardcode_direct=yes
8244      hardcode_shlibpath_var=no
8245      ;;
8246
8247    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8248    freebsd2*)
8249      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8250      hardcode_direct=yes
8251      hardcode_minus_L=yes
8252      hardcode_shlibpath_var=no
8253      ;;
8254
8255    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8256    freebsd* | kfreebsd*-gnu | dragonfly*)
8257      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8258      hardcode_libdir_flag_spec='-R$libdir'
8259      hardcode_direct=yes
8260      hardcode_shlibpath_var=no
8261      ;;
8262
8263    hpux9*)
8264      if test "$GCC" = yes; then
8265	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'
8266      else
8267	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'
8268      fi
8269      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8270      hardcode_libdir_separator=:
8271      hardcode_direct=yes
8272
8273      # hardcode_minus_L: Not really in the search PATH,
8274      # but as the default location of the library.
8275      hardcode_minus_L=yes
8276      export_dynamic_flag_spec='${wl}-E'
8277      ;;
8278
8279    hpux10*)
8280      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8281	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8282      else
8283	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8284      fi
8285      if test "$with_gnu_ld" = no; then
8286	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8287	hardcode_libdir_separator=:
8288
8289	hardcode_direct=yes
8290	export_dynamic_flag_spec='${wl}-E'
8291
8292	# hardcode_minus_L: Not really in the search PATH,
8293	# but as the default location of the library.
8294	hardcode_minus_L=yes
8295      fi
8296      ;;
8297
8298    hpux11*)
8299      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8300	case $host_cpu in
8301	hppa*64*)
8302	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8303	  ;;
8304	ia64*)
8305	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8306	  ;;
8307	*)
8308	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8309	  ;;
8310	esac
8311      else
8312	case $host_cpu in
8313	hppa*64*)
8314	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8315	  ;;
8316	ia64*)
8317	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8318	  ;;
8319	*)
8320	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8321	  ;;
8322	esac
8323      fi
8324      if test "$with_gnu_ld" = no; then
8325	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8326	hardcode_libdir_separator=:
8327
8328	case $host_cpu in
8329	hppa*64*|ia64*)
8330	  hardcode_libdir_flag_spec_ld='+b $libdir'
8331	  hardcode_direct=no
8332	  hardcode_shlibpath_var=no
8333	  ;;
8334	*)
8335	  hardcode_direct=yes
8336	  export_dynamic_flag_spec='${wl}-E'
8337
8338	  # hardcode_minus_L: Not really in the search PATH,
8339	  # but as the default location of the library.
8340	  hardcode_minus_L=yes
8341	  ;;
8342	esac
8343      fi
8344      ;;
8345
8346    irix5* | irix6* | nonstopux*)
8347      if test "$GCC" = yes; then
8348	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'
8349      else
8350	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'
8351	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8352      fi
8353      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8354      hardcode_libdir_separator=:
8355      link_all_deplibs=yes
8356      ;;
8357
8358    netbsd*)
8359      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8360	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8361      else
8362	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8363      fi
8364      hardcode_libdir_flag_spec='-R$libdir'
8365      hardcode_direct=yes
8366      hardcode_shlibpath_var=no
8367      ;;
8368
8369    newsos6)
8370      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8371      hardcode_direct=yes
8372      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8373      hardcode_libdir_separator=:
8374      hardcode_shlibpath_var=no
8375      ;;
8376
8377    openbsd*)
8378      hardcode_direct=yes
8379      hardcode_shlibpath_var=no
8380      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8381	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8382	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8383	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8384	export_dynamic_flag_spec='${wl}-E'
8385      else
8386       case $host_os in
8387	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8388	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8389	   hardcode_libdir_flag_spec='-R$libdir'
8390	   ;;
8391	 *)
8392	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8393	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8394	   ;;
8395       esac
8396      fi
8397      ;;
8398
8399    os2*)
8400      hardcode_libdir_flag_spec='-L$libdir'
8401      hardcode_minus_L=yes
8402      allow_undefined_flag=unsupported
8403      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'
8404      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8405      ;;
8406
8407    osf3*)
8408      if test "$GCC" = yes; then
8409	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8410	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'
8411      else
8412	allow_undefined_flag=' -expect_unresolved \*'
8413	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'
8414      fi
8415      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8416      hardcode_libdir_separator=:
8417      ;;
8418
8419    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8420      if test "$GCC" = yes; then
8421	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8422	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'
8423	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8424      else
8425	allow_undefined_flag=' -expect_unresolved \*'
8426	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'
8427	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8428	$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'
8429
8430	# Both c and cxx compiler support -rpath directly
8431	hardcode_libdir_flag_spec='-rpath $libdir'
8432      fi
8433      hardcode_libdir_separator=:
8434      ;;
8435
8436    solaris*)
8437      no_undefined_flag=' -z text'
8438      if test "$GCC" = yes; then
8439	wlarc='${wl}'
8440	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8441	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8442	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8443      else
8444	wlarc=''
8445	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8446	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8447  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8448      fi
8449      hardcode_libdir_flag_spec='-R$libdir'
8450      hardcode_shlibpath_var=no
8451      case $host_os in
8452      solaris2.[0-5] | solaris2.[0-5].*) ;;
8453      *)
8454 	# The compiler driver will combine linker options so we
8455 	# cannot just pass the convience library names through
8456 	# without $wl, iff we do not link with $LD.
8457 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8458 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8459 	case $wlarc in
8460 	'')
8461 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8462 	*)
8463 	  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' ;;
8464 	esac ;;
8465      esac
8466      link_all_deplibs=yes
8467      ;;
8468
8469    sunos4*)
8470      if test "x$host_vendor" = xsequent; then
8471	# Use $CC to link under sequent, because it throws in some extra .o
8472	# files that make .init and .fini sections work.
8473	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8474      else
8475	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8476      fi
8477      hardcode_libdir_flag_spec='-L$libdir'
8478      hardcode_direct=yes
8479      hardcode_minus_L=yes
8480      hardcode_shlibpath_var=no
8481      ;;
8482
8483    sysv4)
8484      case $host_vendor in
8485	sni)
8486	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8487	  hardcode_direct=yes # is this really true???
8488	;;
8489	siemens)
8490	  ## LD is ld it makes a PLAMLIB
8491	  ## CC just makes a GrossModule.
8492	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8493	  reload_cmds='$CC -r -o $output$reload_objs'
8494	  hardcode_direct=no
8495        ;;
8496	motorola)
8497	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8498	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8499	;;
8500      esac
8501      runpath_var='LD_RUN_PATH'
8502      hardcode_shlibpath_var=no
8503      ;;
8504
8505    sysv4.3*)
8506      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8507      hardcode_shlibpath_var=no
8508      export_dynamic_flag_spec='-Bexport'
8509      ;;
8510
8511    sysv4*MP*)
8512      if test -d /usr/nec; then
8513	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8514	hardcode_shlibpath_var=no
8515	runpath_var=LD_RUN_PATH
8516	hardcode_runpath_var=yes
8517	ld_shlibs=yes
8518      fi
8519      ;;
8520
8521    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8522      no_undefined_flag='${wl}-z,text'
8523      archive_cmds_need_lc=no
8524      hardcode_shlibpath_var=no
8525      runpath_var='LD_RUN_PATH'
8526
8527      if test "$GCC" = yes; then
8528	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8529	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8530      else
8531	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8532	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8533      fi
8534      ;;
8535
8536    sysv5* | sco3.2v5* | sco5v6*)
8537      # Note: We can NOT use -z defs as we might desire, because we do not
8538      # link with -lc, and that would cause any symbols used from libc to
8539      # always be unresolved, which means just about no library would
8540      # ever link correctly.  If we're not using GNU ld we use -z text
8541      # though, which does catch some bad symbols but isn't as heavy-handed
8542      # as -z defs.
8543      no_undefined_flag='${wl}-z,text'
8544      allow_undefined_flag='${wl}-z,nodefs'
8545      archive_cmds_need_lc=no
8546      hardcode_shlibpath_var=no
8547      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8548      hardcode_libdir_separator=':'
8549      link_all_deplibs=yes
8550      export_dynamic_flag_spec='${wl}-Bexport'
8551      runpath_var='LD_RUN_PATH'
8552
8553      if test "$GCC" = yes; then
8554	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8555	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8556      else
8557	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8558	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8559      fi
8560      ;;
8561
8562    uts4*)
8563      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8564      hardcode_libdir_flag_spec='-L$libdir'
8565      hardcode_shlibpath_var=no
8566      ;;
8567
8568    *)
8569      ld_shlibs=no
8570      ;;
8571    esac
8572  fi
8573
8574{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8575echo "${ECHO_T}$ld_shlibs" >&6; }
8576test "$ld_shlibs" = no && can_build_shared=no
8577
8578#
8579# Do we need to explicitly link libc?
8580#
8581case "x$archive_cmds_need_lc" in
8582x|xyes)
8583  # Assume -lc should be added
8584  archive_cmds_need_lc=yes
8585
8586  if test "$enable_shared" = yes && test "$GCC" = yes; then
8587    case $archive_cmds in
8588    *'~'*)
8589      # FIXME: we may have to deal with multi-command sequences.
8590      ;;
8591    '$CC '*)
8592      # Test whether the compiler implicitly links with -lc since on some
8593      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8594      # to ld, don't add -lc before -lgcc.
8595      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8596echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8597      $rm conftest*
8598      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8599
8600      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8601  (eval $ac_compile) 2>&5
8602  ac_status=$?
8603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604  (exit $ac_status); } 2>conftest.err; then
8605        soname=conftest
8606        lib=conftest
8607        libobjs=conftest.$ac_objext
8608        deplibs=
8609        wl=$lt_prog_compiler_wl
8610	pic_flag=$lt_prog_compiler_pic
8611        compiler_flags=-v
8612        linker_flags=-v
8613        verstring=
8614        output_objdir=.
8615        libname=conftest
8616        lt_save_allow_undefined_flag=$allow_undefined_flag
8617        allow_undefined_flag=
8618        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8619  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8620  ac_status=$?
8621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622  (exit $ac_status); }
8623        then
8624	  archive_cmds_need_lc=no
8625        else
8626	  archive_cmds_need_lc=yes
8627        fi
8628        allow_undefined_flag=$lt_save_allow_undefined_flag
8629      else
8630        cat conftest.err 1>&5
8631      fi
8632      $rm conftest*
8633      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8634echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8635      ;;
8636    esac
8637  fi
8638  ;;
8639esac
8640
8641{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8642echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8643library_names_spec=
8644libname_spec='lib$name'
8645soname_spec=
8646shrext_cmds=".so"
8647postinstall_cmds=
8648postuninstall_cmds=
8649finish_cmds=
8650finish_eval=
8651shlibpath_var=
8652shlibpath_overrides_runpath=unknown
8653version_type=none
8654dynamic_linker="$host_os ld.so"
8655sys_lib_dlsearch_path_spec="/lib /usr/lib"
8656if test "$GCC" = yes; then
8657  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8658  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8659    # if the path contains ";" then we assume it to be the separator
8660    # otherwise default to the standard path separator (i.e. ":") - it is
8661    # assumed that no part of a normal pathname contains ";" but that should
8662    # okay in the real world where ";" in dirpaths is itself problematic.
8663    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8664  else
8665    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8666  fi
8667else
8668  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8669fi
8670need_lib_prefix=unknown
8671hardcode_into_libs=no
8672
8673# when you set need_version to no, make sure it does not cause -set_version
8674# flags to be left without arguments
8675need_version=unknown
8676
8677case $host_os in
8678aix3*)
8679  version_type=linux
8680  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8681  shlibpath_var=LIBPATH
8682
8683  # AIX 3 has no versioning support, so we append a major version to the name.
8684  soname_spec='${libname}${release}${shared_ext}$major'
8685  ;;
8686
8687aix4* | aix5*)
8688  version_type=linux
8689  need_lib_prefix=no
8690  need_version=no
8691  hardcode_into_libs=yes
8692  if test "$host_cpu" = ia64; then
8693    # AIX 5 supports IA64
8694    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8695    shlibpath_var=LD_LIBRARY_PATH
8696  else
8697    # With GCC up to 2.95.x, collect2 would create an import file
8698    # for dependence libraries.  The import file would start with
8699    # the line `#! .'.  This would cause the generated library to
8700    # depend on `.', always an invalid library.  This was fixed in
8701    # development snapshots of GCC prior to 3.0.
8702    case $host_os in
8703      aix4 | aix4.[01] | aix4.[01].*)
8704      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8705	   echo ' yes '
8706	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8707	:
8708      else
8709	can_build_shared=no
8710      fi
8711      ;;
8712    esac
8713    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8714    # soname into executable. Probably we can add versioning support to
8715    # collect2, so additional links can be useful in future.
8716    if test "$aix_use_runtimelinking" = yes; then
8717      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8718      # instead of lib<name>.a to let people know that these are not
8719      # typical AIX shared libraries.
8720      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8721    else
8722      # We preserve .a as extension for shared libraries through AIX4.2
8723      # and later when we are not doing run time linking.
8724      library_names_spec='${libname}${release}.a $libname.a'
8725      soname_spec='${libname}${release}${shared_ext}$major'
8726    fi
8727    shlibpath_var=LIBPATH
8728  fi
8729  ;;
8730
8731amigaos*)
8732  library_names_spec='$libname.ixlibrary $libname.a'
8733  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8734  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'
8735  ;;
8736
8737beos*)
8738  library_names_spec='${libname}${shared_ext}'
8739  dynamic_linker="$host_os ld.so"
8740  shlibpath_var=LIBRARY_PATH
8741  ;;
8742
8743bsdi[45]*)
8744  version_type=linux
8745  need_version=no
8746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8747  soname_spec='${libname}${release}${shared_ext}$major'
8748  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8749  shlibpath_var=LD_LIBRARY_PATH
8750  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8751  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8752  # the default ld.so.conf also contains /usr/contrib/lib and
8753  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8754  # libtool to hard-code these into programs
8755  ;;
8756
8757cygwin* | mingw* | pw32*)
8758  version_type=windows
8759  shrext_cmds=".dll"
8760  need_version=no
8761  need_lib_prefix=no
8762
8763  case $GCC,$host_os in
8764  yes,cygwin* | yes,mingw* | yes,pw32*)
8765    library_names_spec='$libname.dll.a'
8766    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8767    postinstall_cmds='base_file=`basename \${file}`~
8768      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8769      dldir=$destdir/`dirname \$dlpath`~
8770      test -d \$dldir || mkdir -p \$dldir~
8771      $install_prog $dir/$dlname \$dldir/$dlname~
8772      chmod a+x \$dldir/$dlname'
8773    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8774      dlpath=$dir/\$dldll~
8775       $rm \$dlpath'
8776    shlibpath_overrides_runpath=yes
8777
8778    case $host_os in
8779    cygwin*)
8780      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8781      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8782      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8783      ;;
8784    mingw*)
8785      # MinGW DLLs use traditional 'lib' prefix
8786      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8787      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8788      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8789        # It is most probably a Windows format PATH printed by
8790        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8791        # path with ; separators, and with drive letters. We can handle the
8792        # drive letters (cygwin fileutils understands them), so leave them,
8793        # especially as we might pass files found there to a mingw objdump,
8794        # which wouldn't understand a cygwinified path. Ahh.
8795        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8796      else
8797        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8798      fi
8799      ;;
8800    pw32*)
8801      # pw32 DLLs use 'pw' prefix rather than 'lib'
8802      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8803      ;;
8804    esac
8805    ;;
8806
8807  *)
8808    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8809    ;;
8810  esac
8811  dynamic_linker='Win32 ld.exe'
8812  # FIXME: first we should search . and the directory the executable is in
8813  shlibpath_var=PATH
8814  ;;
8815
8816darwin* | rhapsody*)
8817  dynamic_linker="$host_os dyld"
8818  version_type=darwin
8819  need_lib_prefix=no
8820  need_version=no
8821  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8822  soname_spec='${libname}${release}${major}$shared_ext'
8823  shlibpath_overrides_runpath=yes
8824  shlibpath_var=DYLD_LIBRARY_PATH
8825  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8826  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8827  if test "$GCC" = yes; then
8828    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"`
8829  else
8830    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8831  fi
8832  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8833  ;;
8834
8835dgux*)
8836  version_type=linux
8837  need_lib_prefix=no
8838  need_version=no
8839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8840  soname_spec='${libname}${release}${shared_ext}$major'
8841  shlibpath_var=LD_LIBRARY_PATH
8842  ;;
8843
8844freebsd1*)
8845  dynamic_linker=no
8846  ;;
8847
8848kfreebsd*-gnu)
8849  version_type=linux
8850  need_lib_prefix=no
8851  need_version=no
8852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8853  soname_spec='${libname}${release}${shared_ext}$major'
8854  shlibpath_var=LD_LIBRARY_PATH
8855  shlibpath_overrides_runpath=no
8856  hardcode_into_libs=yes
8857  dynamic_linker='GNU ld.so'
8858  ;;
8859
8860freebsd* | dragonfly*)
8861  # DragonFly does not have aout.  When/if they implement a new
8862  # versioning mechanism, adjust this.
8863  if test -x /usr/bin/objformat; then
8864    objformat=`/usr/bin/objformat`
8865  else
8866    case $host_os in
8867    freebsd[123]*) objformat=aout ;;
8868    *) objformat=elf ;;
8869    esac
8870  fi
8871  version_type=freebsd-$objformat
8872  case $version_type in
8873    freebsd-elf*)
8874      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8875      need_version=no
8876      need_lib_prefix=no
8877      ;;
8878    freebsd-*)
8879      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8880      need_version=yes
8881      ;;
8882  esac
8883  shlibpath_var=LD_LIBRARY_PATH
8884  case $host_os in
8885  freebsd2*)
8886    shlibpath_overrides_runpath=yes
8887    ;;
8888  freebsd3.[01]* | freebsdelf3.[01]*)
8889    shlibpath_overrides_runpath=yes
8890    hardcode_into_libs=yes
8891    ;;
8892  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8893  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8894    shlibpath_overrides_runpath=no
8895    hardcode_into_libs=yes
8896    ;;
8897  freebsd*) # from 4.6 on
8898    shlibpath_overrides_runpath=yes
8899    hardcode_into_libs=yes
8900    ;;
8901  esac
8902  ;;
8903
8904gnu*)
8905  version_type=linux
8906  need_lib_prefix=no
8907  need_version=no
8908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8909  soname_spec='${libname}${release}${shared_ext}$major'
8910  shlibpath_var=LD_LIBRARY_PATH
8911  hardcode_into_libs=yes
8912  ;;
8913
8914hpux9* | hpux10* | hpux11*)
8915  # Give a soname corresponding to the major version so that dld.sl refuses to
8916  # link against other versions.
8917  version_type=sunos
8918  need_lib_prefix=no
8919  need_version=no
8920  case $host_cpu in
8921  ia64*)
8922    shrext_cmds='.so'
8923    hardcode_into_libs=yes
8924    dynamic_linker="$host_os dld.so"
8925    shlibpath_var=LD_LIBRARY_PATH
8926    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8927    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8928    soname_spec='${libname}${release}${shared_ext}$major'
8929    if test "X$HPUX_IA64_MODE" = X32; then
8930      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8931    else
8932      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8933    fi
8934    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8935    ;;
8936   hppa*64*)
8937     shrext_cmds='.sl'
8938     hardcode_into_libs=yes
8939     dynamic_linker="$host_os dld.sl"
8940     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8941     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8942     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8943     soname_spec='${libname}${release}${shared_ext}$major'
8944     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8945     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8946     ;;
8947   *)
8948    shrext_cmds='.sl'
8949    dynamic_linker="$host_os dld.sl"
8950    shlibpath_var=SHLIB_PATH
8951    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8952    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953    soname_spec='${libname}${release}${shared_ext}$major'
8954    ;;
8955  esac
8956  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8957  postinstall_cmds='chmod 555 $lib'
8958  ;;
8959
8960interix3*)
8961  version_type=linux
8962  need_lib_prefix=no
8963  need_version=no
8964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8965  soname_spec='${libname}${release}${shared_ext}$major'
8966  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8967  shlibpath_var=LD_LIBRARY_PATH
8968  shlibpath_overrides_runpath=no
8969  hardcode_into_libs=yes
8970  ;;
8971
8972irix5* | irix6* | nonstopux*)
8973  case $host_os in
8974    nonstopux*) version_type=nonstopux ;;
8975    *)
8976	if test "$lt_cv_prog_gnu_ld" = yes; then
8977		version_type=linux
8978	else
8979		version_type=irix
8980	fi ;;
8981  esac
8982  need_lib_prefix=no
8983  need_version=no
8984  soname_spec='${libname}${release}${shared_ext}$major'
8985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8986  case $host_os in
8987  irix5* | nonstopux*)
8988    libsuff= shlibsuff=
8989    ;;
8990  *)
8991    case $LD in # libtool.m4 will add one of these switches to LD
8992    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8993      libsuff= shlibsuff= libmagic=32-bit;;
8994    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8995      libsuff=32 shlibsuff=N32 libmagic=N32;;
8996    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8997      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8998    *) libsuff= shlibsuff= libmagic=never-match;;
8999    esac
9000    ;;
9001  esac
9002  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9003  shlibpath_overrides_runpath=no
9004  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9005  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9006  hardcode_into_libs=yes
9007  ;;
9008
9009# No shared lib support for Linux oldld, aout, or coff.
9010linux*oldld* | linux*aout* | linux*coff*)
9011  dynamic_linker=no
9012  ;;
9013
9014# This must be Linux ELF.
9015linux*)
9016  version_type=linux
9017  need_lib_prefix=no
9018  need_version=no
9019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020  soname_spec='${libname}${release}${shared_ext}$major'
9021  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9022  shlibpath_var=LD_LIBRARY_PATH
9023  shlibpath_overrides_runpath=no
9024  # This implies no fast_install, which is unacceptable.
9025  # Some rework will be needed to allow for fast_install
9026  # before this can be enabled.
9027  hardcode_into_libs=yes
9028
9029  # find out which ABI we are using
9030  libsuff=
9031  case "$host_cpu" in
9032  x86_64*|s390x*|powerpc64*)
9033    echo '#line 9033 "configure"' > conftest.$ac_ext
9034    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9035  (eval $ac_compile) 2>&5
9036  ac_status=$?
9037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038  (exit $ac_status); }; then
9039      case `/usr/bin/file conftest.$ac_objext` in
9040      *64-bit*)
9041        libsuff=64
9042        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9043        ;;
9044      esac
9045    fi
9046    rm -rf conftest*
9047    ;;
9048  esac
9049
9050  # Append ld.so.conf contents to the search path
9051  if test -f /etc/ld.so.conf; then
9052    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9053    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9054  fi
9055
9056  # We used to test for /lib/ld.so.1 and disable shared libraries on
9057  # powerpc, because MkLinux only supported shared libraries with the
9058  # GNU dynamic linker.  Since this was broken with cross compilers,
9059  # most powerpc-linux boxes support dynamic linking these days and
9060  # people can always --disable-shared, the test was removed, and we
9061  # assume the GNU/Linux dynamic linker is in use.
9062  dynamic_linker='GNU/Linux ld.so'
9063  ;;
9064
9065knetbsd*-gnu)
9066  version_type=linux
9067  need_lib_prefix=no
9068  need_version=no
9069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9070  soname_spec='${libname}${release}${shared_ext}$major'
9071  shlibpath_var=LD_LIBRARY_PATH
9072  shlibpath_overrides_runpath=no
9073  hardcode_into_libs=yes
9074  dynamic_linker='GNU ld.so'
9075  ;;
9076
9077netbsd*)
9078  version_type=sunos
9079  need_lib_prefix=no
9080  need_version=no
9081  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9082    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9083    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9084    dynamic_linker='NetBSD (a.out) ld.so'
9085  else
9086    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9087    soname_spec='${libname}${release}${shared_ext}$major'
9088    dynamic_linker='NetBSD ld.elf_so'
9089  fi
9090  shlibpath_var=LD_LIBRARY_PATH
9091  shlibpath_overrides_runpath=yes
9092  hardcode_into_libs=yes
9093  ;;
9094
9095newsos6)
9096  version_type=linux
9097  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098  shlibpath_var=LD_LIBRARY_PATH
9099  shlibpath_overrides_runpath=yes
9100  ;;
9101
9102nto-qnx*)
9103  version_type=linux
9104  need_lib_prefix=no
9105  need_version=no
9106  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107  soname_spec='${libname}${release}${shared_ext}$major'
9108  shlibpath_var=LD_LIBRARY_PATH
9109  shlibpath_overrides_runpath=yes
9110  ;;
9111
9112openbsd*)
9113  version_type=sunos
9114  sys_lib_dlsearch_path_spec="/usr/lib"
9115  need_lib_prefix=no
9116  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9117  case $host_os in
9118    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9119    *)                         need_version=no  ;;
9120  esac
9121  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9122  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9123  shlibpath_var=LD_LIBRARY_PATH
9124  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9125    case $host_os in
9126      openbsd2.[89] | openbsd2.[89].*)
9127	shlibpath_overrides_runpath=no
9128	;;
9129      *)
9130	shlibpath_overrides_runpath=yes
9131	;;
9132      esac
9133  else
9134    shlibpath_overrides_runpath=yes
9135  fi
9136  ;;
9137
9138os2*)
9139  libname_spec='$name'
9140  shrext_cmds=".dll"
9141  need_lib_prefix=no
9142  library_names_spec='$libname${shared_ext} $libname.a'
9143  dynamic_linker='OS/2 ld.exe'
9144  shlibpath_var=LIBPATH
9145  ;;
9146
9147osf3* | osf4* | osf5*)
9148  version_type=osf
9149  need_lib_prefix=no
9150  need_version=no
9151  soname_spec='${libname}${release}${shared_ext}$major'
9152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153  shlibpath_var=LD_LIBRARY_PATH
9154  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9155  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9156  ;;
9157
9158solaris*)
9159  version_type=linux
9160  need_lib_prefix=no
9161  need_version=no
9162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9163  soname_spec='${libname}${release}${shared_ext}$major'
9164  shlibpath_var=LD_LIBRARY_PATH
9165  shlibpath_overrides_runpath=yes
9166  hardcode_into_libs=yes
9167  # ldd complains unless libraries are executable
9168  postinstall_cmds='chmod +x $lib'
9169  ;;
9170
9171sunos4*)
9172  version_type=sunos
9173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9174  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9175  shlibpath_var=LD_LIBRARY_PATH
9176  shlibpath_overrides_runpath=yes
9177  if test "$with_gnu_ld" = yes; then
9178    need_lib_prefix=no
9179  fi
9180  need_version=yes
9181  ;;
9182
9183sysv4 | sysv4.3*)
9184  version_type=linux
9185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186  soname_spec='${libname}${release}${shared_ext}$major'
9187  shlibpath_var=LD_LIBRARY_PATH
9188  case $host_vendor in
9189    sni)
9190      shlibpath_overrides_runpath=no
9191      need_lib_prefix=no
9192      export_dynamic_flag_spec='${wl}-Blargedynsym'
9193      runpath_var=LD_RUN_PATH
9194      ;;
9195    siemens)
9196      need_lib_prefix=no
9197      ;;
9198    motorola)
9199      need_lib_prefix=no
9200      need_version=no
9201      shlibpath_overrides_runpath=no
9202      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9203      ;;
9204  esac
9205  ;;
9206
9207sysv4*MP*)
9208  if test -d /usr/nec ;then
9209    version_type=linux
9210    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9211    soname_spec='$libname${shared_ext}.$major'
9212    shlibpath_var=LD_LIBRARY_PATH
9213  fi
9214  ;;
9215
9216sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9217  version_type=freebsd-elf
9218  need_lib_prefix=no
9219  need_version=no
9220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9221  soname_spec='${libname}${release}${shared_ext}$major'
9222  shlibpath_var=LD_LIBRARY_PATH
9223  hardcode_into_libs=yes
9224  if test "$with_gnu_ld" = yes; then
9225    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9226    shlibpath_overrides_runpath=no
9227  else
9228    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9229    shlibpath_overrides_runpath=yes
9230    case $host_os in
9231      sco3.2v5*)
9232        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9233	;;
9234    esac
9235  fi
9236  sys_lib_dlsearch_path_spec='/usr/lib'
9237  ;;
9238
9239uts4*)
9240  version_type=linux
9241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9242  soname_spec='${libname}${release}${shared_ext}$major'
9243  shlibpath_var=LD_LIBRARY_PATH
9244  ;;
9245
9246*)
9247  dynamic_linker=no
9248  ;;
9249esac
9250{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9251echo "${ECHO_T}$dynamic_linker" >&6; }
9252test "$dynamic_linker" = no && can_build_shared=no
9253
9254variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9255if test "$GCC" = yes; then
9256  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9257fi
9258
9259{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9260echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9261hardcode_action=
9262if test -n "$hardcode_libdir_flag_spec" || \
9263   test -n "$runpath_var" || \
9264   test "X$hardcode_automatic" = "Xyes" ; then
9265
9266  # We can hardcode non-existant directories.
9267  if test "$hardcode_direct" != no &&
9268     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9269     # have to relink, otherwise we might link with an installed library
9270     # when we should be linking with a yet-to-be-installed one
9271     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9272     test "$hardcode_minus_L" != no; then
9273    # Linking always hardcodes the temporary library directory.
9274    hardcode_action=relink
9275  else
9276    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9277    hardcode_action=immediate
9278  fi
9279else
9280  # We cannot hardcode anything, or else we can only hardcode existing
9281  # directories.
9282  hardcode_action=unsupported
9283fi
9284{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9285echo "${ECHO_T}$hardcode_action" >&6; }
9286
9287if test "$hardcode_action" = relink; then
9288  # Fast installation is not supported
9289  enable_fast_install=no
9290elif test "$shlibpath_overrides_runpath" = yes ||
9291     test "$enable_shared" = no; then
9292  # Fast installation is not necessary
9293  enable_fast_install=needless
9294fi
9295
9296striplib=
9297old_striplib=
9298{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9299echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9300if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9301  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9302  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9303  { echo "$as_me:$LINENO: result: yes" >&5
9304echo "${ECHO_T}yes" >&6; }
9305else
9306# FIXME - insert some real tests, host_os isn't really good enough
9307  case $host_os in
9308   darwin*)
9309       if test -n "$STRIP" ; then
9310         striplib="$STRIP -x"
9311         { echo "$as_me:$LINENO: result: yes" >&5
9312echo "${ECHO_T}yes" >&6; }
9313       else
9314  { echo "$as_me:$LINENO: result: no" >&5
9315echo "${ECHO_T}no" >&6; }
9316fi
9317       ;;
9318   *)
9319  { echo "$as_me:$LINENO: result: no" >&5
9320echo "${ECHO_T}no" >&6; }
9321    ;;
9322  esac
9323fi
9324
9325if test "x$enable_dlopen" != xyes; then
9326  enable_dlopen=unknown
9327  enable_dlopen_self=unknown
9328  enable_dlopen_self_static=unknown
9329else
9330  lt_cv_dlopen=no
9331  lt_cv_dlopen_libs=
9332
9333  case $host_os in
9334  beos*)
9335    lt_cv_dlopen="load_add_on"
9336    lt_cv_dlopen_libs=
9337    lt_cv_dlopen_self=yes
9338    ;;
9339
9340  mingw* | pw32*)
9341    lt_cv_dlopen="LoadLibrary"
9342    lt_cv_dlopen_libs=
9343   ;;
9344
9345  cygwin*)
9346    lt_cv_dlopen="dlopen"
9347    lt_cv_dlopen_libs=
9348   ;;
9349
9350  darwin*)
9351  # if libdl is installed we need to link against it
9352    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9353echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9354if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9355  echo $ECHO_N "(cached) $ECHO_C" >&6
9356else
9357  ac_check_lib_save_LIBS=$LIBS
9358LIBS="-ldl  $LIBS"
9359cat >conftest.$ac_ext <<_ACEOF
9360/* confdefs.h.  */
9361_ACEOF
9362cat confdefs.h >>conftest.$ac_ext
9363cat >>conftest.$ac_ext <<_ACEOF
9364/* end confdefs.h.  */
9365
9366/* Override any GCC internal prototype to avoid an error.
9367   Use char because int might match the return type of a GCC
9368   builtin and then its argument prototype would still apply.  */
9369#ifdef __cplusplus
9370extern "C"
9371#endif
9372char dlopen ();
9373int
9374main ()
9375{
9376return dlopen ();
9377  ;
9378  return 0;
9379}
9380_ACEOF
9381rm -f conftest.$ac_objext conftest$ac_exeext
9382if { (ac_try="$ac_link"
9383case "(($ac_try" in
9384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385  *) ac_try_echo=$ac_try;;
9386esac
9387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388  (eval "$ac_link") 2>conftest.er1
9389  ac_status=$?
9390  grep -v '^ *+' conftest.er1 >conftest.err
9391  rm -f conftest.er1
9392  cat conftest.err >&5
9393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394  (exit $ac_status); } && {
9395	 test -z "$ac_c_werror_flag" ||
9396	 test ! -s conftest.err
9397       } && test -s conftest$ac_exeext &&
9398       $as_test_x conftest$ac_exeext; then
9399  ac_cv_lib_dl_dlopen=yes
9400else
9401  echo "$as_me: failed program was:" >&5
9402sed 's/^/| /' conftest.$ac_ext >&5
9403
9404	ac_cv_lib_dl_dlopen=no
9405fi
9406
9407rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9408      conftest$ac_exeext conftest.$ac_ext
9409LIBS=$ac_check_lib_save_LIBS
9410fi
9411{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9412echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9413if test $ac_cv_lib_dl_dlopen = yes; then
9414  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9415else
9416
9417    lt_cv_dlopen="dyld"
9418    lt_cv_dlopen_libs=
9419    lt_cv_dlopen_self=yes
9420
9421fi
9422
9423   ;;
9424
9425  *)
9426    { echo "$as_me:$LINENO: checking for shl_load" >&5
9427echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9428if test "${ac_cv_func_shl_load+set}" = set; then
9429  echo $ECHO_N "(cached) $ECHO_C" >&6
9430else
9431  cat >conftest.$ac_ext <<_ACEOF
9432/* confdefs.h.  */
9433_ACEOF
9434cat confdefs.h >>conftest.$ac_ext
9435cat >>conftest.$ac_ext <<_ACEOF
9436/* end confdefs.h.  */
9437/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9438   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9439#define shl_load innocuous_shl_load
9440
9441/* System header to define __stub macros and hopefully few prototypes,
9442    which can conflict with char shl_load (); below.
9443    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9444    <limits.h> exists even on freestanding compilers.  */
9445
9446#ifdef __STDC__
9447# include <limits.h>
9448#else
9449# include <assert.h>
9450#endif
9451
9452#undef shl_load
9453
9454/* Override any GCC internal prototype to avoid an error.
9455   Use char because int might match the return type of a GCC
9456   builtin and then its argument prototype would still apply.  */
9457#ifdef __cplusplus
9458extern "C"
9459#endif
9460char shl_load ();
9461/* The GNU C library defines this for functions which it implements
9462    to always fail with ENOSYS.  Some functions are actually named
9463    something starting with __ and the normal name is an alias.  */
9464#if defined __stub_shl_load || defined __stub___shl_load
9465choke me
9466#endif
9467
9468int
9469main ()
9470{
9471return shl_load ();
9472  ;
9473  return 0;
9474}
9475_ACEOF
9476rm -f conftest.$ac_objext conftest$ac_exeext
9477if { (ac_try="$ac_link"
9478case "(($ac_try" in
9479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9480  *) ac_try_echo=$ac_try;;
9481esac
9482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9483  (eval "$ac_link") 2>conftest.er1
9484  ac_status=$?
9485  grep -v '^ *+' conftest.er1 >conftest.err
9486  rm -f conftest.er1
9487  cat conftest.err >&5
9488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489  (exit $ac_status); } && {
9490	 test -z "$ac_c_werror_flag" ||
9491	 test ! -s conftest.err
9492       } && test -s conftest$ac_exeext &&
9493       $as_test_x conftest$ac_exeext; then
9494  ac_cv_func_shl_load=yes
9495else
9496  echo "$as_me: failed program was:" >&5
9497sed 's/^/| /' conftest.$ac_ext >&5
9498
9499	ac_cv_func_shl_load=no
9500fi
9501
9502rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9503      conftest$ac_exeext conftest.$ac_ext
9504fi
9505{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9506echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9507if test $ac_cv_func_shl_load = yes; then
9508  lt_cv_dlopen="shl_load"
9509else
9510  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9511echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9512if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9513  echo $ECHO_N "(cached) $ECHO_C" >&6
9514else
9515  ac_check_lib_save_LIBS=$LIBS
9516LIBS="-ldld  $LIBS"
9517cat >conftest.$ac_ext <<_ACEOF
9518/* confdefs.h.  */
9519_ACEOF
9520cat confdefs.h >>conftest.$ac_ext
9521cat >>conftest.$ac_ext <<_ACEOF
9522/* end confdefs.h.  */
9523
9524/* Override any GCC internal prototype to avoid an error.
9525   Use char because int might match the return type of a GCC
9526   builtin and then its argument prototype would still apply.  */
9527#ifdef __cplusplus
9528extern "C"
9529#endif
9530char shl_load ();
9531int
9532main ()
9533{
9534return shl_load ();
9535  ;
9536  return 0;
9537}
9538_ACEOF
9539rm -f conftest.$ac_objext conftest$ac_exeext
9540if { (ac_try="$ac_link"
9541case "(($ac_try" in
9542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543  *) ac_try_echo=$ac_try;;
9544esac
9545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546  (eval "$ac_link") 2>conftest.er1
9547  ac_status=$?
9548  grep -v '^ *+' conftest.er1 >conftest.err
9549  rm -f conftest.er1
9550  cat conftest.err >&5
9551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552  (exit $ac_status); } && {
9553	 test -z "$ac_c_werror_flag" ||
9554	 test ! -s conftest.err
9555       } && test -s conftest$ac_exeext &&
9556       $as_test_x conftest$ac_exeext; then
9557  ac_cv_lib_dld_shl_load=yes
9558else
9559  echo "$as_me: failed program was:" >&5
9560sed 's/^/| /' conftest.$ac_ext >&5
9561
9562	ac_cv_lib_dld_shl_load=no
9563fi
9564
9565rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9566      conftest$ac_exeext conftest.$ac_ext
9567LIBS=$ac_check_lib_save_LIBS
9568fi
9569{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9570echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9571if test $ac_cv_lib_dld_shl_load = yes; then
9572  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9573else
9574  { echo "$as_me:$LINENO: checking for dlopen" >&5
9575echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9576if test "${ac_cv_func_dlopen+set}" = set; then
9577  echo $ECHO_N "(cached) $ECHO_C" >&6
9578else
9579  cat >conftest.$ac_ext <<_ACEOF
9580/* confdefs.h.  */
9581_ACEOF
9582cat confdefs.h >>conftest.$ac_ext
9583cat >>conftest.$ac_ext <<_ACEOF
9584/* end confdefs.h.  */
9585/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9586   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9587#define dlopen innocuous_dlopen
9588
9589/* System header to define __stub macros and hopefully few prototypes,
9590    which can conflict with char dlopen (); below.
9591    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9592    <limits.h> exists even on freestanding compilers.  */
9593
9594#ifdef __STDC__
9595# include <limits.h>
9596#else
9597# include <assert.h>
9598#endif
9599
9600#undef dlopen
9601
9602/* Override any GCC internal prototype to avoid an error.
9603   Use char because int might match the return type of a GCC
9604   builtin and then its argument prototype would still apply.  */
9605#ifdef __cplusplus
9606extern "C"
9607#endif
9608char dlopen ();
9609/* The GNU C library defines this for functions which it implements
9610    to always fail with ENOSYS.  Some functions are actually named
9611    something starting with __ and the normal name is an alias.  */
9612#if defined __stub_dlopen || defined __stub___dlopen
9613choke me
9614#endif
9615
9616int
9617main ()
9618{
9619return dlopen ();
9620  ;
9621  return 0;
9622}
9623_ACEOF
9624rm -f conftest.$ac_objext conftest$ac_exeext
9625if { (ac_try="$ac_link"
9626case "(($ac_try" in
9627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628  *) ac_try_echo=$ac_try;;
9629esac
9630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631  (eval "$ac_link") 2>conftest.er1
9632  ac_status=$?
9633  grep -v '^ *+' conftest.er1 >conftest.err
9634  rm -f conftest.er1
9635  cat conftest.err >&5
9636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637  (exit $ac_status); } && {
9638	 test -z "$ac_c_werror_flag" ||
9639	 test ! -s conftest.err
9640       } && test -s conftest$ac_exeext &&
9641       $as_test_x conftest$ac_exeext; then
9642  ac_cv_func_dlopen=yes
9643else
9644  echo "$as_me: failed program was:" >&5
9645sed 's/^/| /' conftest.$ac_ext >&5
9646
9647	ac_cv_func_dlopen=no
9648fi
9649
9650rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9651      conftest$ac_exeext conftest.$ac_ext
9652fi
9653{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9654echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9655if test $ac_cv_func_dlopen = yes; then
9656  lt_cv_dlopen="dlopen"
9657else
9658  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9659echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9660if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9661  echo $ECHO_N "(cached) $ECHO_C" >&6
9662else
9663  ac_check_lib_save_LIBS=$LIBS
9664LIBS="-ldl  $LIBS"
9665cat >conftest.$ac_ext <<_ACEOF
9666/* confdefs.h.  */
9667_ACEOF
9668cat confdefs.h >>conftest.$ac_ext
9669cat >>conftest.$ac_ext <<_ACEOF
9670/* end confdefs.h.  */
9671
9672/* Override any GCC internal prototype to avoid an error.
9673   Use char because int might match the return type of a GCC
9674   builtin and then its argument prototype would still apply.  */
9675#ifdef __cplusplus
9676extern "C"
9677#endif
9678char dlopen ();
9679int
9680main ()
9681{
9682return dlopen ();
9683  ;
9684  return 0;
9685}
9686_ACEOF
9687rm -f conftest.$ac_objext conftest$ac_exeext
9688if { (ac_try="$ac_link"
9689case "(($ac_try" in
9690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691  *) ac_try_echo=$ac_try;;
9692esac
9693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694  (eval "$ac_link") 2>conftest.er1
9695  ac_status=$?
9696  grep -v '^ *+' conftest.er1 >conftest.err
9697  rm -f conftest.er1
9698  cat conftest.err >&5
9699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700  (exit $ac_status); } && {
9701	 test -z "$ac_c_werror_flag" ||
9702	 test ! -s conftest.err
9703       } && test -s conftest$ac_exeext &&
9704       $as_test_x conftest$ac_exeext; then
9705  ac_cv_lib_dl_dlopen=yes
9706else
9707  echo "$as_me: failed program was:" >&5
9708sed 's/^/| /' conftest.$ac_ext >&5
9709
9710	ac_cv_lib_dl_dlopen=no
9711fi
9712
9713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9714      conftest$ac_exeext conftest.$ac_ext
9715LIBS=$ac_check_lib_save_LIBS
9716fi
9717{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9718echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9719if test $ac_cv_lib_dl_dlopen = yes; then
9720  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9721else
9722  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9723echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9724if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9725  echo $ECHO_N "(cached) $ECHO_C" >&6
9726else
9727  ac_check_lib_save_LIBS=$LIBS
9728LIBS="-lsvld  $LIBS"
9729cat >conftest.$ac_ext <<_ACEOF
9730/* confdefs.h.  */
9731_ACEOF
9732cat confdefs.h >>conftest.$ac_ext
9733cat >>conftest.$ac_ext <<_ACEOF
9734/* end confdefs.h.  */
9735
9736/* Override any GCC internal prototype to avoid an error.
9737   Use char because int might match the return type of a GCC
9738   builtin and then its argument prototype would still apply.  */
9739#ifdef __cplusplus
9740extern "C"
9741#endif
9742char dlopen ();
9743int
9744main ()
9745{
9746return dlopen ();
9747  ;
9748  return 0;
9749}
9750_ACEOF
9751rm -f conftest.$ac_objext conftest$ac_exeext
9752if { (ac_try="$ac_link"
9753case "(($ac_try" in
9754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755  *) ac_try_echo=$ac_try;;
9756esac
9757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758  (eval "$ac_link") 2>conftest.er1
9759  ac_status=$?
9760  grep -v '^ *+' conftest.er1 >conftest.err
9761  rm -f conftest.er1
9762  cat conftest.err >&5
9763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764  (exit $ac_status); } && {
9765	 test -z "$ac_c_werror_flag" ||
9766	 test ! -s conftest.err
9767       } && test -s conftest$ac_exeext &&
9768       $as_test_x conftest$ac_exeext; then
9769  ac_cv_lib_svld_dlopen=yes
9770else
9771  echo "$as_me: failed program was:" >&5
9772sed 's/^/| /' conftest.$ac_ext >&5
9773
9774	ac_cv_lib_svld_dlopen=no
9775fi
9776
9777rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9778      conftest$ac_exeext conftest.$ac_ext
9779LIBS=$ac_check_lib_save_LIBS
9780fi
9781{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9782echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9783if test $ac_cv_lib_svld_dlopen = yes; then
9784  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9785else
9786  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9787echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9788if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9789  echo $ECHO_N "(cached) $ECHO_C" >&6
9790else
9791  ac_check_lib_save_LIBS=$LIBS
9792LIBS="-ldld  $LIBS"
9793cat >conftest.$ac_ext <<_ACEOF
9794/* confdefs.h.  */
9795_ACEOF
9796cat confdefs.h >>conftest.$ac_ext
9797cat >>conftest.$ac_ext <<_ACEOF
9798/* end confdefs.h.  */
9799
9800/* Override any GCC internal prototype to avoid an error.
9801   Use char because int might match the return type of a GCC
9802   builtin and then its argument prototype would still apply.  */
9803#ifdef __cplusplus
9804extern "C"
9805#endif
9806char dld_link ();
9807int
9808main ()
9809{
9810return dld_link ();
9811  ;
9812  return 0;
9813}
9814_ACEOF
9815rm -f conftest.$ac_objext conftest$ac_exeext
9816if { (ac_try="$ac_link"
9817case "(($ac_try" in
9818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819  *) ac_try_echo=$ac_try;;
9820esac
9821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822  (eval "$ac_link") 2>conftest.er1
9823  ac_status=$?
9824  grep -v '^ *+' conftest.er1 >conftest.err
9825  rm -f conftest.er1
9826  cat conftest.err >&5
9827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828  (exit $ac_status); } && {
9829	 test -z "$ac_c_werror_flag" ||
9830	 test ! -s conftest.err
9831       } && test -s conftest$ac_exeext &&
9832       $as_test_x conftest$ac_exeext; then
9833  ac_cv_lib_dld_dld_link=yes
9834else
9835  echo "$as_me: failed program was:" >&5
9836sed 's/^/| /' conftest.$ac_ext >&5
9837
9838	ac_cv_lib_dld_dld_link=no
9839fi
9840
9841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9842      conftest$ac_exeext conftest.$ac_ext
9843LIBS=$ac_check_lib_save_LIBS
9844fi
9845{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9846echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9847if test $ac_cv_lib_dld_dld_link = yes; then
9848  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9849fi
9850
9851
9852fi
9853
9854
9855fi
9856
9857
9858fi
9859
9860
9861fi
9862
9863
9864fi
9865
9866    ;;
9867  esac
9868
9869  if test "x$lt_cv_dlopen" != xno; then
9870    enable_dlopen=yes
9871  else
9872    enable_dlopen=no
9873  fi
9874
9875  case $lt_cv_dlopen in
9876  dlopen)
9877    save_CPPFLAGS="$CPPFLAGS"
9878    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9879
9880    save_LDFLAGS="$LDFLAGS"
9881    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9882
9883    save_LIBS="$LIBS"
9884    LIBS="$lt_cv_dlopen_libs $LIBS"
9885
9886    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9887echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9888if test "${lt_cv_dlopen_self+set}" = set; then
9889  echo $ECHO_N "(cached) $ECHO_C" >&6
9890else
9891  	  if test "$cross_compiling" = yes; then :
9892  lt_cv_dlopen_self=cross
9893else
9894  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9895  lt_status=$lt_dlunknown
9896  cat > conftest.$ac_ext <<EOF
9897#line 9897 "configure"
9898#include "confdefs.h"
9899
9900#if HAVE_DLFCN_H
9901#include <dlfcn.h>
9902#endif
9903
9904#include <stdio.h>
9905
9906#ifdef RTLD_GLOBAL
9907#  define LT_DLGLOBAL		RTLD_GLOBAL
9908#else
9909#  ifdef DL_GLOBAL
9910#    define LT_DLGLOBAL		DL_GLOBAL
9911#  else
9912#    define LT_DLGLOBAL		0
9913#  endif
9914#endif
9915
9916/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9917   find out it does not work in some platform. */
9918#ifndef LT_DLLAZY_OR_NOW
9919#  ifdef RTLD_LAZY
9920#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9921#  else
9922#    ifdef DL_LAZY
9923#      define LT_DLLAZY_OR_NOW		DL_LAZY
9924#    else
9925#      ifdef RTLD_NOW
9926#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9927#      else
9928#        ifdef DL_NOW
9929#          define LT_DLLAZY_OR_NOW	DL_NOW
9930#        else
9931#          define LT_DLLAZY_OR_NOW	0
9932#        endif
9933#      endif
9934#    endif
9935#  endif
9936#endif
9937
9938#ifdef __cplusplus
9939extern "C" void exit (int);
9940#endif
9941
9942void fnord() { int i=42;}
9943int main ()
9944{
9945  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9946  int status = $lt_dlunknown;
9947
9948  if (self)
9949    {
9950      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9951      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9952      /* dlclose (self); */
9953    }
9954  else
9955    puts (dlerror ());
9956
9957    exit (status);
9958}
9959EOF
9960  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9961  (eval $ac_link) 2>&5
9962  ac_status=$?
9963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9965    (./conftest; exit; ) >&5 2>/dev/null
9966    lt_status=$?
9967    case x$lt_status in
9968      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9969      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9970      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9971    esac
9972  else :
9973    # compilation failed
9974    lt_cv_dlopen_self=no
9975  fi
9976fi
9977rm -fr conftest*
9978
9979
9980fi
9981{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9982echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9983
9984    if test "x$lt_cv_dlopen_self" = xyes; then
9985      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9986      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9987echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9988if test "${lt_cv_dlopen_self_static+set}" = set; then
9989  echo $ECHO_N "(cached) $ECHO_C" >&6
9990else
9991  	  if test "$cross_compiling" = yes; then :
9992  lt_cv_dlopen_self_static=cross
9993else
9994  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9995  lt_status=$lt_dlunknown
9996  cat > conftest.$ac_ext <<EOF
9997#line 9997 "configure"
9998#include "confdefs.h"
9999
10000#if HAVE_DLFCN_H
10001#include <dlfcn.h>
10002#endif
10003
10004#include <stdio.h>
10005
10006#ifdef RTLD_GLOBAL
10007#  define LT_DLGLOBAL		RTLD_GLOBAL
10008#else
10009#  ifdef DL_GLOBAL
10010#    define LT_DLGLOBAL		DL_GLOBAL
10011#  else
10012#    define LT_DLGLOBAL		0
10013#  endif
10014#endif
10015
10016/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10017   find out it does not work in some platform. */
10018#ifndef LT_DLLAZY_OR_NOW
10019#  ifdef RTLD_LAZY
10020#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10021#  else
10022#    ifdef DL_LAZY
10023#      define LT_DLLAZY_OR_NOW		DL_LAZY
10024#    else
10025#      ifdef RTLD_NOW
10026#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10027#      else
10028#        ifdef DL_NOW
10029#          define LT_DLLAZY_OR_NOW	DL_NOW
10030#        else
10031#          define LT_DLLAZY_OR_NOW	0
10032#        endif
10033#      endif
10034#    endif
10035#  endif
10036#endif
10037
10038#ifdef __cplusplus
10039extern "C" void exit (int);
10040#endif
10041
10042void fnord() { int i=42;}
10043int main ()
10044{
10045  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10046  int status = $lt_dlunknown;
10047
10048  if (self)
10049    {
10050      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10051      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10052      /* dlclose (self); */
10053    }
10054  else
10055    puts (dlerror ());
10056
10057    exit (status);
10058}
10059EOF
10060  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10061  (eval $ac_link) 2>&5
10062  ac_status=$?
10063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10065    (./conftest; exit; ) >&5 2>/dev/null
10066    lt_status=$?
10067    case x$lt_status in
10068      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10069      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10070      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10071    esac
10072  else :
10073    # compilation failed
10074    lt_cv_dlopen_self_static=no
10075  fi
10076fi
10077rm -fr conftest*
10078
10079
10080fi
10081{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10082echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10083    fi
10084
10085    CPPFLAGS="$save_CPPFLAGS"
10086    LDFLAGS="$save_LDFLAGS"
10087    LIBS="$save_LIBS"
10088    ;;
10089  esac
10090
10091  case $lt_cv_dlopen_self in
10092  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10093  *) enable_dlopen_self=unknown ;;
10094  esac
10095
10096  case $lt_cv_dlopen_self_static in
10097  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10098  *) enable_dlopen_self_static=unknown ;;
10099  esac
10100fi
10101
10102
10103# Report which library types will actually be built
10104{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10105echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10106{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10107echo "${ECHO_T}$can_build_shared" >&6; }
10108
10109{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10110echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10111test "$can_build_shared" = "no" && enable_shared=no
10112
10113# On AIX, shared libraries and static libraries use the same namespace, and
10114# are all built from PIC.
10115case $host_os in
10116aix3*)
10117  test "$enable_shared" = yes && enable_static=no
10118  if test -n "$RANLIB"; then
10119    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10120    postinstall_cmds='$RANLIB $lib'
10121  fi
10122  ;;
10123
10124aix4* | aix5*)
10125  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10126    test "$enable_shared" = yes && enable_static=no
10127  fi
10128    ;;
10129esac
10130{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10131echo "${ECHO_T}$enable_shared" >&6; }
10132
10133{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10134echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10135# Make sure either enable_shared or enable_static is yes.
10136test "$enable_shared" = yes || enable_static=yes
10137{ echo "$as_me:$LINENO: result: $enable_static" >&5
10138echo "${ECHO_T}$enable_static" >&6; }
10139
10140# The else clause should only fire when bootstrapping the
10141# libtool distribution, otherwise you forgot to ship ltmain.sh
10142# with your package, and you will get complaints that there are
10143# no rules to generate ltmain.sh.
10144if test -f "$ltmain"; then
10145  # See if we are running on zsh, and set the options which allow our commands through
10146  # without removal of \ escapes.
10147  if test -n "${ZSH_VERSION+set}" ; then
10148    setopt NO_GLOB_SUBST
10149  fi
10150  # Now quote all the things that may contain metacharacters while being
10151  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10152  # variables and quote the copies for generation of the libtool script.
10153  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10154    SED SHELL STRIP \
10155    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10156    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10157    deplibs_check_method reload_flag reload_cmds need_locks \
10158    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10159    lt_cv_sys_global_symbol_to_c_name_address \
10160    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10161    old_postinstall_cmds old_postuninstall_cmds \
10162    compiler \
10163    CC \
10164    LD \
10165    lt_prog_compiler_wl \
10166    lt_prog_compiler_pic \
10167    lt_prog_compiler_static \
10168    lt_prog_compiler_no_builtin_flag \
10169    export_dynamic_flag_spec \
10170    thread_safe_flag_spec \
10171    whole_archive_flag_spec \
10172    enable_shared_with_static_runtimes \
10173    old_archive_cmds \
10174    old_archive_from_new_cmds \
10175    predep_objects \
10176    postdep_objects \
10177    predeps \
10178    postdeps \
10179    compiler_lib_search_path \
10180    archive_cmds \
10181    archive_expsym_cmds \
10182    postinstall_cmds \
10183    postuninstall_cmds \
10184    old_archive_from_expsyms_cmds \
10185    allow_undefined_flag \
10186    no_undefined_flag \
10187    export_symbols_cmds \
10188    hardcode_libdir_flag_spec \
10189    hardcode_libdir_flag_spec_ld \
10190    hardcode_libdir_separator \
10191    hardcode_automatic \
10192    module_cmds \
10193    module_expsym_cmds \
10194    lt_cv_prog_compiler_c_o \
10195    exclude_expsyms \
10196    include_expsyms; do
10197
10198    case $var in
10199    old_archive_cmds | \
10200    old_archive_from_new_cmds | \
10201    archive_cmds | \
10202    archive_expsym_cmds | \
10203    module_cmds | \
10204    module_expsym_cmds | \
10205    old_archive_from_expsyms_cmds | \
10206    export_symbols_cmds | \
10207    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10208    postinstall_cmds | postuninstall_cmds | \
10209    old_postinstall_cmds | old_postuninstall_cmds | \
10210    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10211      # Double-quote double-evaled strings.
10212      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10213      ;;
10214    *)
10215      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10216      ;;
10217    esac
10218  done
10219
10220  case $lt_echo in
10221  *'\$0 --fallback-echo"')
10222    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10223    ;;
10224  esac
10225
10226cfgfile="${ofile}T"
10227  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10228  $rm -f "$cfgfile"
10229  { echo "$as_me:$LINENO: creating $ofile" >&5
10230echo "$as_me: creating $ofile" >&6;}
10231
10232  cat <<__EOF__ >> "$cfgfile"
10233#! $SHELL
10234
10235# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10236# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10237# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10238#
10239# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10240# Free Software Foundation, Inc.
10241#
10242# This file is part of GNU Libtool:
10243# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10244#
10245# This program is free software; you can redistribute it and/or modify
10246# it under the terms of the GNU General Public License as published by
10247# the Free Software Foundation; either version 2 of the License, or
10248# (at your option) any later version.
10249#
10250# This program is distributed in the hope that it will be useful, but
10251# WITHOUT ANY WARRANTY; without even the implied warranty of
10252# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10253# General Public License for more details.
10254#
10255# You should have received a copy of the GNU General Public License
10256# along with this program; if not, write to the Free Software
10257# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10258#
10259# As a special exception to the GNU General Public License, if you
10260# distribute this file as part of a program that contains a
10261# configuration script generated by Autoconf, you may include it under
10262# the same distribution terms that you use for the rest of that program.
10263
10264# A sed program that does not truncate output.
10265SED=$lt_SED
10266
10267# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10268Xsed="$SED -e 1s/^X//"
10269
10270# The HP-UX ksh and POSIX shell print the target directory to stdout
10271# if CDPATH is set.
10272(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10273
10274# The names of the tagged configurations supported by this script.
10275available_tags=
10276
10277# ### BEGIN LIBTOOL CONFIG
10278
10279# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10280
10281# Shell to use when invoking shell scripts.
10282SHELL=$lt_SHELL
10283
10284# Whether or not to build shared libraries.
10285build_libtool_libs=$enable_shared
10286
10287# Whether or not to build static libraries.
10288build_old_libs=$enable_static
10289
10290# Whether or not to add -lc for building shared libraries.
10291build_libtool_need_lc=$archive_cmds_need_lc
10292
10293# Whether or not to disallow shared libs when runtime libs are static
10294allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10295
10296# Whether or not to optimize for fast installation.
10297fast_install=$enable_fast_install
10298
10299# The host system.
10300host_alias=$host_alias
10301host=$host
10302host_os=$host_os
10303
10304# The build system.
10305build_alias=$build_alias
10306build=$build
10307build_os=$build_os
10308
10309# An echo program that does not interpret backslashes.
10310echo=$lt_echo
10311
10312# The archiver.
10313AR=$lt_AR
10314AR_FLAGS=$lt_AR_FLAGS
10315
10316# A C compiler.
10317LTCC=$lt_LTCC
10318
10319# LTCC compiler flags.
10320LTCFLAGS=$lt_LTCFLAGS
10321
10322# A language-specific compiler.
10323CC=$lt_compiler
10324
10325# Is the compiler the GNU C compiler?
10326with_gcc=$GCC
10327
10328gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10329gcc_ver=\`gcc -dumpversion\`
10330
10331# An ERE matcher.
10332EGREP=$lt_EGREP
10333
10334# The linker used to build libraries.
10335LD=$lt_LD
10336
10337# Whether we need hard or soft links.
10338LN_S=$lt_LN_S
10339
10340# A BSD-compatible nm program.
10341NM=$lt_NM
10342
10343# A symbol stripping program
10344STRIP=$lt_STRIP
10345
10346# Used to examine libraries when file_magic_cmd begins "file"
10347MAGIC_CMD=$MAGIC_CMD
10348
10349# Used on cygwin: DLL creation program.
10350DLLTOOL="$DLLTOOL"
10351
10352# Used on cygwin: object dumper.
10353OBJDUMP="$OBJDUMP"
10354
10355# Used on cygwin: assembler.
10356AS="$AS"
10357
10358# The name of the directory that contains temporary libtool files.
10359objdir=$objdir
10360
10361# How to create reloadable object files.
10362reload_flag=$lt_reload_flag
10363reload_cmds=$lt_reload_cmds
10364
10365# How to pass a linker flag through the compiler.
10366wl=$lt_lt_prog_compiler_wl
10367
10368# Object file suffix (normally "o").
10369objext="$ac_objext"
10370
10371# Old archive suffix (normally "a").
10372libext="$libext"
10373
10374# Shared library suffix (normally ".so").
10375shrext_cmds='$shrext_cmds'
10376
10377# Executable file suffix (normally "").
10378exeext="$exeext"
10379
10380# Additional compiler flags for building library objects.
10381pic_flag=$lt_lt_prog_compiler_pic
10382pic_mode=$pic_mode
10383
10384# What is the maximum length of a command?
10385max_cmd_len=$lt_cv_sys_max_cmd_len
10386
10387# Does compiler simultaneously support -c and -o options?
10388compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10389
10390# Must we lock files when doing compilation?
10391need_locks=$lt_need_locks
10392
10393# Do we need the lib prefix for modules?
10394need_lib_prefix=$need_lib_prefix
10395
10396# Do we need a version for libraries?
10397need_version=$need_version
10398
10399# Whether dlopen is supported.
10400dlopen_support=$enable_dlopen
10401
10402# Whether dlopen of programs is supported.
10403dlopen_self=$enable_dlopen_self
10404
10405# Whether dlopen of statically linked programs is supported.
10406dlopen_self_static=$enable_dlopen_self_static
10407
10408# Compiler flag to prevent dynamic linking.
10409link_static_flag=$lt_lt_prog_compiler_static
10410
10411# Compiler flag to turn off builtin functions.
10412no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10413
10414# Compiler flag to allow reflexive dlopens.
10415export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10416
10417# Compiler flag to generate shared objects directly from archives.
10418whole_archive_flag_spec=$lt_whole_archive_flag_spec
10419
10420# Compiler flag to generate thread-safe objects.
10421thread_safe_flag_spec=$lt_thread_safe_flag_spec
10422
10423# Library versioning type.
10424version_type=$version_type
10425
10426# Format of library name prefix.
10427libname_spec=$lt_libname_spec
10428
10429# List of archive names.  First name is the real one, the rest are links.
10430# The last name is the one that the linker finds with -lNAME.
10431library_names_spec=$lt_library_names_spec
10432
10433# The coded name of the library, if different from the real name.
10434soname_spec=$lt_soname_spec
10435
10436# Commands used to build and install an old-style archive.
10437RANLIB=$lt_RANLIB
10438old_archive_cmds=$lt_old_archive_cmds
10439old_postinstall_cmds=$lt_old_postinstall_cmds
10440old_postuninstall_cmds=$lt_old_postuninstall_cmds
10441
10442# Create an old-style archive from a shared archive.
10443old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10444
10445# Create a temporary old-style archive to link instead of a shared archive.
10446old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10447
10448# Commands used to build and install a shared archive.
10449archive_cmds=$lt_archive_cmds
10450archive_expsym_cmds=$lt_archive_expsym_cmds
10451postinstall_cmds=$lt_postinstall_cmds
10452postuninstall_cmds=$lt_postuninstall_cmds
10453
10454# Commands used to build a loadable module (assumed same as above if empty)
10455module_cmds=$lt_module_cmds
10456module_expsym_cmds=$lt_module_expsym_cmds
10457
10458# Commands to strip libraries.
10459old_striplib=$lt_old_striplib
10460striplib=$lt_striplib
10461
10462# Dependencies to place before the objects being linked to create a
10463# shared library.
10464predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10465
10466# Dependencies to place after the objects being linked to create a
10467# shared library.
10468postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10469
10470# Dependencies to place before the objects being linked to create a
10471# shared library.
10472predeps=$lt_predeps
10473
10474# Dependencies to place after the objects being linked to create a
10475# shared library.
10476postdeps=$lt_postdeps
10477
10478# The library search path used internally by the compiler when linking
10479# a shared library.
10480compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10481
10482# Method to check whether dependent libraries are shared objects.
10483deplibs_check_method=$lt_deplibs_check_method
10484
10485# Command to use when deplibs_check_method == file_magic.
10486file_magic_cmd=$lt_file_magic_cmd
10487
10488# Flag that allows shared libraries with undefined symbols to be built.
10489allow_undefined_flag=$lt_allow_undefined_flag
10490
10491# Flag that forces no undefined symbols.
10492no_undefined_flag=$lt_no_undefined_flag
10493
10494# Commands used to finish a libtool library installation in a directory.
10495finish_cmds=$lt_finish_cmds
10496
10497# Same as above, but a single script fragment to be evaled but not shown.
10498finish_eval=$lt_finish_eval
10499
10500# Take the output of nm and produce a listing of raw symbols and C names.
10501global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10502
10503# Transform the output of nm in a proper C declaration
10504global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10505
10506# Transform the output of nm in a C name address pair
10507global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10508
10509# This is the shared library runtime path variable.
10510runpath_var=$runpath_var
10511
10512# This is the shared library path variable.
10513shlibpath_var=$shlibpath_var
10514
10515# Is shlibpath searched before the hard-coded library search path?
10516shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10517
10518# How to hardcode a shared library path into an executable.
10519hardcode_action=$hardcode_action
10520
10521# Whether we should hardcode library paths into libraries.
10522hardcode_into_libs=$hardcode_into_libs
10523
10524# Flag to hardcode \$libdir into a binary during linking.
10525# This must work even if \$libdir does not exist.
10526hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10527
10528# If ld is used when linking, flag to hardcode \$libdir into
10529# a binary during linking. This must work even if \$libdir does
10530# not exist.
10531hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10532
10533# Whether we need a single -rpath flag with a separated argument.
10534hardcode_libdir_separator=$lt_hardcode_libdir_separator
10535
10536# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10537# resulting binary.
10538hardcode_direct=$hardcode_direct
10539
10540# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10541# resulting binary.
10542hardcode_minus_L=$hardcode_minus_L
10543
10544# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10545# the resulting binary.
10546hardcode_shlibpath_var=$hardcode_shlibpath_var
10547
10548# Set to yes if building a shared library automatically hardcodes DIR into the library
10549# and all subsequent libraries and executables linked against it.
10550hardcode_automatic=$hardcode_automatic
10551
10552# Variables whose values should be saved in libtool wrapper scripts and
10553# restored at relink time.
10554variables_saved_for_relink="$variables_saved_for_relink"
10555
10556# Whether libtool must link a program against all its dependency libraries.
10557link_all_deplibs=$link_all_deplibs
10558
10559# Compile-time system search path for libraries
10560sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10561
10562# Run-time system search path for libraries
10563sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10564
10565# Fix the shell variable \$srcfile for the compiler.
10566fix_srcfile_path="$fix_srcfile_path"
10567
10568# Set to yes if exported symbols are required.
10569always_export_symbols=$always_export_symbols
10570
10571# The commands to list exported symbols.
10572export_symbols_cmds=$lt_export_symbols_cmds
10573
10574# The commands to extract the exported symbol list from a shared archive.
10575extract_expsyms_cmds=$lt_extract_expsyms_cmds
10576
10577# Symbols that should not be listed in the preloaded symbols.
10578exclude_expsyms=$lt_exclude_expsyms
10579
10580# Symbols that must always be exported.
10581include_expsyms=$lt_include_expsyms
10582
10583# ### END LIBTOOL CONFIG
10584
10585__EOF__
10586
10587
10588  case $host_os in
10589  aix3*)
10590    cat <<\EOF >> "$cfgfile"
10591
10592# AIX sometimes has problems with the GCC collect2 program.  For some
10593# reason, if we set the COLLECT_NAMES environment variable, the problems
10594# vanish in a puff of smoke.
10595if test "X${COLLECT_NAMES+set}" != Xset; then
10596  COLLECT_NAMES=
10597  export COLLECT_NAMES
10598fi
10599EOF
10600    ;;
10601  esac
10602
10603  # We use sed instead of cat because bash on DJGPP gets confused if
10604  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10605  # text mode, it properly converts lines to CR/LF.  This bash problem
10606  # is reportedly fixed, but why not run on old versions too?
10607  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10608
10609  mv -f "$cfgfile" "$ofile" || \
10610    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10611  chmod +x "$ofile"
10612
10613else
10614  # If there is no Makefile yet, we rely on a make rule to execute
10615  # `config.status --recheck' to rerun these tests and create the
10616  # libtool script then.
10617  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10618  if test -f "$ltmain_in"; then
10619    test -f Makefile && make "$ltmain"
10620  fi
10621fi
10622
10623
10624ac_ext=c
10625ac_cpp='$CPP $CPPFLAGS'
10626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10628ac_compiler_gnu=$ac_cv_c_compiler_gnu
10629
10630CC="$lt_save_CC"
10631
10632
10633# Check whether --with-tags was given.
10634if test "${with_tags+set}" = set; then
10635  withval=$with_tags; tagnames="$withval"
10636fi
10637
10638
10639if test -f "$ltmain" && test -n "$tagnames"; then
10640  if test ! -f "${ofile}"; then
10641    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10642echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10643  fi
10644
10645  if test -z "$LTCC"; then
10646    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10647    if test -z "$LTCC"; then
10648      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10649echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10650    else
10651      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10652echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10653    fi
10654  fi
10655  if test -z "$LTCFLAGS"; then
10656    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10657  fi
10658
10659  # Extract list of available tagged configurations in $ofile.
10660  # Note that this assumes the entire list is on one line.
10661  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10662
10663  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10664  for tagname in $tagnames; do
10665    IFS="$lt_save_ifs"
10666    # Check whether tagname contains only valid characters
10667    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10668    "") ;;
10669    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10670echo "$as_me: error: invalid tag name: $tagname" >&2;}
10671   { (exit 1); exit 1; }; }
10672	;;
10673    esac
10674
10675    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10676    then
10677      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10678echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10679   { (exit 1); exit 1; }; }
10680    fi
10681
10682    # Update the list of available tags.
10683    if test -n "$tagname"; then
10684      echo appending configuration tag \"$tagname\" to $ofile
10685
10686      case $tagname in
10687      CXX)
10688	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10689	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10690	    (test "X$CXX" != "Xg++"))) ; then
10691	  ac_ext=cpp
10692ac_cpp='$CXXCPP $CPPFLAGS'
10693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10696
10697
10698
10699
10700archive_cmds_need_lc_CXX=no
10701allow_undefined_flag_CXX=
10702always_export_symbols_CXX=no
10703archive_expsym_cmds_CXX=
10704export_dynamic_flag_spec_CXX=
10705hardcode_direct_CXX=no
10706hardcode_libdir_flag_spec_CXX=
10707hardcode_libdir_flag_spec_ld_CXX=
10708hardcode_libdir_separator_CXX=
10709hardcode_minus_L_CXX=no
10710hardcode_shlibpath_var_CXX=unsupported
10711hardcode_automatic_CXX=no
10712module_cmds_CXX=
10713module_expsym_cmds_CXX=
10714link_all_deplibs_CXX=unknown
10715old_archive_cmds_CXX=$old_archive_cmds
10716no_undefined_flag_CXX=
10717whole_archive_flag_spec_CXX=
10718enable_shared_with_static_runtimes_CXX=no
10719
10720# Dependencies to place before and after the object being linked:
10721predep_objects_CXX=
10722postdep_objects_CXX=
10723predeps_CXX=
10724postdeps_CXX=
10725compiler_lib_search_path_CXX=
10726
10727# Source file extension for C++ test sources.
10728ac_ext=cpp
10729
10730# Object file extension for compiled C++ test sources.
10731objext=o
10732objext_CXX=$objext
10733
10734# Code to be used in simple compile tests
10735lt_simple_compile_test_code="int some_variable = 0;\n"
10736
10737# Code to be used in simple link tests
10738lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10739
10740# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10741
10742# If no C compiler was specified, use CC.
10743LTCC=${LTCC-"$CC"}
10744
10745# If no C compiler flags were specified, use CFLAGS.
10746LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10747
10748# Allow CC to be a program name with arguments.
10749compiler=$CC
10750
10751
10752# save warnings/boilerplate of simple test code
10753ac_outfile=conftest.$ac_objext
10754printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10755eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10756_lt_compiler_boilerplate=`cat conftest.err`
10757$rm conftest*
10758
10759ac_outfile=conftest.$ac_objext
10760printf "$lt_simple_link_test_code" >conftest.$ac_ext
10761eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10762_lt_linker_boilerplate=`cat conftest.err`
10763$rm conftest*
10764
10765
10766# Allow CC to be a program name with arguments.
10767lt_save_CC=$CC
10768lt_save_LD=$LD
10769lt_save_GCC=$GCC
10770GCC=$GXX
10771lt_save_with_gnu_ld=$with_gnu_ld
10772lt_save_path_LD=$lt_cv_path_LD
10773if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10774  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10775else
10776  $as_unset lt_cv_prog_gnu_ld
10777fi
10778if test -n "${lt_cv_path_LDCXX+set}"; then
10779  lt_cv_path_LD=$lt_cv_path_LDCXX
10780else
10781  $as_unset lt_cv_path_LD
10782fi
10783test -z "${LDCXX+set}" || LD=$LDCXX
10784CC=${CXX-"c++"}
10785compiler=$CC
10786compiler_CXX=$CC
10787for cc_temp in $compiler""; do
10788  case $cc_temp in
10789    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10790    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10791    \-*) ;;
10792    *) break;;
10793  esac
10794done
10795cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10796
10797
10798# We don't want -fno-exception wen compiling C++ code, so set the
10799# no_builtin_flag separately
10800if test "$GXX" = yes; then
10801  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10802else
10803  lt_prog_compiler_no_builtin_flag_CXX=
10804fi
10805
10806if test "$GXX" = yes; then
10807  # Set up default GNU C++ configuration
10808
10809
10810# Check whether --with-gnu-ld was given.
10811if test "${with_gnu_ld+set}" = set; then
10812  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10813else
10814  with_gnu_ld=no
10815fi
10816
10817ac_prog=ld
10818if test "$GCC" = yes; then
10819  # Check if gcc -print-prog-name=ld gives a path.
10820  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10821echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10822  case $host in
10823  *-*-mingw*)
10824    # gcc leaves a trailing carriage return which upsets mingw
10825    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10826  *)
10827    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10828  esac
10829  case $ac_prog in
10830    # Accept absolute paths.
10831    [\\/]* | ?:[\\/]*)
10832      re_direlt='/[^/][^/]*/\.\./'
10833      # Canonicalize the pathname of ld
10834      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10835      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10836	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10837      done
10838      test -z "$LD" && LD="$ac_prog"
10839      ;;
10840  "")
10841    # If it fails, then pretend we aren't using GCC.
10842    ac_prog=ld
10843    ;;
10844  *)
10845    # If it is relative, then search for the first ld in PATH.
10846    with_gnu_ld=unknown
10847    ;;
10848  esac
10849elif test "$with_gnu_ld" = yes; then
10850  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10851echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10852else
10853  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10854echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10855fi
10856if test "${lt_cv_path_LD+set}" = set; then
10857  echo $ECHO_N "(cached) $ECHO_C" >&6
10858else
10859  if test -z "$LD"; then
10860  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10861  for ac_dir in $PATH; do
10862    IFS="$lt_save_ifs"
10863    test -z "$ac_dir" && ac_dir=.
10864    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10865      lt_cv_path_LD="$ac_dir/$ac_prog"
10866      # Check to see if the program is GNU ld.  I'd rather use --version,
10867      # but apparently some variants of GNU ld only accept -v.
10868      # Break only if it was the GNU/non-GNU ld that we prefer.
10869      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10870      *GNU* | *'with BFD'*)
10871	test "$with_gnu_ld" != no && break
10872	;;
10873      *)
10874	test "$with_gnu_ld" != yes && break
10875	;;
10876      esac
10877    fi
10878  done
10879  IFS="$lt_save_ifs"
10880else
10881  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10882fi
10883fi
10884
10885LD="$lt_cv_path_LD"
10886if test -n "$LD"; then
10887  { echo "$as_me:$LINENO: result: $LD" >&5
10888echo "${ECHO_T}$LD" >&6; }
10889else
10890  { echo "$as_me:$LINENO: result: no" >&5
10891echo "${ECHO_T}no" >&6; }
10892fi
10893test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10894echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10895   { (exit 1); exit 1; }; }
10896{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10897echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10898if test "${lt_cv_prog_gnu_ld+set}" = set; then
10899  echo $ECHO_N "(cached) $ECHO_C" >&6
10900else
10901  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10902case `$LD -v 2>&1 </dev/null` in
10903*GNU* | *'with BFD'*)
10904  lt_cv_prog_gnu_ld=yes
10905  ;;
10906*)
10907  lt_cv_prog_gnu_ld=no
10908  ;;
10909esac
10910fi
10911{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10912echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10913with_gnu_ld=$lt_cv_prog_gnu_ld
10914
10915
10916
10917  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10918  # archiving commands below assume that GNU ld is being used.
10919  if test "$with_gnu_ld" = yes; then
10920    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10921    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10922
10923    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10924    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10925
10926    # If archive_cmds runs LD, not CC, wlarc should be empty
10927    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10928    #     investigate it a little bit more. (MM)
10929    wlarc='${wl}'
10930
10931    # ancient GNU ld didn't support --whole-archive et. al.
10932    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10933	grep 'no-whole-archive' > /dev/null; then
10934      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10935    else
10936      whole_archive_flag_spec_CXX=
10937    fi
10938  else
10939    with_gnu_ld=no
10940    wlarc=
10941
10942    # A generic and very simple default shared library creation
10943    # command for GNU C++ for the case where it uses the native
10944    # linker, instead of GNU ld.  If possible, this setting should
10945    # overridden to take advantage of the native linker features on
10946    # the platform it is being used on.
10947    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10948  fi
10949
10950  # Commands to make compiler produce verbose output that lists
10951  # what "hidden" libraries, object files and flags are used when
10952  # linking a shared library.
10953  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10954
10955else
10956  GXX=no
10957  with_gnu_ld=no
10958  wlarc=
10959fi
10960
10961# PORTME: fill in a description of your system's C++ link characteristics
10962{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10963echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10964ld_shlibs_CXX=yes
10965case $host_os in
10966  aix3*)
10967    # FIXME: insert proper C++ library support
10968    ld_shlibs_CXX=no
10969    ;;
10970  aix4* | aix5*)
10971    if test "$host_cpu" = ia64; then
10972      # On IA64, the linker does run time linking by default, so we don't
10973      # have to do anything special.
10974      aix_use_runtimelinking=no
10975      exp_sym_flag='-Bexport'
10976      no_entry_flag=""
10977    else
10978      aix_use_runtimelinking=no
10979
10980      # Test if we are trying to use run time linking or normal
10981      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10982      # need to do runtime linking.
10983      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10984	for ld_flag in $LDFLAGS; do
10985	  case $ld_flag in
10986	  *-brtl*)
10987	    aix_use_runtimelinking=yes
10988	    break
10989	    ;;
10990	  esac
10991	done
10992	;;
10993      esac
10994
10995      exp_sym_flag='-bexport'
10996      no_entry_flag='-bnoentry'
10997    fi
10998
10999    # When large executables or shared objects are built, AIX ld can
11000    # have problems creating the table of contents.  If linking a library
11001    # or program results in "error TOC overflow" add -mminimal-toc to
11002    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11003    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11004
11005    archive_cmds_CXX=''
11006    hardcode_direct_CXX=yes
11007    hardcode_libdir_separator_CXX=':'
11008    link_all_deplibs_CXX=yes
11009
11010    if test "$GXX" = yes; then
11011      case $host_os in aix4.[012]|aix4.[012].*)
11012      # We only want to do this on AIX 4.2 and lower, the check
11013      # below for broken collect2 doesn't work under 4.3+
11014	collect2name=`${CC} -print-prog-name=collect2`
11015	if test -f "$collect2name" && \
11016	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11017	then
11018	  # We have reworked collect2
11019	  hardcode_direct_CXX=yes
11020	else
11021	  # We have old collect2
11022	  hardcode_direct_CXX=unsupported
11023	  # It fails to find uninstalled libraries when the uninstalled
11024	  # path is not listed in the libpath.  Setting hardcode_minus_L
11025	  # to unsupported forces relinking
11026	  hardcode_minus_L_CXX=yes
11027	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11028	  hardcode_libdir_separator_CXX=
11029	fi
11030	;;
11031      esac
11032      shared_flag='-shared'
11033      if test "$aix_use_runtimelinking" = yes; then
11034	shared_flag="$shared_flag "'${wl}-G'
11035      fi
11036    else
11037      # not using gcc
11038      if test "$host_cpu" = ia64; then
11039	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11040	# chokes on -Wl,-G. The following line is correct:
11041	shared_flag='-G'
11042      else
11043	if test "$aix_use_runtimelinking" = yes; then
11044	  shared_flag='${wl}-G'
11045	else
11046	  shared_flag='${wl}-bM:SRE'
11047	fi
11048      fi
11049    fi
11050
11051    # It seems that -bexpall does not export symbols beginning with
11052    # underscore (_), so it is better to generate a list of symbols to export.
11053    always_export_symbols_CXX=yes
11054    if test "$aix_use_runtimelinking" = yes; then
11055      # Warning - without using the other runtime loading flags (-brtl),
11056      # -berok will link without error, but may produce a broken library.
11057      allow_undefined_flag_CXX='-berok'
11058      # Determine the default libpath from the value encoded in an empty executable.
11059      cat >conftest.$ac_ext <<_ACEOF
11060/* confdefs.h.  */
11061_ACEOF
11062cat confdefs.h >>conftest.$ac_ext
11063cat >>conftest.$ac_ext <<_ACEOF
11064/* end confdefs.h.  */
11065
11066int
11067main ()
11068{
11069
11070  ;
11071  return 0;
11072}
11073_ACEOF
11074rm -f conftest.$ac_objext conftest$ac_exeext
11075if { (ac_try="$ac_link"
11076case "(($ac_try" in
11077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078  *) ac_try_echo=$ac_try;;
11079esac
11080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081  (eval "$ac_link") 2>conftest.er1
11082  ac_status=$?
11083  grep -v '^ *+' conftest.er1 >conftest.err
11084  rm -f conftest.er1
11085  cat conftest.err >&5
11086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087  (exit $ac_status); } && {
11088	 test -z "$ac_cxx_werror_flag" ||
11089	 test ! -s conftest.err
11090       } && test -s conftest$ac_exeext &&
11091       $as_test_x conftest$ac_exeext; then
11092
11093aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11094}'`
11095# Check for a 64-bit object if we didn't find anything.
11096if 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; }
11097}'`; fi
11098else
11099  echo "$as_me: failed program was:" >&5
11100sed 's/^/| /' conftest.$ac_ext >&5
11101
11102
11103fi
11104
11105rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11106      conftest$ac_exeext conftest.$ac_ext
11107if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11108
11109      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11110
11111      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11112     else
11113      if test "$host_cpu" = ia64; then
11114	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11115	allow_undefined_flag_CXX="-z nodefs"
11116	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11117      else
11118	# Determine the default libpath from the value encoded in an empty executable.
11119	cat >conftest.$ac_ext <<_ACEOF
11120/* confdefs.h.  */
11121_ACEOF
11122cat confdefs.h >>conftest.$ac_ext
11123cat >>conftest.$ac_ext <<_ACEOF
11124/* end confdefs.h.  */
11125
11126int
11127main ()
11128{
11129
11130  ;
11131  return 0;
11132}
11133_ACEOF
11134rm -f conftest.$ac_objext conftest$ac_exeext
11135if { (ac_try="$ac_link"
11136case "(($ac_try" in
11137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138  *) ac_try_echo=$ac_try;;
11139esac
11140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141  (eval "$ac_link") 2>conftest.er1
11142  ac_status=$?
11143  grep -v '^ *+' conftest.er1 >conftest.err
11144  rm -f conftest.er1
11145  cat conftest.err >&5
11146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147  (exit $ac_status); } && {
11148	 test -z "$ac_cxx_werror_flag" ||
11149	 test ! -s conftest.err
11150       } && test -s conftest$ac_exeext &&
11151       $as_test_x conftest$ac_exeext; then
11152
11153aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11154}'`
11155# Check for a 64-bit object if we didn't find anything.
11156if 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; }
11157}'`; fi
11158else
11159  echo "$as_me: failed program was:" >&5
11160sed 's/^/| /' conftest.$ac_ext >&5
11161
11162
11163fi
11164
11165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11166      conftest$ac_exeext conftest.$ac_ext
11167if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11168
11169	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11170	# Warning - without using the other run time loading flags,
11171	# -berok will link without error, but may produce a broken library.
11172	no_undefined_flag_CXX=' ${wl}-bernotok'
11173	allow_undefined_flag_CXX=' ${wl}-berok'
11174	# Exported symbols can be pulled into shared objects from archives
11175	whole_archive_flag_spec_CXX='$convenience'
11176	archive_cmds_need_lc_CXX=yes
11177	# This is similar to how AIX traditionally builds its shared libraries.
11178	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11179      fi
11180    fi
11181    ;;
11182
11183  beos*)
11184    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11185      allow_undefined_flag_CXX=unsupported
11186      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11187      # support --undefined.  This deserves some investigation.  FIXME
11188      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11189    else
11190      ld_shlibs_CXX=no
11191    fi
11192    ;;
11193
11194  chorus*)
11195    case $cc_basename in
11196      *)
11197	# FIXME: insert proper C++ library support
11198	ld_shlibs_CXX=no
11199	;;
11200    esac
11201    ;;
11202
11203  cygwin* | mingw* | pw32*)
11204    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11205    # as there is no search path for DLLs.
11206    hardcode_libdir_flag_spec_CXX='-L$libdir'
11207    allow_undefined_flag_CXX=unsupported
11208    always_export_symbols_CXX=no
11209    enable_shared_with_static_runtimes_CXX=yes
11210
11211    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11212      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11213      # If the export-symbols file already is a .def file (1st line
11214      # is EXPORTS), use it as is; otherwise, prepend...
11215      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11216	cp $export_symbols $output_objdir/$soname.def;
11217      else
11218	echo EXPORTS > $output_objdir/$soname.def;
11219	cat $export_symbols >> $output_objdir/$soname.def;
11220      fi~
11221      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11222    else
11223      ld_shlibs_CXX=no
11224    fi
11225  ;;
11226      darwin* | rhapsody*)
11227        case $host_os in
11228        rhapsody* | darwin1.[012])
11229         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11230         ;;
11231       *) # Darwin 1.3 on
11232         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11233           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11234         else
11235           case ${MACOSX_DEPLOYMENT_TARGET} in
11236             10.[012])
11237               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11238               ;;
11239             10.*)
11240               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11241               ;;
11242           esac
11243         fi
11244         ;;
11245        esac
11246      archive_cmds_need_lc_CXX=no
11247      hardcode_direct_CXX=no
11248      hardcode_automatic_CXX=yes
11249      hardcode_shlibpath_var_CXX=unsupported
11250      whole_archive_flag_spec_CXX=''
11251      link_all_deplibs_CXX=yes
11252
11253    if test "$GXX" = yes ; then
11254      lt_int_apple_cc_single_mod=no
11255      output_verbose_link_cmd='echo'
11256      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11257       lt_int_apple_cc_single_mod=yes
11258      fi
11259      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11260       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11261      else
11262          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11263        fi
11264        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11265        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11266          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11267            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11268          else
11269            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11270          fi
11271            module_expsym_cmds_CXX='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}'
11272      else
11273      case $cc_basename in
11274        xlc*)
11275         output_verbose_link_cmd='echo'
11276          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11277          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11278          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11279          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11280          module_expsym_cmds_CXX='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}'
11281          ;;
11282       *)
11283         ld_shlibs_CXX=no
11284          ;;
11285      esac
11286      fi
11287        ;;
11288
11289  dgux*)
11290    case $cc_basename in
11291      ec++*)
11292	# FIXME: insert proper C++ library support
11293	ld_shlibs_CXX=no
11294	;;
11295      ghcx*)
11296	# Green Hills C++ Compiler
11297	# FIXME: insert proper C++ library support
11298	ld_shlibs_CXX=no
11299	;;
11300      *)
11301	# FIXME: insert proper C++ library support
11302	ld_shlibs_CXX=no
11303	;;
11304    esac
11305    ;;
11306  freebsd[12]*)
11307    # C++ shared libraries reported to be fairly broken before switch to ELF
11308    ld_shlibs_CXX=no
11309    ;;
11310  freebsd-elf*)
11311    archive_cmds_need_lc_CXX=no
11312    ;;
11313  freebsd* | kfreebsd*-gnu | dragonfly*)
11314    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11315    # conventions
11316    ld_shlibs_CXX=yes
11317    ;;
11318  gnu*)
11319    ;;
11320  hpux9*)
11321    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11322    hardcode_libdir_separator_CXX=:
11323    export_dynamic_flag_spec_CXX='${wl}-E'
11324    hardcode_direct_CXX=yes
11325    hardcode_minus_L_CXX=yes # Not in the search PATH,
11326				# but as the default
11327				# location of the library.
11328
11329    case $cc_basename in
11330    CC*)
11331      # FIXME: insert proper C++ library support
11332      ld_shlibs_CXX=no
11333      ;;
11334    aCC*)
11335      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11336      # Commands to make compiler produce verbose output that lists
11337      # what "hidden" libraries, object files and flags are used when
11338      # linking a shared library.
11339      #
11340      # There doesn't appear to be a way to prevent this compiler from
11341      # explicitly linking system object files so we need to strip them
11342      # from the output so that they don't get included in the library
11343      # dependencies.
11344      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11345      ;;
11346    *)
11347      if test "$GXX" = yes; then
11348        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11349      else
11350        # FIXME: insert proper C++ library support
11351        ld_shlibs_CXX=no
11352      fi
11353      ;;
11354    esac
11355    ;;
11356  hpux10*|hpux11*)
11357    if test $with_gnu_ld = no; then
11358      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11359      hardcode_libdir_separator_CXX=:
11360
11361      case $host_cpu in
11362      hppa*64*|ia64*)
11363	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11364        ;;
11365      *)
11366	export_dynamic_flag_spec_CXX='${wl}-E'
11367        ;;
11368      esac
11369    fi
11370    case $host_cpu in
11371    hppa*64*|ia64*)
11372      hardcode_direct_CXX=no
11373      hardcode_shlibpath_var_CXX=no
11374      ;;
11375    *)
11376      hardcode_direct_CXX=yes
11377      hardcode_minus_L_CXX=yes # Not in the search PATH,
11378					      # but as the default
11379					      # location of the library.
11380      ;;
11381    esac
11382
11383    case $cc_basename in
11384      CC*)
11385	# FIXME: insert proper C++ library support
11386	ld_shlibs_CXX=no
11387	;;
11388      aCC*)
11389	case $host_cpu in
11390	hppa*64*)
11391	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11392	  ;;
11393	ia64*)
11394	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11395	  ;;
11396	*)
11397	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11398	  ;;
11399	esac
11400	# Commands to make compiler produce verbose output that lists
11401	# what "hidden" libraries, object files and flags are used when
11402	# linking a shared library.
11403	#
11404	# There doesn't appear to be a way to prevent this compiler from
11405	# explicitly linking system object files so we need to strip them
11406	# from the output so that they don't get included in the library
11407	# dependencies.
11408	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11409	;;
11410      *)
11411	if test "$GXX" = yes; then
11412	  if test $with_gnu_ld = no; then
11413	    case $host_cpu in
11414	    hppa*64*)
11415	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11416	      ;;
11417	    ia64*)
11418	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11419	      ;;
11420	    *)
11421	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11422	      ;;
11423	    esac
11424	  fi
11425	else
11426	  # FIXME: insert proper C++ library support
11427	  ld_shlibs_CXX=no
11428	fi
11429	;;
11430    esac
11431    ;;
11432  interix3*)
11433    hardcode_direct_CXX=no
11434    hardcode_shlibpath_var_CXX=no
11435    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11436    export_dynamic_flag_spec_CXX='${wl}-E'
11437    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11438    # Instead, shared libraries are loaded at an image base (0x10000000 by
11439    # default) and relocated if they conflict, which is a slow very memory
11440    # consuming and fragmenting process.  To avoid this, we pick a random,
11441    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11442    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11443    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11444    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11445    ;;
11446  irix5* | irix6*)
11447    case $cc_basename in
11448      CC*)
11449	# SGI C++
11450	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11451
11452	# Archives containing C++ object files must be created using
11453	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11454	# necessary to make sure instantiated templates are included
11455	# in the archive.
11456	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11457	;;
11458      *)
11459	if test "$GXX" = yes; then
11460	  if test "$with_gnu_ld" = no; then
11461	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
11462	  else
11463	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11464	  fi
11465	fi
11466	link_all_deplibs_CXX=yes
11467	;;
11468    esac
11469    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11470    hardcode_libdir_separator_CXX=:
11471    ;;
11472  linux*)
11473    case $cc_basename in
11474      KCC*)
11475	# Kuck and Associates, Inc. (KAI) C++ Compiler
11476
11477	# KCC will only create a shared library if the output file
11478	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11479	# to its proper name (with version) after linking.
11480	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11481	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11482	# Commands to make compiler produce verbose output that lists
11483	# what "hidden" libraries, object files and flags are used when
11484	# linking a shared library.
11485	#
11486	# There doesn't appear to be a way to prevent this compiler from
11487	# explicitly linking system object files so we need to strip them
11488	# from the output so that they don't get included in the library
11489	# dependencies.
11490	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11491
11492	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11493	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11494
11495	# Archives containing C++ object files must be created using
11496	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11497	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11498	;;
11499      icpc*)
11500	# Intel C++
11501	with_gnu_ld=yes
11502	# version 8.0 and above of icpc choke on multiply defined symbols
11503	# if we add $predep_objects and $postdep_objects, however 7.1 and
11504	# earlier do not add the objects themselves.
11505	case `$CC -V 2>&1` in
11506	*"Version 7."*)
11507  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11508  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11509	  ;;
11510	*)  # Version 8.0 or newer
11511	  tmp_idyn=
11512	  case $host_cpu in
11513	    ia64*) tmp_idyn=' -i_dynamic';;
11514	  esac
11515  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11516	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11517	  ;;
11518	esac
11519	archive_cmds_need_lc_CXX=no
11520	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11521	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11522	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11523	;;
11524      pgCC*)
11525        # Portland Group C++ compiler
11526	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11527  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11528
11529	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11530	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11531	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11532        ;;
11533      cxx*)
11534	# Compaq C++
11535	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11536	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11537
11538	runpath_var=LD_RUN_PATH
11539	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11540	hardcode_libdir_separator_CXX=:
11541
11542	# Commands to make compiler produce verbose output that lists
11543	# what "hidden" libraries, object files and flags are used when
11544	# linking a shared library.
11545	#
11546	# There doesn't appear to be a way to prevent this compiler from
11547	# explicitly linking system object files so we need to strip them
11548	# from the output so that they don't get included in the library
11549	# dependencies.
11550	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11551	;;
11552    esac
11553    ;;
11554  lynxos*)
11555    # FIXME: insert proper C++ library support
11556    ld_shlibs_CXX=no
11557    ;;
11558  m88k*)
11559    # FIXME: insert proper C++ library support
11560    ld_shlibs_CXX=no
11561    ;;
11562  mvs*)
11563    case $cc_basename in
11564      cxx*)
11565	# FIXME: insert proper C++ library support
11566	ld_shlibs_CXX=no
11567	;;
11568      *)
11569	# FIXME: insert proper C++ library support
11570	ld_shlibs_CXX=no
11571	;;
11572    esac
11573    ;;
11574  netbsd*)
11575    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11576      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11577      wlarc=
11578      hardcode_libdir_flag_spec_CXX='-R$libdir'
11579      hardcode_direct_CXX=yes
11580      hardcode_shlibpath_var_CXX=no
11581    fi
11582    # Workaround some broken pre-1.5 toolchains
11583    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11584    ;;
11585  openbsd2*)
11586    # C++ shared libraries are fairly broken
11587    ld_shlibs_CXX=no
11588    ;;
11589  openbsd*)
11590    hardcode_direct_CXX=yes
11591    hardcode_shlibpath_var_CXX=no
11592    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11593    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11594    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11595      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11596      export_dynamic_flag_spec_CXX='${wl}-E'
11597      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11598    fi
11599    output_verbose_link_cmd='echo'
11600    ;;
11601  osf3*)
11602    case $cc_basename in
11603      KCC*)
11604	# Kuck and Associates, Inc. (KAI) C++ Compiler
11605
11606	# KCC will only create a shared library if the output file
11607	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11608	# to its proper name (with version) after linking.
11609	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11610
11611	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11612	hardcode_libdir_separator_CXX=:
11613
11614	# Archives containing C++ object files must be created using
11615	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11616	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11617
11618	;;
11619      RCC*)
11620	# Rational C++ 2.4.1
11621	# FIXME: insert proper C++ library support
11622	ld_shlibs_CXX=no
11623	;;
11624      cxx*)
11625	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11626	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11627
11628	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11629	hardcode_libdir_separator_CXX=:
11630
11631	# Commands to make compiler produce verbose output that lists
11632	# what "hidden" libraries, object files and flags are used when
11633	# linking a shared library.
11634	#
11635	# There doesn't appear to be a way to prevent this compiler from
11636	# explicitly linking system object files so we need to strip them
11637	# from the output so that they don't get included in the library
11638	# dependencies.
11639	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11640	;;
11641      *)
11642	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11643	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11644	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
11645
11646	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11647	  hardcode_libdir_separator_CXX=:
11648
11649	  # Commands to make compiler produce verbose output that lists
11650	  # what "hidden" libraries, object files and flags are used when
11651	  # linking a shared library.
11652	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11653
11654	else
11655	  # FIXME: insert proper C++ library support
11656	  ld_shlibs_CXX=no
11657	fi
11658	;;
11659    esac
11660    ;;
11661  osf4* | osf5*)
11662    case $cc_basename in
11663      KCC*)
11664	# Kuck and Associates, Inc. (KAI) C++ Compiler
11665
11666	# KCC will only create a shared library if the output file
11667	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11668	# to its proper name (with version) after linking.
11669	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11670
11671	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11672	hardcode_libdir_separator_CXX=:
11673
11674	# Archives containing C++ object files must be created using
11675	# the KAI C++ compiler.
11676	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11677	;;
11678      RCC*)
11679	# Rational C++ 2.4.1
11680	# FIXME: insert proper C++ library support
11681	ld_shlibs_CXX=no
11682	;;
11683      cxx*)
11684	allow_undefined_flag_CXX=' -expect_unresolved \*'
11685	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11686	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11687	  echo "-hidden">> $lib.exp~
11688	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11689	  $rm $lib.exp'
11690
11691	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11692	hardcode_libdir_separator_CXX=:
11693
11694	# Commands to make compiler produce verbose output that lists
11695	# what "hidden" libraries, object files and flags are used when
11696	# linking a shared library.
11697	#
11698	# There doesn't appear to be a way to prevent this compiler from
11699	# explicitly linking system object files so we need to strip them
11700	# from the output so that they don't get included in the library
11701	# dependencies.
11702	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11703	;;
11704      *)
11705	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11706	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11707	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
11708
11709	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11710	  hardcode_libdir_separator_CXX=:
11711
11712	  # Commands to make compiler produce verbose output that lists
11713	  # what "hidden" libraries, object files and flags are used when
11714	  # linking a shared library.
11715	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11716
11717	else
11718	  # FIXME: insert proper C++ library support
11719	  ld_shlibs_CXX=no
11720	fi
11721	;;
11722    esac
11723    ;;
11724  psos*)
11725    # FIXME: insert proper C++ library support
11726    ld_shlibs_CXX=no
11727    ;;
11728  sunos4*)
11729    case $cc_basename in
11730      CC*)
11731	# Sun C++ 4.x
11732	# FIXME: insert proper C++ library support
11733	ld_shlibs_CXX=no
11734	;;
11735      lcc*)
11736	# Lucid
11737	# FIXME: insert proper C++ library support
11738	ld_shlibs_CXX=no
11739	;;
11740      *)
11741	# FIXME: insert proper C++ library support
11742	ld_shlibs_CXX=no
11743	;;
11744    esac
11745    ;;
11746  solaris*)
11747    case $cc_basename in
11748      CC*)
11749	# Sun C++ 4.2, 5.x and Centerline C++
11750        archive_cmds_need_lc_CXX=yes
11751	no_undefined_flag_CXX=' -zdefs'
11752	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11753	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11754	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11755
11756	hardcode_libdir_flag_spec_CXX='-R$libdir'
11757	hardcode_shlibpath_var_CXX=no
11758	case $host_os in
11759	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11760	  *)
11761	    # The C++ compiler is used as linker so we must use $wl
11762	    # flag to pass the commands to the underlying system
11763	    # linker. We must also pass each convience library through
11764	    # to the system linker between allextract/defaultextract.
11765	    # The C++ compiler will combine linker options so we
11766	    # cannot just pass the convience library names through
11767	    # without $wl.
11768	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11769	    whole_archive_flag_spec_CXX='${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'
11770	    ;;
11771	esac
11772	link_all_deplibs_CXX=yes
11773
11774	output_verbose_link_cmd='echo'
11775
11776	# Archives containing C++ object files must be created using
11777	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11778	# necessary to make sure instantiated templates are included
11779	# in the archive.
11780	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11781	;;
11782      gcx*)
11783	# Green Hills C++ Compiler
11784	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11785
11786	# The C++ compiler must be used to create the archive.
11787	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11788	;;
11789      *)
11790	# GNU C++ compiler with Solaris linker
11791	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11792	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11793	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11794	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11795	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11796		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11797
11798	    # Commands to make compiler produce verbose output that lists
11799	    # what "hidden" libraries, object files and flags are used when
11800	    # linking a shared library.
11801	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11802	  else
11803	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11804	    # platform.
11805	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11806	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11807		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11808
11809	    # Commands to make compiler produce verbose output that lists
11810	    # what "hidden" libraries, object files and flags are used when
11811	    # linking a shared library.
11812	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11813	  fi
11814
11815	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11816	fi
11817	;;
11818    esac
11819    ;;
11820  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11821    no_undefined_flag_CXX='${wl}-z,text'
11822    archive_cmds_need_lc_CXX=no
11823    hardcode_shlibpath_var_CXX=no
11824    runpath_var='LD_RUN_PATH'
11825
11826    case $cc_basename in
11827      CC*)
11828	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11829	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11830	;;
11831      *)
11832	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11833	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11834	;;
11835    esac
11836    ;;
11837  sysv5* | sco3.2v5* | sco5v6*)
11838    # Note: We can NOT use -z defs as we might desire, because we do not
11839    # link with -lc, and that would cause any symbols used from libc to
11840    # always be unresolved, which means just about no library would
11841    # ever link correctly.  If we're not using GNU ld we use -z text
11842    # though, which does catch some bad symbols but isn't as heavy-handed
11843    # as -z defs.
11844    # For security reasons, it is highly recommended that you always
11845    # use absolute paths for naming shared libraries, and exclude the
11846    # DT_RUNPATH tag from executables and libraries.  But doing so
11847    # requires that you compile everything twice, which is a pain.
11848    # So that behaviour is only enabled if SCOABSPATH is set to a
11849    # non-empty value in the environment.  Most likely only useful for
11850    # creating official distributions of packages.
11851    # This is a hack until libtool officially supports absolute path
11852    # names for shared libraries.
11853    no_undefined_flag_CXX='${wl}-z,text'
11854    allow_undefined_flag_CXX='${wl}-z,nodefs'
11855    archive_cmds_need_lc_CXX=no
11856    hardcode_shlibpath_var_CXX=no
11857    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11858    hardcode_libdir_separator_CXX=':'
11859    link_all_deplibs_CXX=yes
11860    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11861    runpath_var='LD_RUN_PATH'
11862
11863    case $cc_basename in
11864      CC*)
11865	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11866	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11867	;;
11868      *)
11869	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11870	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11871	;;
11872    esac
11873    ;;
11874  tandem*)
11875    case $cc_basename in
11876      NCC*)
11877	# NonStop-UX NCC 3.20
11878	# FIXME: insert proper C++ library support
11879	ld_shlibs_CXX=no
11880	;;
11881      *)
11882	# FIXME: insert proper C++ library support
11883	ld_shlibs_CXX=no
11884	;;
11885    esac
11886    ;;
11887  vxworks*)
11888    # FIXME: insert proper C++ library support
11889    ld_shlibs_CXX=no
11890    ;;
11891  *)
11892    # FIXME: insert proper C++ library support
11893    ld_shlibs_CXX=no
11894    ;;
11895esac
11896{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11897echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11898test "$ld_shlibs_CXX" = no && can_build_shared=no
11899
11900GCC_CXX="$GXX"
11901LD_CXX="$LD"
11902
11903
11904cat > conftest.$ac_ext <<EOF
11905class Foo
11906{
11907public:
11908  Foo (void) { a = 0; }
11909private:
11910  int a;
11911};
11912EOF
11913
11914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11915  (eval $ac_compile) 2>&5
11916  ac_status=$?
11917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918  (exit $ac_status); }; then
11919  # Parse the compiler output and extract the necessary
11920  # objects, libraries and library flags.
11921
11922  # Sentinel used to keep track of whether or not we are before
11923  # the conftest object file.
11924  pre_test_object_deps_done=no
11925
11926  # The `*' in the case matches for architectures that use `case' in
11927  # $output_verbose_cmd can trigger glob expansion during the loop
11928  # eval without this substitution.
11929  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11930
11931  for p in `eval $output_verbose_link_cmd`; do
11932    case $p in
11933
11934    -L* | -R* | -l*)
11935       # Some compilers place space between "-{L,R}" and the path.
11936       # Remove the space.
11937       if test $p = "-L" \
11938	  || test $p = "-R"; then
11939	 prev=$p
11940	 continue
11941       else
11942	 prev=
11943       fi
11944
11945       if test "$pre_test_object_deps_done" = no; then
11946	 case $p in
11947	 -L* | -R*)
11948	   # Internal compiler library paths should come after those
11949	   # provided the user.  The postdeps already come after the
11950	   # user supplied libs so there is no need to process them.
11951	   if test -z "$compiler_lib_search_path_CXX"; then
11952	     compiler_lib_search_path_CXX="${prev}${p}"
11953	   else
11954	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11955	   fi
11956	   ;;
11957	 # The "-l" case would never come before the object being
11958	 # linked, so don't bother handling this case.
11959	 esac
11960       else
11961	 if test -z "$postdeps_CXX"; then
11962	   postdeps_CXX="${prev}${p}"
11963	 else
11964	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11965	 fi
11966       fi
11967       ;;
11968
11969    *.$objext)
11970       # This assumes that the test object file only shows up
11971       # once in the compiler output.
11972       if test "$p" = "conftest.$objext"; then
11973	 pre_test_object_deps_done=yes
11974	 continue
11975       fi
11976
11977       if test "$pre_test_object_deps_done" = no; then
11978	 if test -z "$predep_objects_CXX"; then
11979	   predep_objects_CXX="$p"
11980	 else
11981	   predep_objects_CXX="$predep_objects_CXX $p"
11982	 fi
11983       else
11984	 if test -z "$postdep_objects_CXX"; then
11985	   postdep_objects_CXX="$p"
11986	 else
11987	   postdep_objects_CXX="$postdep_objects_CXX $p"
11988	 fi
11989       fi
11990       ;;
11991
11992    *) ;; # Ignore the rest.
11993
11994    esac
11995  done
11996
11997  # Clean up.
11998  rm -f a.out a.exe
11999else
12000  echo "libtool.m4: error: problem compiling CXX test program"
12001fi
12002
12003$rm -f confest.$objext
12004
12005# PORTME: override above test on systems where it is broken
12006case $host_os in
12007interix3*)
12008  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12009  # hack all around it, let's just trust "g++" to DTRT.
12010  predep_objects_CXX=
12011  postdep_objects_CXX=
12012  postdeps_CXX=
12013  ;;
12014
12015solaris*)
12016  case $cc_basename in
12017  CC*)
12018    # Adding this requires a known-good setup of shared libraries for
12019    # Sun compiler versions before 5.6, else PIC objects from an old
12020    # archive will be linked into the output, leading to subtle bugs.
12021    postdeps_CXX='-lCstd -lCrun'
12022    ;;
12023  esac
12024  ;;
12025esac
12026
12027
12028case " $postdeps_CXX " in
12029*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12030esac
12031
12032lt_prog_compiler_wl_CXX=
12033lt_prog_compiler_pic_CXX=
12034lt_prog_compiler_static_CXX=
12035
12036{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12037echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12038
12039  # C++ specific cases for pic, static, wl, etc.
12040  if test "$GXX" = yes; then
12041    lt_prog_compiler_wl_CXX='-Wl,'
12042    lt_prog_compiler_static_CXX='-static'
12043
12044    case $host_os in
12045    aix*)
12046      # All AIX code is PIC.
12047      if test "$host_cpu" = ia64; then
12048	# AIX 5 now supports IA64 processor
12049	lt_prog_compiler_static_CXX='-Bstatic'
12050      fi
12051      ;;
12052    amigaos*)
12053      # FIXME: we need at least 68020 code to build shared libraries, but
12054      # adding the `-m68020' flag to GCC prevents building anything better,
12055      # like `-m68040'.
12056      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12057      ;;
12058    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12059      # PIC is the default for these OSes.
12060      ;;
12061    mingw* | os2* | pw32*)
12062      # This hack is so that the source file can tell whether it is being
12063      # built for inclusion in a dll (and should export symbols for example).
12064      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12065      ;;
12066    darwin* | rhapsody*)
12067      # PIC is the default on this platform
12068      # Common symbols not allowed in MH_DYLIB files
12069      lt_prog_compiler_pic_CXX='-fno-common'
12070      ;;
12071    *djgpp*)
12072      # DJGPP does not support shared libraries at all
12073      lt_prog_compiler_pic_CXX=
12074      ;;
12075    interix3*)
12076      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12077      # Instead, we relocate shared libraries at runtime.
12078      ;;
12079    sysv4*MP*)
12080      if test -d /usr/nec; then
12081	lt_prog_compiler_pic_CXX=-Kconform_pic
12082      fi
12083      ;;
12084    hpux*)
12085      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12086      # not for PA HP-UX.
12087      case $host_cpu in
12088      hppa*64*|ia64*)
12089	;;
12090      *)
12091	lt_prog_compiler_pic_CXX='-fPIC'
12092	;;
12093      esac
12094      ;;
12095    *)
12096      lt_prog_compiler_pic_CXX='-fPIC'
12097      ;;
12098    esac
12099  else
12100    case $host_os in
12101      aix4* | aix5*)
12102	# All AIX code is PIC.
12103	if test "$host_cpu" = ia64; then
12104	  # AIX 5 now supports IA64 processor
12105	  lt_prog_compiler_static_CXX='-Bstatic'
12106	else
12107	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12108	fi
12109	;;
12110      chorus*)
12111	case $cc_basename in
12112	cxch68*)
12113	  # Green Hills C++ Compiler
12114	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12115	  ;;
12116	esac
12117	;;
12118       darwin*)
12119         # PIC is the default on this platform
12120         # Common symbols not allowed in MH_DYLIB files
12121         case $cc_basename in
12122           xlc*)
12123           lt_prog_compiler_pic_CXX='-qnocommon'
12124           lt_prog_compiler_wl_CXX='-Wl,'
12125           ;;
12126         esac
12127       ;;
12128      dgux*)
12129	case $cc_basename in
12130	  ec++*)
12131	    lt_prog_compiler_pic_CXX='-KPIC'
12132	    ;;
12133	  ghcx*)
12134	    # Green Hills C++ Compiler
12135	    lt_prog_compiler_pic_CXX='-pic'
12136	    ;;
12137	  *)
12138	    ;;
12139	esac
12140	;;
12141      freebsd* | kfreebsd*-gnu | dragonfly*)
12142	# FreeBSD uses GNU C++
12143	;;
12144      hpux9* | hpux10* | hpux11*)
12145	case $cc_basename in
12146	  CC*)
12147	    lt_prog_compiler_wl_CXX='-Wl,'
12148	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12149	    if test "$host_cpu" != ia64; then
12150	      lt_prog_compiler_pic_CXX='+Z'
12151	    fi
12152	    ;;
12153	  aCC*)
12154	    lt_prog_compiler_wl_CXX='-Wl,'
12155	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12156	    case $host_cpu in
12157	    hppa*64*|ia64*)
12158	      # +Z the default
12159	      ;;
12160	    *)
12161	      lt_prog_compiler_pic_CXX='+Z'
12162	      ;;
12163	    esac
12164	    ;;
12165	  *)
12166	    ;;
12167	esac
12168	;;
12169      interix*)
12170	# This is c89, which is MS Visual C++ (no shared libs)
12171	# Anyone wants to do a port?
12172	;;
12173      irix5* | irix6* | nonstopux*)
12174	case $cc_basename in
12175	  CC*)
12176	    lt_prog_compiler_wl_CXX='-Wl,'
12177	    lt_prog_compiler_static_CXX='-non_shared'
12178	    # CC pic flag -KPIC is the default.
12179	    ;;
12180	  *)
12181	    ;;
12182	esac
12183	;;
12184      linux*)
12185	case $cc_basename in
12186	  KCC*)
12187	    # KAI C++ Compiler
12188	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12189	    lt_prog_compiler_pic_CXX='-fPIC'
12190	    ;;
12191	  icpc* | ecpc*)
12192	    # Intel C++
12193	    lt_prog_compiler_wl_CXX='-Wl,'
12194	    lt_prog_compiler_pic_CXX='-KPIC'
12195	    lt_prog_compiler_static_CXX='-static'
12196	    ;;
12197	  pgCC*)
12198	    # Portland Group C++ compiler.
12199	    lt_prog_compiler_wl_CXX='-Wl,'
12200	    lt_prog_compiler_pic_CXX='-fpic'
12201	    lt_prog_compiler_static_CXX='-Bstatic'
12202	    ;;
12203	  cxx*)
12204	    # Compaq C++
12205	    # Make sure the PIC flag is empty.  It appears that all Alpha
12206	    # Linux and Compaq Tru64 Unix objects are PIC.
12207	    lt_prog_compiler_pic_CXX=
12208	    lt_prog_compiler_static_CXX='-non_shared'
12209	    ;;
12210	  *)
12211	    ;;
12212	esac
12213	;;
12214      lynxos*)
12215	;;
12216      m88k*)
12217	;;
12218      mvs*)
12219	case $cc_basename in
12220	  cxx*)
12221	    lt_prog_compiler_pic_CXX='-W c,exportall'
12222	    ;;
12223	  *)
12224	    ;;
12225	esac
12226	;;
12227      netbsd*)
12228	;;
12229      osf3* | osf4* | osf5*)
12230	case $cc_basename in
12231	  KCC*)
12232	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12233	    ;;
12234	  RCC*)
12235	    # Rational C++ 2.4.1
12236	    lt_prog_compiler_pic_CXX='-pic'
12237	    ;;
12238	  cxx*)
12239	    # Digital/Compaq C++
12240	    lt_prog_compiler_wl_CXX='-Wl,'
12241	    # Make sure the PIC flag is empty.  It appears that all Alpha
12242	    # Linux and Compaq Tru64 Unix objects are PIC.
12243	    lt_prog_compiler_pic_CXX=
12244	    lt_prog_compiler_static_CXX='-non_shared'
12245	    ;;
12246	  *)
12247	    ;;
12248	esac
12249	;;
12250      psos*)
12251	;;
12252      solaris*)
12253	case $cc_basename in
12254	  CC*)
12255	    # Sun C++ 4.2, 5.x and Centerline C++
12256	    lt_prog_compiler_pic_CXX='-KPIC'
12257	    lt_prog_compiler_static_CXX='-Bstatic'
12258	    lt_prog_compiler_wl_CXX='-Qoption ld '
12259	    ;;
12260	  gcx*)
12261	    # Green Hills C++ Compiler
12262	    lt_prog_compiler_pic_CXX='-PIC'
12263	    ;;
12264	  *)
12265	    ;;
12266	esac
12267	;;
12268      sunos4*)
12269	case $cc_basename in
12270	  CC*)
12271	    # Sun C++ 4.x
12272	    lt_prog_compiler_pic_CXX='-pic'
12273	    lt_prog_compiler_static_CXX='-Bstatic'
12274	    ;;
12275	  lcc*)
12276	    # Lucid
12277	    lt_prog_compiler_pic_CXX='-pic'
12278	    ;;
12279	  *)
12280	    ;;
12281	esac
12282	;;
12283      tandem*)
12284	case $cc_basename in
12285	  NCC*)
12286	    # NonStop-UX NCC 3.20
12287	    lt_prog_compiler_pic_CXX='-KPIC'
12288	    ;;
12289	  *)
12290	    ;;
12291	esac
12292	;;
12293      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12294	case $cc_basename in
12295	  CC*)
12296	    lt_prog_compiler_wl_CXX='-Wl,'
12297	    lt_prog_compiler_pic_CXX='-KPIC'
12298	    lt_prog_compiler_static_CXX='-Bstatic'
12299	    ;;
12300	esac
12301	;;
12302      vxworks*)
12303	;;
12304      *)
12305	lt_prog_compiler_can_build_shared_CXX=no
12306	;;
12307    esac
12308  fi
12309
12310{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12311echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12312
12313#
12314# Check to make sure the PIC flag actually works.
12315#
12316if test -n "$lt_prog_compiler_pic_CXX"; then
12317
12318{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12319echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12320if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12321  echo $ECHO_N "(cached) $ECHO_C" >&6
12322else
12323  lt_prog_compiler_pic_works_CXX=no
12324  ac_outfile=conftest.$ac_objext
12325   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12326   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12327   # Insert the option either (1) after the last *FLAGS variable, or
12328   # (2) before a word containing "conftest.", or (3) at the end.
12329   # Note that $ac_compile itself does not contain backslashes and begins
12330   # with a dollar sign (not a hyphen), so the echo should work correctly.
12331   # The option is referenced via a variable to avoid confusing sed.
12332   lt_compile=`echo "$ac_compile" | $SED \
12333   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12334   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12335   -e 's:$: $lt_compiler_flag:'`
12336   (eval echo "\"\$as_me:12336: $lt_compile\"" >&5)
12337   (eval "$lt_compile" 2>conftest.err)
12338   ac_status=$?
12339   cat conftest.err >&5
12340   echo "$as_me:12340: \$? = $ac_status" >&5
12341   if (exit $ac_status) && test -s "$ac_outfile"; then
12342     # The compiler can only warn and ignore the option if not recognized
12343     # So say no if there are warnings other than the usual output.
12344     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12345     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12346     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12347       lt_prog_compiler_pic_works_CXX=yes
12348     fi
12349   fi
12350   $rm conftest*
12351
12352fi
12353{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12354echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12355
12356if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12357    case $lt_prog_compiler_pic_CXX in
12358     "" | " "*) ;;
12359     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12360     esac
12361else
12362    lt_prog_compiler_pic_CXX=
12363     lt_prog_compiler_can_build_shared_CXX=no
12364fi
12365
12366fi
12367case $host_os in
12368  # For platforms which do not support PIC, -DPIC is meaningless:
12369  *djgpp*)
12370    lt_prog_compiler_pic_CXX=
12371    ;;
12372  *)
12373    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12374    ;;
12375esac
12376
12377#
12378# Check to make sure the static flag actually works.
12379#
12380wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12381{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12382echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12383if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12384  echo $ECHO_N "(cached) $ECHO_C" >&6
12385else
12386  lt_prog_compiler_static_works_CXX=no
12387   save_LDFLAGS="$LDFLAGS"
12388   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12389   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12390   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12391     # The linker can only warn and ignore the option if not recognized
12392     # So say no if there are warnings
12393     if test -s conftest.err; then
12394       # Append any errors to the config.log.
12395       cat conftest.err 1>&5
12396       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12397       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12398       if diff conftest.exp conftest.er2 >/dev/null; then
12399         lt_prog_compiler_static_works_CXX=yes
12400       fi
12401     else
12402       lt_prog_compiler_static_works_CXX=yes
12403     fi
12404   fi
12405   $rm conftest*
12406   LDFLAGS="$save_LDFLAGS"
12407
12408fi
12409{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12410echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12411
12412if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12413    :
12414else
12415    lt_prog_compiler_static_CXX=
12416fi
12417
12418
12419{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12420echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12421if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12422  echo $ECHO_N "(cached) $ECHO_C" >&6
12423else
12424  lt_cv_prog_compiler_c_o_CXX=no
12425   $rm -r conftest 2>/dev/null
12426   mkdir conftest
12427   cd conftest
12428   mkdir out
12429   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12430
12431   lt_compiler_flag="-o out/conftest2.$ac_objext"
12432   # Insert the option either (1) after the last *FLAGS variable, or
12433   # (2) before a word containing "conftest.", or (3) at the end.
12434   # Note that $ac_compile itself does not contain backslashes and begins
12435   # with a dollar sign (not a hyphen), so the echo should work correctly.
12436   lt_compile=`echo "$ac_compile" | $SED \
12437   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12438   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12439   -e 's:$: $lt_compiler_flag:'`
12440   (eval echo "\"\$as_me:12440: $lt_compile\"" >&5)
12441   (eval "$lt_compile" 2>out/conftest.err)
12442   ac_status=$?
12443   cat out/conftest.err >&5
12444   echo "$as_me:12444: \$? = $ac_status" >&5
12445   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12446   then
12447     # The compiler can only warn and ignore the option if not recognized
12448     # So say no if there are warnings
12449     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12450     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12451     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12452       lt_cv_prog_compiler_c_o_CXX=yes
12453     fi
12454   fi
12455   chmod u+w . 2>&5
12456   $rm conftest*
12457   # SGI C++ compiler will create directory out/ii_files/ for
12458   # template instantiation
12459   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12460   $rm out/* && rmdir out
12461   cd ..
12462   rmdir conftest
12463   $rm conftest*
12464
12465fi
12466{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12467echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12468
12469
12470hard_links="nottested"
12471if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12472  # do not overwrite the value of need_locks provided by the user
12473  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12474echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12475  hard_links=yes
12476  $rm conftest*
12477  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12478  touch conftest.a
12479  ln conftest.a conftest.b 2>&5 || hard_links=no
12480  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12481  { echo "$as_me:$LINENO: result: $hard_links" >&5
12482echo "${ECHO_T}$hard_links" >&6; }
12483  if test "$hard_links" = no; then
12484    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12485echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12486    need_locks=warn
12487  fi
12488else
12489  need_locks=no
12490fi
12491
12492{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12493echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12494
12495  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12496  case $host_os in
12497  aix4* | aix5*)
12498    # If we're using GNU nm, then we don't want the "-C" option.
12499    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12500    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12501      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12502    else
12503      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12504    fi
12505    ;;
12506  pw32*)
12507    export_symbols_cmds_CXX="$ltdll_cmds"
12508  ;;
12509  cygwin* | mingw*)
12510    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12511  ;;
12512  *)
12513    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12514  ;;
12515  esac
12516
12517{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12518echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12519test "$ld_shlibs_CXX" = no && can_build_shared=no
12520
12521#
12522# Do we need to explicitly link libc?
12523#
12524case "x$archive_cmds_need_lc_CXX" in
12525x|xyes)
12526  # Assume -lc should be added
12527  archive_cmds_need_lc_CXX=yes
12528
12529  if test "$enable_shared" = yes && test "$GCC" = yes; then
12530    case $archive_cmds_CXX in
12531    *'~'*)
12532      # FIXME: we may have to deal with multi-command sequences.
12533      ;;
12534    '$CC '*)
12535      # Test whether the compiler implicitly links with -lc since on some
12536      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12537      # to ld, don't add -lc before -lgcc.
12538      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12539echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12540      $rm conftest*
12541      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12542
12543      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12544  (eval $ac_compile) 2>&5
12545  ac_status=$?
12546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547  (exit $ac_status); } 2>conftest.err; then
12548        soname=conftest
12549        lib=conftest
12550        libobjs=conftest.$ac_objext
12551        deplibs=
12552        wl=$lt_prog_compiler_wl_CXX
12553	pic_flag=$lt_prog_compiler_pic_CXX
12554        compiler_flags=-v
12555        linker_flags=-v
12556        verstring=
12557        output_objdir=.
12558        libname=conftest
12559        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12560        allow_undefined_flag_CXX=
12561        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12562  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12563  ac_status=$?
12564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565  (exit $ac_status); }
12566        then
12567	  archive_cmds_need_lc_CXX=no
12568        else
12569	  archive_cmds_need_lc_CXX=yes
12570        fi
12571        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12572      else
12573        cat conftest.err 1>&5
12574      fi
12575      $rm conftest*
12576      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12577echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12578      ;;
12579    esac
12580  fi
12581  ;;
12582esac
12583
12584{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12585echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12586library_names_spec=
12587libname_spec='lib$name'
12588soname_spec=
12589shrext_cmds=".so"
12590postinstall_cmds=
12591postuninstall_cmds=
12592finish_cmds=
12593finish_eval=
12594shlibpath_var=
12595shlibpath_overrides_runpath=unknown
12596version_type=none
12597dynamic_linker="$host_os ld.so"
12598sys_lib_dlsearch_path_spec="/lib /usr/lib"
12599if test "$GCC" = yes; then
12600  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12601  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12602    # if the path contains ";" then we assume it to be the separator
12603    # otherwise default to the standard path separator (i.e. ":") - it is
12604    # assumed that no part of a normal pathname contains ";" but that should
12605    # okay in the real world where ";" in dirpaths is itself problematic.
12606    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12607  else
12608    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12609  fi
12610else
12611  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12612fi
12613need_lib_prefix=unknown
12614hardcode_into_libs=no
12615
12616# when you set need_version to no, make sure it does not cause -set_version
12617# flags to be left without arguments
12618need_version=unknown
12619
12620case $host_os in
12621aix3*)
12622  version_type=linux
12623  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12624  shlibpath_var=LIBPATH
12625
12626  # AIX 3 has no versioning support, so we append a major version to the name.
12627  soname_spec='${libname}${release}${shared_ext}$major'
12628  ;;
12629
12630aix4* | aix5*)
12631  version_type=linux
12632  need_lib_prefix=no
12633  need_version=no
12634  hardcode_into_libs=yes
12635  if test "$host_cpu" = ia64; then
12636    # AIX 5 supports IA64
12637    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12638    shlibpath_var=LD_LIBRARY_PATH
12639  else
12640    # With GCC up to 2.95.x, collect2 would create an import file
12641    # for dependence libraries.  The import file would start with
12642    # the line `#! .'.  This would cause the generated library to
12643    # depend on `.', always an invalid library.  This was fixed in
12644    # development snapshots of GCC prior to 3.0.
12645    case $host_os in
12646      aix4 | aix4.[01] | aix4.[01].*)
12647      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12648	   echo ' yes '
12649	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12650	:
12651      else
12652	can_build_shared=no
12653      fi
12654      ;;
12655    esac
12656    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12657    # soname into executable. Probably we can add versioning support to
12658    # collect2, so additional links can be useful in future.
12659    if test "$aix_use_runtimelinking" = yes; then
12660      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12661      # instead of lib<name>.a to let people know that these are not
12662      # typical AIX shared libraries.
12663      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12664    else
12665      # We preserve .a as extension for shared libraries through AIX4.2
12666      # and later when we are not doing run time linking.
12667      library_names_spec='${libname}${release}.a $libname.a'
12668      soname_spec='${libname}${release}${shared_ext}$major'
12669    fi
12670    shlibpath_var=LIBPATH
12671  fi
12672  ;;
12673
12674amigaos*)
12675  library_names_spec='$libname.ixlibrary $libname.a'
12676  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12677  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'
12678  ;;
12679
12680beos*)
12681  library_names_spec='${libname}${shared_ext}'
12682  dynamic_linker="$host_os ld.so"
12683  shlibpath_var=LIBRARY_PATH
12684  ;;
12685
12686bsdi[45]*)
12687  version_type=linux
12688  need_version=no
12689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12690  soname_spec='${libname}${release}${shared_ext}$major'
12691  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12692  shlibpath_var=LD_LIBRARY_PATH
12693  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12694  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12695  # the default ld.so.conf also contains /usr/contrib/lib and
12696  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12697  # libtool to hard-code these into programs
12698  ;;
12699
12700cygwin* | mingw* | pw32*)
12701  version_type=windows
12702  shrext_cmds=".dll"
12703  need_version=no
12704  need_lib_prefix=no
12705
12706  case $GCC,$host_os in
12707  yes,cygwin* | yes,mingw* | yes,pw32*)
12708    library_names_spec='$libname.dll.a'
12709    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12710    postinstall_cmds='base_file=`basename \${file}`~
12711      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12712      dldir=$destdir/`dirname \$dlpath`~
12713      test -d \$dldir || mkdir -p \$dldir~
12714      $install_prog $dir/$dlname \$dldir/$dlname~
12715      chmod a+x \$dldir/$dlname'
12716    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12717      dlpath=$dir/\$dldll~
12718       $rm \$dlpath'
12719    shlibpath_overrides_runpath=yes
12720
12721    case $host_os in
12722    cygwin*)
12723      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12724      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12725      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12726      ;;
12727    mingw*)
12728      # MinGW DLLs use traditional 'lib' prefix
12729      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12730      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12731      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12732        # It is most probably a Windows format PATH printed by
12733        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12734        # path with ; separators, and with drive letters. We can handle the
12735        # drive letters (cygwin fileutils understands them), so leave them,
12736        # especially as we might pass files found there to a mingw objdump,
12737        # which wouldn't understand a cygwinified path. Ahh.
12738        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12739      else
12740        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12741      fi
12742      ;;
12743    pw32*)
12744      # pw32 DLLs use 'pw' prefix rather than 'lib'
12745      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12746      ;;
12747    esac
12748    ;;
12749
12750  *)
12751    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12752    ;;
12753  esac
12754  dynamic_linker='Win32 ld.exe'
12755  # FIXME: first we should search . and the directory the executable is in
12756  shlibpath_var=PATH
12757  ;;
12758
12759darwin* | rhapsody*)
12760  dynamic_linker="$host_os dyld"
12761  version_type=darwin
12762  need_lib_prefix=no
12763  need_version=no
12764  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12765  soname_spec='${libname}${release}${major}$shared_ext'
12766  shlibpath_overrides_runpath=yes
12767  shlibpath_var=DYLD_LIBRARY_PATH
12768  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12769  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12770  if test "$GCC" = yes; then
12771    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"`
12772  else
12773    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12774  fi
12775  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12776  ;;
12777
12778dgux*)
12779  version_type=linux
12780  need_lib_prefix=no
12781  need_version=no
12782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12783  soname_spec='${libname}${release}${shared_ext}$major'
12784  shlibpath_var=LD_LIBRARY_PATH
12785  ;;
12786
12787freebsd1*)
12788  dynamic_linker=no
12789  ;;
12790
12791kfreebsd*-gnu)
12792  version_type=linux
12793  need_lib_prefix=no
12794  need_version=no
12795  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12796  soname_spec='${libname}${release}${shared_ext}$major'
12797  shlibpath_var=LD_LIBRARY_PATH
12798  shlibpath_overrides_runpath=no
12799  hardcode_into_libs=yes
12800  dynamic_linker='GNU ld.so'
12801  ;;
12802
12803freebsd* | dragonfly*)
12804  # DragonFly does not have aout.  When/if they implement a new
12805  # versioning mechanism, adjust this.
12806  if test -x /usr/bin/objformat; then
12807    objformat=`/usr/bin/objformat`
12808  else
12809    case $host_os in
12810    freebsd[123]*) objformat=aout ;;
12811    *) objformat=elf ;;
12812    esac
12813  fi
12814  version_type=freebsd-$objformat
12815  case $version_type in
12816    freebsd-elf*)
12817      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12818      need_version=no
12819      need_lib_prefix=no
12820      ;;
12821    freebsd-*)
12822      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12823      need_version=yes
12824      ;;
12825  esac
12826  shlibpath_var=LD_LIBRARY_PATH
12827  case $host_os in
12828  freebsd2*)
12829    shlibpath_overrides_runpath=yes
12830    ;;
12831  freebsd3.[01]* | freebsdelf3.[01]*)
12832    shlibpath_overrides_runpath=yes
12833    hardcode_into_libs=yes
12834    ;;
12835  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12836  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12837    shlibpath_overrides_runpath=no
12838    hardcode_into_libs=yes
12839    ;;
12840  freebsd*) # from 4.6 on
12841    shlibpath_overrides_runpath=yes
12842    hardcode_into_libs=yes
12843    ;;
12844  esac
12845  ;;
12846
12847gnu*)
12848  version_type=linux
12849  need_lib_prefix=no
12850  need_version=no
12851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12852  soname_spec='${libname}${release}${shared_ext}$major'
12853  shlibpath_var=LD_LIBRARY_PATH
12854  hardcode_into_libs=yes
12855  ;;
12856
12857hpux9* | hpux10* | hpux11*)
12858  # Give a soname corresponding to the major version so that dld.sl refuses to
12859  # link against other versions.
12860  version_type=sunos
12861  need_lib_prefix=no
12862  need_version=no
12863  case $host_cpu in
12864  ia64*)
12865    shrext_cmds='.so'
12866    hardcode_into_libs=yes
12867    dynamic_linker="$host_os dld.so"
12868    shlibpath_var=LD_LIBRARY_PATH
12869    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12870    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12871    soname_spec='${libname}${release}${shared_ext}$major'
12872    if test "X$HPUX_IA64_MODE" = X32; then
12873      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12874    else
12875      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12876    fi
12877    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12878    ;;
12879   hppa*64*)
12880     shrext_cmds='.sl'
12881     hardcode_into_libs=yes
12882     dynamic_linker="$host_os dld.sl"
12883     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12884     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12885     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12886     soname_spec='${libname}${release}${shared_ext}$major'
12887     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12888     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12889     ;;
12890   *)
12891    shrext_cmds='.sl'
12892    dynamic_linker="$host_os dld.sl"
12893    shlibpath_var=SHLIB_PATH
12894    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12895    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12896    soname_spec='${libname}${release}${shared_ext}$major'
12897    ;;
12898  esac
12899  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12900  postinstall_cmds='chmod 555 $lib'
12901  ;;
12902
12903interix3*)
12904  version_type=linux
12905  need_lib_prefix=no
12906  need_version=no
12907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12908  soname_spec='${libname}${release}${shared_ext}$major'
12909  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12910  shlibpath_var=LD_LIBRARY_PATH
12911  shlibpath_overrides_runpath=no
12912  hardcode_into_libs=yes
12913  ;;
12914
12915irix5* | irix6* | nonstopux*)
12916  case $host_os in
12917    nonstopux*) version_type=nonstopux ;;
12918    *)
12919	if test "$lt_cv_prog_gnu_ld" = yes; then
12920		version_type=linux
12921	else
12922		version_type=irix
12923	fi ;;
12924  esac
12925  need_lib_prefix=no
12926  need_version=no
12927  soname_spec='${libname}${release}${shared_ext}$major'
12928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12929  case $host_os in
12930  irix5* | nonstopux*)
12931    libsuff= shlibsuff=
12932    ;;
12933  *)
12934    case $LD in # libtool.m4 will add one of these switches to LD
12935    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12936      libsuff= shlibsuff= libmagic=32-bit;;
12937    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12938      libsuff=32 shlibsuff=N32 libmagic=N32;;
12939    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12940      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12941    *) libsuff= shlibsuff= libmagic=never-match;;
12942    esac
12943    ;;
12944  esac
12945  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12946  shlibpath_overrides_runpath=no
12947  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12948  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12949  hardcode_into_libs=yes
12950  ;;
12951
12952# No shared lib support for Linux oldld, aout, or coff.
12953linux*oldld* | linux*aout* | linux*coff*)
12954  dynamic_linker=no
12955  ;;
12956
12957# This must be Linux ELF.
12958linux*)
12959  version_type=linux
12960  need_lib_prefix=no
12961  need_version=no
12962  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12963  soname_spec='${libname}${release}${shared_ext}$major'
12964  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12965  shlibpath_var=LD_LIBRARY_PATH
12966  shlibpath_overrides_runpath=no
12967  # This implies no fast_install, which is unacceptable.
12968  # Some rework will be needed to allow for fast_install
12969  # before this can be enabled.
12970  hardcode_into_libs=yes
12971
12972  # find out which ABI we are using
12973  libsuff=
12974  case "$host_cpu" in
12975  x86_64*|s390x*|powerpc64*)
12976    echo '#line 12976 "configure"' > conftest.$ac_ext
12977    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12978  (eval $ac_compile) 2>&5
12979  ac_status=$?
12980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981  (exit $ac_status); }; then
12982      case `/usr/bin/file conftest.$ac_objext` in
12983      *64-bit*)
12984        libsuff=64
12985        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12986        ;;
12987      esac
12988    fi
12989    rm -rf conftest*
12990    ;;
12991  esac
12992
12993  # Append ld.so.conf contents to the search path
12994  if test -f /etc/ld.so.conf; then
12995    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12996    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12997  fi
12998
12999  # We used to test for /lib/ld.so.1 and disable shared libraries on
13000  # powerpc, because MkLinux only supported shared libraries with the
13001  # GNU dynamic linker.  Since this was broken with cross compilers,
13002  # most powerpc-linux boxes support dynamic linking these days and
13003  # people can always --disable-shared, the test was removed, and we
13004  # assume the GNU/Linux dynamic linker is in use.
13005  dynamic_linker='GNU/Linux ld.so'
13006  ;;
13007
13008knetbsd*-gnu)
13009  version_type=linux
13010  need_lib_prefix=no
13011  need_version=no
13012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13013  soname_spec='${libname}${release}${shared_ext}$major'
13014  shlibpath_var=LD_LIBRARY_PATH
13015  shlibpath_overrides_runpath=no
13016  hardcode_into_libs=yes
13017  dynamic_linker='GNU ld.so'
13018  ;;
13019
13020netbsd*)
13021  version_type=sunos
13022  need_lib_prefix=no
13023  need_version=no
13024  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13025    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13026    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13027    dynamic_linker='NetBSD (a.out) ld.so'
13028  else
13029    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13030    soname_spec='${libname}${release}${shared_ext}$major'
13031    dynamic_linker='NetBSD ld.elf_so'
13032  fi
13033  shlibpath_var=LD_LIBRARY_PATH
13034  shlibpath_overrides_runpath=yes
13035  hardcode_into_libs=yes
13036  ;;
13037
13038newsos6)
13039  version_type=linux
13040  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13041  shlibpath_var=LD_LIBRARY_PATH
13042  shlibpath_overrides_runpath=yes
13043  ;;
13044
13045nto-qnx*)
13046  version_type=linux
13047  need_lib_prefix=no
13048  need_version=no
13049  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13050  soname_spec='${libname}${release}${shared_ext}$major'
13051  shlibpath_var=LD_LIBRARY_PATH
13052  shlibpath_overrides_runpath=yes
13053  ;;
13054
13055openbsd*)
13056  version_type=sunos
13057  sys_lib_dlsearch_path_spec="/usr/lib"
13058  need_lib_prefix=no
13059  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13060  case $host_os in
13061    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13062    *)                         need_version=no  ;;
13063  esac
13064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13065  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13066  shlibpath_var=LD_LIBRARY_PATH
13067  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13068    case $host_os in
13069      openbsd2.[89] | openbsd2.[89].*)
13070	shlibpath_overrides_runpath=no
13071	;;
13072      *)
13073	shlibpath_overrides_runpath=yes
13074	;;
13075      esac
13076  else
13077    shlibpath_overrides_runpath=yes
13078  fi
13079  ;;
13080
13081os2*)
13082  libname_spec='$name'
13083  shrext_cmds=".dll"
13084  need_lib_prefix=no
13085  library_names_spec='$libname${shared_ext} $libname.a'
13086  dynamic_linker='OS/2 ld.exe'
13087  shlibpath_var=LIBPATH
13088  ;;
13089
13090osf3* | osf4* | osf5*)
13091  version_type=osf
13092  need_lib_prefix=no
13093  need_version=no
13094  soname_spec='${libname}${release}${shared_ext}$major'
13095  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13096  shlibpath_var=LD_LIBRARY_PATH
13097  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13098  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13099  ;;
13100
13101solaris*)
13102  version_type=linux
13103  need_lib_prefix=no
13104  need_version=no
13105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13106  soname_spec='${libname}${release}${shared_ext}$major'
13107  shlibpath_var=LD_LIBRARY_PATH
13108  shlibpath_overrides_runpath=yes
13109  hardcode_into_libs=yes
13110  # ldd complains unless libraries are executable
13111  postinstall_cmds='chmod +x $lib'
13112  ;;
13113
13114sunos4*)
13115  version_type=sunos
13116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13117  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13118  shlibpath_var=LD_LIBRARY_PATH
13119  shlibpath_overrides_runpath=yes
13120  if test "$with_gnu_ld" = yes; then
13121    need_lib_prefix=no
13122  fi
13123  need_version=yes
13124  ;;
13125
13126sysv4 | sysv4.3*)
13127  version_type=linux
13128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13129  soname_spec='${libname}${release}${shared_ext}$major'
13130  shlibpath_var=LD_LIBRARY_PATH
13131  case $host_vendor in
13132    sni)
13133      shlibpath_overrides_runpath=no
13134      need_lib_prefix=no
13135      export_dynamic_flag_spec='${wl}-Blargedynsym'
13136      runpath_var=LD_RUN_PATH
13137      ;;
13138    siemens)
13139      need_lib_prefix=no
13140      ;;
13141    motorola)
13142      need_lib_prefix=no
13143      need_version=no
13144      shlibpath_overrides_runpath=no
13145      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13146      ;;
13147  esac
13148  ;;
13149
13150sysv4*MP*)
13151  if test -d /usr/nec ;then
13152    version_type=linux
13153    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13154    soname_spec='$libname${shared_ext}.$major'
13155    shlibpath_var=LD_LIBRARY_PATH
13156  fi
13157  ;;
13158
13159sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13160  version_type=freebsd-elf
13161  need_lib_prefix=no
13162  need_version=no
13163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13164  soname_spec='${libname}${release}${shared_ext}$major'
13165  shlibpath_var=LD_LIBRARY_PATH
13166  hardcode_into_libs=yes
13167  if test "$with_gnu_ld" = yes; then
13168    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13169    shlibpath_overrides_runpath=no
13170  else
13171    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13172    shlibpath_overrides_runpath=yes
13173    case $host_os in
13174      sco3.2v5*)
13175        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13176	;;
13177    esac
13178  fi
13179  sys_lib_dlsearch_path_spec='/usr/lib'
13180  ;;
13181
13182uts4*)
13183  version_type=linux
13184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13185  soname_spec='${libname}${release}${shared_ext}$major'
13186  shlibpath_var=LD_LIBRARY_PATH
13187  ;;
13188
13189*)
13190  dynamic_linker=no
13191  ;;
13192esac
13193{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13194echo "${ECHO_T}$dynamic_linker" >&6; }
13195test "$dynamic_linker" = no && can_build_shared=no
13196
13197variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13198if test "$GCC" = yes; then
13199  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13200fi
13201
13202{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13203echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13204hardcode_action_CXX=
13205if test -n "$hardcode_libdir_flag_spec_CXX" || \
13206   test -n "$runpath_var_CXX" || \
13207   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13208
13209  # We can hardcode non-existant directories.
13210  if test "$hardcode_direct_CXX" != no &&
13211     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13212     # have to relink, otherwise we might link with an installed library
13213     # when we should be linking with a yet-to-be-installed one
13214     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13215     test "$hardcode_minus_L_CXX" != no; then
13216    # Linking always hardcodes the temporary library directory.
13217    hardcode_action_CXX=relink
13218  else
13219    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13220    hardcode_action_CXX=immediate
13221  fi
13222else
13223  # We cannot hardcode anything, or else we can only hardcode existing
13224  # directories.
13225  hardcode_action_CXX=unsupported
13226fi
13227{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13228echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13229
13230if test "$hardcode_action_CXX" = relink; then
13231  # Fast installation is not supported
13232  enable_fast_install=no
13233elif test "$shlibpath_overrides_runpath" = yes ||
13234     test "$enable_shared" = no; then
13235  # Fast installation is not necessary
13236  enable_fast_install=needless
13237fi
13238
13239
13240# The else clause should only fire when bootstrapping the
13241# libtool distribution, otherwise you forgot to ship ltmain.sh
13242# with your package, and you will get complaints that there are
13243# no rules to generate ltmain.sh.
13244if test -f "$ltmain"; then
13245  # See if we are running on zsh, and set the options which allow our commands through
13246  # without removal of \ escapes.
13247  if test -n "${ZSH_VERSION+set}" ; then
13248    setopt NO_GLOB_SUBST
13249  fi
13250  # Now quote all the things that may contain metacharacters while being
13251  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13252  # variables and quote the copies for generation of the libtool script.
13253  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13254    SED SHELL STRIP \
13255    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13256    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13257    deplibs_check_method reload_flag reload_cmds need_locks \
13258    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13259    lt_cv_sys_global_symbol_to_c_name_address \
13260    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13261    old_postinstall_cmds old_postuninstall_cmds \
13262    compiler_CXX \
13263    CC_CXX \
13264    LD_CXX \
13265    lt_prog_compiler_wl_CXX \
13266    lt_prog_compiler_pic_CXX \
13267    lt_prog_compiler_static_CXX \
13268    lt_prog_compiler_no_builtin_flag_CXX \
13269    export_dynamic_flag_spec_CXX \
13270    thread_safe_flag_spec_CXX \
13271    whole_archive_flag_spec_CXX \
13272    enable_shared_with_static_runtimes_CXX \
13273    old_archive_cmds_CXX \
13274    old_archive_from_new_cmds_CXX \
13275    predep_objects_CXX \
13276    postdep_objects_CXX \
13277    predeps_CXX \
13278    postdeps_CXX \
13279    compiler_lib_search_path_CXX \
13280    archive_cmds_CXX \
13281    archive_expsym_cmds_CXX \
13282    postinstall_cmds_CXX \
13283    postuninstall_cmds_CXX \
13284    old_archive_from_expsyms_cmds_CXX \
13285    allow_undefined_flag_CXX \
13286    no_undefined_flag_CXX \
13287    export_symbols_cmds_CXX \
13288    hardcode_libdir_flag_spec_CXX \
13289    hardcode_libdir_flag_spec_ld_CXX \
13290    hardcode_libdir_separator_CXX \
13291    hardcode_automatic_CXX \
13292    module_cmds_CXX \
13293    module_expsym_cmds_CXX \
13294    lt_cv_prog_compiler_c_o_CXX \
13295    exclude_expsyms_CXX \
13296    include_expsyms_CXX; do
13297
13298    case $var in
13299    old_archive_cmds_CXX | \
13300    old_archive_from_new_cmds_CXX | \
13301    archive_cmds_CXX | \
13302    archive_expsym_cmds_CXX | \
13303    module_cmds_CXX | \
13304    module_expsym_cmds_CXX | \
13305    old_archive_from_expsyms_cmds_CXX | \
13306    export_symbols_cmds_CXX | \
13307    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13308    postinstall_cmds | postuninstall_cmds | \
13309    old_postinstall_cmds | old_postuninstall_cmds | \
13310    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13311      # Double-quote double-evaled strings.
13312      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13313      ;;
13314    *)
13315      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13316      ;;
13317    esac
13318  done
13319
13320  case $lt_echo in
13321  *'\$0 --fallback-echo"')
13322    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13323    ;;
13324  esac
13325
13326cfgfile="$ofile"
13327
13328  cat <<__EOF__ >> "$cfgfile"
13329# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13330
13331# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13332
13333# Shell to use when invoking shell scripts.
13334SHELL=$lt_SHELL
13335
13336# Whether or not to build shared libraries.
13337build_libtool_libs=$enable_shared
13338
13339# Whether or not to build static libraries.
13340build_old_libs=$enable_static
13341
13342# Whether or not to add -lc for building shared libraries.
13343build_libtool_need_lc=$archive_cmds_need_lc_CXX
13344
13345# Whether or not to disallow shared libs when runtime libs are static
13346allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13347
13348# Whether or not to optimize for fast installation.
13349fast_install=$enable_fast_install
13350
13351# The host system.
13352host_alias=$host_alias
13353host=$host
13354host_os=$host_os
13355
13356# The build system.
13357build_alias=$build_alias
13358build=$build
13359build_os=$build_os
13360
13361# An echo program that does not interpret backslashes.
13362echo=$lt_echo
13363
13364# The archiver.
13365AR=$lt_AR
13366AR_FLAGS=$lt_AR_FLAGS
13367
13368# A C compiler.
13369LTCC=$lt_LTCC
13370
13371# LTCC compiler flags.
13372LTCFLAGS=$lt_LTCFLAGS
13373
13374# A language-specific compiler.
13375CC=$lt_compiler_CXX
13376
13377# Is the compiler the GNU C compiler?
13378with_gcc=$GCC_CXX
13379
13380gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13381gcc_ver=\`gcc -dumpversion\`
13382
13383# An ERE matcher.
13384EGREP=$lt_EGREP
13385
13386# The linker used to build libraries.
13387LD=$lt_LD_CXX
13388
13389# Whether we need hard or soft links.
13390LN_S=$lt_LN_S
13391
13392# A BSD-compatible nm program.
13393NM=$lt_NM
13394
13395# A symbol stripping program
13396STRIP=$lt_STRIP
13397
13398# Used to examine libraries when file_magic_cmd begins "file"
13399MAGIC_CMD=$MAGIC_CMD
13400
13401# Used on cygwin: DLL creation program.
13402DLLTOOL="$DLLTOOL"
13403
13404# Used on cygwin: object dumper.
13405OBJDUMP="$OBJDUMP"
13406
13407# Used on cygwin: assembler.
13408AS="$AS"
13409
13410# The name of the directory that contains temporary libtool files.
13411objdir=$objdir
13412
13413# How to create reloadable object files.
13414reload_flag=$lt_reload_flag
13415reload_cmds=$lt_reload_cmds
13416
13417# How to pass a linker flag through the compiler.
13418wl=$lt_lt_prog_compiler_wl_CXX
13419
13420# Object file suffix (normally "o").
13421objext="$ac_objext"
13422
13423# Old archive suffix (normally "a").
13424libext="$libext"
13425
13426# Shared library suffix (normally ".so").
13427shrext_cmds='$shrext_cmds'
13428
13429# Executable file suffix (normally "").
13430exeext="$exeext"
13431
13432# Additional compiler flags for building library objects.
13433pic_flag=$lt_lt_prog_compiler_pic_CXX
13434pic_mode=$pic_mode
13435
13436# What is the maximum length of a command?
13437max_cmd_len=$lt_cv_sys_max_cmd_len
13438
13439# Does compiler simultaneously support -c and -o options?
13440compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13441
13442# Must we lock files when doing compilation?
13443need_locks=$lt_need_locks
13444
13445# Do we need the lib prefix for modules?
13446need_lib_prefix=$need_lib_prefix
13447
13448# Do we need a version for libraries?
13449need_version=$need_version
13450
13451# Whether dlopen is supported.
13452dlopen_support=$enable_dlopen
13453
13454# Whether dlopen of programs is supported.
13455dlopen_self=$enable_dlopen_self
13456
13457# Whether dlopen of statically linked programs is supported.
13458dlopen_self_static=$enable_dlopen_self_static
13459
13460# Compiler flag to prevent dynamic linking.
13461link_static_flag=$lt_lt_prog_compiler_static_CXX
13462
13463# Compiler flag to turn off builtin functions.
13464no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13465
13466# Compiler flag to allow reflexive dlopens.
13467export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13468
13469# Compiler flag to generate shared objects directly from archives.
13470whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13471
13472# Compiler flag to generate thread-safe objects.
13473thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13474
13475# Library versioning type.
13476version_type=$version_type
13477
13478# Format of library name prefix.
13479libname_spec=$lt_libname_spec
13480
13481# List of archive names.  First name is the real one, the rest are links.
13482# The last name is the one that the linker finds with -lNAME.
13483library_names_spec=$lt_library_names_spec
13484
13485# The coded name of the library, if different from the real name.
13486soname_spec=$lt_soname_spec
13487
13488# Commands used to build and install an old-style archive.
13489RANLIB=$lt_RANLIB
13490old_archive_cmds=$lt_old_archive_cmds_CXX
13491old_postinstall_cmds=$lt_old_postinstall_cmds
13492old_postuninstall_cmds=$lt_old_postuninstall_cmds
13493
13494# Create an old-style archive from a shared archive.
13495old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13496
13497# Create a temporary old-style archive to link instead of a shared archive.
13498old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13499
13500# Commands used to build and install a shared archive.
13501archive_cmds=$lt_archive_cmds_CXX
13502archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13503postinstall_cmds=$lt_postinstall_cmds
13504postuninstall_cmds=$lt_postuninstall_cmds
13505
13506# Commands used to build a loadable module (assumed same as above if empty)
13507module_cmds=$lt_module_cmds_CXX
13508module_expsym_cmds=$lt_module_expsym_cmds_CXX
13509
13510# Commands to strip libraries.
13511old_striplib=$lt_old_striplib
13512striplib=$lt_striplib
13513
13514# Dependencies to place before the objects being linked to create a
13515# shared library.
13516predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13517
13518# Dependencies to place after the objects being linked to create a
13519# shared library.
13520postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13521
13522# Dependencies to place before the objects being linked to create a
13523# shared library.
13524predeps=$lt_predeps_CXX
13525
13526# Dependencies to place after the objects being linked to create a
13527# shared library.
13528postdeps=$lt_postdeps_CXX
13529
13530# The library search path used internally by the compiler when linking
13531# a shared library.
13532compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13533
13534# Method to check whether dependent libraries are shared objects.
13535deplibs_check_method=$lt_deplibs_check_method
13536
13537# Command to use when deplibs_check_method == file_magic.
13538file_magic_cmd=$lt_file_magic_cmd
13539
13540# Flag that allows shared libraries with undefined symbols to be built.
13541allow_undefined_flag=$lt_allow_undefined_flag_CXX
13542
13543# Flag that forces no undefined symbols.
13544no_undefined_flag=$lt_no_undefined_flag_CXX
13545
13546# Commands used to finish a libtool library installation in a directory.
13547finish_cmds=$lt_finish_cmds
13548
13549# Same as above, but a single script fragment to be evaled but not shown.
13550finish_eval=$lt_finish_eval
13551
13552# Take the output of nm and produce a listing of raw symbols and C names.
13553global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13554
13555# Transform the output of nm in a proper C declaration
13556global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13557
13558# Transform the output of nm in a C name address pair
13559global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13560
13561# This is the shared library runtime path variable.
13562runpath_var=$runpath_var
13563
13564# This is the shared library path variable.
13565shlibpath_var=$shlibpath_var
13566
13567# Is shlibpath searched before the hard-coded library search path?
13568shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13569
13570# How to hardcode a shared library path into an executable.
13571hardcode_action=$hardcode_action_CXX
13572
13573# Whether we should hardcode library paths into libraries.
13574hardcode_into_libs=$hardcode_into_libs
13575
13576# Flag to hardcode \$libdir into a binary during linking.
13577# This must work even if \$libdir does not exist.
13578hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13579
13580# If ld is used when linking, flag to hardcode \$libdir into
13581# a binary during linking. This must work even if \$libdir does
13582# not exist.
13583hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13584
13585# Whether we need a single -rpath flag with a separated argument.
13586hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13587
13588# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13589# resulting binary.
13590hardcode_direct=$hardcode_direct_CXX
13591
13592# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13593# resulting binary.
13594hardcode_minus_L=$hardcode_minus_L_CXX
13595
13596# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13597# the resulting binary.
13598hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13599
13600# Set to yes if building a shared library automatically hardcodes DIR into the library
13601# and all subsequent libraries and executables linked against it.
13602hardcode_automatic=$hardcode_automatic_CXX
13603
13604# Variables whose values should be saved in libtool wrapper scripts and
13605# restored at relink time.
13606variables_saved_for_relink="$variables_saved_for_relink"
13607
13608# Whether libtool must link a program against all its dependency libraries.
13609link_all_deplibs=$link_all_deplibs_CXX
13610
13611# Compile-time system search path for libraries
13612sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13613
13614# Run-time system search path for libraries
13615sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13616
13617# Fix the shell variable \$srcfile for the compiler.
13618fix_srcfile_path="$fix_srcfile_path_CXX"
13619
13620# Set to yes if exported symbols are required.
13621always_export_symbols=$always_export_symbols_CXX
13622
13623# The commands to list exported symbols.
13624export_symbols_cmds=$lt_export_symbols_cmds_CXX
13625
13626# The commands to extract the exported symbol list from a shared archive.
13627extract_expsyms_cmds=$lt_extract_expsyms_cmds
13628
13629# Symbols that should not be listed in the preloaded symbols.
13630exclude_expsyms=$lt_exclude_expsyms_CXX
13631
13632# Symbols that must always be exported.
13633include_expsyms=$lt_include_expsyms_CXX
13634
13635# ### END LIBTOOL TAG CONFIG: $tagname
13636
13637__EOF__
13638
13639
13640else
13641  # If there is no Makefile yet, we rely on a make rule to execute
13642  # `config.status --recheck' to rerun these tests and create the
13643  # libtool script then.
13644  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13645  if test -f "$ltmain_in"; then
13646    test -f Makefile && make "$ltmain"
13647  fi
13648fi
13649
13650
13651ac_ext=c
13652ac_cpp='$CPP $CPPFLAGS'
13653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13655ac_compiler_gnu=$ac_cv_c_compiler_gnu
13656
13657CC=$lt_save_CC
13658LDCXX=$LD
13659LD=$lt_save_LD
13660GCC=$lt_save_GCC
13661with_gnu_ldcxx=$with_gnu_ld
13662with_gnu_ld=$lt_save_with_gnu_ld
13663lt_cv_path_LDCXX=$lt_cv_path_LD
13664lt_cv_path_LD=$lt_save_path_LD
13665lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13666lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13667
13668	else
13669	  tagname=""
13670	fi
13671	;;
13672
13673      F77)
13674	if test -n "$F77" && test "X$F77" != "Xno"; then
13675
13676ac_ext=f
13677ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13678ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13679ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13680
13681
13682archive_cmds_need_lc_F77=no
13683allow_undefined_flag_F77=
13684always_export_symbols_F77=no
13685archive_expsym_cmds_F77=
13686export_dynamic_flag_spec_F77=
13687hardcode_direct_F77=no
13688hardcode_libdir_flag_spec_F77=
13689hardcode_libdir_flag_spec_ld_F77=
13690hardcode_libdir_separator_F77=
13691hardcode_minus_L_F77=no
13692hardcode_automatic_F77=no
13693module_cmds_F77=
13694module_expsym_cmds_F77=
13695link_all_deplibs_F77=unknown
13696old_archive_cmds_F77=$old_archive_cmds
13697no_undefined_flag_F77=
13698whole_archive_flag_spec_F77=
13699enable_shared_with_static_runtimes_F77=no
13700
13701# Source file extension for f77 test sources.
13702ac_ext=f
13703
13704# Object file extension for compiled f77 test sources.
13705objext=o
13706objext_F77=$objext
13707
13708# Code to be used in simple compile tests
13709lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13710
13711# Code to be used in simple link tests
13712lt_simple_link_test_code="      program t\n      end\n"
13713
13714# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13715
13716# If no C compiler was specified, use CC.
13717LTCC=${LTCC-"$CC"}
13718
13719# If no C compiler flags were specified, use CFLAGS.
13720LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13721
13722# Allow CC to be a program name with arguments.
13723compiler=$CC
13724
13725
13726# save warnings/boilerplate of simple test code
13727ac_outfile=conftest.$ac_objext
13728printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13729eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13730_lt_compiler_boilerplate=`cat conftest.err`
13731$rm conftest*
13732
13733ac_outfile=conftest.$ac_objext
13734printf "$lt_simple_link_test_code" >conftest.$ac_ext
13735eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13736_lt_linker_boilerplate=`cat conftest.err`
13737$rm conftest*
13738
13739
13740# Allow CC to be a program name with arguments.
13741lt_save_CC="$CC"
13742CC=${F77-"f77"}
13743compiler=$CC
13744compiler_F77=$CC
13745for cc_temp in $compiler""; do
13746  case $cc_temp in
13747    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13748    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13749    \-*) ;;
13750    *) break;;
13751  esac
13752done
13753cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13754
13755
13756{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13757echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13758{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13759echo "${ECHO_T}$can_build_shared" >&6; }
13760
13761{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13762echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13763test "$can_build_shared" = "no" && enable_shared=no
13764
13765# On AIX, shared libraries and static libraries use the same namespace, and
13766# are all built from PIC.
13767case $host_os in
13768aix3*)
13769  test "$enable_shared" = yes && enable_static=no
13770  if test -n "$RANLIB"; then
13771    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13772    postinstall_cmds='$RANLIB $lib'
13773  fi
13774  ;;
13775aix4* | aix5*)
13776  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13777    test "$enable_shared" = yes && enable_static=no
13778  fi
13779  ;;
13780esac
13781{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13782echo "${ECHO_T}$enable_shared" >&6; }
13783
13784{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13785echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13786# Make sure either enable_shared or enable_static is yes.
13787test "$enable_shared" = yes || enable_static=yes
13788{ echo "$as_me:$LINENO: result: $enable_static" >&5
13789echo "${ECHO_T}$enable_static" >&6; }
13790
13791GCC_F77="$G77"
13792LD_F77="$LD"
13793
13794lt_prog_compiler_wl_F77=
13795lt_prog_compiler_pic_F77=
13796lt_prog_compiler_static_F77=
13797
13798{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13799echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13800
13801  if test "$GCC" = yes; then
13802    lt_prog_compiler_wl_F77='-Wl,'
13803    lt_prog_compiler_static_F77='-static'
13804
13805    case $host_os in
13806      aix*)
13807      # All AIX code is PIC.
13808      if test "$host_cpu" = ia64; then
13809	# AIX 5 now supports IA64 processor
13810	lt_prog_compiler_static_F77='-Bstatic'
13811      fi
13812      ;;
13813
13814    amigaos*)
13815      # FIXME: we need at least 68020 code to build shared libraries, but
13816      # adding the `-m68020' flag to GCC prevents building anything better,
13817      # like `-m68040'.
13818      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13819      ;;
13820
13821    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13822      # PIC is the default for these OSes.
13823      ;;
13824
13825    mingw* | pw32* | os2*)
13826      # This hack is so that the source file can tell whether it is being
13827      # built for inclusion in a dll (and should export symbols for example).
13828      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13829      ;;
13830
13831    darwin* | rhapsody*)
13832      # PIC is the default on this platform
13833      # Common symbols not allowed in MH_DYLIB files
13834      lt_prog_compiler_pic_F77='-fno-common'
13835      ;;
13836
13837    interix3*)
13838      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13839      # Instead, we relocate shared libraries at runtime.
13840      ;;
13841
13842    msdosdjgpp*)
13843      # Just because we use GCC doesn't mean we suddenly get shared libraries
13844      # on systems that don't support them.
13845      lt_prog_compiler_can_build_shared_F77=no
13846      enable_shared=no
13847      ;;
13848
13849    sysv4*MP*)
13850      if test -d /usr/nec; then
13851	lt_prog_compiler_pic_F77=-Kconform_pic
13852      fi
13853      ;;
13854
13855    hpux*)
13856      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13857      # not for PA HP-UX.
13858      case $host_cpu in
13859      hppa*64*|ia64*)
13860	# +Z the default
13861	;;
13862      *)
13863	lt_prog_compiler_pic_F77='-fPIC'
13864	;;
13865      esac
13866      ;;
13867
13868    *)
13869      lt_prog_compiler_pic_F77='-fPIC'
13870      ;;
13871    esac
13872  else
13873    # PORTME Check for flag to pass linker flags through the system compiler.
13874    case $host_os in
13875    aix*)
13876      lt_prog_compiler_wl_F77='-Wl,'
13877      if test "$host_cpu" = ia64; then
13878	# AIX 5 now supports IA64 processor
13879	lt_prog_compiler_static_F77='-Bstatic'
13880      else
13881	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13882      fi
13883      ;;
13884      darwin*)
13885        # PIC is the default on this platform
13886        # Common symbols not allowed in MH_DYLIB files
13887       case $cc_basename in
13888         xlc*)
13889         lt_prog_compiler_pic_F77='-qnocommon'
13890         lt_prog_compiler_wl_F77='-Wl,'
13891         ;;
13892       esac
13893       ;;
13894
13895    mingw* | pw32* | os2*)
13896      # This hack is so that the source file can tell whether it is being
13897      # built for inclusion in a dll (and should export symbols for example).
13898      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13899      ;;
13900
13901    hpux9* | hpux10* | hpux11*)
13902      lt_prog_compiler_wl_F77='-Wl,'
13903      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13904      # not for PA HP-UX.
13905      case $host_cpu in
13906      hppa*64*|ia64*)
13907	# +Z the default
13908	;;
13909      *)
13910	lt_prog_compiler_pic_F77='+Z'
13911	;;
13912      esac
13913      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13914      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13915      ;;
13916
13917    irix5* | irix6* | nonstopux*)
13918      lt_prog_compiler_wl_F77='-Wl,'
13919      # PIC (with -KPIC) is the default.
13920      lt_prog_compiler_static_F77='-non_shared'
13921      ;;
13922
13923    newsos6)
13924      lt_prog_compiler_pic_F77='-KPIC'
13925      lt_prog_compiler_static_F77='-Bstatic'
13926      ;;
13927
13928    linux*)
13929      case $cc_basename in
13930      icc* | ecc*)
13931	lt_prog_compiler_wl_F77='-Wl,'
13932	lt_prog_compiler_pic_F77='-KPIC'
13933	lt_prog_compiler_static_F77='-static'
13934        ;;
13935      pgcc* | pgf77* | pgf90* | pgf95*)
13936        # Portland Group compilers (*not* the Pentium gcc compiler,
13937	# which looks to be a dead project)
13938	lt_prog_compiler_wl_F77='-Wl,'
13939	lt_prog_compiler_pic_F77='-fpic'
13940	lt_prog_compiler_static_F77='-Bstatic'
13941        ;;
13942      ccc*)
13943        lt_prog_compiler_wl_F77='-Wl,'
13944        # All Alpha code is PIC.
13945        lt_prog_compiler_static_F77='-non_shared'
13946        ;;
13947      esac
13948      ;;
13949
13950    osf3* | osf4* | osf5*)
13951      lt_prog_compiler_wl_F77='-Wl,'
13952      # All OSF/1 code is PIC.
13953      lt_prog_compiler_static_F77='-non_shared'
13954      ;;
13955
13956    solaris*)
13957      lt_prog_compiler_pic_F77='-KPIC'
13958      lt_prog_compiler_static_F77='-Bstatic'
13959      case $cc_basename in
13960      f77* | f90* | f95*)
13961	lt_prog_compiler_wl_F77='-Qoption ld ';;
13962      *)
13963	lt_prog_compiler_wl_F77='-Wl,';;
13964      esac
13965      ;;
13966
13967    sunos4*)
13968      lt_prog_compiler_wl_F77='-Qoption ld '
13969      lt_prog_compiler_pic_F77='-PIC'
13970      lt_prog_compiler_static_F77='-Bstatic'
13971      ;;
13972
13973    sysv4 | sysv4.2uw2* | sysv4.3*)
13974      lt_prog_compiler_wl_F77='-Wl,'
13975      lt_prog_compiler_pic_F77='-KPIC'
13976      lt_prog_compiler_static_F77='-Bstatic'
13977      ;;
13978
13979    sysv4*MP*)
13980      if test -d /usr/nec ;then
13981	lt_prog_compiler_pic_F77='-Kconform_pic'
13982	lt_prog_compiler_static_F77='-Bstatic'
13983      fi
13984      ;;
13985
13986    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13987      lt_prog_compiler_wl_F77='-Wl,'
13988      lt_prog_compiler_pic_F77='-KPIC'
13989      lt_prog_compiler_static_F77='-Bstatic'
13990      ;;
13991
13992    unicos*)
13993      lt_prog_compiler_wl_F77='-Wl,'
13994      lt_prog_compiler_can_build_shared_F77=no
13995      ;;
13996
13997    uts4*)
13998      lt_prog_compiler_pic_F77='-pic'
13999      lt_prog_compiler_static_F77='-Bstatic'
14000      ;;
14001
14002    *)
14003      lt_prog_compiler_can_build_shared_F77=no
14004      ;;
14005    esac
14006  fi
14007
14008{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14009echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14010
14011#
14012# Check to make sure the PIC flag actually works.
14013#
14014if test -n "$lt_prog_compiler_pic_F77"; then
14015
14016{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14017echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14018if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14019  echo $ECHO_N "(cached) $ECHO_C" >&6
14020else
14021  lt_prog_compiler_pic_works_F77=no
14022  ac_outfile=conftest.$ac_objext
14023   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14024   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14025   # Insert the option either (1) after the last *FLAGS variable, or
14026   # (2) before a word containing "conftest.", or (3) at the end.
14027   # Note that $ac_compile itself does not contain backslashes and begins
14028   # with a dollar sign (not a hyphen), so the echo should work correctly.
14029   # The option is referenced via a variable to avoid confusing sed.
14030   lt_compile=`echo "$ac_compile" | $SED \
14031   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14032   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14033   -e 's:$: $lt_compiler_flag:'`
14034   (eval echo "\"\$as_me:14034: $lt_compile\"" >&5)
14035   (eval "$lt_compile" 2>conftest.err)
14036   ac_status=$?
14037   cat conftest.err >&5
14038   echo "$as_me:14038: \$? = $ac_status" >&5
14039   if (exit $ac_status) && test -s "$ac_outfile"; then
14040     # The compiler can only warn and ignore the option if not recognized
14041     # So say no if there are warnings other than the usual output.
14042     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14043     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14044     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14045       lt_prog_compiler_pic_works_F77=yes
14046     fi
14047   fi
14048   $rm conftest*
14049
14050fi
14051{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14052echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14053
14054if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14055    case $lt_prog_compiler_pic_F77 in
14056     "" | " "*) ;;
14057     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14058     esac
14059else
14060    lt_prog_compiler_pic_F77=
14061     lt_prog_compiler_can_build_shared_F77=no
14062fi
14063
14064fi
14065case $host_os in
14066  # For platforms which do not support PIC, -DPIC is meaningless:
14067  *djgpp*)
14068    lt_prog_compiler_pic_F77=
14069    ;;
14070  *)
14071    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14072    ;;
14073esac
14074
14075#
14076# Check to make sure the static flag actually works.
14077#
14078wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14079{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14080echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14081if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14082  echo $ECHO_N "(cached) $ECHO_C" >&6
14083else
14084  lt_prog_compiler_static_works_F77=no
14085   save_LDFLAGS="$LDFLAGS"
14086   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14087   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14088   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14089     # The linker can only warn and ignore the option if not recognized
14090     # So say no if there are warnings
14091     if test -s conftest.err; then
14092       # Append any errors to the config.log.
14093       cat conftest.err 1>&5
14094       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14095       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14096       if diff conftest.exp conftest.er2 >/dev/null; then
14097         lt_prog_compiler_static_works_F77=yes
14098       fi
14099     else
14100       lt_prog_compiler_static_works_F77=yes
14101     fi
14102   fi
14103   $rm conftest*
14104   LDFLAGS="$save_LDFLAGS"
14105
14106fi
14107{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14108echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14109
14110if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14111    :
14112else
14113    lt_prog_compiler_static_F77=
14114fi
14115
14116
14117{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14118echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14119if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14120  echo $ECHO_N "(cached) $ECHO_C" >&6
14121else
14122  lt_cv_prog_compiler_c_o_F77=no
14123   $rm -r conftest 2>/dev/null
14124   mkdir conftest
14125   cd conftest
14126   mkdir out
14127   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14128
14129   lt_compiler_flag="-o out/conftest2.$ac_objext"
14130   # Insert the option either (1) after the last *FLAGS variable, or
14131   # (2) before a word containing "conftest.", or (3) at the end.
14132   # Note that $ac_compile itself does not contain backslashes and begins
14133   # with a dollar sign (not a hyphen), so the echo should work correctly.
14134   lt_compile=`echo "$ac_compile" | $SED \
14135   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14136   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14137   -e 's:$: $lt_compiler_flag:'`
14138   (eval echo "\"\$as_me:14138: $lt_compile\"" >&5)
14139   (eval "$lt_compile" 2>out/conftest.err)
14140   ac_status=$?
14141   cat out/conftest.err >&5
14142   echo "$as_me:14142: \$? = $ac_status" >&5
14143   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14144   then
14145     # The compiler can only warn and ignore the option if not recognized
14146     # So say no if there are warnings
14147     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14148     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14149     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14150       lt_cv_prog_compiler_c_o_F77=yes
14151     fi
14152   fi
14153   chmod u+w . 2>&5
14154   $rm conftest*
14155   # SGI C++ compiler will create directory out/ii_files/ for
14156   # template instantiation
14157   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14158   $rm out/* && rmdir out
14159   cd ..
14160   rmdir conftest
14161   $rm conftest*
14162
14163fi
14164{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14165echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14166
14167
14168hard_links="nottested"
14169if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14170  # do not overwrite the value of need_locks provided by the user
14171  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14172echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14173  hard_links=yes
14174  $rm conftest*
14175  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14176  touch conftest.a
14177  ln conftest.a conftest.b 2>&5 || hard_links=no
14178  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14179  { echo "$as_me:$LINENO: result: $hard_links" >&5
14180echo "${ECHO_T}$hard_links" >&6; }
14181  if test "$hard_links" = no; then
14182    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14183echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14184    need_locks=warn
14185  fi
14186else
14187  need_locks=no
14188fi
14189
14190{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14191echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14192
14193  runpath_var=
14194  allow_undefined_flag_F77=
14195  enable_shared_with_static_runtimes_F77=no
14196  archive_cmds_F77=
14197  archive_expsym_cmds_F77=
14198  old_archive_From_new_cmds_F77=
14199  old_archive_from_expsyms_cmds_F77=
14200  export_dynamic_flag_spec_F77=
14201  whole_archive_flag_spec_F77=
14202  thread_safe_flag_spec_F77=
14203  hardcode_libdir_flag_spec_F77=
14204  hardcode_libdir_flag_spec_ld_F77=
14205  hardcode_libdir_separator_F77=
14206  hardcode_direct_F77=no
14207  hardcode_minus_L_F77=no
14208  hardcode_shlibpath_var_F77=unsupported
14209  link_all_deplibs_F77=unknown
14210  hardcode_automatic_F77=no
14211  module_cmds_F77=
14212  module_expsym_cmds_F77=
14213  always_export_symbols_F77=no
14214  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14215  # include_expsyms should be a list of space-separated symbols to be *always*
14216  # included in the symbol list
14217  include_expsyms_F77=
14218  # exclude_expsyms can be an extended regexp of symbols to exclude
14219  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14220  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14221  # as well as any symbol that contains `d'.
14222  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14223  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14224  # platforms (ab)use it in PIC code, but their linkers get confused if
14225  # the symbol is explicitly referenced.  Since portable code cannot
14226  # rely on this symbol name, it's probably fine to never include it in
14227  # preloaded symbol tables.
14228  extract_expsyms_cmds=
14229  # Just being paranoid about ensuring that cc_basename is set.
14230  for cc_temp in $compiler""; do
14231  case $cc_temp in
14232    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14233    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14234    \-*) ;;
14235    *) break;;
14236  esac
14237done
14238cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14239
14240  case $host_os in
14241  cygwin* | mingw* | pw32*)
14242    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14243    # When not using gcc, we currently assume that we are using
14244    # Microsoft Visual C++.
14245    if test "$GCC" != yes; then
14246      with_gnu_ld=no
14247    fi
14248    ;;
14249  interix*)
14250    # we just hope/assume this is gcc and not c89 (= MSVC++)
14251    with_gnu_ld=yes
14252    ;;
14253  openbsd*)
14254    with_gnu_ld=no
14255    ;;
14256  esac
14257
14258  ld_shlibs_F77=yes
14259  if test "$with_gnu_ld" = yes; then
14260    # If archive_cmds runs LD, not CC, wlarc should be empty
14261    wlarc='${wl}'
14262
14263    # Set some defaults for GNU ld with shared library support. These
14264    # are reset later if shared libraries are not supported. Putting them
14265    # here allows them to be overridden if necessary.
14266    runpath_var=LD_RUN_PATH
14267    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14268    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14269    # ancient GNU ld didn't support --whole-archive et. al.
14270    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14271	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14272      else
14273  	whole_archive_flag_spec_F77=
14274    fi
14275    supports_anon_versioning=no
14276    case `$LD -v 2>/dev/null` in
14277      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14278      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14279      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14280      *\ 2.11.*) ;; # other 2.11 versions
14281      *) supports_anon_versioning=yes ;;
14282    esac
14283
14284    # See if GNU ld supports shared libraries.
14285    case $host_os in
14286    aix3* | aix4* | aix5*)
14287      # On AIX/PPC, the GNU linker is very broken
14288      if test "$host_cpu" != ia64; then
14289	ld_shlibs_F77=no
14290	cat <<EOF 1>&2
14291
14292*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14293*** to be unable to reliably create shared libraries on AIX.
14294*** Therefore, libtool is disabling shared libraries support.  If you
14295*** really care for shared libraries, you may want to modify your PATH
14296*** so that a non-GNU linker is found, and then restart.
14297
14298EOF
14299      fi
14300      ;;
14301
14302    amigaos*)
14303      archive_cmds_F77='$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)'
14304      hardcode_libdir_flag_spec_F77='-L$libdir'
14305      hardcode_minus_L_F77=yes
14306
14307      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14308      # that the semantics of dynamic libraries on AmigaOS, at least up
14309      # to version 4, is to share data among multiple programs linked
14310      # with the same dynamic library.  Since this doesn't match the
14311      # behavior of shared libraries on other platforms, we can't use
14312      # them.
14313      ld_shlibs_F77=no
14314      ;;
14315
14316    beos*)
14317      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14318	allow_undefined_flag_F77=unsupported
14319	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14320	# support --undefined.  This deserves some investigation.  FIXME
14321	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14322      else
14323	ld_shlibs_F77=no
14324      fi
14325      ;;
14326
14327    cygwin* | mingw* | pw32*)
14328      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14329      # as there is no search path for DLLs.
14330      hardcode_libdir_flag_spec_F77='-L$libdir'
14331      allow_undefined_flag_F77=unsupported
14332      always_export_symbols_F77=no
14333      enable_shared_with_static_runtimes_F77=yes
14334      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14335
14336      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14337        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14338	# If the export-symbols file already is a .def file (1st line
14339	# is EXPORTS), use it as is; otherwise, prepend...
14340	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14341	  cp $export_symbols $output_objdir/$soname.def;
14342	else
14343	  echo EXPORTS > $output_objdir/$soname.def;
14344	  cat $export_symbols >> $output_objdir/$soname.def;
14345	fi~
14346	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14347      else
14348	ld_shlibs_F77=no
14349      fi
14350      ;;
14351
14352    interix3*)
14353      hardcode_direct_F77=no
14354      hardcode_shlibpath_var_F77=no
14355      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14356      export_dynamic_flag_spec_F77='${wl}-E'
14357      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14358      # Instead, shared libraries are loaded at an image base (0x10000000 by
14359      # default) and relocated if they conflict, which is a slow very memory
14360      # consuming and fragmenting process.  To avoid this, we pick a random,
14361      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14362      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14363      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14364      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14365      ;;
14366
14367    linux*)
14368      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14369	tmp_addflag=
14370	case $cc_basename,$host_cpu in
14371	pgcc*)				# Portland Group C compiler
14372	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14373	  tmp_addflag=' $pic_flag'
14374	  ;;
14375	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14376	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14377	  tmp_addflag=' $pic_flag -Mnomain' ;;
14378	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14379	  tmp_addflag=' -i_dynamic' ;;
14380	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14381	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14382	ifc* | ifort*)			# Intel Fortran compiler
14383	  tmp_addflag=' -nofor_main' ;;
14384	esac
14385	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14386
14387	if test $supports_anon_versioning = yes; then
14388	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14389  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14390  $echo "local: *; };" >> $output_objdir/$libname.ver~
14391	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14392	fi
14393      else
14394	ld_shlibs_F77=no
14395      fi
14396      ;;
14397
14398    netbsd*)
14399      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14400	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14401	wlarc=
14402      else
14403	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14404	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14405      fi
14406      ;;
14407
14408    solaris*)
14409      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14410	ld_shlibs_F77=no
14411	cat <<EOF 1>&2
14412
14413*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14414*** create shared libraries on Solaris systems.  Therefore, libtool
14415*** is disabling shared libraries support.  We urge you to upgrade GNU
14416*** binutils to release 2.9.1 or newer.  Another option is to modify
14417*** your PATH or compiler configuration so that the native linker is
14418*** used, and then restart.
14419
14420EOF
14421      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14422	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14423	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14424      else
14425	ld_shlibs_F77=no
14426      fi
14427      ;;
14428
14429    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14430      case `$LD -v 2>&1` in
14431        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14432	ld_shlibs_F77=no
14433	cat <<_LT_EOF 1>&2
14434
14435*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14436*** reliably create shared libraries on SCO systems.  Therefore, libtool
14437*** is disabling shared libraries support.  We urge you to upgrade GNU
14438*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14439*** your PATH or compiler configuration so that the native linker is
14440*** used, and then restart.
14441
14442_LT_EOF
14443	;;
14444	*)
14445	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14446	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14447	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14448	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14449	  else
14450	    ld_shlibs_F77=no
14451	  fi
14452	;;
14453      esac
14454      ;;
14455
14456    sunos4*)
14457      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14458      wlarc=
14459      hardcode_direct_F77=yes
14460      hardcode_shlibpath_var_F77=no
14461      ;;
14462
14463    *)
14464      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14465	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14466	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14467      else
14468	ld_shlibs_F77=no
14469      fi
14470      ;;
14471    esac
14472
14473    if test "$ld_shlibs_F77" = no; then
14474      runpath_var=
14475      hardcode_libdir_flag_spec_F77=
14476      export_dynamic_flag_spec_F77=
14477      whole_archive_flag_spec_F77=
14478    fi
14479  else
14480    # PORTME fill in a description of your system's linker (not GNU ld)
14481    case $host_os in
14482    aix3*)
14483      allow_undefined_flag_F77=unsupported
14484      always_export_symbols_F77=yes
14485      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14486      # Note: this linker hardcodes the directories in LIBPATH if there
14487      # are no directories specified by -L.
14488      hardcode_minus_L_F77=yes
14489      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14490	# Neither direct hardcoding nor static linking is supported with a
14491	# broken collect2.
14492	hardcode_direct_F77=unsupported
14493      fi
14494      ;;
14495
14496    aix4* | aix5*)
14497      if test "$host_cpu" = ia64; then
14498	# On IA64, the linker does run time linking by default, so we don't
14499	# have to do anything special.
14500	aix_use_runtimelinking=no
14501	exp_sym_flag='-Bexport'
14502	no_entry_flag=""
14503      else
14504	# If we're using GNU nm, then we don't want the "-C" option.
14505	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14506	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14507	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14508	else
14509	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14510	fi
14511	aix_use_runtimelinking=no
14512
14513	# Test if we are trying to use run time linking or normal
14514	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14515	# need to do runtime linking.
14516	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14517	  for ld_flag in $LDFLAGS; do
14518  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14519  	    aix_use_runtimelinking=yes
14520  	    break
14521  	  fi
14522	  done
14523	  ;;
14524	esac
14525
14526	exp_sym_flag='-bexport'
14527	no_entry_flag='-bnoentry'
14528      fi
14529
14530      # When large executables or shared objects are built, AIX ld can
14531      # have problems creating the table of contents.  If linking a library
14532      # or program results in "error TOC overflow" add -mminimal-toc to
14533      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14534      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14535
14536      archive_cmds_F77=''
14537      hardcode_direct_F77=yes
14538      hardcode_libdir_separator_F77=':'
14539      link_all_deplibs_F77=yes
14540
14541      if test "$GCC" = yes; then
14542	case $host_os in aix4.[012]|aix4.[012].*)
14543	# We only want to do this on AIX 4.2 and lower, the check
14544	# below for broken collect2 doesn't work under 4.3+
14545	  collect2name=`${CC} -print-prog-name=collect2`
14546	  if test -f "$collect2name" && \
14547  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14548	  then
14549  	  # We have reworked collect2
14550  	  hardcode_direct_F77=yes
14551	  else
14552  	  # We have old collect2
14553  	  hardcode_direct_F77=unsupported
14554  	  # It fails to find uninstalled libraries when the uninstalled
14555  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14556  	  # to unsupported forces relinking
14557  	  hardcode_minus_L_F77=yes
14558  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14559  	  hardcode_libdir_separator_F77=
14560	  fi
14561	  ;;
14562	esac
14563	shared_flag='-shared'
14564	if test "$aix_use_runtimelinking" = yes; then
14565	  shared_flag="$shared_flag "'${wl}-G'
14566	fi
14567      else
14568	# not using gcc
14569	if test "$host_cpu" = ia64; then
14570  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14571  	# chokes on -Wl,-G. The following line is correct:
14572	  shared_flag='-G'
14573	else
14574	  if test "$aix_use_runtimelinking" = yes; then
14575	    shared_flag='${wl}-G'
14576	  else
14577	    shared_flag='${wl}-bM:SRE'
14578	  fi
14579	fi
14580      fi
14581
14582      # It seems that -bexpall does not export symbols beginning with
14583      # underscore (_), so it is better to generate a list of symbols to export.
14584      always_export_symbols_F77=yes
14585      if test "$aix_use_runtimelinking" = yes; then
14586	# Warning - without using the other runtime loading flags (-brtl),
14587	# -berok will link without error, but may produce a broken library.
14588	allow_undefined_flag_F77='-berok'
14589       # Determine the default libpath from the value encoded in an empty executable.
14590       cat >conftest.$ac_ext <<_ACEOF
14591      program main
14592
14593      end
14594_ACEOF
14595rm -f conftest.$ac_objext conftest$ac_exeext
14596if { (ac_try="$ac_link"
14597case "(($ac_try" in
14598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599  *) ac_try_echo=$ac_try;;
14600esac
14601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602  (eval "$ac_link") 2>conftest.er1
14603  ac_status=$?
14604  grep -v '^ *+' conftest.er1 >conftest.err
14605  rm -f conftest.er1
14606  cat conftest.err >&5
14607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608  (exit $ac_status); } && {
14609	 test -z "$ac_f77_werror_flag" ||
14610	 test ! -s conftest.err
14611       } && test -s conftest$ac_exeext &&
14612       $as_test_x conftest$ac_exeext; then
14613
14614aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14615}'`
14616# Check for a 64-bit object if we didn't find anything.
14617if 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; }
14618}'`; fi
14619else
14620  echo "$as_me: failed program was:" >&5
14621sed 's/^/| /' conftest.$ac_ext >&5
14622
14623
14624fi
14625
14626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14627      conftest$ac_exeext conftest.$ac_ext
14628if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14629
14630       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14631	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14632       else
14633	if test "$host_cpu" = ia64; then
14634	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14635	  allow_undefined_flag_F77="-z nodefs"
14636	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14637	else
14638	 # Determine the default libpath from the value encoded in an empty executable.
14639	 cat >conftest.$ac_ext <<_ACEOF
14640      program main
14641
14642      end
14643_ACEOF
14644rm -f conftest.$ac_objext conftest$ac_exeext
14645if { (ac_try="$ac_link"
14646case "(($ac_try" in
14647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648  *) ac_try_echo=$ac_try;;
14649esac
14650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651  (eval "$ac_link") 2>conftest.er1
14652  ac_status=$?
14653  grep -v '^ *+' conftest.er1 >conftest.err
14654  rm -f conftest.er1
14655  cat conftest.err >&5
14656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657  (exit $ac_status); } && {
14658	 test -z "$ac_f77_werror_flag" ||
14659	 test ! -s conftest.err
14660       } && test -s conftest$ac_exeext &&
14661       $as_test_x conftest$ac_exeext; then
14662
14663aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14664}'`
14665# Check for a 64-bit object if we didn't find anything.
14666if 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; }
14667}'`; fi
14668else
14669  echo "$as_me: failed program was:" >&5
14670sed 's/^/| /' conftest.$ac_ext >&5
14671
14672
14673fi
14674
14675rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14676      conftest$ac_exeext conftest.$ac_ext
14677if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14678
14679	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14680	  # Warning - without using the other run time loading flags,
14681	  # -berok will link without error, but may produce a broken library.
14682	  no_undefined_flag_F77=' ${wl}-bernotok'
14683	  allow_undefined_flag_F77=' ${wl}-berok'
14684	  # Exported symbols can be pulled into shared objects from archives
14685	  whole_archive_flag_spec_F77='$convenience'
14686	  archive_cmds_need_lc_F77=yes
14687	  # This is similar to how AIX traditionally builds its shared libraries.
14688	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14689	fi
14690      fi
14691      ;;
14692
14693    amigaos*)
14694      archive_cmds_F77='$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)'
14695      hardcode_libdir_flag_spec_F77='-L$libdir'
14696      hardcode_minus_L_F77=yes
14697      # see comment about different semantics on the GNU ld section
14698      ld_shlibs_F77=no
14699      ;;
14700
14701    bsdi[45]*)
14702      export_dynamic_flag_spec_F77=-rdynamic
14703      ;;
14704
14705    cygwin* | mingw* | pw32*)
14706      # When not using gcc, we currently assume that we are using
14707      # Microsoft Visual C++.
14708      # hardcode_libdir_flag_spec is actually meaningless, as there is
14709      # no search path for DLLs.
14710      hardcode_libdir_flag_spec_F77=' '
14711      allow_undefined_flag_F77=unsupported
14712      # Tell ltmain to make .lib files, not .a files.
14713      libext=lib
14714      # Tell ltmain to make .dll files, not .so files.
14715      shrext_cmds=".dll"
14716      # FIXME: Setting linknames here is a bad hack.
14717      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14718      # The linker will automatically build a .lib file if we build a DLL.
14719      old_archive_From_new_cmds_F77='true'
14720      # FIXME: Should let the user specify the lib program.
14721      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14722      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14723      enable_shared_with_static_runtimes_F77=yes
14724      ;;
14725
14726    darwin* | rhapsody*)
14727      case $host_os in
14728        rhapsody* | darwin1.[012])
14729         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14730         ;;
14731       *) # Darwin 1.3 on
14732         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14733           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14734         else
14735           case ${MACOSX_DEPLOYMENT_TARGET} in
14736             10.[012])
14737               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14738               ;;
14739             10.*)
14740               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14741               ;;
14742           esac
14743         fi
14744         ;;
14745      esac
14746      archive_cmds_need_lc_F77=no
14747      hardcode_direct_F77=no
14748      hardcode_automatic_F77=yes
14749      hardcode_shlibpath_var_F77=unsupported
14750      whole_archive_flag_spec_F77=''
14751      link_all_deplibs_F77=yes
14752    if test "$GCC" = yes ; then
14753    	output_verbose_link_cmd='echo'
14754        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14755      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14756      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14757      archive_expsym_cmds_F77='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}'
14758      module_expsym_cmds_F77='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}'
14759    else
14760      case $cc_basename in
14761        xlc*)
14762         output_verbose_link_cmd='echo'
14763         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14764         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14765          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14766         archive_expsym_cmds_F77='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}'
14767          module_expsym_cmds_F77='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}'
14768          ;;
14769       *)
14770         ld_shlibs_F77=no
14771          ;;
14772      esac
14773    fi
14774      ;;
14775
14776    dgux*)
14777      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14778      hardcode_libdir_flag_spec_F77='-L$libdir'
14779      hardcode_shlibpath_var_F77=no
14780      ;;
14781
14782    freebsd1*)
14783      ld_shlibs_F77=no
14784      ;;
14785
14786    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14787    # support.  Future versions do this automatically, but an explicit c++rt0.o
14788    # does not break anything, and helps significantly (at the cost of a little
14789    # extra space).
14790    freebsd2.2*)
14791      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14792      hardcode_libdir_flag_spec_F77='-R$libdir'
14793      hardcode_direct_F77=yes
14794      hardcode_shlibpath_var_F77=no
14795      ;;
14796
14797    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14798    freebsd2*)
14799      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14800      hardcode_direct_F77=yes
14801      hardcode_minus_L_F77=yes
14802      hardcode_shlibpath_var_F77=no
14803      ;;
14804
14805    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14806    freebsd* | kfreebsd*-gnu | dragonfly*)
14807      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14808      hardcode_libdir_flag_spec_F77='-R$libdir'
14809      hardcode_direct_F77=yes
14810      hardcode_shlibpath_var_F77=no
14811      ;;
14812
14813    hpux9*)
14814      if test "$GCC" = yes; then
14815	archive_cmds_F77='$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'
14816      else
14817	archive_cmds_F77='$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'
14818      fi
14819      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14820      hardcode_libdir_separator_F77=:
14821      hardcode_direct_F77=yes
14822
14823      # hardcode_minus_L: Not really in the search PATH,
14824      # but as the default location of the library.
14825      hardcode_minus_L_F77=yes
14826      export_dynamic_flag_spec_F77='${wl}-E'
14827      ;;
14828
14829    hpux10*)
14830      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14831	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14832      else
14833	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14834      fi
14835      if test "$with_gnu_ld" = no; then
14836	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14837	hardcode_libdir_separator_F77=:
14838
14839	hardcode_direct_F77=yes
14840	export_dynamic_flag_spec_F77='${wl}-E'
14841
14842	# hardcode_minus_L: Not really in the search PATH,
14843	# but as the default location of the library.
14844	hardcode_minus_L_F77=yes
14845      fi
14846      ;;
14847
14848    hpux11*)
14849      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14850	case $host_cpu in
14851	hppa*64*)
14852	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14853	  ;;
14854	ia64*)
14855	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14856	  ;;
14857	*)
14858	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14859	  ;;
14860	esac
14861      else
14862	case $host_cpu in
14863	hppa*64*)
14864	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14865	  ;;
14866	ia64*)
14867	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14868	  ;;
14869	*)
14870	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14871	  ;;
14872	esac
14873      fi
14874      if test "$with_gnu_ld" = no; then
14875	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14876	hardcode_libdir_separator_F77=:
14877
14878	case $host_cpu in
14879	hppa*64*|ia64*)
14880	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14881	  hardcode_direct_F77=no
14882	  hardcode_shlibpath_var_F77=no
14883	  ;;
14884	*)
14885	  hardcode_direct_F77=yes
14886	  export_dynamic_flag_spec_F77='${wl}-E'
14887
14888	  # hardcode_minus_L: Not really in the search PATH,
14889	  # but as the default location of the library.
14890	  hardcode_minus_L_F77=yes
14891	  ;;
14892	esac
14893      fi
14894      ;;
14895
14896    irix5* | irix6* | nonstopux*)
14897      if test "$GCC" = yes; then
14898	archive_cmds_F77='$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'
14899      else
14900	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14901	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14902      fi
14903      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14904      hardcode_libdir_separator_F77=:
14905      link_all_deplibs_F77=yes
14906      ;;
14907
14908    netbsd*)
14909      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14910	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14911      else
14912	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14913      fi
14914      hardcode_libdir_flag_spec_F77='-R$libdir'
14915      hardcode_direct_F77=yes
14916      hardcode_shlibpath_var_F77=no
14917      ;;
14918
14919    newsos6)
14920      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14921      hardcode_direct_F77=yes
14922      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14923      hardcode_libdir_separator_F77=:
14924      hardcode_shlibpath_var_F77=no
14925      ;;
14926
14927    openbsd*)
14928      hardcode_direct_F77=yes
14929      hardcode_shlibpath_var_F77=no
14930      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14931	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14932	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14933	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14934	export_dynamic_flag_spec_F77='${wl}-E'
14935      else
14936       case $host_os in
14937	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14938	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14939	   hardcode_libdir_flag_spec_F77='-R$libdir'
14940	   ;;
14941	 *)
14942	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14943	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14944	   ;;
14945       esac
14946      fi
14947      ;;
14948
14949    os2*)
14950      hardcode_libdir_flag_spec_F77='-L$libdir'
14951      hardcode_minus_L_F77=yes
14952      allow_undefined_flag_F77=unsupported
14953      archive_cmds_F77='$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'
14954      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14955      ;;
14956
14957    osf3*)
14958      if test "$GCC" = yes; then
14959	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14960	archive_cmds_F77='$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'
14961      else
14962	allow_undefined_flag_F77=' -expect_unresolved \*'
14963	archive_cmds_F77='$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'
14964      fi
14965      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14966      hardcode_libdir_separator_F77=:
14967      ;;
14968
14969    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14970      if test "$GCC" = yes; then
14971	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14972	archive_cmds_F77='$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'
14973	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14974      else
14975	allow_undefined_flag_F77=' -expect_unresolved \*'
14976	archive_cmds_F77='$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'
14977	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14978	$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'
14979
14980	# Both c and cxx compiler support -rpath directly
14981	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14982      fi
14983      hardcode_libdir_separator_F77=:
14984      ;;
14985
14986    solaris*)
14987      no_undefined_flag_F77=' -z text'
14988      if test "$GCC" = yes; then
14989	wlarc='${wl}'
14990	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14991	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14992	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14993      else
14994	wlarc=''
14995	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14996	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14997  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14998      fi
14999      hardcode_libdir_flag_spec_F77='-R$libdir'
15000      hardcode_shlibpath_var_F77=no
15001      case $host_os in
15002      solaris2.[0-5] | solaris2.[0-5].*) ;;
15003      *)
15004 	# The compiler driver will combine linker options so we
15005 	# cannot just pass the convience library names through
15006 	# without $wl, iff we do not link with $LD.
15007 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15008 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15009 	case $wlarc in
15010 	'')
15011 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15012 	*)
15013 	  whole_archive_flag_spec_F77='${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' ;;
15014 	esac ;;
15015      esac
15016      link_all_deplibs_F77=yes
15017      ;;
15018
15019    sunos4*)
15020      if test "x$host_vendor" = xsequent; then
15021	# Use $CC to link under sequent, because it throws in some extra .o
15022	# files that make .init and .fini sections work.
15023	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15024      else
15025	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15026      fi
15027      hardcode_libdir_flag_spec_F77='-L$libdir'
15028      hardcode_direct_F77=yes
15029      hardcode_minus_L_F77=yes
15030      hardcode_shlibpath_var_F77=no
15031      ;;
15032
15033    sysv4)
15034      case $host_vendor in
15035	sni)
15036	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15037	  hardcode_direct_F77=yes # is this really true???
15038	;;
15039	siemens)
15040	  ## LD is ld it makes a PLAMLIB
15041	  ## CC just makes a GrossModule.
15042	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15043	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15044	  hardcode_direct_F77=no
15045        ;;
15046	motorola)
15047	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15048	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15049	;;
15050      esac
15051      runpath_var='LD_RUN_PATH'
15052      hardcode_shlibpath_var_F77=no
15053      ;;
15054
15055    sysv4.3*)
15056      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15057      hardcode_shlibpath_var_F77=no
15058      export_dynamic_flag_spec_F77='-Bexport'
15059      ;;
15060
15061    sysv4*MP*)
15062      if test -d /usr/nec; then
15063	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15064	hardcode_shlibpath_var_F77=no
15065	runpath_var=LD_RUN_PATH
15066	hardcode_runpath_var=yes
15067	ld_shlibs_F77=yes
15068      fi
15069      ;;
15070
15071    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15072      no_undefined_flag_F77='${wl}-z,text'
15073      archive_cmds_need_lc_F77=no
15074      hardcode_shlibpath_var_F77=no
15075      runpath_var='LD_RUN_PATH'
15076
15077      if test "$GCC" = yes; then
15078	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15079	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15080      else
15081	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15082	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15083      fi
15084      ;;
15085
15086    sysv5* | sco3.2v5* | sco5v6*)
15087      # Note: We can NOT use -z defs as we might desire, because we do not
15088      # link with -lc, and that would cause any symbols used from libc to
15089      # always be unresolved, which means just about no library would
15090      # ever link correctly.  If we're not using GNU ld we use -z text
15091      # though, which does catch some bad symbols but isn't as heavy-handed
15092      # as -z defs.
15093      no_undefined_flag_F77='${wl}-z,text'
15094      allow_undefined_flag_F77='${wl}-z,nodefs'
15095      archive_cmds_need_lc_F77=no
15096      hardcode_shlibpath_var_F77=no
15097      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15098      hardcode_libdir_separator_F77=':'
15099      link_all_deplibs_F77=yes
15100      export_dynamic_flag_spec_F77='${wl}-Bexport'
15101      runpath_var='LD_RUN_PATH'
15102
15103      if test "$GCC" = yes; then
15104	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15105	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15106      else
15107	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15108	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15109      fi
15110      ;;
15111
15112    uts4*)
15113      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15114      hardcode_libdir_flag_spec_F77='-L$libdir'
15115      hardcode_shlibpath_var_F77=no
15116      ;;
15117
15118    *)
15119      ld_shlibs_F77=no
15120      ;;
15121    esac
15122  fi
15123
15124{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15125echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15126test "$ld_shlibs_F77" = no && can_build_shared=no
15127
15128#
15129# Do we need to explicitly link libc?
15130#
15131case "x$archive_cmds_need_lc_F77" in
15132x|xyes)
15133  # Assume -lc should be added
15134  archive_cmds_need_lc_F77=yes
15135
15136  if test "$enable_shared" = yes && test "$GCC" = yes; then
15137    case $archive_cmds_F77 in
15138    *'~'*)
15139      # FIXME: we may have to deal with multi-command sequences.
15140      ;;
15141    '$CC '*)
15142      # Test whether the compiler implicitly links with -lc since on some
15143      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15144      # to ld, don't add -lc before -lgcc.
15145      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15146echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15147      $rm conftest*
15148      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15149
15150      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15151  (eval $ac_compile) 2>&5
15152  ac_status=$?
15153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154  (exit $ac_status); } 2>conftest.err; then
15155        soname=conftest
15156        lib=conftest
15157        libobjs=conftest.$ac_objext
15158        deplibs=
15159        wl=$lt_prog_compiler_wl_F77
15160	pic_flag=$lt_prog_compiler_pic_F77
15161        compiler_flags=-v
15162        linker_flags=-v
15163        verstring=
15164        output_objdir=.
15165        libname=conftest
15166        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15167        allow_undefined_flag_F77=
15168        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15169  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15170  ac_status=$?
15171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172  (exit $ac_status); }
15173        then
15174	  archive_cmds_need_lc_F77=no
15175        else
15176	  archive_cmds_need_lc_F77=yes
15177        fi
15178        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15179      else
15180        cat conftest.err 1>&5
15181      fi
15182      $rm conftest*
15183      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15184echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15185      ;;
15186    esac
15187  fi
15188  ;;
15189esac
15190
15191{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15192echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15193library_names_spec=
15194libname_spec='lib$name'
15195soname_spec=
15196shrext_cmds=".so"
15197postinstall_cmds=
15198postuninstall_cmds=
15199finish_cmds=
15200finish_eval=
15201shlibpath_var=
15202shlibpath_overrides_runpath=unknown
15203version_type=none
15204dynamic_linker="$host_os ld.so"
15205sys_lib_dlsearch_path_spec="/lib /usr/lib"
15206if test "$GCC" = yes; then
15207  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15208  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15209    # if the path contains ";" then we assume it to be the separator
15210    # otherwise default to the standard path separator (i.e. ":") - it is
15211    # assumed that no part of a normal pathname contains ";" but that should
15212    # okay in the real world where ";" in dirpaths is itself problematic.
15213    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15214  else
15215    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15216  fi
15217else
15218  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15219fi
15220need_lib_prefix=unknown
15221hardcode_into_libs=no
15222
15223# when you set need_version to no, make sure it does not cause -set_version
15224# flags to be left without arguments
15225need_version=unknown
15226
15227case $host_os in
15228aix3*)
15229  version_type=linux
15230  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15231  shlibpath_var=LIBPATH
15232
15233  # AIX 3 has no versioning support, so we append a major version to the name.
15234  soname_spec='${libname}${release}${shared_ext}$major'
15235  ;;
15236
15237aix4* | aix5*)
15238  version_type=linux
15239  need_lib_prefix=no
15240  need_version=no
15241  hardcode_into_libs=yes
15242  if test "$host_cpu" = ia64; then
15243    # AIX 5 supports IA64
15244    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15245    shlibpath_var=LD_LIBRARY_PATH
15246  else
15247    # With GCC up to 2.95.x, collect2 would create an import file
15248    # for dependence libraries.  The import file would start with
15249    # the line `#! .'.  This would cause the generated library to
15250    # depend on `.', always an invalid library.  This was fixed in
15251    # development snapshots of GCC prior to 3.0.
15252    case $host_os in
15253      aix4 | aix4.[01] | aix4.[01].*)
15254      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15255	   echo ' yes '
15256	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15257	:
15258      else
15259	can_build_shared=no
15260      fi
15261      ;;
15262    esac
15263    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15264    # soname into executable. Probably we can add versioning support to
15265    # collect2, so additional links can be useful in future.
15266    if test "$aix_use_runtimelinking" = yes; then
15267      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15268      # instead of lib<name>.a to let people know that these are not
15269      # typical AIX shared libraries.
15270      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15271    else
15272      # We preserve .a as extension for shared libraries through AIX4.2
15273      # and later when we are not doing run time linking.
15274      library_names_spec='${libname}${release}.a $libname.a'
15275      soname_spec='${libname}${release}${shared_ext}$major'
15276    fi
15277    shlibpath_var=LIBPATH
15278  fi
15279  ;;
15280
15281amigaos*)
15282  library_names_spec='$libname.ixlibrary $libname.a'
15283  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15284  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'
15285  ;;
15286
15287beos*)
15288  library_names_spec='${libname}${shared_ext}'
15289  dynamic_linker="$host_os ld.so"
15290  shlibpath_var=LIBRARY_PATH
15291  ;;
15292
15293bsdi[45]*)
15294  version_type=linux
15295  need_version=no
15296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15297  soname_spec='${libname}${release}${shared_ext}$major'
15298  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15299  shlibpath_var=LD_LIBRARY_PATH
15300  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15301  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15302  # the default ld.so.conf also contains /usr/contrib/lib and
15303  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15304  # libtool to hard-code these into programs
15305  ;;
15306
15307cygwin* | mingw* | pw32*)
15308  version_type=windows
15309  shrext_cmds=".dll"
15310  need_version=no
15311  need_lib_prefix=no
15312
15313  case $GCC,$host_os in
15314  yes,cygwin* | yes,mingw* | yes,pw32*)
15315    library_names_spec='$libname.dll.a'
15316    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15317    postinstall_cmds='base_file=`basename \${file}`~
15318      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15319      dldir=$destdir/`dirname \$dlpath`~
15320      test -d \$dldir || mkdir -p \$dldir~
15321      $install_prog $dir/$dlname \$dldir/$dlname~
15322      chmod a+x \$dldir/$dlname'
15323    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15324      dlpath=$dir/\$dldll~
15325       $rm \$dlpath'
15326    shlibpath_overrides_runpath=yes
15327
15328    case $host_os in
15329    cygwin*)
15330      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15331      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15332      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15333      ;;
15334    mingw*)
15335      # MinGW DLLs use traditional 'lib' prefix
15336      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15337      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15338      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15339        # It is most probably a Windows format PATH printed by
15340        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15341        # path with ; separators, and with drive letters. We can handle the
15342        # drive letters (cygwin fileutils understands them), so leave them,
15343        # especially as we might pass files found there to a mingw objdump,
15344        # which wouldn't understand a cygwinified path. Ahh.
15345        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15346      else
15347        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15348      fi
15349      ;;
15350    pw32*)
15351      # pw32 DLLs use 'pw' prefix rather than 'lib'
15352      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15353      ;;
15354    esac
15355    ;;
15356
15357  *)
15358    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15359    ;;
15360  esac
15361  dynamic_linker='Win32 ld.exe'
15362  # FIXME: first we should search . and the directory the executable is in
15363  shlibpath_var=PATH
15364  ;;
15365
15366darwin* | rhapsody*)
15367  dynamic_linker="$host_os dyld"
15368  version_type=darwin
15369  need_lib_prefix=no
15370  need_version=no
15371  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15372  soname_spec='${libname}${release}${major}$shared_ext'
15373  shlibpath_overrides_runpath=yes
15374  shlibpath_var=DYLD_LIBRARY_PATH
15375  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15376  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15377  if test "$GCC" = yes; then
15378    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"`
15379  else
15380    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15381  fi
15382  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15383  ;;
15384
15385dgux*)
15386  version_type=linux
15387  need_lib_prefix=no
15388  need_version=no
15389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15390  soname_spec='${libname}${release}${shared_ext}$major'
15391  shlibpath_var=LD_LIBRARY_PATH
15392  ;;
15393
15394freebsd1*)
15395  dynamic_linker=no
15396  ;;
15397
15398kfreebsd*-gnu)
15399  version_type=linux
15400  need_lib_prefix=no
15401  need_version=no
15402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15403  soname_spec='${libname}${release}${shared_ext}$major'
15404  shlibpath_var=LD_LIBRARY_PATH
15405  shlibpath_overrides_runpath=no
15406  hardcode_into_libs=yes
15407  dynamic_linker='GNU ld.so'
15408  ;;
15409
15410freebsd* | dragonfly*)
15411  # DragonFly does not have aout.  When/if they implement a new
15412  # versioning mechanism, adjust this.
15413  if test -x /usr/bin/objformat; then
15414    objformat=`/usr/bin/objformat`
15415  else
15416    case $host_os in
15417    freebsd[123]*) objformat=aout ;;
15418    *) objformat=elf ;;
15419    esac
15420  fi
15421  version_type=freebsd-$objformat
15422  case $version_type in
15423    freebsd-elf*)
15424      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15425      need_version=no
15426      need_lib_prefix=no
15427      ;;
15428    freebsd-*)
15429      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15430      need_version=yes
15431      ;;
15432  esac
15433  shlibpath_var=LD_LIBRARY_PATH
15434  case $host_os in
15435  freebsd2*)
15436    shlibpath_overrides_runpath=yes
15437    ;;
15438  freebsd3.[01]* | freebsdelf3.[01]*)
15439    shlibpath_overrides_runpath=yes
15440    hardcode_into_libs=yes
15441    ;;
15442  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15443  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15444    shlibpath_overrides_runpath=no
15445    hardcode_into_libs=yes
15446    ;;
15447  freebsd*) # from 4.6 on
15448    shlibpath_overrides_runpath=yes
15449    hardcode_into_libs=yes
15450    ;;
15451  esac
15452  ;;
15453
15454gnu*)
15455  version_type=linux
15456  need_lib_prefix=no
15457  need_version=no
15458  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15459  soname_spec='${libname}${release}${shared_ext}$major'
15460  shlibpath_var=LD_LIBRARY_PATH
15461  hardcode_into_libs=yes
15462  ;;
15463
15464hpux9* | hpux10* | hpux11*)
15465  # Give a soname corresponding to the major version so that dld.sl refuses to
15466  # link against other versions.
15467  version_type=sunos
15468  need_lib_prefix=no
15469  need_version=no
15470  case $host_cpu in
15471  ia64*)
15472    shrext_cmds='.so'
15473    hardcode_into_libs=yes
15474    dynamic_linker="$host_os dld.so"
15475    shlibpath_var=LD_LIBRARY_PATH
15476    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15477    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15478    soname_spec='${libname}${release}${shared_ext}$major'
15479    if test "X$HPUX_IA64_MODE" = X32; then
15480      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15481    else
15482      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15483    fi
15484    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15485    ;;
15486   hppa*64*)
15487     shrext_cmds='.sl'
15488     hardcode_into_libs=yes
15489     dynamic_linker="$host_os dld.sl"
15490     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15491     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15492     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15493     soname_spec='${libname}${release}${shared_ext}$major'
15494     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15495     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15496     ;;
15497   *)
15498    shrext_cmds='.sl'
15499    dynamic_linker="$host_os dld.sl"
15500    shlibpath_var=SHLIB_PATH
15501    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15502    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15503    soname_spec='${libname}${release}${shared_ext}$major'
15504    ;;
15505  esac
15506  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15507  postinstall_cmds='chmod 555 $lib'
15508  ;;
15509
15510interix3*)
15511  version_type=linux
15512  need_lib_prefix=no
15513  need_version=no
15514  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15515  soname_spec='${libname}${release}${shared_ext}$major'
15516  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15517  shlibpath_var=LD_LIBRARY_PATH
15518  shlibpath_overrides_runpath=no
15519  hardcode_into_libs=yes
15520  ;;
15521
15522irix5* | irix6* | nonstopux*)
15523  case $host_os in
15524    nonstopux*) version_type=nonstopux ;;
15525    *)
15526	if test "$lt_cv_prog_gnu_ld" = yes; then
15527		version_type=linux
15528	else
15529		version_type=irix
15530	fi ;;
15531  esac
15532  need_lib_prefix=no
15533  need_version=no
15534  soname_spec='${libname}${release}${shared_ext}$major'
15535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15536  case $host_os in
15537  irix5* | nonstopux*)
15538    libsuff= shlibsuff=
15539    ;;
15540  *)
15541    case $LD in # libtool.m4 will add one of these switches to LD
15542    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15543      libsuff= shlibsuff= libmagic=32-bit;;
15544    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15545      libsuff=32 shlibsuff=N32 libmagic=N32;;
15546    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15547      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15548    *) libsuff= shlibsuff= libmagic=never-match;;
15549    esac
15550    ;;
15551  esac
15552  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15553  shlibpath_overrides_runpath=no
15554  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15555  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15556  hardcode_into_libs=yes
15557  ;;
15558
15559# No shared lib support for Linux oldld, aout, or coff.
15560linux*oldld* | linux*aout* | linux*coff*)
15561  dynamic_linker=no
15562  ;;
15563
15564# This must be Linux ELF.
15565linux*)
15566  version_type=linux
15567  need_lib_prefix=no
15568  need_version=no
15569  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15570  soname_spec='${libname}${release}${shared_ext}$major'
15571  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15572  shlibpath_var=LD_LIBRARY_PATH
15573  shlibpath_overrides_runpath=no
15574  # This implies no fast_install, which is unacceptable.
15575  # Some rework will be needed to allow for fast_install
15576  # before this can be enabled.
15577  hardcode_into_libs=yes
15578
15579  # find out which ABI we are using
15580  libsuff=
15581  case "$host_cpu" in
15582  x86_64*|s390x*|powerpc64*)
15583    echo '#line 15583 "configure"' > conftest.$ac_ext
15584    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15585  (eval $ac_compile) 2>&5
15586  ac_status=$?
15587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588  (exit $ac_status); }; then
15589      case `/usr/bin/file conftest.$ac_objext` in
15590      *64-bit*)
15591        libsuff=64
15592        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15593        ;;
15594      esac
15595    fi
15596    rm -rf conftest*
15597    ;;
15598  esac
15599
15600  # Append ld.so.conf contents to the search path
15601  if test -f /etc/ld.so.conf; then
15602    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15603    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15604  fi
15605
15606  # We used to test for /lib/ld.so.1 and disable shared libraries on
15607  # powerpc, because MkLinux only supported shared libraries with the
15608  # GNU dynamic linker.  Since this was broken with cross compilers,
15609  # most powerpc-linux boxes support dynamic linking these days and
15610  # people can always --disable-shared, the test was removed, and we
15611  # assume the GNU/Linux dynamic linker is in use.
15612  dynamic_linker='GNU/Linux ld.so'
15613  ;;
15614
15615knetbsd*-gnu)
15616  version_type=linux
15617  need_lib_prefix=no
15618  need_version=no
15619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15620  soname_spec='${libname}${release}${shared_ext}$major'
15621  shlibpath_var=LD_LIBRARY_PATH
15622  shlibpath_overrides_runpath=no
15623  hardcode_into_libs=yes
15624  dynamic_linker='GNU ld.so'
15625  ;;
15626
15627netbsd*)
15628  version_type=sunos
15629  need_lib_prefix=no
15630  need_version=no
15631  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15632    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15633    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15634    dynamic_linker='NetBSD (a.out) ld.so'
15635  else
15636    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15637    soname_spec='${libname}${release}${shared_ext}$major'
15638    dynamic_linker='NetBSD ld.elf_so'
15639  fi
15640  shlibpath_var=LD_LIBRARY_PATH
15641  shlibpath_overrides_runpath=yes
15642  hardcode_into_libs=yes
15643  ;;
15644
15645newsos6)
15646  version_type=linux
15647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648  shlibpath_var=LD_LIBRARY_PATH
15649  shlibpath_overrides_runpath=yes
15650  ;;
15651
15652nto-qnx*)
15653  version_type=linux
15654  need_lib_prefix=no
15655  need_version=no
15656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657  soname_spec='${libname}${release}${shared_ext}$major'
15658  shlibpath_var=LD_LIBRARY_PATH
15659  shlibpath_overrides_runpath=yes
15660  ;;
15661
15662openbsd*)
15663  version_type=sunos
15664  sys_lib_dlsearch_path_spec="/usr/lib"
15665  need_lib_prefix=no
15666  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15667  case $host_os in
15668    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15669    *)                         need_version=no  ;;
15670  esac
15671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15672  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15673  shlibpath_var=LD_LIBRARY_PATH
15674  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15675    case $host_os in
15676      openbsd2.[89] | openbsd2.[89].*)
15677	shlibpath_overrides_runpath=no
15678	;;
15679      *)
15680	shlibpath_overrides_runpath=yes
15681	;;
15682      esac
15683  else
15684    shlibpath_overrides_runpath=yes
15685  fi
15686  ;;
15687
15688os2*)
15689  libname_spec='$name'
15690  shrext_cmds=".dll"
15691  need_lib_prefix=no
15692  library_names_spec='$libname${shared_ext} $libname.a'
15693  dynamic_linker='OS/2 ld.exe'
15694  shlibpath_var=LIBPATH
15695  ;;
15696
15697osf3* | osf4* | osf5*)
15698  version_type=osf
15699  need_lib_prefix=no
15700  need_version=no
15701  soname_spec='${libname}${release}${shared_ext}$major'
15702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15703  shlibpath_var=LD_LIBRARY_PATH
15704  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15705  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15706  ;;
15707
15708solaris*)
15709  version_type=linux
15710  need_lib_prefix=no
15711  need_version=no
15712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713  soname_spec='${libname}${release}${shared_ext}$major'
15714  shlibpath_var=LD_LIBRARY_PATH
15715  shlibpath_overrides_runpath=yes
15716  hardcode_into_libs=yes
15717  # ldd complains unless libraries are executable
15718  postinstall_cmds='chmod +x $lib'
15719  ;;
15720
15721sunos4*)
15722  version_type=sunos
15723  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15724  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15725  shlibpath_var=LD_LIBRARY_PATH
15726  shlibpath_overrides_runpath=yes
15727  if test "$with_gnu_ld" = yes; then
15728    need_lib_prefix=no
15729  fi
15730  need_version=yes
15731  ;;
15732
15733sysv4 | sysv4.3*)
15734  version_type=linux
15735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15736  soname_spec='${libname}${release}${shared_ext}$major'
15737  shlibpath_var=LD_LIBRARY_PATH
15738  case $host_vendor in
15739    sni)
15740      shlibpath_overrides_runpath=no
15741      need_lib_prefix=no
15742      export_dynamic_flag_spec='${wl}-Blargedynsym'
15743      runpath_var=LD_RUN_PATH
15744      ;;
15745    siemens)
15746      need_lib_prefix=no
15747      ;;
15748    motorola)
15749      need_lib_prefix=no
15750      need_version=no
15751      shlibpath_overrides_runpath=no
15752      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15753      ;;
15754  esac
15755  ;;
15756
15757sysv4*MP*)
15758  if test -d /usr/nec ;then
15759    version_type=linux
15760    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15761    soname_spec='$libname${shared_ext}.$major'
15762    shlibpath_var=LD_LIBRARY_PATH
15763  fi
15764  ;;
15765
15766sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15767  version_type=freebsd-elf
15768  need_lib_prefix=no
15769  need_version=no
15770  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15771  soname_spec='${libname}${release}${shared_ext}$major'
15772  shlibpath_var=LD_LIBRARY_PATH
15773  hardcode_into_libs=yes
15774  if test "$with_gnu_ld" = yes; then
15775    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15776    shlibpath_overrides_runpath=no
15777  else
15778    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15779    shlibpath_overrides_runpath=yes
15780    case $host_os in
15781      sco3.2v5*)
15782        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15783	;;
15784    esac
15785  fi
15786  sys_lib_dlsearch_path_spec='/usr/lib'
15787  ;;
15788
15789uts4*)
15790  version_type=linux
15791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792  soname_spec='${libname}${release}${shared_ext}$major'
15793  shlibpath_var=LD_LIBRARY_PATH
15794  ;;
15795
15796*)
15797  dynamic_linker=no
15798  ;;
15799esac
15800{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15801echo "${ECHO_T}$dynamic_linker" >&6; }
15802test "$dynamic_linker" = no && can_build_shared=no
15803
15804variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15805if test "$GCC" = yes; then
15806  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15807fi
15808
15809{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15810echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15811hardcode_action_F77=
15812if test -n "$hardcode_libdir_flag_spec_F77" || \
15813   test -n "$runpath_var_F77" || \
15814   test "X$hardcode_automatic_F77" = "Xyes" ; then
15815
15816  # We can hardcode non-existant directories.
15817  if test "$hardcode_direct_F77" != no &&
15818     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15819     # have to relink, otherwise we might link with an installed library
15820     # when we should be linking with a yet-to-be-installed one
15821     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15822     test "$hardcode_minus_L_F77" != no; then
15823    # Linking always hardcodes the temporary library directory.
15824    hardcode_action_F77=relink
15825  else
15826    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15827    hardcode_action_F77=immediate
15828  fi
15829else
15830  # We cannot hardcode anything, or else we can only hardcode existing
15831  # directories.
15832  hardcode_action_F77=unsupported
15833fi
15834{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15835echo "${ECHO_T}$hardcode_action_F77" >&6; }
15836
15837if test "$hardcode_action_F77" = relink; then
15838  # Fast installation is not supported
15839  enable_fast_install=no
15840elif test "$shlibpath_overrides_runpath" = yes ||
15841     test "$enable_shared" = no; then
15842  # Fast installation is not necessary
15843  enable_fast_install=needless
15844fi
15845
15846
15847# The else clause should only fire when bootstrapping the
15848# libtool distribution, otherwise you forgot to ship ltmain.sh
15849# with your package, and you will get complaints that there are
15850# no rules to generate ltmain.sh.
15851if test -f "$ltmain"; then
15852  # See if we are running on zsh, and set the options which allow our commands through
15853  # without removal of \ escapes.
15854  if test -n "${ZSH_VERSION+set}" ; then
15855    setopt NO_GLOB_SUBST
15856  fi
15857  # Now quote all the things that may contain metacharacters while being
15858  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15859  # variables and quote the copies for generation of the libtool script.
15860  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15861    SED SHELL STRIP \
15862    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15863    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15864    deplibs_check_method reload_flag reload_cmds need_locks \
15865    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15866    lt_cv_sys_global_symbol_to_c_name_address \
15867    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15868    old_postinstall_cmds old_postuninstall_cmds \
15869    compiler_F77 \
15870    CC_F77 \
15871    LD_F77 \
15872    lt_prog_compiler_wl_F77 \
15873    lt_prog_compiler_pic_F77 \
15874    lt_prog_compiler_static_F77 \
15875    lt_prog_compiler_no_builtin_flag_F77 \
15876    export_dynamic_flag_spec_F77 \
15877    thread_safe_flag_spec_F77 \
15878    whole_archive_flag_spec_F77 \
15879    enable_shared_with_static_runtimes_F77 \
15880    old_archive_cmds_F77 \
15881    old_archive_from_new_cmds_F77 \
15882    predep_objects_F77 \
15883    postdep_objects_F77 \
15884    predeps_F77 \
15885    postdeps_F77 \
15886    compiler_lib_search_path_F77 \
15887    archive_cmds_F77 \
15888    archive_expsym_cmds_F77 \
15889    postinstall_cmds_F77 \
15890    postuninstall_cmds_F77 \
15891    old_archive_from_expsyms_cmds_F77 \
15892    allow_undefined_flag_F77 \
15893    no_undefined_flag_F77 \
15894    export_symbols_cmds_F77 \
15895    hardcode_libdir_flag_spec_F77 \
15896    hardcode_libdir_flag_spec_ld_F77 \
15897    hardcode_libdir_separator_F77 \
15898    hardcode_automatic_F77 \
15899    module_cmds_F77 \
15900    module_expsym_cmds_F77 \
15901    lt_cv_prog_compiler_c_o_F77 \
15902    exclude_expsyms_F77 \
15903    include_expsyms_F77; do
15904
15905    case $var in
15906    old_archive_cmds_F77 | \
15907    old_archive_from_new_cmds_F77 | \
15908    archive_cmds_F77 | \
15909    archive_expsym_cmds_F77 | \
15910    module_cmds_F77 | \
15911    module_expsym_cmds_F77 | \
15912    old_archive_from_expsyms_cmds_F77 | \
15913    export_symbols_cmds_F77 | \
15914    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15915    postinstall_cmds | postuninstall_cmds | \
15916    old_postinstall_cmds | old_postuninstall_cmds | \
15917    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15918      # Double-quote double-evaled strings.
15919      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15920      ;;
15921    *)
15922      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15923      ;;
15924    esac
15925  done
15926
15927  case $lt_echo in
15928  *'\$0 --fallback-echo"')
15929    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15930    ;;
15931  esac
15932
15933cfgfile="$ofile"
15934
15935  cat <<__EOF__ >> "$cfgfile"
15936# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15937
15938# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15939
15940# Shell to use when invoking shell scripts.
15941SHELL=$lt_SHELL
15942
15943# Whether or not to build shared libraries.
15944build_libtool_libs=$enable_shared
15945
15946# Whether or not to build static libraries.
15947build_old_libs=$enable_static
15948
15949# Whether or not to add -lc for building shared libraries.
15950build_libtool_need_lc=$archive_cmds_need_lc_F77
15951
15952# Whether or not to disallow shared libs when runtime libs are static
15953allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15954
15955# Whether or not to optimize for fast installation.
15956fast_install=$enable_fast_install
15957
15958# The host system.
15959host_alias=$host_alias
15960host=$host
15961host_os=$host_os
15962
15963# The build system.
15964build_alias=$build_alias
15965build=$build
15966build_os=$build_os
15967
15968# An echo program that does not interpret backslashes.
15969echo=$lt_echo
15970
15971# The archiver.
15972AR=$lt_AR
15973AR_FLAGS=$lt_AR_FLAGS
15974
15975# A C compiler.
15976LTCC=$lt_LTCC
15977
15978# LTCC compiler flags.
15979LTCFLAGS=$lt_LTCFLAGS
15980
15981# A language-specific compiler.
15982CC=$lt_compiler_F77
15983
15984# Is the compiler the GNU C compiler?
15985with_gcc=$GCC_F77
15986
15987gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15988gcc_ver=\`gcc -dumpversion\`
15989
15990# An ERE matcher.
15991EGREP=$lt_EGREP
15992
15993# The linker used to build libraries.
15994LD=$lt_LD_F77
15995
15996# Whether we need hard or soft links.
15997LN_S=$lt_LN_S
15998
15999# A BSD-compatible nm program.
16000NM=$lt_NM
16001
16002# A symbol stripping program
16003STRIP=$lt_STRIP
16004
16005# Used to examine libraries when file_magic_cmd begins "file"
16006MAGIC_CMD=$MAGIC_CMD
16007
16008# Used on cygwin: DLL creation program.
16009DLLTOOL="$DLLTOOL"
16010
16011# Used on cygwin: object dumper.
16012OBJDUMP="$OBJDUMP"
16013
16014# Used on cygwin: assembler.
16015AS="$AS"
16016
16017# The name of the directory that contains temporary libtool files.
16018objdir=$objdir
16019
16020# How to create reloadable object files.
16021reload_flag=$lt_reload_flag
16022reload_cmds=$lt_reload_cmds
16023
16024# How to pass a linker flag through the compiler.
16025wl=$lt_lt_prog_compiler_wl_F77
16026
16027# Object file suffix (normally "o").
16028objext="$ac_objext"
16029
16030# Old archive suffix (normally "a").
16031libext="$libext"
16032
16033# Shared library suffix (normally ".so").
16034shrext_cmds='$shrext_cmds'
16035
16036# Executable file suffix (normally "").
16037exeext="$exeext"
16038
16039# Additional compiler flags for building library objects.
16040pic_flag=$lt_lt_prog_compiler_pic_F77
16041pic_mode=$pic_mode
16042
16043# What is the maximum length of a command?
16044max_cmd_len=$lt_cv_sys_max_cmd_len
16045
16046# Does compiler simultaneously support -c and -o options?
16047compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16048
16049# Must we lock files when doing compilation?
16050need_locks=$lt_need_locks
16051
16052# Do we need the lib prefix for modules?
16053need_lib_prefix=$need_lib_prefix
16054
16055# Do we need a version for libraries?
16056need_version=$need_version
16057
16058# Whether dlopen is supported.
16059dlopen_support=$enable_dlopen
16060
16061# Whether dlopen of programs is supported.
16062dlopen_self=$enable_dlopen_self
16063
16064# Whether dlopen of statically linked programs is supported.
16065dlopen_self_static=$enable_dlopen_self_static
16066
16067# Compiler flag to prevent dynamic linking.
16068link_static_flag=$lt_lt_prog_compiler_static_F77
16069
16070# Compiler flag to turn off builtin functions.
16071no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16072
16073# Compiler flag to allow reflexive dlopens.
16074export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16075
16076# Compiler flag to generate shared objects directly from archives.
16077whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16078
16079# Compiler flag to generate thread-safe objects.
16080thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16081
16082# Library versioning type.
16083version_type=$version_type
16084
16085# Format of library name prefix.
16086libname_spec=$lt_libname_spec
16087
16088# List of archive names.  First name is the real one, the rest are links.
16089# The last name is the one that the linker finds with -lNAME.
16090library_names_spec=$lt_library_names_spec
16091
16092# The coded name of the library, if different from the real name.
16093soname_spec=$lt_soname_spec
16094
16095# Commands used to build and install an old-style archive.
16096RANLIB=$lt_RANLIB
16097old_archive_cmds=$lt_old_archive_cmds_F77
16098old_postinstall_cmds=$lt_old_postinstall_cmds
16099old_postuninstall_cmds=$lt_old_postuninstall_cmds
16100
16101# Create an old-style archive from a shared archive.
16102old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16103
16104# Create a temporary old-style archive to link instead of a shared archive.
16105old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16106
16107# Commands used to build and install a shared archive.
16108archive_cmds=$lt_archive_cmds_F77
16109archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16110postinstall_cmds=$lt_postinstall_cmds
16111postuninstall_cmds=$lt_postuninstall_cmds
16112
16113# Commands used to build a loadable module (assumed same as above if empty)
16114module_cmds=$lt_module_cmds_F77
16115module_expsym_cmds=$lt_module_expsym_cmds_F77
16116
16117# Commands to strip libraries.
16118old_striplib=$lt_old_striplib
16119striplib=$lt_striplib
16120
16121# Dependencies to place before the objects being linked to create a
16122# shared library.
16123predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16124
16125# Dependencies to place after the objects being linked to create a
16126# shared library.
16127postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16128
16129# Dependencies to place before the objects being linked to create a
16130# shared library.
16131predeps=$lt_predeps_F77
16132
16133# Dependencies to place after the objects being linked to create a
16134# shared library.
16135postdeps=$lt_postdeps_F77
16136
16137# The library search path used internally by the compiler when linking
16138# a shared library.
16139compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16140
16141# Method to check whether dependent libraries are shared objects.
16142deplibs_check_method=$lt_deplibs_check_method
16143
16144# Command to use when deplibs_check_method == file_magic.
16145file_magic_cmd=$lt_file_magic_cmd
16146
16147# Flag that allows shared libraries with undefined symbols to be built.
16148allow_undefined_flag=$lt_allow_undefined_flag_F77
16149
16150# Flag that forces no undefined symbols.
16151no_undefined_flag=$lt_no_undefined_flag_F77
16152
16153# Commands used to finish a libtool library installation in a directory.
16154finish_cmds=$lt_finish_cmds
16155
16156# Same as above, but a single script fragment to be evaled but not shown.
16157finish_eval=$lt_finish_eval
16158
16159# Take the output of nm and produce a listing of raw symbols and C names.
16160global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16161
16162# Transform the output of nm in a proper C declaration
16163global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16164
16165# Transform the output of nm in a C name address pair
16166global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16167
16168# This is the shared library runtime path variable.
16169runpath_var=$runpath_var
16170
16171# This is the shared library path variable.
16172shlibpath_var=$shlibpath_var
16173
16174# Is shlibpath searched before the hard-coded library search path?
16175shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16176
16177# How to hardcode a shared library path into an executable.
16178hardcode_action=$hardcode_action_F77
16179
16180# Whether we should hardcode library paths into libraries.
16181hardcode_into_libs=$hardcode_into_libs
16182
16183# Flag to hardcode \$libdir into a binary during linking.
16184# This must work even if \$libdir does not exist.
16185hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16186
16187# If ld is used when linking, flag to hardcode \$libdir into
16188# a binary during linking. This must work even if \$libdir does
16189# not exist.
16190hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16191
16192# Whether we need a single -rpath flag with a separated argument.
16193hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16194
16195# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16196# resulting binary.
16197hardcode_direct=$hardcode_direct_F77
16198
16199# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16200# resulting binary.
16201hardcode_minus_L=$hardcode_minus_L_F77
16202
16203# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16204# the resulting binary.
16205hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16206
16207# Set to yes if building a shared library automatically hardcodes DIR into the library
16208# and all subsequent libraries and executables linked against it.
16209hardcode_automatic=$hardcode_automatic_F77
16210
16211# Variables whose values should be saved in libtool wrapper scripts and
16212# restored at relink time.
16213variables_saved_for_relink="$variables_saved_for_relink"
16214
16215# Whether libtool must link a program against all its dependency libraries.
16216link_all_deplibs=$link_all_deplibs_F77
16217
16218# Compile-time system search path for libraries
16219sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16220
16221# Run-time system search path for libraries
16222sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16223
16224# Fix the shell variable \$srcfile for the compiler.
16225fix_srcfile_path="$fix_srcfile_path_F77"
16226
16227# Set to yes if exported symbols are required.
16228always_export_symbols=$always_export_symbols_F77
16229
16230# The commands to list exported symbols.
16231export_symbols_cmds=$lt_export_symbols_cmds_F77
16232
16233# The commands to extract the exported symbol list from a shared archive.
16234extract_expsyms_cmds=$lt_extract_expsyms_cmds
16235
16236# Symbols that should not be listed in the preloaded symbols.
16237exclude_expsyms=$lt_exclude_expsyms_F77
16238
16239# Symbols that must always be exported.
16240include_expsyms=$lt_include_expsyms_F77
16241
16242# ### END LIBTOOL TAG CONFIG: $tagname
16243
16244__EOF__
16245
16246
16247else
16248  # If there is no Makefile yet, we rely on a make rule to execute
16249  # `config.status --recheck' to rerun these tests and create the
16250  # libtool script then.
16251  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16252  if test -f "$ltmain_in"; then
16253    test -f Makefile && make "$ltmain"
16254  fi
16255fi
16256
16257
16258ac_ext=c
16259ac_cpp='$CPP $CPPFLAGS'
16260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16262ac_compiler_gnu=$ac_cv_c_compiler_gnu
16263
16264CC="$lt_save_CC"
16265
16266	else
16267	  tagname=""
16268	fi
16269	;;
16270
16271      GCJ)
16272	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16273
16274
16275# Source file extension for Java test sources.
16276ac_ext=java
16277
16278# Object file extension for compiled Java test sources.
16279objext=o
16280objext_GCJ=$objext
16281
16282# Code to be used in simple compile tests
16283lt_simple_compile_test_code="class foo {}\n"
16284
16285# Code to be used in simple link tests
16286lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16287
16288# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16289
16290# If no C compiler was specified, use CC.
16291LTCC=${LTCC-"$CC"}
16292
16293# If no C compiler flags were specified, use CFLAGS.
16294LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16295
16296# Allow CC to be a program name with arguments.
16297compiler=$CC
16298
16299
16300# save warnings/boilerplate of simple test code
16301ac_outfile=conftest.$ac_objext
16302printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16303eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16304_lt_compiler_boilerplate=`cat conftest.err`
16305$rm conftest*
16306
16307ac_outfile=conftest.$ac_objext
16308printf "$lt_simple_link_test_code" >conftest.$ac_ext
16309eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16310_lt_linker_boilerplate=`cat conftest.err`
16311$rm conftest*
16312
16313
16314# Allow CC to be a program name with arguments.
16315lt_save_CC="$CC"
16316CC=${GCJ-"gcj"}
16317compiler=$CC
16318compiler_GCJ=$CC
16319for cc_temp in $compiler""; do
16320  case $cc_temp in
16321    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16322    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16323    \-*) ;;
16324    *) break;;
16325  esac
16326done
16327cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16328
16329LD_GCJ="$LD"
16330
16331# GCJ did not exist at the time GCC didn't implicitly link libc in.
16332archive_cmds_need_lc_GCJ=no
16333
16334old_archive_cmds_GCJ=$old_archive_cmds
16335
16336
16337lt_prog_compiler_no_builtin_flag_GCJ=
16338
16339if test "$GCC" = yes; then
16340  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16341
16342
16343{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16344echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16345if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16346  echo $ECHO_N "(cached) $ECHO_C" >&6
16347else
16348  lt_cv_prog_compiler_rtti_exceptions=no
16349  ac_outfile=conftest.$ac_objext
16350   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16351   lt_compiler_flag="-fno-rtti -fno-exceptions"
16352   # Insert the option either (1) after the last *FLAGS variable, or
16353   # (2) before a word containing "conftest.", or (3) at the end.
16354   # Note that $ac_compile itself does not contain backslashes and begins
16355   # with a dollar sign (not a hyphen), so the echo should work correctly.
16356   # The option is referenced via a variable to avoid confusing sed.
16357   lt_compile=`echo "$ac_compile" | $SED \
16358   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16359   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16360   -e 's:$: $lt_compiler_flag:'`
16361   (eval echo "\"\$as_me:16361: $lt_compile\"" >&5)
16362   (eval "$lt_compile" 2>conftest.err)
16363   ac_status=$?
16364   cat conftest.err >&5
16365   echo "$as_me:16365: \$? = $ac_status" >&5
16366   if (exit $ac_status) && test -s "$ac_outfile"; then
16367     # The compiler can only warn and ignore the option if not recognized
16368     # So say no if there are warnings other than the usual output.
16369     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16370     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16371     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16372       lt_cv_prog_compiler_rtti_exceptions=yes
16373     fi
16374   fi
16375   $rm conftest*
16376
16377fi
16378{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16379echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16380
16381if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16382    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16383else
16384    :
16385fi
16386
16387fi
16388
16389lt_prog_compiler_wl_GCJ=
16390lt_prog_compiler_pic_GCJ=
16391lt_prog_compiler_static_GCJ=
16392
16393{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16394echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16395
16396  if test "$GCC" = yes; then
16397    lt_prog_compiler_wl_GCJ='-Wl,'
16398    lt_prog_compiler_static_GCJ='-static'
16399
16400    case $host_os in
16401      aix*)
16402      # All AIX code is PIC.
16403      if test "$host_cpu" = ia64; then
16404	# AIX 5 now supports IA64 processor
16405	lt_prog_compiler_static_GCJ='-Bstatic'
16406      fi
16407      ;;
16408
16409    amigaos*)
16410      # FIXME: we need at least 68020 code to build shared libraries, but
16411      # adding the `-m68020' flag to GCC prevents building anything better,
16412      # like `-m68040'.
16413      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16414      ;;
16415
16416    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16417      # PIC is the default for these OSes.
16418      ;;
16419
16420    mingw* | pw32* | os2*)
16421      # This hack is so that the source file can tell whether it is being
16422      # built for inclusion in a dll (and should export symbols for example).
16423      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16424      ;;
16425
16426    darwin* | rhapsody*)
16427      # PIC is the default on this platform
16428      # Common symbols not allowed in MH_DYLIB files
16429      lt_prog_compiler_pic_GCJ='-fno-common'
16430      ;;
16431
16432    interix3*)
16433      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16434      # Instead, we relocate shared libraries at runtime.
16435      ;;
16436
16437    msdosdjgpp*)
16438      # Just because we use GCC doesn't mean we suddenly get shared libraries
16439      # on systems that don't support them.
16440      lt_prog_compiler_can_build_shared_GCJ=no
16441      enable_shared=no
16442      ;;
16443
16444    sysv4*MP*)
16445      if test -d /usr/nec; then
16446	lt_prog_compiler_pic_GCJ=-Kconform_pic
16447      fi
16448      ;;
16449
16450    hpux*)
16451      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16452      # not for PA HP-UX.
16453      case $host_cpu in
16454      hppa*64*|ia64*)
16455	# +Z the default
16456	;;
16457      *)
16458	lt_prog_compiler_pic_GCJ='-fPIC'
16459	;;
16460      esac
16461      ;;
16462
16463    *)
16464      lt_prog_compiler_pic_GCJ='-fPIC'
16465      ;;
16466    esac
16467  else
16468    # PORTME Check for flag to pass linker flags through the system compiler.
16469    case $host_os in
16470    aix*)
16471      lt_prog_compiler_wl_GCJ='-Wl,'
16472      if test "$host_cpu" = ia64; then
16473	# AIX 5 now supports IA64 processor
16474	lt_prog_compiler_static_GCJ='-Bstatic'
16475      else
16476	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16477      fi
16478      ;;
16479      darwin*)
16480        # PIC is the default on this platform
16481        # Common symbols not allowed in MH_DYLIB files
16482       case $cc_basename in
16483         xlc*)
16484         lt_prog_compiler_pic_GCJ='-qnocommon'
16485         lt_prog_compiler_wl_GCJ='-Wl,'
16486         ;;
16487       esac
16488       ;;
16489
16490    mingw* | pw32* | os2*)
16491      # This hack is so that the source file can tell whether it is being
16492      # built for inclusion in a dll (and should export symbols for example).
16493      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16494      ;;
16495
16496    hpux9* | hpux10* | hpux11*)
16497      lt_prog_compiler_wl_GCJ='-Wl,'
16498      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16499      # not for PA HP-UX.
16500      case $host_cpu in
16501      hppa*64*|ia64*)
16502	# +Z the default
16503	;;
16504      *)
16505	lt_prog_compiler_pic_GCJ='+Z'
16506	;;
16507      esac
16508      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16509      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16510      ;;
16511
16512    irix5* | irix6* | nonstopux*)
16513      lt_prog_compiler_wl_GCJ='-Wl,'
16514      # PIC (with -KPIC) is the default.
16515      lt_prog_compiler_static_GCJ='-non_shared'
16516      ;;
16517
16518    newsos6)
16519      lt_prog_compiler_pic_GCJ='-KPIC'
16520      lt_prog_compiler_static_GCJ='-Bstatic'
16521      ;;
16522
16523    linux*)
16524      case $cc_basename in
16525      icc* | ecc*)
16526	lt_prog_compiler_wl_GCJ='-Wl,'
16527	lt_prog_compiler_pic_GCJ='-KPIC'
16528	lt_prog_compiler_static_GCJ='-static'
16529        ;;
16530      pgcc* | pgf77* | pgf90* | pgf95*)
16531        # Portland Group compilers (*not* the Pentium gcc compiler,
16532	# which looks to be a dead project)
16533	lt_prog_compiler_wl_GCJ='-Wl,'
16534	lt_prog_compiler_pic_GCJ='-fpic'
16535	lt_prog_compiler_static_GCJ='-Bstatic'
16536        ;;
16537      ccc*)
16538        lt_prog_compiler_wl_GCJ='-Wl,'
16539        # All Alpha code is PIC.
16540        lt_prog_compiler_static_GCJ='-non_shared'
16541        ;;
16542      esac
16543      ;;
16544
16545    osf3* | osf4* | osf5*)
16546      lt_prog_compiler_wl_GCJ='-Wl,'
16547      # All OSF/1 code is PIC.
16548      lt_prog_compiler_static_GCJ='-non_shared'
16549      ;;
16550
16551    solaris*)
16552      lt_prog_compiler_pic_GCJ='-KPIC'
16553      lt_prog_compiler_static_GCJ='-Bstatic'
16554      case $cc_basename in
16555      f77* | f90* | f95*)
16556	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16557      *)
16558	lt_prog_compiler_wl_GCJ='-Wl,';;
16559      esac
16560      ;;
16561
16562    sunos4*)
16563      lt_prog_compiler_wl_GCJ='-Qoption ld '
16564      lt_prog_compiler_pic_GCJ='-PIC'
16565      lt_prog_compiler_static_GCJ='-Bstatic'
16566      ;;
16567
16568    sysv4 | sysv4.2uw2* | sysv4.3*)
16569      lt_prog_compiler_wl_GCJ='-Wl,'
16570      lt_prog_compiler_pic_GCJ='-KPIC'
16571      lt_prog_compiler_static_GCJ='-Bstatic'
16572      ;;
16573
16574    sysv4*MP*)
16575      if test -d /usr/nec ;then
16576	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16577	lt_prog_compiler_static_GCJ='-Bstatic'
16578      fi
16579      ;;
16580
16581    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16582      lt_prog_compiler_wl_GCJ='-Wl,'
16583      lt_prog_compiler_pic_GCJ='-KPIC'
16584      lt_prog_compiler_static_GCJ='-Bstatic'
16585      ;;
16586
16587    unicos*)
16588      lt_prog_compiler_wl_GCJ='-Wl,'
16589      lt_prog_compiler_can_build_shared_GCJ=no
16590      ;;
16591
16592    uts4*)
16593      lt_prog_compiler_pic_GCJ='-pic'
16594      lt_prog_compiler_static_GCJ='-Bstatic'
16595      ;;
16596
16597    *)
16598      lt_prog_compiler_can_build_shared_GCJ=no
16599      ;;
16600    esac
16601  fi
16602
16603{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16604echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16605
16606#
16607# Check to make sure the PIC flag actually works.
16608#
16609if test -n "$lt_prog_compiler_pic_GCJ"; then
16610
16611{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16612echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16613if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16614  echo $ECHO_N "(cached) $ECHO_C" >&6
16615else
16616  lt_prog_compiler_pic_works_GCJ=no
16617  ac_outfile=conftest.$ac_objext
16618   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16619   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16620   # Insert the option either (1) after the last *FLAGS variable, or
16621   # (2) before a word containing "conftest.", or (3) at the end.
16622   # Note that $ac_compile itself does not contain backslashes and begins
16623   # with a dollar sign (not a hyphen), so the echo should work correctly.
16624   # The option is referenced via a variable to avoid confusing sed.
16625   lt_compile=`echo "$ac_compile" | $SED \
16626   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16627   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16628   -e 's:$: $lt_compiler_flag:'`
16629   (eval echo "\"\$as_me:16629: $lt_compile\"" >&5)
16630   (eval "$lt_compile" 2>conftest.err)
16631   ac_status=$?
16632   cat conftest.err >&5
16633   echo "$as_me:16633: \$? = $ac_status" >&5
16634   if (exit $ac_status) && test -s "$ac_outfile"; then
16635     # The compiler can only warn and ignore the option if not recognized
16636     # So say no if there are warnings other than the usual output.
16637     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16638     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16639     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16640       lt_prog_compiler_pic_works_GCJ=yes
16641     fi
16642   fi
16643   $rm conftest*
16644
16645fi
16646{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16647echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16648
16649if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16650    case $lt_prog_compiler_pic_GCJ in
16651     "" | " "*) ;;
16652     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16653     esac
16654else
16655    lt_prog_compiler_pic_GCJ=
16656     lt_prog_compiler_can_build_shared_GCJ=no
16657fi
16658
16659fi
16660case $host_os in
16661  # For platforms which do not support PIC, -DPIC is meaningless:
16662  *djgpp*)
16663    lt_prog_compiler_pic_GCJ=
16664    ;;
16665  *)
16666    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16667    ;;
16668esac
16669
16670#
16671# Check to make sure the static flag actually works.
16672#
16673wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16674{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16675echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16676if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16677  echo $ECHO_N "(cached) $ECHO_C" >&6
16678else
16679  lt_prog_compiler_static_works_GCJ=no
16680   save_LDFLAGS="$LDFLAGS"
16681   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16682   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16683   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16684     # The linker can only warn and ignore the option if not recognized
16685     # So say no if there are warnings
16686     if test -s conftest.err; then
16687       # Append any errors to the config.log.
16688       cat conftest.err 1>&5
16689       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16690       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16691       if diff conftest.exp conftest.er2 >/dev/null; then
16692         lt_prog_compiler_static_works_GCJ=yes
16693       fi
16694     else
16695       lt_prog_compiler_static_works_GCJ=yes
16696     fi
16697   fi
16698   $rm conftest*
16699   LDFLAGS="$save_LDFLAGS"
16700
16701fi
16702{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16703echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16704
16705if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16706    :
16707else
16708    lt_prog_compiler_static_GCJ=
16709fi
16710
16711
16712{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16713echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16714if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16715  echo $ECHO_N "(cached) $ECHO_C" >&6
16716else
16717  lt_cv_prog_compiler_c_o_GCJ=no
16718   $rm -r conftest 2>/dev/null
16719   mkdir conftest
16720   cd conftest
16721   mkdir out
16722   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16723
16724   lt_compiler_flag="-o out/conftest2.$ac_objext"
16725   # Insert the option either (1) after the last *FLAGS variable, or
16726   # (2) before a word containing "conftest.", or (3) at the end.
16727   # Note that $ac_compile itself does not contain backslashes and begins
16728   # with a dollar sign (not a hyphen), so the echo should work correctly.
16729   lt_compile=`echo "$ac_compile" | $SED \
16730   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16731   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16732   -e 's:$: $lt_compiler_flag:'`
16733   (eval echo "\"\$as_me:16733: $lt_compile\"" >&5)
16734   (eval "$lt_compile" 2>out/conftest.err)
16735   ac_status=$?
16736   cat out/conftest.err >&5
16737   echo "$as_me:16737: \$? = $ac_status" >&5
16738   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16739   then
16740     # The compiler can only warn and ignore the option if not recognized
16741     # So say no if there are warnings
16742     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16743     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16744     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16745       lt_cv_prog_compiler_c_o_GCJ=yes
16746     fi
16747   fi
16748   chmod u+w . 2>&5
16749   $rm conftest*
16750   # SGI C++ compiler will create directory out/ii_files/ for
16751   # template instantiation
16752   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16753   $rm out/* && rmdir out
16754   cd ..
16755   rmdir conftest
16756   $rm conftest*
16757
16758fi
16759{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16760echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16761
16762
16763hard_links="nottested"
16764if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16765  # do not overwrite the value of need_locks provided by the user
16766  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16767echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16768  hard_links=yes
16769  $rm conftest*
16770  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16771  touch conftest.a
16772  ln conftest.a conftest.b 2>&5 || hard_links=no
16773  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16774  { echo "$as_me:$LINENO: result: $hard_links" >&5
16775echo "${ECHO_T}$hard_links" >&6; }
16776  if test "$hard_links" = no; then
16777    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16778echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16779    need_locks=warn
16780  fi
16781else
16782  need_locks=no
16783fi
16784
16785{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16786echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16787
16788  runpath_var=
16789  allow_undefined_flag_GCJ=
16790  enable_shared_with_static_runtimes_GCJ=no
16791  archive_cmds_GCJ=
16792  archive_expsym_cmds_GCJ=
16793  old_archive_From_new_cmds_GCJ=
16794  old_archive_from_expsyms_cmds_GCJ=
16795  export_dynamic_flag_spec_GCJ=
16796  whole_archive_flag_spec_GCJ=
16797  thread_safe_flag_spec_GCJ=
16798  hardcode_libdir_flag_spec_GCJ=
16799  hardcode_libdir_flag_spec_ld_GCJ=
16800  hardcode_libdir_separator_GCJ=
16801  hardcode_direct_GCJ=no
16802  hardcode_minus_L_GCJ=no
16803  hardcode_shlibpath_var_GCJ=unsupported
16804  link_all_deplibs_GCJ=unknown
16805  hardcode_automatic_GCJ=no
16806  module_cmds_GCJ=
16807  module_expsym_cmds_GCJ=
16808  always_export_symbols_GCJ=no
16809  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16810  # include_expsyms should be a list of space-separated symbols to be *always*
16811  # included in the symbol list
16812  include_expsyms_GCJ=
16813  # exclude_expsyms can be an extended regexp of symbols to exclude
16814  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16815  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16816  # as well as any symbol that contains `d'.
16817  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16818  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16819  # platforms (ab)use it in PIC code, but their linkers get confused if
16820  # the symbol is explicitly referenced.  Since portable code cannot
16821  # rely on this symbol name, it's probably fine to never include it in
16822  # preloaded symbol tables.
16823  extract_expsyms_cmds=
16824  # Just being paranoid about ensuring that cc_basename is set.
16825  for cc_temp in $compiler""; do
16826  case $cc_temp in
16827    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16828    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16829    \-*) ;;
16830    *) break;;
16831  esac
16832done
16833cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16834
16835  case $host_os in
16836  cygwin* | mingw* | pw32*)
16837    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16838    # When not using gcc, we currently assume that we are using
16839    # Microsoft Visual C++.
16840    if test "$GCC" != yes; then
16841      with_gnu_ld=no
16842    fi
16843    ;;
16844  interix*)
16845    # we just hope/assume this is gcc and not c89 (= MSVC++)
16846    with_gnu_ld=yes
16847    ;;
16848  openbsd*)
16849    with_gnu_ld=no
16850    ;;
16851  esac
16852
16853  ld_shlibs_GCJ=yes
16854  if test "$with_gnu_ld" = yes; then
16855    # If archive_cmds runs LD, not CC, wlarc should be empty
16856    wlarc='${wl}'
16857
16858    # Set some defaults for GNU ld with shared library support. These
16859    # are reset later if shared libraries are not supported. Putting them
16860    # here allows them to be overridden if necessary.
16861    runpath_var=LD_RUN_PATH
16862    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16863    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16864    # ancient GNU ld didn't support --whole-archive et. al.
16865    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16866	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16867      else
16868  	whole_archive_flag_spec_GCJ=
16869    fi
16870    supports_anon_versioning=no
16871    case `$LD -v 2>/dev/null` in
16872      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16873      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16874      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16875      *\ 2.11.*) ;; # other 2.11 versions
16876      *) supports_anon_versioning=yes ;;
16877    esac
16878
16879    # See if GNU ld supports shared libraries.
16880    case $host_os in
16881    aix3* | aix4* | aix5*)
16882      # On AIX/PPC, the GNU linker is very broken
16883      if test "$host_cpu" != ia64; then
16884	ld_shlibs_GCJ=no
16885	cat <<EOF 1>&2
16886
16887*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16888*** to be unable to reliably create shared libraries on AIX.
16889*** Therefore, libtool is disabling shared libraries support.  If you
16890*** really care for shared libraries, you may want to modify your PATH
16891*** so that a non-GNU linker is found, and then restart.
16892
16893EOF
16894      fi
16895      ;;
16896
16897    amigaos*)
16898      archive_cmds_GCJ='$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)'
16899      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16900      hardcode_minus_L_GCJ=yes
16901
16902      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16903      # that the semantics of dynamic libraries on AmigaOS, at least up
16904      # to version 4, is to share data among multiple programs linked
16905      # with the same dynamic library.  Since this doesn't match the
16906      # behavior of shared libraries on other platforms, we can't use
16907      # them.
16908      ld_shlibs_GCJ=no
16909      ;;
16910
16911    beos*)
16912      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16913	allow_undefined_flag_GCJ=unsupported
16914	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16915	# support --undefined.  This deserves some investigation.  FIXME
16916	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16917      else
16918	ld_shlibs_GCJ=no
16919      fi
16920      ;;
16921
16922    cygwin* | mingw* | pw32*)
16923      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16924      # as there is no search path for DLLs.
16925      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16926      allow_undefined_flag_GCJ=unsupported
16927      always_export_symbols_GCJ=no
16928      enable_shared_with_static_runtimes_GCJ=yes
16929      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16930
16931      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16932        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16933	# If the export-symbols file already is a .def file (1st line
16934	# is EXPORTS), use it as is; otherwise, prepend...
16935	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16936	  cp $export_symbols $output_objdir/$soname.def;
16937	else
16938	  echo EXPORTS > $output_objdir/$soname.def;
16939	  cat $export_symbols >> $output_objdir/$soname.def;
16940	fi~
16941	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16942      else
16943	ld_shlibs_GCJ=no
16944      fi
16945      ;;
16946
16947    interix3*)
16948      hardcode_direct_GCJ=no
16949      hardcode_shlibpath_var_GCJ=no
16950      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16951      export_dynamic_flag_spec_GCJ='${wl}-E'
16952      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16953      # Instead, shared libraries are loaded at an image base (0x10000000 by
16954      # default) and relocated if they conflict, which is a slow very memory
16955      # consuming and fragmenting process.  To avoid this, we pick a random,
16956      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16957      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16958      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16959      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16960      ;;
16961
16962    linux*)
16963      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16964	tmp_addflag=
16965	case $cc_basename,$host_cpu in
16966	pgcc*)				# Portland Group C compiler
16967	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16968	  tmp_addflag=' $pic_flag'
16969	  ;;
16970	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16971	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16972	  tmp_addflag=' $pic_flag -Mnomain' ;;
16973	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16974	  tmp_addflag=' -i_dynamic' ;;
16975	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16976	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16977	ifc* | ifort*)			# Intel Fortran compiler
16978	  tmp_addflag=' -nofor_main' ;;
16979	esac
16980	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16981
16982	if test $supports_anon_versioning = yes; then
16983	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16984  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16985  $echo "local: *; };" >> $output_objdir/$libname.ver~
16986	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16987	fi
16988      else
16989	ld_shlibs_GCJ=no
16990      fi
16991      ;;
16992
16993    netbsd*)
16994      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16995	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16996	wlarc=
16997      else
16998	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16999	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17000      fi
17001      ;;
17002
17003    solaris*)
17004      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17005	ld_shlibs_GCJ=no
17006	cat <<EOF 1>&2
17007
17008*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17009*** create shared libraries on Solaris systems.  Therefore, libtool
17010*** is disabling shared libraries support.  We urge you to upgrade GNU
17011*** binutils to release 2.9.1 or newer.  Another option is to modify
17012*** your PATH or compiler configuration so that the native linker is
17013*** used, and then restart.
17014
17015EOF
17016      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17017	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17018	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17019      else
17020	ld_shlibs_GCJ=no
17021      fi
17022      ;;
17023
17024    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17025      case `$LD -v 2>&1` in
17026        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17027	ld_shlibs_GCJ=no
17028	cat <<_LT_EOF 1>&2
17029
17030*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17031*** reliably create shared libraries on SCO systems.  Therefore, libtool
17032*** is disabling shared libraries support.  We urge you to upgrade GNU
17033*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17034*** your PATH or compiler configuration so that the native linker is
17035*** used, and then restart.
17036
17037_LT_EOF
17038	;;
17039	*)
17040	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17041	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17042	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17043	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17044	  else
17045	    ld_shlibs_GCJ=no
17046	  fi
17047	;;
17048      esac
17049      ;;
17050
17051    sunos4*)
17052      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17053      wlarc=
17054      hardcode_direct_GCJ=yes
17055      hardcode_shlibpath_var_GCJ=no
17056      ;;
17057
17058    *)
17059      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17060	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17061	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17062      else
17063	ld_shlibs_GCJ=no
17064      fi
17065      ;;
17066    esac
17067
17068    if test "$ld_shlibs_GCJ" = no; then
17069      runpath_var=
17070      hardcode_libdir_flag_spec_GCJ=
17071      export_dynamic_flag_spec_GCJ=
17072      whole_archive_flag_spec_GCJ=
17073    fi
17074  else
17075    # PORTME fill in a description of your system's linker (not GNU ld)
17076    case $host_os in
17077    aix3*)
17078      allow_undefined_flag_GCJ=unsupported
17079      always_export_symbols_GCJ=yes
17080      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17081      # Note: this linker hardcodes the directories in LIBPATH if there
17082      # are no directories specified by -L.
17083      hardcode_minus_L_GCJ=yes
17084      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17085	# Neither direct hardcoding nor static linking is supported with a
17086	# broken collect2.
17087	hardcode_direct_GCJ=unsupported
17088      fi
17089      ;;
17090
17091    aix4* | aix5*)
17092      if test "$host_cpu" = ia64; then
17093	# On IA64, the linker does run time linking by default, so we don't
17094	# have to do anything special.
17095	aix_use_runtimelinking=no
17096	exp_sym_flag='-Bexport'
17097	no_entry_flag=""
17098      else
17099	# If we're using GNU nm, then we don't want the "-C" option.
17100	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17101	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17102	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17103	else
17104	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17105	fi
17106	aix_use_runtimelinking=no
17107
17108	# Test if we are trying to use run time linking or normal
17109	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17110	# need to do runtime linking.
17111	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17112	  for ld_flag in $LDFLAGS; do
17113  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17114  	    aix_use_runtimelinking=yes
17115  	    break
17116  	  fi
17117	  done
17118	  ;;
17119	esac
17120
17121	exp_sym_flag='-bexport'
17122	no_entry_flag='-bnoentry'
17123      fi
17124
17125      # When large executables or shared objects are built, AIX ld can
17126      # have problems creating the table of contents.  If linking a library
17127      # or program results in "error TOC overflow" add -mminimal-toc to
17128      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17129      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17130
17131      archive_cmds_GCJ=''
17132      hardcode_direct_GCJ=yes
17133      hardcode_libdir_separator_GCJ=':'
17134      link_all_deplibs_GCJ=yes
17135
17136      if test "$GCC" = yes; then
17137	case $host_os in aix4.[012]|aix4.[012].*)
17138	# We only want to do this on AIX 4.2 and lower, the check
17139	# below for broken collect2 doesn't work under 4.3+
17140	  collect2name=`${CC} -print-prog-name=collect2`
17141	  if test -f "$collect2name" && \
17142  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17143	  then
17144  	  # We have reworked collect2
17145  	  hardcode_direct_GCJ=yes
17146	  else
17147  	  # We have old collect2
17148  	  hardcode_direct_GCJ=unsupported
17149  	  # It fails to find uninstalled libraries when the uninstalled
17150  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17151  	  # to unsupported forces relinking
17152  	  hardcode_minus_L_GCJ=yes
17153  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17154  	  hardcode_libdir_separator_GCJ=
17155	  fi
17156	  ;;
17157	esac
17158	shared_flag='-shared'
17159	if test "$aix_use_runtimelinking" = yes; then
17160	  shared_flag="$shared_flag "'${wl}-G'
17161	fi
17162      else
17163	# not using gcc
17164	if test "$host_cpu" = ia64; then
17165  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17166  	# chokes on -Wl,-G. The following line is correct:
17167	  shared_flag='-G'
17168	else
17169	  if test "$aix_use_runtimelinking" = yes; then
17170	    shared_flag='${wl}-G'
17171	  else
17172	    shared_flag='${wl}-bM:SRE'
17173	  fi
17174	fi
17175      fi
17176
17177      # It seems that -bexpall does not export symbols beginning with
17178      # underscore (_), so it is better to generate a list of symbols to export.
17179      always_export_symbols_GCJ=yes
17180      if test "$aix_use_runtimelinking" = yes; then
17181	# Warning - without using the other runtime loading flags (-brtl),
17182	# -berok will link without error, but may produce a broken library.
17183	allow_undefined_flag_GCJ='-berok'
17184       # Determine the default libpath from the value encoded in an empty executable.
17185       cat >conftest.$ac_ext <<_ACEOF
17186/* confdefs.h.  */
17187_ACEOF
17188cat confdefs.h >>conftest.$ac_ext
17189cat >>conftest.$ac_ext <<_ACEOF
17190/* end confdefs.h.  */
17191
17192int
17193main ()
17194{
17195
17196  ;
17197  return 0;
17198}
17199_ACEOF
17200rm -f conftest.$ac_objext conftest$ac_exeext
17201if { (ac_try="$ac_link"
17202case "(($ac_try" in
17203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17204  *) ac_try_echo=$ac_try;;
17205esac
17206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17207  (eval "$ac_link") 2>conftest.er1
17208  ac_status=$?
17209  grep -v '^ *+' conftest.er1 >conftest.err
17210  rm -f conftest.er1
17211  cat conftest.err >&5
17212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213  (exit $ac_status); } && {
17214	 test -z "$ac_c_werror_flag" ||
17215	 test ! -s conftest.err
17216       } && test -s conftest$ac_exeext &&
17217       $as_test_x conftest$ac_exeext; then
17218
17219aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17220}'`
17221# Check for a 64-bit object if we didn't find anything.
17222if 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; }
17223}'`; fi
17224else
17225  echo "$as_me: failed program was:" >&5
17226sed 's/^/| /' conftest.$ac_ext >&5
17227
17228
17229fi
17230
17231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17232      conftest$ac_exeext conftest.$ac_ext
17233if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17234
17235       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17236	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17237       else
17238	if test "$host_cpu" = ia64; then
17239	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17240	  allow_undefined_flag_GCJ="-z nodefs"
17241	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17242	else
17243	 # Determine the default libpath from the value encoded in an empty executable.
17244	 cat >conftest.$ac_ext <<_ACEOF
17245/* confdefs.h.  */
17246_ACEOF
17247cat confdefs.h >>conftest.$ac_ext
17248cat >>conftest.$ac_ext <<_ACEOF
17249/* end confdefs.h.  */
17250
17251int
17252main ()
17253{
17254
17255  ;
17256  return 0;
17257}
17258_ACEOF
17259rm -f conftest.$ac_objext conftest$ac_exeext
17260if { (ac_try="$ac_link"
17261case "(($ac_try" in
17262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263  *) ac_try_echo=$ac_try;;
17264esac
17265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266  (eval "$ac_link") 2>conftest.er1
17267  ac_status=$?
17268  grep -v '^ *+' conftest.er1 >conftest.err
17269  rm -f conftest.er1
17270  cat conftest.err >&5
17271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272  (exit $ac_status); } && {
17273	 test -z "$ac_c_werror_flag" ||
17274	 test ! -s conftest.err
17275       } && test -s conftest$ac_exeext &&
17276       $as_test_x conftest$ac_exeext; then
17277
17278aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17279}'`
17280# Check for a 64-bit object if we didn't find anything.
17281if 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; }
17282}'`; fi
17283else
17284  echo "$as_me: failed program was:" >&5
17285sed 's/^/| /' conftest.$ac_ext >&5
17286
17287
17288fi
17289
17290rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17291      conftest$ac_exeext conftest.$ac_ext
17292if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17293
17294	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17295	  # Warning - without using the other run time loading flags,
17296	  # -berok will link without error, but may produce a broken library.
17297	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17298	  allow_undefined_flag_GCJ=' ${wl}-berok'
17299	  # Exported symbols can be pulled into shared objects from archives
17300	  whole_archive_flag_spec_GCJ='$convenience'
17301	  archive_cmds_need_lc_GCJ=yes
17302	  # This is similar to how AIX traditionally builds its shared libraries.
17303	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17304	fi
17305      fi
17306      ;;
17307
17308    amigaos*)
17309      archive_cmds_GCJ='$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)'
17310      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17311      hardcode_minus_L_GCJ=yes
17312      # see comment about different semantics on the GNU ld section
17313      ld_shlibs_GCJ=no
17314      ;;
17315
17316    bsdi[45]*)
17317      export_dynamic_flag_spec_GCJ=-rdynamic
17318      ;;
17319
17320    cygwin* | mingw* | pw32*)
17321      # When not using gcc, we currently assume that we are using
17322      # Microsoft Visual C++.
17323      # hardcode_libdir_flag_spec is actually meaningless, as there is
17324      # no search path for DLLs.
17325      hardcode_libdir_flag_spec_GCJ=' '
17326      allow_undefined_flag_GCJ=unsupported
17327      # Tell ltmain to make .lib files, not .a files.
17328      libext=lib
17329      # Tell ltmain to make .dll files, not .so files.
17330      shrext_cmds=".dll"
17331      # FIXME: Setting linknames here is a bad hack.
17332      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17333      # The linker will automatically build a .lib file if we build a DLL.
17334      old_archive_From_new_cmds_GCJ='true'
17335      # FIXME: Should let the user specify the lib program.
17336      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17337      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17338      enable_shared_with_static_runtimes_GCJ=yes
17339      ;;
17340
17341    darwin* | rhapsody*)
17342      case $host_os in
17343        rhapsody* | darwin1.[012])
17344         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17345         ;;
17346       *) # Darwin 1.3 on
17347         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17348           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17349         else
17350           case ${MACOSX_DEPLOYMENT_TARGET} in
17351             10.[012])
17352               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17353               ;;
17354             10.*)
17355               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17356               ;;
17357           esac
17358         fi
17359         ;;
17360      esac
17361      archive_cmds_need_lc_GCJ=no
17362      hardcode_direct_GCJ=no
17363      hardcode_automatic_GCJ=yes
17364      hardcode_shlibpath_var_GCJ=unsupported
17365      whole_archive_flag_spec_GCJ=''
17366      link_all_deplibs_GCJ=yes
17367    if test "$GCC" = yes ; then
17368    	output_verbose_link_cmd='echo'
17369        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17370      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17371      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17372      archive_expsym_cmds_GCJ='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}'
17373      module_expsym_cmds_GCJ='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}'
17374    else
17375      case $cc_basename in
17376        xlc*)
17377         output_verbose_link_cmd='echo'
17378         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17379         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17380          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17381         archive_expsym_cmds_GCJ='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}'
17382          module_expsym_cmds_GCJ='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}'
17383          ;;
17384       *)
17385         ld_shlibs_GCJ=no
17386          ;;
17387      esac
17388    fi
17389      ;;
17390
17391    dgux*)
17392      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17393      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17394      hardcode_shlibpath_var_GCJ=no
17395      ;;
17396
17397    freebsd1*)
17398      ld_shlibs_GCJ=no
17399      ;;
17400
17401    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17402    # support.  Future versions do this automatically, but an explicit c++rt0.o
17403    # does not break anything, and helps significantly (at the cost of a little
17404    # extra space).
17405    freebsd2.2*)
17406      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17407      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17408      hardcode_direct_GCJ=yes
17409      hardcode_shlibpath_var_GCJ=no
17410      ;;
17411
17412    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17413    freebsd2*)
17414      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17415      hardcode_direct_GCJ=yes
17416      hardcode_minus_L_GCJ=yes
17417      hardcode_shlibpath_var_GCJ=no
17418      ;;
17419
17420    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17421    freebsd* | kfreebsd*-gnu | dragonfly*)
17422      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17423      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17424      hardcode_direct_GCJ=yes
17425      hardcode_shlibpath_var_GCJ=no
17426      ;;
17427
17428    hpux9*)
17429      if test "$GCC" = yes; then
17430	archive_cmds_GCJ='$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'
17431      else
17432	archive_cmds_GCJ='$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'
17433      fi
17434      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17435      hardcode_libdir_separator_GCJ=:
17436      hardcode_direct_GCJ=yes
17437
17438      # hardcode_minus_L: Not really in the search PATH,
17439      # but as the default location of the library.
17440      hardcode_minus_L_GCJ=yes
17441      export_dynamic_flag_spec_GCJ='${wl}-E'
17442      ;;
17443
17444    hpux10*)
17445      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17446	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17447      else
17448	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17449      fi
17450      if test "$with_gnu_ld" = no; then
17451	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17452	hardcode_libdir_separator_GCJ=:
17453
17454	hardcode_direct_GCJ=yes
17455	export_dynamic_flag_spec_GCJ='${wl}-E'
17456
17457	# hardcode_minus_L: Not really in the search PATH,
17458	# but as the default location of the library.
17459	hardcode_minus_L_GCJ=yes
17460      fi
17461      ;;
17462
17463    hpux11*)
17464      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17465	case $host_cpu in
17466	hppa*64*)
17467	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17468	  ;;
17469	ia64*)
17470	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17471	  ;;
17472	*)
17473	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17474	  ;;
17475	esac
17476      else
17477	case $host_cpu in
17478	hppa*64*)
17479	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17480	  ;;
17481	ia64*)
17482	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17483	  ;;
17484	*)
17485	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17486	  ;;
17487	esac
17488      fi
17489      if test "$with_gnu_ld" = no; then
17490	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17491	hardcode_libdir_separator_GCJ=:
17492
17493	case $host_cpu in
17494	hppa*64*|ia64*)
17495	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17496	  hardcode_direct_GCJ=no
17497	  hardcode_shlibpath_var_GCJ=no
17498	  ;;
17499	*)
17500	  hardcode_direct_GCJ=yes
17501	  export_dynamic_flag_spec_GCJ='${wl}-E'
17502
17503	  # hardcode_minus_L: Not really in the search PATH,
17504	  # but as the default location of the library.
17505	  hardcode_minus_L_GCJ=yes
17506	  ;;
17507	esac
17508      fi
17509      ;;
17510
17511    irix5* | irix6* | nonstopux*)
17512      if test "$GCC" = yes; then
17513	archive_cmds_GCJ='$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'
17514      else
17515	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17516	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17517      fi
17518      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17519      hardcode_libdir_separator_GCJ=:
17520      link_all_deplibs_GCJ=yes
17521      ;;
17522
17523    netbsd*)
17524      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17525	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17526      else
17527	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17528      fi
17529      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17530      hardcode_direct_GCJ=yes
17531      hardcode_shlibpath_var_GCJ=no
17532      ;;
17533
17534    newsos6)
17535      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17536      hardcode_direct_GCJ=yes
17537      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17538      hardcode_libdir_separator_GCJ=:
17539      hardcode_shlibpath_var_GCJ=no
17540      ;;
17541
17542    openbsd*)
17543      hardcode_direct_GCJ=yes
17544      hardcode_shlibpath_var_GCJ=no
17545      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17546	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17547	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17548	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17549	export_dynamic_flag_spec_GCJ='${wl}-E'
17550      else
17551       case $host_os in
17552	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17553	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17554	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17555	   ;;
17556	 *)
17557	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17558	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17559	   ;;
17560       esac
17561      fi
17562      ;;
17563
17564    os2*)
17565      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17566      hardcode_minus_L_GCJ=yes
17567      allow_undefined_flag_GCJ=unsupported
17568      archive_cmds_GCJ='$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'
17569      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17570      ;;
17571
17572    osf3*)
17573      if test "$GCC" = yes; then
17574	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17575	archive_cmds_GCJ='$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'
17576      else
17577	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17578	archive_cmds_GCJ='$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'
17579      fi
17580      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17581      hardcode_libdir_separator_GCJ=:
17582      ;;
17583
17584    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17585      if test "$GCC" = yes; then
17586	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17587	archive_cmds_GCJ='$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'
17588	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17589      else
17590	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17591	archive_cmds_GCJ='$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'
17592	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17593	$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'
17594
17595	# Both c and cxx compiler support -rpath directly
17596	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17597      fi
17598      hardcode_libdir_separator_GCJ=:
17599      ;;
17600
17601    solaris*)
17602      no_undefined_flag_GCJ=' -z text'
17603      if test "$GCC" = yes; then
17604	wlarc='${wl}'
17605	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17606	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17607	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17608      else
17609	wlarc=''
17610	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17611	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17612  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17613      fi
17614      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17615      hardcode_shlibpath_var_GCJ=no
17616      case $host_os in
17617      solaris2.[0-5] | solaris2.[0-5].*) ;;
17618      *)
17619 	# The compiler driver will combine linker options so we
17620 	# cannot just pass the convience library names through
17621 	# without $wl, iff we do not link with $LD.
17622 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17623 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17624 	case $wlarc in
17625 	'')
17626 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17627 	*)
17628 	  whole_archive_flag_spec_GCJ='${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' ;;
17629 	esac ;;
17630      esac
17631      link_all_deplibs_GCJ=yes
17632      ;;
17633
17634    sunos4*)
17635      if test "x$host_vendor" = xsequent; then
17636	# Use $CC to link under sequent, because it throws in some extra .o
17637	# files that make .init and .fini sections work.
17638	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17639      else
17640	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17641      fi
17642      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17643      hardcode_direct_GCJ=yes
17644      hardcode_minus_L_GCJ=yes
17645      hardcode_shlibpath_var_GCJ=no
17646      ;;
17647
17648    sysv4)
17649      case $host_vendor in
17650	sni)
17651	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17652	  hardcode_direct_GCJ=yes # is this really true???
17653	;;
17654	siemens)
17655	  ## LD is ld it makes a PLAMLIB
17656	  ## CC just makes a GrossModule.
17657	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17658	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17659	  hardcode_direct_GCJ=no
17660        ;;
17661	motorola)
17662	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17663	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17664	;;
17665      esac
17666      runpath_var='LD_RUN_PATH'
17667      hardcode_shlibpath_var_GCJ=no
17668      ;;
17669
17670    sysv4.3*)
17671      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17672      hardcode_shlibpath_var_GCJ=no
17673      export_dynamic_flag_spec_GCJ='-Bexport'
17674      ;;
17675
17676    sysv4*MP*)
17677      if test -d /usr/nec; then
17678	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17679	hardcode_shlibpath_var_GCJ=no
17680	runpath_var=LD_RUN_PATH
17681	hardcode_runpath_var=yes
17682	ld_shlibs_GCJ=yes
17683      fi
17684      ;;
17685
17686    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17687      no_undefined_flag_GCJ='${wl}-z,text'
17688      archive_cmds_need_lc_GCJ=no
17689      hardcode_shlibpath_var_GCJ=no
17690      runpath_var='LD_RUN_PATH'
17691
17692      if test "$GCC" = yes; then
17693	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17694	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17695      else
17696	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17697	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17698      fi
17699      ;;
17700
17701    sysv5* | sco3.2v5* | sco5v6*)
17702      # Note: We can NOT use -z defs as we might desire, because we do not
17703      # link with -lc, and that would cause any symbols used from libc to
17704      # always be unresolved, which means just about no library would
17705      # ever link correctly.  If we're not using GNU ld we use -z text
17706      # though, which does catch some bad symbols but isn't as heavy-handed
17707      # as -z defs.
17708      no_undefined_flag_GCJ='${wl}-z,text'
17709      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17710      archive_cmds_need_lc_GCJ=no
17711      hardcode_shlibpath_var_GCJ=no
17712      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17713      hardcode_libdir_separator_GCJ=':'
17714      link_all_deplibs_GCJ=yes
17715      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17716      runpath_var='LD_RUN_PATH'
17717
17718      if test "$GCC" = yes; then
17719	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17720	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17721      else
17722	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17723	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17724      fi
17725      ;;
17726
17727    uts4*)
17728      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17729      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17730      hardcode_shlibpath_var_GCJ=no
17731      ;;
17732
17733    *)
17734      ld_shlibs_GCJ=no
17735      ;;
17736    esac
17737  fi
17738
17739{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17740echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17741test "$ld_shlibs_GCJ" = no && can_build_shared=no
17742
17743#
17744# Do we need to explicitly link libc?
17745#
17746case "x$archive_cmds_need_lc_GCJ" in
17747x|xyes)
17748  # Assume -lc should be added
17749  archive_cmds_need_lc_GCJ=yes
17750
17751  if test "$enable_shared" = yes && test "$GCC" = yes; then
17752    case $archive_cmds_GCJ in
17753    *'~'*)
17754      # FIXME: we may have to deal with multi-command sequences.
17755      ;;
17756    '$CC '*)
17757      # Test whether the compiler implicitly links with -lc since on some
17758      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17759      # to ld, don't add -lc before -lgcc.
17760      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17761echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17762      $rm conftest*
17763      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17764
17765      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17766  (eval $ac_compile) 2>&5
17767  ac_status=$?
17768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769  (exit $ac_status); } 2>conftest.err; then
17770        soname=conftest
17771        lib=conftest
17772        libobjs=conftest.$ac_objext
17773        deplibs=
17774        wl=$lt_prog_compiler_wl_GCJ
17775	pic_flag=$lt_prog_compiler_pic_GCJ
17776        compiler_flags=-v
17777        linker_flags=-v
17778        verstring=
17779        output_objdir=.
17780        libname=conftest
17781        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17782        allow_undefined_flag_GCJ=
17783        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17784  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17785  ac_status=$?
17786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787  (exit $ac_status); }
17788        then
17789	  archive_cmds_need_lc_GCJ=no
17790        else
17791	  archive_cmds_need_lc_GCJ=yes
17792        fi
17793        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17794      else
17795        cat conftest.err 1>&5
17796      fi
17797      $rm conftest*
17798      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17799echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17800      ;;
17801    esac
17802  fi
17803  ;;
17804esac
17805
17806{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17807echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17808library_names_spec=
17809libname_spec='lib$name'
17810soname_spec=
17811shrext_cmds=".so"
17812postinstall_cmds=
17813postuninstall_cmds=
17814finish_cmds=
17815finish_eval=
17816shlibpath_var=
17817shlibpath_overrides_runpath=unknown
17818version_type=none
17819dynamic_linker="$host_os ld.so"
17820sys_lib_dlsearch_path_spec="/lib /usr/lib"
17821if test "$GCC" = yes; then
17822  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17823  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17824    # if the path contains ";" then we assume it to be the separator
17825    # otherwise default to the standard path separator (i.e. ":") - it is
17826    # assumed that no part of a normal pathname contains ";" but that should
17827    # okay in the real world where ";" in dirpaths is itself problematic.
17828    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17829  else
17830    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17831  fi
17832else
17833  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17834fi
17835need_lib_prefix=unknown
17836hardcode_into_libs=no
17837
17838# when you set need_version to no, make sure it does not cause -set_version
17839# flags to be left without arguments
17840need_version=unknown
17841
17842case $host_os in
17843aix3*)
17844  version_type=linux
17845  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17846  shlibpath_var=LIBPATH
17847
17848  # AIX 3 has no versioning support, so we append a major version to the name.
17849  soname_spec='${libname}${release}${shared_ext}$major'
17850  ;;
17851
17852aix4* | aix5*)
17853  version_type=linux
17854  need_lib_prefix=no
17855  need_version=no
17856  hardcode_into_libs=yes
17857  if test "$host_cpu" = ia64; then
17858    # AIX 5 supports IA64
17859    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17860    shlibpath_var=LD_LIBRARY_PATH
17861  else
17862    # With GCC up to 2.95.x, collect2 would create an import file
17863    # for dependence libraries.  The import file would start with
17864    # the line `#! .'.  This would cause the generated library to
17865    # depend on `.', always an invalid library.  This was fixed in
17866    # development snapshots of GCC prior to 3.0.
17867    case $host_os in
17868      aix4 | aix4.[01] | aix4.[01].*)
17869      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17870	   echo ' yes '
17871	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17872	:
17873      else
17874	can_build_shared=no
17875      fi
17876      ;;
17877    esac
17878    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17879    # soname into executable. Probably we can add versioning support to
17880    # collect2, so additional links can be useful in future.
17881    if test "$aix_use_runtimelinking" = yes; then
17882      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17883      # instead of lib<name>.a to let people know that these are not
17884      # typical AIX shared libraries.
17885      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17886    else
17887      # We preserve .a as extension for shared libraries through AIX4.2
17888      # and later when we are not doing run time linking.
17889      library_names_spec='${libname}${release}.a $libname.a'
17890      soname_spec='${libname}${release}${shared_ext}$major'
17891    fi
17892    shlibpath_var=LIBPATH
17893  fi
17894  ;;
17895
17896amigaos*)
17897  library_names_spec='$libname.ixlibrary $libname.a'
17898  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17899  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'
17900  ;;
17901
17902beos*)
17903  library_names_spec='${libname}${shared_ext}'
17904  dynamic_linker="$host_os ld.so"
17905  shlibpath_var=LIBRARY_PATH
17906  ;;
17907
17908bsdi[45]*)
17909  version_type=linux
17910  need_version=no
17911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17912  soname_spec='${libname}${release}${shared_ext}$major'
17913  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17914  shlibpath_var=LD_LIBRARY_PATH
17915  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17916  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17917  # the default ld.so.conf also contains /usr/contrib/lib and
17918  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17919  # libtool to hard-code these into programs
17920  ;;
17921
17922cygwin* | mingw* | pw32*)
17923  version_type=windows
17924  shrext_cmds=".dll"
17925  need_version=no
17926  need_lib_prefix=no
17927
17928  case $GCC,$host_os in
17929  yes,cygwin* | yes,mingw* | yes,pw32*)
17930    library_names_spec='$libname.dll.a'
17931    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17932    postinstall_cmds='base_file=`basename \${file}`~
17933      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17934      dldir=$destdir/`dirname \$dlpath`~
17935      test -d \$dldir || mkdir -p \$dldir~
17936      $install_prog $dir/$dlname \$dldir/$dlname~
17937      chmod a+x \$dldir/$dlname'
17938    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17939      dlpath=$dir/\$dldll~
17940       $rm \$dlpath'
17941    shlibpath_overrides_runpath=yes
17942
17943    case $host_os in
17944    cygwin*)
17945      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17946      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17947      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17948      ;;
17949    mingw*)
17950      # MinGW DLLs use traditional 'lib' prefix
17951      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17952      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17953      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17954        # It is most probably a Windows format PATH printed by
17955        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17956        # path with ; separators, and with drive letters. We can handle the
17957        # drive letters (cygwin fileutils understands them), so leave them,
17958        # especially as we might pass files found there to a mingw objdump,
17959        # which wouldn't understand a cygwinified path. Ahh.
17960        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17961      else
17962        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17963      fi
17964      ;;
17965    pw32*)
17966      # pw32 DLLs use 'pw' prefix rather than 'lib'
17967      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17968      ;;
17969    esac
17970    ;;
17971
17972  *)
17973    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17974    ;;
17975  esac
17976  dynamic_linker='Win32 ld.exe'
17977  # FIXME: first we should search . and the directory the executable is in
17978  shlibpath_var=PATH
17979  ;;
17980
17981darwin* | rhapsody*)
17982  dynamic_linker="$host_os dyld"
17983  version_type=darwin
17984  need_lib_prefix=no
17985  need_version=no
17986  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17987  soname_spec='${libname}${release}${major}$shared_ext'
17988  shlibpath_overrides_runpath=yes
17989  shlibpath_var=DYLD_LIBRARY_PATH
17990  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17991  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17992  if test "$GCC" = yes; then
17993    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"`
17994  else
17995    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17996  fi
17997  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17998  ;;
17999
18000dgux*)
18001  version_type=linux
18002  need_lib_prefix=no
18003  need_version=no
18004  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18005  soname_spec='${libname}${release}${shared_ext}$major'
18006  shlibpath_var=LD_LIBRARY_PATH
18007  ;;
18008
18009freebsd1*)
18010  dynamic_linker=no
18011  ;;
18012
18013kfreebsd*-gnu)
18014  version_type=linux
18015  need_lib_prefix=no
18016  need_version=no
18017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18018  soname_spec='${libname}${release}${shared_ext}$major'
18019  shlibpath_var=LD_LIBRARY_PATH
18020  shlibpath_overrides_runpath=no
18021  hardcode_into_libs=yes
18022  dynamic_linker='GNU ld.so'
18023  ;;
18024
18025freebsd* | dragonfly*)
18026  # DragonFly does not have aout.  When/if they implement a new
18027  # versioning mechanism, adjust this.
18028  if test -x /usr/bin/objformat; then
18029    objformat=`/usr/bin/objformat`
18030  else
18031    case $host_os in
18032    freebsd[123]*) objformat=aout ;;
18033    *) objformat=elf ;;
18034    esac
18035  fi
18036  version_type=freebsd-$objformat
18037  case $version_type in
18038    freebsd-elf*)
18039      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18040      need_version=no
18041      need_lib_prefix=no
18042      ;;
18043    freebsd-*)
18044      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18045      need_version=yes
18046      ;;
18047  esac
18048  shlibpath_var=LD_LIBRARY_PATH
18049  case $host_os in
18050  freebsd2*)
18051    shlibpath_overrides_runpath=yes
18052    ;;
18053  freebsd3.[01]* | freebsdelf3.[01]*)
18054    shlibpath_overrides_runpath=yes
18055    hardcode_into_libs=yes
18056    ;;
18057  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18058  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18059    shlibpath_overrides_runpath=no
18060    hardcode_into_libs=yes
18061    ;;
18062  freebsd*) # from 4.6 on
18063    shlibpath_overrides_runpath=yes
18064    hardcode_into_libs=yes
18065    ;;
18066  esac
18067  ;;
18068
18069gnu*)
18070  version_type=linux
18071  need_lib_prefix=no
18072  need_version=no
18073  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18074  soname_spec='${libname}${release}${shared_ext}$major'
18075  shlibpath_var=LD_LIBRARY_PATH
18076  hardcode_into_libs=yes
18077  ;;
18078
18079hpux9* | hpux10* | hpux11*)
18080  # Give a soname corresponding to the major version so that dld.sl refuses to
18081  # link against other versions.
18082  version_type=sunos
18083  need_lib_prefix=no
18084  need_version=no
18085  case $host_cpu in
18086  ia64*)
18087    shrext_cmds='.so'
18088    hardcode_into_libs=yes
18089    dynamic_linker="$host_os dld.so"
18090    shlibpath_var=LD_LIBRARY_PATH
18091    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18092    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18093    soname_spec='${libname}${release}${shared_ext}$major'
18094    if test "X$HPUX_IA64_MODE" = X32; then
18095      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18096    else
18097      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18098    fi
18099    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18100    ;;
18101   hppa*64*)
18102     shrext_cmds='.sl'
18103     hardcode_into_libs=yes
18104     dynamic_linker="$host_os dld.sl"
18105     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18106     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18107     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18108     soname_spec='${libname}${release}${shared_ext}$major'
18109     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18110     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18111     ;;
18112   *)
18113    shrext_cmds='.sl'
18114    dynamic_linker="$host_os dld.sl"
18115    shlibpath_var=SHLIB_PATH
18116    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18117    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18118    soname_spec='${libname}${release}${shared_ext}$major'
18119    ;;
18120  esac
18121  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18122  postinstall_cmds='chmod 555 $lib'
18123  ;;
18124
18125interix3*)
18126  version_type=linux
18127  need_lib_prefix=no
18128  need_version=no
18129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18130  soname_spec='${libname}${release}${shared_ext}$major'
18131  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18132  shlibpath_var=LD_LIBRARY_PATH
18133  shlibpath_overrides_runpath=no
18134  hardcode_into_libs=yes
18135  ;;
18136
18137irix5* | irix6* | nonstopux*)
18138  case $host_os in
18139    nonstopux*) version_type=nonstopux ;;
18140    *)
18141	if test "$lt_cv_prog_gnu_ld" = yes; then
18142		version_type=linux
18143	else
18144		version_type=irix
18145	fi ;;
18146  esac
18147  need_lib_prefix=no
18148  need_version=no
18149  soname_spec='${libname}${release}${shared_ext}$major'
18150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18151  case $host_os in
18152  irix5* | nonstopux*)
18153    libsuff= shlibsuff=
18154    ;;
18155  *)
18156    case $LD in # libtool.m4 will add one of these switches to LD
18157    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18158      libsuff= shlibsuff= libmagic=32-bit;;
18159    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18160      libsuff=32 shlibsuff=N32 libmagic=N32;;
18161    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18162      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18163    *) libsuff= shlibsuff= libmagic=never-match;;
18164    esac
18165    ;;
18166  esac
18167  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18168  shlibpath_overrides_runpath=no
18169  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18170  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18171  hardcode_into_libs=yes
18172  ;;
18173
18174# No shared lib support for Linux oldld, aout, or coff.
18175linux*oldld* | linux*aout* | linux*coff*)
18176  dynamic_linker=no
18177  ;;
18178
18179# This must be Linux ELF.
18180linux*)
18181  version_type=linux
18182  need_lib_prefix=no
18183  need_version=no
18184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18185  soname_spec='${libname}${release}${shared_ext}$major'
18186  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18187  shlibpath_var=LD_LIBRARY_PATH
18188  shlibpath_overrides_runpath=no
18189  # This implies no fast_install, which is unacceptable.
18190  # Some rework will be needed to allow for fast_install
18191  # before this can be enabled.
18192  hardcode_into_libs=yes
18193
18194  # find out which ABI we are using
18195  libsuff=
18196  case "$host_cpu" in
18197  x86_64*|s390x*|powerpc64*)
18198    echo '#line 18198 "configure"' > conftest.$ac_ext
18199    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18200  (eval $ac_compile) 2>&5
18201  ac_status=$?
18202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203  (exit $ac_status); }; then
18204      case `/usr/bin/file conftest.$ac_objext` in
18205      *64-bit*)
18206        libsuff=64
18207        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18208        ;;
18209      esac
18210    fi
18211    rm -rf conftest*
18212    ;;
18213  esac
18214
18215  # Append ld.so.conf contents to the search path
18216  if test -f /etc/ld.so.conf; then
18217    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18218    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18219  fi
18220
18221  # We used to test for /lib/ld.so.1 and disable shared libraries on
18222  # powerpc, because MkLinux only supported shared libraries with the
18223  # GNU dynamic linker.  Since this was broken with cross compilers,
18224  # most powerpc-linux boxes support dynamic linking these days and
18225  # people can always --disable-shared, the test was removed, and we
18226  # assume the GNU/Linux dynamic linker is in use.
18227  dynamic_linker='GNU/Linux ld.so'
18228  ;;
18229
18230knetbsd*-gnu)
18231  version_type=linux
18232  need_lib_prefix=no
18233  need_version=no
18234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18235  soname_spec='${libname}${release}${shared_ext}$major'
18236  shlibpath_var=LD_LIBRARY_PATH
18237  shlibpath_overrides_runpath=no
18238  hardcode_into_libs=yes
18239  dynamic_linker='GNU ld.so'
18240  ;;
18241
18242netbsd*)
18243  version_type=sunos
18244  need_lib_prefix=no
18245  need_version=no
18246  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18247    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18248    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18249    dynamic_linker='NetBSD (a.out) ld.so'
18250  else
18251    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18252    soname_spec='${libname}${release}${shared_ext}$major'
18253    dynamic_linker='NetBSD ld.elf_so'
18254  fi
18255  shlibpath_var=LD_LIBRARY_PATH
18256  shlibpath_overrides_runpath=yes
18257  hardcode_into_libs=yes
18258  ;;
18259
18260newsos6)
18261  version_type=linux
18262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18263  shlibpath_var=LD_LIBRARY_PATH
18264  shlibpath_overrides_runpath=yes
18265  ;;
18266
18267nto-qnx*)
18268  version_type=linux
18269  need_lib_prefix=no
18270  need_version=no
18271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18272  soname_spec='${libname}${release}${shared_ext}$major'
18273  shlibpath_var=LD_LIBRARY_PATH
18274  shlibpath_overrides_runpath=yes
18275  ;;
18276
18277openbsd*)
18278  version_type=sunos
18279  sys_lib_dlsearch_path_spec="/usr/lib"
18280  need_lib_prefix=no
18281  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18282  case $host_os in
18283    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18284    *)                         need_version=no  ;;
18285  esac
18286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18287  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18288  shlibpath_var=LD_LIBRARY_PATH
18289  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18290    case $host_os in
18291      openbsd2.[89] | openbsd2.[89].*)
18292	shlibpath_overrides_runpath=no
18293	;;
18294      *)
18295	shlibpath_overrides_runpath=yes
18296	;;
18297      esac
18298  else
18299    shlibpath_overrides_runpath=yes
18300  fi
18301  ;;
18302
18303os2*)
18304  libname_spec='$name'
18305  shrext_cmds=".dll"
18306  need_lib_prefix=no
18307  library_names_spec='$libname${shared_ext} $libname.a'
18308  dynamic_linker='OS/2 ld.exe'
18309  shlibpath_var=LIBPATH
18310  ;;
18311
18312osf3* | osf4* | osf5*)
18313  version_type=osf
18314  need_lib_prefix=no
18315  need_version=no
18316  soname_spec='${libname}${release}${shared_ext}$major'
18317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18318  shlibpath_var=LD_LIBRARY_PATH
18319  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18320  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18321  ;;
18322
18323solaris*)
18324  version_type=linux
18325  need_lib_prefix=no
18326  need_version=no
18327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18328  soname_spec='${libname}${release}${shared_ext}$major'
18329  shlibpath_var=LD_LIBRARY_PATH
18330  shlibpath_overrides_runpath=yes
18331  hardcode_into_libs=yes
18332  # ldd complains unless libraries are executable
18333  postinstall_cmds='chmod +x $lib'
18334  ;;
18335
18336sunos4*)
18337  version_type=sunos
18338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18339  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18340  shlibpath_var=LD_LIBRARY_PATH
18341  shlibpath_overrides_runpath=yes
18342  if test "$with_gnu_ld" = yes; then
18343    need_lib_prefix=no
18344  fi
18345  need_version=yes
18346  ;;
18347
18348sysv4 | sysv4.3*)
18349  version_type=linux
18350  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18351  soname_spec='${libname}${release}${shared_ext}$major'
18352  shlibpath_var=LD_LIBRARY_PATH
18353  case $host_vendor in
18354    sni)
18355      shlibpath_overrides_runpath=no
18356      need_lib_prefix=no
18357      export_dynamic_flag_spec='${wl}-Blargedynsym'
18358      runpath_var=LD_RUN_PATH
18359      ;;
18360    siemens)
18361      need_lib_prefix=no
18362      ;;
18363    motorola)
18364      need_lib_prefix=no
18365      need_version=no
18366      shlibpath_overrides_runpath=no
18367      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18368      ;;
18369  esac
18370  ;;
18371
18372sysv4*MP*)
18373  if test -d /usr/nec ;then
18374    version_type=linux
18375    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18376    soname_spec='$libname${shared_ext}.$major'
18377    shlibpath_var=LD_LIBRARY_PATH
18378  fi
18379  ;;
18380
18381sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18382  version_type=freebsd-elf
18383  need_lib_prefix=no
18384  need_version=no
18385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18386  soname_spec='${libname}${release}${shared_ext}$major'
18387  shlibpath_var=LD_LIBRARY_PATH
18388  hardcode_into_libs=yes
18389  if test "$with_gnu_ld" = yes; then
18390    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18391    shlibpath_overrides_runpath=no
18392  else
18393    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18394    shlibpath_overrides_runpath=yes
18395    case $host_os in
18396      sco3.2v5*)
18397        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18398	;;
18399    esac
18400  fi
18401  sys_lib_dlsearch_path_spec='/usr/lib'
18402  ;;
18403
18404uts4*)
18405  version_type=linux
18406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18407  soname_spec='${libname}${release}${shared_ext}$major'
18408  shlibpath_var=LD_LIBRARY_PATH
18409  ;;
18410
18411*)
18412  dynamic_linker=no
18413  ;;
18414esac
18415{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18416echo "${ECHO_T}$dynamic_linker" >&6; }
18417test "$dynamic_linker" = no && can_build_shared=no
18418
18419variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18420if test "$GCC" = yes; then
18421  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18422fi
18423
18424{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18425echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18426hardcode_action_GCJ=
18427if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18428   test -n "$runpath_var_GCJ" || \
18429   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18430
18431  # We can hardcode non-existant directories.
18432  if test "$hardcode_direct_GCJ" != no &&
18433     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18434     # have to relink, otherwise we might link with an installed library
18435     # when we should be linking with a yet-to-be-installed one
18436     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18437     test "$hardcode_minus_L_GCJ" != no; then
18438    # Linking always hardcodes the temporary library directory.
18439    hardcode_action_GCJ=relink
18440  else
18441    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18442    hardcode_action_GCJ=immediate
18443  fi
18444else
18445  # We cannot hardcode anything, or else we can only hardcode existing
18446  # directories.
18447  hardcode_action_GCJ=unsupported
18448fi
18449{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18450echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18451
18452if test "$hardcode_action_GCJ" = relink; then
18453  # Fast installation is not supported
18454  enable_fast_install=no
18455elif test "$shlibpath_overrides_runpath" = yes ||
18456     test "$enable_shared" = no; then
18457  # Fast installation is not necessary
18458  enable_fast_install=needless
18459fi
18460
18461
18462# The else clause should only fire when bootstrapping the
18463# libtool distribution, otherwise you forgot to ship ltmain.sh
18464# with your package, and you will get complaints that there are
18465# no rules to generate ltmain.sh.
18466if test -f "$ltmain"; then
18467  # See if we are running on zsh, and set the options which allow our commands through
18468  # without removal of \ escapes.
18469  if test -n "${ZSH_VERSION+set}" ; then
18470    setopt NO_GLOB_SUBST
18471  fi
18472  # Now quote all the things that may contain metacharacters while being
18473  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18474  # variables and quote the copies for generation of the libtool script.
18475  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18476    SED SHELL STRIP \
18477    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18478    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18479    deplibs_check_method reload_flag reload_cmds need_locks \
18480    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18481    lt_cv_sys_global_symbol_to_c_name_address \
18482    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18483    old_postinstall_cmds old_postuninstall_cmds \
18484    compiler_GCJ \
18485    CC_GCJ \
18486    LD_GCJ \
18487    lt_prog_compiler_wl_GCJ \
18488    lt_prog_compiler_pic_GCJ \
18489    lt_prog_compiler_static_GCJ \
18490    lt_prog_compiler_no_builtin_flag_GCJ \
18491    export_dynamic_flag_spec_GCJ \
18492    thread_safe_flag_spec_GCJ \
18493    whole_archive_flag_spec_GCJ \
18494    enable_shared_with_static_runtimes_GCJ \
18495    old_archive_cmds_GCJ \
18496    old_archive_from_new_cmds_GCJ \
18497    predep_objects_GCJ \
18498    postdep_objects_GCJ \
18499    predeps_GCJ \
18500    postdeps_GCJ \
18501    compiler_lib_search_path_GCJ \
18502    archive_cmds_GCJ \
18503    archive_expsym_cmds_GCJ \
18504    postinstall_cmds_GCJ \
18505    postuninstall_cmds_GCJ \
18506    old_archive_from_expsyms_cmds_GCJ \
18507    allow_undefined_flag_GCJ \
18508    no_undefined_flag_GCJ \
18509    export_symbols_cmds_GCJ \
18510    hardcode_libdir_flag_spec_GCJ \
18511    hardcode_libdir_flag_spec_ld_GCJ \
18512    hardcode_libdir_separator_GCJ \
18513    hardcode_automatic_GCJ \
18514    module_cmds_GCJ \
18515    module_expsym_cmds_GCJ \
18516    lt_cv_prog_compiler_c_o_GCJ \
18517    exclude_expsyms_GCJ \
18518    include_expsyms_GCJ; do
18519
18520    case $var in
18521    old_archive_cmds_GCJ | \
18522    old_archive_from_new_cmds_GCJ | \
18523    archive_cmds_GCJ | \
18524    archive_expsym_cmds_GCJ | \
18525    module_cmds_GCJ | \
18526    module_expsym_cmds_GCJ | \
18527    old_archive_from_expsyms_cmds_GCJ | \
18528    export_symbols_cmds_GCJ | \
18529    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18530    postinstall_cmds | postuninstall_cmds | \
18531    old_postinstall_cmds | old_postuninstall_cmds | \
18532    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18533      # Double-quote double-evaled strings.
18534      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18535      ;;
18536    *)
18537      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18538      ;;
18539    esac
18540  done
18541
18542  case $lt_echo in
18543  *'\$0 --fallback-echo"')
18544    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18545    ;;
18546  esac
18547
18548cfgfile="$ofile"
18549
18550  cat <<__EOF__ >> "$cfgfile"
18551# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18552
18553# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18554
18555# Shell to use when invoking shell scripts.
18556SHELL=$lt_SHELL
18557
18558# Whether or not to build shared libraries.
18559build_libtool_libs=$enable_shared
18560
18561# Whether or not to build static libraries.
18562build_old_libs=$enable_static
18563
18564# Whether or not to add -lc for building shared libraries.
18565build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18566
18567# Whether or not to disallow shared libs when runtime libs are static
18568allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18569
18570# Whether or not to optimize for fast installation.
18571fast_install=$enable_fast_install
18572
18573# The host system.
18574host_alias=$host_alias
18575host=$host
18576host_os=$host_os
18577
18578# The build system.
18579build_alias=$build_alias
18580build=$build
18581build_os=$build_os
18582
18583# An echo program that does not interpret backslashes.
18584echo=$lt_echo
18585
18586# The archiver.
18587AR=$lt_AR
18588AR_FLAGS=$lt_AR_FLAGS
18589
18590# A C compiler.
18591LTCC=$lt_LTCC
18592
18593# LTCC compiler flags.
18594LTCFLAGS=$lt_LTCFLAGS
18595
18596# A language-specific compiler.
18597CC=$lt_compiler_GCJ
18598
18599# Is the compiler the GNU C compiler?
18600with_gcc=$GCC_GCJ
18601
18602gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18603gcc_ver=\`gcc -dumpversion\`
18604
18605# An ERE matcher.
18606EGREP=$lt_EGREP
18607
18608# The linker used to build libraries.
18609LD=$lt_LD_GCJ
18610
18611# Whether we need hard or soft links.
18612LN_S=$lt_LN_S
18613
18614# A BSD-compatible nm program.
18615NM=$lt_NM
18616
18617# A symbol stripping program
18618STRIP=$lt_STRIP
18619
18620# Used to examine libraries when file_magic_cmd begins "file"
18621MAGIC_CMD=$MAGIC_CMD
18622
18623# Used on cygwin: DLL creation program.
18624DLLTOOL="$DLLTOOL"
18625
18626# Used on cygwin: object dumper.
18627OBJDUMP="$OBJDUMP"
18628
18629# Used on cygwin: assembler.
18630AS="$AS"
18631
18632# The name of the directory that contains temporary libtool files.
18633objdir=$objdir
18634
18635# How to create reloadable object files.
18636reload_flag=$lt_reload_flag
18637reload_cmds=$lt_reload_cmds
18638
18639# How to pass a linker flag through the compiler.
18640wl=$lt_lt_prog_compiler_wl_GCJ
18641
18642# Object file suffix (normally "o").
18643objext="$ac_objext"
18644
18645# Old archive suffix (normally "a").
18646libext="$libext"
18647
18648# Shared library suffix (normally ".so").
18649shrext_cmds='$shrext_cmds'
18650
18651# Executable file suffix (normally "").
18652exeext="$exeext"
18653
18654# Additional compiler flags for building library objects.
18655pic_flag=$lt_lt_prog_compiler_pic_GCJ
18656pic_mode=$pic_mode
18657
18658# What is the maximum length of a command?
18659max_cmd_len=$lt_cv_sys_max_cmd_len
18660
18661# Does compiler simultaneously support -c and -o options?
18662compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18663
18664# Must we lock files when doing compilation?
18665need_locks=$lt_need_locks
18666
18667# Do we need the lib prefix for modules?
18668need_lib_prefix=$need_lib_prefix
18669
18670# Do we need a version for libraries?
18671need_version=$need_version
18672
18673# Whether dlopen is supported.
18674dlopen_support=$enable_dlopen
18675
18676# Whether dlopen of programs is supported.
18677dlopen_self=$enable_dlopen_self
18678
18679# Whether dlopen of statically linked programs is supported.
18680dlopen_self_static=$enable_dlopen_self_static
18681
18682# Compiler flag to prevent dynamic linking.
18683link_static_flag=$lt_lt_prog_compiler_static_GCJ
18684
18685# Compiler flag to turn off builtin functions.
18686no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18687
18688# Compiler flag to allow reflexive dlopens.
18689export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18690
18691# Compiler flag to generate shared objects directly from archives.
18692whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18693
18694# Compiler flag to generate thread-safe objects.
18695thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18696
18697# Library versioning type.
18698version_type=$version_type
18699
18700# Format of library name prefix.
18701libname_spec=$lt_libname_spec
18702
18703# List of archive names.  First name is the real one, the rest are links.
18704# The last name is the one that the linker finds with -lNAME.
18705library_names_spec=$lt_library_names_spec
18706
18707# The coded name of the library, if different from the real name.
18708soname_spec=$lt_soname_spec
18709
18710# Commands used to build and install an old-style archive.
18711RANLIB=$lt_RANLIB
18712old_archive_cmds=$lt_old_archive_cmds_GCJ
18713old_postinstall_cmds=$lt_old_postinstall_cmds
18714old_postuninstall_cmds=$lt_old_postuninstall_cmds
18715
18716# Create an old-style archive from a shared archive.
18717old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18718
18719# Create a temporary old-style archive to link instead of a shared archive.
18720old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18721
18722# Commands used to build and install a shared archive.
18723archive_cmds=$lt_archive_cmds_GCJ
18724archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18725postinstall_cmds=$lt_postinstall_cmds
18726postuninstall_cmds=$lt_postuninstall_cmds
18727
18728# Commands used to build a loadable module (assumed same as above if empty)
18729module_cmds=$lt_module_cmds_GCJ
18730module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18731
18732# Commands to strip libraries.
18733old_striplib=$lt_old_striplib
18734striplib=$lt_striplib
18735
18736# Dependencies to place before the objects being linked to create a
18737# shared library.
18738predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18739
18740# Dependencies to place after the objects being linked to create a
18741# shared library.
18742postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18743
18744# Dependencies to place before the objects being linked to create a
18745# shared library.
18746predeps=$lt_predeps_GCJ
18747
18748# Dependencies to place after the objects being linked to create a
18749# shared library.
18750postdeps=$lt_postdeps_GCJ
18751
18752# The library search path used internally by the compiler when linking
18753# a shared library.
18754compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18755
18756# Method to check whether dependent libraries are shared objects.
18757deplibs_check_method=$lt_deplibs_check_method
18758
18759# Command to use when deplibs_check_method == file_magic.
18760file_magic_cmd=$lt_file_magic_cmd
18761
18762# Flag that allows shared libraries with undefined symbols to be built.
18763allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18764
18765# Flag that forces no undefined symbols.
18766no_undefined_flag=$lt_no_undefined_flag_GCJ
18767
18768# Commands used to finish a libtool library installation in a directory.
18769finish_cmds=$lt_finish_cmds
18770
18771# Same as above, but a single script fragment to be evaled but not shown.
18772finish_eval=$lt_finish_eval
18773
18774# Take the output of nm and produce a listing of raw symbols and C names.
18775global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18776
18777# Transform the output of nm in a proper C declaration
18778global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18779
18780# Transform the output of nm in a C name address pair
18781global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18782
18783# This is the shared library runtime path variable.
18784runpath_var=$runpath_var
18785
18786# This is the shared library path variable.
18787shlibpath_var=$shlibpath_var
18788
18789# Is shlibpath searched before the hard-coded library search path?
18790shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18791
18792# How to hardcode a shared library path into an executable.
18793hardcode_action=$hardcode_action_GCJ
18794
18795# Whether we should hardcode library paths into libraries.
18796hardcode_into_libs=$hardcode_into_libs
18797
18798# Flag to hardcode \$libdir into a binary during linking.
18799# This must work even if \$libdir does not exist.
18800hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18801
18802# If ld is used when linking, flag to hardcode \$libdir into
18803# a binary during linking. This must work even if \$libdir does
18804# not exist.
18805hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18806
18807# Whether we need a single -rpath flag with a separated argument.
18808hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18809
18810# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18811# resulting binary.
18812hardcode_direct=$hardcode_direct_GCJ
18813
18814# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18815# resulting binary.
18816hardcode_minus_L=$hardcode_minus_L_GCJ
18817
18818# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18819# the resulting binary.
18820hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18821
18822# Set to yes if building a shared library automatically hardcodes DIR into the library
18823# and all subsequent libraries and executables linked against it.
18824hardcode_automatic=$hardcode_automatic_GCJ
18825
18826# Variables whose values should be saved in libtool wrapper scripts and
18827# restored at relink time.
18828variables_saved_for_relink="$variables_saved_for_relink"
18829
18830# Whether libtool must link a program against all its dependency libraries.
18831link_all_deplibs=$link_all_deplibs_GCJ
18832
18833# Compile-time system search path for libraries
18834sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18835
18836# Run-time system search path for libraries
18837sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18838
18839# Fix the shell variable \$srcfile for the compiler.
18840fix_srcfile_path="$fix_srcfile_path_GCJ"
18841
18842# Set to yes if exported symbols are required.
18843always_export_symbols=$always_export_symbols_GCJ
18844
18845# The commands to list exported symbols.
18846export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18847
18848# The commands to extract the exported symbol list from a shared archive.
18849extract_expsyms_cmds=$lt_extract_expsyms_cmds
18850
18851# Symbols that should not be listed in the preloaded symbols.
18852exclude_expsyms=$lt_exclude_expsyms_GCJ
18853
18854# Symbols that must always be exported.
18855include_expsyms=$lt_include_expsyms_GCJ
18856
18857# ### END LIBTOOL TAG CONFIG: $tagname
18858
18859__EOF__
18860
18861
18862else
18863  # If there is no Makefile yet, we rely on a make rule to execute
18864  # `config.status --recheck' to rerun these tests and create the
18865  # libtool script then.
18866  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18867  if test -f "$ltmain_in"; then
18868    test -f Makefile && make "$ltmain"
18869  fi
18870fi
18871
18872
18873ac_ext=c
18874ac_cpp='$CPP $CPPFLAGS'
18875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18877ac_compiler_gnu=$ac_cv_c_compiler_gnu
18878
18879CC="$lt_save_CC"
18880
18881	else
18882	  tagname=""
18883	fi
18884	;;
18885
18886      RC)
18887
18888
18889# Source file extension for RC test sources.
18890ac_ext=rc
18891
18892# Object file extension for compiled RC test sources.
18893objext=o
18894objext_RC=$objext
18895
18896# Code to be used in simple compile tests
18897lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18898
18899# Code to be used in simple link tests
18900lt_simple_link_test_code="$lt_simple_compile_test_code"
18901
18902# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18903
18904# If no C compiler was specified, use CC.
18905LTCC=${LTCC-"$CC"}
18906
18907# If no C compiler flags were specified, use CFLAGS.
18908LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18909
18910# Allow CC to be a program name with arguments.
18911compiler=$CC
18912
18913
18914# save warnings/boilerplate of simple test code
18915ac_outfile=conftest.$ac_objext
18916printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18917eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18918_lt_compiler_boilerplate=`cat conftest.err`
18919$rm conftest*
18920
18921ac_outfile=conftest.$ac_objext
18922printf "$lt_simple_link_test_code" >conftest.$ac_ext
18923eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18924_lt_linker_boilerplate=`cat conftest.err`
18925$rm conftest*
18926
18927
18928# Allow CC to be a program name with arguments.
18929lt_save_CC="$CC"
18930CC=${RC-"windres"}
18931compiler=$CC
18932compiler_RC=$CC
18933for cc_temp in $compiler""; do
18934  case $cc_temp in
18935    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18936    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18937    \-*) ;;
18938    *) break;;
18939  esac
18940done
18941cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18942
18943lt_cv_prog_compiler_c_o_RC=yes
18944
18945# The else clause should only fire when bootstrapping the
18946# libtool distribution, otherwise you forgot to ship ltmain.sh
18947# with your package, and you will get complaints that there are
18948# no rules to generate ltmain.sh.
18949if test -f "$ltmain"; then
18950  # See if we are running on zsh, and set the options which allow our commands through
18951  # without removal of \ escapes.
18952  if test -n "${ZSH_VERSION+set}" ; then
18953    setopt NO_GLOB_SUBST
18954  fi
18955  # Now quote all the things that may contain metacharacters while being
18956  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18957  # variables and quote the copies for generation of the libtool script.
18958  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18959    SED SHELL STRIP \
18960    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18961    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18962    deplibs_check_method reload_flag reload_cmds need_locks \
18963    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18964    lt_cv_sys_global_symbol_to_c_name_address \
18965    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18966    old_postinstall_cmds old_postuninstall_cmds \
18967    compiler_RC \
18968    CC_RC \
18969    LD_RC \
18970    lt_prog_compiler_wl_RC \
18971    lt_prog_compiler_pic_RC \
18972    lt_prog_compiler_static_RC \
18973    lt_prog_compiler_no_builtin_flag_RC \
18974    export_dynamic_flag_spec_RC \
18975    thread_safe_flag_spec_RC \
18976    whole_archive_flag_spec_RC \
18977    enable_shared_with_static_runtimes_RC \
18978    old_archive_cmds_RC \
18979    old_archive_from_new_cmds_RC \
18980    predep_objects_RC \
18981    postdep_objects_RC \
18982    predeps_RC \
18983    postdeps_RC \
18984    compiler_lib_search_path_RC \
18985    archive_cmds_RC \
18986    archive_expsym_cmds_RC \
18987    postinstall_cmds_RC \
18988    postuninstall_cmds_RC \
18989    old_archive_from_expsyms_cmds_RC \
18990    allow_undefined_flag_RC \
18991    no_undefined_flag_RC \
18992    export_symbols_cmds_RC \
18993    hardcode_libdir_flag_spec_RC \
18994    hardcode_libdir_flag_spec_ld_RC \
18995    hardcode_libdir_separator_RC \
18996    hardcode_automatic_RC \
18997    module_cmds_RC \
18998    module_expsym_cmds_RC \
18999    lt_cv_prog_compiler_c_o_RC \
19000    exclude_expsyms_RC \
19001    include_expsyms_RC; do
19002
19003    case $var in
19004    old_archive_cmds_RC | \
19005    old_archive_from_new_cmds_RC | \
19006    archive_cmds_RC | \
19007    archive_expsym_cmds_RC | \
19008    module_cmds_RC | \
19009    module_expsym_cmds_RC | \
19010    old_archive_from_expsyms_cmds_RC | \
19011    export_symbols_cmds_RC | \
19012    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19013    postinstall_cmds | postuninstall_cmds | \
19014    old_postinstall_cmds | old_postuninstall_cmds | \
19015    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19016      # Double-quote double-evaled strings.
19017      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19018      ;;
19019    *)
19020      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19021      ;;
19022    esac
19023  done
19024
19025  case $lt_echo in
19026  *'\$0 --fallback-echo"')
19027    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19028    ;;
19029  esac
19030
19031cfgfile="$ofile"
19032
19033  cat <<__EOF__ >> "$cfgfile"
19034# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19035
19036# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19037
19038# Shell to use when invoking shell scripts.
19039SHELL=$lt_SHELL
19040
19041# Whether or not to build shared libraries.
19042build_libtool_libs=$enable_shared
19043
19044# Whether or not to build static libraries.
19045build_old_libs=$enable_static
19046
19047# Whether or not to add -lc for building shared libraries.
19048build_libtool_need_lc=$archive_cmds_need_lc_RC
19049
19050# Whether or not to disallow shared libs when runtime libs are static
19051allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19052
19053# Whether or not to optimize for fast installation.
19054fast_install=$enable_fast_install
19055
19056# The host system.
19057host_alias=$host_alias
19058host=$host
19059host_os=$host_os
19060
19061# The build system.
19062build_alias=$build_alias
19063build=$build
19064build_os=$build_os
19065
19066# An echo program that does not interpret backslashes.
19067echo=$lt_echo
19068
19069# The archiver.
19070AR=$lt_AR
19071AR_FLAGS=$lt_AR_FLAGS
19072
19073# A C compiler.
19074LTCC=$lt_LTCC
19075
19076# LTCC compiler flags.
19077LTCFLAGS=$lt_LTCFLAGS
19078
19079# A language-specific compiler.
19080CC=$lt_compiler_RC
19081
19082# Is the compiler the GNU C compiler?
19083with_gcc=$GCC_RC
19084
19085gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19086gcc_ver=\`gcc -dumpversion\`
19087
19088# An ERE matcher.
19089EGREP=$lt_EGREP
19090
19091# The linker used to build libraries.
19092LD=$lt_LD_RC
19093
19094# Whether we need hard or soft links.
19095LN_S=$lt_LN_S
19096
19097# A BSD-compatible nm program.
19098NM=$lt_NM
19099
19100# A symbol stripping program
19101STRIP=$lt_STRIP
19102
19103# Used to examine libraries when file_magic_cmd begins "file"
19104MAGIC_CMD=$MAGIC_CMD
19105
19106# Used on cygwin: DLL creation program.
19107DLLTOOL="$DLLTOOL"
19108
19109# Used on cygwin: object dumper.
19110OBJDUMP="$OBJDUMP"
19111
19112# Used on cygwin: assembler.
19113AS="$AS"
19114
19115# The name of the directory that contains temporary libtool files.
19116objdir=$objdir
19117
19118# How to create reloadable object files.
19119reload_flag=$lt_reload_flag
19120reload_cmds=$lt_reload_cmds
19121
19122# How to pass a linker flag through the compiler.
19123wl=$lt_lt_prog_compiler_wl_RC
19124
19125# Object file suffix (normally "o").
19126objext="$ac_objext"
19127
19128# Old archive suffix (normally "a").
19129libext="$libext"
19130
19131# Shared library suffix (normally ".so").
19132shrext_cmds='$shrext_cmds'
19133
19134# Executable file suffix (normally "").
19135exeext="$exeext"
19136
19137# Additional compiler flags for building library objects.
19138pic_flag=$lt_lt_prog_compiler_pic_RC
19139pic_mode=$pic_mode
19140
19141# What is the maximum length of a command?
19142max_cmd_len=$lt_cv_sys_max_cmd_len
19143
19144# Does compiler simultaneously support -c and -o options?
19145compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19146
19147# Must we lock files when doing compilation?
19148need_locks=$lt_need_locks
19149
19150# Do we need the lib prefix for modules?
19151need_lib_prefix=$need_lib_prefix
19152
19153# Do we need a version for libraries?
19154need_version=$need_version
19155
19156# Whether dlopen is supported.
19157dlopen_support=$enable_dlopen
19158
19159# Whether dlopen of programs is supported.
19160dlopen_self=$enable_dlopen_self
19161
19162# Whether dlopen of statically linked programs is supported.
19163dlopen_self_static=$enable_dlopen_self_static
19164
19165# Compiler flag to prevent dynamic linking.
19166link_static_flag=$lt_lt_prog_compiler_static_RC
19167
19168# Compiler flag to turn off builtin functions.
19169no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19170
19171# Compiler flag to allow reflexive dlopens.
19172export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19173
19174# Compiler flag to generate shared objects directly from archives.
19175whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19176
19177# Compiler flag to generate thread-safe objects.
19178thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19179
19180# Library versioning type.
19181version_type=$version_type
19182
19183# Format of library name prefix.
19184libname_spec=$lt_libname_spec
19185
19186# List of archive names.  First name is the real one, the rest are links.
19187# The last name is the one that the linker finds with -lNAME.
19188library_names_spec=$lt_library_names_spec
19189
19190# The coded name of the library, if different from the real name.
19191soname_spec=$lt_soname_spec
19192
19193# Commands used to build and install an old-style archive.
19194RANLIB=$lt_RANLIB
19195old_archive_cmds=$lt_old_archive_cmds_RC
19196old_postinstall_cmds=$lt_old_postinstall_cmds
19197old_postuninstall_cmds=$lt_old_postuninstall_cmds
19198
19199# Create an old-style archive from a shared archive.
19200old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19201
19202# Create a temporary old-style archive to link instead of a shared archive.
19203old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19204
19205# Commands used to build and install a shared archive.
19206archive_cmds=$lt_archive_cmds_RC
19207archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19208postinstall_cmds=$lt_postinstall_cmds
19209postuninstall_cmds=$lt_postuninstall_cmds
19210
19211# Commands used to build a loadable module (assumed same as above if empty)
19212module_cmds=$lt_module_cmds_RC
19213module_expsym_cmds=$lt_module_expsym_cmds_RC
19214
19215# Commands to strip libraries.
19216old_striplib=$lt_old_striplib
19217striplib=$lt_striplib
19218
19219# Dependencies to place before the objects being linked to create a
19220# shared library.
19221predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19222
19223# Dependencies to place after the objects being linked to create a
19224# shared library.
19225postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19226
19227# Dependencies to place before the objects being linked to create a
19228# shared library.
19229predeps=$lt_predeps_RC
19230
19231# Dependencies to place after the objects being linked to create a
19232# shared library.
19233postdeps=$lt_postdeps_RC
19234
19235# The library search path used internally by the compiler when linking
19236# a shared library.
19237compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19238
19239# Method to check whether dependent libraries are shared objects.
19240deplibs_check_method=$lt_deplibs_check_method
19241
19242# Command to use when deplibs_check_method == file_magic.
19243file_magic_cmd=$lt_file_magic_cmd
19244
19245# Flag that allows shared libraries with undefined symbols to be built.
19246allow_undefined_flag=$lt_allow_undefined_flag_RC
19247
19248# Flag that forces no undefined symbols.
19249no_undefined_flag=$lt_no_undefined_flag_RC
19250
19251# Commands used to finish a libtool library installation in a directory.
19252finish_cmds=$lt_finish_cmds
19253
19254# Same as above, but a single script fragment to be evaled but not shown.
19255finish_eval=$lt_finish_eval
19256
19257# Take the output of nm and produce a listing of raw symbols and C names.
19258global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19259
19260# Transform the output of nm in a proper C declaration
19261global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19262
19263# Transform the output of nm in a C name address pair
19264global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19265
19266# This is the shared library runtime path variable.
19267runpath_var=$runpath_var
19268
19269# This is the shared library path variable.
19270shlibpath_var=$shlibpath_var
19271
19272# Is shlibpath searched before the hard-coded library search path?
19273shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19274
19275# How to hardcode a shared library path into an executable.
19276hardcode_action=$hardcode_action_RC
19277
19278# Whether we should hardcode library paths into libraries.
19279hardcode_into_libs=$hardcode_into_libs
19280
19281# Flag to hardcode \$libdir into a binary during linking.
19282# This must work even if \$libdir does not exist.
19283hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19284
19285# If ld is used when linking, flag to hardcode \$libdir into
19286# a binary during linking. This must work even if \$libdir does
19287# not exist.
19288hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19289
19290# Whether we need a single -rpath flag with a separated argument.
19291hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19292
19293# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19294# resulting binary.
19295hardcode_direct=$hardcode_direct_RC
19296
19297# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19298# resulting binary.
19299hardcode_minus_L=$hardcode_minus_L_RC
19300
19301# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19302# the resulting binary.
19303hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19304
19305# Set to yes if building a shared library automatically hardcodes DIR into the library
19306# and all subsequent libraries and executables linked against it.
19307hardcode_automatic=$hardcode_automatic_RC
19308
19309# Variables whose values should be saved in libtool wrapper scripts and
19310# restored at relink time.
19311variables_saved_for_relink="$variables_saved_for_relink"
19312
19313# Whether libtool must link a program against all its dependency libraries.
19314link_all_deplibs=$link_all_deplibs_RC
19315
19316# Compile-time system search path for libraries
19317sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19318
19319# Run-time system search path for libraries
19320sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19321
19322# Fix the shell variable \$srcfile for the compiler.
19323fix_srcfile_path="$fix_srcfile_path_RC"
19324
19325# Set to yes if exported symbols are required.
19326always_export_symbols=$always_export_symbols_RC
19327
19328# The commands to list exported symbols.
19329export_symbols_cmds=$lt_export_symbols_cmds_RC
19330
19331# The commands to extract the exported symbol list from a shared archive.
19332extract_expsyms_cmds=$lt_extract_expsyms_cmds
19333
19334# Symbols that should not be listed in the preloaded symbols.
19335exclude_expsyms=$lt_exclude_expsyms_RC
19336
19337# Symbols that must always be exported.
19338include_expsyms=$lt_include_expsyms_RC
19339
19340# ### END LIBTOOL TAG CONFIG: $tagname
19341
19342__EOF__
19343
19344
19345else
19346  # If there is no Makefile yet, we rely on a make rule to execute
19347  # `config.status --recheck' to rerun these tests and create the
19348  # libtool script then.
19349  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19350  if test -f "$ltmain_in"; then
19351    test -f Makefile && make "$ltmain"
19352  fi
19353fi
19354
19355
19356ac_ext=c
19357ac_cpp='$CPP $CPPFLAGS'
19358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19360ac_compiler_gnu=$ac_cv_c_compiler_gnu
19361
19362CC="$lt_save_CC"
19363
19364	;;
19365
19366      *)
19367	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19368echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19369   { (exit 1); exit 1; }; }
19370	;;
19371      esac
19372
19373      # Append the new tag name to the list of available tags.
19374      if test -n "$tagname" ; then
19375      available_tags="$available_tags $tagname"
19376    fi
19377    fi
19378  done
19379  IFS="$lt_save_ifs"
19380
19381  # Now substitute the updated list of available tags.
19382  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19383    mv "${ofile}T" "$ofile"
19384    chmod +x "$ofile"
19385  else
19386    rm -f "${ofile}T"
19387    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19388echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19389   { (exit 1); exit 1; }; }
19390  fi
19391fi
19392
19393
19394
19395# This can be used to rebuild libtool when needed
19396LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19397
19398# Always use our own libtool.
19399LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19400
19401# Prevent multiple expansion
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424# Extract the first word of "mv", so it can be a program name with args.
19425set dummy mv; ac_word=$2
19426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19428if test "${ac_cv_path_MV+set}" = set; then
19429  echo $ECHO_N "(cached) $ECHO_C" >&6
19430else
19431  case $MV in
19432  [\\/]* | ?:[\\/]*)
19433  ac_cv_path_MV="$MV" # Let the user override the test with a path.
19434  ;;
19435  *)
19436  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19437for as_dir in $PATH
19438do
19439  IFS=$as_save_IFS
19440  test -z "$as_dir" && as_dir=.
19441  for ac_exec_ext in '' $ac_executable_extensions; do
19442  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19443    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
19444    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19445    break 2
19446  fi
19447done
19448done
19449IFS=$as_save_IFS
19450
19451  ;;
19452esac
19453fi
19454MV=$ac_cv_path_MV
19455if test -n "$MV"; then
19456  { echo "$as_me:$LINENO: result: $MV" >&5
19457echo "${ECHO_T}$MV" >&6; }
19458else
19459  { echo "$as_me:$LINENO: result: no" >&5
19460echo "${ECHO_T}no" >&6; }
19461fi
19462
19463
19464# Extract the first word of "rm", so it can be a program name with args.
19465set dummy rm; ac_word=$2
19466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19468if test "${ac_cv_path_RM+set}" = set; then
19469  echo $ECHO_N "(cached) $ECHO_C" >&6
19470else
19471  case $RM in
19472  [\\/]* | ?:[\\/]*)
19473  ac_cv_path_RM="$RM" # Let the user override the test with a path.
19474  ;;
19475  *)
19476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19477for as_dir in $PATH
19478do
19479  IFS=$as_save_IFS
19480  test -z "$as_dir" && as_dir=.
19481  for ac_exec_ext in '' $ac_executable_extensions; do
19482  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19483    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
19484    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19485    break 2
19486  fi
19487done
19488done
19489IFS=$as_save_IFS
19490
19491  ;;
19492esac
19493fi
19494RM=$ac_cv_path_RM
19495if test -n "$RM"; then
19496  { echo "$as_me:$LINENO: result: $RM" >&5
19497echo "${ECHO_T}$RM" >&6; }
19498else
19499  { echo "$as_me:$LINENO: result: no" >&5
19500echo "${ECHO_T}no" >&6; }
19501fi
19502
19503
19504# Extract the first word of "sed", so it can be a program name with args.
19505set dummy sed; ac_word=$2
19506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19508if test "${ac_cv_path_SED+set}" = set; then
19509  echo $ECHO_N "(cached) $ECHO_C" >&6
19510else
19511  case $SED in
19512  [\\/]* | ?:[\\/]*)
19513  ac_cv_path_SED="$SED" # Let the user override the test with a path.
19514  ;;
19515  *)
19516  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19517for as_dir in $PATH
19518do
19519  IFS=$as_save_IFS
19520  test -z "$as_dir" && as_dir=.
19521  for ac_exec_ext in '' $ac_executable_extensions; do
19522  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19523    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
19524    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19525    break 2
19526  fi
19527done
19528done
19529IFS=$as_save_IFS
19530
19531  ;;
19532esac
19533fi
19534SED=$ac_cv_path_SED
19535if test -n "$SED"; then
19536  { echo "$as_me:$LINENO: result: $SED" >&5
19537echo "${ECHO_T}$SED" >&6; }
19538else
19539  { echo "$as_me:$LINENO: result: no" >&5
19540echo "${ECHO_T}no" >&6; }
19541fi
19542
19543
19544
19545# Extract the first word of "ldconfig", so it can be a program name with args.
19546set dummy ldconfig; ac_word=$2
19547{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19549if test "${ac_cv_path_LDCONFIG+set}" = set; then
19550  echo $ECHO_N "(cached) $ECHO_C" >&6
19551else
19552  case $LDCONFIG in
19553  [\\/]* | ?:[\\/]*)
19554  ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
19555  ;;
19556  *)
19557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19558for as_dir in /sbin /usr/sbin $PATH
19559do
19560  IFS=$as_save_IFS
19561  test -z "$as_dir" && as_dir=.
19562  for ac_exec_ext in '' $ac_executable_extensions; do
19563  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19564    ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
19565    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19566    break 2
19567  fi
19568done
19569done
19570IFS=$as_save_IFS
19571
19572  test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
19573  ;;
19574esac
19575fi
19576LDCONFIG=$ac_cv_path_LDCONFIG
19577if test -n "$LDCONFIG"; then
19578  { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
19579echo "${ECHO_T}$LDCONFIG" >&6; }
19580else
19581  { echo "$as_me:$LINENO: result: no" >&5
19582echo "${ECHO_T}no" >&6; }
19583fi
19584
19585
19586
19587# Environment
19588{ echo "$as_me:$LINENO: checking Windows OS" >&5
19589echo $ECHO_N "checking Windows OS... $ECHO_C" >&6; }
19590case "${target}" in
19591*-mingw32*|*-winnt*|*-cygwin*)
19592	{ echo "$as_me:$LINENO: result: yes" >&5
19593echo "${ECHO_T}yes" >&6; }
19594	WINDOWS="yes"
19595
19596cat >>confdefs.h <<\_ACEOF
19597#define WINDOWS 1
19598_ACEOF
19599
19600	;;
19601*)
19602	{ echo "$as_me:$LINENO: result: no" >&5
19603echo "${ECHO_T}no" >&6; }
19604	WINDOWS="no"
19605	;;
19606esac
19607
19608{ echo "$as_me:$LINENO: checking fuse compatibility" >&5
19609echo $ECHO_N "checking fuse compatibility... $ECHO_C" >&6; }
19610case "${target_os}" in
19611linux*)
19612
19613# Check whether --with-fuse was given.
19614if test "${with_fuse+set}" = set; then
19615  withval=$with_fuse;
19616else
19617  with_fuse="internal"
19618
19619fi
19620
19621	;;
19622darwin*|netbsd*|solaris*)
19623	with_fuse="external"
19624	;;
19625freebsd*)
19626	{ { echo "$as_me:$LINENO: error: Please see FreeBSD support at http://www.freshports.org/sysutils/fusefs-ntfs" >&5
19627echo "$as_me: error: Please see FreeBSD support at http://www.freshports.org/sysutils/fusefs-ntfs" >&2;}
19628   { (exit 1); exit 1; }; }
19629	;;
19630*)
19631	{ { echo "$as_me:$LINENO: error: ntfs-3g can be built for Linux, FreeBSD, Mac OS X, NetBSD, and Solaris only." >&5
19632echo "$as_me: error: ntfs-3g can be built for Linux, FreeBSD, Mac OS X, NetBSD, and Solaris only." >&2;}
19633   { (exit 1); exit 1; }; }
19634	;;
19635esac
19636{ echo "$as_me:$LINENO: result: ${with_fuse}" >&5
19637echo "${ECHO_T}${with_fuse}" >&6; }
19638
19639case "${target_os}" in
19640solaris*)
19641	if test "x$GCC" != "xyes" ; then
19642		{ { echo "$as_me:$LINENO: error: ntfs-3g can be built only with gcc on Solaris. Install it by 'pkg install gcc-dev' and retry.)" >&5
19643echo "$as_me: error: ntfs-3g can be built only with gcc on Solaris. Install it by 'pkg install gcc-dev' and retry.)" >&2;}
19644   { (exit 1); exit 1; }; }
19645	fi
19646	;;
19647esac
19648
19649if test "${enable_ldscript}" = "yes"; then
19650	{ echo "$as_me:$LINENO: checking Output format" >&5
19651echo $ECHO_N "checking Output format... $ECHO_C" >&6; }
19652	OUTPUT_FORMAT="$(${CC} ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | ${SED} -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p')"
19653	if test -z "${OUTPUT_FORMAT}"; then
19654		{ echo "$as_me:$LINENO: result: None" >&5
19655echo "${ECHO_T}None" >&6; }
19656	else
19657		{ echo "$as_me:$LINENO: result: ${OUTPUT_FORMAT}" >&5
19658echo "${ECHO_T}${OUTPUT_FORMAT}" >&6; }
19659		OUTPUT_FORMAT="OUTPUT_FORMAT ( ${OUTPUT_FORMAT} )"
19660	fi
19661fi
19662
19663# Libraries
19664if test "${with_fuse}" = "internal"; then
19665	{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19666echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
19667if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19668  echo $ECHO_N "(cached) $ECHO_C" >&6
19669else
19670  ac_check_lib_save_LIBS=$LIBS
19671LIBS="-lpthread  $LIBS"
19672cat >conftest.$ac_ext <<_ACEOF
19673/* confdefs.h.  */
19674_ACEOF
19675cat confdefs.h >>conftest.$ac_ext
19676cat >>conftest.$ac_ext <<_ACEOF
19677/* end confdefs.h.  */
19678
19679/* Override any GCC internal prototype to avoid an error.
19680   Use char because int might match the return type of a GCC
19681   builtin and then its argument prototype would still apply.  */
19682#ifdef __cplusplus
19683extern "C"
19684#endif
19685char pthread_create ();
19686int
19687main ()
19688{
19689return pthread_create ();
19690  ;
19691  return 0;
19692}
19693_ACEOF
19694rm -f conftest.$ac_objext conftest$ac_exeext
19695if { (ac_try="$ac_link"
19696case "(($ac_try" in
19697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698  *) ac_try_echo=$ac_try;;
19699esac
19700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701  (eval "$ac_link") 2>conftest.er1
19702  ac_status=$?
19703  grep -v '^ *+' conftest.er1 >conftest.err
19704  rm -f conftest.er1
19705  cat conftest.err >&5
19706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707  (exit $ac_status); } && {
19708	 test -z "$ac_c_werror_flag" ||
19709	 test ! -s conftest.err
19710       } && test -s conftest$ac_exeext &&
19711       $as_test_x conftest$ac_exeext; then
19712  ac_cv_lib_pthread_pthread_create=yes
19713else
19714  echo "$as_me: failed program was:" >&5
19715sed 's/^/| /' conftest.$ac_ext >&5
19716
19717	ac_cv_lib_pthread_pthread_create=no
19718fi
19719
19720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19721      conftest$ac_exeext conftest.$ac_ext
19722LIBS=$ac_check_lib_save_LIBS
19723fi
19724{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19725echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
19726if test $ac_cv_lib_pthread_pthread_create = yes; then
19727  LIBFUSE_LITE_LIBS="${LIBFUSE_LITE_LIBS} -lpthread"
19728else
19729  { { echo "$as_me:$LINENO: error: Cannot find pthread library" >&5
19730echo "$as_me: error: Cannot find pthread library" >&2;}
19731   { (exit 1); exit 1; }; }
19732
19733fi
19734
19735
19736cat >>confdefs.h <<\_ACEOF
19737#define _REENTRANT 1
19738_ACEOF
19739
19740	# required so that we re-compile anything
19741
19742cat >>confdefs.h <<\_ACEOF
19743#define FUSE_INTERNAL 1
19744_ACEOF
19745
19746else
19747	if test -z "$PKG_CONFIG"; then
19748		# Extract the first word of "pkg-config", so it can be a program name with args.
19749set dummy pkg-config; ac_word=$2
19750{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19752if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19753  echo $ECHO_N "(cached) $ECHO_C" >&6
19754else
19755  case $PKG_CONFIG in
19756  [\\/]* | ?:[\\/]*)
19757  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19758  ;;
19759  *)
19760  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19761for as_dir in $PATH
19762do
19763  IFS=$as_save_IFS
19764  test -z "$as_dir" && as_dir=.
19765  for ac_exec_ext in '' $ac_executable_extensions; do
19766  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19767    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19768    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19769    break 2
19770  fi
19771done
19772done
19773IFS=$as_save_IFS
19774
19775  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19776  ;;
19777esac
19778fi
19779PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19780if test -n "$PKG_CONFIG"; then
19781  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19782echo "${ECHO_T}$PKG_CONFIG" >&6; }
19783else
19784  { echo "$as_me:$LINENO: result: no" >&5
19785echo "${ECHO_T}no" >&6; }
19786fi
19787
19788
19789	fi
19790	test "x${PKG_CONFIG}" = "xno" && { { echo "$as_me:$LINENO: error: pkg-config wasn't found! Please install from your vendor, or see http://pkg-config.freedesktop.org/wiki/" >&5
19791echo "$as_me: error: pkg-config wasn't found! Please install from your vendor, or see http://pkg-config.freedesktop.org/wiki/" >&2;}
19792   { (exit 1); exit 1; }; }
19793	# Libraries often install their metadata .pc files in directories
19794	# not searched by pkg-config. Let's workaround this.
19795	export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/lib/pkgconfig:/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/usr/share/pkgconfig:/usr/local/lib/pkgconfig:$prefix/lib/pkgconfig:/opt/gnome/share/pkgconfig:/usr/local/share/pkgconfig
19796
19797
19798if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19799	if test -n "$ac_tool_prefix"; then
19800  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19801set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19802{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19804if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19805  echo $ECHO_N "(cached) $ECHO_C" >&6
19806else
19807  case $PKG_CONFIG in
19808  [\\/]* | ?:[\\/]*)
19809  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19810  ;;
19811  *)
19812  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19813for as_dir in $PATH
19814do
19815  IFS=$as_save_IFS
19816  test -z "$as_dir" && as_dir=.
19817  for ac_exec_ext in '' $ac_executable_extensions; do
19818  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19819    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19821    break 2
19822  fi
19823done
19824done
19825IFS=$as_save_IFS
19826
19827  ;;
19828esac
19829fi
19830PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19831if test -n "$PKG_CONFIG"; then
19832  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19833echo "${ECHO_T}$PKG_CONFIG" >&6; }
19834else
19835  { echo "$as_me:$LINENO: result: no" >&5
19836echo "${ECHO_T}no" >&6; }
19837fi
19838
19839
19840fi
19841if test -z "$ac_cv_path_PKG_CONFIG"; then
19842  ac_pt_PKG_CONFIG=$PKG_CONFIG
19843  # Extract the first word of "pkg-config", so it can be a program name with args.
19844set dummy pkg-config; ac_word=$2
19845{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19847if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19848  echo $ECHO_N "(cached) $ECHO_C" >&6
19849else
19850  case $ac_pt_PKG_CONFIG in
19851  [\\/]* | ?:[\\/]*)
19852  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19853  ;;
19854  *)
19855  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19856for as_dir in $PATH
19857do
19858  IFS=$as_save_IFS
19859  test -z "$as_dir" && as_dir=.
19860  for ac_exec_ext in '' $ac_executable_extensions; do
19861  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19862    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19863    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19864    break 2
19865  fi
19866done
19867done
19868IFS=$as_save_IFS
19869
19870  ;;
19871esac
19872fi
19873ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19874if test -n "$ac_pt_PKG_CONFIG"; then
19875  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19876echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19877else
19878  { echo "$as_me:$LINENO: result: no" >&5
19879echo "${ECHO_T}no" >&6; }
19880fi
19881
19882  if test "x$ac_pt_PKG_CONFIG" = x; then
19883    PKG_CONFIG=""
19884  else
19885    case $cross_compiling:$ac_tool_warned in
19886yes:)
19887{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19888whose name does not start with the host triplet.  If you think this
19889configuration is useful to you, please write to autoconf@gnu.org." >&5
19890echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19891whose name does not start with the host triplet.  If you think this
19892configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19893ac_tool_warned=yes ;;
19894esac
19895    PKG_CONFIG=$ac_pt_PKG_CONFIG
19896  fi
19897else
19898  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19899fi
19900
19901fi
19902if test -n "$PKG_CONFIG"; then
19903	_pkg_min_version=0.9.0
19904	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19905echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19906	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19907		{ echo "$as_me:$LINENO: result: yes" >&5
19908echo "${ECHO_T}yes" >&6; }
19909	else
19910		{ echo "$as_me:$LINENO: result: no" >&5
19911echo "${ECHO_T}no" >&6; }
19912		PKG_CONFIG=""
19913	fi
19914
19915fi
19916
19917pkg_failed=no
19918{ echo "$as_me:$LINENO: checking for FUSE_MODULE" >&5
19919echo $ECHO_N "checking for FUSE_MODULE... $ECHO_C" >&6; }
19920
19921if test -n "$PKG_CONFIG"; then
19922    if test -n "$FUSE_MODULE_CFLAGS"; then
19923        pkg_cv_FUSE_MODULE_CFLAGS="$FUSE_MODULE_CFLAGS"
19924    else
19925        if test -n "$PKG_CONFIG" && \
19926    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6.0\"") >&5
19927  ($PKG_CONFIG --exists --print-errors "fuse >= 2.6.0") 2>&5
19928  ac_status=$?
19929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930  (exit $ac_status); }; then
19931  pkg_cv_FUSE_MODULE_CFLAGS=`$PKG_CONFIG --cflags "fuse >= 2.6.0" 2>/dev/null`
19932else
19933  pkg_failed=yes
19934fi
19935    fi
19936else
19937	pkg_failed=untried
19938fi
19939if test -n "$PKG_CONFIG"; then
19940    if test -n "$FUSE_MODULE_LIBS"; then
19941        pkg_cv_FUSE_MODULE_LIBS="$FUSE_MODULE_LIBS"
19942    else
19943        if test -n "$PKG_CONFIG" && \
19944    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6.0\"") >&5
19945  ($PKG_CONFIG --exists --print-errors "fuse >= 2.6.0") 2>&5
19946  ac_status=$?
19947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948  (exit $ac_status); }; then
19949  pkg_cv_FUSE_MODULE_LIBS=`$PKG_CONFIG --libs "fuse >= 2.6.0" 2>/dev/null`
19950else
19951  pkg_failed=yes
19952fi
19953    fi
19954else
19955	pkg_failed=untried
19956fi
19957
19958
19959
19960if test $pkg_failed = yes; then
19961
19962if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19963        _pkg_short_errors_supported=yes
19964else
19965        _pkg_short_errors_supported=no
19966fi
19967        if test $_pkg_short_errors_supported = yes; then
19968	        FUSE_MODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fuse >= 2.6.0"`
19969        else
19970	        FUSE_MODULE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fuse >= 2.6.0"`
19971        fi
19972	# Put the nasty error message in config.log where it belongs
19973	echo "$FUSE_MODULE_PKG_ERRORS" >&5
19974
19975	{ echo "$as_me:$LINENO: result: no" >&5
19976echo "${ECHO_T}no" >&6; }
19977
19978			{ { echo "$as_me:$LINENO: error: FUSE >= 2.6.0 was not found. Either older FUSE is still present, or FUSE is not fully installed (e.g. fuse, libfuse, libfuse2, libfuse-dev, etc packages). Source code: http://fuse.sf.net" >&5
19979echo "$as_me: error: FUSE >= 2.6.0 was not found. Either older FUSE is still present, or FUSE is not fully installed (e.g. fuse, libfuse, libfuse2, libfuse-dev, etc packages). Source code: http://fuse.sf.net" >&2;}
19980   { (exit 1); exit 1; }; }
19981
19982
19983elif test $pkg_failed = untried; then
19984
19985			{ { echo "$as_me:$LINENO: error: FUSE >= 2.6.0 was not found. Either older FUSE is still present, or FUSE is not fully installed (e.g. fuse, libfuse, libfuse2, libfuse-dev, etc packages). Source code: http://fuse.sf.net" >&5
19986echo "$as_me: error: FUSE >= 2.6.0 was not found. Either older FUSE is still present, or FUSE is not fully installed (e.g. fuse, libfuse, libfuse2, libfuse-dev, etc packages). Source code: http://fuse.sf.net" >&2;}
19987   { (exit 1); exit 1; }; }
19988
19989
19990else
19991	FUSE_MODULE_CFLAGS=$pkg_cv_FUSE_MODULE_CFLAGS
19992	FUSE_MODULE_LIBS=$pkg_cv_FUSE_MODULE_LIBS
19993        { echo "$as_me:$LINENO: result: yes" >&5
19994echo "${ECHO_T}yes" >&6; }
19995	:
19996fi
19997	FUSE_LIB_PATH=`$PKG_CONFIG --libs-only-L fuse | sed -e 's,//*,/,g' -e 's, *$,,'`
19998fi
19999
20000# Checks for header files.
20001{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20002echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20003if test "${ac_cv_header_stdc+set}" = set; then
20004  echo $ECHO_N "(cached) $ECHO_C" >&6
20005else
20006  cat >conftest.$ac_ext <<_ACEOF
20007/* confdefs.h.  */
20008_ACEOF
20009cat confdefs.h >>conftest.$ac_ext
20010cat >>conftest.$ac_ext <<_ACEOF
20011/* end confdefs.h.  */
20012#include <stdlib.h>
20013#include <stdarg.h>
20014#include <string.h>
20015#include <float.h>
20016
20017int
20018main ()
20019{
20020
20021  ;
20022  return 0;
20023}
20024_ACEOF
20025rm -f conftest.$ac_objext
20026if { (ac_try="$ac_compile"
20027case "(($ac_try" in
20028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029  *) ac_try_echo=$ac_try;;
20030esac
20031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032  (eval "$ac_compile") 2>conftest.er1
20033  ac_status=$?
20034  grep -v '^ *+' conftest.er1 >conftest.err
20035  rm -f conftest.er1
20036  cat conftest.err >&5
20037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038  (exit $ac_status); } && {
20039	 test -z "$ac_c_werror_flag" ||
20040	 test ! -s conftest.err
20041       } && test -s conftest.$ac_objext; then
20042  ac_cv_header_stdc=yes
20043else
20044  echo "$as_me: failed program was:" >&5
20045sed 's/^/| /' conftest.$ac_ext >&5
20046
20047	ac_cv_header_stdc=no
20048fi
20049
20050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20051
20052if test $ac_cv_header_stdc = yes; then
20053  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20054  cat >conftest.$ac_ext <<_ACEOF
20055/* confdefs.h.  */
20056_ACEOF
20057cat confdefs.h >>conftest.$ac_ext
20058cat >>conftest.$ac_ext <<_ACEOF
20059/* end confdefs.h.  */
20060#include <string.h>
20061
20062_ACEOF
20063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20064  $EGREP "memchr" >/dev/null 2>&1; then
20065  :
20066else
20067  ac_cv_header_stdc=no
20068fi
20069rm -f conftest*
20070
20071fi
20072
20073if test $ac_cv_header_stdc = yes; then
20074  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20075  cat >conftest.$ac_ext <<_ACEOF
20076/* confdefs.h.  */
20077_ACEOF
20078cat confdefs.h >>conftest.$ac_ext
20079cat >>conftest.$ac_ext <<_ACEOF
20080/* end confdefs.h.  */
20081#include <stdlib.h>
20082
20083_ACEOF
20084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20085  $EGREP "free" >/dev/null 2>&1; then
20086  :
20087else
20088  ac_cv_header_stdc=no
20089fi
20090rm -f conftest*
20091
20092fi
20093
20094if test $ac_cv_header_stdc = yes; then
20095  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20096  if test "$cross_compiling" = yes; then
20097  :
20098else
20099  cat >conftest.$ac_ext <<_ACEOF
20100/* confdefs.h.  */
20101_ACEOF
20102cat confdefs.h >>conftest.$ac_ext
20103cat >>conftest.$ac_ext <<_ACEOF
20104/* end confdefs.h.  */
20105#include <ctype.h>
20106#include <stdlib.h>
20107#if ((' ' & 0x0FF) == 0x020)
20108# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20109# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20110#else
20111# define ISLOWER(c) \
20112		   (('a' <= (c) && (c) <= 'i') \
20113		     || ('j' <= (c) && (c) <= 'r') \
20114		     || ('s' <= (c) && (c) <= 'z'))
20115# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20116#endif
20117
20118#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20119int
20120main ()
20121{
20122  int i;
20123  for (i = 0; i < 256; i++)
20124    if (XOR (islower (i), ISLOWER (i))
20125	|| toupper (i) != TOUPPER (i))
20126      return 2;
20127  return 0;
20128}
20129_ACEOF
20130rm -f conftest$ac_exeext
20131if { (ac_try="$ac_link"
20132case "(($ac_try" in
20133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134  *) ac_try_echo=$ac_try;;
20135esac
20136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20137  (eval "$ac_link") 2>&5
20138  ac_status=$?
20139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20141  { (case "(($ac_try" in
20142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143  *) ac_try_echo=$ac_try;;
20144esac
20145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146  (eval "$ac_try") 2>&5
20147  ac_status=$?
20148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149  (exit $ac_status); }; }; then
20150  :
20151else
20152  echo "$as_me: program exited with status $ac_status" >&5
20153echo "$as_me: failed program was:" >&5
20154sed 's/^/| /' conftest.$ac_ext >&5
20155
20156( exit $ac_status )
20157ac_cv_header_stdc=no
20158fi
20159rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20160fi
20161
20162
20163fi
20164fi
20165{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20166echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20167if test $ac_cv_header_stdc = yes; then
20168
20169cat >>confdefs.h <<\_ACEOF
20170#define STDC_HEADERS 1
20171_ACEOF
20172
20173fi
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215for ac_header in ctype.h fcntl.h libgen.h libintl.h limits.h locale.h \
20216	mntent.h stddef.h stdint.h stdlib.h stdio.h stdarg.h string.h \
20217	strings.h errno.h time.h unistd.h utime.h wchar.h getopt.h features.h \
20218	endian.h byteswap.h sys/byteorder.h sys/endian.h sys/param.h \
20219	sys/ioctl.h sys/mkdev.h sys/mount.h sys/stat.h sys/types.h sys/vfs.h \
20220	sys/statvfs.h sys/sysmacros.h linux/major.h linux/fd.h linux/hdreg.h \
20221	machine/endian.h windows.h syslog.h
20222do
20223as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20225  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20228  echo $ECHO_N "(cached) $ECHO_C" >&6
20229fi
20230ac_res=`eval echo '${'$as_ac_Header'}'`
20231	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20232echo "${ECHO_T}$ac_res" >&6; }
20233else
20234  # Is the header compilable?
20235{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20236echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20237cat >conftest.$ac_ext <<_ACEOF
20238/* confdefs.h.  */
20239_ACEOF
20240cat confdefs.h >>conftest.$ac_ext
20241cat >>conftest.$ac_ext <<_ACEOF
20242/* end confdefs.h.  */
20243$ac_includes_default
20244#include <$ac_header>
20245_ACEOF
20246rm -f conftest.$ac_objext
20247if { (ac_try="$ac_compile"
20248case "(($ac_try" in
20249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20250  *) ac_try_echo=$ac_try;;
20251esac
20252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20253  (eval "$ac_compile") 2>conftest.er1
20254  ac_status=$?
20255  grep -v '^ *+' conftest.er1 >conftest.err
20256  rm -f conftest.er1
20257  cat conftest.err >&5
20258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259  (exit $ac_status); } && {
20260	 test -z "$ac_c_werror_flag" ||
20261	 test ! -s conftest.err
20262       } && test -s conftest.$ac_objext; then
20263  ac_header_compiler=yes
20264else
20265  echo "$as_me: failed program was:" >&5
20266sed 's/^/| /' conftest.$ac_ext >&5
20267
20268	ac_header_compiler=no
20269fi
20270
20271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20272{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20273echo "${ECHO_T}$ac_header_compiler" >&6; }
20274
20275# Is the header present?
20276{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20277echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20278cat >conftest.$ac_ext <<_ACEOF
20279/* confdefs.h.  */
20280_ACEOF
20281cat confdefs.h >>conftest.$ac_ext
20282cat >>conftest.$ac_ext <<_ACEOF
20283/* end confdefs.h.  */
20284#include <$ac_header>
20285_ACEOF
20286if { (ac_try="$ac_cpp conftest.$ac_ext"
20287case "(($ac_try" in
20288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20289  *) ac_try_echo=$ac_try;;
20290esac
20291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20292  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20293  ac_status=$?
20294  grep -v '^ *+' conftest.er1 >conftest.err
20295  rm -f conftest.er1
20296  cat conftest.err >&5
20297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298  (exit $ac_status); } >/dev/null && {
20299	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20300	 test ! -s conftest.err
20301       }; then
20302  ac_header_preproc=yes
20303else
20304  echo "$as_me: failed program was:" >&5
20305sed 's/^/| /' conftest.$ac_ext >&5
20306
20307  ac_header_preproc=no
20308fi
20309
20310rm -f conftest.err conftest.$ac_ext
20311{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20312echo "${ECHO_T}$ac_header_preproc" >&6; }
20313
20314# So?  What about this header?
20315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20316  yes:no: )
20317    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20318echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20319    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20320echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20321    ac_header_preproc=yes
20322    ;;
20323  no:yes:* )
20324    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20325echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20326    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20327echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20328    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20329echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20330    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20331echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20332    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20333echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20334    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20335echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20336    ( cat <<\_ASBOX
20337## ----------------------------------------- ##
20338## Report this to ntfs-3g-devel@lists.sf.net ##
20339## ----------------------------------------- ##
20340_ASBOX
20341     ) | sed "s/^/$as_me: WARNING:     /" >&2
20342    ;;
20343esac
20344{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20347  echo $ECHO_N "(cached) $ECHO_C" >&6
20348else
20349  eval "$as_ac_Header=\$ac_header_preproc"
20350fi
20351ac_res=`eval echo '${'$as_ac_Header'}'`
20352	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20353echo "${ECHO_T}$ac_res" >&6; }
20354
20355fi
20356if test `eval echo '${'$as_ac_Header'}'` = yes; then
20357  cat >>confdefs.h <<_ACEOF
20358#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20359_ACEOF
20360
20361fi
20362
20363done
20364
20365
20366# Checks for typedefs, structures, and compiler characteristics.
20367{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
20368echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
20369if test "${ac_cv_header_stdbool_h+set}" = set; then
20370  echo $ECHO_N "(cached) $ECHO_C" >&6
20371else
20372  cat >conftest.$ac_ext <<_ACEOF
20373/* confdefs.h.  */
20374_ACEOF
20375cat confdefs.h >>conftest.$ac_ext
20376cat >>conftest.$ac_ext <<_ACEOF
20377/* end confdefs.h.  */
20378
20379#include <stdbool.h>
20380#ifndef bool
20381 "error: bool is not defined"
20382#endif
20383#ifndef false
20384 "error: false is not defined"
20385#endif
20386#if false
20387 "error: false is not 0"
20388#endif
20389#ifndef true
20390 "error: true is not defined"
20391#endif
20392#if true != 1
20393 "error: true is not 1"
20394#endif
20395#ifndef __bool_true_false_are_defined
20396 "error: __bool_true_false_are_defined is not defined"
20397#endif
20398
20399	struct s { _Bool s: 1; _Bool t; } s;
20400
20401	char a[true == 1 ? 1 : -1];
20402	char b[false == 0 ? 1 : -1];
20403	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20404	char d[(bool) 0.5 == true ? 1 : -1];
20405	bool e = &s;
20406	char f[(_Bool) 0.0 == false ? 1 : -1];
20407	char g[true];
20408	char h[sizeof (_Bool)];
20409	char i[sizeof s.t];
20410	enum { j = false, k = true, l = false * true, m = true * 256 };
20411	_Bool n[m];
20412	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20413	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20414#	if defined __xlc__ || defined __GNUC__
20415	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20416	    reported by James Lemley on 2005-10-05; see
20417	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20418	    This test is not quite right, since xlc is allowed to
20419	    reject this program, as the initializer for xlcbug is
20420	    not one of the forms that C requires support for.
20421	    However, doing the test right would require a runtime
20422	    test, and that would make cross-compilation harder.
20423	    Let us hope that IBM fixes the xlc bug, and also adds
20424	    support for this kind of constant expression.  In the
20425	    meantime, this test will reject xlc, which is OK, since
20426	    our stdbool.h substitute should suffice.  We also test
20427	    this with GCC, where it should work, to detect more
20428	    quickly whether someone messes up the test in the
20429	    future.  */
20430	 char digs[] = "0123456789";
20431	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20432#	endif
20433	/* Catch a bug in an HP-UX C compiler.  See
20434	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20435	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20436	 */
20437	_Bool q = true;
20438	_Bool *pq = &q;
20439
20440int
20441main ()
20442{
20443
20444	*pq |= q;
20445	*pq |= ! q;
20446	/* Refer to every declared value, to avoid compiler optimizations.  */
20447	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20448		+ !m + !n + !o + !p + !q + !pq);
20449
20450  ;
20451  return 0;
20452}
20453_ACEOF
20454rm -f conftest.$ac_objext
20455if { (ac_try="$ac_compile"
20456case "(($ac_try" in
20457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458  *) ac_try_echo=$ac_try;;
20459esac
20460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461  (eval "$ac_compile") 2>conftest.er1
20462  ac_status=$?
20463  grep -v '^ *+' conftest.er1 >conftest.err
20464  rm -f conftest.er1
20465  cat conftest.err >&5
20466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467  (exit $ac_status); } && {
20468	 test -z "$ac_c_werror_flag" ||
20469	 test ! -s conftest.err
20470       } && test -s conftest.$ac_objext; then
20471  ac_cv_header_stdbool_h=yes
20472else
20473  echo "$as_me: failed program was:" >&5
20474sed 's/^/| /' conftest.$ac_ext >&5
20475
20476	ac_cv_header_stdbool_h=no
20477fi
20478
20479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20480fi
20481{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
20482echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
20483{ echo "$as_me:$LINENO: checking for _Bool" >&5
20484echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
20485if test "${ac_cv_type__Bool+set}" = set; then
20486  echo $ECHO_N "(cached) $ECHO_C" >&6
20487else
20488  cat >conftest.$ac_ext <<_ACEOF
20489/* confdefs.h.  */
20490_ACEOF
20491cat confdefs.h >>conftest.$ac_ext
20492cat >>conftest.$ac_ext <<_ACEOF
20493/* end confdefs.h.  */
20494$ac_includes_default
20495typedef _Bool ac__type_new_;
20496int
20497main ()
20498{
20499if ((ac__type_new_ *) 0)
20500  return 0;
20501if (sizeof (ac__type_new_))
20502  return 0;
20503  ;
20504  return 0;
20505}
20506_ACEOF
20507rm -f conftest.$ac_objext
20508if { (ac_try="$ac_compile"
20509case "(($ac_try" in
20510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511  *) ac_try_echo=$ac_try;;
20512esac
20513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514  (eval "$ac_compile") 2>conftest.er1
20515  ac_status=$?
20516  grep -v '^ *+' conftest.er1 >conftest.err
20517  rm -f conftest.er1
20518  cat conftest.err >&5
20519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520  (exit $ac_status); } && {
20521	 test -z "$ac_c_werror_flag" ||
20522	 test ! -s conftest.err
20523       } && test -s conftest.$ac_objext; then
20524  ac_cv_type__Bool=yes
20525else
20526  echo "$as_me: failed program was:" >&5
20527sed 's/^/| /' conftest.$ac_ext >&5
20528
20529	ac_cv_type__Bool=no
20530fi
20531
20532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20533fi
20534{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
20535echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
20536if test $ac_cv_type__Bool = yes; then
20537
20538cat >>confdefs.h <<_ACEOF
20539#define HAVE__BOOL 1
20540_ACEOF
20541
20542
20543fi
20544
20545if test $ac_cv_header_stdbool_h = yes; then
20546
20547cat >>confdefs.h <<\_ACEOF
20548#define HAVE_STDBOOL_H 1
20549_ACEOF
20550
20551fi
20552
20553{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20554echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20555if test "${ac_cv_c_bigendian+set}" = set; then
20556  echo $ECHO_N "(cached) $ECHO_C" >&6
20557else
20558  # See if sys/param.h defines the BYTE_ORDER macro.
20559cat >conftest.$ac_ext <<_ACEOF
20560/* confdefs.h.  */
20561_ACEOF
20562cat confdefs.h >>conftest.$ac_ext
20563cat >>conftest.$ac_ext <<_ACEOF
20564/* end confdefs.h.  */
20565#include <sys/types.h>
20566#include <sys/param.h>
20567
20568int
20569main ()
20570{
20571#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
20572	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
20573 bogus endian macros
20574#endif
20575
20576  ;
20577  return 0;
20578}
20579_ACEOF
20580rm -f conftest.$ac_objext
20581if { (ac_try="$ac_compile"
20582case "(($ac_try" in
20583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584  *) ac_try_echo=$ac_try;;
20585esac
20586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587  (eval "$ac_compile") 2>conftest.er1
20588  ac_status=$?
20589  grep -v '^ *+' conftest.er1 >conftest.err
20590  rm -f conftest.er1
20591  cat conftest.err >&5
20592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593  (exit $ac_status); } && {
20594	 test -z "$ac_c_werror_flag" ||
20595	 test ! -s conftest.err
20596       } && test -s conftest.$ac_objext; then
20597  # It does; now see whether it defined to BIG_ENDIAN or not.
20598cat >conftest.$ac_ext <<_ACEOF
20599/* confdefs.h.  */
20600_ACEOF
20601cat confdefs.h >>conftest.$ac_ext
20602cat >>conftest.$ac_ext <<_ACEOF
20603/* end confdefs.h.  */
20604#include <sys/types.h>
20605#include <sys/param.h>
20606
20607int
20608main ()
20609{
20610#if BYTE_ORDER != BIG_ENDIAN
20611 not big endian
20612#endif
20613
20614  ;
20615  return 0;
20616}
20617_ACEOF
20618rm -f conftest.$ac_objext
20619if { (ac_try="$ac_compile"
20620case "(($ac_try" in
20621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20622  *) ac_try_echo=$ac_try;;
20623esac
20624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20625  (eval "$ac_compile") 2>conftest.er1
20626  ac_status=$?
20627  grep -v '^ *+' conftest.er1 >conftest.err
20628  rm -f conftest.er1
20629  cat conftest.err >&5
20630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631  (exit $ac_status); } && {
20632	 test -z "$ac_c_werror_flag" ||
20633	 test ! -s conftest.err
20634       } && test -s conftest.$ac_objext; then
20635  ac_cv_c_bigendian=yes
20636else
20637  echo "$as_me: failed program was:" >&5
20638sed 's/^/| /' conftest.$ac_ext >&5
20639
20640	ac_cv_c_bigendian=no
20641fi
20642
20643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20644else
20645  echo "$as_me: failed program was:" >&5
20646sed 's/^/| /' conftest.$ac_ext >&5
20647
20648	# It does not; compile a test program.
20649if test "$cross_compiling" = yes; then
20650  # try to guess the endianness by grepping values into an object file
20651  ac_cv_c_bigendian=unknown
20652  cat >conftest.$ac_ext <<_ACEOF
20653/* confdefs.h.  */
20654_ACEOF
20655cat confdefs.h >>conftest.$ac_ext
20656cat >>conftest.$ac_ext <<_ACEOF
20657/* end confdefs.h.  */
20658short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20659short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20660void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20661short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20662short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20663void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20664int
20665main ()
20666{
20667 _ascii (); _ebcdic ();
20668  ;
20669  return 0;
20670}
20671_ACEOF
20672rm -f conftest.$ac_objext
20673if { (ac_try="$ac_compile"
20674case "(($ac_try" in
20675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676  *) ac_try_echo=$ac_try;;
20677esac
20678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679  (eval "$ac_compile") 2>conftest.er1
20680  ac_status=$?
20681  grep -v '^ *+' conftest.er1 >conftest.err
20682  rm -f conftest.er1
20683  cat conftest.err >&5
20684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685  (exit $ac_status); } && {
20686	 test -z "$ac_c_werror_flag" ||
20687	 test ! -s conftest.err
20688       } && test -s conftest.$ac_objext; then
20689  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20690  ac_cv_c_bigendian=yes
20691fi
20692if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20693  if test "$ac_cv_c_bigendian" = unknown; then
20694    ac_cv_c_bigendian=no
20695  else
20696    # finding both strings is unlikely to happen, but who knows?
20697    ac_cv_c_bigendian=unknown
20698  fi
20699fi
20700else
20701  echo "$as_me: failed program was:" >&5
20702sed 's/^/| /' conftest.$ac_ext >&5
20703
20704
20705fi
20706
20707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20708else
20709  cat >conftest.$ac_ext <<_ACEOF
20710/* confdefs.h.  */
20711_ACEOF
20712cat confdefs.h >>conftest.$ac_ext
20713cat >>conftest.$ac_ext <<_ACEOF
20714/* end confdefs.h.  */
20715$ac_includes_default
20716int
20717main ()
20718{
20719
20720  /* Are we little or big endian?  From Harbison&Steele.  */
20721  union
20722  {
20723    long int l;
20724    char c[sizeof (long int)];
20725  } u;
20726  u.l = 1;
20727  return u.c[sizeof (long int) - 1] == 1;
20728
20729  ;
20730  return 0;
20731}
20732_ACEOF
20733rm -f conftest$ac_exeext
20734if { (ac_try="$ac_link"
20735case "(($ac_try" in
20736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737  *) ac_try_echo=$ac_try;;
20738esac
20739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740  (eval "$ac_link") 2>&5
20741  ac_status=$?
20742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20744  { (case "(($ac_try" in
20745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746  *) ac_try_echo=$ac_try;;
20747esac
20748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749  (eval "$ac_try") 2>&5
20750  ac_status=$?
20751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752  (exit $ac_status); }; }; then
20753  ac_cv_c_bigendian=no
20754else
20755  echo "$as_me: program exited with status $ac_status" >&5
20756echo "$as_me: failed program was:" >&5
20757sed 's/^/| /' conftest.$ac_ext >&5
20758
20759( exit $ac_status )
20760ac_cv_c_bigendian=yes
20761fi
20762rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20763fi
20764
20765
20766fi
20767
20768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20769fi
20770{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20771echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
20772case $ac_cv_c_bigendian in
20773  yes)
20774
20775cat >>confdefs.h <<\_ACEOF
20776#define WORDS_BIGENDIAN 1
20777_ACEOF
20778 ;;
20779  no)
20780
20781
20782cat >>confdefs.h <<\_ACEOF
20783#define WORDS_LITTLEENDIAN 1
20784_ACEOF
20785
20786
20787	 ;;
20788  *)
20789    { { echo "$as_me:$LINENO: error: unknown endianness
20790presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20791echo "$as_me: error: unknown endianness
20792presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20793   { (exit 1); exit 1; }; } ;;
20794esac
20795
20796{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20797echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20798if test "${ac_cv_c_const+set}" = set; then
20799  echo $ECHO_N "(cached) $ECHO_C" >&6
20800else
20801  cat >conftest.$ac_ext <<_ACEOF
20802/* confdefs.h.  */
20803_ACEOF
20804cat confdefs.h >>conftest.$ac_ext
20805cat >>conftest.$ac_ext <<_ACEOF
20806/* end confdefs.h.  */
20807
20808int
20809main ()
20810{
20811/* FIXME: Include the comments suggested by Paul. */
20812#ifndef __cplusplus
20813  /* Ultrix mips cc rejects this.  */
20814  typedef int charset[2];
20815  const charset cs;
20816  /* SunOS 4.1.1 cc rejects this.  */
20817  char const *const *pcpcc;
20818  char **ppc;
20819  /* NEC SVR4.0.2 mips cc rejects this.  */
20820  struct point {int x, y;};
20821  static struct point const zero = {0,0};
20822  /* AIX XL C 1.02.0.0 rejects this.
20823     It does not let you subtract one const X* pointer from another in
20824     an arm of an if-expression whose if-part is not a constant
20825     expression */
20826  const char *g = "string";
20827  pcpcc = &g + (g ? g-g : 0);
20828  /* HPUX 7.0 cc rejects these. */
20829  ++pcpcc;
20830  ppc = (char**) pcpcc;
20831  pcpcc = (char const *const *) ppc;
20832  { /* SCO 3.2v4 cc rejects this.  */
20833    char *t;
20834    char const *s = 0 ? (char *) 0 : (char const *) 0;
20835
20836    *t++ = 0;
20837    if (s) return 0;
20838  }
20839  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20840    int x[] = {25, 17};
20841    const int *foo = &x[0];
20842    ++foo;
20843  }
20844  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20845    typedef const int *iptr;
20846    iptr p = 0;
20847    ++p;
20848  }
20849  { /* AIX XL C 1.02.0.0 rejects this saying
20850       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20851    struct s { int j; const int *ap[3]; };
20852    struct s *b; b->j = 5;
20853  }
20854  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20855    const int foo = 10;
20856    if (!foo) return 0;
20857  }
20858  return !cs[0] && !zero.x;
20859#endif
20860
20861  ;
20862  return 0;
20863}
20864_ACEOF
20865rm -f conftest.$ac_objext
20866if { (ac_try="$ac_compile"
20867case "(($ac_try" in
20868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20869  *) ac_try_echo=$ac_try;;
20870esac
20871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20872  (eval "$ac_compile") 2>conftest.er1
20873  ac_status=$?
20874  grep -v '^ *+' conftest.er1 >conftest.err
20875  rm -f conftest.er1
20876  cat conftest.err >&5
20877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878  (exit $ac_status); } && {
20879	 test -z "$ac_c_werror_flag" ||
20880	 test ! -s conftest.err
20881       } && test -s conftest.$ac_objext; then
20882  ac_cv_c_const=yes
20883else
20884  echo "$as_me: failed program was:" >&5
20885sed 's/^/| /' conftest.$ac_ext >&5
20886
20887	ac_cv_c_const=no
20888fi
20889
20890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20891fi
20892{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20893echo "${ECHO_T}$ac_cv_c_const" >&6; }
20894if test $ac_cv_c_const = no; then
20895
20896cat >>confdefs.h <<\_ACEOF
20897#define const
20898_ACEOF
20899
20900fi
20901
20902{ echo "$as_me:$LINENO: checking for inline" >&5
20903echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20904if test "${ac_cv_c_inline+set}" = set; then
20905  echo $ECHO_N "(cached) $ECHO_C" >&6
20906else
20907  ac_cv_c_inline=no
20908for ac_kw in inline __inline__ __inline; do
20909  cat >conftest.$ac_ext <<_ACEOF
20910/* confdefs.h.  */
20911_ACEOF
20912cat confdefs.h >>conftest.$ac_ext
20913cat >>conftest.$ac_ext <<_ACEOF
20914/* end confdefs.h.  */
20915#ifndef __cplusplus
20916typedef int foo_t;
20917static $ac_kw foo_t static_foo () {return 0; }
20918$ac_kw foo_t foo () {return 0; }
20919#endif
20920
20921_ACEOF
20922rm -f conftest.$ac_objext
20923if { (ac_try="$ac_compile"
20924case "(($ac_try" in
20925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926  *) ac_try_echo=$ac_try;;
20927esac
20928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929  (eval "$ac_compile") 2>conftest.er1
20930  ac_status=$?
20931  grep -v '^ *+' conftest.er1 >conftest.err
20932  rm -f conftest.er1
20933  cat conftest.err >&5
20934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935  (exit $ac_status); } && {
20936	 test -z "$ac_c_werror_flag" ||
20937	 test ! -s conftest.err
20938       } && test -s conftest.$ac_objext; then
20939  ac_cv_c_inline=$ac_kw
20940else
20941  echo "$as_me: failed program was:" >&5
20942sed 's/^/| /' conftest.$ac_ext >&5
20943
20944
20945fi
20946
20947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948  test "$ac_cv_c_inline" != no && break
20949done
20950
20951fi
20952{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20953echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20954
20955
20956case $ac_cv_c_inline in
20957  inline | yes) ;;
20958  *)
20959    case $ac_cv_c_inline in
20960      no) ac_val=;;
20961      *) ac_val=$ac_cv_c_inline;;
20962    esac
20963    cat >>confdefs.h <<_ACEOF
20964#ifndef __cplusplus
20965#define inline $ac_val
20966#endif
20967_ACEOF
20968    ;;
20969esac
20970
20971{ echo "$as_me:$LINENO: checking for off_t" >&5
20972echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
20973if test "${ac_cv_type_off_t+set}" = set; then
20974  echo $ECHO_N "(cached) $ECHO_C" >&6
20975else
20976  cat >conftest.$ac_ext <<_ACEOF
20977/* confdefs.h.  */
20978_ACEOF
20979cat confdefs.h >>conftest.$ac_ext
20980cat >>conftest.$ac_ext <<_ACEOF
20981/* end confdefs.h.  */
20982$ac_includes_default
20983typedef off_t ac__type_new_;
20984int
20985main ()
20986{
20987if ((ac__type_new_ *) 0)
20988  return 0;
20989if (sizeof (ac__type_new_))
20990  return 0;
20991  ;
20992  return 0;
20993}
20994_ACEOF
20995rm -f conftest.$ac_objext
20996if { (ac_try="$ac_compile"
20997case "(($ac_try" in
20998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999  *) ac_try_echo=$ac_try;;
21000esac
21001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002  (eval "$ac_compile") 2>conftest.er1
21003  ac_status=$?
21004  grep -v '^ *+' conftest.er1 >conftest.err
21005  rm -f conftest.er1
21006  cat conftest.err >&5
21007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008  (exit $ac_status); } && {
21009	 test -z "$ac_c_werror_flag" ||
21010	 test ! -s conftest.err
21011       } && test -s conftest.$ac_objext; then
21012  ac_cv_type_off_t=yes
21013else
21014  echo "$as_me: failed program was:" >&5
21015sed 's/^/| /' conftest.$ac_ext >&5
21016
21017	ac_cv_type_off_t=no
21018fi
21019
21020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21021fi
21022{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21023echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21024if test $ac_cv_type_off_t = yes; then
21025  :
21026else
21027
21028cat >>confdefs.h <<_ACEOF
21029#define off_t long int
21030_ACEOF
21031
21032fi
21033
21034{ echo "$as_me:$LINENO: checking for size_t" >&5
21035echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21036if test "${ac_cv_type_size_t+set}" = set; then
21037  echo $ECHO_N "(cached) $ECHO_C" >&6
21038else
21039  cat >conftest.$ac_ext <<_ACEOF
21040/* confdefs.h.  */
21041_ACEOF
21042cat confdefs.h >>conftest.$ac_ext
21043cat >>conftest.$ac_ext <<_ACEOF
21044/* end confdefs.h.  */
21045$ac_includes_default
21046typedef size_t ac__type_new_;
21047int
21048main ()
21049{
21050if ((ac__type_new_ *) 0)
21051  return 0;
21052if (sizeof (ac__type_new_))
21053  return 0;
21054  ;
21055  return 0;
21056}
21057_ACEOF
21058rm -f conftest.$ac_objext
21059if { (ac_try="$ac_compile"
21060case "(($ac_try" in
21061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062  *) ac_try_echo=$ac_try;;
21063esac
21064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065  (eval "$ac_compile") 2>conftest.er1
21066  ac_status=$?
21067  grep -v '^ *+' conftest.er1 >conftest.err
21068  rm -f conftest.er1
21069  cat conftest.err >&5
21070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071  (exit $ac_status); } && {
21072	 test -z "$ac_c_werror_flag" ||
21073	 test ! -s conftest.err
21074       } && test -s conftest.$ac_objext; then
21075  ac_cv_type_size_t=yes
21076else
21077  echo "$as_me: failed program was:" >&5
21078sed 's/^/| /' conftest.$ac_ext >&5
21079
21080	ac_cv_type_size_t=no
21081fi
21082
21083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21084fi
21085{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21086echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21087if test $ac_cv_type_size_t = yes; then
21088  :
21089else
21090
21091cat >>confdefs.h <<_ACEOF
21092#define size_t unsigned int
21093_ACEOF
21094
21095fi
21096
21097{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21098echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21099if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21100  echo $ECHO_N "(cached) $ECHO_C" >&6
21101else
21102  cat >conftest.$ac_ext <<_ACEOF
21103/* confdefs.h.  */
21104_ACEOF
21105cat confdefs.h >>conftest.$ac_ext
21106cat >>conftest.$ac_ext <<_ACEOF
21107/* end confdefs.h.  */
21108$ac_includes_default
21109int
21110main ()
21111{
21112static struct stat ac_aggr;
21113if (ac_aggr.st_blocks)
21114return 0;
21115  ;
21116  return 0;
21117}
21118_ACEOF
21119rm -f conftest.$ac_objext
21120if { (ac_try="$ac_compile"
21121case "(($ac_try" in
21122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123  *) ac_try_echo=$ac_try;;
21124esac
21125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126  (eval "$ac_compile") 2>conftest.er1
21127  ac_status=$?
21128  grep -v '^ *+' conftest.er1 >conftest.err
21129  rm -f conftest.er1
21130  cat conftest.err >&5
21131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132  (exit $ac_status); } && {
21133	 test -z "$ac_c_werror_flag" ||
21134	 test ! -s conftest.err
21135       } && test -s conftest.$ac_objext; then
21136  ac_cv_member_struct_stat_st_blocks=yes
21137else
21138  echo "$as_me: failed program was:" >&5
21139sed 's/^/| /' conftest.$ac_ext >&5
21140
21141	cat >conftest.$ac_ext <<_ACEOF
21142/* confdefs.h.  */
21143_ACEOF
21144cat confdefs.h >>conftest.$ac_ext
21145cat >>conftest.$ac_ext <<_ACEOF
21146/* end confdefs.h.  */
21147$ac_includes_default
21148int
21149main ()
21150{
21151static struct stat ac_aggr;
21152if (sizeof ac_aggr.st_blocks)
21153return 0;
21154  ;
21155  return 0;
21156}
21157_ACEOF
21158rm -f conftest.$ac_objext
21159if { (ac_try="$ac_compile"
21160case "(($ac_try" in
21161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162  *) ac_try_echo=$ac_try;;
21163esac
21164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165  (eval "$ac_compile") 2>conftest.er1
21166  ac_status=$?
21167  grep -v '^ *+' conftest.er1 >conftest.err
21168  rm -f conftest.er1
21169  cat conftest.err >&5
21170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171  (exit $ac_status); } && {
21172	 test -z "$ac_c_werror_flag" ||
21173	 test ! -s conftest.err
21174       } && test -s conftest.$ac_objext; then
21175  ac_cv_member_struct_stat_st_blocks=yes
21176else
21177  echo "$as_me: failed program was:" >&5
21178sed 's/^/| /' conftest.$ac_ext >&5
21179
21180	ac_cv_member_struct_stat_st_blocks=no
21181fi
21182
21183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21184fi
21185
21186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21187fi
21188{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21189echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21190if test $ac_cv_member_struct_stat_st_blocks = yes; then
21191
21192cat >>confdefs.h <<_ACEOF
21193#define HAVE_STRUCT_STAT_ST_BLOCKS 1
21194_ACEOF
21195
21196
21197cat >>confdefs.h <<\_ACEOF
21198#define HAVE_ST_BLOCKS 1
21199_ACEOF
21200
21201else
21202  case " $LIBOBJS " in
21203  *" fileblocks.$ac_objext "* ) ;;
21204  *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21205 ;;
21206esac
21207
21208fi
21209
21210
21211{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21212echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21213if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21214  echo $ECHO_N "(cached) $ECHO_C" >&6
21215else
21216  cat >conftest.$ac_ext <<_ACEOF
21217/* confdefs.h.  */
21218_ACEOF
21219cat confdefs.h >>conftest.$ac_ext
21220cat >>conftest.$ac_ext <<_ACEOF
21221/* end confdefs.h.  */
21222$ac_includes_default
21223int
21224main ()
21225{
21226static struct stat ac_aggr;
21227if (ac_aggr.st_rdev)
21228return 0;
21229  ;
21230  return 0;
21231}
21232_ACEOF
21233rm -f conftest.$ac_objext
21234if { (ac_try="$ac_compile"
21235case "(($ac_try" in
21236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237  *) ac_try_echo=$ac_try;;
21238esac
21239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240  (eval "$ac_compile") 2>conftest.er1
21241  ac_status=$?
21242  grep -v '^ *+' conftest.er1 >conftest.err
21243  rm -f conftest.er1
21244  cat conftest.err >&5
21245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246  (exit $ac_status); } && {
21247	 test -z "$ac_c_werror_flag" ||
21248	 test ! -s conftest.err
21249       } && test -s conftest.$ac_objext; then
21250  ac_cv_member_struct_stat_st_rdev=yes
21251else
21252  echo "$as_me: failed program was:" >&5
21253sed 's/^/| /' conftest.$ac_ext >&5
21254
21255	cat >conftest.$ac_ext <<_ACEOF
21256/* confdefs.h.  */
21257_ACEOF
21258cat confdefs.h >>conftest.$ac_ext
21259cat >>conftest.$ac_ext <<_ACEOF
21260/* end confdefs.h.  */
21261$ac_includes_default
21262int
21263main ()
21264{
21265static struct stat ac_aggr;
21266if (sizeof ac_aggr.st_rdev)
21267return 0;
21268  ;
21269  return 0;
21270}
21271_ACEOF
21272rm -f conftest.$ac_objext
21273if { (ac_try="$ac_compile"
21274case "(($ac_try" in
21275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21276  *) ac_try_echo=$ac_try;;
21277esac
21278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21279  (eval "$ac_compile") 2>conftest.er1
21280  ac_status=$?
21281  grep -v '^ *+' conftest.er1 >conftest.err
21282  rm -f conftest.er1
21283  cat conftest.err >&5
21284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285  (exit $ac_status); } && {
21286	 test -z "$ac_c_werror_flag" ||
21287	 test ! -s conftest.err
21288       } && test -s conftest.$ac_objext; then
21289  ac_cv_member_struct_stat_st_rdev=yes
21290else
21291  echo "$as_me: failed program was:" >&5
21292sed 's/^/| /' conftest.$ac_ext >&5
21293
21294	ac_cv_member_struct_stat_st_rdev=no
21295fi
21296
21297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21298fi
21299
21300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21301fi
21302{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21303echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21304if test $ac_cv_member_struct_stat_st_rdev = yes; then
21305
21306cat >>confdefs.h <<_ACEOF
21307#define HAVE_STRUCT_STAT_ST_RDEV 1
21308_ACEOF
21309
21310
21311fi
21312
21313{ echo "$as_me:$LINENO: checking for struct stat.st_atim" >&5
21314echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6; }
21315if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then
21316  echo $ECHO_N "(cached) $ECHO_C" >&6
21317else
21318  cat >conftest.$ac_ext <<_ACEOF
21319/* confdefs.h.  */
21320_ACEOF
21321cat confdefs.h >>conftest.$ac_ext
21322cat >>conftest.$ac_ext <<_ACEOF
21323/* end confdefs.h.  */
21324$ac_includes_default
21325int
21326main ()
21327{
21328static struct stat ac_aggr;
21329if (ac_aggr.st_atim)
21330return 0;
21331  ;
21332  return 0;
21333}
21334_ACEOF
21335rm -f conftest.$ac_objext
21336if { (ac_try="$ac_compile"
21337case "(($ac_try" in
21338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339  *) ac_try_echo=$ac_try;;
21340esac
21341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342  (eval "$ac_compile") 2>conftest.er1
21343  ac_status=$?
21344  grep -v '^ *+' conftest.er1 >conftest.err
21345  rm -f conftest.er1
21346  cat conftest.err >&5
21347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348  (exit $ac_status); } && {
21349	 test -z "$ac_c_werror_flag" ||
21350	 test ! -s conftest.err
21351       } && test -s conftest.$ac_objext; then
21352  ac_cv_member_struct_stat_st_atim=yes
21353else
21354  echo "$as_me: failed program was:" >&5
21355sed 's/^/| /' conftest.$ac_ext >&5
21356
21357	cat >conftest.$ac_ext <<_ACEOF
21358/* confdefs.h.  */
21359_ACEOF
21360cat confdefs.h >>conftest.$ac_ext
21361cat >>conftest.$ac_ext <<_ACEOF
21362/* end confdefs.h.  */
21363$ac_includes_default
21364int
21365main ()
21366{
21367static struct stat ac_aggr;
21368if (sizeof ac_aggr.st_atim)
21369return 0;
21370  ;
21371  return 0;
21372}
21373_ACEOF
21374rm -f conftest.$ac_objext
21375if { (ac_try="$ac_compile"
21376case "(($ac_try" in
21377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378  *) ac_try_echo=$ac_try;;
21379esac
21380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381  (eval "$ac_compile") 2>conftest.er1
21382  ac_status=$?
21383  grep -v '^ *+' conftest.er1 >conftest.err
21384  rm -f conftest.er1
21385  cat conftest.err >&5
21386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387  (exit $ac_status); } && {
21388	 test -z "$ac_c_werror_flag" ||
21389	 test ! -s conftest.err
21390       } && test -s conftest.$ac_objext; then
21391  ac_cv_member_struct_stat_st_atim=yes
21392else
21393  echo "$as_me: failed program was:" >&5
21394sed 's/^/| /' conftest.$ac_ext >&5
21395
21396	ac_cv_member_struct_stat_st_atim=no
21397fi
21398
21399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21400fi
21401
21402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21403fi
21404{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim" >&5
21405echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6; }
21406if test $ac_cv_member_struct_stat_st_atim = yes; then
21407
21408cat >>confdefs.h <<_ACEOF
21409#define HAVE_STRUCT_STAT_ST_ATIM 1
21410_ACEOF
21411
21412
21413fi
21414
21415{ echo "$as_me:$LINENO: checking for struct stat.st_atimespec" >&5
21416echo $ECHO_N "checking for struct stat.st_atimespec... $ECHO_C" >&6; }
21417if test "${ac_cv_member_struct_stat_st_atimespec+set}" = set; then
21418  echo $ECHO_N "(cached) $ECHO_C" >&6
21419else
21420  cat >conftest.$ac_ext <<_ACEOF
21421/* confdefs.h.  */
21422_ACEOF
21423cat confdefs.h >>conftest.$ac_ext
21424cat >>conftest.$ac_ext <<_ACEOF
21425/* end confdefs.h.  */
21426$ac_includes_default
21427int
21428main ()
21429{
21430static struct stat ac_aggr;
21431if (ac_aggr.st_atimespec)
21432return 0;
21433  ;
21434  return 0;
21435}
21436_ACEOF
21437rm -f conftest.$ac_objext
21438if { (ac_try="$ac_compile"
21439case "(($ac_try" in
21440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21441  *) ac_try_echo=$ac_try;;
21442esac
21443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21444  (eval "$ac_compile") 2>conftest.er1
21445  ac_status=$?
21446  grep -v '^ *+' conftest.er1 >conftest.err
21447  rm -f conftest.er1
21448  cat conftest.err >&5
21449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450  (exit $ac_status); } && {
21451	 test -z "$ac_c_werror_flag" ||
21452	 test ! -s conftest.err
21453       } && test -s conftest.$ac_objext; then
21454  ac_cv_member_struct_stat_st_atimespec=yes
21455else
21456  echo "$as_me: failed program was:" >&5
21457sed 's/^/| /' conftest.$ac_ext >&5
21458
21459	cat >conftest.$ac_ext <<_ACEOF
21460/* confdefs.h.  */
21461_ACEOF
21462cat confdefs.h >>conftest.$ac_ext
21463cat >>conftest.$ac_ext <<_ACEOF
21464/* end confdefs.h.  */
21465$ac_includes_default
21466int
21467main ()
21468{
21469static struct stat ac_aggr;
21470if (sizeof ac_aggr.st_atimespec)
21471return 0;
21472  ;
21473  return 0;
21474}
21475_ACEOF
21476rm -f conftest.$ac_objext
21477if { (ac_try="$ac_compile"
21478case "(($ac_try" in
21479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21480  *) ac_try_echo=$ac_try;;
21481esac
21482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21483  (eval "$ac_compile") 2>conftest.er1
21484  ac_status=$?
21485  grep -v '^ *+' conftest.er1 >conftest.err
21486  rm -f conftest.er1
21487  cat conftest.err >&5
21488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489  (exit $ac_status); } && {
21490	 test -z "$ac_c_werror_flag" ||
21491	 test ! -s conftest.err
21492       } && test -s conftest.$ac_objext; then
21493  ac_cv_member_struct_stat_st_atimespec=yes
21494else
21495  echo "$as_me: failed program was:" >&5
21496sed 's/^/| /' conftest.$ac_ext >&5
21497
21498	ac_cv_member_struct_stat_st_atimespec=no
21499fi
21500
21501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21502fi
21503
21504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21505fi
21506{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec" >&5
21507echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec" >&6; }
21508if test $ac_cv_member_struct_stat_st_atimespec = yes; then
21509
21510cat >>confdefs.h <<_ACEOF
21511#define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
21512_ACEOF
21513
21514
21515fi
21516
21517
21518# Checks for library functions.
21519# getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
21520# -lseq on Dynix/PTX, -lgen on Unixware.
21521{ echo "$as_me:$LINENO: checking for library containing getmntent" >&5
21522echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
21523if test "${ac_cv_search_getmntent+set}" = set; then
21524  echo $ECHO_N "(cached) $ECHO_C" >&6
21525else
21526  ac_func_search_save_LIBS=$LIBS
21527cat >conftest.$ac_ext <<_ACEOF
21528/* confdefs.h.  */
21529_ACEOF
21530cat confdefs.h >>conftest.$ac_ext
21531cat >>conftest.$ac_ext <<_ACEOF
21532/* end confdefs.h.  */
21533
21534/* Override any GCC internal prototype to avoid an error.
21535   Use char because int might match the return type of a GCC
21536   builtin and then its argument prototype would still apply.  */
21537#ifdef __cplusplus
21538extern "C"
21539#endif
21540char getmntent ();
21541int
21542main ()
21543{
21544return getmntent ();
21545  ;
21546  return 0;
21547}
21548_ACEOF
21549for ac_lib in '' sun seq gen; do
21550  if test -z "$ac_lib"; then
21551    ac_res="none required"
21552  else
21553    ac_res=-l$ac_lib
21554    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21555  fi
21556  rm -f conftest.$ac_objext conftest$ac_exeext
21557if { (ac_try="$ac_link"
21558case "(($ac_try" in
21559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560  *) ac_try_echo=$ac_try;;
21561esac
21562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21563  (eval "$ac_link") 2>conftest.er1
21564  ac_status=$?
21565  grep -v '^ *+' conftest.er1 >conftest.err
21566  rm -f conftest.er1
21567  cat conftest.err >&5
21568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569  (exit $ac_status); } && {
21570	 test -z "$ac_c_werror_flag" ||
21571	 test ! -s conftest.err
21572       } && test -s conftest$ac_exeext &&
21573       $as_test_x conftest$ac_exeext; then
21574  ac_cv_search_getmntent=$ac_res
21575else
21576  echo "$as_me: failed program was:" >&5
21577sed 's/^/| /' conftest.$ac_ext >&5
21578
21579
21580fi
21581
21582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21583      conftest$ac_exeext
21584  if test "${ac_cv_search_getmntent+set}" = set; then
21585  break
21586fi
21587done
21588if test "${ac_cv_search_getmntent+set}" = set; then
21589  :
21590else
21591  ac_cv_search_getmntent=no
21592fi
21593rm conftest.$ac_ext
21594LIBS=$ac_func_search_save_LIBS
21595fi
21596{ echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
21597echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
21598ac_res=$ac_cv_search_getmntent
21599if test "$ac_res" != no; then
21600  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21601  ac_cv_func_getmntent=yes
21602
21603cat >>confdefs.h <<\_ACEOF
21604#define HAVE_GETMNTENT
21605_ACEOF
21606
21607else
21608  ac_cv_func_getmntent=no
21609fi
21610
21611
21612
21613  { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
21614echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
21615if test "${ac_cv_func_mbrtowc+set}" = set; then
21616  echo $ECHO_N "(cached) $ECHO_C" >&6
21617else
21618  cat >conftest.$ac_ext <<_ACEOF
21619/* confdefs.h.  */
21620_ACEOF
21621cat confdefs.h >>conftest.$ac_ext
21622cat >>conftest.$ac_ext <<_ACEOF
21623/* end confdefs.h.  */
21624#include <wchar.h>
21625int
21626main ()
21627{
21628wchar_t wc;
21629	      char const s[] = "";
21630	      size_t n = 1;
21631	      mbstate_t state;
21632	      return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
21633  ;
21634  return 0;
21635}
21636_ACEOF
21637rm -f conftest.$ac_objext conftest$ac_exeext
21638if { (ac_try="$ac_link"
21639case "(($ac_try" in
21640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21641  *) ac_try_echo=$ac_try;;
21642esac
21643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21644  (eval "$ac_link") 2>conftest.er1
21645  ac_status=$?
21646  grep -v '^ *+' conftest.er1 >conftest.err
21647  rm -f conftest.er1
21648  cat conftest.err >&5
21649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650  (exit $ac_status); } && {
21651	 test -z "$ac_c_werror_flag" ||
21652	 test ! -s conftest.err
21653       } && test -s conftest$ac_exeext &&
21654       $as_test_x conftest$ac_exeext; then
21655  ac_cv_func_mbrtowc=yes
21656else
21657  echo "$as_me: failed program was:" >&5
21658sed 's/^/| /' conftest.$ac_ext >&5
21659
21660	ac_cv_func_mbrtowc=no
21661fi
21662
21663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21664      conftest$ac_exeext conftest.$ac_ext
21665fi
21666{ echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
21667echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6; }
21668  if test $ac_cv_func_mbrtowc = yes; then
21669
21670cat >>confdefs.h <<\_ACEOF
21671#define HAVE_MBRTOWC 1
21672_ACEOF
21673
21674  fi
21675
21676{ echo "$as_me:$LINENO: checking for working memcmp" >&5
21677echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
21678if test "${ac_cv_func_memcmp_working+set}" = set; then
21679  echo $ECHO_N "(cached) $ECHO_C" >&6
21680else
21681  if test "$cross_compiling" = yes; then
21682  ac_cv_func_memcmp_working=no
21683else
21684  cat >conftest.$ac_ext <<_ACEOF
21685/* confdefs.h.  */
21686_ACEOF
21687cat confdefs.h >>conftest.$ac_ext
21688cat >>conftest.$ac_ext <<_ACEOF
21689/* end confdefs.h.  */
21690$ac_includes_default
21691int
21692main ()
21693{
21694
21695  /* Some versions of memcmp are not 8-bit clean.  */
21696  char c0 = '\100', c1 = '\200', c2 = '\201';
21697  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21698    return 1;
21699
21700  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21701     or more and with at least one buffer not starting on a 4-byte boundary.
21702     William Lewis provided this test program.   */
21703  {
21704    char foo[21];
21705    char bar[21];
21706    int i;
21707    for (i = 0; i < 4; i++)
21708      {
21709	char *a = foo + i;
21710	char *b = bar + i;
21711	strcpy (a, "--------01111111");
21712	strcpy (b, "--------10000000");
21713	if (memcmp (a, b, 16) >= 0)
21714	  return 1;
21715      }
21716    return 0;
21717  }
21718
21719  ;
21720  return 0;
21721}
21722_ACEOF
21723rm -f conftest$ac_exeext
21724if { (ac_try="$ac_link"
21725case "(($ac_try" in
21726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21727  *) ac_try_echo=$ac_try;;
21728esac
21729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21730  (eval "$ac_link") 2>&5
21731  ac_status=$?
21732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21734  { (case "(($ac_try" in
21735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736  *) ac_try_echo=$ac_try;;
21737esac
21738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739  (eval "$ac_try") 2>&5
21740  ac_status=$?
21741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742  (exit $ac_status); }; }; then
21743  ac_cv_func_memcmp_working=yes
21744else
21745  echo "$as_me: program exited with status $ac_status" >&5
21746echo "$as_me: failed program was:" >&5
21747sed 's/^/| /' conftest.$ac_ext >&5
21748
21749( exit $ac_status )
21750ac_cv_func_memcmp_working=no
21751fi
21752rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21753fi
21754
21755
21756fi
21757{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21758echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
21759test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21760  *" memcmp.$ac_objext "* ) ;;
21761  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21762 ;;
21763esac
21764
21765
21766{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
21767echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
21768if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
21769  echo $ECHO_N "(cached) $ECHO_C" >&6
21770else
21771  rm -f conftest.sym conftest.file
21772echo >conftest.file
21773if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
21774  if test "$cross_compiling" = yes; then
21775  ac_cv_func_lstat_dereferences_slashed_symlink=no
21776else
21777  cat >conftest.$ac_ext <<_ACEOF
21778/* confdefs.h.  */
21779_ACEOF
21780cat confdefs.h >>conftest.$ac_ext
21781cat >>conftest.$ac_ext <<_ACEOF
21782/* end confdefs.h.  */
21783$ac_includes_default
21784int
21785main ()
21786{
21787struct stat sbuf;
21788     /* Linux will dereference the symlink and fail.
21789	That is better in the sense that it means we will not
21790	have to compile and use the lstat wrapper.  */
21791     return lstat ("conftest.sym/", &sbuf) == 0;
21792  ;
21793  return 0;
21794}
21795_ACEOF
21796rm -f conftest$ac_exeext
21797if { (ac_try="$ac_link"
21798case "(($ac_try" in
21799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800  *) ac_try_echo=$ac_try;;
21801esac
21802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803  (eval "$ac_link") 2>&5
21804  ac_status=$?
21805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21807  { (case "(($ac_try" in
21808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809  *) ac_try_echo=$ac_try;;
21810esac
21811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812  (eval "$ac_try") 2>&5
21813  ac_status=$?
21814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815  (exit $ac_status); }; }; then
21816  ac_cv_func_lstat_dereferences_slashed_symlink=yes
21817else
21818  echo "$as_me: program exited with status $ac_status" >&5
21819echo "$as_me: failed program was:" >&5
21820sed 's/^/| /' conftest.$ac_ext >&5
21821
21822( exit $ac_status )
21823ac_cv_func_lstat_dereferences_slashed_symlink=no
21824fi
21825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21826fi
21827
21828
21829else
21830  # If the `ln -s' command failed, then we probably don't even
21831  # have an lstat function.
21832  ac_cv_func_lstat_dereferences_slashed_symlink=no
21833fi
21834rm -f conftest.sym conftest.file
21835
21836fi
21837{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
21838echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
21839
21840test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
21841
21842cat >>confdefs.h <<_ACEOF
21843#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
21844_ACEOF
21845
21846
21847if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
21848  case " $LIBOBJS " in
21849  *" lstat.$ac_objext "* ) ;;
21850  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
21851 ;;
21852esac
21853
21854fi
21855
21856{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
21857echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
21858if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
21859  echo $ECHO_N "(cached) $ECHO_C" >&6
21860else
21861  if test "$cross_compiling" = yes; then
21862  ac_cv_func_stat_empty_string_bug=yes
21863else
21864  cat >conftest.$ac_ext <<_ACEOF
21865/* confdefs.h.  */
21866_ACEOF
21867cat confdefs.h >>conftest.$ac_ext
21868cat >>conftest.$ac_ext <<_ACEOF
21869/* end confdefs.h.  */
21870$ac_includes_default
21871int
21872main ()
21873{
21874struct stat sbuf;
21875  return stat ("", &sbuf) == 0;
21876  ;
21877  return 0;
21878}
21879_ACEOF
21880rm -f conftest$ac_exeext
21881if { (ac_try="$ac_link"
21882case "(($ac_try" in
21883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884  *) ac_try_echo=$ac_try;;
21885esac
21886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21887  (eval "$ac_link") 2>&5
21888  ac_status=$?
21889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21891  { (case "(($ac_try" in
21892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893  *) ac_try_echo=$ac_try;;
21894esac
21895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21896  (eval "$ac_try") 2>&5
21897  ac_status=$?
21898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899  (exit $ac_status); }; }; then
21900  ac_cv_func_stat_empty_string_bug=no
21901else
21902  echo "$as_me: program exited with status $ac_status" >&5
21903echo "$as_me: failed program was:" >&5
21904sed 's/^/| /' conftest.$ac_ext >&5
21905
21906( exit $ac_status )
21907ac_cv_func_stat_empty_string_bug=yes
21908fi
21909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21910fi
21911
21912
21913fi
21914{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
21915echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
21916if test $ac_cv_func_stat_empty_string_bug = yes; then
21917  case " $LIBOBJS " in
21918  *" stat.$ac_objext "* ) ;;
21919  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
21920 ;;
21921esac
21922
21923
21924cat >>confdefs.h <<_ACEOF
21925#define HAVE_STAT_EMPTY_STRING_BUG 1
21926_ACEOF
21927
21928fi
21929
21930
21931for ac_func in strftime
21932do
21933as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21934{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21935echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21936if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21937  echo $ECHO_N "(cached) $ECHO_C" >&6
21938else
21939  cat >conftest.$ac_ext <<_ACEOF
21940/* confdefs.h.  */
21941_ACEOF
21942cat confdefs.h >>conftest.$ac_ext
21943cat >>conftest.$ac_ext <<_ACEOF
21944/* end confdefs.h.  */
21945/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21946   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21947#define $ac_func innocuous_$ac_func
21948
21949/* System header to define __stub macros and hopefully few prototypes,
21950    which can conflict with char $ac_func (); below.
21951    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21952    <limits.h> exists even on freestanding compilers.  */
21953
21954#ifdef __STDC__
21955# include <limits.h>
21956#else
21957# include <assert.h>
21958#endif
21959
21960#undef $ac_func
21961
21962/* Override any GCC internal prototype to avoid an error.
21963   Use char because int might match the return type of a GCC
21964   builtin and then its argument prototype would still apply.  */
21965#ifdef __cplusplus
21966extern "C"
21967#endif
21968char $ac_func ();
21969/* The GNU C library defines this for functions which it implements
21970    to always fail with ENOSYS.  Some functions are actually named
21971    something starting with __ and the normal name is an alias.  */
21972#if defined __stub_$ac_func || defined __stub___$ac_func
21973choke me
21974#endif
21975
21976int
21977main ()
21978{
21979return $ac_func ();
21980  ;
21981  return 0;
21982}
21983_ACEOF
21984rm -f conftest.$ac_objext conftest$ac_exeext
21985if { (ac_try="$ac_link"
21986case "(($ac_try" in
21987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21988  *) ac_try_echo=$ac_try;;
21989esac
21990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21991  (eval "$ac_link") 2>conftest.er1
21992  ac_status=$?
21993  grep -v '^ *+' conftest.er1 >conftest.err
21994  rm -f conftest.er1
21995  cat conftest.err >&5
21996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997  (exit $ac_status); } && {
21998	 test -z "$ac_c_werror_flag" ||
21999	 test ! -s conftest.err
22000       } && test -s conftest$ac_exeext &&
22001       $as_test_x conftest$ac_exeext; then
22002  eval "$as_ac_var=yes"
22003else
22004  echo "$as_me: failed program was:" >&5
22005sed 's/^/| /' conftest.$ac_ext >&5
22006
22007	eval "$as_ac_var=no"
22008fi
22009
22010rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22011      conftest$ac_exeext conftest.$ac_ext
22012fi
22013ac_res=`eval echo '${'$as_ac_var'}'`
22014	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22015echo "${ECHO_T}$ac_res" >&6; }
22016if test `eval echo '${'$as_ac_var'}'` = yes; then
22017  cat >>confdefs.h <<_ACEOF
22018#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22019_ACEOF
22020
22021else
22022  # strftime is in -lintl on SCO UNIX.
22023{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
22024echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
22025if test "${ac_cv_lib_intl_strftime+set}" = set; then
22026  echo $ECHO_N "(cached) $ECHO_C" >&6
22027else
22028  ac_check_lib_save_LIBS=$LIBS
22029LIBS="-lintl  $LIBS"
22030cat >conftest.$ac_ext <<_ACEOF
22031/* confdefs.h.  */
22032_ACEOF
22033cat confdefs.h >>conftest.$ac_ext
22034cat >>conftest.$ac_ext <<_ACEOF
22035/* end confdefs.h.  */
22036
22037/* Override any GCC internal prototype to avoid an error.
22038   Use char because int might match the return type of a GCC
22039   builtin and then its argument prototype would still apply.  */
22040#ifdef __cplusplus
22041extern "C"
22042#endif
22043char strftime ();
22044int
22045main ()
22046{
22047return strftime ();
22048  ;
22049  return 0;
22050}
22051_ACEOF
22052rm -f conftest.$ac_objext conftest$ac_exeext
22053if { (ac_try="$ac_link"
22054case "(($ac_try" in
22055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056  *) ac_try_echo=$ac_try;;
22057esac
22058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059  (eval "$ac_link") 2>conftest.er1
22060  ac_status=$?
22061  grep -v '^ *+' conftest.er1 >conftest.err
22062  rm -f conftest.er1
22063  cat conftest.err >&5
22064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065  (exit $ac_status); } && {
22066	 test -z "$ac_c_werror_flag" ||
22067	 test ! -s conftest.err
22068       } && test -s conftest$ac_exeext &&
22069       $as_test_x conftest$ac_exeext; then
22070  ac_cv_lib_intl_strftime=yes
22071else
22072  echo "$as_me: failed program was:" >&5
22073sed 's/^/| /' conftest.$ac_ext >&5
22074
22075	ac_cv_lib_intl_strftime=no
22076fi
22077
22078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22079      conftest$ac_exeext conftest.$ac_ext
22080LIBS=$ac_check_lib_save_LIBS
22081fi
22082{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
22083echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
22084if test $ac_cv_lib_intl_strftime = yes; then
22085  cat >>confdefs.h <<\_ACEOF
22086#define HAVE_STRFTIME 1
22087_ACEOF
22088
22089LIBS="-lintl $LIBS"
22090fi
22091
22092fi
22093done
22094
22095
22096
22097
22098
22099for ac_header in $ac_header_list
22100do
22101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22103  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22106  echo $ECHO_N "(cached) $ECHO_C" >&6
22107fi
22108ac_res=`eval echo '${'$as_ac_Header'}'`
22109	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22110echo "${ECHO_T}$ac_res" >&6; }
22111else
22112  # Is the header compilable?
22113{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22115cat >conftest.$ac_ext <<_ACEOF
22116/* confdefs.h.  */
22117_ACEOF
22118cat confdefs.h >>conftest.$ac_ext
22119cat >>conftest.$ac_ext <<_ACEOF
22120/* end confdefs.h.  */
22121$ac_includes_default
22122#include <$ac_header>
22123_ACEOF
22124rm -f conftest.$ac_objext
22125if { (ac_try="$ac_compile"
22126case "(($ac_try" in
22127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22128  *) ac_try_echo=$ac_try;;
22129esac
22130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22131  (eval "$ac_compile") 2>conftest.er1
22132  ac_status=$?
22133  grep -v '^ *+' conftest.er1 >conftest.err
22134  rm -f conftest.er1
22135  cat conftest.err >&5
22136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137  (exit $ac_status); } && {
22138	 test -z "$ac_c_werror_flag" ||
22139	 test ! -s conftest.err
22140       } && test -s conftest.$ac_objext; then
22141  ac_header_compiler=yes
22142else
22143  echo "$as_me: failed program was:" >&5
22144sed 's/^/| /' conftest.$ac_ext >&5
22145
22146	ac_header_compiler=no
22147fi
22148
22149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22150{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22151echo "${ECHO_T}$ac_header_compiler" >&6; }
22152
22153# Is the header present?
22154{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22156cat >conftest.$ac_ext <<_ACEOF
22157/* confdefs.h.  */
22158_ACEOF
22159cat confdefs.h >>conftest.$ac_ext
22160cat >>conftest.$ac_ext <<_ACEOF
22161/* end confdefs.h.  */
22162#include <$ac_header>
22163_ACEOF
22164if { (ac_try="$ac_cpp conftest.$ac_ext"
22165case "(($ac_try" in
22166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22167  *) ac_try_echo=$ac_try;;
22168esac
22169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22170  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22171  ac_status=$?
22172  grep -v '^ *+' conftest.er1 >conftest.err
22173  rm -f conftest.er1
22174  cat conftest.err >&5
22175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176  (exit $ac_status); } >/dev/null && {
22177	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22178	 test ! -s conftest.err
22179       }; then
22180  ac_header_preproc=yes
22181else
22182  echo "$as_me: failed program was:" >&5
22183sed 's/^/| /' conftest.$ac_ext >&5
22184
22185  ac_header_preproc=no
22186fi
22187
22188rm -f conftest.err conftest.$ac_ext
22189{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22190echo "${ECHO_T}$ac_header_preproc" >&6; }
22191
22192# So?  What about this header?
22193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22194  yes:no: )
22195    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22196echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22197    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22198echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22199    ac_header_preproc=yes
22200    ;;
22201  no:yes:* )
22202    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22203echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22204    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22205echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22206    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22207echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22208    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22209echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22210    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22211echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22212    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22213echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22214    ( cat <<\_ASBOX
22215## ----------------------------------------- ##
22216## Report this to ntfs-3g-devel@lists.sf.net ##
22217## ----------------------------------------- ##
22218_ASBOX
22219     ) | sed "s/^/$as_me: WARNING:     /" >&2
22220    ;;
22221esac
22222{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22225  echo $ECHO_N "(cached) $ECHO_C" >&6
22226else
22227  eval "$as_ac_Header=\$ac_header_preproc"
22228fi
22229ac_res=`eval echo '${'$as_ac_Header'}'`
22230	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22231echo "${ECHO_T}$ac_res" >&6; }
22232
22233fi
22234if test `eval echo '${'$as_ac_Header'}'` = yes; then
22235  cat >>confdefs.h <<_ACEOF
22236#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22237_ACEOF
22238
22239fi
22240
22241done
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251{ echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
22252echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
22253if test "${ac_cv_func_utime_null+set}" = set; then
22254  echo $ECHO_N "(cached) $ECHO_C" >&6
22255else
22256  rm -f conftest.data; >conftest.data
22257# Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
22258if test "$cross_compiling" = yes; then
22259  ac_cv_func_utime_null=no
22260else
22261  cat >conftest.$ac_ext <<_ACEOF
22262/* confdefs.h.  */
22263_ACEOF
22264cat confdefs.h >>conftest.$ac_ext
22265cat >>conftest.$ac_ext <<_ACEOF
22266/* end confdefs.h.  */
22267$ac_includes_default
22268	       #ifdef HAVE_UTIME_H
22269	       # include <utime.h>
22270	       #endif
22271int
22272main ()
22273{
22274struct stat s, t;
22275  return ! (stat ("conftest.data", &s) == 0
22276	    && utime ("conftest.data", 0) == 0
22277	    && stat ("conftest.data", &t) == 0
22278	    && t.st_mtime >= s.st_mtime
22279	    && t.st_mtime - s.st_mtime < 120);
22280  ;
22281  return 0;
22282}
22283_ACEOF
22284rm -f conftest$ac_exeext
22285if { (ac_try="$ac_link"
22286case "(($ac_try" in
22287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288  *) ac_try_echo=$ac_try;;
22289esac
22290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291  (eval "$ac_link") 2>&5
22292  ac_status=$?
22293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22295  { (case "(($ac_try" in
22296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22297  *) ac_try_echo=$ac_try;;
22298esac
22299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22300  (eval "$ac_try") 2>&5
22301  ac_status=$?
22302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303  (exit $ac_status); }; }; then
22304  ac_cv_func_utime_null=yes
22305else
22306  echo "$as_me: program exited with status $ac_status" >&5
22307echo "$as_me: failed program was:" >&5
22308sed 's/^/| /' conftest.$ac_ext >&5
22309
22310( exit $ac_status )
22311ac_cv_func_utime_null=no
22312fi
22313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22314fi
22315
22316
22317fi
22318{ echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
22319echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
22320if test $ac_cv_func_utime_null = yes; then
22321
22322cat >>confdefs.h <<\_ACEOF
22323#define HAVE_UTIME_NULL 1
22324_ACEOF
22325
22326fi
22327rm -f conftest.data
22328
22329
22330for ac_func in vprintf
22331do
22332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22333{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22335if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22336  echo $ECHO_N "(cached) $ECHO_C" >&6
22337else
22338  cat >conftest.$ac_ext <<_ACEOF
22339/* confdefs.h.  */
22340_ACEOF
22341cat confdefs.h >>conftest.$ac_ext
22342cat >>conftest.$ac_ext <<_ACEOF
22343/* end confdefs.h.  */
22344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22345   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22346#define $ac_func innocuous_$ac_func
22347
22348/* System header to define __stub macros and hopefully few prototypes,
22349    which can conflict with char $ac_func (); below.
22350    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22351    <limits.h> exists even on freestanding compilers.  */
22352
22353#ifdef __STDC__
22354# include <limits.h>
22355#else
22356# include <assert.h>
22357#endif
22358
22359#undef $ac_func
22360
22361/* Override any GCC internal prototype to avoid an error.
22362   Use char because int might match the return type of a GCC
22363   builtin and then its argument prototype would still apply.  */
22364#ifdef __cplusplus
22365extern "C"
22366#endif
22367char $ac_func ();
22368/* The GNU C library defines this for functions which it implements
22369    to always fail with ENOSYS.  Some functions are actually named
22370    something starting with __ and the normal name is an alias.  */
22371#if defined __stub_$ac_func || defined __stub___$ac_func
22372choke me
22373#endif
22374
22375int
22376main ()
22377{
22378return $ac_func ();
22379  ;
22380  return 0;
22381}
22382_ACEOF
22383rm -f conftest.$ac_objext conftest$ac_exeext
22384if { (ac_try="$ac_link"
22385case "(($ac_try" in
22386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22387  *) ac_try_echo=$ac_try;;
22388esac
22389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22390  (eval "$ac_link") 2>conftest.er1
22391  ac_status=$?
22392  grep -v '^ *+' conftest.er1 >conftest.err
22393  rm -f conftest.er1
22394  cat conftest.err >&5
22395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396  (exit $ac_status); } && {
22397	 test -z "$ac_c_werror_flag" ||
22398	 test ! -s conftest.err
22399       } && test -s conftest$ac_exeext &&
22400       $as_test_x conftest$ac_exeext; then
22401  eval "$as_ac_var=yes"
22402else
22403  echo "$as_me: failed program was:" >&5
22404sed 's/^/| /' conftest.$ac_ext >&5
22405
22406	eval "$as_ac_var=no"
22407fi
22408
22409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22410      conftest$ac_exeext conftest.$ac_ext
22411fi
22412ac_res=`eval echo '${'$as_ac_var'}'`
22413	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22414echo "${ECHO_T}$ac_res" >&6; }
22415if test `eval echo '${'$as_ac_var'}'` = yes; then
22416  cat >>confdefs.h <<_ACEOF
22417#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22418_ACEOF
22419
22420{ echo "$as_me:$LINENO: checking for _doprnt" >&5
22421echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
22422if test "${ac_cv_func__doprnt+set}" = set; then
22423  echo $ECHO_N "(cached) $ECHO_C" >&6
22424else
22425  cat >conftest.$ac_ext <<_ACEOF
22426/* confdefs.h.  */
22427_ACEOF
22428cat confdefs.h >>conftest.$ac_ext
22429cat >>conftest.$ac_ext <<_ACEOF
22430/* end confdefs.h.  */
22431/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
22432   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22433#define _doprnt innocuous__doprnt
22434
22435/* System header to define __stub macros and hopefully few prototypes,
22436    which can conflict with char _doprnt (); below.
22437    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22438    <limits.h> exists even on freestanding compilers.  */
22439
22440#ifdef __STDC__
22441# include <limits.h>
22442#else
22443# include <assert.h>
22444#endif
22445
22446#undef _doprnt
22447
22448/* Override any GCC internal prototype to avoid an error.
22449   Use char because int might match the return type of a GCC
22450   builtin and then its argument prototype would still apply.  */
22451#ifdef __cplusplus
22452extern "C"
22453#endif
22454char _doprnt ();
22455/* The GNU C library defines this for functions which it implements
22456    to always fail with ENOSYS.  Some functions are actually named
22457    something starting with __ and the normal name is an alias.  */
22458#if defined __stub__doprnt || defined __stub____doprnt
22459choke me
22460#endif
22461
22462int
22463main ()
22464{
22465return _doprnt ();
22466  ;
22467  return 0;
22468}
22469_ACEOF
22470rm -f conftest.$ac_objext conftest$ac_exeext
22471if { (ac_try="$ac_link"
22472case "(($ac_try" in
22473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22474  *) ac_try_echo=$ac_try;;
22475esac
22476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22477  (eval "$ac_link") 2>conftest.er1
22478  ac_status=$?
22479  grep -v '^ *+' conftest.er1 >conftest.err
22480  rm -f conftest.er1
22481  cat conftest.err >&5
22482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483  (exit $ac_status); } && {
22484	 test -z "$ac_c_werror_flag" ||
22485	 test ! -s conftest.err
22486       } && test -s conftest$ac_exeext &&
22487       $as_test_x conftest$ac_exeext; then
22488  ac_cv_func__doprnt=yes
22489else
22490  echo "$as_me: failed program was:" >&5
22491sed 's/^/| /' conftest.$ac_ext >&5
22492
22493	ac_cv_func__doprnt=no
22494fi
22495
22496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22497      conftest$ac_exeext conftest.$ac_ext
22498fi
22499{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
22500echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
22501if test $ac_cv_func__doprnt = yes; then
22502
22503cat >>confdefs.h <<\_ACEOF
22504#define HAVE_DOPRNT 1
22505_ACEOF
22506
22507fi
22508
22509fi
22510done
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539for ac_func in  \
22540	atexit basename daemon dup2 fdatasync ffs getopt_long hasmntopt \
22541	mbsinit memmove memset realpath regcomp setlocale setxattr \
22542	strcasecmp strchr strdup strerror strnlen strsep strtol strtoul \
22543	sysconf utime fork \
22544
22545do
22546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22547{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22549if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22550  echo $ECHO_N "(cached) $ECHO_C" >&6
22551else
22552  cat >conftest.$ac_ext <<_ACEOF
22553/* confdefs.h.  */
22554_ACEOF
22555cat confdefs.h >>conftest.$ac_ext
22556cat >>conftest.$ac_ext <<_ACEOF
22557/* end confdefs.h.  */
22558/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22559   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22560#define $ac_func innocuous_$ac_func
22561
22562/* System header to define __stub macros and hopefully few prototypes,
22563    which can conflict with char $ac_func (); below.
22564    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22565    <limits.h> exists even on freestanding compilers.  */
22566
22567#ifdef __STDC__
22568# include <limits.h>
22569#else
22570# include <assert.h>
22571#endif
22572
22573#undef $ac_func
22574
22575/* Override any GCC internal prototype to avoid an error.
22576   Use char because int might match the return type of a GCC
22577   builtin and then its argument prototype would still apply.  */
22578#ifdef __cplusplus
22579extern "C"
22580#endif
22581char $ac_func ();
22582/* The GNU C library defines this for functions which it implements
22583    to always fail with ENOSYS.  Some functions are actually named
22584    something starting with __ and the normal name is an alias.  */
22585#if defined __stub_$ac_func || defined __stub___$ac_func
22586choke me
22587#endif
22588
22589int
22590main ()
22591{
22592return $ac_func ();
22593  ;
22594  return 0;
22595}
22596_ACEOF
22597rm -f conftest.$ac_objext conftest$ac_exeext
22598if { (ac_try="$ac_link"
22599case "(($ac_try" in
22600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601  *) ac_try_echo=$ac_try;;
22602esac
22603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604  (eval "$ac_link") 2>conftest.er1
22605  ac_status=$?
22606  grep -v '^ *+' conftest.er1 >conftest.err
22607  rm -f conftest.er1
22608  cat conftest.err >&5
22609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610  (exit $ac_status); } && {
22611	 test -z "$ac_c_werror_flag" ||
22612	 test ! -s conftest.err
22613       } && test -s conftest$ac_exeext &&
22614       $as_test_x conftest$ac_exeext; then
22615  eval "$as_ac_var=yes"
22616else
22617  echo "$as_me: failed program was:" >&5
22618sed 's/^/| /' conftest.$ac_ext >&5
22619
22620	eval "$as_ac_var=no"
22621fi
22622
22623rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22624      conftest$ac_exeext conftest.$ac_ext
22625fi
22626ac_res=`eval echo '${'$as_ac_var'}'`
22627	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22628echo "${ECHO_T}$ac_res" >&6; }
22629if test `eval echo '${'$as_ac_var'}'` = yes; then
22630  cat >>confdefs.h <<_ACEOF
22631#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22632_ACEOF
22633
22634fi
22635done
22636
22637# Check whether --enable-largefile was given.
22638if test "${enable_largefile+set}" = set; then
22639  enableval=$enable_largefile;
22640fi
22641
22642if test "$enable_largefile" != no; then
22643
22644  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
22645echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
22646if test "${ac_cv_sys_largefile_CC+set}" = set; then
22647  echo $ECHO_N "(cached) $ECHO_C" >&6
22648else
22649  ac_cv_sys_largefile_CC=no
22650     if test "$GCC" != yes; then
22651       ac_save_CC=$CC
22652       while :; do
22653	 # IRIX 6.2 and later do not support large files by default,
22654	 # so use the C compiler's -n32 option if that helps.
22655	 cat >conftest.$ac_ext <<_ACEOF
22656/* confdefs.h.  */
22657_ACEOF
22658cat confdefs.h >>conftest.$ac_ext
22659cat >>conftest.$ac_ext <<_ACEOF
22660/* end confdefs.h.  */
22661#include <sys/types.h>
22662 /* Check that off_t can represent 2**63 - 1 correctly.
22663    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22664    since some C++ compilers masquerading as C compilers
22665    incorrectly reject 9223372036854775807.  */
22666#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22667  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22668		       && LARGE_OFF_T % 2147483647 == 1)
22669		      ? 1 : -1];
22670int
22671main ()
22672{
22673
22674  ;
22675  return 0;
22676}
22677_ACEOF
22678	 rm -f conftest.$ac_objext
22679if { (ac_try="$ac_compile"
22680case "(($ac_try" in
22681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682  *) ac_try_echo=$ac_try;;
22683esac
22684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685  (eval "$ac_compile") 2>conftest.er1
22686  ac_status=$?
22687  grep -v '^ *+' conftest.er1 >conftest.err
22688  rm -f conftest.er1
22689  cat conftest.err >&5
22690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691  (exit $ac_status); } && {
22692	 test -z "$ac_c_werror_flag" ||
22693	 test ! -s conftest.err
22694       } && test -s conftest.$ac_objext; then
22695  break
22696else
22697  echo "$as_me: failed program was:" >&5
22698sed 's/^/| /' conftest.$ac_ext >&5
22699
22700
22701fi
22702
22703rm -f core conftest.err conftest.$ac_objext
22704	 CC="$CC -n32"
22705	 rm -f conftest.$ac_objext
22706if { (ac_try="$ac_compile"
22707case "(($ac_try" in
22708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22709  *) ac_try_echo=$ac_try;;
22710esac
22711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22712  (eval "$ac_compile") 2>conftest.er1
22713  ac_status=$?
22714  grep -v '^ *+' conftest.er1 >conftest.err
22715  rm -f conftest.er1
22716  cat conftest.err >&5
22717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718  (exit $ac_status); } && {
22719	 test -z "$ac_c_werror_flag" ||
22720	 test ! -s conftest.err
22721       } && test -s conftest.$ac_objext; then
22722  ac_cv_sys_largefile_CC=' -n32'; break
22723else
22724  echo "$as_me: failed program was:" >&5
22725sed 's/^/| /' conftest.$ac_ext >&5
22726
22727
22728fi
22729
22730rm -f core conftest.err conftest.$ac_objext
22731	 break
22732       done
22733       CC=$ac_save_CC
22734       rm -f conftest.$ac_ext
22735    fi
22736fi
22737{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
22738echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
22739  if test "$ac_cv_sys_largefile_CC" != no; then
22740    CC=$CC$ac_cv_sys_largefile_CC
22741  fi
22742
22743  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22744echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
22745if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22746  echo $ECHO_N "(cached) $ECHO_C" >&6
22747else
22748  while :; do
22749  cat >conftest.$ac_ext <<_ACEOF
22750/* confdefs.h.  */
22751_ACEOF
22752cat confdefs.h >>conftest.$ac_ext
22753cat >>conftest.$ac_ext <<_ACEOF
22754/* end confdefs.h.  */
22755#include <sys/types.h>
22756 /* Check that off_t can represent 2**63 - 1 correctly.
22757    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22758    since some C++ compilers masquerading as C compilers
22759    incorrectly reject 9223372036854775807.  */
22760#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22761  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22762		       && LARGE_OFF_T % 2147483647 == 1)
22763		      ? 1 : -1];
22764int
22765main ()
22766{
22767
22768  ;
22769  return 0;
22770}
22771_ACEOF
22772rm -f conftest.$ac_objext
22773if { (ac_try="$ac_compile"
22774case "(($ac_try" in
22775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22776  *) ac_try_echo=$ac_try;;
22777esac
22778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22779  (eval "$ac_compile") 2>conftest.er1
22780  ac_status=$?
22781  grep -v '^ *+' conftest.er1 >conftest.err
22782  rm -f conftest.er1
22783  cat conftest.err >&5
22784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785  (exit $ac_status); } && {
22786	 test -z "$ac_c_werror_flag" ||
22787	 test ! -s conftest.err
22788       } && test -s conftest.$ac_objext; then
22789  ac_cv_sys_file_offset_bits=no; break
22790else
22791  echo "$as_me: failed program was:" >&5
22792sed 's/^/| /' conftest.$ac_ext >&5
22793
22794
22795fi
22796
22797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22798  cat >conftest.$ac_ext <<_ACEOF
22799/* confdefs.h.  */
22800_ACEOF
22801cat confdefs.h >>conftest.$ac_ext
22802cat >>conftest.$ac_ext <<_ACEOF
22803/* end confdefs.h.  */
22804#define _FILE_OFFSET_BITS 64
22805#include <sys/types.h>
22806 /* Check that off_t can represent 2**63 - 1 correctly.
22807    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22808    since some C++ compilers masquerading as C compilers
22809    incorrectly reject 9223372036854775807.  */
22810#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22811  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22812		       && LARGE_OFF_T % 2147483647 == 1)
22813		      ? 1 : -1];
22814int
22815main ()
22816{
22817
22818  ;
22819  return 0;
22820}
22821_ACEOF
22822rm -f conftest.$ac_objext
22823if { (ac_try="$ac_compile"
22824case "(($ac_try" in
22825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22826  *) ac_try_echo=$ac_try;;
22827esac
22828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22829  (eval "$ac_compile") 2>conftest.er1
22830  ac_status=$?
22831  grep -v '^ *+' conftest.er1 >conftest.err
22832  rm -f conftest.er1
22833  cat conftest.err >&5
22834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835  (exit $ac_status); } && {
22836	 test -z "$ac_c_werror_flag" ||
22837	 test ! -s conftest.err
22838       } && test -s conftest.$ac_objext; then
22839  ac_cv_sys_file_offset_bits=64; break
22840else
22841  echo "$as_me: failed program was:" >&5
22842sed 's/^/| /' conftest.$ac_ext >&5
22843
22844
22845fi
22846
22847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22848  ac_cv_sys_file_offset_bits=unknown
22849  break
22850done
22851fi
22852{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22853echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
22854case $ac_cv_sys_file_offset_bits in #(
22855  no | unknown) ;;
22856  *)
22857cat >>confdefs.h <<_ACEOF
22858#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22859_ACEOF
22860;;
22861esac
22862rm -f conftest*
22863  if test $ac_cv_sys_file_offset_bits = unknown; then
22864    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22865echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
22866if test "${ac_cv_sys_large_files+set}" = set; then
22867  echo $ECHO_N "(cached) $ECHO_C" >&6
22868else
22869  while :; do
22870  cat >conftest.$ac_ext <<_ACEOF
22871/* confdefs.h.  */
22872_ACEOF
22873cat confdefs.h >>conftest.$ac_ext
22874cat >>conftest.$ac_ext <<_ACEOF
22875/* end confdefs.h.  */
22876#include <sys/types.h>
22877 /* Check that off_t can represent 2**63 - 1 correctly.
22878    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22879    since some C++ compilers masquerading as C compilers
22880    incorrectly reject 9223372036854775807.  */
22881#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22882  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22883		       && LARGE_OFF_T % 2147483647 == 1)
22884		      ? 1 : -1];
22885int
22886main ()
22887{
22888
22889  ;
22890  return 0;
22891}
22892_ACEOF
22893rm -f conftest.$ac_objext
22894if { (ac_try="$ac_compile"
22895case "(($ac_try" in
22896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22897  *) ac_try_echo=$ac_try;;
22898esac
22899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22900  (eval "$ac_compile") 2>conftest.er1
22901  ac_status=$?
22902  grep -v '^ *+' conftest.er1 >conftest.err
22903  rm -f conftest.er1
22904  cat conftest.err >&5
22905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906  (exit $ac_status); } && {
22907	 test -z "$ac_c_werror_flag" ||
22908	 test ! -s conftest.err
22909       } && test -s conftest.$ac_objext; then
22910  ac_cv_sys_large_files=no; break
22911else
22912  echo "$as_me: failed program was:" >&5
22913sed 's/^/| /' conftest.$ac_ext >&5
22914
22915
22916fi
22917
22918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22919  cat >conftest.$ac_ext <<_ACEOF
22920/* confdefs.h.  */
22921_ACEOF
22922cat confdefs.h >>conftest.$ac_ext
22923cat >>conftest.$ac_ext <<_ACEOF
22924/* end confdefs.h.  */
22925#define _LARGE_FILES 1
22926#include <sys/types.h>
22927 /* Check that off_t can represent 2**63 - 1 correctly.
22928    We can't simply define LARGE_OFF_T to be 9223372036854775807,
22929    since some C++ compilers masquerading as C compilers
22930    incorrectly reject 9223372036854775807.  */
22931#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22932  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22933		       && LARGE_OFF_T % 2147483647 == 1)
22934		      ? 1 : -1];
22935int
22936main ()
22937{
22938
22939  ;
22940  return 0;
22941}
22942_ACEOF
22943rm -f conftest.$ac_objext
22944if { (ac_try="$ac_compile"
22945case "(($ac_try" in
22946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22947  *) ac_try_echo=$ac_try;;
22948esac
22949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22950  (eval "$ac_compile") 2>conftest.er1
22951  ac_status=$?
22952  grep -v '^ *+' conftest.er1 >conftest.err
22953  rm -f conftest.er1
22954  cat conftest.err >&5
22955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956  (exit $ac_status); } && {
22957	 test -z "$ac_c_werror_flag" ||
22958	 test ! -s conftest.err
22959       } && test -s conftest.$ac_objext; then
22960  ac_cv_sys_large_files=1; break
22961else
22962  echo "$as_me: failed program was:" >&5
22963sed 's/^/| /' conftest.$ac_ext >&5
22964
22965
22966fi
22967
22968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22969  ac_cv_sys_large_files=unknown
22970  break
22971done
22972fi
22973{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22974echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
22975case $ac_cv_sys_large_files in #(
22976  no | unknown) ;;
22977  *)
22978cat >>confdefs.h <<_ACEOF
22979#define _LARGE_FILES $ac_cv_sys_large_files
22980_ACEOF
22981;;
22982esac
22983rm -f conftest*
22984  fi
22985fi
22986
22987
22988if test "$GCC" = "yes" ; then
22989	# We add -Wall to enable some compiler warnings.
22990	CFLAGS="${CFLAGS} -Wall"
22991fi
22992
22993if test "${enable_pedantic}" = "yes"; then
22994	enable_warnings="yes"
22995	CFLAGS="${CFLAGS} -pedantic"
22996fi
22997
22998if test "${enable_warnings}" = "yes"; then
22999	CFLAGS="${CFLAGS} -W -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Winline -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wmultichar -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wformat -Wformat-security"
23000fi
23001
23002if test "${enable_debug}" = "yes"; then
23003	CFLAGS="${CFLAGS} -ggdb3 -DDEBUG"
23004
23005cat >>confdefs.h <<\_ACEOF
23006#define ENABLE_DEBUG 1
23007_ACEOF
23008
23009fi
23010
23011test "${enable_device_default_io_ops}" = "no" &&
23012cat >>confdefs.h <<\_ACEOF
23013#define NO_NTFS_DEVICE_DEFAULT_IO_OPS 1
23014_ACEOF
23015
23016
23017test "${enable_mtab}" = "no" &&
23018cat >>confdefs.h <<\_ACEOF
23019#define IGNORE_MTAB 1
23020_ACEOF
23021
23022
23023test "${enable_really_static}" = "yes" && enable_library="no"
23024test "${enable_library}" = "no" && enable_ldconfig="no"
23025
23026if test "x${DISTCHECK_HACK}" != "x"; then
23027	enable_mount_helper="no"
23028	enable_ldconfig="no"
23029fi
23030
23031# Settings
23032pkgconfigdir="\$(libdir)/pkgconfig"
23033ntfs3gincludedir="\$(includedir)/ntfs-3g"
23034# Executables should be installed to the root filesystem, otherwise
23035# automounting NTFS volumes can fail during boot if the driver binaries
23036# and their dependencies are on an unmounted partition. Use --exec-prefix
23037# to override this.
23038if test "x${exec_prefix}" = "xNONE"; then
23039	rootbindir="/bin"
23040	rootsbindir="/sbin"
23041	rootlibdir="/lib${libdir##*/lib}"
23042else
23043	rootbindir="\$(bindir)"
23044	rootsbindir="\$(sbindir)"
23045	rootlibdir="\$(libdir)"
23046fi
23047
23048
23049
23050
23051
23052
23053
23054
23055
23056
23057if test "${with_fuse}" = "internal"; then
23058  FUSE_INTERNAL_TRUE=
23059  FUSE_INTERNAL_FALSE='#'
23060else
23061  FUSE_INTERNAL_TRUE='#'
23062  FUSE_INTERNAL_FALSE=
23063fi
23064
23065
23066
23067if test "${enable_ldscript}" = "yes"; then
23068  GENERATE_LDSCRIPT_TRUE=
23069  GENERATE_LDSCRIPT_FALSE='#'
23070else
23071  GENERATE_LDSCRIPT_TRUE='#'
23072  GENERATE_LDSCRIPT_FALSE=
23073fi
23074
23075
23076
23077if test "${WINDOWS}" = "yes"; then
23078  WINDOWS_TRUE=
23079  WINDOWS_FALSE='#'
23080else
23081  WINDOWS_TRUE='#'
23082  WINDOWS_FALSE=
23083fi
23084
23085
23086
23087if test "${enable_device_default_io_ops}" = "yes"; then
23088  NTFS_DEVICE_DEFAULT_IO_OPS_TRUE=
23089  NTFS_DEVICE_DEFAULT_IO_OPS_FALSE='#'
23090else
23091  NTFS_DEVICE_DEFAULT_IO_OPS_TRUE='#'
23092  NTFS_DEVICE_DEFAULT_IO_OPS_FALSE=
23093fi
23094
23095
23096
23097if test "${enable_ldconfig}" = "yes"; then
23098  RUN_LDCONFIG_TRUE=
23099  RUN_LDCONFIG_FALSE='#'
23100else
23101  RUN_LDCONFIG_TRUE='#'
23102  RUN_LDCONFIG_FALSE=
23103fi
23104
23105
23106
23107if test "${enable_really_static}" = "yes"; then
23108  REALLYSTATIC_TRUE=
23109  REALLYSTATIC_FALSE='#'
23110else
23111  REALLYSTATIC_TRUE='#'
23112  REALLYSTATIC_FALSE=
23113fi
23114
23115
23116
23117if test "${enable_library}" = "yes"; then
23118  INSTALL_LIBRARY_TRUE=
23119  INSTALL_LIBRARY_FALSE='#'
23120else
23121  INSTALL_LIBRARY_TRUE='#'
23122  INSTALL_LIBRARY_FALSE=
23123fi
23124
23125
23126
23127if test "${enable_mount_helper}" = "yes"; then
23128  ENABLE_MOUNT_HELPER_TRUE=
23129  ENABLE_MOUNT_HELPER_FALSE='#'
23130else
23131  ENABLE_MOUNT_HELPER_TRUE='#'
23132  ENABLE_MOUNT_HELPER_FALSE=
23133fi
23134
23135
23136# workaround for <autoconf-2.60
23137if test -z "${docdir}"; then
23138	docdir="\$(datarootdir)/doc/\$(PACKAGE_NAME)"
23139
23140fi
23141# workaround for <automake-1.10
23142if test -z "${MKDIR_P}"; then
23143	MKDIR_P="\$(mkdir_p)"
23144
23145fi
23146
23147# generate files
23148ac_config_files="$ac_config_files Makefile include/Makefile include/fuse-lite/Makefile include/ntfs-3g/Makefile libfuse-lite/Makefile libntfs-3g/Makefile libntfs-3g/libntfs-3g.pc libntfs-3g/libntfs-3g.script.so src/Makefile src/ntfs-3g.8 src/ntfs-3g.probe.8"
23149
23150cat >confcache <<\_ACEOF
23151# This file is a shell script that caches the results of configure
23152# tests run on this system so they can be shared between configure
23153# scripts and configure runs, see configure's option --config-cache.
23154# It is not useful on other systems.  If it contains results you don't
23155# want to keep, you may remove or edit it.
23156#
23157# config.status only pays attention to the cache file if you give it
23158# the --recheck option to rerun configure.
23159#
23160# `ac_cv_env_foo' variables (set or unset) will be overridden when
23161# loading this file, other *unset* `ac_cv_foo' will be assigned the
23162# following values.
23163
23164_ACEOF
23165
23166# The following way of writing the cache mishandles newlines in values,
23167# but we know of no workaround that is simple, portable, and efficient.
23168# So, we kill variables containing newlines.
23169# Ultrix sh set writes to stderr and can't be redirected directly,
23170# and sets the high bit in the cache file unless we assign to the vars.
23171(
23172  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23173    eval ac_val=\$$ac_var
23174    case $ac_val in #(
23175    *${as_nl}*)
23176      case $ac_var in #(
23177      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23178echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23179      esac
23180      case $ac_var in #(
23181      _ | IFS | as_nl) ;; #(
23182      *) $as_unset $ac_var ;;
23183      esac ;;
23184    esac
23185  done
23186
23187  (set) 2>&1 |
23188    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23189    *${as_nl}ac_space=\ *)
23190      # `set' does not quote correctly, so add quotes (double-quote
23191      # substitution turns \\\\ into \\, and sed turns \\ into \).
23192      sed -n \
23193	"s/'/'\\\\''/g;
23194	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23195      ;; #(
23196    *)
23197      # `set' quotes correctly as required by POSIX, so do not add quotes.
23198      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23199      ;;
23200    esac |
23201    sort
23202) |
23203  sed '
23204     /^ac_cv_env_/b end
23205     t clear
23206     :clear
23207     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23208     t end
23209     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23210     :end' >>confcache
23211if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23212  if test -w "$cache_file"; then
23213    test "x$cache_file" != "x/dev/null" &&
23214      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23215echo "$as_me: updating cache $cache_file" >&6;}
23216    cat confcache >$cache_file
23217  else
23218    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23219echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23220  fi
23221fi
23222rm -f confcache
23223
23224test "x$prefix" = xNONE && prefix=$ac_default_prefix
23225# Let make expand exec_prefix.
23226test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23227
23228DEFS=-DHAVE_CONFIG_H
23229
23230ac_libobjs=
23231ac_ltlibobjs=
23232for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23233  # 1. Remove the extension, and $U if already installed.
23234  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23235  ac_i=`echo "$ac_i" | sed "$ac_script"`
23236  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23237  #    will be set to the directory where LIBOBJS objects are built.
23238  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23239  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23240done
23241LIBOBJS=$ac_libobjs
23242
23243LTLIBOBJS=$ac_ltlibobjs
23244
23245
23246if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23247  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23248Usually this means the macro was only invoked conditionally." >&5
23249echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23250Usually this means the macro was only invoked conditionally." >&2;}
23251   { (exit 1); exit 1; }; }
23252fi
23253if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23254  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23255Usually this means the macro was only invoked conditionally." >&5
23256echo "$as_me: error: conditional \"AMDEP\" was never defined.
23257Usually this means the macro was only invoked conditionally." >&2;}
23258   { (exit 1); exit 1; }; }
23259fi
23260if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23261  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23262Usually this means the macro was only invoked conditionally." >&5
23263echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23264Usually this means the macro was only invoked conditionally." >&2;}
23265   { (exit 1); exit 1; }; }
23266fi
23267if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23268  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23269Usually this means the macro was only invoked conditionally." >&5
23270echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23271Usually this means the macro was only invoked conditionally." >&2;}
23272   { (exit 1); exit 1; }; }
23273fi
23274if test -z "${FUSE_INTERNAL_TRUE}" && test -z "${FUSE_INTERNAL_FALSE}"; then
23275  { { echo "$as_me:$LINENO: error: conditional \"FUSE_INTERNAL\" was never defined.
23276Usually this means the macro was only invoked conditionally." >&5
23277echo "$as_me: error: conditional \"FUSE_INTERNAL\" was never defined.
23278Usually this means the macro was only invoked conditionally." >&2;}
23279   { (exit 1); exit 1; }; }
23280fi
23281if test -z "${GENERATE_LDSCRIPT_TRUE}" && test -z "${GENERATE_LDSCRIPT_FALSE}"; then
23282  { { echo "$as_me:$LINENO: error: conditional \"GENERATE_LDSCRIPT\" was never defined.
23283Usually this means the macro was only invoked conditionally." >&5
23284echo "$as_me: error: conditional \"GENERATE_LDSCRIPT\" was never defined.
23285Usually this means the macro was only invoked conditionally." >&2;}
23286   { (exit 1); exit 1; }; }
23287fi
23288if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then
23289  { { echo "$as_me:$LINENO: error: conditional \"WINDOWS\" was never defined.
23290Usually this means the macro was only invoked conditionally." >&5
23291echo "$as_me: error: conditional \"WINDOWS\" was never defined.
23292Usually this means the macro was only invoked conditionally." >&2;}
23293   { (exit 1); exit 1; }; }
23294fi
23295if test -z "${NTFS_DEVICE_DEFAULT_IO_OPS_TRUE}" && test -z "${NTFS_DEVICE_DEFAULT_IO_OPS_FALSE}"; then
23296  { { echo "$as_me:$LINENO: error: conditional \"NTFS_DEVICE_DEFAULT_IO_OPS\" was never defined.
23297Usually this means the macro was only invoked conditionally." >&5
23298echo "$as_me: error: conditional \"NTFS_DEVICE_DEFAULT_IO_OPS\" was never defined.
23299Usually this means the macro was only invoked conditionally." >&2;}
23300   { (exit 1); exit 1; }; }
23301fi
23302if test -z "${RUN_LDCONFIG_TRUE}" && test -z "${RUN_LDCONFIG_FALSE}"; then
23303  { { echo "$as_me:$LINENO: error: conditional \"RUN_LDCONFIG\" was never defined.
23304Usually this means the macro was only invoked conditionally." >&5
23305echo "$as_me: error: conditional \"RUN_LDCONFIG\" was never defined.
23306Usually this means the macro was only invoked conditionally." >&2;}
23307   { (exit 1); exit 1; }; }
23308fi
23309if test -z "${REALLYSTATIC_TRUE}" && test -z "${REALLYSTATIC_FALSE}"; then
23310  { { echo "$as_me:$LINENO: error: conditional \"REALLYSTATIC\" was never defined.
23311Usually this means the macro was only invoked conditionally." >&5
23312echo "$as_me: error: conditional \"REALLYSTATIC\" was never defined.
23313Usually this means the macro was only invoked conditionally." >&2;}
23314   { (exit 1); exit 1; }; }
23315fi
23316if test -z "${INSTALL_LIBRARY_TRUE}" && test -z "${INSTALL_LIBRARY_FALSE}"; then
23317  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBRARY\" was never defined.
23318Usually this means the macro was only invoked conditionally." >&5
23319echo "$as_me: error: conditional \"INSTALL_LIBRARY\" was never defined.
23320Usually this means the macro was only invoked conditionally." >&2;}
23321   { (exit 1); exit 1; }; }
23322fi
23323if test -z "${ENABLE_MOUNT_HELPER_TRUE}" && test -z "${ENABLE_MOUNT_HELPER_FALSE}"; then
23324  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOUNT_HELPER\" was never defined.
23325Usually this means the macro was only invoked conditionally." >&5
23326echo "$as_me: error: conditional \"ENABLE_MOUNT_HELPER\" was never defined.
23327Usually this means the macro was only invoked conditionally." >&2;}
23328   { (exit 1); exit 1; }; }
23329fi
23330
23331: ${CONFIG_STATUS=./config.status}
23332ac_clean_files_save=$ac_clean_files
23333ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23334{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23335echo "$as_me: creating $CONFIG_STATUS" >&6;}
23336cat >$CONFIG_STATUS <<_ACEOF
23337#! $SHELL
23338# Generated by $as_me.
23339# Run this file to recreate the current configuration.
23340# Compiler output produced by configure, useful for debugging
23341# configure, is in config.log if it exists.
23342
23343debug=false
23344ac_cs_recheck=false
23345ac_cs_silent=false
23346SHELL=\${CONFIG_SHELL-$SHELL}
23347_ACEOF
23348
23349cat >>$CONFIG_STATUS <<\_ACEOF
23350## --------------------- ##
23351## M4sh Initialization.  ##
23352## --------------------- ##
23353
23354# Be more Bourne compatible
23355DUALCASE=1; export DUALCASE # for MKS sh
23356if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23357  emulate sh
23358  NULLCMD=:
23359  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23360  # is contrary to our usage.  Disable this feature.
23361  alias -g '${1+"$@"}'='"$@"'
23362  setopt NO_GLOB_SUBST
23363else
23364  case `(set -o) 2>/dev/null` in
23365  *posix*) set -o posix ;;
23366esac
23367
23368fi
23369
23370
23371
23372
23373# PATH needs CR
23374# Avoid depending upon Character Ranges.
23375as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23376as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23377as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23378as_cr_digits='0123456789'
23379as_cr_alnum=$as_cr_Letters$as_cr_digits
23380
23381# The user is always right.
23382if test "${PATH_SEPARATOR+set}" != set; then
23383  echo "#! /bin/sh" >conf$$.sh
23384  echo  "exit 0"   >>conf$$.sh
23385  chmod +x conf$$.sh
23386  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23387    PATH_SEPARATOR=';'
23388  else
23389    PATH_SEPARATOR=:
23390  fi
23391  rm -f conf$$.sh
23392fi
23393
23394# Support unset when possible.
23395if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23396  as_unset=unset
23397else
23398  as_unset=false
23399fi
23400
23401
23402# IFS
23403# We need space, tab and new line, in precisely that order.  Quoting is
23404# there to prevent editors from complaining about space-tab.
23405# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23406# splitting by setting IFS to empty value.)
23407as_nl='
23408'
23409IFS=" ""	$as_nl"
23410
23411# Find who we are.  Look in the path if we contain no directory separator.
23412case $0 in
23413  *[\\/]* ) as_myself=$0 ;;
23414  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23415for as_dir in $PATH
23416do
23417  IFS=$as_save_IFS
23418  test -z "$as_dir" && as_dir=.
23419  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23420done
23421IFS=$as_save_IFS
23422
23423     ;;
23424esac
23425# We did not find ourselves, most probably we were run as `sh COMMAND'
23426# in which case we are not to be found in the path.
23427if test "x$as_myself" = x; then
23428  as_myself=$0
23429fi
23430if test ! -f "$as_myself"; then
23431  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23432  { (exit 1); exit 1; }
23433fi
23434
23435# Work around bugs in pre-3.0 UWIN ksh.
23436for as_var in ENV MAIL MAILPATH
23437do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23438done
23439PS1='$ '
23440PS2='> '
23441PS4='+ '
23442
23443# NLS nuisances.
23444for as_var in \
23445  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23446  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23447  LC_TELEPHONE LC_TIME
23448do
23449  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23450    eval $as_var=C; export $as_var
23451  else
23452    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23453  fi
23454done
23455
23456# Required to use basename.
23457if expr a : '\(a\)' >/dev/null 2>&1 &&
23458   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23459  as_expr=expr
23460else
23461  as_expr=false
23462fi
23463
23464if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23465  as_basename=basename
23466else
23467  as_basename=false
23468fi
23469
23470
23471# Name of the executable.
23472as_me=`$as_basename -- "$0" ||
23473$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23474	 X"$0" : 'X\(//\)$' \| \
23475	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23476echo X/"$0" |
23477    sed '/^.*\/\([^/][^/]*\)\/*$/{
23478	    s//\1/
23479	    q
23480	  }
23481	  /^X\/\(\/\/\)$/{
23482	    s//\1/
23483	    q
23484	  }
23485	  /^X\/\(\/\).*/{
23486	    s//\1/
23487	    q
23488	  }
23489	  s/.*/./; q'`
23490
23491# CDPATH.
23492$as_unset CDPATH
23493
23494
23495
23496  as_lineno_1=$LINENO
23497  as_lineno_2=$LINENO
23498  test "x$as_lineno_1" != "x$as_lineno_2" &&
23499  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23500
23501  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23502  # uniformly replaced by the line number.  The first 'sed' inserts a
23503  # line-number line after each line using $LINENO; the second 'sed'
23504  # does the real work.  The second script uses 'N' to pair each
23505  # line-number line with the line containing $LINENO, and appends
23506  # trailing '-' during substitution so that $LINENO is not a special
23507  # case at line end.
23508  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23509  # scripts with optimization help from Paolo Bonzini.  Blame Lee
23510  # E. McMahon (1931-1989) for sed's syntax.  :-)
23511  sed -n '
23512    p
23513    /[$]LINENO/=
23514  ' <$as_myself |
23515    sed '
23516      s/[$]LINENO.*/&-/
23517      t lineno
23518      b
23519      :lineno
23520      N
23521      :loop
23522      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23523      t loop
23524      s/-\n.*//
23525    ' >$as_me.lineno &&
23526  chmod +x "$as_me.lineno" ||
23527    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23528   { (exit 1); exit 1; }; }
23529
23530  # Don't try to exec as it changes $[0], causing all sort of problems
23531  # (the dirname of $[0] is not the place where we might find the
23532  # original and so on.  Autoconf is especially sensitive to this).
23533  . "./$as_me.lineno"
23534  # Exit status is that of the last command.
23535  exit
23536}
23537
23538
23539if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23540  as_dirname=dirname
23541else
23542  as_dirname=false
23543fi
23544
23545ECHO_C= ECHO_N= ECHO_T=
23546case `echo -n x` in
23547-n*)
23548  case `echo 'x\c'` in
23549  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23550  *)   ECHO_C='\c';;
23551  esac;;
23552*)
23553  ECHO_N='-n';;
23554esac
23555
23556if expr a : '\(a\)' >/dev/null 2>&1 &&
23557   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23558  as_expr=expr
23559else
23560  as_expr=false
23561fi
23562
23563rm -f conf$$ conf$$.exe conf$$.file
23564if test -d conf$$.dir; then
23565  rm -f conf$$.dir/conf$$.file
23566else
23567  rm -f conf$$.dir
23568  mkdir conf$$.dir
23569fi
23570echo >conf$$.file
23571if ln -s conf$$.file conf$$ 2>/dev/null; then
23572  as_ln_s='ln -s'
23573  # ... but there are two gotchas:
23574  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23575  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23576  # In both cases, we have to default to `cp -p'.
23577  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23578    as_ln_s='cp -p'
23579elif ln conf$$.file conf$$ 2>/dev/null; then
23580  as_ln_s=ln
23581else
23582  as_ln_s='cp -p'
23583fi
23584rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23585rmdir conf$$.dir 2>/dev/null
23586
23587if mkdir -p . 2>/dev/null; then
23588  as_mkdir_p=:
23589else
23590  test -d ./-p && rmdir ./-p
23591  as_mkdir_p=false
23592fi
23593
23594if test -x / >/dev/null 2>&1; then
23595  as_test_x='test -x'
23596else
23597  if ls -dL / >/dev/null 2>&1; then
23598    as_ls_L_option=L
23599  else
23600    as_ls_L_option=
23601  fi
23602  as_test_x='
23603    eval sh -c '\''
23604      if test -d "$1"; then
23605        test -d "$1/.";
23606      else
23607	case $1 in
23608        -*)set "./$1";;
23609	esac;
23610	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23611	???[sx]*):;;*)false;;esac;fi
23612    '\'' sh
23613  '
23614fi
23615as_executable_p=$as_test_x
23616
23617# Sed expression to map a string onto a valid CPP name.
23618as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23619
23620# Sed expression to map a string onto a valid variable name.
23621as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23622
23623
23624exec 6>&1
23625
23626# Save the log message, to keep $[0] and so on meaningful, and to
23627# report actual input values of CONFIG_FILES etc. instead of their
23628# values after options handling.
23629ac_log="
23630This file was extended by ntfs-3g $as_me 2009.3.8, which was
23631generated by GNU Autoconf 2.61.  Invocation command line was
23632
23633  CONFIG_FILES    = $CONFIG_FILES
23634  CONFIG_HEADERS  = $CONFIG_HEADERS
23635  CONFIG_LINKS    = $CONFIG_LINKS
23636  CONFIG_COMMANDS = $CONFIG_COMMANDS
23637  $ $0 $@
23638
23639on `(hostname || uname -n) 2>/dev/null | sed 1q`
23640"
23641
23642_ACEOF
23643
23644cat >>$CONFIG_STATUS <<_ACEOF
23645# Files that config.status was made for.
23646config_files="$ac_config_files"
23647config_headers="$ac_config_headers"
23648config_commands="$ac_config_commands"
23649
23650_ACEOF
23651
23652cat >>$CONFIG_STATUS <<\_ACEOF
23653ac_cs_usage="\
23654\`$as_me' instantiates files from templates according to the
23655current configuration.
23656
23657Usage: $0 [OPTIONS] [FILE]...
23658
23659  -h, --help       print this help, then exit
23660  -V, --version    print version number and configuration settings, then exit
23661  -q, --quiet      do not print progress messages
23662  -d, --debug      don't remove temporary files
23663      --recheck    update $as_me by reconfiguring in the same conditions
23664  --file=FILE[:TEMPLATE]
23665		   instantiate the configuration file FILE
23666  --header=FILE[:TEMPLATE]
23667		   instantiate the configuration header FILE
23668
23669Configuration files:
23670$config_files
23671
23672Configuration headers:
23673$config_headers
23674
23675Configuration commands:
23676$config_commands
23677
23678Report bugs to <bug-autoconf@gnu.org>."
23679
23680_ACEOF
23681cat >>$CONFIG_STATUS <<_ACEOF
23682ac_cs_version="\\
23683ntfs-3g config.status 2009.3.8
23684configured by $0, generated by GNU Autoconf 2.61,
23685  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23686
23687Copyright (C) 2006 Free Software Foundation, Inc.
23688This config.status script is free software; the Free Software Foundation
23689gives unlimited permission to copy, distribute and modify it."
23690
23691ac_pwd='$ac_pwd'
23692srcdir='$srcdir'
23693INSTALL='$INSTALL'
23694_ACEOF
23695
23696cat >>$CONFIG_STATUS <<\_ACEOF
23697# If no file are specified by the user, then we need to provide default
23698# value.  By we need to know if files were specified by the user.
23699ac_need_defaults=:
23700while test $# != 0
23701do
23702  case $1 in
23703  --*=*)
23704    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23705    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23706    ac_shift=:
23707    ;;
23708  *)
23709    ac_option=$1
23710    ac_optarg=$2
23711    ac_shift=shift
23712    ;;
23713  esac
23714
23715  case $ac_option in
23716  # Handling of the options.
23717  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23718    ac_cs_recheck=: ;;
23719  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23720    echo "$ac_cs_version"; exit ;;
23721  --debug | --debu | --deb | --de | --d | -d )
23722    debug=: ;;
23723  --file | --fil | --fi | --f )
23724    $ac_shift
23725    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23726    ac_need_defaults=false;;
23727  --header | --heade | --head | --hea )
23728    $ac_shift
23729    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23730    ac_need_defaults=false;;
23731  --he | --h)
23732    # Conflict between --help and --header
23733    { echo "$as_me: error: ambiguous option: $1
23734Try \`$0 --help' for more information." >&2
23735   { (exit 1); exit 1; }; };;
23736  --help | --hel | -h )
23737    echo "$ac_cs_usage"; exit ;;
23738  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23739  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23740    ac_cs_silent=: ;;
23741
23742  # This is an error.
23743  -*) { echo "$as_me: error: unrecognized option: $1
23744Try \`$0 --help' for more information." >&2
23745   { (exit 1); exit 1; }; } ;;
23746
23747  *) ac_config_targets="$ac_config_targets $1"
23748     ac_need_defaults=false ;;
23749
23750  esac
23751  shift
23752done
23753
23754ac_configure_extra_args=
23755
23756if $ac_cs_silent; then
23757  exec 6>/dev/null
23758  ac_configure_extra_args="$ac_configure_extra_args --silent"
23759fi
23760
23761_ACEOF
23762cat >>$CONFIG_STATUS <<_ACEOF
23763if \$ac_cs_recheck; then
23764  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23765  CONFIG_SHELL=$SHELL
23766  export CONFIG_SHELL
23767  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23768fi
23769
23770_ACEOF
23771cat >>$CONFIG_STATUS <<\_ACEOF
23772exec 5>>config.log
23773{
23774  echo
23775  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23776## Running $as_me. ##
23777_ASBOX
23778  echo "$ac_log"
23779} >&5
23780
23781_ACEOF
23782cat >>$CONFIG_STATUS <<_ACEOF
23783#
23784# INIT-COMMANDS
23785#
23786AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23787
23788_ACEOF
23789
23790cat >>$CONFIG_STATUS <<\_ACEOF
23791
23792# Handling of arguments.
23793for ac_config_target in $ac_config_targets
23794do
23795  case $ac_config_target in
23796    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23797    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23798    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23799    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
23800    "include/fuse-lite/Makefile") CONFIG_FILES="$CONFIG_FILES include/fuse-lite/Makefile" ;;
23801    "include/ntfs-3g/Makefile") CONFIG_FILES="$CONFIG_FILES include/ntfs-3g/Makefile" ;;
23802    "libfuse-lite/Makefile") CONFIG_FILES="$CONFIG_FILES libfuse-lite/Makefile" ;;
23803    "libntfs-3g/Makefile") CONFIG_FILES="$CONFIG_FILES libntfs-3g/Makefile" ;;
23804    "libntfs-3g/libntfs-3g.pc") CONFIG_FILES="$CONFIG_FILES libntfs-3g/libntfs-3g.pc" ;;
23805    "libntfs-3g/libntfs-3g.script.so") CONFIG_FILES="$CONFIG_FILES libntfs-3g/libntfs-3g.script.so" ;;
23806    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23807    "src/ntfs-3g.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.8" ;;
23808    "src/ntfs-3g.probe.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.probe.8" ;;
23809
23810  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23811echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23812   { (exit 1); exit 1; }; };;
23813  esac
23814done
23815
23816
23817# If the user did not use the arguments to specify the items to instantiate,
23818# then the envvar interface is used.  Set only those that are not.
23819# We use the long form for the default assignment because of an extremely
23820# bizarre bug on SunOS 4.1.3.
23821if $ac_need_defaults; then
23822  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23823  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23824  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23825fi
23826
23827# Have a temporary directory for convenience.  Make it in the build tree
23828# simply because there is no reason against having it here, and in addition,
23829# creating and moving files from /tmp can sometimes cause problems.
23830# Hook for its removal unless debugging.
23831# Note that there is a small window in which the directory will not be cleaned:
23832# after its creation but before its name has been assigned to `$tmp'.
23833$debug ||
23834{
23835  tmp=
23836  trap 'exit_status=$?
23837  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23838' 0
23839  trap '{ (exit 1); exit 1; }' 1 2 13 15
23840}
23841# Create a (secure) tmp directory for tmp files.
23842
23843{
23844  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23845  test -n "$tmp" && test -d "$tmp"
23846}  ||
23847{
23848  tmp=./conf$$-$RANDOM
23849  (umask 077 && mkdir "$tmp")
23850} ||
23851{
23852   echo "$me: cannot create a temporary directory in ." >&2
23853   { (exit 1); exit 1; }
23854}
23855
23856#
23857# Set up the sed scripts for CONFIG_FILES section.
23858#
23859
23860# No need to generate the scripts if there are no CONFIG_FILES.
23861# This happens for instance when ./config.status config.h
23862if test -n "$CONFIG_FILES"; then
23863
23864_ACEOF
23865
23866
23867
23868ac_delim='%!_!# '
23869for ac_last_try in false false false false false :; do
23870  cat >conf$$subs.sed <<_ACEOF
23871SHELL!$SHELL$ac_delim
23872PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23873PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23874PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23875PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23876PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23877PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23878exec_prefix!$exec_prefix$ac_delim
23879prefix!$prefix$ac_delim
23880program_transform_name!$program_transform_name$ac_delim
23881bindir!$bindir$ac_delim
23882sbindir!$sbindir$ac_delim
23883libexecdir!$libexecdir$ac_delim
23884datarootdir!$datarootdir$ac_delim
23885datadir!$datadir$ac_delim
23886sysconfdir!$sysconfdir$ac_delim
23887sharedstatedir!$sharedstatedir$ac_delim
23888localstatedir!$localstatedir$ac_delim
23889includedir!$includedir$ac_delim
23890oldincludedir!$oldincludedir$ac_delim
23891docdir!$docdir$ac_delim
23892infodir!$infodir$ac_delim
23893htmldir!$htmldir$ac_delim
23894dvidir!$dvidir$ac_delim
23895pdfdir!$pdfdir$ac_delim
23896psdir!$psdir$ac_delim
23897libdir!$libdir$ac_delim
23898localedir!$localedir$ac_delim
23899mandir!$mandir$ac_delim
23900DEFS!$DEFS$ac_delim
23901ECHO_C!$ECHO_C$ac_delim
23902ECHO_N!$ECHO_N$ac_delim
23903ECHO_T!$ECHO_T$ac_delim
23904LIBS!$LIBS$ac_delim
23905build_alias!$build_alias$ac_delim
23906host_alias!$host_alias$ac_delim
23907target_alias!$target_alias$ac_delim
23908build!$build$ac_delim
23909build_cpu!$build_cpu$ac_delim
23910build_vendor!$build_vendor$ac_delim
23911build_os!$build_os$ac_delim
23912host!$host$ac_delim
23913host_cpu!$host_cpu$ac_delim
23914host_vendor!$host_vendor$ac_delim
23915host_os!$host_os$ac_delim
23916target!$target$ac_delim
23917target_cpu!$target_cpu$ac_delim
23918target_vendor!$target_vendor$ac_delim
23919target_os!$target_os$ac_delim
23920INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23921INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23922INSTALL_DATA!$INSTALL_DATA$ac_delim
23923CYGPATH_W!$CYGPATH_W$ac_delim
23924PACKAGE!$PACKAGE$ac_delim
23925VERSION!$VERSION$ac_delim
23926ACLOCAL!$ACLOCAL$ac_delim
23927AUTOCONF!$AUTOCONF$ac_delim
23928AUTOMAKE!$AUTOMAKE$ac_delim
23929AUTOHEADER!$AUTOHEADER$ac_delim
23930MAKEINFO!$MAKEINFO$ac_delim
23931install_sh!$install_sh$ac_delim
23932STRIP!$STRIP$ac_delim
23933INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23934mkdir_p!$mkdir_p$ac_delim
23935AWK!$AWK$ac_delim
23936SET_MAKE!$SET_MAKE$ac_delim
23937am__leading_dot!$am__leading_dot$ac_delim
23938AMTAR!$AMTAR$ac_delim
23939am__tar!$am__tar$ac_delim
23940am__untar!$am__untar$ac_delim
23941MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23942MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23943MAINT!$MAINT$ac_delim
23944CC!$CC$ac_delim
23945CFLAGS!$CFLAGS$ac_delim
23946LDFLAGS!$LDFLAGS$ac_delim
23947CPPFLAGS!$CPPFLAGS$ac_delim
23948ac_ct_CC!$ac_ct_CC$ac_delim
23949EXEEXT!$EXEEXT$ac_delim
23950OBJEXT!$OBJEXT$ac_delim
23951DEPDIR!$DEPDIR$ac_delim
23952am__include!$am__include$ac_delim
23953am__quote!$am__quote$ac_delim
23954AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23955AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23956AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23957CCDEPMODE!$CCDEPMODE$ac_delim
23958am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23959am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23960LN_S!$LN_S$ac_delim
23961GREP!$GREP$ac_delim
23962EGREP!$EGREP$ac_delim
23963ECHO!$ECHO$ac_delim
23964AR!$AR$ac_delim
23965RANLIB!$RANLIB$ac_delim
23966CPP!$CPP$ac_delim
23967CXX!$CXX$ac_delim
23968_ACEOF
23969
23970  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23971    break
23972  elif $ac_last_try; then
23973    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23974echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23975   { (exit 1); exit 1; }; }
23976  else
23977    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23978  fi
23979done
23980
23981ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23982if test -n "$ac_eof"; then
23983  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23984  ac_eof=`expr $ac_eof + 1`
23985fi
23986
23987cat >>$CONFIG_STATUS <<_ACEOF
23988cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23989/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23990_ACEOF
23991sed '
23992s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23993s/^/s,@/; s/!/@,|#_!!_#|/
23994:n
23995t n
23996s/'"$ac_delim"'$/,g/; t
23997s/$/\\/; p
23998N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23999' >>$CONFIG_STATUS <conf$$subs.sed
24000rm -f conf$$subs.sed
24001cat >>$CONFIG_STATUS <<_ACEOF
24002CEOF$ac_eof
24003_ACEOF
24004
24005
24006ac_delim='%!_!# '
24007for ac_last_try in false false false false false :; do
24008  cat >conf$$subs.sed <<_ACEOF
24009CXXFLAGS!$CXXFLAGS$ac_delim
24010ac_ct_CXX!$ac_ct_CXX$ac_delim
24011CXXDEPMODE!$CXXDEPMODE$ac_delim
24012am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24013am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24014CXXCPP!$CXXCPP$ac_delim
24015F77!$F77$ac_delim
24016FFLAGS!$FFLAGS$ac_delim
24017ac_ct_F77!$ac_ct_F77$ac_delim
24018LIBTOOL!$LIBTOOL$ac_delim
24019MV!$MV$ac_delim
24020RM!$RM$ac_delim
24021SED!$SED$ac_delim
24022LDCONFIG!$LDCONFIG$ac_delim
24023PKG_CONFIG!$PKG_CONFIG$ac_delim
24024FUSE_MODULE_CFLAGS!$FUSE_MODULE_CFLAGS$ac_delim
24025FUSE_MODULE_LIBS!$FUSE_MODULE_LIBS$ac_delim
24026LIBOBJS!$LIBOBJS$ac_delim
24027pkgconfigdir!$pkgconfigdir$ac_delim
24028ntfs3gincludedir!$ntfs3gincludedir$ac_delim
24029rootbindir!$rootbindir$ac_delim
24030rootsbindir!$rootsbindir$ac_delim
24031rootlibdir!$rootlibdir$ac_delim
24032LIBNTFS_3G_VERSION!$LIBNTFS_3G_VERSION$ac_delim
24033LIBFUSE_LITE_LIBS!$LIBFUSE_LITE_LIBS$ac_delim
24034OUTPUT_FORMAT!$OUTPUT_FORMAT$ac_delim
24035FUSE_INTERNAL_TRUE!$FUSE_INTERNAL_TRUE$ac_delim
24036FUSE_INTERNAL_FALSE!$FUSE_INTERNAL_FALSE$ac_delim
24037GENERATE_LDSCRIPT_TRUE!$GENERATE_LDSCRIPT_TRUE$ac_delim
24038GENERATE_LDSCRIPT_FALSE!$GENERATE_LDSCRIPT_FALSE$ac_delim
24039WINDOWS_TRUE!$WINDOWS_TRUE$ac_delim
24040WINDOWS_FALSE!$WINDOWS_FALSE$ac_delim
24041NTFS_DEVICE_DEFAULT_IO_OPS_TRUE!$NTFS_DEVICE_DEFAULT_IO_OPS_TRUE$ac_delim
24042NTFS_DEVICE_DEFAULT_IO_OPS_FALSE!$NTFS_DEVICE_DEFAULT_IO_OPS_FALSE$ac_delim
24043RUN_LDCONFIG_TRUE!$RUN_LDCONFIG_TRUE$ac_delim
24044RUN_LDCONFIG_FALSE!$RUN_LDCONFIG_FALSE$ac_delim
24045REALLYSTATIC_TRUE!$REALLYSTATIC_TRUE$ac_delim
24046REALLYSTATIC_FALSE!$REALLYSTATIC_FALSE$ac_delim
24047INSTALL_LIBRARY_TRUE!$INSTALL_LIBRARY_TRUE$ac_delim
24048INSTALL_LIBRARY_FALSE!$INSTALL_LIBRARY_FALSE$ac_delim
24049ENABLE_MOUNT_HELPER_TRUE!$ENABLE_MOUNT_HELPER_TRUE$ac_delim
24050ENABLE_MOUNT_HELPER_FALSE!$ENABLE_MOUNT_HELPER_FALSE$ac_delim
24051MKDIR_P!$MKDIR_P$ac_delim
24052LTLIBOBJS!$LTLIBOBJS$ac_delim
24053_ACEOF
24054
24055  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 44; then
24056    break
24057  elif $ac_last_try; then
24058    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24059echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24060   { (exit 1); exit 1; }; }
24061  else
24062    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24063  fi
24064done
24065
24066ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24067if test -n "$ac_eof"; then
24068  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24069  ac_eof=`expr $ac_eof + 1`
24070fi
24071
24072cat >>$CONFIG_STATUS <<_ACEOF
24073cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24074/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24075_ACEOF
24076sed '
24077s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24078s/^/s,@/; s/!/@,|#_!!_#|/
24079:n
24080t n
24081s/'"$ac_delim"'$/,g/; t
24082s/$/\\/; p
24083N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24084' >>$CONFIG_STATUS <conf$$subs.sed
24085rm -f conf$$subs.sed
24086cat >>$CONFIG_STATUS <<_ACEOF
24087:end
24088s/|#_!!_#|//g
24089CEOF$ac_eof
24090_ACEOF
24091
24092
24093# VPATH may cause trouble with some makes, so we remove $(srcdir),
24094# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24095# trailing colons and then remove the whole line if VPATH becomes empty
24096# (actually we leave an empty line to preserve line numbers).
24097if test "x$srcdir" = x.; then
24098  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
24099s/:*\$(srcdir):*/:/
24100s/:*\${srcdir}:*/:/
24101s/:*@srcdir@:*/:/
24102s/^\([^=]*=[	 ]*\):*/\1/
24103s/:*$//
24104s/^[^=]*=[	 ]*$//
24105}'
24106fi
24107
24108cat >>$CONFIG_STATUS <<\_ACEOF
24109fi # test -n "$CONFIG_FILES"
24110
24111
24112for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24113do
24114  case $ac_tag in
24115  :[FHLC]) ac_mode=$ac_tag; continue;;
24116  esac
24117  case $ac_mode$ac_tag in
24118  :[FHL]*:*);;
24119  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24120echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24121   { (exit 1); exit 1; }; };;
24122  :[FH]-) ac_tag=-:-;;
24123  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24124  esac
24125  ac_save_IFS=$IFS
24126  IFS=:
24127  set x $ac_tag
24128  IFS=$ac_save_IFS
24129  shift
24130  ac_file=$1
24131  shift
24132
24133  case $ac_mode in
24134  :L) ac_source=$1;;
24135  :[FH])
24136    ac_file_inputs=
24137    for ac_f
24138    do
24139      case $ac_f in
24140      -) ac_f="$tmp/stdin";;
24141      *) # Look for the file first in the build tree, then in the source tree
24142	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
24143	 # because $ac_f cannot contain `:'.
24144	 test -f "$ac_f" ||
24145	   case $ac_f in
24146	   [\\/$]*) false;;
24147	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24148	   esac ||
24149	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24150echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24151   { (exit 1); exit 1; }; };;
24152      esac
24153      ac_file_inputs="$ac_file_inputs $ac_f"
24154    done
24155
24156    # Let's still pretend it is `configure' which instantiates (i.e., don't
24157    # use $as_me), people would be surprised to read:
24158    #    /* config.h.  Generated by config.status.  */
24159    configure_input="Generated from "`IFS=:
24160	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24161    if test x"$ac_file" != x-; then
24162      configure_input="$ac_file.  $configure_input"
24163      { echo "$as_me:$LINENO: creating $ac_file" >&5
24164echo "$as_me: creating $ac_file" >&6;}
24165    fi
24166
24167    case $ac_tag in
24168    *:-:* | *:-) cat >"$tmp/stdin";;
24169    esac
24170    ;;
24171  esac
24172
24173  ac_dir=`$as_dirname -- "$ac_file" ||
24174$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24175	 X"$ac_file" : 'X\(//\)[^/]' \| \
24176	 X"$ac_file" : 'X\(//\)$' \| \
24177	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24178echo X"$ac_file" |
24179    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24180	    s//\1/
24181	    q
24182	  }
24183	  /^X\(\/\/\)[^/].*/{
24184	    s//\1/
24185	    q
24186	  }
24187	  /^X\(\/\/\)$/{
24188	    s//\1/
24189	    q
24190	  }
24191	  /^X\(\/\).*/{
24192	    s//\1/
24193	    q
24194	  }
24195	  s/.*/./; q'`
24196  { as_dir="$ac_dir"
24197  case $as_dir in #(
24198  -*) as_dir=./$as_dir;;
24199  esac
24200  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24201    as_dirs=
24202    while :; do
24203      case $as_dir in #(
24204      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24205      *) as_qdir=$as_dir;;
24206      esac
24207      as_dirs="'$as_qdir' $as_dirs"
24208      as_dir=`$as_dirname -- "$as_dir" ||
24209$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24210	 X"$as_dir" : 'X\(//\)[^/]' \| \
24211	 X"$as_dir" : 'X\(//\)$' \| \
24212	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24213echo X"$as_dir" |
24214    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24215	    s//\1/
24216	    q
24217	  }
24218	  /^X\(\/\/\)[^/].*/{
24219	    s//\1/
24220	    q
24221	  }
24222	  /^X\(\/\/\)$/{
24223	    s//\1/
24224	    q
24225	  }
24226	  /^X\(\/\).*/{
24227	    s//\1/
24228	    q
24229	  }
24230	  s/.*/./; q'`
24231      test -d "$as_dir" && break
24232    done
24233    test -z "$as_dirs" || eval "mkdir $as_dirs"
24234  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24235echo "$as_me: error: cannot create directory $as_dir" >&2;}
24236   { (exit 1); exit 1; }; }; }
24237  ac_builddir=.
24238
24239case "$ac_dir" in
24240.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24241*)
24242  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24243  # A ".." for each directory in $ac_dir_suffix.
24244  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24245  case $ac_top_builddir_sub in
24246  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24247  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24248  esac ;;
24249esac
24250ac_abs_top_builddir=$ac_pwd
24251ac_abs_builddir=$ac_pwd$ac_dir_suffix
24252# for backward compatibility:
24253ac_top_builddir=$ac_top_build_prefix
24254
24255case $srcdir in
24256  .)  # We are building in place.
24257    ac_srcdir=.
24258    ac_top_srcdir=$ac_top_builddir_sub
24259    ac_abs_top_srcdir=$ac_pwd ;;
24260  [\\/]* | ?:[\\/]* )  # Absolute name.
24261    ac_srcdir=$srcdir$ac_dir_suffix;
24262    ac_top_srcdir=$srcdir
24263    ac_abs_top_srcdir=$srcdir ;;
24264  *) # Relative name.
24265    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24266    ac_top_srcdir=$ac_top_build_prefix$srcdir
24267    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24268esac
24269ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24270
24271
24272  case $ac_mode in
24273  :F)
24274  #
24275  # CONFIG_FILE
24276  #
24277
24278  case $INSTALL in
24279  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24280  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24281  esac
24282_ACEOF
24283
24284cat >>$CONFIG_STATUS <<\_ACEOF
24285# If the template does not know about datarootdir, expand it.
24286# FIXME: This hack should be removed a few years after 2.60.
24287ac_datarootdir_hack=; ac_datarootdir_seen=
24288
24289case `sed -n '/datarootdir/ {
24290  p
24291  q
24292}
24293/@datadir@/p
24294/@docdir@/p
24295/@infodir@/p
24296/@localedir@/p
24297/@mandir@/p
24298' $ac_file_inputs` in
24299*datarootdir*) ac_datarootdir_seen=yes;;
24300*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24301  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24302echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24303_ACEOF
24304cat >>$CONFIG_STATUS <<_ACEOF
24305  ac_datarootdir_hack='
24306  s&@datadir@&$datadir&g
24307  s&@docdir@&$docdir&g
24308  s&@infodir@&$infodir&g
24309  s&@localedir@&$localedir&g
24310  s&@mandir@&$mandir&g
24311    s&\\\${datarootdir}&$datarootdir&g' ;;
24312esac
24313_ACEOF
24314
24315# Neutralize VPATH when `$srcdir' = `.'.
24316# Shell code in configure.ac might set extrasub.
24317# FIXME: do we really want to maintain this feature?
24318cat >>$CONFIG_STATUS <<_ACEOF
24319  sed "$ac_vpsub
24320$extrasub
24321_ACEOF
24322cat >>$CONFIG_STATUS <<\_ACEOF
24323:t
24324/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24325s&@configure_input@&$configure_input&;t t
24326s&@top_builddir@&$ac_top_builddir_sub&;t t
24327s&@srcdir@&$ac_srcdir&;t t
24328s&@abs_srcdir@&$ac_abs_srcdir&;t t
24329s&@top_srcdir@&$ac_top_srcdir&;t t
24330s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24331s&@builddir@&$ac_builddir&;t t
24332s&@abs_builddir@&$ac_abs_builddir&;t t
24333s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24334s&@INSTALL@&$ac_INSTALL&;t t
24335$ac_datarootdir_hack
24336" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24337
24338test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24339  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24340  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24341  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24342which seems to be undefined.  Please make sure it is defined." >&5
24343echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24344which seems to be undefined.  Please make sure it is defined." >&2;}
24345
24346  rm -f "$tmp/stdin"
24347  case $ac_file in
24348  -) cat "$tmp/out"; rm -f "$tmp/out";;
24349  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24350  esac
24351 ;;
24352  :H)
24353  #
24354  # CONFIG_HEADER
24355  #
24356_ACEOF
24357
24358# Transform confdefs.h into a sed script `conftest.defines', that
24359# substitutes the proper values into config.h.in to produce config.h.
24360rm -f conftest.defines conftest.tail
24361# First, append a space to every undef/define line, to ease matching.
24362echo 's/$/ /' >conftest.defines
24363# Then, protect against being on the right side of a sed subst, or in
24364# an unquoted here document, in config.status.  If some macros were
24365# called several times there might be several #defines for the same
24366# symbol, which is useless.  But do not sort them, since the last
24367# AC_DEFINE must be honored.
24368ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24369# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24370# NAME is the cpp macro being defined, VALUE is the value it is being given.
24371# PARAMS is the parameter list in the macro definition--in most cases, it's
24372# just an empty string.
24373ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
24374ac_dB='\\)[	 (].*,\\1define\\2'
24375ac_dC=' '
24376ac_dD=' ,'
24377
24378uniq confdefs.h |
24379  sed -n '
24380	t rset
24381	:rset
24382	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
24383	t ok
24384	d
24385	:ok
24386	s/[\\&,]/\\&/g
24387	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24388	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24389  ' >>conftest.defines
24390
24391# Remove the space that was appended to ease matching.
24392# Then replace #undef with comments.  This is necessary, for
24393# example, in the case of _POSIX_SOURCE, which is predefined and required
24394# on some systems where configure will not decide to define it.
24395# (The regexp can be short, since the line contains either #define or #undef.)
24396echo 's/ $//
24397s,^[	 #]*u.*,/* & */,' >>conftest.defines
24398
24399# Break up conftest.defines:
24400ac_max_sed_lines=50
24401
24402# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24403# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24404# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24405# et cetera.
24406ac_in='$ac_file_inputs'
24407ac_out='"$tmp/out1"'
24408ac_nxt='"$tmp/out2"'
24409
24410while :
24411do
24412  # Write a here document:
24413    cat >>$CONFIG_STATUS <<_ACEOF
24414    # First, check the format of the line:
24415    cat >"\$tmp/defines.sed" <<\\CEOF
24416/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
24417/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
24418b
24419:def
24420_ACEOF
24421  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24422  echo 'CEOF
24423    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24424  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24425  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24426  grep . conftest.tail >/dev/null || break
24427  rm -f conftest.defines
24428  mv conftest.tail conftest.defines
24429done
24430rm -f conftest.defines conftest.tail
24431
24432echo "ac_result=$ac_in" >>$CONFIG_STATUS
24433cat >>$CONFIG_STATUS <<\_ACEOF
24434  if test x"$ac_file" != x-; then
24435    echo "/* $configure_input  */" >"$tmp/config.h"
24436    cat "$ac_result" >>"$tmp/config.h"
24437    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24438      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24439echo "$as_me: $ac_file is unchanged" >&6;}
24440    else
24441      rm -f $ac_file
24442      mv "$tmp/config.h" $ac_file
24443    fi
24444  else
24445    echo "/* $configure_input  */"
24446    cat "$ac_result"
24447  fi
24448  rm -f "$tmp/out12"
24449# Compute $ac_file's index in $config_headers.
24450_am_stamp_count=1
24451for _am_header in $config_headers :; do
24452  case $_am_header in
24453    $ac_file | $ac_file:* )
24454      break ;;
24455    * )
24456      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24457  esac
24458done
24459echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24460$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24461	 X$ac_file : 'X\(//\)[^/]' \| \
24462	 X$ac_file : 'X\(//\)$' \| \
24463	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24464echo X$ac_file |
24465    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24466	    s//\1/
24467	    q
24468	  }
24469	  /^X\(\/\/\)[^/].*/{
24470	    s//\1/
24471	    q
24472	  }
24473	  /^X\(\/\/\)$/{
24474	    s//\1/
24475	    q
24476	  }
24477	  /^X\(\/\).*/{
24478	    s//\1/
24479	    q
24480	  }
24481	  s/.*/./; q'`/stamp-h$_am_stamp_count
24482 ;;
24483
24484  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24485echo "$as_me: executing $ac_file commands" >&6;}
24486 ;;
24487  esac
24488
24489
24490  case $ac_file$ac_mode in
24491    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24492  # Strip MF so we end up with the name of the file.
24493  mf=`echo "$mf" | sed -e 's/:.*$//'`
24494  # Check whether this is an Automake generated Makefile or not.
24495  # We used to match only the files named `Makefile.in', but
24496  # some people rename them; so instead we look at the file content.
24497  # Grep'ing the first line is not enough: some people post-process
24498  # each Makefile.in and add a new line on top of each file to say so.
24499  # So let's grep whole file.
24500  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24501    dirpart=`$as_dirname -- "$mf" ||
24502$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24503	 X"$mf" : 'X\(//\)[^/]' \| \
24504	 X"$mf" : 'X\(//\)$' \| \
24505	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24506echo X"$mf" |
24507    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24508	    s//\1/
24509	    q
24510	  }
24511	  /^X\(\/\/\)[^/].*/{
24512	    s//\1/
24513	    q
24514	  }
24515	  /^X\(\/\/\)$/{
24516	    s//\1/
24517	    q
24518	  }
24519	  /^X\(\/\).*/{
24520	    s//\1/
24521	    q
24522	  }
24523	  s/.*/./; q'`
24524  else
24525    continue
24526  fi
24527  # Extract the definition of DEPDIR, am__include, and am__quote
24528  # from the Makefile without running `make'.
24529  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24530  test -z "$DEPDIR" && continue
24531  am__include=`sed -n 's/^am__include = //p' < "$mf"`
24532  test -z "am__include" && continue
24533  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24534  # When using ansi2knr, U may be empty or an underscore; expand it
24535  U=`sed -n 's/^U = //p' < "$mf"`
24536  # Find all dependency output files, they are included files with
24537  # $(DEPDIR) in their names.  We invoke sed twice because it is the
24538  # simplest approach to changing $(DEPDIR) to its actual value in the
24539  # expansion.
24540  for file in `sed -n "
24541    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24542       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24543    # Make sure the directory exists.
24544    test -f "$dirpart/$file" && continue
24545    fdir=`$as_dirname -- "$file" ||
24546$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24547	 X"$file" : 'X\(//\)[^/]' \| \
24548	 X"$file" : 'X\(//\)$' \| \
24549	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24550echo X"$file" |
24551    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24552	    s//\1/
24553	    q
24554	  }
24555	  /^X\(\/\/\)[^/].*/{
24556	    s//\1/
24557	    q
24558	  }
24559	  /^X\(\/\/\)$/{
24560	    s//\1/
24561	    q
24562	  }
24563	  /^X\(\/\).*/{
24564	    s//\1/
24565	    q
24566	  }
24567	  s/.*/./; q'`
24568    { as_dir=$dirpart/$fdir
24569  case $as_dir in #(
24570  -*) as_dir=./$as_dir;;
24571  esac
24572  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24573    as_dirs=
24574    while :; do
24575      case $as_dir in #(
24576      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24577      *) as_qdir=$as_dir;;
24578      esac
24579      as_dirs="'$as_qdir' $as_dirs"
24580      as_dir=`$as_dirname -- "$as_dir" ||
24581$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24582	 X"$as_dir" : 'X\(//\)[^/]' \| \
24583	 X"$as_dir" : 'X\(//\)$' \| \
24584	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24585echo X"$as_dir" |
24586    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24587	    s//\1/
24588	    q
24589	  }
24590	  /^X\(\/\/\)[^/].*/{
24591	    s//\1/
24592	    q
24593	  }
24594	  /^X\(\/\/\)$/{
24595	    s//\1/
24596	    q
24597	  }
24598	  /^X\(\/\).*/{
24599	    s//\1/
24600	    q
24601	  }
24602	  s/.*/./; q'`
24603      test -d "$as_dir" && break
24604    done
24605    test -z "$as_dirs" || eval "mkdir $as_dirs"
24606  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24607echo "$as_me: error: cannot create directory $as_dir" >&2;}
24608   { (exit 1); exit 1; }; }; }
24609    # echo "creating $dirpart/$file"
24610    echo '# dummy' > "$dirpart/$file"
24611  done
24612done
24613 ;;
24614
24615  esac
24616done # for ac_tag
24617
24618
24619{ (exit 0); exit 0; }
24620_ACEOF
24621chmod +x $CONFIG_STATUS
24622ac_clean_files=$ac_clean_files_save
24623
24624
24625# configure is writing to config.log, and then calls config.status.
24626# config.status does its own redirection, appending to config.log.
24627# Unfortunately, on DOS this fails, as config.log is still kept open
24628# by configure, so config.status won't be able to write to it; its
24629# output is simply discarded.  So we exec the FD to /dev/null,
24630# effectively closing config.log, so it can be properly (re)opened and
24631# appended to by config.status.  When coming back to configure, we
24632# need to make the FD available again.
24633if test "$no_create" != yes; then
24634  ac_cs_success=:
24635  ac_config_status_args=
24636  test "$silent" = yes &&
24637    ac_config_status_args="$ac_config_status_args --quiet"
24638  exec 5>/dev/null
24639  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24640  exec 5>>config.log
24641  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24642  # would make configure fail if this is the last instruction.
24643  $ac_cs_success || { (exit 1); exit 1; }
24644fi
24645
24646
24647if test "${with_fuse}" = "external"; then
24648	if ! echo "x$FUSE_LIB_PATH" | grep -- "x-L/lib" > /dev/null; then
24649		cat <<EOF
24650****************************************************************************
24651* WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING   *
24652* The FUSE user space binaries were NOT installed with root directory      *
24653* executable prefix. This means that automounting NTFS volumes during boot *
24654* could fail. This can be fixed the below way by reinstalling FUSE using   *
24655* the right 'configure' option during FUSE compilation:                    *
24656* 	./configure --exec-prefix=/                                        *
24657* 	make && sudo make install                                          *
24658* WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING   *
24659****************************************************************************
24660EOF
24661	fi
24662fi
24663
24664echo "You can type now 'make' to build ntfs-3g."
24665
24666