configure revision ba6a1819
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for libFS 1.0.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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='libFS'
730PACKAGE_TARNAME='libFS'
731PACKAGE_VERSION='1.0.1'
732PACKAGE_STRING='libFS 1.0.1'
733PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
734
735# Factoring default headers for most tests.
736ac_includes_default="\
737#include <stdio.h>
738#ifdef HAVE_SYS_TYPES_H
739# include <sys/types.h>
740#endif
741#ifdef HAVE_SYS_STAT_H
742# include <sys/stat.h>
743#endif
744#ifdef STDC_HEADERS
745# include <stdlib.h>
746# include <stddef.h>
747#else
748# ifdef HAVE_STDLIB_H
749#  include <stdlib.h>
750# endif
751#endif
752#ifdef HAVE_STRING_H
753# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754#  include <memory.h>
755# endif
756# include <string.h>
757#endif
758#ifdef HAVE_STRINGS_H
759# include <strings.h>
760#endif
761#ifdef HAVE_INTTYPES_H
762# include <inttypes.h>
763#endif
764#ifdef HAVE_STDINT_H
765# include <stdint.h>
766#endif
767#ifdef HAVE_UNISTD_H
768# include <unistd.h>
769#endif"
770
771ac_subst_vars='SHELL
772PATH_SEPARATOR
773PACKAGE_NAME
774PACKAGE_TARNAME
775PACKAGE_VERSION
776PACKAGE_STRING
777PACKAGE_BUGREPORT
778exec_prefix
779prefix
780program_transform_name
781bindir
782sbindir
783libexecdir
784datarootdir
785datadir
786sysconfdir
787sharedstatedir
788localstatedir
789includedir
790oldincludedir
791docdir
792infodir
793htmldir
794dvidir
795pdfdir
796psdir
797libdir
798localedir
799mandir
800DEFS
801ECHO_C
802ECHO_N
803ECHO_T
804LIBS
805build_alias
806host_alias
807target_alias
808INSTALL_PROGRAM
809INSTALL_SCRIPT
810INSTALL_DATA
811am__isrc
812CYGPATH_W
813PACKAGE
814VERSION
815ACLOCAL
816AUTOCONF
817AUTOMAKE
818AUTOHEADER
819MAKEINFO
820install_sh
821STRIP
822INSTALL_STRIP_PROGRAM
823mkdir_p
824AWK
825SET_MAKE
826am__leading_dot
827AMTAR
828am__tar
829am__untar
830MAINTAINER_MODE_TRUE
831MAINTAINER_MODE_FALSE
832MAINT
833CC
834CFLAGS
835LDFLAGS
836CPPFLAGS
837ac_ct_CC
838EXEEXT
839OBJEXT
840DEPDIR
841am__include
842am__quote
843AMDEP_TRUE
844AMDEP_FALSE
845AMDEPBACKSLASH
846CCDEPMODE
847am__fastdepCC_TRUE
848am__fastdepCC_FALSE
849build
850build_cpu
851build_vendor
852build_os
853host
854host_cpu
855host_vendor
856host_os
857GREP
858EGREP
859LN_S
860ECHO
861AR
862RANLIB
863CPP
864CXX
865CXXFLAGS
866ac_ct_CXX
867CXXDEPMODE
868am__fastdepCXX_TRUE
869am__fastdepCXX_FALSE
870CXXCPP
871F77
872FFLAGS
873ac_ct_F77
874LIBTOOL
875PKG_CONFIG
876FS_CFLAGS
877FS_LIBS
878XTRANS_CFLAGS
879XTRANS_LIBS
880MALLOC_ZERO_CFLAGS
881XMALLOC_ZERO_CFLAGS
882XTMALLOC_ZERO_CFLAGS
883LINT
884LINT_FLAGS
885LINT_TRUE
886LINT_FALSE
887LINTLIB
888MAKE_LINT_LIB_TRUE
889MAKE_LINT_LIB_FALSE
890LIBOBJS
891LTLIBOBJS'
892ac_subst_files=''
893      ac_precious_vars='build_alias
894host_alias
895target_alias
896CC
897CFLAGS
898LDFLAGS
899LIBS
900CPPFLAGS
901CPP
902CXX
903CXXFLAGS
904CCC
905CXXCPP
906F77
907FFLAGS
908PKG_CONFIG
909FS_CFLAGS
910FS_LIBS
911XTRANS_CFLAGS
912XTRANS_LIBS'
913
914
915# Initialize some variables set by options.
916ac_init_help=
917ac_init_version=false
918# The variables have the same names as the options, with
919# dashes changed to underlines.
920cache_file=/dev/null
921exec_prefix=NONE
922no_create=
923no_recursion=
924prefix=NONE
925program_prefix=NONE
926program_suffix=NONE
927program_transform_name=s,x,x,
928silent=
929site=
930srcdir=
931verbose=
932x_includes=NONE
933x_libraries=NONE
934
935# Installation directory options.
936# These are left unexpanded so users can "make install exec_prefix=/foo"
937# and all the variables that are supposed to be based on exec_prefix
938# by default will actually change.
939# Use braces instead of parens because sh, perl, etc. also accept them.
940# (The list follows the same order as the GNU Coding Standards.)
941bindir='${exec_prefix}/bin'
942sbindir='${exec_prefix}/sbin'
943libexecdir='${exec_prefix}/libexec'
944datarootdir='${prefix}/share'
945datadir='${datarootdir}'
946sysconfdir='${prefix}/etc'
947sharedstatedir='${prefix}/com'
948localstatedir='${prefix}/var'
949includedir='${prefix}/include'
950oldincludedir='/usr/include'
951docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
952infodir='${datarootdir}/info'
953htmldir='${docdir}'
954dvidir='${docdir}'
955pdfdir='${docdir}'
956psdir='${docdir}'
957libdir='${exec_prefix}/lib'
958localedir='${datarootdir}/locale'
959mandir='${datarootdir}/man'
960
961ac_prev=
962ac_dashdash=
963for ac_option
964do
965  # If the previous option needs an argument, assign it.
966  if test -n "$ac_prev"; then
967    eval $ac_prev=\$ac_option
968    ac_prev=
969    continue
970  fi
971
972  case $ac_option in
973  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
974  *)	ac_optarg=yes ;;
975  esac
976
977  # Accept the important Cygnus configure options, so we can diagnose typos.
978
979  case $ac_dashdash$ac_option in
980  --)
981    ac_dashdash=yes ;;
982
983  -bindir | --bindir | --bindi | --bind | --bin | --bi)
984    ac_prev=bindir ;;
985  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986    bindir=$ac_optarg ;;
987
988  -build | --build | --buil | --bui | --bu)
989    ac_prev=build_alias ;;
990  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991    build_alias=$ac_optarg ;;
992
993  -cache-file | --cache-file | --cache-fil | --cache-fi \
994  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995    ac_prev=cache_file ;;
996  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998    cache_file=$ac_optarg ;;
999
1000  --config-cache | -C)
1001    cache_file=config.cache ;;
1002
1003  -datadir | --datadir | --datadi | --datad)
1004    ac_prev=datadir ;;
1005  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006    datadir=$ac_optarg ;;
1007
1008  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009  | --dataroo | --dataro | --datar)
1010    ac_prev=datarootdir ;;
1011  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013    datarootdir=$ac_optarg ;;
1014
1015  -disable-* | --disable-*)
1016    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017    # Reject names that are not valid shell variable names.
1018    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020   { (exit 1); exit 1; }; }
1021    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022    eval enable_$ac_feature=no ;;
1023
1024  -docdir | --docdir | --docdi | --doc | --do)
1025    ac_prev=docdir ;;
1026  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027    docdir=$ac_optarg ;;
1028
1029  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030    ac_prev=dvidir ;;
1031  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032    dvidir=$ac_optarg ;;
1033
1034  -enable-* | --enable-*)
1035    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036    # Reject names that are not valid shell variable names.
1037    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1038      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039   { (exit 1); exit 1; }; }
1040    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1041    eval enable_$ac_feature=\$ac_optarg ;;
1042
1043  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1044  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045  | --exec | --exe | --ex)
1046    ac_prev=exec_prefix ;;
1047  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1048  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1049  | --exec=* | --exe=* | --ex=*)
1050    exec_prefix=$ac_optarg ;;
1051
1052  -gas | --gas | --ga | --g)
1053    # Obsolete; use --with-gas.
1054    with_gas=yes ;;
1055
1056  -help | --help | --hel | --he | -h)
1057    ac_init_help=long ;;
1058  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1059    ac_init_help=recursive ;;
1060  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1061    ac_init_help=short ;;
1062
1063  -host | --host | --hos | --ho)
1064    ac_prev=host_alias ;;
1065  -host=* | --host=* | --hos=* | --ho=*)
1066    host_alias=$ac_optarg ;;
1067
1068  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1069    ac_prev=htmldir ;;
1070  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1071  | --ht=*)
1072    htmldir=$ac_optarg ;;
1073
1074  -includedir | --includedir | --includedi | --included | --include \
1075  | --includ | --inclu | --incl | --inc)
1076    ac_prev=includedir ;;
1077  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1078  | --includ=* | --inclu=* | --incl=* | --inc=*)
1079    includedir=$ac_optarg ;;
1080
1081  -infodir | --infodir | --infodi | --infod | --info | --inf)
1082    ac_prev=infodir ;;
1083  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1084    infodir=$ac_optarg ;;
1085
1086  -libdir | --libdir | --libdi | --libd)
1087    ac_prev=libdir ;;
1088  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1089    libdir=$ac_optarg ;;
1090
1091  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1092  | --libexe | --libex | --libe)
1093    ac_prev=libexecdir ;;
1094  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1095  | --libexe=* | --libex=* | --libe=*)
1096    libexecdir=$ac_optarg ;;
1097
1098  -localedir | --localedir | --localedi | --localed | --locale)
1099    ac_prev=localedir ;;
1100  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1101    localedir=$ac_optarg ;;
1102
1103  -localstatedir | --localstatedir | --localstatedi | --localstated \
1104  | --localstate | --localstat | --localsta | --localst | --locals)
1105    ac_prev=localstatedir ;;
1106  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1107  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1108    localstatedir=$ac_optarg ;;
1109
1110  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1111    ac_prev=mandir ;;
1112  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1113    mandir=$ac_optarg ;;
1114
1115  -nfp | --nfp | --nf)
1116    # Obsolete; use --without-fp.
1117    with_fp=no ;;
1118
1119  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1120  | --no-cr | --no-c | -n)
1121    no_create=yes ;;
1122
1123  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1124  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1125    no_recursion=yes ;;
1126
1127  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1128  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1129  | --oldin | --oldi | --old | --ol | --o)
1130    ac_prev=oldincludedir ;;
1131  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1132  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1133  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1134    oldincludedir=$ac_optarg ;;
1135
1136  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1137    ac_prev=prefix ;;
1138  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1139    prefix=$ac_optarg ;;
1140
1141  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1142  | --program-pre | --program-pr | --program-p)
1143    ac_prev=program_prefix ;;
1144  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1145  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1146    program_prefix=$ac_optarg ;;
1147
1148  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1149  | --program-suf | --program-su | --program-s)
1150    ac_prev=program_suffix ;;
1151  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1152  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1153    program_suffix=$ac_optarg ;;
1154
1155  -program-transform-name | --program-transform-name \
1156  | --program-transform-nam | --program-transform-na \
1157  | --program-transform-n | --program-transform- \
1158  | --program-transform | --program-transfor \
1159  | --program-transfo | --program-transf \
1160  | --program-trans | --program-tran \
1161  | --progr-tra | --program-tr | --program-t)
1162    ac_prev=program_transform_name ;;
1163  -program-transform-name=* | --program-transform-name=* \
1164  | --program-transform-nam=* | --program-transform-na=* \
1165  | --program-transform-n=* | --program-transform-=* \
1166  | --program-transform=* | --program-transfor=* \
1167  | --program-transfo=* | --program-transf=* \
1168  | --program-trans=* | --program-tran=* \
1169  | --progr-tra=* | --program-tr=* | --program-t=*)
1170    program_transform_name=$ac_optarg ;;
1171
1172  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1173    ac_prev=pdfdir ;;
1174  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1175    pdfdir=$ac_optarg ;;
1176
1177  -psdir | --psdir | --psdi | --psd | --ps)
1178    ac_prev=psdir ;;
1179  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1180    psdir=$ac_optarg ;;
1181
1182  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1183  | -silent | --silent | --silen | --sile | --sil)
1184    silent=yes ;;
1185
1186  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187    ac_prev=sbindir ;;
1188  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189  | --sbi=* | --sb=*)
1190    sbindir=$ac_optarg ;;
1191
1192  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194  | --sharedst | --shareds | --shared | --share | --shar \
1195  | --sha | --sh)
1196    ac_prev=sharedstatedir ;;
1197  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200  | --sha=* | --sh=*)
1201    sharedstatedir=$ac_optarg ;;
1202
1203  -site | --site | --sit)
1204    ac_prev=site ;;
1205  -site=* | --site=* | --sit=*)
1206    site=$ac_optarg ;;
1207
1208  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209    ac_prev=srcdir ;;
1210  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211    srcdir=$ac_optarg ;;
1212
1213  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214  | --syscon | --sysco | --sysc | --sys | --sy)
1215    ac_prev=sysconfdir ;;
1216  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218    sysconfdir=$ac_optarg ;;
1219
1220  -target | --target | --targe | --targ | --tar | --ta | --t)
1221    ac_prev=target_alias ;;
1222  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223    target_alias=$ac_optarg ;;
1224
1225  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226    verbose=yes ;;
1227
1228  -version | --version | --versio | --versi | --vers | -V)
1229    ac_init_version=: ;;
1230
1231  -with-* | --with-*)
1232    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233    # Reject names that are not valid shell variable names.
1234    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235      { echo "$as_me: error: invalid package name: $ac_package" >&2
1236   { (exit 1); exit 1; }; }
1237    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1238    eval with_$ac_package=\$ac_optarg ;;
1239
1240  -without-* | --without-*)
1241    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242    # Reject names that are not valid shell variable names.
1243    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244      { echo "$as_me: error: invalid package name: $ac_package" >&2
1245   { (exit 1); exit 1; }; }
1246    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247    eval with_$ac_package=no ;;
1248
1249  --x)
1250    # Obsolete; use --with-x.
1251    with_x=yes ;;
1252
1253  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254  | --x-incl | --x-inc | --x-in | --x-i)
1255    ac_prev=x_includes ;;
1256  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258    x_includes=$ac_optarg ;;
1259
1260  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262    ac_prev=x_libraries ;;
1263  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265    x_libraries=$ac_optarg ;;
1266
1267  -*) { echo "$as_me: error: unrecognized option: $ac_option
1268Try \`$0 --help' for more information." >&2
1269   { (exit 1); exit 1; }; }
1270    ;;
1271
1272  *=*)
1273    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274    # Reject names that are not valid shell variable names.
1275    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1276      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1277   { (exit 1); exit 1; }; }
1278    eval $ac_envvar=\$ac_optarg
1279    export $ac_envvar ;;
1280
1281  *)
1282    # FIXME: should be removed in autoconf 3.0.
1283    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287    ;;
1288
1289  esac
1290done
1291
1292if test -n "$ac_prev"; then
1293  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294  { echo "$as_me: error: missing argument to $ac_option" >&2
1295   { (exit 1); exit 1; }; }
1296fi
1297
1298# Be sure to have absolute directory names.
1299for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300		datadir sysconfdir sharedstatedir localstatedir includedir \
1301		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302		libdir localedir mandir
1303do
1304  eval ac_val=\$$ac_var
1305  case $ac_val in
1306    [\\/$]* | ?:[\\/]* )  continue;;
1307    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308  esac
1309  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310   { (exit 1); exit 1; }; }
1311done
1312
1313# There might be people who depend on the old broken behavior: `$host'
1314# used to hold the argument of --host etc.
1315# FIXME: To remove some day.
1316build=$build_alias
1317host=$host_alias
1318target=$target_alias
1319
1320# FIXME: To remove some day.
1321if test "x$host_alias" != x; then
1322  if test "x$build_alias" = x; then
1323    cross_compiling=maybe
1324    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325    If a cross compiler is detected then cross compile mode will be used." >&2
1326  elif test "x$build_alias" != "x$host_alias"; then
1327    cross_compiling=yes
1328  fi
1329fi
1330
1331ac_tool_prefix=
1332test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334test "$silent" = yes && exec 6>/dev/null
1335
1336
1337ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338ac_ls_di=`ls -di .` &&
1339ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340  { echo "$as_me: error: Working directory cannot be determined" >&2
1341   { (exit 1); exit 1; }; }
1342test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343  { echo "$as_me: error: pwd does not report name of working directory" >&2
1344   { (exit 1); exit 1; }; }
1345
1346
1347# Find the source files, if location was not specified.
1348if test -z "$srcdir"; then
1349  ac_srcdir_defaulted=yes
1350  # Try the directory containing this script, then the parent directory.
1351  ac_confdir=`$as_dirname -- "$0" ||
1352$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353	 X"$0" : 'X\(//\)[^/]' \| \
1354	 X"$0" : 'X\(//\)$' \| \
1355	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1356echo X"$0" |
1357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358	    s//\1/
1359	    q
1360	  }
1361	  /^X\(\/\/\)[^/].*/{
1362	    s//\1/
1363	    q
1364	  }
1365	  /^X\(\/\/\)$/{
1366	    s//\1/
1367	    q
1368	  }
1369	  /^X\(\/\).*/{
1370	    s//\1/
1371	    q
1372	  }
1373	  s/.*/./; q'`
1374  srcdir=$ac_confdir
1375  if test ! -r "$srcdir/$ac_unique_file"; then
1376    srcdir=..
1377  fi
1378else
1379  ac_srcdir_defaulted=no
1380fi
1381if test ! -r "$srcdir/$ac_unique_file"; then
1382  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384   { (exit 1); exit 1; }; }
1385fi
1386ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387ac_abs_confdir=`(
1388	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1389   { (exit 1); exit 1; }; }
1390	pwd)`
1391# When building in place, set srcdir=.
1392if test "$ac_abs_confdir" = "$ac_pwd"; then
1393  srcdir=.
1394fi
1395# Remove unnecessary trailing slashes from srcdir.
1396# Double slashes in file names in object file debugging info
1397# mess up M-x gdb in Emacs.
1398case $srcdir in
1399*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400esac
1401for ac_var in $ac_precious_vars; do
1402  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403  eval ac_env_${ac_var}_value=\$${ac_var}
1404  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406done
1407
1408#
1409# Report the --help message.
1410#
1411if test "$ac_init_help" = "long"; then
1412  # Omit some internal or obsolete options to make the list less imposing.
1413  # This message is too long to be a string in the A/UX 3.1 sh.
1414  cat <<_ACEOF
1415\`configure' configures libFS 1.0.1 to adapt to many kinds of systems.
1416
1417Usage: $0 [OPTION]... [VAR=VALUE]...
1418
1419To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420VAR=VALUE.  See below for descriptions of some of the useful variables.
1421
1422Defaults for the options are specified in brackets.
1423
1424Configuration:
1425  -h, --help              display this help and exit
1426      --help=short        display options specific to this package
1427      --help=recursive    display the short help of all the included packages
1428  -V, --version           display version information and exit
1429  -q, --quiet, --silent   do not print \`checking...' messages
1430      --cache-file=FILE   cache test results in FILE [disabled]
1431  -C, --config-cache      alias for \`--cache-file=config.cache'
1432  -n, --no-create         do not create output files
1433      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1434
1435Installation directories:
1436  --prefix=PREFIX         install architecture-independent files in PREFIX
1437			  [$ac_default_prefix]
1438  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1439			  [PREFIX]
1440
1441By default, \`make install' will install all the files in
1442\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1443an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444for instance \`--prefix=\$HOME'.
1445
1446For better control, use the options below.
1447
1448Fine tuning of the installation directories:
1449  --bindir=DIR           user executables [EPREFIX/bin]
1450  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1451  --libexecdir=DIR       program executables [EPREFIX/libexec]
1452  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1453  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1454  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1455  --libdir=DIR           object code libraries [EPREFIX/lib]
1456  --includedir=DIR       C header files [PREFIX/include]
1457  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1458  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1459  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1460  --infodir=DIR          info documentation [DATAROOTDIR/info]
1461  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1462  --mandir=DIR           man documentation [DATAROOTDIR/man]
1463  --docdir=DIR           documentation root [DATAROOTDIR/doc/libFS]
1464  --htmldir=DIR          html documentation [DOCDIR]
1465  --dvidir=DIR           dvi documentation [DOCDIR]
1466  --pdfdir=DIR           pdf documentation [DOCDIR]
1467  --psdir=DIR            ps documentation [DOCDIR]
1468_ACEOF
1469
1470  cat <<\_ACEOF
1471
1472Program names:
1473  --program-prefix=PREFIX            prepend PREFIX to installed program names
1474  --program-suffix=SUFFIX            append SUFFIX to installed program names
1475  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1476
1477System types:
1478  --build=BUILD     configure for building on BUILD [guessed]
1479  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1480_ACEOF
1481fi
1482
1483if test -n "$ac_init_help"; then
1484  case $ac_init_help in
1485     short | recursive ) echo "Configuration of libFS 1.0.1:";;
1486   esac
1487  cat <<\_ACEOF
1488
1489Optional Features:
1490  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1491  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1492  --enable-maintainer-mode  enable make rules and dependencies not useful
1493			  (and sometimes confusing) to the casual installer
1494  --disable-dependency-tracking  speeds up one-time build
1495  --enable-dependency-tracking   do not reject slow dependency extractors
1496  --enable-shared[=PKGS]  build shared libraries [default=yes]
1497  --enable-static[=PKGS]  build static libraries [default=yes]
1498  --enable-fast-install[=PKGS]
1499                          optimize for fast installation [default=yes]
1500  --disable-libtool-lock  avoid locking (might break parallel builds)
1501  --enable-unix-transport Enable UNIX domain socket transport
1502  --enable-tcp-transport  Enable TCP socket transport
1503  --enable-IPv6           Enable IPv6 support
1504  --enable-local-transport
1505                          Enable os-specific local transport
1506  --enable-malloc0returnsnull
1507                          malloc(0) returns NULL (default: auto)
1508  --enable-lint-library   Create lint library (default: disabled)
1509
1510Optional Packages:
1511  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1512  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1513  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1514  --with-pic              try to use only PIC/non-PIC objects [default=use
1515                          both]
1516  --with-tags[=TAGS]      include additional configurations [automatic]
1517  --with-lint             Use a lint-style source code checker (default:
1518                          disabled)
1519  --with-release-version=STRING
1520                          Use release version string in package name
1521
1522Some influential environment variables:
1523  CC          C compiler command
1524  CFLAGS      C compiler flags
1525  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1526              nonstandard directory <lib dir>
1527  LIBS        libraries to pass to the linker, e.g. -l<library>
1528  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1529              you have headers in a nonstandard directory <include dir>
1530  CPP         C preprocessor
1531  CXX         C++ compiler command
1532  CXXFLAGS    C++ compiler flags
1533  CXXCPP      C++ preprocessor
1534  F77         Fortran 77 compiler command
1535  FFLAGS      Fortran 77 compiler flags
1536  PKG_CONFIG  path to pkg-config utility
1537  FS_CFLAGS   C compiler flags for FS, overriding pkg-config
1538  FS_LIBS     linker flags for FS, overriding pkg-config
1539  XTRANS_CFLAGS
1540              C compiler flags for XTRANS, overriding pkg-config
1541  XTRANS_LIBS linker flags for XTRANS, overriding pkg-config
1542
1543Use these variables to override the choices made by `configure' or to help
1544it to find libraries and programs with nonstandard names/locations.
1545
1546Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1547_ACEOF
1548ac_status=$?
1549fi
1550
1551if test "$ac_init_help" = "recursive"; then
1552  # If there are subdirs, report their specific --help.
1553  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554    test -d "$ac_dir" || continue
1555    ac_builddir=.
1556
1557case "$ac_dir" in
1558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559*)
1560  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1561  # A ".." for each directory in $ac_dir_suffix.
1562  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1563  case $ac_top_builddir_sub in
1564  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566  esac ;;
1567esac
1568ac_abs_top_builddir=$ac_pwd
1569ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570# for backward compatibility:
1571ac_top_builddir=$ac_top_build_prefix
1572
1573case $srcdir in
1574  .)  # We are building in place.
1575    ac_srcdir=.
1576    ac_top_srcdir=$ac_top_builddir_sub
1577    ac_abs_top_srcdir=$ac_pwd ;;
1578  [\\/]* | ?:[\\/]* )  # Absolute name.
1579    ac_srcdir=$srcdir$ac_dir_suffix;
1580    ac_top_srcdir=$srcdir
1581    ac_abs_top_srcdir=$srcdir ;;
1582  *) # Relative name.
1583    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584    ac_top_srcdir=$ac_top_build_prefix$srcdir
1585    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586esac
1587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589    cd "$ac_dir" || { ac_status=$?; continue; }
1590    # Check for guested configure.
1591    if test -f "$ac_srcdir/configure.gnu"; then
1592      echo &&
1593      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594    elif test -f "$ac_srcdir/configure"; then
1595      echo &&
1596      $SHELL "$ac_srcdir/configure" --help=recursive
1597    else
1598      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599    fi || ac_status=$?
1600    cd "$ac_pwd" || { ac_status=$?; break; }
1601  done
1602fi
1603
1604test -n "$ac_init_help" && exit $ac_status
1605if $ac_init_version; then
1606  cat <<\_ACEOF
1607libFS configure 1.0.1
1608generated by GNU Autoconf 2.61
1609
1610Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16112002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1612This configure script is free software; the Free Software Foundation
1613gives unlimited permission to copy, distribute and modify it.
1614_ACEOF
1615  exit
1616fi
1617cat >config.log <<_ACEOF
1618This file contains any messages produced by compilers while
1619running configure, to aid debugging if configure makes a mistake.
1620
1621It was created by libFS $as_me 1.0.1, which was
1622generated by GNU Autoconf 2.61.  Invocation command line was
1623
1624  $ $0 $@
1625
1626_ACEOF
1627exec 5>>config.log
1628{
1629cat <<_ASUNAME
1630## --------- ##
1631## Platform. ##
1632## --------- ##
1633
1634hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1635uname -m = `(uname -m) 2>/dev/null || echo unknown`
1636uname -r = `(uname -r) 2>/dev/null || echo unknown`
1637uname -s = `(uname -s) 2>/dev/null || echo unknown`
1638uname -v = `(uname -v) 2>/dev/null || echo unknown`
1639
1640/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1641/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1642
1643/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1644/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1645/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1646/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1647/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1648/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1649/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1650
1651_ASUNAME
1652
1653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654for as_dir in $PATH
1655do
1656  IFS=$as_save_IFS
1657  test -z "$as_dir" && as_dir=.
1658  echo "PATH: $as_dir"
1659done
1660IFS=$as_save_IFS
1661
1662} >&5
1663
1664cat >&5 <<_ACEOF
1665
1666
1667## ----------- ##
1668## Core tests. ##
1669## ----------- ##
1670
1671_ACEOF
1672
1673
1674# Keep a trace of the command line.
1675# Strip out --no-create and --no-recursion so they do not pile up.
1676# Strip out --silent because we don't want to record it for future runs.
1677# Also quote any args containing shell meta-characters.
1678# Make two passes to allow for proper duplicate-argument suppression.
1679ac_configure_args=
1680ac_configure_args0=
1681ac_configure_args1=
1682ac_must_keep_next=false
1683for ac_pass in 1 2
1684do
1685  for ac_arg
1686  do
1687    case $ac_arg in
1688    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1689    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1690    | -silent | --silent | --silen | --sile | --sil)
1691      continue ;;
1692    *\'*)
1693      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1694    esac
1695    case $ac_pass in
1696    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1697    2)
1698      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1699      if test $ac_must_keep_next = true; then
1700	ac_must_keep_next=false # Got value, back to normal.
1701      else
1702	case $ac_arg in
1703	  *=* | --config-cache | -C | -disable-* | --disable-* \
1704	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1705	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1706	  | -with-* | --with-* | -without-* | --without-* | --x)
1707	    case "$ac_configure_args0 " in
1708	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1709	    esac
1710	    ;;
1711	  -* ) ac_must_keep_next=true ;;
1712	esac
1713      fi
1714      ac_configure_args="$ac_configure_args '$ac_arg'"
1715      ;;
1716    esac
1717  done
1718done
1719$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1720$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1721
1722# When interrupted or exit'd, cleanup temporary files, and complete
1723# config.log.  We remove comments because anyway the quotes in there
1724# would cause problems or look ugly.
1725# WARNING: Use '\'' to represent an apostrophe within the trap.
1726# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1727trap 'exit_status=$?
1728  # Save into config.log some information that might help in debugging.
1729  {
1730    echo
1731
1732    cat <<\_ASBOX
1733## ---------------- ##
1734## Cache variables. ##
1735## ---------------- ##
1736_ASBOX
1737    echo
1738    # The following way of writing the cache mishandles newlines in values,
1739(
1740  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1741    eval ac_val=\$$ac_var
1742    case $ac_val in #(
1743    *${as_nl}*)
1744      case $ac_var in #(
1745      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1746echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1747      esac
1748      case $ac_var in #(
1749      _ | IFS | as_nl) ;; #(
1750      *) $as_unset $ac_var ;;
1751      esac ;;
1752    esac
1753  done
1754  (set) 2>&1 |
1755    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1756    *${as_nl}ac_space=\ *)
1757      sed -n \
1758	"s/'\''/'\''\\\\'\'''\''/g;
1759	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1760      ;; #(
1761    *)
1762      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1763      ;;
1764    esac |
1765    sort
1766)
1767    echo
1768
1769    cat <<\_ASBOX
1770## ----------------- ##
1771## Output variables. ##
1772## ----------------- ##
1773_ASBOX
1774    echo
1775    for ac_var in $ac_subst_vars
1776    do
1777      eval ac_val=\$$ac_var
1778      case $ac_val in
1779      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1780      esac
1781      echo "$ac_var='\''$ac_val'\''"
1782    done | sort
1783    echo
1784
1785    if test -n "$ac_subst_files"; then
1786      cat <<\_ASBOX
1787## ------------------- ##
1788## File substitutions. ##
1789## ------------------- ##
1790_ASBOX
1791      echo
1792      for ac_var in $ac_subst_files
1793      do
1794	eval ac_val=\$$ac_var
1795	case $ac_val in
1796	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1797	esac
1798	echo "$ac_var='\''$ac_val'\''"
1799      done | sort
1800      echo
1801    fi
1802
1803    if test -s confdefs.h; then
1804      cat <<\_ASBOX
1805## ----------- ##
1806## confdefs.h. ##
1807## ----------- ##
1808_ASBOX
1809      echo
1810      cat confdefs.h
1811      echo
1812    fi
1813    test "$ac_signal" != 0 &&
1814      echo "$as_me: caught signal $ac_signal"
1815    echo "$as_me: exit $exit_status"
1816  } >&5
1817  rm -f core *.core core.conftest.* &&
1818    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1819    exit $exit_status
1820' 0
1821for ac_signal in 1 2 13 15; do
1822  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1823done
1824ac_signal=0
1825
1826# confdefs.h avoids OS command line length limits that DEFS can exceed.
1827rm -f -r conftest* confdefs.h
1828
1829# Predefined preprocessor variables.
1830
1831cat >>confdefs.h <<_ACEOF
1832#define PACKAGE_NAME "$PACKAGE_NAME"
1833_ACEOF
1834
1835
1836cat >>confdefs.h <<_ACEOF
1837#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1838_ACEOF
1839
1840
1841cat >>confdefs.h <<_ACEOF
1842#define PACKAGE_VERSION "$PACKAGE_VERSION"
1843_ACEOF
1844
1845
1846cat >>confdefs.h <<_ACEOF
1847#define PACKAGE_STRING "$PACKAGE_STRING"
1848_ACEOF
1849
1850
1851cat >>confdefs.h <<_ACEOF
1852#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1853_ACEOF
1854
1855
1856# Let the site file select an alternate cache file if it wants to.
1857# Prefer explicitly selected file to automatically selected ones.
1858if test -n "$CONFIG_SITE"; then
1859  set x "$CONFIG_SITE"
1860elif test "x$prefix" != xNONE; then
1861  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1862else
1863  set x "$ac_default_prefix/share/config.site" \
1864	"$ac_default_prefix/etc/config.site"
1865fi
1866shift
1867for ac_site_file
1868do
1869  if test -r "$ac_site_file"; then
1870    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1871echo "$as_me: loading site script $ac_site_file" >&6;}
1872    sed 's/^/| /' "$ac_site_file" >&5
1873    . "$ac_site_file"
1874  fi
1875done
1876
1877if test -r "$cache_file"; then
1878  # Some versions of bash will fail to source /dev/null (special
1879  # files actually), so we avoid doing that.
1880  if test -f "$cache_file"; then
1881    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1882echo "$as_me: loading cache $cache_file" >&6;}
1883    case $cache_file in
1884      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1885      *)                      . "./$cache_file";;
1886    esac
1887  fi
1888else
1889  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1890echo "$as_me: creating cache $cache_file" >&6;}
1891  >$cache_file
1892fi
1893
1894# Check that the precious variables saved in the cache have kept the same
1895# value.
1896ac_cache_corrupted=false
1897for ac_var in $ac_precious_vars; do
1898  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1899  eval ac_new_set=\$ac_env_${ac_var}_set
1900  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1901  eval ac_new_val=\$ac_env_${ac_var}_value
1902  case $ac_old_set,$ac_new_set in
1903    set,)
1904      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1905echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1906      ac_cache_corrupted=: ;;
1907    ,set)
1908      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1909echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1910      ac_cache_corrupted=: ;;
1911    ,);;
1912    *)
1913      if test "x$ac_old_val" != "x$ac_new_val"; then
1914	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1915echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1916	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1917echo "$as_me:   former value:  $ac_old_val" >&2;}
1918	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1919echo "$as_me:   current value: $ac_new_val" >&2;}
1920	ac_cache_corrupted=:
1921      fi;;
1922  esac
1923  # Pass precious variables to config.status.
1924  if test "$ac_new_set" = set; then
1925    case $ac_new_val in
1926    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1927    *) ac_arg=$ac_var=$ac_new_val ;;
1928    esac
1929    case " $ac_configure_args " in
1930      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1931      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1932    esac
1933  fi
1934done
1935if $ac_cache_corrupted; then
1936  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1937echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1938  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1939echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1940   { (exit 1); exit 1; }; }
1941fi
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967ac_ext=c
1968ac_cpp='$CPP $CPPFLAGS'
1969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972
1973
1974am__api_version='1.10'
1975
1976ac_aux_dir=
1977for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1978  if test -f "$ac_dir/install-sh"; then
1979    ac_aux_dir=$ac_dir
1980    ac_install_sh="$ac_aux_dir/install-sh -c"
1981    break
1982  elif test -f "$ac_dir/install.sh"; then
1983    ac_aux_dir=$ac_dir
1984    ac_install_sh="$ac_aux_dir/install.sh -c"
1985    break
1986  elif test -f "$ac_dir/shtool"; then
1987    ac_aux_dir=$ac_dir
1988    ac_install_sh="$ac_aux_dir/shtool install -c"
1989    break
1990  fi
1991done
1992if test -z "$ac_aux_dir"; then
1993  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1994echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1995   { (exit 1); exit 1; }; }
1996fi
1997
1998# These three variables are undocumented and unsupported,
1999# and are intended to be withdrawn in a future Autoconf release.
2000# They can cause serious problems if a builder's source tree is in a directory
2001# whose full name contains unusual characters.
2002ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2003ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2004ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2005
2006
2007# Find a good install program.  We prefer a C program (faster),
2008# so one script is as good as another.  But avoid the broken or
2009# incompatible versions:
2010# SysV /etc/install, /usr/sbin/install
2011# SunOS /usr/etc/install
2012# IRIX /sbin/install
2013# AIX /bin/install
2014# AmigaOS /C/install, which installs bootblocks on floppy discs
2015# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2016# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2017# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2018# OS/2's system install, which has a completely different semantic
2019# ./install, which can be erroneously created by make from ./install.sh.
2020{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2021echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2022if test -z "$INSTALL"; then
2023if test "${ac_cv_path_install+set}" = set; then
2024  echo $ECHO_N "(cached) $ECHO_C" >&6
2025else
2026  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027for as_dir in $PATH
2028do
2029  IFS=$as_save_IFS
2030  test -z "$as_dir" && as_dir=.
2031  # Account for people who put trailing slashes in PATH elements.
2032case $as_dir/ in
2033  ./ | .// | /cC/* | \
2034  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2035  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2036  /usr/ucb/* ) ;;
2037  *)
2038    # OSF1 and SCO ODT 3.0 have their own names for install.
2039    # Don't use installbsd from OSF since it installs stuff as root
2040    # by default.
2041    for ac_prog in ginstall scoinst install; do
2042      for ac_exec_ext in '' $ac_executable_extensions; do
2043	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2044	  if test $ac_prog = install &&
2045	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2046	    # AIX install.  It has an incompatible calling convention.
2047	    :
2048	  elif test $ac_prog = install &&
2049	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2050	    # program-specific install script used by HP pwplus--don't use.
2051	    :
2052	  else
2053	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2054	    break 3
2055	  fi
2056	fi
2057      done
2058    done
2059    ;;
2060esac
2061done
2062IFS=$as_save_IFS
2063
2064
2065fi
2066  if test "${ac_cv_path_install+set}" = set; then
2067    INSTALL=$ac_cv_path_install
2068  else
2069    # As a last resort, use the slow shell script.  Don't cache a
2070    # value for INSTALL within a source directory, because that will
2071    # break other packages using the cache if that directory is
2072    # removed, or if the value is a relative name.
2073    INSTALL=$ac_install_sh
2074  fi
2075fi
2076{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2077echo "${ECHO_T}$INSTALL" >&6; }
2078
2079# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2080# It thinks the first close brace ends the variable substitution.
2081test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2082
2083test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2084
2085test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2086
2087{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2088echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2089# Just in case
2090sleep 1
2091echo timestamp > conftest.file
2092# Do `set' in a subshell so we don't clobber the current shell's
2093# arguments.  Must try -L first in case configure is actually a
2094# symlink; some systems play weird games with the mod time of symlinks
2095# (eg FreeBSD returns the mod time of the symlink's containing
2096# directory).
2097if (
2098   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2099   if test "$*" = "X"; then
2100      # -L didn't work.
2101      set X `ls -t $srcdir/configure conftest.file`
2102   fi
2103   rm -f conftest.file
2104   if test "$*" != "X $srcdir/configure conftest.file" \
2105      && test "$*" != "X conftest.file $srcdir/configure"; then
2106
2107      # If neither matched, then we have a broken ls.  This can happen
2108      # if, for instance, CONFIG_SHELL is bash and it inherits a
2109      # broken ls alias from the environment.  This has actually
2110      # happened.  Such a system could not be considered "sane".
2111      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2112alias in your environment" >&5
2113echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2114alias in your environment" >&2;}
2115   { (exit 1); exit 1; }; }
2116   fi
2117
2118   test "$2" = conftest.file
2119   )
2120then
2121   # Ok.
2122   :
2123else
2124   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2125Check your system clock" >&5
2126echo "$as_me: error: newly created file is older than distributed files!
2127Check your system clock" >&2;}
2128   { (exit 1); exit 1; }; }
2129fi
2130{ echo "$as_me:$LINENO: result: yes" >&5
2131echo "${ECHO_T}yes" >&6; }
2132test "$program_prefix" != NONE &&
2133  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2134# Use a double $ so make ignores it.
2135test "$program_suffix" != NONE &&
2136  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2137# Double any \ or $.  echo might interpret backslashes.
2138# By default was `s,x,x', remove it if useless.
2139cat <<\_ACEOF >conftest.sed
2140s/[\\$]/&&/g;s/;s,x,x,$//
2141_ACEOF
2142program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2143rm -f conftest.sed
2144
2145# expand $ac_aux_dir to an absolute path
2146am_aux_dir=`cd $ac_aux_dir && pwd`
2147
2148test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2149# Use eval to expand $SHELL
2150if eval "$MISSING --run true"; then
2151  am_missing_run="$MISSING --run "
2152else
2153  am_missing_run=
2154  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2155echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2156fi
2157
2158{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2159echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2160if test -z "$MKDIR_P"; then
2161  if test "${ac_cv_path_mkdir+set}" = set; then
2162  echo $ECHO_N "(cached) $ECHO_C" >&6
2163else
2164  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2166do
2167  IFS=$as_save_IFS
2168  test -z "$as_dir" && as_dir=.
2169  for ac_prog in mkdir gmkdir; do
2170	 for ac_exec_ext in '' $ac_executable_extensions; do
2171	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2172	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2173	     'mkdir (GNU coreutils) '* | \
2174	     'mkdir (coreutils) '* | \
2175	     'mkdir (fileutils) '4.1*)
2176	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2177	       break 3;;
2178	   esac
2179	 done
2180       done
2181done
2182IFS=$as_save_IFS
2183
2184fi
2185
2186  if test "${ac_cv_path_mkdir+set}" = set; then
2187    MKDIR_P="$ac_cv_path_mkdir -p"
2188  else
2189    # As a last resort, use the slow shell script.  Don't cache a
2190    # value for MKDIR_P within a source directory, because that will
2191    # break other packages using the cache if that directory is
2192    # removed, or if the value is a relative name.
2193    test -d ./--version && rmdir ./--version
2194    MKDIR_P="$ac_install_sh -d"
2195  fi
2196fi
2197{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2198echo "${ECHO_T}$MKDIR_P" >&6; }
2199
2200mkdir_p="$MKDIR_P"
2201case $mkdir_p in
2202  [\\/$]* | ?:[\\/]*) ;;
2203  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2204esac
2205
2206for ac_prog in gawk mawk nawk awk
2207do
2208  # Extract the first word of "$ac_prog", so it can be a program name with args.
2209set dummy $ac_prog; ac_word=$2
2210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212if test "${ac_cv_prog_AWK+set}" = set; then
2213  echo $ECHO_N "(cached) $ECHO_C" >&6
2214else
2215  if test -n "$AWK"; then
2216  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2217else
2218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219for as_dir in $PATH
2220do
2221  IFS=$as_save_IFS
2222  test -z "$as_dir" && as_dir=.
2223  for ac_exec_ext in '' $ac_executable_extensions; do
2224  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225    ac_cv_prog_AWK="$ac_prog"
2226    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227    break 2
2228  fi
2229done
2230done
2231IFS=$as_save_IFS
2232
2233fi
2234fi
2235AWK=$ac_cv_prog_AWK
2236if test -n "$AWK"; then
2237  { echo "$as_me:$LINENO: result: $AWK" >&5
2238echo "${ECHO_T}$AWK" >&6; }
2239else
2240  { echo "$as_me:$LINENO: result: no" >&5
2241echo "${ECHO_T}no" >&6; }
2242fi
2243
2244
2245  test -n "$AWK" && break
2246done
2247
2248{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2249echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2250set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2251if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2252  echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254  cat >conftest.make <<\_ACEOF
2255SHELL = /bin/sh
2256all:
2257	@echo '@@@%%%=$(MAKE)=@@@%%%'
2258_ACEOF
2259# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2260case `${MAKE-make} -f conftest.make 2>/dev/null` in
2261  *@@@%%%=?*=@@@%%%*)
2262    eval ac_cv_prog_make_${ac_make}_set=yes;;
2263  *)
2264    eval ac_cv_prog_make_${ac_make}_set=no;;
2265esac
2266rm -f conftest.make
2267fi
2268if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2269  { echo "$as_me:$LINENO: result: yes" >&5
2270echo "${ECHO_T}yes" >&6; }
2271  SET_MAKE=
2272else
2273  { echo "$as_me:$LINENO: result: no" >&5
2274echo "${ECHO_T}no" >&6; }
2275  SET_MAKE="MAKE=${MAKE-make}"
2276fi
2277
2278rm -rf .tst 2>/dev/null
2279mkdir .tst 2>/dev/null
2280if test -d .tst; then
2281  am__leading_dot=.
2282else
2283  am__leading_dot=_
2284fi
2285rmdir .tst 2>/dev/null
2286
2287if test "`cd $srcdir && pwd`" != "`pwd`"; then
2288  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2289  # is not polluted with repeated "-I."
2290  am__isrc=' -I$(srcdir)'
2291  # test to see if srcdir already configured
2292  if test -f $srcdir/config.status; then
2293    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2294echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2295   { (exit 1); exit 1; }; }
2296  fi
2297fi
2298
2299# test whether we have cygpath
2300if test -z "$CYGPATH_W"; then
2301  if (cygpath --version) >/dev/null 2>/dev/null; then
2302    CYGPATH_W='cygpath -w'
2303  else
2304    CYGPATH_W=echo
2305  fi
2306fi
2307
2308
2309# Define the identity of the package.
2310 PACKAGE='libFS'
2311 VERSION='1.0.1'
2312
2313
2314cat >>confdefs.h <<_ACEOF
2315#define PACKAGE "$PACKAGE"
2316_ACEOF
2317
2318
2319cat >>confdefs.h <<_ACEOF
2320#define VERSION "$VERSION"
2321_ACEOF
2322
2323# Some tools Automake needs.
2324
2325ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2326
2327
2328AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2329
2330
2331AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2332
2333
2334AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2335
2336
2337MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2338
2339install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2340
2341# Installed binaries are usually stripped using `strip' when the user
2342# run `make install-strip'.  However `strip' might not be the right
2343# tool to use in cross-compilation environments, therefore Automake
2344# will honor the `STRIP' environment variable to overrule this program.
2345if test "$cross_compiling" != no; then
2346  if test -n "$ac_tool_prefix"; then
2347  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2348set dummy ${ac_tool_prefix}strip; ac_word=$2
2349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351if test "${ac_cv_prog_STRIP+set}" = set; then
2352  echo $ECHO_N "(cached) $ECHO_C" >&6
2353else
2354  if test -n "$STRIP"; then
2355  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2356else
2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358for as_dir in $PATH
2359do
2360  IFS=$as_save_IFS
2361  test -z "$as_dir" && as_dir=.
2362  for ac_exec_ext in '' $ac_executable_extensions; do
2363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2365    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366    break 2
2367  fi
2368done
2369done
2370IFS=$as_save_IFS
2371
2372fi
2373fi
2374STRIP=$ac_cv_prog_STRIP
2375if test -n "$STRIP"; then
2376  { echo "$as_me:$LINENO: result: $STRIP" >&5
2377echo "${ECHO_T}$STRIP" >&6; }
2378else
2379  { echo "$as_me:$LINENO: result: no" >&5
2380echo "${ECHO_T}no" >&6; }
2381fi
2382
2383
2384fi
2385if test -z "$ac_cv_prog_STRIP"; then
2386  ac_ct_STRIP=$STRIP
2387  # Extract the first word of "strip", so it can be a program name with args.
2388set dummy strip; ac_word=$2
2389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2392  echo $ECHO_N "(cached) $ECHO_C" >&6
2393else
2394  if test -n "$ac_ct_STRIP"; then
2395  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2396else
2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400  IFS=$as_save_IFS
2401  test -z "$as_dir" && as_dir=.
2402  for ac_exec_ext in '' $ac_executable_extensions; do
2403  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404    ac_cv_prog_ac_ct_STRIP="strip"
2405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406    break 2
2407  fi
2408done
2409done
2410IFS=$as_save_IFS
2411
2412fi
2413fi
2414ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2415if test -n "$ac_ct_STRIP"; then
2416  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2417echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2418else
2419  { echo "$as_me:$LINENO: result: no" >&5
2420echo "${ECHO_T}no" >&6; }
2421fi
2422
2423  if test "x$ac_ct_STRIP" = x; then
2424    STRIP=":"
2425  else
2426    case $cross_compiling:$ac_tool_warned in
2427yes:)
2428{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429whose name does not start with the host triplet.  If you think this
2430configuration is useful to you, please write to autoconf@gnu.org." >&5
2431echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432whose name does not start with the host triplet.  If you think this
2433configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2434ac_tool_warned=yes ;;
2435esac
2436    STRIP=$ac_ct_STRIP
2437  fi
2438else
2439  STRIP="$ac_cv_prog_STRIP"
2440fi
2441
2442fi
2443INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2444
2445# We need awk for the "check" target.  The system "awk" is bad on
2446# some platforms.
2447# Always define AMTAR for backward compatibility.
2448
2449AMTAR=${AMTAR-"${am_missing_run}tar"}
2450
2451am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2452
2453
2454
2455
2456
2457{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2458echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2459    # Check whether --enable-maintainer-mode was given.
2460if test "${enable_maintainer_mode+set}" = set; then
2461  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2462else
2463  USE_MAINTAINER_MODE=no
2464fi
2465
2466  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2467echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2468   if test $USE_MAINTAINER_MODE = yes; then
2469  MAINTAINER_MODE_TRUE=
2470  MAINTAINER_MODE_FALSE='#'
2471else
2472  MAINTAINER_MODE_TRUE='#'
2473  MAINTAINER_MODE_FALSE=
2474fi
2475
2476  MAINT=$MAINTAINER_MODE_TRUE
2477
2478
2479
2480ac_config_headers="$ac_config_headers config.h"
2481
2482
2483# Require xorg-macros version 1.1.0 or newer for XORG_WITH_LINT macro
2484
2485
2486	XORG_MACROS_needed_version=1.1
2487	XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
2488	XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2489	{ echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
2490echo $ECHO_N "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... $ECHO_C" >&6; }
2491	XORG_MACROS_version=1.1.6
2492	XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
2493	XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2494	if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
2495		{ { echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
2496echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
2497   { (exit 1); exit 1; }; }
2498	fi
2499	if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
2500		{ { echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5
2501echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;}
2502   { (exit 1); exit 1; }; }
2503	fi
2504	{ echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
2505echo "${ECHO_T}yes, $XORG_MACROS_version" >&6; }
2506
2507
2508# Check for progs
2509ac_ext=c
2510ac_cpp='$CPP $CPPFLAGS'
2511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514if test -n "$ac_tool_prefix"; then
2515  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2516set dummy ${ac_tool_prefix}gcc; ac_word=$2
2517{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2519if test "${ac_cv_prog_CC+set}" = set; then
2520  echo $ECHO_N "(cached) $ECHO_C" >&6
2521else
2522  if test -n "$CC"; then
2523  ac_cv_prog_CC="$CC" # Let the user override the test.
2524else
2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528  IFS=$as_save_IFS
2529  test -z "$as_dir" && as_dir=.
2530  for ac_exec_ext in '' $ac_executable_extensions; do
2531  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2533    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534    break 2
2535  fi
2536done
2537done
2538IFS=$as_save_IFS
2539
2540fi
2541fi
2542CC=$ac_cv_prog_CC
2543if test -n "$CC"; then
2544  { echo "$as_me:$LINENO: result: $CC" >&5
2545echo "${ECHO_T}$CC" >&6; }
2546else
2547  { echo "$as_me:$LINENO: result: no" >&5
2548echo "${ECHO_T}no" >&6; }
2549fi
2550
2551
2552fi
2553if test -z "$ac_cv_prog_CC"; then
2554  ac_ct_CC=$CC
2555  # Extract the first word of "gcc", so it can be a program name with args.
2556set dummy gcc; ac_word=$2
2557{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2560  echo $ECHO_N "(cached) $ECHO_C" >&6
2561else
2562  if test -n "$ac_ct_CC"; then
2563  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2564else
2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566for as_dir in $PATH
2567do
2568  IFS=$as_save_IFS
2569  test -z "$as_dir" && as_dir=.
2570  for ac_exec_ext in '' $ac_executable_extensions; do
2571  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572    ac_cv_prog_ac_ct_CC="gcc"
2573    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574    break 2
2575  fi
2576done
2577done
2578IFS=$as_save_IFS
2579
2580fi
2581fi
2582ac_ct_CC=$ac_cv_prog_ac_ct_CC
2583if test -n "$ac_ct_CC"; then
2584  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2585echo "${ECHO_T}$ac_ct_CC" >&6; }
2586else
2587  { echo "$as_me:$LINENO: result: no" >&5
2588echo "${ECHO_T}no" >&6; }
2589fi
2590
2591  if test "x$ac_ct_CC" = x; then
2592    CC=""
2593  else
2594    case $cross_compiling:$ac_tool_warned in
2595yes:)
2596{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2597whose name does not start with the host triplet.  If you think this
2598configuration is useful to you, please write to autoconf@gnu.org." >&5
2599echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2600whose name does not start with the host triplet.  If you think this
2601configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2602ac_tool_warned=yes ;;
2603esac
2604    CC=$ac_ct_CC
2605  fi
2606else
2607  CC="$ac_cv_prog_CC"
2608fi
2609
2610if test -z "$CC"; then
2611          if test -n "$ac_tool_prefix"; then
2612    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2613set dummy ${ac_tool_prefix}cc; ac_word=$2
2614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2616if test "${ac_cv_prog_CC+set}" = set; then
2617  echo $ECHO_N "(cached) $ECHO_C" >&6
2618else
2619  if test -n "$CC"; then
2620  ac_cv_prog_CC="$CC" # Let the user override the test.
2621else
2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625  IFS=$as_save_IFS
2626  test -z "$as_dir" && as_dir=.
2627  for ac_exec_ext in '' $ac_executable_extensions; do
2628  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2629    ac_cv_prog_CC="${ac_tool_prefix}cc"
2630    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2631    break 2
2632  fi
2633done
2634done
2635IFS=$as_save_IFS
2636
2637fi
2638fi
2639CC=$ac_cv_prog_CC
2640if test -n "$CC"; then
2641  { echo "$as_me:$LINENO: result: $CC" >&5
2642echo "${ECHO_T}$CC" >&6; }
2643else
2644  { echo "$as_me:$LINENO: result: no" >&5
2645echo "${ECHO_T}no" >&6; }
2646fi
2647
2648
2649  fi
2650fi
2651if test -z "$CC"; then
2652  # Extract the first word of "cc", so it can be a program name with args.
2653set dummy cc; ac_word=$2
2654{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2656if test "${ac_cv_prog_CC+set}" = set; then
2657  echo $ECHO_N "(cached) $ECHO_C" >&6
2658else
2659  if test -n "$CC"; then
2660  ac_cv_prog_CC="$CC" # Let the user override the test.
2661else
2662  ac_prog_rejected=no
2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666  IFS=$as_save_IFS
2667  test -z "$as_dir" && as_dir=.
2668  for ac_exec_ext in '' $ac_executable_extensions; do
2669  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2671       ac_prog_rejected=yes
2672       continue
2673     fi
2674    ac_cv_prog_CC="cc"
2675    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676    break 2
2677  fi
2678done
2679done
2680IFS=$as_save_IFS
2681
2682if test $ac_prog_rejected = yes; then
2683  # We found a bogon in the path, so make sure we never use it.
2684  set dummy $ac_cv_prog_CC
2685  shift
2686  if test $# != 0; then
2687    # We chose a different compiler from the bogus one.
2688    # However, it has the same basename, so the bogon will be chosen
2689    # first if we set CC to just the basename; use the full file name.
2690    shift
2691    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2692  fi
2693fi
2694fi
2695fi
2696CC=$ac_cv_prog_CC
2697if test -n "$CC"; then
2698  { echo "$as_me:$LINENO: result: $CC" >&5
2699echo "${ECHO_T}$CC" >&6; }
2700else
2701  { echo "$as_me:$LINENO: result: no" >&5
2702echo "${ECHO_T}no" >&6; }
2703fi
2704
2705
2706fi
2707if test -z "$CC"; then
2708  if test -n "$ac_tool_prefix"; then
2709  for ac_prog in cl.exe
2710  do
2711    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2712set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2713{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2715if test "${ac_cv_prog_CC+set}" = set; then
2716  echo $ECHO_N "(cached) $ECHO_C" >&6
2717else
2718  if test -n "$CC"; then
2719  ac_cv_prog_CC="$CC" # Let the user override the test.
2720else
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724  IFS=$as_save_IFS
2725  test -z "$as_dir" && as_dir=.
2726  for ac_exec_ext in '' $ac_executable_extensions; do
2727  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2729    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730    break 2
2731  fi
2732done
2733done
2734IFS=$as_save_IFS
2735
2736fi
2737fi
2738CC=$ac_cv_prog_CC
2739if test -n "$CC"; then
2740  { echo "$as_me:$LINENO: result: $CC" >&5
2741echo "${ECHO_T}$CC" >&6; }
2742else
2743  { echo "$as_me:$LINENO: result: no" >&5
2744echo "${ECHO_T}no" >&6; }
2745fi
2746
2747
2748    test -n "$CC" && break
2749  done
2750fi
2751if test -z "$CC"; then
2752  ac_ct_CC=$CC
2753  for ac_prog in cl.exe
2754do
2755  # Extract the first word of "$ac_prog", so it can be a program name with args.
2756set dummy $ac_prog; ac_word=$2
2757{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2759if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2760  echo $ECHO_N "(cached) $ECHO_C" >&6
2761else
2762  if test -n "$ac_ct_CC"; then
2763  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2764else
2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766for as_dir in $PATH
2767do
2768  IFS=$as_save_IFS
2769  test -z "$as_dir" && as_dir=.
2770  for ac_exec_ext in '' $ac_executable_extensions; do
2771  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772    ac_cv_prog_ac_ct_CC="$ac_prog"
2773    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774    break 2
2775  fi
2776done
2777done
2778IFS=$as_save_IFS
2779
2780fi
2781fi
2782ac_ct_CC=$ac_cv_prog_ac_ct_CC
2783if test -n "$ac_ct_CC"; then
2784  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2785echo "${ECHO_T}$ac_ct_CC" >&6; }
2786else
2787  { echo "$as_me:$LINENO: result: no" >&5
2788echo "${ECHO_T}no" >&6; }
2789fi
2790
2791
2792  test -n "$ac_ct_CC" && break
2793done
2794
2795  if test "x$ac_ct_CC" = x; then
2796    CC=""
2797  else
2798    case $cross_compiling:$ac_tool_warned in
2799yes:)
2800{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2801whose name does not start with the host triplet.  If you think this
2802configuration is useful to you, please write to autoconf@gnu.org." >&5
2803echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2804whose name does not start with the host triplet.  If you think this
2805configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2806ac_tool_warned=yes ;;
2807esac
2808    CC=$ac_ct_CC
2809  fi
2810fi
2811
2812fi
2813
2814
2815test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2816See \`config.log' for more details." >&5
2817echo "$as_me: error: no acceptable C compiler found in \$PATH
2818See \`config.log' for more details." >&2;}
2819   { (exit 1); exit 1; }; }
2820
2821# Provide some information about the compiler.
2822echo "$as_me:$LINENO: checking for C compiler version" >&5
2823ac_compiler=`set X $ac_compile; echo $2`
2824{ (ac_try="$ac_compiler --version >&5"
2825case "(($ac_try" in
2826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827  *) ac_try_echo=$ac_try;;
2828esac
2829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830  (eval "$ac_compiler --version >&5") 2>&5
2831  ac_status=$?
2832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833  (exit $ac_status); }
2834{ (ac_try="$ac_compiler -v >&5"
2835case "(($ac_try" in
2836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837  *) ac_try_echo=$ac_try;;
2838esac
2839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840  (eval "$ac_compiler -v >&5") 2>&5
2841  ac_status=$?
2842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843  (exit $ac_status); }
2844{ (ac_try="$ac_compiler -V >&5"
2845case "(($ac_try" in
2846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847  *) ac_try_echo=$ac_try;;
2848esac
2849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850  (eval "$ac_compiler -V >&5") 2>&5
2851  ac_status=$?
2852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853  (exit $ac_status); }
2854
2855cat >conftest.$ac_ext <<_ACEOF
2856/* confdefs.h.  */
2857_ACEOF
2858cat confdefs.h >>conftest.$ac_ext
2859cat >>conftest.$ac_ext <<_ACEOF
2860/* end confdefs.h.  */
2861
2862int
2863main ()
2864{
2865
2866  ;
2867  return 0;
2868}
2869_ACEOF
2870ac_clean_files_save=$ac_clean_files
2871ac_clean_files="$ac_clean_files a.out a.exe b.out"
2872# Try to create an executable without -o first, disregard a.out.
2873# It will help us diagnose broken compilers, and finding out an intuition
2874# of exeext.
2875{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2876echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2877ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2878#
2879# List of possible output files, starting from the most likely.
2880# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2881# only as a last resort.  b.out is created by i960 compilers.
2882ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2883#
2884# The IRIX 6 linker writes into existing files which may not be
2885# executable, retaining their permissions.  Remove them first so a
2886# subsequent execution test works.
2887ac_rmfiles=
2888for ac_file in $ac_files
2889do
2890  case $ac_file in
2891    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2892    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2893  esac
2894done
2895rm -f $ac_rmfiles
2896
2897if { (ac_try="$ac_link_default"
2898case "(($ac_try" in
2899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900  *) ac_try_echo=$ac_try;;
2901esac
2902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903  (eval "$ac_link_default") 2>&5
2904  ac_status=$?
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); }; then
2907  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2908# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2909# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2910# so that the user can short-circuit this test for compilers unknown to
2911# Autoconf.
2912for ac_file in $ac_files ''
2913do
2914  test -f "$ac_file" || continue
2915  case $ac_file in
2916    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2917	;;
2918    [ab].out )
2919	# We found the default executable, but exeext='' is most
2920	# certainly right.
2921	break;;
2922    *.* )
2923        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2924	then :; else
2925	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2926	fi
2927	# We set ac_cv_exeext here because the later test for it is not
2928	# safe: cross compilers may not add the suffix if given an `-o'
2929	# argument, so we may need to know it at that point already.
2930	# Even if this section looks crufty: it has the advantage of
2931	# actually working.
2932	break;;
2933    * )
2934	break;;
2935  esac
2936done
2937test "$ac_cv_exeext" = no && ac_cv_exeext=
2938
2939else
2940  ac_file=''
2941fi
2942
2943{ echo "$as_me:$LINENO: result: $ac_file" >&5
2944echo "${ECHO_T}$ac_file" >&6; }
2945if test -z "$ac_file"; then
2946  echo "$as_me: failed program was:" >&5
2947sed 's/^/| /' conftest.$ac_ext >&5
2948
2949{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2950See \`config.log' for more details." >&5
2951echo "$as_me: error: C compiler cannot create executables
2952See \`config.log' for more details." >&2;}
2953   { (exit 77); exit 77; }; }
2954fi
2955
2956ac_exeext=$ac_cv_exeext
2957
2958# Check that the compiler produces executables we can run.  If not, either
2959# the compiler is broken, or we cross compile.
2960{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2961echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2962# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2963# If not cross compiling, check that we can run a simple program.
2964if test "$cross_compiling" != yes; then
2965  if { ac_try='./$ac_file'
2966  { (case "(($ac_try" in
2967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968  *) ac_try_echo=$ac_try;;
2969esac
2970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971  (eval "$ac_try") 2>&5
2972  ac_status=$?
2973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974  (exit $ac_status); }; }; then
2975    cross_compiling=no
2976  else
2977    if test "$cross_compiling" = maybe; then
2978	cross_compiling=yes
2979    else
2980	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2981If you meant to cross compile, use \`--host'.
2982See \`config.log' for more details." >&5
2983echo "$as_me: error: cannot run C compiled programs.
2984If you meant to cross compile, use \`--host'.
2985See \`config.log' for more details." >&2;}
2986   { (exit 1); exit 1; }; }
2987    fi
2988  fi
2989fi
2990{ echo "$as_me:$LINENO: result: yes" >&5
2991echo "${ECHO_T}yes" >&6; }
2992
2993rm -f a.out a.exe conftest$ac_cv_exeext b.out
2994ac_clean_files=$ac_clean_files_save
2995# Check that the compiler produces executables we can run.  If not, either
2996# the compiler is broken, or we cross compile.
2997{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2998echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2999{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3000echo "${ECHO_T}$cross_compiling" >&6; }
3001
3002{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3003echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3004if { (ac_try="$ac_link"
3005case "(($ac_try" in
3006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007  *) ac_try_echo=$ac_try;;
3008esac
3009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010  (eval "$ac_link") 2>&5
3011  ac_status=$?
3012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013  (exit $ac_status); }; then
3014  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3015# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3016# work properly (i.e., refer to `conftest.exe'), while it won't with
3017# `rm'.
3018for ac_file in conftest.exe conftest conftest.*; do
3019  test -f "$ac_file" || continue
3020  case $ac_file in
3021    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3022    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3023	  break;;
3024    * ) break;;
3025  esac
3026done
3027else
3028  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3029See \`config.log' for more details." >&5
3030echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3031See \`config.log' for more details." >&2;}
3032   { (exit 1); exit 1; }; }
3033fi
3034
3035rm -f conftest$ac_cv_exeext
3036{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3037echo "${ECHO_T}$ac_cv_exeext" >&6; }
3038
3039rm -f conftest.$ac_ext
3040EXEEXT=$ac_cv_exeext
3041ac_exeext=$EXEEXT
3042{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3043echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3044if test "${ac_cv_objext+set}" = set; then
3045  echo $ECHO_N "(cached) $ECHO_C" >&6
3046else
3047  cat >conftest.$ac_ext <<_ACEOF
3048/* confdefs.h.  */
3049_ACEOF
3050cat confdefs.h >>conftest.$ac_ext
3051cat >>conftest.$ac_ext <<_ACEOF
3052/* end confdefs.h.  */
3053
3054int
3055main ()
3056{
3057
3058  ;
3059  return 0;
3060}
3061_ACEOF
3062rm -f conftest.o conftest.obj
3063if { (ac_try="$ac_compile"
3064case "(($ac_try" in
3065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066  *) ac_try_echo=$ac_try;;
3067esac
3068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069  (eval "$ac_compile") 2>&5
3070  ac_status=$?
3071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072  (exit $ac_status); }; then
3073  for ac_file in conftest.o conftest.obj conftest.*; do
3074  test -f "$ac_file" || continue;
3075  case $ac_file in
3076    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3077    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3078       break;;
3079  esac
3080done
3081else
3082  echo "$as_me: failed program was:" >&5
3083sed 's/^/| /' conftest.$ac_ext >&5
3084
3085{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3086See \`config.log' for more details." >&5
3087echo "$as_me: error: cannot compute suffix of object files: cannot compile
3088See \`config.log' for more details." >&2;}
3089   { (exit 1); exit 1; }; }
3090fi
3091
3092rm -f conftest.$ac_cv_objext conftest.$ac_ext
3093fi
3094{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3095echo "${ECHO_T}$ac_cv_objext" >&6; }
3096OBJEXT=$ac_cv_objext
3097ac_objext=$OBJEXT
3098{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3099echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3100if test "${ac_cv_c_compiler_gnu+set}" = set; then
3101  echo $ECHO_N "(cached) $ECHO_C" >&6
3102else
3103  cat >conftest.$ac_ext <<_ACEOF
3104/* confdefs.h.  */
3105_ACEOF
3106cat confdefs.h >>conftest.$ac_ext
3107cat >>conftest.$ac_ext <<_ACEOF
3108/* end confdefs.h.  */
3109
3110int
3111main ()
3112{
3113#ifndef __GNUC__
3114       choke me
3115#endif
3116
3117  ;
3118  return 0;
3119}
3120_ACEOF
3121rm -f conftest.$ac_objext
3122if { (ac_try="$ac_compile"
3123case "(($ac_try" in
3124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125  *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128  (eval "$ac_compile") 2>conftest.er1
3129  ac_status=$?
3130  grep -v '^ *+' conftest.er1 >conftest.err
3131  rm -f conftest.er1
3132  cat conftest.err >&5
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); } && {
3135	 test -z "$ac_c_werror_flag" ||
3136	 test ! -s conftest.err
3137       } && test -s conftest.$ac_objext; then
3138  ac_compiler_gnu=yes
3139else
3140  echo "$as_me: failed program was:" >&5
3141sed 's/^/| /' conftest.$ac_ext >&5
3142
3143	ac_compiler_gnu=no
3144fi
3145
3146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147ac_cv_c_compiler_gnu=$ac_compiler_gnu
3148
3149fi
3150{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3151echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3152GCC=`test $ac_compiler_gnu = yes && echo yes`
3153ac_test_CFLAGS=${CFLAGS+set}
3154ac_save_CFLAGS=$CFLAGS
3155{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3156echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3157if test "${ac_cv_prog_cc_g+set}" = set; then
3158  echo $ECHO_N "(cached) $ECHO_C" >&6
3159else
3160  ac_save_c_werror_flag=$ac_c_werror_flag
3161   ac_c_werror_flag=yes
3162   ac_cv_prog_cc_g=no
3163   CFLAGS="-g"
3164   cat >conftest.$ac_ext <<_ACEOF
3165/* confdefs.h.  */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
3169/* end confdefs.h.  */
3170
3171int
3172main ()
3173{
3174
3175  ;
3176  return 0;
3177}
3178_ACEOF
3179rm -f conftest.$ac_objext
3180if { (ac_try="$ac_compile"
3181case "(($ac_try" in
3182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183  *) ac_try_echo=$ac_try;;
3184esac
3185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186  (eval "$ac_compile") 2>conftest.er1
3187  ac_status=$?
3188  grep -v '^ *+' conftest.er1 >conftest.err
3189  rm -f conftest.er1
3190  cat conftest.err >&5
3191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192  (exit $ac_status); } && {
3193	 test -z "$ac_c_werror_flag" ||
3194	 test ! -s conftest.err
3195       } && test -s conftest.$ac_objext; then
3196  ac_cv_prog_cc_g=yes
3197else
3198  echo "$as_me: failed program was:" >&5
3199sed 's/^/| /' conftest.$ac_ext >&5
3200
3201	CFLAGS=""
3202      cat >conftest.$ac_ext <<_ACEOF
3203/* confdefs.h.  */
3204_ACEOF
3205cat confdefs.h >>conftest.$ac_ext
3206cat >>conftest.$ac_ext <<_ACEOF
3207/* end confdefs.h.  */
3208
3209int
3210main ()
3211{
3212
3213  ;
3214  return 0;
3215}
3216_ACEOF
3217rm -f conftest.$ac_objext
3218if { (ac_try="$ac_compile"
3219case "(($ac_try" in
3220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221  *) ac_try_echo=$ac_try;;
3222esac
3223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224  (eval "$ac_compile") 2>conftest.er1
3225  ac_status=$?
3226  grep -v '^ *+' conftest.er1 >conftest.err
3227  rm -f conftest.er1
3228  cat conftest.err >&5
3229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230  (exit $ac_status); } && {
3231	 test -z "$ac_c_werror_flag" ||
3232	 test ! -s conftest.err
3233       } && test -s conftest.$ac_objext; then
3234  :
3235else
3236  echo "$as_me: failed program was:" >&5
3237sed 's/^/| /' conftest.$ac_ext >&5
3238
3239	ac_c_werror_flag=$ac_save_c_werror_flag
3240	 CFLAGS="-g"
3241	 cat >conftest.$ac_ext <<_ACEOF
3242/* confdefs.h.  */
3243_ACEOF
3244cat confdefs.h >>conftest.$ac_ext
3245cat >>conftest.$ac_ext <<_ACEOF
3246/* end confdefs.h.  */
3247
3248int
3249main ()
3250{
3251
3252  ;
3253  return 0;
3254}
3255_ACEOF
3256rm -f conftest.$ac_objext
3257if { (ac_try="$ac_compile"
3258case "(($ac_try" in
3259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260  *) ac_try_echo=$ac_try;;
3261esac
3262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263  (eval "$ac_compile") 2>conftest.er1
3264  ac_status=$?
3265  grep -v '^ *+' conftest.er1 >conftest.err
3266  rm -f conftest.er1
3267  cat conftest.err >&5
3268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269  (exit $ac_status); } && {
3270	 test -z "$ac_c_werror_flag" ||
3271	 test ! -s conftest.err
3272       } && test -s conftest.$ac_objext; then
3273  ac_cv_prog_cc_g=yes
3274else
3275  echo "$as_me: failed program was:" >&5
3276sed 's/^/| /' conftest.$ac_ext >&5
3277
3278
3279fi
3280
3281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282fi
3283
3284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285fi
3286
3287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288   ac_c_werror_flag=$ac_save_c_werror_flag
3289fi
3290{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3291echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3292if test "$ac_test_CFLAGS" = set; then
3293  CFLAGS=$ac_save_CFLAGS
3294elif test $ac_cv_prog_cc_g = yes; then
3295  if test "$GCC" = yes; then
3296    CFLAGS="-g -O2"
3297  else
3298    CFLAGS="-g"
3299  fi
3300else
3301  if test "$GCC" = yes; then
3302    CFLAGS="-O2"
3303  else
3304    CFLAGS=
3305  fi
3306fi
3307{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3308echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3309if test "${ac_cv_prog_cc_c89+set}" = set; then
3310  echo $ECHO_N "(cached) $ECHO_C" >&6
3311else
3312  ac_cv_prog_cc_c89=no
3313ac_save_CC=$CC
3314cat >conftest.$ac_ext <<_ACEOF
3315/* confdefs.h.  */
3316_ACEOF
3317cat confdefs.h >>conftest.$ac_ext
3318cat >>conftest.$ac_ext <<_ACEOF
3319/* end confdefs.h.  */
3320#include <stdarg.h>
3321#include <stdio.h>
3322#include <sys/types.h>
3323#include <sys/stat.h>
3324/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3325struct buf { int x; };
3326FILE * (*rcsopen) (struct buf *, struct stat *, int);
3327static char *e (p, i)
3328     char **p;
3329     int i;
3330{
3331  return p[i];
3332}
3333static char *f (char * (*g) (char **, int), char **p, ...)
3334{
3335  char *s;
3336  va_list v;
3337  va_start (v,p);
3338  s = g (p, va_arg (v,int));
3339  va_end (v);
3340  return s;
3341}
3342
3343/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3344   function prototypes and stuff, but not '\xHH' hex character constants.
3345   These don't provoke an error unfortunately, instead are silently treated
3346   as 'x'.  The following induces an error, until -std is added to get
3347   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3348   array size at least.  It's necessary to write '\x00'==0 to get something
3349   that's true only with -std.  */
3350int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3351
3352/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3353   inside strings and character constants.  */
3354#define FOO(x) 'x'
3355int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3356
3357int test (int i, double x);
3358struct s1 {int (*f) (int a);};
3359struct s2 {int (*f) (double a);};
3360int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3361int argc;
3362char **argv;
3363int
3364main ()
3365{
3366return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3367  ;
3368  return 0;
3369}
3370_ACEOF
3371for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3372	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3373do
3374  CC="$ac_save_CC $ac_arg"
3375  rm -f conftest.$ac_objext
3376if { (ac_try="$ac_compile"
3377case "(($ac_try" in
3378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379  *) ac_try_echo=$ac_try;;
3380esac
3381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382  (eval "$ac_compile") 2>conftest.er1
3383  ac_status=$?
3384  grep -v '^ *+' conftest.er1 >conftest.err
3385  rm -f conftest.er1
3386  cat conftest.err >&5
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); } && {
3389	 test -z "$ac_c_werror_flag" ||
3390	 test ! -s conftest.err
3391       } && test -s conftest.$ac_objext; then
3392  ac_cv_prog_cc_c89=$ac_arg
3393else
3394  echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
3397
3398fi
3399
3400rm -f core conftest.err conftest.$ac_objext
3401  test "x$ac_cv_prog_cc_c89" != "xno" && break
3402done
3403rm -f conftest.$ac_ext
3404CC=$ac_save_CC
3405
3406fi
3407# AC_CACHE_VAL
3408case "x$ac_cv_prog_cc_c89" in
3409  x)
3410    { echo "$as_me:$LINENO: result: none needed" >&5
3411echo "${ECHO_T}none needed" >&6; } ;;
3412  xno)
3413    { echo "$as_me:$LINENO: result: unsupported" >&5
3414echo "${ECHO_T}unsupported" >&6; } ;;
3415  *)
3416    CC="$CC $ac_cv_prog_cc_c89"
3417    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3418echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3419esac
3420
3421
3422ac_ext=c
3423ac_cpp='$CPP $CPPFLAGS'
3424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427DEPDIR="${am__leading_dot}deps"
3428
3429ac_config_commands="$ac_config_commands depfiles"
3430
3431
3432am_make=${MAKE-make}
3433cat > confinc << 'END'
3434am__doit:
3435	@echo done
3436.PHONY: am__doit
3437END
3438# If we don't find an include directive, just comment out the code.
3439{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3440echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3441am__include="#"
3442am__quote=
3443_am_result=none
3444# First try GNU make style include.
3445echo "include confinc" > confmf
3446# We grep out `Entering directory' and `Leaving directory'
3447# messages which can occur if `w' ends up in MAKEFLAGS.
3448# In particular we don't look at `^make:' because GNU make might
3449# be invoked under some other name (usually "gmake"), in which
3450# case it prints its new name instead of `make'.
3451if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3452   am__include=include
3453   am__quote=
3454   _am_result=GNU
3455fi
3456# Now try BSD make style include.
3457if test "$am__include" = "#"; then
3458   echo '.include "confinc"' > confmf
3459   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3460      am__include=.include
3461      am__quote="\""
3462      _am_result=BSD
3463   fi
3464fi
3465
3466
3467{ echo "$as_me:$LINENO: result: $_am_result" >&5
3468echo "${ECHO_T}$_am_result" >&6; }
3469rm -f confinc confmf
3470
3471# Check whether --enable-dependency-tracking was given.
3472if test "${enable_dependency_tracking+set}" = set; then
3473  enableval=$enable_dependency_tracking;
3474fi
3475
3476if test "x$enable_dependency_tracking" != xno; then
3477  am_depcomp="$ac_aux_dir/depcomp"
3478  AMDEPBACKSLASH='\'
3479fi
3480 if test "x$enable_dependency_tracking" != xno; then
3481  AMDEP_TRUE=
3482  AMDEP_FALSE='#'
3483else
3484  AMDEP_TRUE='#'
3485  AMDEP_FALSE=
3486fi
3487
3488
3489
3490depcc="$CC"   am_compiler_list=
3491
3492{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3493echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3494if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3495  echo $ECHO_N "(cached) $ECHO_C" >&6
3496else
3497  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3498  # We make a subdir and do the tests there.  Otherwise we can end up
3499  # making bogus files that we don't know about and never remove.  For
3500  # instance it was reported that on HP-UX the gcc test will end up
3501  # making a dummy file named `D' -- because `-MD' means `put the output
3502  # in D'.
3503  mkdir conftest.dir
3504  # Copy depcomp to subdir because otherwise we won't find it if we're
3505  # using a relative directory.
3506  cp "$am_depcomp" conftest.dir
3507  cd conftest.dir
3508  # We will build objects and dependencies in a subdirectory because
3509  # it helps to detect inapplicable dependency modes.  For instance
3510  # both Tru64's cc and ICC support -MD to output dependencies as a
3511  # side effect of compilation, but ICC will put the dependencies in
3512  # the current directory while Tru64 will put them in the object
3513  # directory.
3514  mkdir sub
3515
3516  am_cv_CC_dependencies_compiler_type=none
3517  if test "$am_compiler_list" = ""; then
3518     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3519  fi
3520  for depmode in $am_compiler_list; do
3521    # Setup a source with many dependencies, because some compilers
3522    # like to wrap large dependency lists on column 80 (with \), and
3523    # we should not choose a depcomp mode which is confused by this.
3524    #
3525    # We need to recreate these files for each test, as the compiler may
3526    # overwrite some of them when testing with obscure command lines.
3527    # This happens at least with the AIX C compiler.
3528    : > sub/conftest.c
3529    for i in 1 2 3 4 5 6; do
3530      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3531      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3532      # Solaris 8's {/usr,}/bin/sh.
3533      touch sub/conftst$i.h
3534    done
3535    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3536
3537    case $depmode in
3538    nosideeffect)
3539      # after this tag, mechanisms are not by side-effect, so they'll
3540      # only be used when explicitly requested
3541      if test "x$enable_dependency_tracking" = xyes; then
3542	continue
3543      else
3544	break
3545      fi
3546      ;;
3547    none) break ;;
3548    esac
3549    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3550    # mode.  It turns out that the SunPro C++ compiler does not properly
3551    # handle `-M -o', and we need to detect this.
3552    if depmode=$depmode \
3553       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3554       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3555       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3556         >/dev/null 2>conftest.err &&
3557       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3558       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3559       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3560       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3561      # icc doesn't choke on unknown options, it will just issue warnings
3562      # or remarks (even with -Werror).  So we grep stderr for any message
3563      # that says an option was ignored or not supported.
3564      # When given -MP, icc 7.0 and 7.1 complain thusly:
3565      #   icc: Command line warning: ignoring option '-M'; no argument required
3566      # The diagnosis changed in icc 8.0:
3567      #   icc: Command line remark: option '-MP' not supported
3568      if (grep 'ignoring option' conftest.err ||
3569          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3570        am_cv_CC_dependencies_compiler_type=$depmode
3571        break
3572      fi
3573    fi
3574  done
3575
3576  cd ..
3577  rm -rf conftest.dir
3578else
3579  am_cv_CC_dependencies_compiler_type=none
3580fi
3581
3582fi
3583{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3584echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3585CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3586
3587 if
3588  test "x$enable_dependency_tracking" != xno \
3589  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3590  am__fastdepCC_TRUE=
3591  am__fastdepCC_FALSE='#'
3592else
3593  am__fastdepCC_TRUE='#'
3594  am__fastdepCC_FALSE=
3595fi
3596
3597
3598# Check whether --enable-shared was given.
3599if test "${enable_shared+set}" = set; then
3600  enableval=$enable_shared; p=${PACKAGE-default}
3601    case $enableval in
3602    yes) enable_shared=yes ;;
3603    no) enable_shared=no ;;
3604    *)
3605      enable_shared=no
3606      # Look at the argument we got.  We use all the common list separators.
3607      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3608      for pkg in $enableval; do
3609	IFS="$lt_save_ifs"
3610	if test "X$pkg" = "X$p"; then
3611	  enable_shared=yes
3612	fi
3613      done
3614      IFS="$lt_save_ifs"
3615      ;;
3616    esac
3617else
3618  enable_shared=yes
3619fi
3620
3621
3622# Check whether --enable-static was given.
3623if test "${enable_static+set}" = set; then
3624  enableval=$enable_static; p=${PACKAGE-default}
3625    case $enableval in
3626    yes) enable_static=yes ;;
3627    no) enable_static=no ;;
3628    *)
3629     enable_static=no
3630      # Look at the argument we got.  We use all the common list separators.
3631      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3632      for pkg in $enableval; do
3633	IFS="$lt_save_ifs"
3634	if test "X$pkg" = "X$p"; then
3635	  enable_static=yes
3636	fi
3637      done
3638      IFS="$lt_save_ifs"
3639      ;;
3640    esac
3641else
3642  enable_static=yes
3643fi
3644
3645
3646# Check whether --enable-fast-install was given.
3647if test "${enable_fast_install+set}" = set; then
3648  enableval=$enable_fast_install; p=${PACKAGE-default}
3649    case $enableval in
3650    yes) enable_fast_install=yes ;;
3651    no) enable_fast_install=no ;;
3652    *)
3653      enable_fast_install=no
3654      # Look at the argument we got.  We use all the common list separators.
3655      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3656      for pkg in $enableval; do
3657	IFS="$lt_save_ifs"
3658	if test "X$pkg" = "X$p"; then
3659	  enable_fast_install=yes
3660	fi
3661      done
3662      IFS="$lt_save_ifs"
3663      ;;
3664    esac
3665else
3666  enable_fast_install=yes
3667fi
3668
3669
3670# Make sure we can run config.sub.
3671$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3672  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3673echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3674   { (exit 1); exit 1; }; }
3675
3676{ echo "$as_me:$LINENO: checking build system type" >&5
3677echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3678if test "${ac_cv_build+set}" = set; then
3679  echo $ECHO_N "(cached) $ECHO_C" >&6
3680else
3681  ac_build_alias=$build_alias
3682test "x$ac_build_alias" = x &&
3683  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3684test "x$ac_build_alias" = x &&
3685  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3686echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3687   { (exit 1); exit 1; }; }
3688ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3689  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3690echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3691   { (exit 1); exit 1; }; }
3692
3693fi
3694{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3695echo "${ECHO_T}$ac_cv_build" >&6; }
3696case $ac_cv_build in
3697*-*-*) ;;
3698*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3699echo "$as_me: error: invalid value of canonical build" >&2;}
3700   { (exit 1); exit 1; }; };;
3701esac
3702build=$ac_cv_build
3703ac_save_IFS=$IFS; IFS='-'
3704set x $ac_cv_build
3705shift
3706build_cpu=$1
3707build_vendor=$2
3708shift; shift
3709# Remember, the first character of IFS is used to create $*,
3710# except with old shells:
3711build_os=$*
3712IFS=$ac_save_IFS
3713case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3714
3715
3716{ echo "$as_me:$LINENO: checking host system type" >&5
3717echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3718if test "${ac_cv_host+set}" = set; then
3719  echo $ECHO_N "(cached) $ECHO_C" >&6
3720else
3721  if test "x$host_alias" = x; then
3722  ac_cv_host=$ac_cv_build
3723else
3724  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3725    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3726echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3727   { (exit 1); exit 1; }; }
3728fi
3729
3730fi
3731{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3732echo "${ECHO_T}$ac_cv_host" >&6; }
3733case $ac_cv_host in
3734*-*-*) ;;
3735*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3736echo "$as_me: error: invalid value of canonical host" >&2;}
3737   { (exit 1); exit 1; }; };;
3738esac
3739host=$ac_cv_host
3740ac_save_IFS=$IFS; IFS='-'
3741set x $ac_cv_host
3742shift
3743host_cpu=$1
3744host_vendor=$2
3745shift; shift
3746# Remember, the first character of IFS is used to create $*,
3747# except with old shells:
3748host_os=$*
3749IFS=$ac_save_IFS
3750case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3751
3752
3753{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3754echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3755if test "${lt_cv_path_SED+set}" = set; then
3756  echo $ECHO_N "(cached) $ECHO_C" >&6
3757else
3758  # Loop through the user's path and test for sed and gsed.
3759# Then use that list of sed's as ones to test for truncation.
3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761for as_dir in $PATH
3762do
3763  IFS=$as_save_IFS
3764  test -z "$as_dir" && as_dir=.
3765  for lt_ac_prog in sed gsed; do
3766    for ac_exec_ext in '' $ac_executable_extensions; do
3767      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3768        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3769      fi
3770    done
3771  done
3772done
3773lt_ac_max=0
3774lt_ac_count=0
3775# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3776# along with /bin/sed that truncates output.
3777for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3778  test ! -f $lt_ac_sed && continue
3779  cat /dev/null > conftest.in
3780  lt_ac_count=0
3781  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3782  # Check for GNU sed and select it if it is found.
3783  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3784    lt_cv_path_SED=$lt_ac_sed
3785    break
3786  fi
3787  while true; do
3788    cat conftest.in conftest.in >conftest.tmp
3789    mv conftest.tmp conftest.in
3790    cp conftest.in conftest.nl
3791    echo >>conftest.nl
3792    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3793    cmp -s conftest.out conftest.nl || break
3794    # 10000 chars as input seems more than enough
3795    test $lt_ac_count -gt 10 && break
3796    lt_ac_count=`expr $lt_ac_count + 1`
3797    if test $lt_ac_count -gt $lt_ac_max; then
3798      lt_ac_max=$lt_ac_count
3799      lt_cv_path_SED=$lt_ac_sed
3800    fi
3801  done
3802done
3803
3804fi
3805
3806SED=$lt_cv_path_SED
3807{ echo "$as_me:$LINENO: result: $SED" >&5
3808echo "${ECHO_T}$SED" >&6; }
3809
3810{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3811echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3812if test "${ac_cv_path_GREP+set}" = set; then
3813  echo $ECHO_N "(cached) $ECHO_C" >&6
3814else
3815  # Extract the first word of "grep ggrep" to use in msg output
3816if test -z "$GREP"; then
3817set dummy grep ggrep; ac_prog_name=$2
3818if test "${ac_cv_path_GREP+set}" = set; then
3819  echo $ECHO_N "(cached) $ECHO_C" >&6
3820else
3821  ac_path_GREP_found=false
3822# Loop through the user's path and test for each of PROGNAME-LIST
3823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3825do
3826  IFS=$as_save_IFS
3827  test -z "$as_dir" && as_dir=.
3828  for ac_prog in grep ggrep; do
3829  for ac_exec_ext in '' $ac_executable_extensions; do
3830    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3831    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3832    # Check for GNU ac_path_GREP and select it if it is found.
3833  # Check for GNU $ac_path_GREP
3834case `"$ac_path_GREP" --version 2>&1` in
3835*GNU*)
3836  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3837*)
3838  ac_count=0
3839  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3840  while :
3841  do
3842    cat "conftest.in" "conftest.in" >"conftest.tmp"
3843    mv "conftest.tmp" "conftest.in"
3844    cp "conftest.in" "conftest.nl"
3845    echo 'GREP' >> "conftest.nl"
3846    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3847    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3848    ac_count=`expr $ac_count + 1`
3849    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3850      # Best one so far, save it but keep looking for a better one
3851      ac_cv_path_GREP="$ac_path_GREP"
3852      ac_path_GREP_max=$ac_count
3853    fi
3854    # 10*(2^10) chars as input seems more than enough
3855    test $ac_count -gt 10 && break
3856  done
3857  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3858esac
3859
3860
3861    $ac_path_GREP_found && break 3
3862  done
3863done
3864
3865done
3866IFS=$as_save_IFS
3867
3868
3869fi
3870
3871GREP="$ac_cv_path_GREP"
3872if test -z "$GREP"; then
3873  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3874echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3875   { (exit 1); exit 1; }; }
3876fi
3877
3878else
3879  ac_cv_path_GREP=$GREP
3880fi
3881
3882
3883fi
3884{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3885echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3886 GREP="$ac_cv_path_GREP"
3887
3888
3889{ echo "$as_me:$LINENO: checking for egrep" >&5
3890echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3891if test "${ac_cv_path_EGREP+set}" = set; then
3892  echo $ECHO_N "(cached) $ECHO_C" >&6
3893else
3894  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3895   then ac_cv_path_EGREP="$GREP -E"
3896   else
3897     # Extract the first word of "egrep" to use in msg output
3898if test -z "$EGREP"; then
3899set dummy egrep; ac_prog_name=$2
3900if test "${ac_cv_path_EGREP+set}" = set; then
3901  echo $ECHO_N "(cached) $ECHO_C" >&6
3902else
3903  ac_path_EGREP_found=false
3904# Loop through the user's path and test for each of PROGNAME-LIST
3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3907do
3908  IFS=$as_save_IFS
3909  test -z "$as_dir" && as_dir=.
3910  for ac_prog in egrep; do
3911  for ac_exec_ext in '' $ac_executable_extensions; do
3912    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3913    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3914    # Check for GNU ac_path_EGREP and select it if it is found.
3915  # Check for GNU $ac_path_EGREP
3916case `"$ac_path_EGREP" --version 2>&1` in
3917*GNU*)
3918  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3919*)
3920  ac_count=0
3921  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3922  while :
3923  do
3924    cat "conftest.in" "conftest.in" >"conftest.tmp"
3925    mv "conftest.tmp" "conftest.in"
3926    cp "conftest.in" "conftest.nl"
3927    echo 'EGREP' >> "conftest.nl"
3928    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3929    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3930    ac_count=`expr $ac_count + 1`
3931    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3932      # Best one so far, save it but keep looking for a better one
3933      ac_cv_path_EGREP="$ac_path_EGREP"
3934      ac_path_EGREP_max=$ac_count
3935    fi
3936    # 10*(2^10) chars as input seems more than enough
3937    test $ac_count -gt 10 && break
3938  done
3939  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3940esac
3941
3942
3943    $ac_path_EGREP_found && break 3
3944  done
3945done
3946
3947done
3948IFS=$as_save_IFS
3949
3950
3951fi
3952
3953EGREP="$ac_cv_path_EGREP"
3954if test -z "$EGREP"; then
3955  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3956echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3957   { (exit 1); exit 1; }; }
3958fi
3959
3960else
3961  ac_cv_path_EGREP=$EGREP
3962fi
3963
3964
3965   fi
3966fi
3967{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3968echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3969 EGREP="$ac_cv_path_EGREP"
3970
3971
3972
3973# Check whether --with-gnu-ld was given.
3974if test "${with_gnu_ld+set}" = set; then
3975  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3976else
3977  with_gnu_ld=no
3978fi
3979
3980ac_prog=ld
3981if test "$GCC" = yes; then
3982  # Check if gcc -print-prog-name=ld gives a path.
3983  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3984echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3985  case $host in
3986  *-*-mingw*)
3987    # gcc leaves a trailing carriage return which upsets mingw
3988    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3989  *)
3990    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3991  esac
3992  case $ac_prog in
3993    # Accept absolute paths.
3994    [\\/]* | ?:[\\/]*)
3995      re_direlt='/[^/][^/]*/\.\./'
3996      # Canonicalize the pathname of ld
3997      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3998      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3999	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4000      done
4001      test -z "$LD" && LD="$ac_prog"
4002      ;;
4003  "")
4004    # If it fails, then pretend we aren't using GCC.
4005    ac_prog=ld
4006    ;;
4007  *)
4008    # If it is relative, then search for the first ld in PATH.
4009    with_gnu_ld=unknown
4010    ;;
4011  esac
4012elif test "$with_gnu_ld" = yes; then
4013  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4014echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4015else
4016  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4017echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4018fi
4019if test "${lt_cv_path_LD+set}" = set; then
4020  echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
4022  if test -z "$LD"; then
4023  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4024  for ac_dir in $PATH; do
4025    IFS="$lt_save_ifs"
4026    test -z "$ac_dir" && ac_dir=.
4027    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4028      lt_cv_path_LD="$ac_dir/$ac_prog"
4029      # Check to see if the program is GNU ld.  I'd rather use --version,
4030      # but apparently some variants of GNU ld only accept -v.
4031      # Break only if it was the GNU/non-GNU ld that we prefer.
4032      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4033      *GNU* | *'with BFD'*)
4034	test "$with_gnu_ld" != no && break
4035	;;
4036      *)
4037	test "$with_gnu_ld" != yes && break
4038	;;
4039      esac
4040    fi
4041  done
4042  IFS="$lt_save_ifs"
4043else
4044  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4045fi
4046fi
4047
4048LD="$lt_cv_path_LD"
4049if test -n "$LD"; then
4050  { echo "$as_me:$LINENO: result: $LD" >&5
4051echo "${ECHO_T}$LD" >&6; }
4052else
4053  { echo "$as_me:$LINENO: result: no" >&5
4054echo "${ECHO_T}no" >&6; }
4055fi
4056test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4057echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4058   { (exit 1); exit 1; }; }
4059{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4060echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4061if test "${lt_cv_prog_gnu_ld+set}" = set; then
4062  echo $ECHO_N "(cached) $ECHO_C" >&6
4063else
4064  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4065case `$LD -v 2>&1 </dev/null` in
4066*GNU* | *'with BFD'*)
4067  lt_cv_prog_gnu_ld=yes
4068  ;;
4069*)
4070  lt_cv_prog_gnu_ld=no
4071  ;;
4072esac
4073fi
4074{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4075echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4076with_gnu_ld=$lt_cv_prog_gnu_ld
4077
4078
4079{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4080echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4081if test "${lt_cv_ld_reload_flag+set}" = set; then
4082  echo $ECHO_N "(cached) $ECHO_C" >&6
4083else
4084  lt_cv_ld_reload_flag='-r'
4085fi
4086{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4087echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4088reload_flag=$lt_cv_ld_reload_flag
4089case $reload_flag in
4090"" | " "*) ;;
4091*) reload_flag=" $reload_flag" ;;
4092esac
4093reload_cmds='$LD$reload_flag -o $output$reload_objs'
4094case $host_os in
4095  darwin*)
4096    if test "$GCC" = yes; then
4097      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4098    else
4099      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4100    fi
4101    ;;
4102esac
4103
4104{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4105echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4106if test "${lt_cv_path_NM+set}" = set; then
4107  echo $ECHO_N "(cached) $ECHO_C" >&6
4108else
4109  if test -n "$NM"; then
4110  # Let the user override the test.
4111  lt_cv_path_NM="$NM"
4112else
4113  lt_nm_to_check="${ac_tool_prefix}nm"
4114  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4115    lt_nm_to_check="$lt_nm_to_check nm"
4116  fi
4117  for lt_tmp_nm in $lt_nm_to_check; do
4118    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4119    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4120      IFS="$lt_save_ifs"
4121      test -z "$ac_dir" && ac_dir=.
4122      tmp_nm="$ac_dir/$lt_tmp_nm"
4123      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4124	# Check to see if the nm accepts a BSD-compat flag.
4125	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4126	#   nm: unknown option "B" ignored
4127	# Tru64's nm complains that /dev/null is an invalid object file
4128	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4129	*/dev/null* | *'Invalid file or object type'*)
4130	  lt_cv_path_NM="$tmp_nm -B"
4131	  break
4132	  ;;
4133	*)
4134	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4135	  */dev/null*)
4136	    lt_cv_path_NM="$tmp_nm -p"
4137	    break
4138	    ;;
4139	  *)
4140	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4141	    continue # so that we can try to find one that supports BSD flags
4142	    ;;
4143	  esac
4144	  ;;
4145	esac
4146      fi
4147    done
4148    IFS="$lt_save_ifs"
4149  done
4150  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4151fi
4152fi
4153{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4154echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4155NM="$lt_cv_path_NM"
4156
4157{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4158echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4159LN_S=$as_ln_s
4160if test "$LN_S" = "ln -s"; then
4161  { echo "$as_me:$LINENO: result: yes" >&5
4162echo "${ECHO_T}yes" >&6; }
4163else
4164  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4165echo "${ECHO_T}no, using $LN_S" >&6; }
4166fi
4167
4168{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4169echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4170if test "${lt_cv_deplibs_check_method+set}" = set; then
4171  echo $ECHO_N "(cached) $ECHO_C" >&6
4172else
4173  lt_cv_file_magic_cmd='$MAGIC_CMD'
4174lt_cv_file_magic_test_file=
4175lt_cv_deplibs_check_method='unknown'
4176# Need to set the preceding variable on all platforms that support
4177# interlibrary dependencies.
4178# 'none' -- dependencies not supported.
4179# `unknown' -- same as none, but documents that we really don't know.
4180# 'pass_all' -- all dependencies passed with no checks.
4181# 'test_compile' -- check by making test program.
4182# 'file_magic [[regex]]' -- check by looking for files in library path
4183# which responds to the $file_magic_cmd with a given extended regex.
4184# If you have `file' or equivalent on your system and you're not sure
4185# whether `pass_all' will *always* work, you probably want this one.
4186
4187case $host_os in
4188aix4* | aix5*)
4189  lt_cv_deplibs_check_method=pass_all
4190  ;;
4191
4192beos*)
4193  lt_cv_deplibs_check_method=pass_all
4194  ;;
4195
4196bsdi[45]*)
4197  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4198  lt_cv_file_magic_cmd='/usr/bin/file -L'
4199  lt_cv_file_magic_test_file=/shlib/libc.so
4200  ;;
4201
4202cygwin*)
4203  # func_win32_libid is a shell function defined in ltmain.sh
4204  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4205  lt_cv_file_magic_cmd='func_win32_libid'
4206  ;;
4207
4208mingw* | pw32*)
4209  # Base MSYS/MinGW do not provide the 'file' command needed by
4210  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4211  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4212  lt_cv_file_magic_cmd='$OBJDUMP -f'
4213  ;;
4214
4215darwin* | rhapsody*)
4216  lt_cv_deplibs_check_method=pass_all
4217  ;;
4218
4219freebsd* | kfreebsd*-gnu | dragonfly*)
4220  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4221    case $host_cpu in
4222    i*86 )
4223      # Not sure whether the presence of OpenBSD here was a mistake.
4224      # Let's accept both of them until this is cleared up.
4225      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4226      lt_cv_file_magic_cmd=/usr/bin/file
4227      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4228      ;;
4229    esac
4230  else
4231    lt_cv_deplibs_check_method=pass_all
4232  fi
4233  ;;
4234
4235gnu*)
4236  lt_cv_deplibs_check_method=pass_all
4237  ;;
4238
4239hpux10.20* | hpux11*)
4240  lt_cv_file_magic_cmd=/usr/bin/file
4241  case $host_cpu in
4242  ia64*)
4243    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4244    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4245    ;;
4246  hppa*64*)
4247    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]'
4248    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4249    ;;
4250  *)
4251    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4252    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4253    ;;
4254  esac
4255  ;;
4256
4257interix3*)
4258  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4259  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4260  ;;
4261
4262irix5* | irix6* | nonstopux*)
4263  case $LD in
4264  *-32|*"-32 ") libmagic=32-bit;;
4265  *-n32|*"-n32 ") libmagic=N32;;
4266  *-64|*"-64 ") libmagic=64-bit;;
4267  *) libmagic=never-match;;
4268  esac
4269  lt_cv_deplibs_check_method=pass_all
4270  ;;
4271
4272# This must be Linux ELF.
4273linux*)
4274  lt_cv_deplibs_check_method=pass_all
4275  ;;
4276
4277netbsd*)
4278  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4279    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4280  else
4281    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4282  fi
4283  ;;
4284
4285newos6*)
4286  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4287  lt_cv_file_magic_cmd=/usr/bin/file
4288  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4289  ;;
4290
4291nto-qnx*)
4292  lt_cv_deplibs_check_method=unknown
4293  ;;
4294
4295openbsd*)
4296  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4297    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4298  else
4299    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4300  fi
4301  ;;
4302
4303osf3* | osf4* | osf5*)
4304  lt_cv_deplibs_check_method=pass_all
4305  ;;
4306
4307solaris*)
4308  lt_cv_deplibs_check_method=pass_all
4309  ;;
4310
4311sysv4 | sysv4.3*)
4312  case $host_vendor in
4313  motorola)
4314    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]'
4315    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4316    ;;
4317  ncr)
4318    lt_cv_deplibs_check_method=pass_all
4319    ;;
4320  sequent)
4321    lt_cv_file_magic_cmd='/bin/file'
4322    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4323    ;;
4324  sni)
4325    lt_cv_file_magic_cmd='/bin/file'
4326    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4327    lt_cv_file_magic_test_file=/lib/libc.so
4328    ;;
4329  siemens)
4330    lt_cv_deplibs_check_method=pass_all
4331    ;;
4332  pc)
4333    lt_cv_deplibs_check_method=pass_all
4334    ;;
4335  esac
4336  ;;
4337
4338sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4339  lt_cv_deplibs_check_method=pass_all
4340  ;;
4341esac
4342
4343fi
4344{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4345echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4346file_magic_cmd=$lt_cv_file_magic_cmd
4347deplibs_check_method=$lt_cv_deplibs_check_method
4348test -z "$deplibs_check_method" && deplibs_check_method=unknown
4349
4350
4351
4352
4353# If no C compiler was specified, use CC.
4354LTCC=${LTCC-"$CC"}
4355
4356# If no C compiler flags were specified, use CFLAGS.
4357LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4358
4359# Allow CC to be a program name with arguments.
4360compiler=$CC
4361
4362
4363# Check whether --enable-libtool-lock was given.
4364if test "${enable_libtool_lock+set}" = set; then
4365  enableval=$enable_libtool_lock;
4366fi
4367
4368test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4369
4370# Some flags need to be propagated to the compiler or linker for good
4371# libtool support.
4372case $host in
4373ia64-*-hpux*)
4374  # Find out which ABI we are using.
4375  echo 'int i;' > conftest.$ac_ext
4376  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4377  (eval $ac_compile) 2>&5
4378  ac_status=$?
4379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380  (exit $ac_status); }; then
4381    case `/usr/bin/file conftest.$ac_objext` in
4382    *ELF-32*)
4383      HPUX_IA64_MODE="32"
4384      ;;
4385    *ELF-64*)
4386      HPUX_IA64_MODE="64"
4387      ;;
4388    esac
4389  fi
4390  rm -rf conftest*
4391  ;;
4392*-*-irix6*)
4393  # Find out which ABI we are using.
4394  echo '#line 4394 "configure"' > conftest.$ac_ext
4395  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396  (eval $ac_compile) 2>&5
4397  ac_status=$?
4398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399  (exit $ac_status); }; then
4400   if test "$lt_cv_prog_gnu_ld" = yes; then
4401    case `/usr/bin/file conftest.$ac_objext` in
4402    *32-bit*)
4403      LD="${LD-ld} -melf32bsmip"
4404      ;;
4405    *N32*)
4406      LD="${LD-ld} -melf32bmipn32"
4407      ;;
4408    *64-bit*)
4409      LD="${LD-ld} -melf64bmip"
4410      ;;
4411    esac
4412   else
4413    case `/usr/bin/file conftest.$ac_objext` in
4414    *32-bit*)
4415      LD="${LD-ld} -32"
4416      ;;
4417    *N32*)
4418      LD="${LD-ld} -n32"
4419      ;;
4420    *64-bit*)
4421      LD="${LD-ld} -64"
4422      ;;
4423    esac
4424   fi
4425  fi
4426  rm -rf conftest*
4427  ;;
4428
4429x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4430  # Find out which ABI we are using.
4431  echo 'int i;' > conftest.$ac_ext
4432  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433  (eval $ac_compile) 2>&5
4434  ac_status=$?
4435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436  (exit $ac_status); }; then
4437    case `/usr/bin/file conftest.o` in
4438    *32-bit*)
4439      case $host in
4440        x86_64-*linux*)
4441          LD="${LD-ld} -m elf_i386"
4442          ;;
4443        ppc64-*linux*|powerpc64-*linux*)
4444          LD="${LD-ld} -m elf32ppclinux"
4445          ;;
4446        s390x-*linux*)
4447          LD="${LD-ld} -m elf_s390"
4448          ;;
4449        sparc64-*linux*)
4450          LD="${LD-ld} -m elf32_sparc"
4451          ;;
4452      esac
4453      ;;
4454    *64-bit*)
4455      case $host in
4456        x86_64-*linux*)
4457          LD="${LD-ld} -m elf_x86_64"
4458          ;;
4459        ppc*-*linux*|powerpc*-*linux*)
4460          LD="${LD-ld} -m elf64ppc"
4461          ;;
4462        s390*-*linux*)
4463          LD="${LD-ld} -m elf64_s390"
4464          ;;
4465        sparc*-*linux*)
4466          LD="${LD-ld} -m elf64_sparc"
4467          ;;
4468      esac
4469      ;;
4470    esac
4471  fi
4472  rm -rf conftest*
4473  ;;
4474
4475*-*-sco3.2v5*)
4476  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4477  SAVE_CFLAGS="$CFLAGS"
4478  CFLAGS="$CFLAGS -belf"
4479  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4480echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4481if test "${lt_cv_cc_needs_belf+set}" = set; then
4482  echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
4484  ac_ext=c
4485ac_cpp='$CPP $CPPFLAGS'
4486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4488ac_compiler_gnu=$ac_cv_c_compiler_gnu
4489
4490     cat >conftest.$ac_ext <<_ACEOF
4491/* confdefs.h.  */
4492_ACEOF
4493cat confdefs.h >>conftest.$ac_ext
4494cat >>conftest.$ac_ext <<_ACEOF
4495/* end confdefs.h.  */
4496
4497int
4498main ()
4499{
4500
4501  ;
4502  return 0;
4503}
4504_ACEOF
4505rm -f conftest.$ac_objext conftest$ac_exeext
4506if { (ac_try="$ac_link"
4507case "(($ac_try" in
4508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509  *) ac_try_echo=$ac_try;;
4510esac
4511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512  (eval "$ac_link") 2>conftest.er1
4513  ac_status=$?
4514  grep -v '^ *+' conftest.er1 >conftest.err
4515  rm -f conftest.er1
4516  cat conftest.err >&5
4517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518  (exit $ac_status); } && {
4519	 test -z "$ac_c_werror_flag" ||
4520	 test ! -s conftest.err
4521       } && test -s conftest$ac_exeext &&
4522       $as_test_x conftest$ac_exeext; then
4523  lt_cv_cc_needs_belf=yes
4524else
4525  echo "$as_me: failed program was:" >&5
4526sed 's/^/| /' conftest.$ac_ext >&5
4527
4528	lt_cv_cc_needs_belf=no
4529fi
4530
4531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4532      conftest$ac_exeext conftest.$ac_ext
4533     ac_ext=c
4534ac_cpp='$CPP $CPPFLAGS'
4535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538
4539fi
4540{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4541echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4542  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4543    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4544    CFLAGS="$SAVE_CFLAGS"
4545  fi
4546  ;;
4547sparc*-*solaris*)
4548  # Find out which ABI we are using.
4549  echo 'int i;' > conftest.$ac_ext
4550  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4551  (eval $ac_compile) 2>&5
4552  ac_status=$?
4553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554  (exit $ac_status); }; then
4555    case `/usr/bin/file conftest.o` in
4556    *64-bit*)
4557      case $lt_cv_prog_gnu_ld in
4558      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4559      *)    LD="${LD-ld} -64" ;;
4560      esac
4561      ;;
4562    esac
4563  fi
4564  rm -rf conftest*
4565  ;;
4566
4567
4568esac
4569
4570need_locks="$enable_libtool_lock"
4571
4572
4573ac_ext=c
4574ac_cpp='$CPP $CPPFLAGS'
4575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577ac_compiler_gnu=$ac_cv_c_compiler_gnu
4578{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4579echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4580# On Suns, sometimes $CPP names a directory.
4581if test -n "$CPP" && test -d "$CPP"; then
4582  CPP=
4583fi
4584if test -z "$CPP"; then
4585  if test "${ac_cv_prog_CPP+set}" = set; then
4586  echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
4588      # Double quotes because CPP needs to be expanded
4589    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4590    do
4591      ac_preproc_ok=false
4592for ac_c_preproc_warn_flag in '' yes
4593do
4594  # Use a header file that comes with gcc, so configuring glibc
4595  # with a fresh cross-compiler works.
4596  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4597  # <limits.h> exists even on freestanding compilers.
4598  # On the NeXT, cc -E runs the code through the compiler's parser,
4599  # not just through cpp. "Syntax error" is here to catch this case.
4600  cat >conftest.$ac_ext <<_ACEOF
4601/* confdefs.h.  */
4602_ACEOF
4603cat confdefs.h >>conftest.$ac_ext
4604cat >>conftest.$ac_ext <<_ACEOF
4605/* end confdefs.h.  */
4606#ifdef __STDC__
4607# include <limits.h>
4608#else
4609# include <assert.h>
4610#endif
4611		     Syntax error
4612_ACEOF
4613if { (ac_try="$ac_cpp conftest.$ac_ext"
4614case "(($ac_try" in
4615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616  *) ac_try_echo=$ac_try;;
4617esac
4618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4620  ac_status=$?
4621  grep -v '^ *+' conftest.er1 >conftest.err
4622  rm -f conftest.er1
4623  cat conftest.err >&5
4624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625  (exit $ac_status); } >/dev/null && {
4626	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4627	 test ! -s conftest.err
4628       }; then
4629  :
4630else
4631  echo "$as_me: failed program was:" >&5
4632sed 's/^/| /' conftest.$ac_ext >&5
4633
4634  # Broken: fails on valid input.
4635continue
4636fi
4637
4638rm -f conftest.err conftest.$ac_ext
4639
4640  # OK, works on sane cases.  Now check whether nonexistent headers
4641  # can be detected and how.
4642  cat >conftest.$ac_ext <<_ACEOF
4643/* confdefs.h.  */
4644_ACEOF
4645cat confdefs.h >>conftest.$ac_ext
4646cat >>conftest.$ac_ext <<_ACEOF
4647/* end confdefs.h.  */
4648#include <ac_nonexistent.h>
4649_ACEOF
4650if { (ac_try="$ac_cpp conftest.$ac_ext"
4651case "(($ac_try" in
4652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653  *) ac_try_echo=$ac_try;;
4654esac
4655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4657  ac_status=$?
4658  grep -v '^ *+' conftest.er1 >conftest.err
4659  rm -f conftest.er1
4660  cat conftest.err >&5
4661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662  (exit $ac_status); } >/dev/null && {
4663	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4664	 test ! -s conftest.err
4665       }; then
4666  # Broken: success on invalid input.
4667continue
4668else
4669  echo "$as_me: failed program was:" >&5
4670sed 's/^/| /' conftest.$ac_ext >&5
4671
4672  # Passes both tests.
4673ac_preproc_ok=:
4674break
4675fi
4676
4677rm -f conftest.err conftest.$ac_ext
4678
4679done
4680# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4681rm -f conftest.err conftest.$ac_ext
4682if $ac_preproc_ok; then
4683  break
4684fi
4685
4686    done
4687    ac_cv_prog_CPP=$CPP
4688
4689fi
4690  CPP=$ac_cv_prog_CPP
4691else
4692  ac_cv_prog_CPP=$CPP
4693fi
4694{ echo "$as_me:$LINENO: result: $CPP" >&5
4695echo "${ECHO_T}$CPP" >&6; }
4696ac_preproc_ok=false
4697for ac_c_preproc_warn_flag in '' yes
4698do
4699  # Use a header file that comes with gcc, so configuring glibc
4700  # with a fresh cross-compiler works.
4701  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4702  # <limits.h> exists even on freestanding compilers.
4703  # On the NeXT, cc -E runs the code through the compiler's parser,
4704  # not just through cpp. "Syntax error" is here to catch this case.
4705  cat >conftest.$ac_ext <<_ACEOF
4706/* confdefs.h.  */
4707_ACEOF
4708cat confdefs.h >>conftest.$ac_ext
4709cat >>conftest.$ac_ext <<_ACEOF
4710/* end confdefs.h.  */
4711#ifdef __STDC__
4712# include <limits.h>
4713#else
4714# include <assert.h>
4715#endif
4716		     Syntax error
4717_ACEOF
4718if { (ac_try="$ac_cpp conftest.$ac_ext"
4719case "(($ac_try" in
4720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721  *) ac_try_echo=$ac_try;;
4722esac
4723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4725  ac_status=$?
4726  grep -v '^ *+' conftest.er1 >conftest.err
4727  rm -f conftest.er1
4728  cat conftest.err >&5
4729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730  (exit $ac_status); } >/dev/null && {
4731	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4732	 test ! -s conftest.err
4733       }; then
4734  :
4735else
4736  echo "$as_me: failed program was:" >&5
4737sed 's/^/| /' conftest.$ac_ext >&5
4738
4739  # Broken: fails on valid input.
4740continue
4741fi
4742
4743rm -f conftest.err conftest.$ac_ext
4744
4745  # OK, works on sane cases.  Now check whether nonexistent headers
4746  # can be detected and how.
4747  cat >conftest.$ac_ext <<_ACEOF
4748/* confdefs.h.  */
4749_ACEOF
4750cat confdefs.h >>conftest.$ac_ext
4751cat >>conftest.$ac_ext <<_ACEOF
4752/* end confdefs.h.  */
4753#include <ac_nonexistent.h>
4754_ACEOF
4755if { (ac_try="$ac_cpp conftest.$ac_ext"
4756case "(($ac_try" in
4757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758  *) ac_try_echo=$ac_try;;
4759esac
4760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4762  ac_status=$?
4763  grep -v '^ *+' conftest.er1 >conftest.err
4764  rm -f conftest.er1
4765  cat conftest.err >&5
4766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767  (exit $ac_status); } >/dev/null && {
4768	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4769	 test ! -s conftest.err
4770       }; then
4771  # Broken: success on invalid input.
4772continue
4773else
4774  echo "$as_me: failed program was:" >&5
4775sed 's/^/| /' conftest.$ac_ext >&5
4776
4777  # Passes both tests.
4778ac_preproc_ok=:
4779break
4780fi
4781
4782rm -f conftest.err conftest.$ac_ext
4783
4784done
4785# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4786rm -f conftest.err conftest.$ac_ext
4787if $ac_preproc_ok; then
4788  :
4789else
4790  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4791See \`config.log' for more details." >&5
4792echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4793See \`config.log' for more details." >&2;}
4794   { (exit 1); exit 1; }; }
4795fi
4796
4797ac_ext=c
4798ac_cpp='$CPP $CPPFLAGS'
4799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801ac_compiler_gnu=$ac_cv_c_compiler_gnu
4802
4803
4804{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4805echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4806if test "${ac_cv_header_stdc+set}" = set; then
4807  echo $ECHO_N "(cached) $ECHO_C" >&6
4808else
4809  cat >conftest.$ac_ext <<_ACEOF
4810/* confdefs.h.  */
4811_ACEOF
4812cat confdefs.h >>conftest.$ac_ext
4813cat >>conftest.$ac_ext <<_ACEOF
4814/* end confdefs.h.  */
4815#include <stdlib.h>
4816#include <stdarg.h>
4817#include <string.h>
4818#include <float.h>
4819
4820int
4821main ()
4822{
4823
4824  ;
4825  return 0;
4826}
4827_ACEOF
4828rm -f conftest.$ac_objext
4829if { (ac_try="$ac_compile"
4830case "(($ac_try" in
4831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832  *) ac_try_echo=$ac_try;;
4833esac
4834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835  (eval "$ac_compile") 2>conftest.er1
4836  ac_status=$?
4837  grep -v '^ *+' conftest.er1 >conftest.err
4838  rm -f conftest.er1
4839  cat conftest.err >&5
4840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841  (exit $ac_status); } && {
4842	 test -z "$ac_c_werror_flag" ||
4843	 test ! -s conftest.err
4844       } && test -s conftest.$ac_objext; then
4845  ac_cv_header_stdc=yes
4846else
4847  echo "$as_me: failed program was:" >&5
4848sed 's/^/| /' conftest.$ac_ext >&5
4849
4850	ac_cv_header_stdc=no
4851fi
4852
4853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854
4855if test $ac_cv_header_stdc = yes; then
4856  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4857  cat >conftest.$ac_ext <<_ACEOF
4858/* confdefs.h.  */
4859_ACEOF
4860cat confdefs.h >>conftest.$ac_ext
4861cat >>conftest.$ac_ext <<_ACEOF
4862/* end confdefs.h.  */
4863#include <string.h>
4864
4865_ACEOF
4866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4867  $EGREP "memchr" >/dev/null 2>&1; then
4868  :
4869else
4870  ac_cv_header_stdc=no
4871fi
4872rm -f conftest*
4873
4874fi
4875
4876if test $ac_cv_header_stdc = yes; then
4877  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4878  cat >conftest.$ac_ext <<_ACEOF
4879/* confdefs.h.  */
4880_ACEOF
4881cat confdefs.h >>conftest.$ac_ext
4882cat >>conftest.$ac_ext <<_ACEOF
4883/* end confdefs.h.  */
4884#include <stdlib.h>
4885
4886_ACEOF
4887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4888  $EGREP "free" >/dev/null 2>&1; then
4889  :
4890else
4891  ac_cv_header_stdc=no
4892fi
4893rm -f conftest*
4894
4895fi
4896
4897if test $ac_cv_header_stdc = yes; then
4898  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4899  if test "$cross_compiling" = yes; then
4900  :
4901else
4902  cat >conftest.$ac_ext <<_ACEOF
4903/* confdefs.h.  */
4904_ACEOF
4905cat confdefs.h >>conftest.$ac_ext
4906cat >>conftest.$ac_ext <<_ACEOF
4907/* end confdefs.h.  */
4908#include <ctype.h>
4909#include <stdlib.h>
4910#if ((' ' & 0x0FF) == 0x020)
4911# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4912# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4913#else
4914# define ISLOWER(c) \
4915		   (('a' <= (c) && (c) <= 'i') \
4916		     || ('j' <= (c) && (c) <= 'r') \
4917		     || ('s' <= (c) && (c) <= 'z'))
4918# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4919#endif
4920
4921#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4922int
4923main ()
4924{
4925  int i;
4926  for (i = 0; i < 256; i++)
4927    if (XOR (islower (i), ISLOWER (i))
4928	|| toupper (i) != TOUPPER (i))
4929      return 2;
4930  return 0;
4931}
4932_ACEOF
4933rm -f conftest$ac_exeext
4934if { (ac_try="$ac_link"
4935case "(($ac_try" in
4936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937  *) ac_try_echo=$ac_try;;
4938esac
4939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4940  (eval "$ac_link") 2>&5
4941  ac_status=$?
4942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4944  { (case "(($ac_try" in
4945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946  *) ac_try_echo=$ac_try;;
4947esac
4948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4949  (eval "$ac_try") 2>&5
4950  ac_status=$?
4951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952  (exit $ac_status); }; }; then
4953  :
4954else
4955  echo "$as_me: program exited with status $ac_status" >&5
4956echo "$as_me: failed program was:" >&5
4957sed 's/^/| /' conftest.$ac_ext >&5
4958
4959( exit $ac_status )
4960ac_cv_header_stdc=no
4961fi
4962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4963fi
4964
4965
4966fi
4967fi
4968{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4969echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4970if test $ac_cv_header_stdc = yes; then
4971
4972cat >>confdefs.h <<\_ACEOF
4973#define STDC_HEADERS 1
4974_ACEOF
4975
4976fi
4977
4978# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4989		  inttypes.h stdint.h unistd.h
4990do
4991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4992{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4995  echo $ECHO_N "(cached) $ECHO_C" >&6
4996else
4997  cat >conftest.$ac_ext <<_ACEOF
4998/* confdefs.h.  */
4999_ACEOF
5000cat confdefs.h >>conftest.$ac_ext
5001cat >>conftest.$ac_ext <<_ACEOF
5002/* end confdefs.h.  */
5003$ac_includes_default
5004
5005#include <$ac_header>
5006_ACEOF
5007rm -f conftest.$ac_objext
5008if { (ac_try="$ac_compile"
5009case "(($ac_try" in
5010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011  *) ac_try_echo=$ac_try;;
5012esac
5013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014  (eval "$ac_compile") 2>conftest.er1
5015  ac_status=$?
5016  grep -v '^ *+' conftest.er1 >conftest.err
5017  rm -f conftest.er1
5018  cat conftest.err >&5
5019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020  (exit $ac_status); } && {
5021	 test -z "$ac_c_werror_flag" ||
5022	 test ! -s conftest.err
5023       } && test -s conftest.$ac_objext; then
5024  eval "$as_ac_Header=yes"
5025else
5026  echo "$as_me: failed program was:" >&5
5027sed 's/^/| /' conftest.$ac_ext >&5
5028
5029	eval "$as_ac_Header=no"
5030fi
5031
5032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033fi
5034ac_res=`eval echo '${'$as_ac_Header'}'`
5035	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5036echo "${ECHO_T}$ac_res" >&6; }
5037if test `eval echo '${'$as_ac_Header'}'` = yes; then
5038  cat >>confdefs.h <<_ACEOF
5039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5040_ACEOF
5041
5042fi
5043
5044done
5045
5046
5047
5048for ac_header in dlfcn.h
5049do
5050as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5052  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5055  echo $ECHO_N "(cached) $ECHO_C" >&6
5056fi
5057ac_res=`eval echo '${'$as_ac_Header'}'`
5058	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5059echo "${ECHO_T}$ac_res" >&6; }
5060else
5061  # Is the header compilable?
5062{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5063echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5064cat >conftest.$ac_ext <<_ACEOF
5065/* confdefs.h.  */
5066_ACEOF
5067cat confdefs.h >>conftest.$ac_ext
5068cat >>conftest.$ac_ext <<_ACEOF
5069/* end confdefs.h.  */
5070$ac_includes_default
5071#include <$ac_header>
5072_ACEOF
5073rm -f conftest.$ac_objext
5074if { (ac_try="$ac_compile"
5075case "(($ac_try" in
5076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077  *) ac_try_echo=$ac_try;;
5078esac
5079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080  (eval "$ac_compile") 2>conftest.er1
5081  ac_status=$?
5082  grep -v '^ *+' conftest.er1 >conftest.err
5083  rm -f conftest.er1
5084  cat conftest.err >&5
5085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086  (exit $ac_status); } && {
5087	 test -z "$ac_c_werror_flag" ||
5088	 test ! -s conftest.err
5089       } && test -s conftest.$ac_objext; then
5090  ac_header_compiler=yes
5091else
5092  echo "$as_me: failed program was:" >&5
5093sed 's/^/| /' conftest.$ac_ext >&5
5094
5095	ac_header_compiler=no
5096fi
5097
5098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5100echo "${ECHO_T}$ac_header_compiler" >&6; }
5101
5102# Is the header present?
5103{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5104echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5105cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h.  */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h.  */
5111#include <$ac_header>
5112_ACEOF
5113if { (ac_try="$ac_cpp conftest.$ac_ext"
5114case "(($ac_try" in
5115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116  *) ac_try_echo=$ac_try;;
5117esac
5118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5120  ac_status=$?
5121  grep -v '^ *+' conftest.er1 >conftest.err
5122  rm -f conftest.er1
5123  cat conftest.err >&5
5124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125  (exit $ac_status); } >/dev/null && {
5126	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5127	 test ! -s conftest.err
5128       }; then
5129  ac_header_preproc=yes
5130else
5131  echo "$as_me: failed program was:" >&5
5132sed 's/^/| /' conftest.$ac_ext >&5
5133
5134  ac_header_preproc=no
5135fi
5136
5137rm -f conftest.err conftest.$ac_ext
5138{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5139echo "${ECHO_T}$ac_header_preproc" >&6; }
5140
5141# So?  What about this header?
5142case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5143  yes:no: )
5144    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5145echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5146    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5147echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5148    ac_header_preproc=yes
5149    ;;
5150  no:yes:* )
5151    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5152echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5153    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5154echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5155    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5156echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5157    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5158echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5159    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5160echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5161    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5162echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5163    ( cat <<\_ASBOX
5164## ---------------------------------------------------------------------- ##
5165## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5166## ---------------------------------------------------------------------- ##
5167_ASBOX
5168     ) | sed "s/^/$as_me: WARNING:     /" >&2
5169    ;;
5170esac
5171{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5174  echo $ECHO_N "(cached) $ECHO_C" >&6
5175else
5176  eval "$as_ac_Header=\$ac_header_preproc"
5177fi
5178ac_res=`eval echo '${'$as_ac_Header'}'`
5179	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5180echo "${ECHO_T}$ac_res" >&6; }
5181
5182fi
5183if test `eval echo '${'$as_ac_Header'}'` = yes; then
5184  cat >>confdefs.h <<_ACEOF
5185#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5186_ACEOF
5187
5188fi
5189
5190done
5191
5192ac_ext=cpp
5193ac_cpp='$CXXCPP $CPPFLAGS'
5194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5197if test -z "$CXX"; then
5198  if test -n "$CCC"; then
5199    CXX=$CCC
5200  else
5201    if test -n "$ac_tool_prefix"; then
5202  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5203  do
5204    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5205set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5206{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5208if test "${ac_cv_prog_CXX+set}" = set; then
5209  echo $ECHO_N "(cached) $ECHO_C" >&6
5210else
5211  if test -n "$CXX"; then
5212  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5213else
5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH
5216do
5217  IFS=$as_save_IFS
5218  test -z "$as_dir" && as_dir=.
5219  for ac_exec_ext in '' $ac_executable_extensions; do
5220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5222    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223    break 2
5224  fi
5225done
5226done
5227IFS=$as_save_IFS
5228
5229fi
5230fi
5231CXX=$ac_cv_prog_CXX
5232if test -n "$CXX"; then
5233  { echo "$as_me:$LINENO: result: $CXX" >&5
5234echo "${ECHO_T}$CXX" >&6; }
5235else
5236  { echo "$as_me:$LINENO: result: no" >&5
5237echo "${ECHO_T}no" >&6; }
5238fi
5239
5240
5241    test -n "$CXX" && break
5242  done
5243fi
5244if test -z "$CXX"; then
5245  ac_ct_CXX=$CXX
5246  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5247do
5248  # Extract the first word of "$ac_prog", so it can be a program name with args.
5249set dummy $ac_prog; ac_word=$2
5250{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5252if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5253  echo $ECHO_N "(cached) $ECHO_C" >&6
5254else
5255  if test -n "$ac_ct_CXX"; then
5256  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5257else
5258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259for as_dir in $PATH
5260do
5261  IFS=$as_save_IFS
5262  test -z "$as_dir" && as_dir=.
5263  for ac_exec_ext in '' $ac_executable_extensions; do
5264  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265    ac_cv_prog_ac_ct_CXX="$ac_prog"
5266    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267    break 2
5268  fi
5269done
5270done
5271IFS=$as_save_IFS
5272
5273fi
5274fi
5275ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5276if test -n "$ac_ct_CXX"; then
5277  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5278echo "${ECHO_T}$ac_ct_CXX" >&6; }
5279else
5280  { echo "$as_me:$LINENO: result: no" >&5
5281echo "${ECHO_T}no" >&6; }
5282fi
5283
5284
5285  test -n "$ac_ct_CXX" && break
5286done
5287
5288  if test "x$ac_ct_CXX" = x; then
5289    CXX="g++"
5290  else
5291    case $cross_compiling:$ac_tool_warned in
5292yes:)
5293{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5294whose name does not start with the host triplet.  If you think this
5295configuration is useful to you, please write to autoconf@gnu.org." >&5
5296echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5297whose name does not start with the host triplet.  If you think this
5298configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5299ac_tool_warned=yes ;;
5300esac
5301    CXX=$ac_ct_CXX
5302  fi
5303fi
5304
5305  fi
5306fi
5307# Provide some information about the compiler.
5308echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5309ac_compiler=`set X $ac_compile; echo $2`
5310{ (ac_try="$ac_compiler --version >&5"
5311case "(($ac_try" in
5312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313  *) ac_try_echo=$ac_try;;
5314esac
5315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316  (eval "$ac_compiler --version >&5") 2>&5
5317  ac_status=$?
5318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319  (exit $ac_status); }
5320{ (ac_try="$ac_compiler -v >&5"
5321case "(($ac_try" in
5322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323  *) ac_try_echo=$ac_try;;
5324esac
5325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326  (eval "$ac_compiler -v >&5") 2>&5
5327  ac_status=$?
5328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329  (exit $ac_status); }
5330{ (ac_try="$ac_compiler -V >&5"
5331case "(($ac_try" in
5332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333  *) ac_try_echo=$ac_try;;
5334esac
5335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336  (eval "$ac_compiler -V >&5") 2>&5
5337  ac_status=$?
5338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339  (exit $ac_status); }
5340
5341{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5342echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5343if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5344  echo $ECHO_N "(cached) $ECHO_C" >&6
5345else
5346  cat >conftest.$ac_ext <<_ACEOF
5347/* confdefs.h.  */
5348_ACEOF
5349cat confdefs.h >>conftest.$ac_ext
5350cat >>conftest.$ac_ext <<_ACEOF
5351/* end confdefs.h.  */
5352
5353int
5354main ()
5355{
5356#ifndef __GNUC__
5357       choke me
5358#endif
5359
5360  ;
5361  return 0;
5362}
5363_ACEOF
5364rm -f conftest.$ac_objext
5365if { (ac_try="$ac_compile"
5366case "(($ac_try" in
5367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368  *) ac_try_echo=$ac_try;;
5369esac
5370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371  (eval "$ac_compile") 2>conftest.er1
5372  ac_status=$?
5373  grep -v '^ *+' conftest.er1 >conftest.err
5374  rm -f conftest.er1
5375  cat conftest.err >&5
5376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377  (exit $ac_status); } && {
5378	 test -z "$ac_cxx_werror_flag" ||
5379	 test ! -s conftest.err
5380       } && test -s conftest.$ac_objext; then
5381  ac_compiler_gnu=yes
5382else
5383  echo "$as_me: failed program was:" >&5
5384sed 's/^/| /' conftest.$ac_ext >&5
5385
5386	ac_compiler_gnu=no
5387fi
5388
5389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5391
5392fi
5393{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5394echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5395GXX=`test $ac_compiler_gnu = yes && echo yes`
5396ac_test_CXXFLAGS=${CXXFLAGS+set}
5397ac_save_CXXFLAGS=$CXXFLAGS
5398{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5399echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5400if test "${ac_cv_prog_cxx_g+set}" = set; then
5401  echo $ECHO_N "(cached) $ECHO_C" >&6
5402else
5403  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5404   ac_cxx_werror_flag=yes
5405   ac_cv_prog_cxx_g=no
5406   CXXFLAGS="-g"
5407   cat >conftest.$ac_ext <<_ACEOF
5408/* confdefs.h.  */
5409_ACEOF
5410cat confdefs.h >>conftest.$ac_ext
5411cat >>conftest.$ac_ext <<_ACEOF
5412/* end confdefs.h.  */
5413
5414int
5415main ()
5416{
5417
5418  ;
5419  return 0;
5420}
5421_ACEOF
5422rm -f conftest.$ac_objext
5423if { (ac_try="$ac_compile"
5424case "(($ac_try" in
5425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426  *) ac_try_echo=$ac_try;;
5427esac
5428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429  (eval "$ac_compile") 2>conftest.er1
5430  ac_status=$?
5431  grep -v '^ *+' conftest.er1 >conftest.err
5432  rm -f conftest.er1
5433  cat conftest.err >&5
5434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435  (exit $ac_status); } && {
5436	 test -z "$ac_cxx_werror_flag" ||
5437	 test ! -s conftest.err
5438       } && test -s conftest.$ac_objext; then
5439  ac_cv_prog_cxx_g=yes
5440else
5441  echo "$as_me: failed program was:" >&5
5442sed 's/^/| /' conftest.$ac_ext >&5
5443
5444	CXXFLAGS=""
5445      cat >conftest.$ac_ext <<_ACEOF
5446/* confdefs.h.  */
5447_ACEOF
5448cat confdefs.h >>conftest.$ac_ext
5449cat >>conftest.$ac_ext <<_ACEOF
5450/* end confdefs.h.  */
5451
5452int
5453main ()
5454{
5455
5456  ;
5457  return 0;
5458}
5459_ACEOF
5460rm -f conftest.$ac_objext
5461if { (ac_try="$ac_compile"
5462case "(($ac_try" in
5463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464  *) ac_try_echo=$ac_try;;
5465esac
5466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467  (eval "$ac_compile") 2>conftest.er1
5468  ac_status=$?
5469  grep -v '^ *+' conftest.er1 >conftest.err
5470  rm -f conftest.er1
5471  cat conftest.err >&5
5472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473  (exit $ac_status); } && {
5474	 test -z "$ac_cxx_werror_flag" ||
5475	 test ! -s conftest.err
5476       } && test -s conftest.$ac_objext; then
5477  :
5478else
5479  echo "$as_me: failed program was:" >&5
5480sed 's/^/| /' conftest.$ac_ext >&5
5481
5482	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5483	 CXXFLAGS="-g"
5484	 cat >conftest.$ac_ext <<_ACEOF
5485/* confdefs.h.  */
5486_ACEOF
5487cat confdefs.h >>conftest.$ac_ext
5488cat >>conftest.$ac_ext <<_ACEOF
5489/* end confdefs.h.  */
5490
5491int
5492main ()
5493{
5494
5495  ;
5496  return 0;
5497}
5498_ACEOF
5499rm -f conftest.$ac_objext
5500if { (ac_try="$ac_compile"
5501case "(($ac_try" in
5502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503  *) ac_try_echo=$ac_try;;
5504esac
5505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506  (eval "$ac_compile") 2>conftest.er1
5507  ac_status=$?
5508  grep -v '^ *+' conftest.er1 >conftest.err
5509  rm -f conftest.er1
5510  cat conftest.err >&5
5511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512  (exit $ac_status); } && {
5513	 test -z "$ac_cxx_werror_flag" ||
5514	 test ! -s conftest.err
5515       } && test -s conftest.$ac_objext; then
5516  ac_cv_prog_cxx_g=yes
5517else
5518  echo "$as_me: failed program was:" >&5
5519sed 's/^/| /' conftest.$ac_ext >&5
5520
5521
5522fi
5523
5524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525fi
5526
5527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528fi
5529
5530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5532fi
5533{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5534echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5535if test "$ac_test_CXXFLAGS" = set; then
5536  CXXFLAGS=$ac_save_CXXFLAGS
5537elif test $ac_cv_prog_cxx_g = yes; then
5538  if test "$GXX" = yes; then
5539    CXXFLAGS="-g -O2"
5540  else
5541    CXXFLAGS="-g"
5542  fi
5543else
5544  if test "$GXX" = yes; then
5545    CXXFLAGS="-O2"
5546  else
5547    CXXFLAGS=
5548  fi
5549fi
5550ac_ext=cpp
5551ac_cpp='$CXXCPP $CPPFLAGS'
5552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5555
5556depcc="$CXX"  am_compiler_list=
5557
5558{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5559echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5560if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5561  echo $ECHO_N "(cached) $ECHO_C" >&6
5562else
5563  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5564  # We make a subdir and do the tests there.  Otherwise we can end up
5565  # making bogus files that we don't know about and never remove.  For
5566  # instance it was reported that on HP-UX the gcc test will end up
5567  # making a dummy file named `D' -- because `-MD' means `put the output
5568  # in D'.
5569  mkdir conftest.dir
5570  # Copy depcomp to subdir because otherwise we won't find it if we're
5571  # using a relative directory.
5572  cp "$am_depcomp" conftest.dir
5573  cd conftest.dir
5574  # We will build objects and dependencies in a subdirectory because
5575  # it helps to detect inapplicable dependency modes.  For instance
5576  # both Tru64's cc and ICC support -MD to output dependencies as a
5577  # side effect of compilation, but ICC will put the dependencies in
5578  # the current directory while Tru64 will put them in the object
5579  # directory.
5580  mkdir sub
5581
5582  am_cv_CXX_dependencies_compiler_type=none
5583  if test "$am_compiler_list" = ""; then
5584     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5585  fi
5586  for depmode in $am_compiler_list; do
5587    # Setup a source with many dependencies, because some compilers
5588    # like to wrap large dependency lists on column 80 (with \), and
5589    # we should not choose a depcomp mode which is confused by this.
5590    #
5591    # We need to recreate these files for each test, as the compiler may
5592    # overwrite some of them when testing with obscure command lines.
5593    # This happens at least with the AIX C compiler.
5594    : > sub/conftest.c
5595    for i in 1 2 3 4 5 6; do
5596      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5597      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5598      # Solaris 8's {/usr,}/bin/sh.
5599      touch sub/conftst$i.h
5600    done
5601    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5602
5603    case $depmode in
5604    nosideeffect)
5605      # after this tag, mechanisms are not by side-effect, so they'll
5606      # only be used when explicitly requested
5607      if test "x$enable_dependency_tracking" = xyes; then
5608	continue
5609      else
5610	break
5611      fi
5612      ;;
5613    none) break ;;
5614    esac
5615    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5616    # mode.  It turns out that the SunPro C++ compiler does not properly
5617    # handle `-M -o', and we need to detect this.
5618    if depmode=$depmode \
5619       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5620       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5621       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5622         >/dev/null 2>conftest.err &&
5623       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5624       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5625       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5626       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5627      # icc doesn't choke on unknown options, it will just issue warnings
5628      # or remarks (even with -Werror).  So we grep stderr for any message
5629      # that says an option was ignored or not supported.
5630      # When given -MP, icc 7.0 and 7.1 complain thusly:
5631      #   icc: Command line warning: ignoring option '-M'; no argument required
5632      # The diagnosis changed in icc 8.0:
5633      #   icc: Command line remark: option '-MP' not supported
5634      if (grep 'ignoring option' conftest.err ||
5635          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5636        am_cv_CXX_dependencies_compiler_type=$depmode
5637        break
5638      fi
5639    fi
5640  done
5641
5642  cd ..
5643  rm -rf conftest.dir
5644else
5645  am_cv_CXX_dependencies_compiler_type=none
5646fi
5647
5648fi
5649{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5650echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5651CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5652
5653 if
5654  test "x$enable_dependency_tracking" != xno \
5655  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5656  am__fastdepCXX_TRUE=
5657  am__fastdepCXX_FALSE='#'
5658else
5659  am__fastdepCXX_TRUE='#'
5660  am__fastdepCXX_FALSE=
5661fi
5662
5663
5664
5665
5666if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5667    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5668    (test "X$CXX" != "Xg++"))) ; then
5669  ac_ext=cpp
5670ac_cpp='$CXXCPP $CPPFLAGS'
5671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5674{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5675echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5676if test -z "$CXXCPP"; then
5677  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5678  echo $ECHO_N "(cached) $ECHO_C" >&6
5679else
5680      # Double quotes because CXXCPP needs to be expanded
5681    for CXXCPP in "$CXX -E" "/lib/cpp"
5682    do
5683      ac_preproc_ok=false
5684for ac_cxx_preproc_warn_flag in '' yes
5685do
5686  # Use a header file that comes with gcc, so configuring glibc
5687  # with a fresh cross-compiler works.
5688  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5689  # <limits.h> exists even on freestanding compilers.
5690  # On the NeXT, cc -E runs the code through the compiler's parser,
5691  # not just through cpp. "Syntax error" is here to catch this case.
5692  cat >conftest.$ac_ext <<_ACEOF
5693/* confdefs.h.  */
5694_ACEOF
5695cat confdefs.h >>conftest.$ac_ext
5696cat >>conftest.$ac_ext <<_ACEOF
5697/* end confdefs.h.  */
5698#ifdef __STDC__
5699# include <limits.h>
5700#else
5701# include <assert.h>
5702#endif
5703		     Syntax error
5704_ACEOF
5705if { (ac_try="$ac_cpp conftest.$ac_ext"
5706case "(($ac_try" in
5707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708  *) ac_try_echo=$ac_try;;
5709esac
5710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5712  ac_status=$?
5713  grep -v '^ *+' conftest.er1 >conftest.err
5714  rm -f conftest.er1
5715  cat conftest.err >&5
5716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717  (exit $ac_status); } >/dev/null && {
5718	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5719	 test ! -s conftest.err
5720       }; then
5721  :
5722else
5723  echo "$as_me: failed program was:" >&5
5724sed 's/^/| /' conftest.$ac_ext >&5
5725
5726  # Broken: fails on valid input.
5727continue
5728fi
5729
5730rm -f conftest.err conftest.$ac_ext
5731
5732  # OK, works on sane cases.  Now check whether nonexistent headers
5733  # can be detected and how.
5734  cat >conftest.$ac_ext <<_ACEOF
5735/* confdefs.h.  */
5736_ACEOF
5737cat confdefs.h >>conftest.$ac_ext
5738cat >>conftest.$ac_ext <<_ACEOF
5739/* end confdefs.h.  */
5740#include <ac_nonexistent.h>
5741_ACEOF
5742if { (ac_try="$ac_cpp conftest.$ac_ext"
5743case "(($ac_try" in
5744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745  *) ac_try_echo=$ac_try;;
5746esac
5747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5749  ac_status=$?
5750  grep -v '^ *+' conftest.er1 >conftest.err
5751  rm -f conftest.er1
5752  cat conftest.err >&5
5753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754  (exit $ac_status); } >/dev/null && {
5755	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5756	 test ! -s conftest.err
5757       }; then
5758  # Broken: success on invalid input.
5759continue
5760else
5761  echo "$as_me: failed program was:" >&5
5762sed 's/^/| /' conftest.$ac_ext >&5
5763
5764  # Passes both tests.
5765ac_preproc_ok=:
5766break
5767fi
5768
5769rm -f conftest.err conftest.$ac_ext
5770
5771done
5772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5773rm -f conftest.err conftest.$ac_ext
5774if $ac_preproc_ok; then
5775  break
5776fi
5777
5778    done
5779    ac_cv_prog_CXXCPP=$CXXCPP
5780
5781fi
5782  CXXCPP=$ac_cv_prog_CXXCPP
5783else
5784  ac_cv_prog_CXXCPP=$CXXCPP
5785fi
5786{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5787echo "${ECHO_T}$CXXCPP" >&6; }
5788ac_preproc_ok=false
5789for ac_cxx_preproc_warn_flag in '' yes
5790do
5791  # Use a header file that comes with gcc, so configuring glibc
5792  # with a fresh cross-compiler works.
5793  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5794  # <limits.h> exists even on freestanding compilers.
5795  # On the NeXT, cc -E runs the code through the compiler's parser,
5796  # not just through cpp. "Syntax error" is here to catch this case.
5797  cat >conftest.$ac_ext <<_ACEOF
5798/* confdefs.h.  */
5799_ACEOF
5800cat confdefs.h >>conftest.$ac_ext
5801cat >>conftest.$ac_ext <<_ACEOF
5802/* end confdefs.h.  */
5803#ifdef __STDC__
5804# include <limits.h>
5805#else
5806# include <assert.h>
5807#endif
5808		     Syntax error
5809_ACEOF
5810if { (ac_try="$ac_cpp conftest.$ac_ext"
5811case "(($ac_try" in
5812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813  *) ac_try_echo=$ac_try;;
5814esac
5815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5817  ac_status=$?
5818  grep -v '^ *+' conftest.er1 >conftest.err
5819  rm -f conftest.er1
5820  cat conftest.err >&5
5821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822  (exit $ac_status); } >/dev/null && {
5823	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5824	 test ! -s conftest.err
5825       }; then
5826  :
5827else
5828  echo "$as_me: failed program was:" >&5
5829sed 's/^/| /' conftest.$ac_ext >&5
5830
5831  # Broken: fails on valid input.
5832continue
5833fi
5834
5835rm -f conftest.err conftest.$ac_ext
5836
5837  # OK, works on sane cases.  Now check whether nonexistent headers
5838  # can be detected and how.
5839  cat >conftest.$ac_ext <<_ACEOF
5840/* confdefs.h.  */
5841_ACEOF
5842cat confdefs.h >>conftest.$ac_ext
5843cat >>conftest.$ac_ext <<_ACEOF
5844/* end confdefs.h.  */
5845#include <ac_nonexistent.h>
5846_ACEOF
5847if { (ac_try="$ac_cpp conftest.$ac_ext"
5848case "(($ac_try" in
5849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850  *) ac_try_echo=$ac_try;;
5851esac
5852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5854  ac_status=$?
5855  grep -v '^ *+' conftest.er1 >conftest.err
5856  rm -f conftest.er1
5857  cat conftest.err >&5
5858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859  (exit $ac_status); } >/dev/null && {
5860	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5861	 test ! -s conftest.err
5862       }; then
5863  # Broken: success on invalid input.
5864continue
5865else
5866  echo "$as_me: failed program was:" >&5
5867sed 's/^/| /' conftest.$ac_ext >&5
5868
5869  # Passes both tests.
5870ac_preproc_ok=:
5871break
5872fi
5873
5874rm -f conftest.err conftest.$ac_ext
5875
5876done
5877# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5878rm -f conftest.err conftest.$ac_ext
5879if $ac_preproc_ok; then
5880  :
5881else
5882  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5883See \`config.log' for more details." >&5
5884echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5885See \`config.log' for more details." >&2;}
5886   { (exit 1); exit 1; }; }
5887fi
5888
5889ac_ext=cpp
5890ac_cpp='$CXXCPP $CPPFLAGS'
5891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5894
5895fi
5896
5897
5898ac_ext=f
5899ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5900ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5901ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5902if test -n "$ac_tool_prefix"; then
5903  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
5904  do
5905    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5906set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5909if test "${ac_cv_prog_F77+set}" = set; then
5910  echo $ECHO_N "(cached) $ECHO_C" >&6
5911else
5912  if test -n "$F77"; then
5913  ac_cv_prog_F77="$F77" # Let the user override the test.
5914else
5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916for as_dir in $PATH
5917do
5918  IFS=$as_save_IFS
5919  test -z "$as_dir" && as_dir=.
5920  for ac_exec_ext in '' $ac_executable_extensions; do
5921  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5922    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5923    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924    break 2
5925  fi
5926done
5927done
5928IFS=$as_save_IFS
5929
5930fi
5931fi
5932F77=$ac_cv_prog_F77
5933if test -n "$F77"; then
5934  { echo "$as_me:$LINENO: result: $F77" >&5
5935echo "${ECHO_T}$F77" >&6; }
5936else
5937  { echo "$as_me:$LINENO: result: no" >&5
5938echo "${ECHO_T}no" >&6; }
5939fi
5940
5941
5942    test -n "$F77" && break
5943  done
5944fi
5945if test -z "$F77"; then
5946  ac_ct_F77=$F77
5947  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
5948do
5949  # Extract the first word of "$ac_prog", so it can be a program name with args.
5950set dummy $ac_prog; ac_word=$2
5951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5953if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5954  echo $ECHO_N "(cached) $ECHO_C" >&6
5955else
5956  if test -n "$ac_ct_F77"; then
5957  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5958else
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962  IFS=$as_save_IFS
5963  test -z "$as_dir" && as_dir=.
5964  for ac_exec_ext in '' $ac_executable_extensions; do
5965  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5966    ac_cv_prog_ac_ct_F77="$ac_prog"
5967    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968    break 2
5969  fi
5970done
5971done
5972IFS=$as_save_IFS
5973
5974fi
5975fi
5976ac_ct_F77=$ac_cv_prog_ac_ct_F77
5977if test -n "$ac_ct_F77"; then
5978  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5979echo "${ECHO_T}$ac_ct_F77" >&6; }
5980else
5981  { echo "$as_me:$LINENO: result: no" >&5
5982echo "${ECHO_T}no" >&6; }
5983fi
5984
5985
5986  test -n "$ac_ct_F77" && break
5987done
5988
5989  if test "x$ac_ct_F77" = x; then
5990    F77=""
5991  else
5992    case $cross_compiling:$ac_tool_warned in
5993yes:)
5994{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5995whose name does not start with the host triplet.  If you think this
5996configuration is useful to you, please write to autoconf@gnu.org." >&5
5997echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5998whose name does not start with the host triplet.  If you think this
5999configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6000ac_tool_warned=yes ;;
6001esac
6002    F77=$ac_ct_F77
6003  fi
6004fi
6005
6006
6007# Provide some information about the compiler.
6008echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6009ac_compiler=`set X $ac_compile; echo $2`
6010{ (ac_try="$ac_compiler --version >&5"
6011case "(($ac_try" in
6012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013  *) ac_try_echo=$ac_try;;
6014esac
6015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016  (eval "$ac_compiler --version >&5") 2>&5
6017  ac_status=$?
6018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019  (exit $ac_status); }
6020{ (ac_try="$ac_compiler -v >&5"
6021case "(($ac_try" in
6022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023  *) ac_try_echo=$ac_try;;
6024esac
6025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026  (eval "$ac_compiler -v >&5") 2>&5
6027  ac_status=$?
6028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029  (exit $ac_status); }
6030{ (ac_try="$ac_compiler -V >&5"
6031case "(($ac_try" in
6032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033  *) ac_try_echo=$ac_try;;
6034esac
6035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036  (eval "$ac_compiler -V >&5") 2>&5
6037  ac_status=$?
6038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039  (exit $ac_status); }
6040rm -f a.out
6041
6042# If we don't use `.F' as extension, the preprocessor is not run on the
6043# input file.  (Note that this only needs to work for GNU compilers.)
6044ac_save_ext=$ac_ext
6045ac_ext=F
6046{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6047echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6048if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6049  echo $ECHO_N "(cached) $ECHO_C" >&6
6050else
6051  cat >conftest.$ac_ext <<_ACEOF
6052      program main
6053#ifndef __GNUC__
6054       choke me
6055#endif
6056
6057      end
6058_ACEOF
6059rm -f conftest.$ac_objext
6060if { (ac_try="$ac_compile"
6061case "(($ac_try" in
6062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063  *) ac_try_echo=$ac_try;;
6064esac
6065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6066  (eval "$ac_compile") 2>conftest.er1
6067  ac_status=$?
6068  grep -v '^ *+' conftest.er1 >conftest.err
6069  rm -f conftest.er1
6070  cat conftest.err >&5
6071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072  (exit $ac_status); } && {
6073	 test -z "$ac_f77_werror_flag" ||
6074	 test ! -s conftest.err
6075       } && test -s conftest.$ac_objext; then
6076  ac_compiler_gnu=yes
6077else
6078  echo "$as_me: failed program was:" >&5
6079sed 's/^/| /' conftest.$ac_ext >&5
6080
6081	ac_compiler_gnu=no
6082fi
6083
6084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6086
6087fi
6088{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6089echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6090ac_ext=$ac_save_ext
6091ac_test_FFLAGS=${FFLAGS+set}
6092ac_save_FFLAGS=$FFLAGS
6093FFLAGS=
6094{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6095echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6096if test "${ac_cv_prog_f77_g+set}" = set; then
6097  echo $ECHO_N "(cached) $ECHO_C" >&6
6098else
6099  FFLAGS=-g
6100cat >conftest.$ac_ext <<_ACEOF
6101      program main
6102
6103      end
6104_ACEOF
6105rm -f conftest.$ac_objext
6106if { (ac_try="$ac_compile"
6107case "(($ac_try" in
6108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109  *) ac_try_echo=$ac_try;;
6110esac
6111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112  (eval "$ac_compile") 2>conftest.er1
6113  ac_status=$?
6114  grep -v '^ *+' conftest.er1 >conftest.err
6115  rm -f conftest.er1
6116  cat conftest.err >&5
6117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118  (exit $ac_status); } && {
6119	 test -z "$ac_f77_werror_flag" ||
6120	 test ! -s conftest.err
6121       } && test -s conftest.$ac_objext; then
6122  ac_cv_prog_f77_g=yes
6123else
6124  echo "$as_me: failed program was:" >&5
6125sed 's/^/| /' conftest.$ac_ext >&5
6126
6127	ac_cv_prog_f77_g=no
6128fi
6129
6130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131
6132fi
6133{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6134echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6135if test "$ac_test_FFLAGS" = set; then
6136  FFLAGS=$ac_save_FFLAGS
6137elif test $ac_cv_prog_f77_g = yes; then
6138  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6139    FFLAGS="-g -O2"
6140  else
6141    FFLAGS="-g"
6142  fi
6143else
6144  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6145    FFLAGS="-O2"
6146  else
6147    FFLAGS=
6148  fi
6149fi
6150
6151G77=`test $ac_compiler_gnu = yes && echo yes`
6152ac_ext=c
6153ac_cpp='$CPP $CPPFLAGS'
6154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156ac_compiler_gnu=$ac_cv_c_compiler_gnu
6157
6158
6159
6160# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6161
6162# find the maximum length of command line arguments
6163{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6164echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6165if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6166  echo $ECHO_N "(cached) $ECHO_C" >&6
6167else
6168    i=0
6169  teststring="ABCD"
6170
6171  case $build_os in
6172  msdosdjgpp*)
6173    # On DJGPP, this test can blow up pretty badly due to problems in libc
6174    # (any single argument exceeding 2000 bytes causes a buffer overrun
6175    # during glob expansion).  Even if it were fixed, the result of this
6176    # check would be larger than it should be.
6177    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6178    ;;
6179
6180  gnu*)
6181    # Under GNU Hurd, this test is not required because there is
6182    # no limit to the length of command line arguments.
6183    # Libtool will interpret -1 as no limit whatsoever
6184    lt_cv_sys_max_cmd_len=-1;
6185    ;;
6186
6187  cygwin* | mingw*)
6188    # On Win9x/ME, this test blows up -- it succeeds, but takes
6189    # about 5 minutes as the teststring grows exponentially.
6190    # Worse, since 9x/ME are not pre-emptively multitasking,
6191    # you end up with a "frozen" computer, even though with patience
6192    # the test eventually succeeds (with a max line length of 256k).
6193    # Instead, let's just punt: use the minimum linelength reported by
6194    # all of the supported platforms: 8192 (on NT/2K/XP).
6195    lt_cv_sys_max_cmd_len=8192;
6196    ;;
6197
6198  amigaos*)
6199    # On AmigaOS with pdksh, this test takes hours, literally.
6200    # So we just punt and use a minimum line length of 8192.
6201    lt_cv_sys_max_cmd_len=8192;
6202    ;;
6203
6204  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6205    # This has been around since 386BSD, at least.  Likely further.
6206    if test -x /sbin/sysctl; then
6207      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6208    elif test -x /usr/sbin/sysctl; then
6209      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6210    else
6211      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6212    fi
6213    # And add a safety zone
6214    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6215    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6216    ;;
6217
6218  interix*)
6219    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6220    lt_cv_sys_max_cmd_len=196608
6221    ;;
6222
6223  osf*)
6224    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6225    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6226    # nice to cause kernel panics so lets avoid the loop below.
6227    # First set a reasonable default.
6228    lt_cv_sys_max_cmd_len=16384
6229    #
6230    if test -x /sbin/sysconfig; then
6231      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6232        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6233      esac
6234    fi
6235    ;;
6236  sco3.2v5*)
6237    lt_cv_sys_max_cmd_len=102400
6238    ;;
6239  sysv5* | sco5v6* | sysv4.2uw2*)
6240    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6241    if test -n "$kargmax"; then
6242      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6243    else
6244      lt_cv_sys_max_cmd_len=32768
6245    fi
6246    ;;
6247  *)
6248    # If test is not a shell built-in, we'll probably end up computing a
6249    # maximum length that is only half of the actual maximum length, but
6250    # we can't tell.
6251    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6252    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6253	       = "XX$teststring") >/dev/null 2>&1 &&
6254	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6255	    lt_cv_sys_max_cmd_len=$new_result &&
6256	    test $i != 17 # 1/2 MB should be enough
6257    do
6258      i=`expr $i + 1`
6259      teststring=$teststring$teststring
6260    done
6261    teststring=
6262    # Add a significant safety factor because C++ compilers can tack on massive
6263    # amounts of additional arguments before passing them to the linker.
6264    # It appears as though 1/2 is a usable value.
6265    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6266    ;;
6267  esac
6268
6269fi
6270
6271if test -n $lt_cv_sys_max_cmd_len ; then
6272  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6273echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6274else
6275  { echo "$as_me:$LINENO: result: none" >&5
6276echo "${ECHO_T}none" >&6; }
6277fi
6278
6279
6280
6281
6282# Check for command to grab the raw symbol name followed by C symbol from nm.
6283{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6284echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6285if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6286  echo $ECHO_N "(cached) $ECHO_C" >&6
6287else
6288
6289# These are sane defaults that work on at least a few old systems.
6290# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6291
6292# Character class describing NM global symbol codes.
6293symcode='[BCDEGRST]'
6294
6295# Regexp to match symbols that can be accessed directly from C.
6296sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6297
6298# Transform an extracted symbol line into a proper C declaration
6299lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6300
6301# Transform an extracted symbol line into symbol name and symbol address
6302lt_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'"
6303
6304# Define system-specific variables.
6305case $host_os in
6306aix*)
6307  symcode='[BCDT]'
6308  ;;
6309cygwin* | mingw* | pw32*)
6310  symcode='[ABCDGISTW]'
6311  ;;
6312hpux*) # Its linker distinguishes data from code symbols
6313  if test "$host_cpu" = ia64; then
6314    symcode='[ABCDEGRST]'
6315  fi
6316  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6317  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'"
6318  ;;
6319linux*)
6320  if test "$host_cpu" = ia64; then
6321    symcode='[ABCDGIRSTW]'
6322    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6323    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'"
6324  fi
6325  ;;
6326irix* | nonstopux*)
6327  symcode='[BCDEGRST]'
6328  ;;
6329osf*)
6330  symcode='[BCDEGQRST]'
6331  ;;
6332solaris*)
6333  symcode='[BDRT]'
6334  ;;
6335sco3.2v5*)
6336  symcode='[DT]'
6337  ;;
6338sysv4.2uw2*)
6339  symcode='[DT]'
6340  ;;
6341sysv5* | sco5v6* | unixware* | OpenUNIX*)
6342  symcode='[ABDT]'
6343  ;;
6344sysv4)
6345  symcode='[DFNSTU]'
6346  ;;
6347esac
6348
6349# Handle CRLF in mingw tool chain
6350opt_cr=
6351case $build_os in
6352mingw*)
6353  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6354  ;;
6355esac
6356
6357# If we're using GNU nm, then use its standard symbol codes.
6358case `$NM -V 2>&1` in
6359*GNU* | *'with BFD'*)
6360  symcode='[ABCDGIRSTW]' ;;
6361esac
6362
6363# Try without a prefix undercore, then with it.
6364for ac_symprfx in "" "_"; do
6365
6366  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6367  symxfrm="\\1 $ac_symprfx\\2 \\2"
6368
6369  # Write the raw and C identifiers.
6370  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6371
6372  # Check to see that the pipe works correctly.
6373  pipe_works=no
6374
6375  rm -f conftest*
6376  cat > conftest.$ac_ext <<EOF
6377#ifdef __cplusplus
6378extern "C" {
6379#endif
6380char nm_test_var;
6381void nm_test_func(){}
6382#ifdef __cplusplus
6383}
6384#endif
6385int main(){nm_test_var='a';nm_test_func();return(0);}
6386EOF
6387
6388  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389  (eval $ac_compile) 2>&5
6390  ac_status=$?
6391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392  (exit $ac_status); }; then
6393    # Now try to grab the symbols.
6394    nlist=conftest.nm
6395    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6396  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6397  ac_status=$?
6398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399  (exit $ac_status); } && test -s "$nlist"; then
6400      # Try sorting and uniquifying the output.
6401      if sort "$nlist" | uniq > "$nlist"T; then
6402	mv -f "$nlist"T "$nlist"
6403      else
6404	rm -f "$nlist"T
6405      fi
6406
6407      # Make sure that we snagged all the symbols we need.
6408      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6409	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6410	  cat <<EOF > conftest.$ac_ext
6411#ifdef __cplusplus
6412extern "C" {
6413#endif
6414
6415EOF
6416	  # Now generate the symbol file.
6417	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6418
6419	  cat <<EOF >> conftest.$ac_ext
6420#if defined (__STDC__) && __STDC__
6421# define lt_ptr_t void *
6422#else
6423# define lt_ptr_t char *
6424# define const
6425#endif
6426
6427/* The mapping between symbol names and symbols. */
6428const struct {
6429  const char *name;
6430  lt_ptr_t address;
6431}
6432lt_preloaded_symbols[] =
6433{
6434EOF
6435	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6436	  cat <<\EOF >> conftest.$ac_ext
6437  {0, (lt_ptr_t) 0}
6438};
6439
6440#ifdef __cplusplus
6441}
6442#endif
6443EOF
6444	  # Now try linking the two files.
6445	  mv conftest.$ac_objext conftstm.$ac_objext
6446	  lt_save_LIBS="$LIBS"
6447	  lt_save_CFLAGS="$CFLAGS"
6448	  LIBS="conftstm.$ac_objext"
6449	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6450	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451  (eval $ac_link) 2>&5
6452  ac_status=$?
6453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6455	    pipe_works=yes
6456	  fi
6457	  LIBS="$lt_save_LIBS"
6458	  CFLAGS="$lt_save_CFLAGS"
6459	else
6460	  echo "cannot find nm_test_func in $nlist" >&5
6461	fi
6462      else
6463	echo "cannot find nm_test_var in $nlist" >&5
6464      fi
6465    else
6466      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6467    fi
6468  else
6469    echo "$progname: failed program was:" >&5
6470    cat conftest.$ac_ext >&5
6471  fi
6472  rm -f conftest* conftst*
6473
6474  # Do not use the global_symbol_pipe unless it works.
6475  if test "$pipe_works" = yes; then
6476    break
6477  else
6478    lt_cv_sys_global_symbol_pipe=
6479  fi
6480done
6481
6482fi
6483
6484if test -z "$lt_cv_sys_global_symbol_pipe"; then
6485  lt_cv_sys_global_symbol_to_cdecl=
6486fi
6487if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6488  { echo "$as_me:$LINENO: result: failed" >&5
6489echo "${ECHO_T}failed" >&6; }
6490else
6491  { echo "$as_me:$LINENO: result: ok" >&5
6492echo "${ECHO_T}ok" >&6; }
6493fi
6494
6495{ echo "$as_me:$LINENO: checking for objdir" >&5
6496echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6497if test "${lt_cv_objdir+set}" = set; then
6498  echo $ECHO_N "(cached) $ECHO_C" >&6
6499else
6500  rm -f .libs 2>/dev/null
6501mkdir .libs 2>/dev/null
6502if test -d .libs; then
6503  lt_cv_objdir=.libs
6504else
6505  # MS-DOS does not allow filenames that begin with a dot.
6506  lt_cv_objdir=_libs
6507fi
6508rmdir .libs 2>/dev/null
6509fi
6510{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6511echo "${ECHO_T}$lt_cv_objdir" >&6; }
6512objdir=$lt_cv_objdir
6513
6514
6515
6516
6517
6518case $host_os in
6519aix3*)
6520  # AIX sometimes has problems with the GCC collect2 program.  For some
6521  # reason, if we set the COLLECT_NAMES environment variable, the problems
6522  # vanish in a puff of smoke.
6523  if test "X${COLLECT_NAMES+set}" != Xset; then
6524    COLLECT_NAMES=
6525    export COLLECT_NAMES
6526  fi
6527  ;;
6528esac
6529
6530# Sed substitution that helps us do robust quoting.  It backslashifies
6531# metacharacters that are still active within double-quoted strings.
6532Xsed='sed -e 1s/^X//'
6533sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6534
6535# Same as above, but do not quote variable references.
6536double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6537
6538# Sed substitution to delay expansion of an escaped shell variable in a
6539# double_quote_subst'ed string.
6540delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6541
6542# Sed substitution to avoid accidental globbing in evaled expressions
6543no_glob_subst='s/\*/\\\*/g'
6544
6545# Constants:
6546rm="rm -f"
6547
6548# Global variables:
6549default_ofile=libtool
6550can_build_shared=yes
6551
6552# All known linkers require a `.a' archive for static linking (except MSVC,
6553# which needs '.lib').
6554libext=a
6555ltmain="$ac_aux_dir/ltmain.sh"
6556ofile="$default_ofile"
6557with_gnu_ld="$lt_cv_prog_gnu_ld"
6558
6559if test -n "$ac_tool_prefix"; then
6560  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6561set dummy ${ac_tool_prefix}ar; ac_word=$2
6562{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6564if test "${ac_cv_prog_AR+set}" = set; then
6565  echo $ECHO_N "(cached) $ECHO_C" >&6
6566else
6567  if test -n "$AR"; then
6568  ac_cv_prog_AR="$AR" # Let the user override the test.
6569else
6570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571for as_dir in $PATH
6572do
6573  IFS=$as_save_IFS
6574  test -z "$as_dir" && as_dir=.
6575  for ac_exec_ext in '' $ac_executable_extensions; do
6576  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6577    ac_cv_prog_AR="${ac_tool_prefix}ar"
6578    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579    break 2
6580  fi
6581done
6582done
6583IFS=$as_save_IFS
6584
6585fi
6586fi
6587AR=$ac_cv_prog_AR
6588if test -n "$AR"; then
6589  { echo "$as_me:$LINENO: result: $AR" >&5
6590echo "${ECHO_T}$AR" >&6; }
6591else
6592  { echo "$as_me:$LINENO: result: no" >&5
6593echo "${ECHO_T}no" >&6; }
6594fi
6595
6596
6597fi
6598if test -z "$ac_cv_prog_AR"; then
6599  ac_ct_AR=$AR
6600  # Extract the first word of "ar", so it can be a program name with args.
6601set dummy ar; ac_word=$2
6602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6604if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6605  echo $ECHO_N "(cached) $ECHO_C" >&6
6606else
6607  if test -n "$ac_ct_AR"; then
6608  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6609else
6610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611for as_dir in $PATH
6612do
6613  IFS=$as_save_IFS
6614  test -z "$as_dir" && as_dir=.
6615  for ac_exec_ext in '' $ac_executable_extensions; do
6616  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6617    ac_cv_prog_ac_ct_AR="ar"
6618    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619    break 2
6620  fi
6621done
6622done
6623IFS=$as_save_IFS
6624
6625fi
6626fi
6627ac_ct_AR=$ac_cv_prog_ac_ct_AR
6628if test -n "$ac_ct_AR"; then
6629  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6630echo "${ECHO_T}$ac_ct_AR" >&6; }
6631else
6632  { echo "$as_me:$LINENO: result: no" >&5
6633echo "${ECHO_T}no" >&6; }
6634fi
6635
6636  if test "x$ac_ct_AR" = x; then
6637    AR="false"
6638  else
6639    case $cross_compiling:$ac_tool_warned in
6640yes:)
6641{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6642whose name does not start with the host triplet.  If you think this
6643configuration is useful to you, please write to autoconf@gnu.org." >&5
6644echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6645whose name does not start with the host triplet.  If you think this
6646configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6647ac_tool_warned=yes ;;
6648esac
6649    AR=$ac_ct_AR
6650  fi
6651else
6652  AR="$ac_cv_prog_AR"
6653fi
6654
6655if test -n "$ac_tool_prefix"; then
6656  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6657set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660if test "${ac_cv_prog_RANLIB+set}" = set; then
6661  echo $ECHO_N "(cached) $ECHO_C" >&6
6662else
6663  if test -n "$RANLIB"; then
6664  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6665else
6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669  IFS=$as_save_IFS
6670  test -z "$as_dir" && as_dir=.
6671  for ac_exec_ext in '' $ac_executable_extensions; do
6672  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6674    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675    break 2
6676  fi
6677done
6678done
6679IFS=$as_save_IFS
6680
6681fi
6682fi
6683RANLIB=$ac_cv_prog_RANLIB
6684if test -n "$RANLIB"; then
6685  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6686echo "${ECHO_T}$RANLIB" >&6; }
6687else
6688  { echo "$as_me:$LINENO: result: no" >&5
6689echo "${ECHO_T}no" >&6; }
6690fi
6691
6692
6693fi
6694if test -z "$ac_cv_prog_RANLIB"; then
6695  ac_ct_RANLIB=$RANLIB
6696  # Extract the first word of "ranlib", so it can be a program name with args.
6697set dummy ranlib; ac_word=$2
6698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6701  echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703  if test -n "$ac_ct_RANLIB"; then
6704  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6705else
6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709  IFS=$as_save_IFS
6710  test -z "$as_dir" && as_dir=.
6711  for ac_exec_ext in '' $ac_executable_extensions; do
6712  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713    ac_cv_prog_ac_ct_RANLIB="ranlib"
6714    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715    break 2
6716  fi
6717done
6718done
6719IFS=$as_save_IFS
6720
6721fi
6722fi
6723ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6724if test -n "$ac_ct_RANLIB"; then
6725  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6726echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6727else
6728  { echo "$as_me:$LINENO: result: no" >&5
6729echo "${ECHO_T}no" >&6; }
6730fi
6731
6732  if test "x$ac_ct_RANLIB" = x; then
6733    RANLIB=":"
6734  else
6735    case $cross_compiling:$ac_tool_warned in
6736yes:)
6737{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6738whose name does not start with the host triplet.  If you think this
6739configuration is useful to you, please write to autoconf@gnu.org." >&5
6740echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6741whose name does not start with the host triplet.  If you think this
6742configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6743ac_tool_warned=yes ;;
6744esac
6745    RANLIB=$ac_ct_RANLIB
6746  fi
6747else
6748  RANLIB="$ac_cv_prog_RANLIB"
6749fi
6750
6751if test -n "$ac_tool_prefix"; then
6752  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6753set dummy ${ac_tool_prefix}strip; ac_word=$2
6754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756if test "${ac_cv_prog_STRIP+set}" = set; then
6757  echo $ECHO_N "(cached) $ECHO_C" >&6
6758else
6759  if test -n "$STRIP"; then
6760  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6761else
6762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763for as_dir in $PATH
6764do
6765  IFS=$as_save_IFS
6766  test -z "$as_dir" && as_dir=.
6767  for ac_exec_ext in '' $ac_executable_extensions; do
6768  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6769    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6770    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771    break 2
6772  fi
6773done
6774done
6775IFS=$as_save_IFS
6776
6777fi
6778fi
6779STRIP=$ac_cv_prog_STRIP
6780if test -n "$STRIP"; then
6781  { echo "$as_me:$LINENO: result: $STRIP" >&5
6782echo "${ECHO_T}$STRIP" >&6; }
6783else
6784  { echo "$as_me:$LINENO: result: no" >&5
6785echo "${ECHO_T}no" >&6; }
6786fi
6787
6788
6789fi
6790if test -z "$ac_cv_prog_STRIP"; then
6791  ac_ct_STRIP=$STRIP
6792  # Extract the first word of "strip", so it can be a program name with args.
6793set dummy strip; ac_word=$2
6794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6797  echo $ECHO_N "(cached) $ECHO_C" >&6
6798else
6799  if test -n "$ac_ct_STRIP"; then
6800  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6801else
6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803for as_dir in $PATH
6804do
6805  IFS=$as_save_IFS
6806  test -z "$as_dir" && as_dir=.
6807  for ac_exec_ext in '' $ac_executable_extensions; do
6808  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809    ac_cv_prog_ac_ct_STRIP="strip"
6810    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811    break 2
6812  fi
6813done
6814done
6815IFS=$as_save_IFS
6816
6817fi
6818fi
6819ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6820if test -n "$ac_ct_STRIP"; then
6821  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6822echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6823else
6824  { echo "$as_me:$LINENO: result: no" >&5
6825echo "${ECHO_T}no" >&6; }
6826fi
6827
6828  if test "x$ac_ct_STRIP" = x; then
6829    STRIP=":"
6830  else
6831    case $cross_compiling:$ac_tool_warned in
6832yes:)
6833{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6834whose name does not start with the host triplet.  If you think this
6835configuration is useful to you, please write to autoconf@gnu.org." >&5
6836echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6837whose name does not start with the host triplet.  If you think this
6838configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6839ac_tool_warned=yes ;;
6840esac
6841    STRIP=$ac_ct_STRIP
6842  fi
6843else
6844  STRIP="$ac_cv_prog_STRIP"
6845fi
6846
6847
6848old_CC="$CC"
6849old_CFLAGS="$CFLAGS"
6850
6851# Set sane defaults for various variables
6852test -z "$AR" && AR=ar
6853test -z "$AR_FLAGS" && AR_FLAGS=cru
6854test -z "$AS" && AS=as
6855test -z "$CC" && CC=cc
6856test -z "$LTCC" && LTCC=$CC
6857test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6858test -z "$DLLTOOL" && DLLTOOL=dlltool
6859test -z "$LD" && LD=ld
6860test -z "$LN_S" && LN_S="ln -s"
6861test -z "$MAGIC_CMD" && MAGIC_CMD=file
6862test -z "$NM" && NM=nm
6863test -z "$SED" && SED=sed
6864test -z "$OBJDUMP" && OBJDUMP=objdump
6865test -z "$RANLIB" && RANLIB=:
6866test -z "$STRIP" && STRIP=:
6867test -z "$ac_objext" && ac_objext=o
6868
6869# Determine commands to create old-style static archives.
6870old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6871old_postinstall_cmds='chmod 644 $oldlib'
6872old_postuninstall_cmds=
6873
6874if test -n "$RANLIB"; then
6875  case $host_os in
6876  openbsd*)
6877    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6878    ;;
6879  *)
6880    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6881    ;;
6882  esac
6883  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6884fi
6885
6886for cc_temp in $compiler""; do
6887  case $cc_temp in
6888    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6889    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6890    \-*) ;;
6891    *) break;;
6892  esac
6893done
6894cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6895
6896
6897# Only perform the check for file, if the check method requires it
6898case $deplibs_check_method in
6899file_magic*)
6900  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6901    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6902echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6903if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6904  echo $ECHO_N "(cached) $ECHO_C" >&6
6905else
6906  case $MAGIC_CMD in
6907[\\/*] |  ?:[\\/]*)
6908  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6909  ;;
6910*)
6911  lt_save_MAGIC_CMD="$MAGIC_CMD"
6912  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6913  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6914  for ac_dir in $ac_dummy; do
6915    IFS="$lt_save_ifs"
6916    test -z "$ac_dir" && ac_dir=.
6917    if test -f $ac_dir/${ac_tool_prefix}file; then
6918      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6919      if test -n "$file_magic_test_file"; then
6920	case $deplibs_check_method in
6921	"file_magic "*)
6922	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6923	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6924	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6925	    $EGREP "$file_magic_regex" > /dev/null; then
6926	    :
6927	  else
6928	    cat <<EOF 1>&2
6929
6930*** Warning: the command libtool uses to detect shared libraries,
6931*** $file_magic_cmd, produces output that libtool cannot recognize.
6932*** The result is that libtool may fail to recognize shared libraries
6933*** as such.  This will affect the creation of libtool libraries that
6934*** depend on shared libraries, but programs linked with such libtool
6935*** libraries will work regardless of this problem.  Nevertheless, you
6936*** may want to report the problem to your system manager and/or to
6937*** bug-libtool@gnu.org
6938
6939EOF
6940	  fi ;;
6941	esac
6942      fi
6943      break
6944    fi
6945  done
6946  IFS="$lt_save_ifs"
6947  MAGIC_CMD="$lt_save_MAGIC_CMD"
6948  ;;
6949esac
6950fi
6951
6952MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6953if test -n "$MAGIC_CMD"; then
6954  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6955echo "${ECHO_T}$MAGIC_CMD" >&6; }
6956else
6957  { echo "$as_me:$LINENO: result: no" >&5
6958echo "${ECHO_T}no" >&6; }
6959fi
6960
6961if test -z "$lt_cv_path_MAGIC_CMD"; then
6962  if test -n "$ac_tool_prefix"; then
6963    { echo "$as_me:$LINENO: checking for file" >&5
6964echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6965if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6966  echo $ECHO_N "(cached) $ECHO_C" >&6
6967else
6968  case $MAGIC_CMD in
6969[\\/*] |  ?:[\\/]*)
6970  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6971  ;;
6972*)
6973  lt_save_MAGIC_CMD="$MAGIC_CMD"
6974  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6975  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6976  for ac_dir in $ac_dummy; do
6977    IFS="$lt_save_ifs"
6978    test -z "$ac_dir" && ac_dir=.
6979    if test -f $ac_dir/file; then
6980      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6981      if test -n "$file_magic_test_file"; then
6982	case $deplibs_check_method in
6983	"file_magic "*)
6984	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6985	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6986	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6987	    $EGREP "$file_magic_regex" > /dev/null; then
6988	    :
6989	  else
6990	    cat <<EOF 1>&2
6991
6992*** Warning: the command libtool uses to detect shared libraries,
6993*** $file_magic_cmd, produces output that libtool cannot recognize.
6994*** The result is that libtool may fail to recognize shared libraries
6995*** as such.  This will affect the creation of libtool libraries that
6996*** depend on shared libraries, but programs linked with such libtool
6997*** libraries will work regardless of this problem.  Nevertheless, you
6998*** may want to report the problem to your system manager and/or to
6999*** bug-libtool@gnu.org
7000
7001EOF
7002	  fi ;;
7003	esac
7004      fi
7005      break
7006    fi
7007  done
7008  IFS="$lt_save_ifs"
7009  MAGIC_CMD="$lt_save_MAGIC_CMD"
7010  ;;
7011esac
7012fi
7013
7014MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7015if test -n "$MAGIC_CMD"; then
7016  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7017echo "${ECHO_T}$MAGIC_CMD" >&6; }
7018else
7019  { echo "$as_me:$LINENO: result: no" >&5
7020echo "${ECHO_T}no" >&6; }
7021fi
7022
7023  else
7024    MAGIC_CMD=:
7025  fi
7026fi
7027
7028  fi
7029  ;;
7030esac
7031
7032enable_dlopen=no
7033enable_win32_dll=no
7034
7035# Check whether --enable-libtool-lock was given.
7036if test "${enable_libtool_lock+set}" = set; then
7037  enableval=$enable_libtool_lock;
7038fi
7039
7040test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7041
7042
7043# Check whether --with-pic was given.
7044if test "${with_pic+set}" = set; then
7045  withval=$with_pic; pic_mode="$withval"
7046else
7047  pic_mode=default
7048fi
7049
7050test -z "$pic_mode" && pic_mode=default
7051
7052# Use C for the default configuration in the libtool script
7053tagname=
7054lt_save_CC="$CC"
7055ac_ext=c
7056ac_cpp='$CPP $CPPFLAGS'
7057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7059ac_compiler_gnu=$ac_cv_c_compiler_gnu
7060
7061
7062# Source file extension for C test sources.
7063ac_ext=c
7064
7065# Object file extension for compiled C test sources.
7066objext=o
7067objext=$objext
7068
7069# Code to be used in simple compile tests
7070lt_simple_compile_test_code="int some_variable = 0;\n"
7071
7072# Code to be used in simple link tests
7073lt_simple_link_test_code='int main(){return(0);}\n'
7074
7075
7076# If no C compiler was specified, use CC.
7077LTCC=${LTCC-"$CC"}
7078
7079# If no C compiler flags were specified, use CFLAGS.
7080LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7081
7082# Allow CC to be a program name with arguments.
7083compiler=$CC
7084
7085
7086# save warnings/boilerplate of simple test code
7087ac_outfile=conftest.$ac_objext
7088printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7089eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7090_lt_compiler_boilerplate=`cat conftest.err`
7091$rm conftest*
7092
7093ac_outfile=conftest.$ac_objext
7094printf "$lt_simple_link_test_code" >conftest.$ac_ext
7095eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7096_lt_linker_boilerplate=`cat conftest.err`
7097$rm conftest*
7098
7099
7100
7101lt_prog_compiler_no_builtin_flag=
7102
7103if test "$GCC" = yes; then
7104  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7105
7106
7107{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7108echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7109if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7110  echo $ECHO_N "(cached) $ECHO_C" >&6
7111else
7112  lt_cv_prog_compiler_rtti_exceptions=no
7113  ac_outfile=conftest.$ac_objext
7114   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7115   lt_compiler_flag="-fno-rtti -fno-exceptions"
7116   # Insert the option either (1) after the last *FLAGS variable, or
7117   # (2) before a word containing "conftest.", or (3) at the end.
7118   # Note that $ac_compile itself does not contain backslashes and begins
7119   # with a dollar sign (not a hyphen), so the echo should work correctly.
7120   # The option is referenced via a variable to avoid confusing sed.
7121   lt_compile=`echo "$ac_compile" | $SED \
7122   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7123   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7124   -e 's:$: $lt_compiler_flag:'`
7125   (eval echo "\"\$as_me:7125: $lt_compile\"" >&5)
7126   (eval "$lt_compile" 2>conftest.err)
7127   ac_status=$?
7128   cat conftest.err >&5
7129   echo "$as_me:7129: \$? = $ac_status" >&5
7130   if (exit $ac_status) && test -s "$ac_outfile"; then
7131     # The compiler can only warn and ignore the option if not recognized
7132     # So say no if there are warnings other than the usual output.
7133     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7134     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7135     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7136       lt_cv_prog_compiler_rtti_exceptions=yes
7137     fi
7138   fi
7139   $rm conftest*
7140
7141fi
7142{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7143echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7144
7145if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7146    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7147else
7148    :
7149fi
7150
7151fi
7152
7153lt_prog_compiler_wl=
7154lt_prog_compiler_pic=
7155lt_prog_compiler_static=
7156
7157{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7158echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7159
7160  if test "$GCC" = yes; then
7161    lt_prog_compiler_wl='-Wl,'
7162    lt_prog_compiler_static='-static'
7163
7164    case $host_os in
7165      aix*)
7166      # All AIX code is PIC.
7167      if test "$host_cpu" = ia64; then
7168	# AIX 5 now supports IA64 processor
7169	lt_prog_compiler_static='-Bstatic'
7170      fi
7171      ;;
7172
7173    amigaos*)
7174      # FIXME: we need at least 68020 code to build shared libraries, but
7175      # adding the `-m68020' flag to GCC prevents building anything better,
7176      # like `-m68040'.
7177      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7178      ;;
7179
7180    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7181      # PIC is the default for these OSes.
7182      ;;
7183
7184    mingw* | pw32* | os2*)
7185      # This hack is so that the source file can tell whether it is being
7186      # built for inclusion in a dll (and should export symbols for example).
7187      lt_prog_compiler_pic='-DDLL_EXPORT'
7188      ;;
7189
7190    darwin* | rhapsody*)
7191      # PIC is the default on this platform
7192      # Common symbols not allowed in MH_DYLIB files
7193      lt_prog_compiler_pic='-fno-common'
7194      ;;
7195
7196    interix3*)
7197      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7198      # Instead, we relocate shared libraries at runtime.
7199      ;;
7200
7201    msdosdjgpp*)
7202      # Just because we use GCC doesn't mean we suddenly get shared libraries
7203      # on systems that don't support them.
7204      lt_prog_compiler_can_build_shared=no
7205      enable_shared=no
7206      ;;
7207
7208    sysv4*MP*)
7209      if test -d /usr/nec; then
7210	lt_prog_compiler_pic=-Kconform_pic
7211      fi
7212      ;;
7213
7214    hpux*)
7215      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7216      # not for PA HP-UX.
7217      case $host_cpu in
7218      hppa*64*|ia64*)
7219	# +Z the default
7220	;;
7221      *)
7222	lt_prog_compiler_pic='-fPIC'
7223	;;
7224      esac
7225      ;;
7226
7227    *)
7228      lt_prog_compiler_pic='-fPIC'
7229      ;;
7230    esac
7231  else
7232    # PORTME Check for flag to pass linker flags through the system compiler.
7233    case $host_os in
7234    aix*)
7235      lt_prog_compiler_wl='-Wl,'
7236      if test "$host_cpu" = ia64; then
7237	# AIX 5 now supports IA64 processor
7238	lt_prog_compiler_static='-Bstatic'
7239      else
7240	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7241      fi
7242      ;;
7243      darwin*)
7244        # PIC is the default on this platform
7245        # Common symbols not allowed in MH_DYLIB files
7246       case $cc_basename in
7247         xlc*)
7248         lt_prog_compiler_pic='-qnocommon'
7249         lt_prog_compiler_wl='-Wl,'
7250         ;;
7251       esac
7252       ;;
7253
7254    mingw* | pw32* | os2*)
7255      # This hack is so that the source file can tell whether it is being
7256      # built for inclusion in a dll (and should export symbols for example).
7257      lt_prog_compiler_pic='-DDLL_EXPORT'
7258      ;;
7259
7260    hpux9* | hpux10* | hpux11*)
7261      lt_prog_compiler_wl='-Wl,'
7262      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7263      # not for PA HP-UX.
7264      case $host_cpu in
7265      hppa*64*|ia64*)
7266	# +Z the default
7267	;;
7268      *)
7269	lt_prog_compiler_pic='+Z'
7270	;;
7271      esac
7272      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7273      lt_prog_compiler_static='${wl}-a ${wl}archive'
7274      ;;
7275
7276    irix5* | irix6* | nonstopux*)
7277      lt_prog_compiler_wl='-Wl,'
7278      # PIC (with -KPIC) is the default.
7279      lt_prog_compiler_static='-non_shared'
7280      ;;
7281
7282    newsos6)
7283      lt_prog_compiler_pic='-KPIC'
7284      lt_prog_compiler_static='-Bstatic'
7285      ;;
7286
7287    linux*)
7288      case $cc_basename in
7289      icc* | ecc*)
7290	lt_prog_compiler_wl='-Wl,'
7291	lt_prog_compiler_pic='-KPIC'
7292	lt_prog_compiler_static='-static'
7293        ;;
7294      pgcc* | pgf77* | pgf90* | pgf95*)
7295        # Portland Group compilers (*not* the Pentium gcc compiler,
7296	# which looks to be a dead project)
7297	lt_prog_compiler_wl='-Wl,'
7298	lt_prog_compiler_pic='-fpic'
7299	lt_prog_compiler_static='-Bstatic'
7300        ;;
7301      ccc*)
7302        lt_prog_compiler_wl='-Wl,'
7303        # All Alpha code is PIC.
7304        lt_prog_compiler_static='-non_shared'
7305        ;;
7306      esac
7307      ;;
7308
7309    osf3* | osf4* | osf5*)
7310      lt_prog_compiler_wl='-Wl,'
7311      # All OSF/1 code is PIC.
7312      lt_prog_compiler_static='-non_shared'
7313      ;;
7314
7315    solaris*)
7316      lt_prog_compiler_pic='-KPIC'
7317      lt_prog_compiler_static='-Bstatic'
7318      case $cc_basename in
7319      f77* | f90* | f95*)
7320	lt_prog_compiler_wl='-Qoption ld ';;
7321      *)
7322	lt_prog_compiler_wl='-Wl,';;
7323      esac
7324      ;;
7325
7326    sunos4*)
7327      lt_prog_compiler_wl='-Qoption ld '
7328      lt_prog_compiler_pic='-PIC'
7329      lt_prog_compiler_static='-Bstatic'
7330      ;;
7331
7332    sysv4 | sysv4.2uw2* | sysv4.3*)
7333      lt_prog_compiler_wl='-Wl,'
7334      lt_prog_compiler_pic='-KPIC'
7335      lt_prog_compiler_static='-Bstatic'
7336      ;;
7337
7338    sysv4*MP*)
7339      if test -d /usr/nec ;then
7340	lt_prog_compiler_pic='-Kconform_pic'
7341	lt_prog_compiler_static='-Bstatic'
7342      fi
7343      ;;
7344
7345    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7346      lt_prog_compiler_wl='-Wl,'
7347      lt_prog_compiler_pic='-KPIC'
7348      lt_prog_compiler_static='-Bstatic'
7349      ;;
7350
7351    unicos*)
7352      lt_prog_compiler_wl='-Wl,'
7353      lt_prog_compiler_can_build_shared=no
7354      ;;
7355
7356    uts4*)
7357      lt_prog_compiler_pic='-pic'
7358      lt_prog_compiler_static='-Bstatic'
7359      ;;
7360
7361    *)
7362      lt_prog_compiler_can_build_shared=no
7363      ;;
7364    esac
7365  fi
7366
7367{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7368echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7369
7370#
7371# Check to make sure the PIC flag actually works.
7372#
7373if test -n "$lt_prog_compiler_pic"; then
7374
7375{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7376echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7377if test "${lt_prog_compiler_pic_works+set}" = set; then
7378  echo $ECHO_N "(cached) $ECHO_C" >&6
7379else
7380  lt_prog_compiler_pic_works=no
7381  ac_outfile=conftest.$ac_objext
7382   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7383   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7384   # Insert the option either (1) after the last *FLAGS variable, or
7385   # (2) before a word containing "conftest.", or (3) at the end.
7386   # Note that $ac_compile itself does not contain backslashes and begins
7387   # with a dollar sign (not a hyphen), so the echo should work correctly.
7388   # The option is referenced via a variable to avoid confusing sed.
7389   lt_compile=`echo "$ac_compile" | $SED \
7390   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7391   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7392   -e 's:$: $lt_compiler_flag:'`
7393   (eval echo "\"\$as_me:7393: $lt_compile\"" >&5)
7394   (eval "$lt_compile" 2>conftest.err)
7395   ac_status=$?
7396   cat conftest.err >&5
7397   echo "$as_me:7397: \$? = $ac_status" >&5
7398   if (exit $ac_status) && test -s "$ac_outfile"; then
7399     # The compiler can only warn and ignore the option if not recognized
7400     # So say no if there are warnings other than the usual output.
7401     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7402     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7403     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7404       lt_prog_compiler_pic_works=yes
7405     fi
7406   fi
7407   $rm conftest*
7408
7409fi
7410{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7411echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7412
7413if test x"$lt_prog_compiler_pic_works" = xyes; then
7414    case $lt_prog_compiler_pic in
7415     "" | " "*) ;;
7416     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7417     esac
7418else
7419    lt_prog_compiler_pic=
7420     lt_prog_compiler_can_build_shared=no
7421fi
7422
7423fi
7424case $host_os in
7425  # For platforms which do not support PIC, -DPIC is meaningless:
7426  *djgpp*)
7427    lt_prog_compiler_pic=
7428    ;;
7429  *)
7430    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7431    ;;
7432esac
7433
7434#
7435# Check to make sure the static flag actually works.
7436#
7437wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7438{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7439echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7440if test "${lt_prog_compiler_static_works+set}" = set; then
7441  echo $ECHO_N "(cached) $ECHO_C" >&6
7442else
7443  lt_prog_compiler_static_works=no
7444   save_LDFLAGS="$LDFLAGS"
7445   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7446   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7447   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7448     # The linker can only warn and ignore the option if not recognized
7449     # So say no if there are warnings
7450     if test -s conftest.err; then
7451       # Append any errors to the config.log.
7452       cat conftest.err 1>&5
7453       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7454       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7455       if diff conftest.exp conftest.er2 >/dev/null; then
7456         lt_prog_compiler_static_works=yes
7457       fi
7458     else
7459       lt_prog_compiler_static_works=yes
7460     fi
7461   fi
7462   $rm conftest*
7463   LDFLAGS="$save_LDFLAGS"
7464
7465fi
7466{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7467echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7468
7469if test x"$lt_prog_compiler_static_works" = xyes; then
7470    :
7471else
7472    lt_prog_compiler_static=
7473fi
7474
7475
7476{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7477echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7478if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7479  echo $ECHO_N "(cached) $ECHO_C" >&6
7480else
7481  lt_cv_prog_compiler_c_o=no
7482   $rm -r conftest 2>/dev/null
7483   mkdir conftest
7484   cd conftest
7485   mkdir out
7486   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7487
7488   lt_compiler_flag="-o out/conftest2.$ac_objext"
7489   # Insert the option either (1) after the last *FLAGS variable, or
7490   # (2) before a word containing "conftest.", or (3) at the end.
7491   # Note that $ac_compile itself does not contain backslashes and begins
7492   # with a dollar sign (not a hyphen), so the echo should work correctly.
7493   lt_compile=`echo "$ac_compile" | $SED \
7494   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7495   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7496   -e 's:$: $lt_compiler_flag:'`
7497   (eval echo "\"\$as_me:7497: $lt_compile\"" >&5)
7498   (eval "$lt_compile" 2>out/conftest.err)
7499   ac_status=$?
7500   cat out/conftest.err >&5
7501   echo "$as_me:7501: \$? = $ac_status" >&5
7502   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7503   then
7504     # The compiler can only warn and ignore the option if not recognized
7505     # So say no if there are warnings
7506     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7507     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7508     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7509       lt_cv_prog_compiler_c_o=yes
7510     fi
7511   fi
7512   chmod u+w . 2>&5
7513   $rm conftest*
7514   # SGI C++ compiler will create directory out/ii_files/ for
7515   # template instantiation
7516   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7517   $rm out/* && rmdir out
7518   cd ..
7519   rmdir conftest
7520   $rm conftest*
7521
7522fi
7523{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7524echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7525
7526
7527hard_links="nottested"
7528if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7529  # do not overwrite the value of need_locks provided by the user
7530  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7531echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7532  hard_links=yes
7533  $rm conftest*
7534  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7535  touch conftest.a
7536  ln conftest.a conftest.b 2>&5 || hard_links=no
7537  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7538  { echo "$as_me:$LINENO: result: $hard_links" >&5
7539echo "${ECHO_T}$hard_links" >&6; }
7540  if test "$hard_links" = no; then
7541    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7542echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7543    need_locks=warn
7544  fi
7545else
7546  need_locks=no
7547fi
7548
7549{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7550echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7551
7552  runpath_var=
7553  allow_undefined_flag=
7554  enable_shared_with_static_runtimes=no
7555  archive_cmds=
7556  archive_expsym_cmds=
7557  old_archive_From_new_cmds=
7558  old_archive_from_expsyms_cmds=
7559  export_dynamic_flag_spec=
7560  whole_archive_flag_spec=
7561  thread_safe_flag_spec=
7562  hardcode_libdir_flag_spec=
7563  hardcode_libdir_flag_spec_ld=
7564  hardcode_libdir_separator=
7565  hardcode_direct=no
7566  hardcode_minus_L=no
7567  hardcode_shlibpath_var=unsupported
7568  link_all_deplibs=unknown
7569  hardcode_automatic=no
7570  module_cmds=
7571  module_expsym_cmds=
7572  always_export_symbols=no
7573  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7574  # include_expsyms should be a list of space-separated symbols to be *always*
7575  # included in the symbol list
7576  include_expsyms=
7577  # exclude_expsyms can be an extended regexp of symbols to exclude
7578  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7579  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7580  # as well as any symbol that contains `d'.
7581  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7582  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7583  # platforms (ab)use it in PIC code, but their linkers get confused if
7584  # the symbol is explicitly referenced.  Since portable code cannot
7585  # rely on this symbol name, it's probably fine to never include it in
7586  # preloaded symbol tables.
7587  extract_expsyms_cmds=
7588  # Just being paranoid about ensuring that cc_basename is set.
7589  for cc_temp in $compiler""; do
7590  case $cc_temp in
7591    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7592    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7593    \-*) ;;
7594    *) break;;
7595  esac
7596done
7597cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7598
7599  case $host_os in
7600  cygwin* | mingw* | pw32*)
7601    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7602    # When not using gcc, we currently assume that we are using
7603    # Microsoft Visual C++.
7604    if test "$GCC" != yes; then
7605      with_gnu_ld=no
7606    fi
7607    ;;
7608  interix*)
7609    # we just hope/assume this is gcc and not c89 (= MSVC++)
7610    with_gnu_ld=yes
7611    ;;
7612  openbsd*)
7613    with_gnu_ld=no
7614    ;;
7615  esac
7616
7617  ld_shlibs=yes
7618  if test "$with_gnu_ld" = yes; then
7619    # If archive_cmds runs LD, not CC, wlarc should be empty
7620    wlarc='${wl}'
7621
7622    # Set some defaults for GNU ld with shared library support. These
7623    # are reset later if shared libraries are not supported. Putting them
7624    # here allows them to be overridden if necessary.
7625    runpath_var=LD_RUN_PATH
7626    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7627    export_dynamic_flag_spec='${wl}--export-dynamic'
7628    # ancient GNU ld didn't support --whole-archive et. al.
7629    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7630	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7631      else
7632  	whole_archive_flag_spec=
7633    fi
7634    supports_anon_versioning=no
7635    case `$LD -v 2>/dev/null` in
7636      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7637      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7638      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7639      *\ 2.11.*) ;; # other 2.11 versions
7640      *) supports_anon_versioning=yes ;;
7641    esac
7642
7643    # See if GNU ld supports shared libraries.
7644    case $host_os in
7645    aix3* | aix4* | aix5*)
7646      # On AIX/PPC, the GNU linker is very broken
7647      if test "$host_cpu" != ia64; then
7648	ld_shlibs=no
7649	cat <<EOF 1>&2
7650
7651*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7652*** to be unable to reliably create shared libraries on AIX.
7653*** Therefore, libtool is disabling shared libraries support.  If you
7654*** really care for shared libraries, you may want to modify your PATH
7655*** so that a non-GNU linker is found, and then restart.
7656
7657EOF
7658      fi
7659      ;;
7660
7661    amigaos*)
7662      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)'
7663      hardcode_libdir_flag_spec='-L$libdir'
7664      hardcode_minus_L=yes
7665
7666      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7667      # that the semantics of dynamic libraries on AmigaOS, at least up
7668      # to version 4, is to share data among multiple programs linked
7669      # with the same dynamic library.  Since this doesn't match the
7670      # behavior of shared libraries on other platforms, we can't use
7671      # them.
7672      ld_shlibs=no
7673      ;;
7674
7675    beos*)
7676      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7677	allow_undefined_flag=unsupported
7678	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7679	# support --undefined.  This deserves some investigation.  FIXME
7680	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7681      else
7682	ld_shlibs=no
7683      fi
7684      ;;
7685
7686    cygwin* | mingw* | pw32*)
7687      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7688      # as there is no search path for DLLs.
7689      hardcode_libdir_flag_spec='-L$libdir'
7690      allow_undefined_flag=unsupported
7691      always_export_symbols=no
7692      enable_shared_with_static_runtimes=yes
7693      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7694
7695      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7696        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7697	# If the export-symbols file already is a .def file (1st line
7698	# is EXPORTS), use it as is; otherwise, prepend...
7699	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7700	  cp $export_symbols $output_objdir/$soname.def;
7701	else
7702	  echo EXPORTS > $output_objdir/$soname.def;
7703	  cat $export_symbols >> $output_objdir/$soname.def;
7704	fi~
7705	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7706      else
7707	ld_shlibs=no
7708      fi
7709      ;;
7710
7711    interix3*)
7712      hardcode_direct=no
7713      hardcode_shlibpath_var=no
7714      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7715      export_dynamic_flag_spec='${wl}-E'
7716      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7717      # Instead, shared libraries are loaded at an image base (0x10000000 by
7718      # default) and relocated if they conflict, which is a slow very memory
7719      # consuming and fragmenting process.  To avoid this, we pick a random,
7720      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7721      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7722      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7723      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'
7724      ;;
7725
7726    linux*)
7727      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7728	tmp_addflag=
7729	case $cc_basename,$host_cpu in
7730	pgcc*)				# Portland Group C compiler
7731	  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'
7732	  tmp_addflag=' $pic_flag'
7733	  ;;
7734	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7735	  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'
7736	  tmp_addflag=' $pic_flag -Mnomain' ;;
7737	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7738	  tmp_addflag=' -i_dynamic' ;;
7739	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7740	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7741	ifc* | ifort*)			# Intel Fortran compiler
7742	  tmp_addflag=' -nofor_main' ;;
7743	esac
7744	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7745
7746	if test $supports_anon_versioning = yes; then
7747	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7748  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7749  $echo "local: *; };" >> $output_objdir/$libname.ver~
7750	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7751	fi
7752      else
7753	ld_shlibs=no
7754      fi
7755      ;;
7756
7757    netbsd*)
7758      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7759	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7760	wlarc=
7761      else
7762	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7763	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7764      fi
7765      ;;
7766
7767    solaris*)
7768      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7769	ld_shlibs=no
7770	cat <<EOF 1>&2
7771
7772*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7773*** create shared libraries on Solaris systems.  Therefore, libtool
7774*** is disabling shared libraries support.  We urge you to upgrade GNU
7775*** binutils to release 2.9.1 or newer.  Another option is to modify
7776*** your PATH or compiler configuration so that the native linker is
7777*** used, and then restart.
7778
7779EOF
7780      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7781	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7782	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7783      else
7784	ld_shlibs=no
7785      fi
7786      ;;
7787
7788    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7789      case `$LD -v 2>&1` in
7790        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7791	ld_shlibs=no
7792	cat <<_LT_EOF 1>&2
7793
7794*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7795*** reliably create shared libraries on SCO systems.  Therefore, libtool
7796*** is disabling shared libraries support.  We urge you to upgrade GNU
7797*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7798*** your PATH or compiler configuration so that the native linker is
7799*** used, and then restart.
7800
7801_LT_EOF
7802	;;
7803	*)
7804	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7805	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7806	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7807	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7808	  else
7809	    ld_shlibs=no
7810	  fi
7811	;;
7812      esac
7813      ;;
7814
7815    sunos4*)
7816      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7817      wlarc=
7818      hardcode_direct=yes
7819      hardcode_shlibpath_var=no
7820      ;;
7821
7822    *)
7823      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7824	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7825	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7826      else
7827	ld_shlibs=no
7828      fi
7829      ;;
7830    esac
7831
7832    if test "$ld_shlibs" = no; then
7833      runpath_var=
7834      hardcode_libdir_flag_spec=
7835      export_dynamic_flag_spec=
7836      whole_archive_flag_spec=
7837    fi
7838  else
7839    # PORTME fill in a description of your system's linker (not GNU ld)
7840    case $host_os in
7841    aix3*)
7842      allow_undefined_flag=unsupported
7843      always_export_symbols=yes
7844      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'
7845      # Note: this linker hardcodes the directories in LIBPATH if there
7846      # are no directories specified by -L.
7847      hardcode_minus_L=yes
7848      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7849	# Neither direct hardcoding nor static linking is supported with a
7850	# broken collect2.
7851	hardcode_direct=unsupported
7852      fi
7853      ;;
7854
7855    aix4* | aix5*)
7856      if test "$host_cpu" = ia64; then
7857	# On IA64, the linker does run time linking by default, so we don't
7858	# have to do anything special.
7859	aix_use_runtimelinking=no
7860	exp_sym_flag='-Bexport'
7861	no_entry_flag=""
7862      else
7863	# If we're using GNU nm, then we don't want the "-C" option.
7864	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7865	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7866	  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'
7867	else
7868	  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'
7869	fi
7870	aix_use_runtimelinking=no
7871
7872	# Test if we are trying to use run time linking or normal
7873	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7874	# need to do runtime linking.
7875	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7876	  for ld_flag in $LDFLAGS; do
7877  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7878  	    aix_use_runtimelinking=yes
7879  	    break
7880  	  fi
7881	  done
7882	  ;;
7883	esac
7884
7885	exp_sym_flag='-bexport'
7886	no_entry_flag='-bnoentry'
7887      fi
7888
7889      # When large executables or shared objects are built, AIX ld can
7890      # have problems creating the table of contents.  If linking a library
7891      # or program results in "error TOC overflow" add -mminimal-toc to
7892      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7893      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7894
7895      archive_cmds=''
7896      hardcode_direct=yes
7897      hardcode_libdir_separator=':'
7898      link_all_deplibs=yes
7899
7900      if test "$GCC" = yes; then
7901	case $host_os in aix4.[012]|aix4.[012].*)
7902	# We only want to do this on AIX 4.2 and lower, the check
7903	# below for broken collect2 doesn't work under 4.3+
7904	  collect2name=`${CC} -print-prog-name=collect2`
7905	  if test -f "$collect2name" && \
7906  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7907	  then
7908  	  # We have reworked collect2
7909  	  hardcode_direct=yes
7910	  else
7911  	  # We have old collect2
7912  	  hardcode_direct=unsupported
7913  	  # It fails to find uninstalled libraries when the uninstalled
7914  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7915  	  # to unsupported forces relinking
7916  	  hardcode_minus_L=yes
7917  	  hardcode_libdir_flag_spec='-L$libdir'
7918  	  hardcode_libdir_separator=
7919	  fi
7920	  ;;
7921	esac
7922	shared_flag='-shared'
7923	if test "$aix_use_runtimelinking" = yes; then
7924	  shared_flag="$shared_flag "'${wl}-G'
7925	fi
7926      else
7927	# not using gcc
7928	if test "$host_cpu" = ia64; then
7929  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7930  	# chokes on -Wl,-G. The following line is correct:
7931	  shared_flag='-G'
7932	else
7933	  if test "$aix_use_runtimelinking" = yes; then
7934	    shared_flag='${wl}-G'
7935	  else
7936	    shared_flag='${wl}-bM:SRE'
7937	  fi
7938	fi
7939      fi
7940
7941      # It seems that -bexpall does not export symbols beginning with
7942      # underscore (_), so it is better to generate a list of symbols to export.
7943      always_export_symbols=yes
7944      if test "$aix_use_runtimelinking" = yes; then
7945	# Warning - without using the other runtime loading flags (-brtl),
7946	# -berok will link without error, but may produce a broken library.
7947	allow_undefined_flag='-berok'
7948       # Determine the default libpath from the value encoded in an empty executable.
7949       cat >conftest.$ac_ext <<_ACEOF
7950/* confdefs.h.  */
7951_ACEOF
7952cat confdefs.h >>conftest.$ac_ext
7953cat >>conftest.$ac_ext <<_ACEOF
7954/* end confdefs.h.  */
7955
7956int
7957main ()
7958{
7959
7960  ;
7961  return 0;
7962}
7963_ACEOF
7964rm -f conftest.$ac_objext conftest$ac_exeext
7965if { (ac_try="$ac_link"
7966case "(($ac_try" in
7967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968  *) ac_try_echo=$ac_try;;
7969esac
7970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971  (eval "$ac_link") 2>conftest.er1
7972  ac_status=$?
7973  grep -v '^ *+' conftest.er1 >conftest.err
7974  rm -f conftest.er1
7975  cat conftest.err >&5
7976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977  (exit $ac_status); } && {
7978	 test -z "$ac_c_werror_flag" ||
7979	 test ! -s conftest.err
7980       } && test -s conftest$ac_exeext &&
7981       $as_test_x conftest$ac_exeext; then
7982
7983aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7984}'`
7985# Check for a 64-bit object if we didn't find anything.
7986if 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; }
7987}'`; fi
7988else
7989  echo "$as_me: failed program was:" >&5
7990sed 's/^/| /' conftest.$ac_ext >&5
7991
7992
7993fi
7994
7995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7996      conftest$ac_exeext conftest.$ac_ext
7997if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7998
7999       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8000	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"
8001       else
8002	if test "$host_cpu" = ia64; then
8003	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8004	  allow_undefined_flag="-z nodefs"
8005	  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"
8006	else
8007	 # Determine the default libpath from the value encoded in an empty executable.
8008	 cat >conftest.$ac_ext <<_ACEOF
8009/* confdefs.h.  */
8010_ACEOF
8011cat confdefs.h >>conftest.$ac_ext
8012cat >>conftest.$ac_ext <<_ACEOF
8013/* end confdefs.h.  */
8014
8015int
8016main ()
8017{
8018
8019  ;
8020  return 0;
8021}
8022_ACEOF
8023rm -f conftest.$ac_objext conftest$ac_exeext
8024if { (ac_try="$ac_link"
8025case "(($ac_try" in
8026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027  *) ac_try_echo=$ac_try;;
8028esac
8029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030  (eval "$ac_link") 2>conftest.er1
8031  ac_status=$?
8032  grep -v '^ *+' conftest.er1 >conftest.err
8033  rm -f conftest.er1
8034  cat conftest.err >&5
8035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036  (exit $ac_status); } && {
8037	 test -z "$ac_c_werror_flag" ||
8038	 test ! -s conftest.err
8039       } && test -s conftest$ac_exeext &&
8040       $as_test_x conftest$ac_exeext; then
8041
8042aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8043}'`
8044# Check for a 64-bit object if we didn't find anything.
8045if 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; }
8046}'`; fi
8047else
8048  echo "$as_me: failed program was:" >&5
8049sed 's/^/| /' conftest.$ac_ext >&5
8050
8051
8052fi
8053
8054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8055      conftest$ac_exeext conftest.$ac_ext
8056if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8057
8058	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8059	  # Warning - without using the other run time loading flags,
8060	  # -berok will link without error, but may produce a broken library.
8061	  no_undefined_flag=' ${wl}-bernotok'
8062	  allow_undefined_flag=' ${wl}-berok'
8063	  # Exported symbols can be pulled into shared objects from archives
8064	  whole_archive_flag_spec='$convenience'
8065	  archive_cmds_need_lc=yes
8066	  # This is similar to how AIX traditionally builds its shared libraries.
8067	  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'
8068	fi
8069      fi
8070      ;;
8071
8072    amigaos*)
8073      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)'
8074      hardcode_libdir_flag_spec='-L$libdir'
8075      hardcode_minus_L=yes
8076      # see comment about different semantics on the GNU ld section
8077      ld_shlibs=no
8078      ;;
8079
8080    bsdi[45]*)
8081      export_dynamic_flag_spec=-rdynamic
8082      ;;
8083
8084    cygwin* | mingw* | pw32*)
8085      # When not using gcc, we currently assume that we are using
8086      # Microsoft Visual C++.
8087      # hardcode_libdir_flag_spec is actually meaningless, as there is
8088      # no search path for DLLs.
8089      hardcode_libdir_flag_spec=' '
8090      allow_undefined_flag=unsupported
8091      # Tell ltmain to make .lib files, not .a files.
8092      libext=lib
8093      # Tell ltmain to make .dll files, not .so files.
8094      shrext_cmds=".dll"
8095      # FIXME: Setting linknames here is a bad hack.
8096      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8097      # The linker will automatically build a .lib file if we build a DLL.
8098      old_archive_From_new_cmds='true'
8099      # FIXME: Should let the user specify the lib program.
8100      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8101      fix_srcfile_path='`cygpath -w "$srcfile"`'
8102      enable_shared_with_static_runtimes=yes
8103      ;;
8104
8105    darwin* | rhapsody*)
8106      case $host_os in
8107        rhapsody* | darwin1.[012])
8108         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8109         ;;
8110       *) # Darwin 1.3 on
8111         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8112           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8113         else
8114           case ${MACOSX_DEPLOYMENT_TARGET} in
8115             10.[012])
8116               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8117               ;;
8118             10.*)
8119               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8120               ;;
8121           esac
8122         fi
8123         ;;
8124      esac
8125      archive_cmds_need_lc=no
8126      hardcode_direct=no
8127      hardcode_automatic=yes
8128      hardcode_shlibpath_var=unsupported
8129      whole_archive_flag_spec=''
8130      link_all_deplibs=yes
8131    if test "$GCC" = yes ; then
8132    	output_verbose_link_cmd='echo'
8133        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8134      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8135      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8136      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}'
8137      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}'
8138    else
8139      case $cc_basename in
8140        xlc*)
8141         output_verbose_link_cmd='echo'
8142         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8143         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8144          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8145         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}'
8146          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}'
8147          ;;
8148       *)
8149         ld_shlibs=no
8150          ;;
8151      esac
8152    fi
8153      ;;
8154
8155    dgux*)
8156      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8157      hardcode_libdir_flag_spec='-L$libdir'
8158      hardcode_shlibpath_var=no
8159      ;;
8160
8161    freebsd1*)
8162      ld_shlibs=no
8163      ;;
8164
8165    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8166    # support.  Future versions do this automatically, but an explicit c++rt0.o
8167    # does not break anything, and helps significantly (at the cost of a little
8168    # extra space).
8169    freebsd2.2*)
8170      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8171      hardcode_libdir_flag_spec='-R$libdir'
8172      hardcode_direct=yes
8173      hardcode_shlibpath_var=no
8174      ;;
8175
8176    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8177    freebsd2*)
8178      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8179      hardcode_direct=yes
8180      hardcode_minus_L=yes
8181      hardcode_shlibpath_var=no
8182      ;;
8183
8184    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8185    freebsd* | kfreebsd*-gnu | dragonfly*)
8186      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8187      hardcode_libdir_flag_spec='-R$libdir'
8188      hardcode_direct=yes
8189      hardcode_shlibpath_var=no
8190      ;;
8191
8192    hpux9*)
8193      if test "$GCC" = yes; then
8194	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'
8195      else
8196	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'
8197      fi
8198      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8199      hardcode_libdir_separator=:
8200      hardcode_direct=yes
8201
8202      # hardcode_minus_L: Not really in the search PATH,
8203      # but as the default location of the library.
8204      hardcode_minus_L=yes
8205      export_dynamic_flag_spec='${wl}-E'
8206      ;;
8207
8208    hpux10*)
8209      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8210	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8211      else
8212	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8213      fi
8214      if test "$with_gnu_ld" = no; then
8215	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8216	hardcode_libdir_separator=:
8217
8218	hardcode_direct=yes
8219	export_dynamic_flag_spec='${wl}-E'
8220
8221	# hardcode_minus_L: Not really in the search PATH,
8222	# but as the default location of the library.
8223	hardcode_minus_L=yes
8224      fi
8225      ;;
8226
8227    hpux11*)
8228      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8229	case $host_cpu in
8230	hppa*64*)
8231	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8232	  ;;
8233	ia64*)
8234	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8235	  ;;
8236	*)
8237	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8238	  ;;
8239	esac
8240      else
8241	case $host_cpu in
8242	hppa*64*)
8243	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8244	  ;;
8245	ia64*)
8246	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8247	  ;;
8248	*)
8249	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8250	  ;;
8251	esac
8252      fi
8253      if test "$with_gnu_ld" = no; then
8254	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8255	hardcode_libdir_separator=:
8256
8257	case $host_cpu in
8258	hppa*64*|ia64*)
8259	  hardcode_libdir_flag_spec_ld='+b $libdir'
8260	  hardcode_direct=no
8261	  hardcode_shlibpath_var=no
8262	  ;;
8263	*)
8264	  hardcode_direct=yes
8265	  export_dynamic_flag_spec='${wl}-E'
8266
8267	  # hardcode_minus_L: Not really in the search PATH,
8268	  # but as the default location of the library.
8269	  hardcode_minus_L=yes
8270	  ;;
8271	esac
8272      fi
8273      ;;
8274
8275    irix5* | irix6* | nonstopux*)
8276      if test "$GCC" = yes; then
8277	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'
8278      else
8279	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'
8280	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8281      fi
8282      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8283      hardcode_libdir_separator=:
8284      link_all_deplibs=yes
8285      ;;
8286
8287    netbsd*)
8288      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8289	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8290      else
8291	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8292      fi
8293      hardcode_libdir_flag_spec='-R$libdir'
8294      hardcode_direct=yes
8295      hardcode_shlibpath_var=no
8296      ;;
8297
8298    newsos6)
8299      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8300      hardcode_direct=yes
8301      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8302      hardcode_libdir_separator=:
8303      hardcode_shlibpath_var=no
8304      ;;
8305
8306    openbsd*)
8307      hardcode_direct=yes
8308      hardcode_shlibpath_var=no
8309      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8310	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8311	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8312	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8313	export_dynamic_flag_spec='${wl}-E'
8314      else
8315       case $host_os in
8316	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8317	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8318	   hardcode_libdir_flag_spec='-R$libdir'
8319	   ;;
8320	 *)
8321	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8322	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8323	   ;;
8324       esac
8325      fi
8326      ;;
8327
8328    os2*)
8329      hardcode_libdir_flag_spec='-L$libdir'
8330      hardcode_minus_L=yes
8331      allow_undefined_flag=unsupported
8332      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'
8333      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8334      ;;
8335
8336    osf3*)
8337      if test "$GCC" = yes; then
8338	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8339	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'
8340      else
8341	allow_undefined_flag=' -expect_unresolved \*'
8342	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'
8343      fi
8344      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8345      hardcode_libdir_separator=:
8346      ;;
8347
8348    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8349      if test "$GCC" = yes; then
8350	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8351	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'
8352	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8353      else
8354	allow_undefined_flag=' -expect_unresolved \*'
8355	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'
8356	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8357	$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'
8358
8359	# Both c and cxx compiler support -rpath directly
8360	hardcode_libdir_flag_spec='-rpath $libdir'
8361      fi
8362      hardcode_libdir_separator=:
8363      ;;
8364
8365    solaris*)
8366      no_undefined_flag=' -z text'
8367      if test "$GCC" = yes; then
8368	wlarc='${wl}'
8369	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8370	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8371	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8372      else
8373	wlarc=''
8374	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8375	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8376  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8377      fi
8378      hardcode_libdir_flag_spec='-R$libdir'
8379      hardcode_shlibpath_var=no
8380      case $host_os in
8381      solaris2.[0-5] | solaris2.[0-5].*) ;;
8382      *)
8383 	# The compiler driver will combine linker options so we
8384 	# cannot just pass the convience library names through
8385 	# without $wl, iff we do not link with $LD.
8386 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8387 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8388 	case $wlarc in
8389 	'')
8390 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8391 	*)
8392 	  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' ;;
8393 	esac ;;
8394      esac
8395      link_all_deplibs=yes
8396      ;;
8397
8398    sunos4*)
8399      if test "x$host_vendor" = xsequent; then
8400	# Use $CC to link under sequent, because it throws in some extra .o
8401	# files that make .init and .fini sections work.
8402	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8403      else
8404	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8405      fi
8406      hardcode_libdir_flag_spec='-L$libdir'
8407      hardcode_direct=yes
8408      hardcode_minus_L=yes
8409      hardcode_shlibpath_var=no
8410      ;;
8411
8412    sysv4)
8413      case $host_vendor in
8414	sni)
8415	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8416	  hardcode_direct=yes # is this really true???
8417	;;
8418	siemens)
8419	  ## LD is ld it makes a PLAMLIB
8420	  ## CC just makes a GrossModule.
8421	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8422	  reload_cmds='$CC -r -o $output$reload_objs'
8423	  hardcode_direct=no
8424        ;;
8425	motorola)
8426	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8427	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8428	;;
8429      esac
8430      runpath_var='LD_RUN_PATH'
8431      hardcode_shlibpath_var=no
8432      ;;
8433
8434    sysv4.3*)
8435      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8436      hardcode_shlibpath_var=no
8437      export_dynamic_flag_spec='-Bexport'
8438      ;;
8439
8440    sysv4*MP*)
8441      if test -d /usr/nec; then
8442	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8443	hardcode_shlibpath_var=no
8444	runpath_var=LD_RUN_PATH
8445	hardcode_runpath_var=yes
8446	ld_shlibs=yes
8447      fi
8448      ;;
8449
8450    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8451      no_undefined_flag='${wl}-z,text'
8452      archive_cmds_need_lc=no
8453      hardcode_shlibpath_var=no
8454      runpath_var='LD_RUN_PATH'
8455
8456      if test "$GCC" = yes; then
8457	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8458	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8459      else
8460	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8461	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8462      fi
8463      ;;
8464
8465    sysv5* | sco3.2v5* | sco5v6*)
8466      # Note: We can NOT use -z defs as we might desire, because we do not
8467      # link with -lc, and that would cause any symbols used from libc to
8468      # always be unresolved, which means just about no library would
8469      # ever link correctly.  If we're not using GNU ld we use -z text
8470      # though, which does catch some bad symbols but isn't as heavy-handed
8471      # as -z defs.
8472      no_undefined_flag='${wl}-z,text'
8473      allow_undefined_flag='${wl}-z,nodefs'
8474      archive_cmds_need_lc=no
8475      hardcode_shlibpath_var=no
8476      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8477      hardcode_libdir_separator=':'
8478      link_all_deplibs=yes
8479      export_dynamic_flag_spec='${wl}-Bexport'
8480      runpath_var='LD_RUN_PATH'
8481
8482      if test "$GCC" = yes; then
8483	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8484	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8485      else
8486	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8487	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8488      fi
8489      ;;
8490
8491    uts4*)
8492      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8493      hardcode_libdir_flag_spec='-L$libdir'
8494      hardcode_shlibpath_var=no
8495      ;;
8496
8497    *)
8498      ld_shlibs=no
8499      ;;
8500    esac
8501  fi
8502
8503{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8504echo "${ECHO_T}$ld_shlibs" >&6; }
8505test "$ld_shlibs" = no && can_build_shared=no
8506
8507#
8508# Do we need to explicitly link libc?
8509#
8510case "x$archive_cmds_need_lc" in
8511x|xyes)
8512  # Assume -lc should be added
8513  archive_cmds_need_lc=yes
8514
8515  if test "$enable_shared" = yes && test "$GCC" = yes; then
8516    case $archive_cmds in
8517    *'~'*)
8518      # FIXME: we may have to deal with multi-command sequences.
8519      ;;
8520    '$CC '*)
8521      # Test whether the compiler implicitly links with -lc since on some
8522      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8523      # to ld, don't add -lc before -lgcc.
8524      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8525echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8526      $rm conftest*
8527      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8528
8529      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8530  (eval $ac_compile) 2>&5
8531  ac_status=$?
8532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533  (exit $ac_status); } 2>conftest.err; then
8534        soname=conftest
8535        lib=conftest
8536        libobjs=conftest.$ac_objext
8537        deplibs=
8538        wl=$lt_prog_compiler_wl
8539	pic_flag=$lt_prog_compiler_pic
8540        compiler_flags=-v
8541        linker_flags=-v
8542        verstring=
8543        output_objdir=.
8544        libname=conftest
8545        lt_save_allow_undefined_flag=$allow_undefined_flag
8546        allow_undefined_flag=
8547        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8548  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8549  ac_status=$?
8550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551  (exit $ac_status); }
8552        then
8553	  archive_cmds_need_lc=no
8554        else
8555	  archive_cmds_need_lc=yes
8556        fi
8557        allow_undefined_flag=$lt_save_allow_undefined_flag
8558      else
8559        cat conftest.err 1>&5
8560      fi
8561      $rm conftest*
8562      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8563echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8564      ;;
8565    esac
8566  fi
8567  ;;
8568esac
8569
8570{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8571echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8572library_names_spec=
8573libname_spec='lib$name'
8574soname_spec=
8575shrext_cmds=".so"
8576postinstall_cmds=
8577postuninstall_cmds=
8578finish_cmds=
8579finish_eval=
8580shlibpath_var=
8581shlibpath_overrides_runpath=unknown
8582version_type=none
8583dynamic_linker="$host_os ld.so"
8584sys_lib_dlsearch_path_spec="/lib /usr/lib"
8585if test "$GCC" = yes; then
8586  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8587  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8588    # if the path contains ";" then we assume it to be the separator
8589    # otherwise default to the standard path separator (i.e. ":") - it is
8590    # assumed that no part of a normal pathname contains ";" but that should
8591    # okay in the real world where ";" in dirpaths is itself problematic.
8592    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8593  else
8594    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8595  fi
8596else
8597  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8598fi
8599need_lib_prefix=unknown
8600hardcode_into_libs=no
8601
8602# when you set need_version to no, make sure it does not cause -set_version
8603# flags to be left without arguments
8604need_version=unknown
8605
8606case $host_os in
8607aix3*)
8608  version_type=linux
8609  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8610  shlibpath_var=LIBPATH
8611
8612  # AIX 3 has no versioning support, so we append a major version to the name.
8613  soname_spec='${libname}${release}${shared_ext}$major'
8614  ;;
8615
8616aix4* | aix5*)
8617  version_type=linux
8618  need_lib_prefix=no
8619  need_version=no
8620  hardcode_into_libs=yes
8621  if test "$host_cpu" = ia64; then
8622    # AIX 5 supports IA64
8623    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8624    shlibpath_var=LD_LIBRARY_PATH
8625  else
8626    # With GCC up to 2.95.x, collect2 would create an import file
8627    # for dependence libraries.  The import file would start with
8628    # the line `#! .'.  This would cause the generated library to
8629    # depend on `.', always an invalid library.  This was fixed in
8630    # development snapshots of GCC prior to 3.0.
8631    case $host_os in
8632      aix4 | aix4.[01] | aix4.[01].*)
8633      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8634	   echo ' yes '
8635	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8636	:
8637      else
8638	can_build_shared=no
8639      fi
8640      ;;
8641    esac
8642    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8643    # soname into executable. Probably we can add versioning support to
8644    # collect2, so additional links can be useful in future.
8645    if test "$aix_use_runtimelinking" = yes; then
8646      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8647      # instead of lib<name>.a to let people know that these are not
8648      # typical AIX shared libraries.
8649      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8650    else
8651      # We preserve .a as extension for shared libraries through AIX4.2
8652      # and later when we are not doing run time linking.
8653      library_names_spec='${libname}${release}.a $libname.a'
8654      soname_spec='${libname}${release}${shared_ext}$major'
8655    fi
8656    shlibpath_var=LIBPATH
8657  fi
8658  ;;
8659
8660amigaos*)
8661  library_names_spec='$libname.ixlibrary $libname.a'
8662  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8663  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'
8664  ;;
8665
8666beos*)
8667  library_names_spec='${libname}${shared_ext}'
8668  dynamic_linker="$host_os ld.so"
8669  shlibpath_var=LIBRARY_PATH
8670  ;;
8671
8672bsdi[45]*)
8673  version_type=linux
8674  need_version=no
8675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8676  soname_spec='${libname}${release}${shared_ext}$major'
8677  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8678  shlibpath_var=LD_LIBRARY_PATH
8679  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8680  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8681  # the default ld.so.conf also contains /usr/contrib/lib and
8682  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8683  # libtool to hard-code these into programs
8684  ;;
8685
8686cygwin* | mingw* | pw32*)
8687  version_type=windows
8688  shrext_cmds=".dll"
8689  need_version=no
8690  need_lib_prefix=no
8691
8692  case $GCC,$host_os in
8693  yes,cygwin* | yes,mingw* | yes,pw32*)
8694    library_names_spec='$libname.dll.a'
8695    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8696    postinstall_cmds='base_file=`basename \${file}`~
8697      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8698      dldir=$destdir/`dirname \$dlpath`~
8699      test -d \$dldir || mkdir -p \$dldir~
8700      $install_prog $dir/$dlname \$dldir/$dlname~
8701      chmod a+x \$dldir/$dlname'
8702    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8703      dlpath=$dir/\$dldll~
8704       $rm \$dlpath'
8705    shlibpath_overrides_runpath=yes
8706
8707    case $host_os in
8708    cygwin*)
8709      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8710      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8711      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8712      ;;
8713    mingw*)
8714      # MinGW DLLs use traditional 'lib' prefix
8715      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8716      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8717      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8718        # It is most probably a Windows format PATH printed by
8719        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8720        # path with ; separators, and with drive letters. We can handle the
8721        # drive letters (cygwin fileutils understands them), so leave them,
8722        # especially as we might pass files found there to a mingw objdump,
8723        # which wouldn't understand a cygwinified path. Ahh.
8724        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8725      else
8726        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8727      fi
8728      ;;
8729    pw32*)
8730      # pw32 DLLs use 'pw' prefix rather than 'lib'
8731      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8732      ;;
8733    esac
8734    ;;
8735
8736  *)
8737    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8738    ;;
8739  esac
8740  dynamic_linker='Win32 ld.exe'
8741  # FIXME: first we should search . and the directory the executable is in
8742  shlibpath_var=PATH
8743  ;;
8744
8745darwin* | rhapsody*)
8746  dynamic_linker="$host_os dyld"
8747  version_type=darwin
8748  need_lib_prefix=no
8749  need_version=no
8750  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8751  soname_spec='${libname}${release}${major}$shared_ext'
8752  shlibpath_overrides_runpath=yes
8753  shlibpath_var=DYLD_LIBRARY_PATH
8754  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8755  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8756  if test "$GCC" = yes; then
8757    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"`
8758  else
8759    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8760  fi
8761  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8762  ;;
8763
8764dgux*)
8765  version_type=linux
8766  need_lib_prefix=no
8767  need_version=no
8768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8769  soname_spec='${libname}${release}${shared_ext}$major'
8770  shlibpath_var=LD_LIBRARY_PATH
8771  ;;
8772
8773freebsd1*)
8774  dynamic_linker=no
8775  ;;
8776
8777kfreebsd*-gnu)
8778  version_type=linux
8779  need_lib_prefix=no
8780  need_version=no
8781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8782  soname_spec='${libname}${release}${shared_ext}$major'
8783  shlibpath_var=LD_LIBRARY_PATH
8784  shlibpath_overrides_runpath=no
8785  hardcode_into_libs=yes
8786  dynamic_linker='GNU ld.so'
8787  ;;
8788
8789freebsd* | dragonfly*)
8790  # DragonFly does not have aout.  When/if they implement a new
8791  # versioning mechanism, adjust this.
8792  if test -x /usr/bin/objformat; then
8793    objformat=`/usr/bin/objformat`
8794  else
8795    case $host_os in
8796    freebsd[123]*) objformat=aout ;;
8797    *) objformat=elf ;;
8798    esac
8799  fi
8800  version_type=freebsd-$objformat
8801  case $version_type in
8802    freebsd-elf*)
8803      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8804      need_version=no
8805      need_lib_prefix=no
8806      ;;
8807    freebsd-*)
8808      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8809      need_version=yes
8810      ;;
8811  esac
8812  shlibpath_var=LD_LIBRARY_PATH
8813  case $host_os in
8814  freebsd2*)
8815    shlibpath_overrides_runpath=yes
8816    ;;
8817  freebsd3.[01]* | freebsdelf3.[01]*)
8818    shlibpath_overrides_runpath=yes
8819    hardcode_into_libs=yes
8820    ;;
8821  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8822  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8823    shlibpath_overrides_runpath=no
8824    hardcode_into_libs=yes
8825    ;;
8826  freebsd*) # from 4.6 on
8827    shlibpath_overrides_runpath=yes
8828    hardcode_into_libs=yes
8829    ;;
8830  esac
8831  ;;
8832
8833gnu*)
8834  version_type=linux
8835  need_lib_prefix=no
8836  need_version=no
8837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8838  soname_spec='${libname}${release}${shared_ext}$major'
8839  shlibpath_var=LD_LIBRARY_PATH
8840  hardcode_into_libs=yes
8841  ;;
8842
8843hpux9* | hpux10* | hpux11*)
8844  # Give a soname corresponding to the major version so that dld.sl refuses to
8845  # link against other versions.
8846  version_type=sunos
8847  need_lib_prefix=no
8848  need_version=no
8849  case $host_cpu in
8850  ia64*)
8851    shrext_cmds='.so'
8852    hardcode_into_libs=yes
8853    dynamic_linker="$host_os dld.so"
8854    shlibpath_var=LD_LIBRARY_PATH
8855    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8856    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8857    soname_spec='${libname}${release}${shared_ext}$major'
8858    if test "X$HPUX_IA64_MODE" = X32; then
8859      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8860    else
8861      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8862    fi
8863    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8864    ;;
8865   hppa*64*)
8866     shrext_cmds='.sl'
8867     hardcode_into_libs=yes
8868     dynamic_linker="$host_os dld.sl"
8869     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8870     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8871     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872     soname_spec='${libname}${release}${shared_ext}$major'
8873     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8874     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8875     ;;
8876   *)
8877    shrext_cmds='.sl'
8878    dynamic_linker="$host_os dld.sl"
8879    shlibpath_var=SHLIB_PATH
8880    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8881    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8882    soname_spec='${libname}${release}${shared_ext}$major'
8883    ;;
8884  esac
8885  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8886  postinstall_cmds='chmod 555 $lib'
8887  ;;
8888
8889interix3*)
8890  version_type=linux
8891  need_lib_prefix=no
8892  need_version=no
8893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8894  soname_spec='${libname}${release}${shared_ext}$major'
8895  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8896  shlibpath_var=LD_LIBRARY_PATH
8897  shlibpath_overrides_runpath=no
8898  hardcode_into_libs=yes
8899  ;;
8900
8901irix5* | irix6* | nonstopux*)
8902  case $host_os in
8903    nonstopux*) version_type=nonstopux ;;
8904    *)
8905	if test "$lt_cv_prog_gnu_ld" = yes; then
8906		version_type=linux
8907	else
8908		version_type=irix
8909	fi ;;
8910  esac
8911  need_lib_prefix=no
8912  need_version=no
8913  soname_spec='${libname}${release}${shared_ext}$major'
8914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8915  case $host_os in
8916  irix5* | nonstopux*)
8917    libsuff= shlibsuff=
8918    ;;
8919  *)
8920    case $LD in # libtool.m4 will add one of these switches to LD
8921    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8922      libsuff= shlibsuff= libmagic=32-bit;;
8923    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8924      libsuff=32 shlibsuff=N32 libmagic=N32;;
8925    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8926      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8927    *) libsuff= shlibsuff= libmagic=never-match;;
8928    esac
8929    ;;
8930  esac
8931  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8932  shlibpath_overrides_runpath=no
8933  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8934  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8935  hardcode_into_libs=yes
8936  ;;
8937
8938# No shared lib support for Linux oldld, aout, or coff.
8939linux*oldld* | linux*aout* | linux*coff*)
8940  dynamic_linker=no
8941  ;;
8942
8943# This must be Linux ELF.
8944linux*)
8945  version_type=linux
8946  need_lib_prefix=no
8947  need_version=no
8948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949  soname_spec='${libname}${release}${shared_ext}$major'
8950  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8951  shlibpath_var=LD_LIBRARY_PATH
8952  shlibpath_overrides_runpath=no
8953  # This implies no fast_install, which is unacceptable.
8954  # Some rework will be needed to allow for fast_install
8955  # before this can be enabled.
8956  hardcode_into_libs=yes
8957
8958  # Append ld.so.conf contents to the search path
8959  if test -f /etc/ld.so.conf; then
8960    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' ' '`
8961    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8962  fi
8963
8964  # We used to test for /lib/ld.so.1 and disable shared libraries on
8965  # powerpc, because MkLinux only supported shared libraries with the
8966  # GNU dynamic linker.  Since this was broken with cross compilers,
8967  # most powerpc-linux boxes support dynamic linking these days and
8968  # people can always --disable-shared, the test was removed, and we
8969  # assume the GNU/Linux dynamic linker is in use.
8970  dynamic_linker='GNU/Linux ld.so'
8971  ;;
8972
8973knetbsd*-gnu)
8974  version_type=linux
8975  need_lib_prefix=no
8976  need_version=no
8977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8978  soname_spec='${libname}${release}${shared_ext}$major'
8979  shlibpath_var=LD_LIBRARY_PATH
8980  shlibpath_overrides_runpath=no
8981  hardcode_into_libs=yes
8982  dynamic_linker='GNU ld.so'
8983  ;;
8984
8985netbsd*)
8986  version_type=sunos
8987  need_lib_prefix=no
8988  need_version=no
8989  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8990    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8991    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8992    dynamic_linker='NetBSD (a.out) ld.so'
8993  else
8994    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8995    soname_spec='${libname}${release}${shared_ext}$major'
8996    dynamic_linker='NetBSD ld.elf_so'
8997  fi
8998  shlibpath_var=LD_LIBRARY_PATH
8999  shlibpath_overrides_runpath=yes
9000  hardcode_into_libs=yes
9001  ;;
9002
9003newsos6)
9004  version_type=linux
9005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006  shlibpath_var=LD_LIBRARY_PATH
9007  shlibpath_overrides_runpath=yes
9008  ;;
9009
9010nto-qnx*)
9011  version_type=linux
9012  need_lib_prefix=no
9013  need_version=no
9014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015  soname_spec='${libname}${release}${shared_ext}$major'
9016  shlibpath_var=LD_LIBRARY_PATH
9017  shlibpath_overrides_runpath=yes
9018  ;;
9019
9020openbsd*)
9021  version_type=sunos
9022  sys_lib_dlsearch_path_spec="/usr/lib"
9023  need_lib_prefix=no
9024  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9025  case $host_os in
9026    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9027    *)                         need_version=no  ;;
9028  esac
9029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9030  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9031  shlibpath_var=LD_LIBRARY_PATH
9032  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9033    case $host_os in
9034      openbsd2.[89] | openbsd2.[89].*)
9035	shlibpath_overrides_runpath=no
9036	;;
9037      *)
9038	shlibpath_overrides_runpath=yes
9039	;;
9040      esac
9041  else
9042    shlibpath_overrides_runpath=yes
9043  fi
9044  ;;
9045
9046os2*)
9047  libname_spec='$name'
9048  shrext_cmds=".dll"
9049  need_lib_prefix=no
9050  library_names_spec='$libname${shared_ext} $libname.a'
9051  dynamic_linker='OS/2 ld.exe'
9052  shlibpath_var=LIBPATH
9053  ;;
9054
9055osf3* | osf4* | osf5*)
9056  version_type=osf
9057  need_lib_prefix=no
9058  need_version=no
9059  soname_spec='${libname}${release}${shared_ext}$major'
9060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9061  shlibpath_var=LD_LIBRARY_PATH
9062  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9063  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9064  ;;
9065
9066solaris*)
9067  version_type=linux
9068  need_lib_prefix=no
9069  need_version=no
9070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9071  soname_spec='${libname}${release}${shared_ext}$major'
9072  shlibpath_var=LD_LIBRARY_PATH
9073  shlibpath_overrides_runpath=yes
9074  hardcode_into_libs=yes
9075  # ldd complains unless libraries are executable
9076  postinstall_cmds='chmod +x $lib'
9077  ;;
9078
9079sunos4*)
9080  version_type=sunos
9081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9082  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9083  shlibpath_var=LD_LIBRARY_PATH
9084  shlibpath_overrides_runpath=yes
9085  if test "$with_gnu_ld" = yes; then
9086    need_lib_prefix=no
9087  fi
9088  need_version=yes
9089  ;;
9090
9091sysv4 | sysv4.3*)
9092  version_type=linux
9093  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094  soname_spec='${libname}${release}${shared_ext}$major'
9095  shlibpath_var=LD_LIBRARY_PATH
9096  case $host_vendor in
9097    sni)
9098      shlibpath_overrides_runpath=no
9099      need_lib_prefix=no
9100      export_dynamic_flag_spec='${wl}-Blargedynsym'
9101      runpath_var=LD_RUN_PATH
9102      ;;
9103    siemens)
9104      need_lib_prefix=no
9105      ;;
9106    motorola)
9107      need_lib_prefix=no
9108      need_version=no
9109      shlibpath_overrides_runpath=no
9110      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9111      ;;
9112  esac
9113  ;;
9114
9115sysv4*MP*)
9116  if test -d /usr/nec ;then
9117    version_type=linux
9118    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9119    soname_spec='$libname${shared_ext}.$major'
9120    shlibpath_var=LD_LIBRARY_PATH
9121  fi
9122  ;;
9123
9124sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9125  version_type=freebsd-elf
9126  need_lib_prefix=no
9127  need_version=no
9128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9129  soname_spec='${libname}${release}${shared_ext}$major'
9130  shlibpath_var=LD_LIBRARY_PATH
9131  hardcode_into_libs=yes
9132  if test "$with_gnu_ld" = yes; then
9133    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9134    shlibpath_overrides_runpath=no
9135  else
9136    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9137    shlibpath_overrides_runpath=yes
9138    case $host_os in
9139      sco3.2v5*)
9140        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9141	;;
9142    esac
9143  fi
9144  sys_lib_dlsearch_path_spec='/usr/lib'
9145  ;;
9146
9147uts4*)
9148  version_type=linux
9149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150  soname_spec='${libname}${release}${shared_ext}$major'
9151  shlibpath_var=LD_LIBRARY_PATH
9152  ;;
9153
9154*)
9155  dynamic_linker=no
9156  ;;
9157esac
9158{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9159echo "${ECHO_T}$dynamic_linker" >&6; }
9160test "$dynamic_linker" = no && can_build_shared=no
9161
9162variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9163if test "$GCC" = yes; then
9164  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9165fi
9166
9167{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9168echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9169hardcode_action=
9170if test -n "$hardcode_libdir_flag_spec" || \
9171   test -n "$runpath_var" || \
9172   test "X$hardcode_automatic" = "Xyes" ; then
9173
9174  # We can hardcode non-existant directories.
9175  if test "$hardcode_direct" != no &&
9176     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9177     # have to relink, otherwise we might link with an installed library
9178     # when we should be linking with a yet-to-be-installed one
9179     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9180     test "$hardcode_minus_L" != no; then
9181    # Linking always hardcodes the temporary library directory.
9182    hardcode_action=relink
9183  else
9184    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9185    hardcode_action=immediate
9186  fi
9187else
9188  # We cannot hardcode anything, or else we can only hardcode existing
9189  # directories.
9190  hardcode_action=unsupported
9191fi
9192{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9193echo "${ECHO_T}$hardcode_action" >&6; }
9194
9195if test "$hardcode_action" = relink; then
9196  # Fast installation is not supported
9197  enable_fast_install=no
9198elif test "$shlibpath_overrides_runpath" = yes ||
9199     test "$enable_shared" = no; then
9200  # Fast installation is not necessary
9201  enable_fast_install=needless
9202fi
9203
9204striplib=
9205old_striplib=
9206{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9207echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9208if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9209  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9210  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9211  { echo "$as_me:$LINENO: result: yes" >&5
9212echo "${ECHO_T}yes" >&6; }
9213else
9214# FIXME - insert some real tests, host_os isn't really good enough
9215  case $host_os in
9216   darwin*)
9217       if test -n "$STRIP" ; then
9218         striplib="$STRIP -x"
9219         { echo "$as_me:$LINENO: result: yes" >&5
9220echo "${ECHO_T}yes" >&6; }
9221       else
9222  { echo "$as_me:$LINENO: result: no" >&5
9223echo "${ECHO_T}no" >&6; }
9224fi
9225       ;;
9226   *)
9227  { echo "$as_me:$LINENO: result: no" >&5
9228echo "${ECHO_T}no" >&6; }
9229    ;;
9230  esac
9231fi
9232
9233if test "x$enable_dlopen" != xyes; then
9234  enable_dlopen=unknown
9235  enable_dlopen_self=unknown
9236  enable_dlopen_self_static=unknown
9237else
9238  lt_cv_dlopen=no
9239  lt_cv_dlopen_libs=
9240
9241  case $host_os in
9242  beos*)
9243    lt_cv_dlopen="load_add_on"
9244    lt_cv_dlopen_libs=
9245    lt_cv_dlopen_self=yes
9246    ;;
9247
9248  mingw* | pw32*)
9249    lt_cv_dlopen="LoadLibrary"
9250    lt_cv_dlopen_libs=
9251   ;;
9252
9253  cygwin*)
9254    lt_cv_dlopen="dlopen"
9255    lt_cv_dlopen_libs=
9256   ;;
9257
9258  darwin*)
9259  # if libdl is installed we need to link against it
9260    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9261echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9262if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9263  echo $ECHO_N "(cached) $ECHO_C" >&6
9264else
9265  ac_check_lib_save_LIBS=$LIBS
9266LIBS="-ldl  $LIBS"
9267cat >conftest.$ac_ext <<_ACEOF
9268/* confdefs.h.  */
9269_ACEOF
9270cat confdefs.h >>conftest.$ac_ext
9271cat >>conftest.$ac_ext <<_ACEOF
9272/* end confdefs.h.  */
9273
9274/* Override any GCC internal prototype to avoid an error.
9275   Use char because int might match the return type of a GCC
9276   builtin and then its argument prototype would still apply.  */
9277#ifdef __cplusplus
9278extern "C"
9279#endif
9280char dlopen ();
9281int
9282main ()
9283{
9284return dlopen ();
9285  ;
9286  return 0;
9287}
9288_ACEOF
9289rm -f conftest.$ac_objext conftest$ac_exeext
9290if { (ac_try="$ac_link"
9291case "(($ac_try" in
9292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293  *) ac_try_echo=$ac_try;;
9294esac
9295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9296  (eval "$ac_link") 2>conftest.er1
9297  ac_status=$?
9298  grep -v '^ *+' conftest.er1 >conftest.err
9299  rm -f conftest.er1
9300  cat conftest.err >&5
9301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302  (exit $ac_status); } && {
9303	 test -z "$ac_c_werror_flag" ||
9304	 test ! -s conftest.err
9305       } && test -s conftest$ac_exeext &&
9306       $as_test_x conftest$ac_exeext; then
9307  ac_cv_lib_dl_dlopen=yes
9308else
9309  echo "$as_me: failed program was:" >&5
9310sed 's/^/| /' conftest.$ac_ext >&5
9311
9312	ac_cv_lib_dl_dlopen=no
9313fi
9314
9315rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9316      conftest$ac_exeext conftest.$ac_ext
9317LIBS=$ac_check_lib_save_LIBS
9318fi
9319{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9320echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9321if test $ac_cv_lib_dl_dlopen = yes; then
9322  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9323else
9324
9325    lt_cv_dlopen="dyld"
9326    lt_cv_dlopen_libs=
9327    lt_cv_dlopen_self=yes
9328
9329fi
9330
9331   ;;
9332
9333  *)
9334    { echo "$as_me:$LINENO: checking for shl_load" >&5
9335echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9336if test "${ac_cv_func_shl_load+set}" = set; then
9337  echo $ECHO_N "(cached) $ECHO_C" >&6
9338else
9339  cat >conftest.$ac_ext <<_ACEOF
9340/* confdefs.h.  */
9341_ACEOF
9342cat confdefs.h >>conftest.$ac_ext
9343cat >>conftest.$ac_ext <<_ACEOF
9344/* end confdefs.h.  */
9345/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9346   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9347#define shl_load innocuous_shl_load
9348
9349/* System header to define __stub macros and hopefully few prototypes,
9350    which can conflict with char shl_load (); below.
9351    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9352    <limits.h> exists even on freestanding compilers.  */
9353
9354#ifdef __STDC__
9355# include <limits.h>
9356#else
9357# include <assert.h>
9358#endif
9359
9360#undef shl_load
9361
9362/* Override any GCC internal prototype to avoid an error.
9363   Use char because int might match the return type of a GCC
9364   builtin and then its argument prototype would still apply.  */
9365#ifdef __cplusplus
9366extern "C"
9367#endif
9368char shl_load ();
9369/* The GNU C library defines this for functions which it implements
9370    to always fail with ENOSYS.  Some functions are actually named
9371    something starting with __ and the normal name is an alias.  */
9372#if defined __stub_shl_load || defined __stub___shl_load
9373choke me
9374#endif
9375
9376int
9377main ()
9378{
9379return shl_load ();
9380  ;
9381  return 0;
9382}
9383_ACEOF
9384rm -f conftest.$ac_objext conftest$ac_exeext
9385if { (ac_try="$ac_link"
9386case "(($ac_try" in
9387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388  *) ac_try_echo=$ac_try;;
9389esac
9390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391  (eval "$ac_link") 2>conftest.er1
9392  ac_status=$?
9393  grep -v '^ *+' conftest.er1 >conftest.err
9394  rm -f conftest.er1
9395  cat conftest.err >&5
9396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397  (exit $ac_status); } && {
9398	 test -z "$ac_c_werror_flag" ||
9399	 test ! -s conftest.err
9400       } && test -s conftest$ac_exeext &&
9401       $as_test_x conftest$ac_exeext; then
9402  ac_cv_func_shl_load=yes
9403else
9404  echo "$as_me: failed program was:" >&5
9405sed 's/^/| /' conftest.$ac_ext >&5
9406
9407	ac_cv_func_shl_load=no
9408fi
9409
9410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9411      conftest$ac_exeext conftest.$ac_ext
9412fi
9413{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9414echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9415if test $ac_cv_func_shl_load = yes; then
9416  lt_cv_dlopen="shl_load"
9417else
9418  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9419echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9420if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9421  echo $ECHO_N "(cached) $ECHO_C" >&6
9422else
9423  ac_check_lib_save_LIBS=$LIBS
9424LIBS="-ldld  $LIBS"
9425cat >conftest.$ac_ext <<_ACEOF
9426/* confdefs.h.  */
9427_ACEOF
9428cat confdefs.h >>conftest.$ac_ext
9429cat >>conftest.$ac_ext <<_ACEOF
9430/* end confdefs.h.  */
9431
9432/* Override any GCC internal prototype to avoid an error.
9433   Use char because int might match the return type of a GCC
9434   builtin and then its argument prototype would still apply.  */
9435#ifdef __cplusplus
9436extern "C"
9437#endif
9438char shl_load ();
9439int
9440main ()
9441{
9442return shl_load ();
9443  ;
9444  return 0;
9445}
9446_ACEOF
9447rm -f conftest.$ac_objext conftest$ac_exeext
9448if { (ac_try="$ac_link"
9449case "(($ac_try" in
9450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451  *) ac_try_echo=$ac_try;;
9452esac
9453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9454  (eval "$ac_link") 2>conftest.er1
9455  ac_status=$?
9456  grep -v '^ *+' conftest.er1 >conftest.err
9457  rm -f conftest.er1
9458  cat conftest.err >&5
9459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460  (exit $ac_status); } && {
9461	 test -z "$ac_c_werror_flag" ||
9462	 test ! -s conftest.err
9463       } && test -s conftest$ac_exeext &&
9464       $as_test_x conftest$ac_exeext; then
9465  ac_cv_lib_dld_shl_load=yes
9466else
9467  echo "$as_me: failed program was:" >&5
9468sed 's/^/| /' conftest.$ac_ext >&5
9469
9470	ac_cv_lib_dld_shl_load=no
9471fi
9472
9473rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9474      conftest$ac_exeext conftest.$ac_ext
9475LIBS=$ac_check_lib_save_LIBS
9476fi
9477{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9478echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9479if test $ac_cv_lib_dld_shl_load = yes; then
9480  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9481else
9482  { echo "$as_me:$LINENO: checking for dlopen" >&5
9483echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9484if test "${ac_cv_func_dlopen+set}" = set; then
9485  echo $ECHO_N "(cached) $ECHO_C" >&6
9486else
9487  cat >conftest.$ac_ext <<_ACEOF
9488/* confdefs.h.  */
9489_ACEOF
9490cat confdefs.h >>conftest.$ac_ext
9491cat >>conftest.$ac_ext <<_ACEOF
9492/* end confdefs.h.  */
9493/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9494   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9495#define dlopen innocuous_dlopen
9496
9497/* System header to define __stub macros and hopefully few prototypes,
9498    which can conflict with char dlopen (); below.
9499    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9500    <limits.h> exists even on freestanding compilers.  */
9501
9502#ifdef __STDC__
9503# include <limits.h>
9504#else
9505# include <assert.h>
9506#endif
9507
9508#undef dlopen
9509
9510/* Override any GCC internal prototype to avoid an error.
9511   Use char because int might match the return type of a GCC
9512   builtin and then its argument prototype would still apply.  */
9513#ifdef __cplusplus
9514extern "C"
9515#endif
9516char dlopen ();
9517/* The GNU C library defines this for functions which it implements
9518    to always fail with ENOSYS.  Some functions are actually named
9519    something starting with __ and the normal name is an alias.  */
9520#if defined __stub_dlopen || defined __stub___dlopen
9521choke me
9522#endif
9523
9524int
9525main ()
9526{
9527return dlopen ();
9528  ;
9529  return 0;
9530}
9531_ACEOF
9532rm -f conftest.$ac_objext conftest$ac_exeext
9533if { (ac_try="$ac_link"
9534case "(($ac_try" in
9535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536  *) ac_try_echo=$ac_try;;
9537esac
9538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539  (eval "$ac_link") 2>conftest.er1
9540  ac_status=$?
9541  grep -v '^ *+' conftest.er1 >conftest.err
9542  rm -f conftest.er1
9543  cat conftest.err >&5
9544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545  (exit $ac_status); } && {
9546	 test -z "$ac_c_werror_flag" ||
9547	 test ! -s conftest.err
9548       } && test -s conftest$ac_exeext &&
9549       $as_test_x conftest$ac_exeext; then
9550  ac_cv_func_dlopen=yes
9551else
9552  echo "$as_me: failed program was:" >&5
9553sed 's/^/| /' conftest.$ac_ext >&5
9554
9555	ac_cv_func_dlopen=no
9556fi
9557
9558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9559      conftest$ac_exeext conftest.$ac_ext
9560fi
9561{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9562echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9563if test $ac_cv_func_dlopen = yes; then
9564  lt_cv_dlopen="dlopen"
9565else
9566  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9567echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9568if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9569  echo $ECHO_N "(cached) $ECHO_C" >&6
9570else
9571  ac_check_lib_save_LIBS=$LIBS
9572LIBS="-ldl  $LIBS"
9573cat >conftest.$ac_ext <<_ACEOF
9574/* confdefs.h.  */
9575_ACEOF
9576cat confdefs.h >>conftest.$ac_ext
9577cat >>conftest.$ac_ext <<_ACEOF
9578/* end confdefs.h.  */
9579
9580/* Override any GCC internal prototype to avoid an error.
9581   Use char because int might match the return type of a GCC
9582   builtin and then its argument prototype would still apply.  */
9583#ifdef __cplusplus
9584extern "C"
9585#endif
9586char dlopen ();
9587int
9588main ()
9589{
9590return dlopen ();
9591  ;
9592  return 0;
9593}
9594_ACEOF
9595rm -f conftest.$ac_objext conftest$ac_exeext
9596if { (ac_try="$ac_link"
9597case "(($ac_try" in
9598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599  *) ac_try_echo=$ac_try;;
9600esac
9601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602  (eval "$ac_link") 2>conftest.er1
9603  ac_status=$?
9604  grep -v '^ *+' conftest.er1 >conftest.err
9605  rm -f conftest.er1
9606  cat conftest.err >&5
9607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608  (exit $ac_status); } && {
9609	 test -z "$ac_c_werror_flag" ||
9610	 test ! -s conftest.err
9611       } && test -s conftest$ac_exeext &&
9612       $as_test_x conftest$ac_exeext; then
9613  ac_cv_lib_dl_dlopen=yes
9614else
9615  echo "$as_me: failed program was:" >&5
9616sed 's/^/| /' conftest.$ac_ext >&5
9617
9618	ac_cv_lib_dl_dlopen=no
9619fi
9620
9621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9622      conftest$ac_exeext conftest.$ac_ext
9623LIBS=$ac_check_lib_save_LIBS
9624fi
9625{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9626echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9627if test $ac_cv_lib_dl_dlopen = yes; then
9628  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9629else
9630  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9631echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9632if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9633  echo $ECHO_N "(cached) $ECHO_C" >&6
9634else
9635  ac_check_lib_save_LIBS=$LIBS
9636LIBS="-lsvld  $LIBS"
9637cat >conftest.$ac_ext <<_ACEOF
9638/* confdefs.h.  */
9639_ACEOF
9640cat confdefs.h >>conftest.$ac_ext
9641cat >>conftest.$ac_ext <<_ACEOF
9642/* end confdefs.h.  */
9643
9644/* Override any GCC internal prototype to avoid an error.
9645   Use char because int might match the return type of a GCC
9646   builtin and then its argument prototype would still apply.  */
9647#ifdef __cplusplus
9648extern "C"
9649#endif
9650char dlopen ();
9651int
9652main ()
9653{
9654return dlopen ();
9655  ;
9656  return 0;
9657}
9658_ACEOF
9659rm -f conftest.$ac_objext conftest$ac_exeext
9660if { (ac_try="$ac_link"
9661case "(($ac_try" in
9662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663  *) ac_try_echo=$ac_try;;
9664esac
9665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666  (eval "$ac_link") 2>conftest.er1
9667  ac_status=$?
9668  grep -v '^ *+' conftest.er1 >conftest.err
9669  rm -f conftest.er1
9670  cat conftest.err >&5
9671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672  (exit $ac_status); } && {
9673	 test -z "$ac_c_werror_flag" ||
9674	 test ! -s conftest.err
9675       } && test -s conftest$ac_exeext &&
9676       $as_test_x conftest$ac_exeext; then
9677  ac_cv_lib_svld_dlopen=yes
9678else
9679  echo "$as_me: failed program was:" >&5
9680sed 's/^/| /' conftest.$ac_ext >&5
9681
9682	ac_cv_lib_svld_dlopen=no
9683fi
9684
9685rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9686      conftest$ac_exeext conftest.$ac_ext
9687LIBS=$ac_check_lib_save_LIBS
9688fi
9689{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9690echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9691if test $ac_cv_lib_svld_dlopen = yes; then
9692  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9693else
9694  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9695echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9696if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9697  echo $ECHO_N "(cached) $ECHO_C" >&6
9698else
9699  ac_check_lib_save_LIBS=$LIBS
9700LIBS="-ldld  $LIBS"
9701cat >conftest.$ac_ext <<_ACEOF
9702/* confdefs.h.  */
9703_ACEOF
9704cat confdefs.h >>conftest.$ac_ext
9705cat >>conftest.$ac_ext <<_ACEOF
9706/* end confdefs.h.  */
9707
9708/* Override any GCC internal prototype to avoid an error.
9709   Use char because int might match the return type of a GCC
9710   builtin and then its argument prototype would still apply.  */
9711#ifdef __cplusplus
9712extern "C"
9713#endif
9714char dld_link ();
9715int
9716main ()
9717{
9718return dld_link ();
9719  ;
9720  return 0;
9721}
9722_ACEOF
9723rm -f conftest.$ac_objext conftest$ac_exeext
9724if { (ac_try="$ac_link"
9725case "(($ac_try" in
9726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727  *) ac_try_echo=$ac_try;;
9728esac
9729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730  (eval "$ac_link") 2>conftest.er1
9731  ac_status=$?
9732  grep -v '^ *+' conftest.er1 >conftest.err
9733  rm -f conftest.er1
9734  cat conftest.err >&5
9735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736  (exit $ac_status); } && {
9737	 test -z "$ac_c_werror_flag" ||
9738	 test ! -s conftest.err
9739       } && test -s conftest$ac_exeext &&
9740       $as_test_x conftest$ac_exeext; then
9741  ac_cv_lib_dld_dld_link=yes
9742else
9743  echo "$as_me: failed program was:" >&5
9744sed 's/^/| /' conftest.$ac_ext >&5
9745
9746	ac_cv_lib_dld_dld_link=no
9747fi
9748
9749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9750      conftest$ac_exeext conftest.$ac_ext
9751LIBS=$ac_check_lib_save_LIBS
9752fi
9753{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9754echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9755if test $ac_cv_lib_dld_dld_link = yes; then
9756  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9757fi
9758
9759
9760fi
9761
9762
9763fi
9764
9765
9766fi
9767
9768
9769fi
9770
9771
9772fi
9773
9774    ;;
9775  esac
9776
9777  if test "x$lt_cv_dlopen" != xno; then
9778    enable_dlopen=yes
9779  else
9780    enable_dlopen=no
9781  fi
9782
9783  case $lt_cv_dlopen in
9784  dlopen)
9785    save_CPPFLAGS="$CPPFLAGS"
9786    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9787
9788    save_LDFLAGS="$LDFLAGS"
9789    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9790
9791    save_LIBS="$LIBS"
9792    LIBS="$lt_cv_dlopen_libs $LIBS"
9793
9794    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9795echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9796if test "${lt_cv_dlopen_self+set}" = set; then
9797  echo $ECHO_N "(cached) $ECHO_C" >&6
9798else
9799  	  if test "$cross_compiling" = yes; then :
9800  lt_cv_dlopen_self=cross
9801else
9802  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9803  lt_status=$lt_dlunknown
9804  cat > conftest.$ac_ext <<EOF
9805#line 9805 "configure"
9806#include "confdefs.h"
9807
9808#if HAVE_DLFCN_H
9809#include <dlfcn.h>
9810#endif
9811
9812#include <stdio.h>
9813
9814#ifdef RTLD_GLOBAL
9815#  define LT_DLGLOBAL		RTLD_GLOBAL
9816#else
9817#  ifdef DL_GLOBAL
9818#    define LT_DLGLOBAL		DL_GLOBAL
9819#  else
9820#    define LT_DLGLOBAL		0
9821#  endif
9822#endif
9823
9824/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9825   find out it does not work in some platform. */
9826#ifndef LT_DLLAZY_OR_NOW
9827#  ifdef RTLD_LAZY
9828#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9829#  else
9830#    ifdef DL_LAZY
9831#      define LT_DLLAZY_OR_NOW		DL_LAZY
9832#    else
9833#      ifdef RTLD_NOW
9834#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9835#      else
9836#        ifdef DL_NOW
9837#          define LT_DLLAZY_OR_NOW	DL_NOW
9838#        else
9839#          define LT_DLLAZY_OR_NOW	0
9840#        endif
9841#      endif
9842#    endif
9843#  endif
9844#endif
9845
9846#ifdef __cplusplus
9847extern "C" void exit (int);
9848#endif
9849
9850void fnord() { int i=42;}
9851int main ()
9852{
9853  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9854  int status = $lt_dlunknown;
9855
9856  if (self)
9857    {
9858      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9859      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9860      /* dlclose (self); */
9861    }
9862  else
9863    puts (dlerror ());
9864
9865    exit (status);
9866}
9867EOF
9868  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9869  (eval $ac_link) 2>&5
9870  ac_status=$?
9871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9873    (./conftest; exit; ) >&5 2>/dev/null
9874    lt_status=$?
9875    case x$lt_status in
9876      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9877      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9878      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9879    esac
9880  else :
9881    # compilation failed
9882    lt_cv_dlopen_self=no
9883  fi
9884fi
9885rm -fr conftest*
9886
9887
9888fi
9889{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9890echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9891
9892    if test "x$lt_cv_dlopen_self" = xyes; then
9893      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9894      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9895echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9896if test "${lt_cv_dlopen_self_static+set}" = set; then
9897  echo $ECHO_N "(cached) $ECHO_C" >&6
9898else
9899  	  if test "$cross_compiling" = yes; then :
9900  lt_cv_dlopen_self_static=cross
9901else
9902  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9903  lt_status=$lt_dlunknown
9904  cat > conftest.$ac_ext <<EOF
9905#line 9905 "configure"
9906#include "confdefs.h"
9907
9908#if HAVE_DLFCN_H
9909#include <dlfcn.h>
9910#endif
9911
9912#include <stdio.h>
9913
9914#ifdef RTLD_GLOBAL
9915#  define LT_DLGLOBAL		RTLD_GLOBAL
9916#else
9917#  ifdef DL_GLOBAL
9918#    define LT_DLGLOBAL		DL_GLOBAL
9919#  else
9920#    define LT_DLGLOBAL		0
9921#  endif
9922#endif
9923
9924/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9925   find out it does not work in some platform. */
9926#ifndef LT_DLLAZY_OR_NOW
9927#  ifdef RTLD_LAZY
9928#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9929#  else
9930#    ifdef DL_LAZY
9931#      define LT_DLLAZY_OR_NOW		DL_LAZY
9932#    else
9933#      ifdef RTLD_NOW
9934#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9935#      else
9936#        ifdef DL_NOW
9937#          define LT_DLLAZY_OR_NOW	DL_NOW
9938#        else
9939#          define LT_DLLAZY_OR_NOW	0
9940#        endif
9941#      endif
9942#    endif
9943#  endif
9944#endif
9945
9946#ifdef __cplusplus
9947extern "C" void exit (int);
9948#endif
9949
9950void fnord() { int i=42;}
9951int main ()
9952{
9953  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9954  int status = $lt_dlunknown;
9955
9956  if (self)
9957    {
9958      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9959      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9960      /* dlclose (self); */
9961    }
9962  else
9963    puts (dlerror ());
9964
9965    exit (status);
9966}
9967EOF
9968  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9969  (eval $ac_link) 2>&5
9970  ac_status=$?
9971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9973    (./conftest; exit; ) >&5 2>/dev/null
9974    lt_status=$?
9975    case x$lt_status in
9976      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9977      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9978      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9979    esac
9980  else :
9981    # compilation failed
9982    lt_cv_dlopen_self_static=no
9983  fi
9984fi
9985rm -fr conftest*
9986
9987
9988fi
9989{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9990echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9991    fi
9992
9993    CPPFLAGS="$save_CPPFLAGS"
9994    LDFLAGS="$save_LDFLAGS"
9995    LIBS="$save_LIBS"
9996    ;;
9997  esac
9998
9999  case $lt_cv_dlopen_self in
10000  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10001  *) enable_dlopen_self=unknown ;;
10002  esac
10003
10004  case $lt_cv_dlopen_self_static in
10005  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10006  *) enable_dlopen_self_static=unknown ;;
10007  esac
10008fi
10009
10010
10011# Report which library types will actually be built
10012{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10013echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10014{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10015echo "${ECHO_T}$can_build_shared" >&6; }
10016
10017{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10018echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10019test "$can_build_shared" = "no" && enable_shared=no
10020
10021# On AIX, shared libraries and static libraries use the same namespace, and
10022# are all built from PIC.
10023case $host_os in
10024aix3*)
10025  test "$enable_shared" = yes && enable_static=no
10026  if test -n "$RANLIB"; then
10027    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10028    postinstall_cmds='$RANLIB $lib'
10029  fi
10030  ;;
10031
10032aix4* | aix5*)
10033  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10034    test "$enable_shared" = yes && enable_static=no
10035  fi
10036    ;;
10037esac
10038{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10039echo "${ECHO_T}$enable_shared" >&6; }
10040
10041{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10042echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10043# Make sure either enable_shared or enable_static is yes.
10044test "$enable_shared" = yes || enable_static=yes
10045{ echo "$as_me:$LINENO: result: $enable_static" >&5
10046echo "${ECHO_T}$enable_static" >&6; }
10047
10048# The else clause should only fire when bootstrapping the
10049# libtool distribution, otherwise you forgot to ship ltmain.sh
10050# with your package, and you will get complaints that there are
10051# no rules to generate ltmain.sh.
10052if test -f "$ltmain"; then
10053  # See if we are running on zsh, and set the options which allow our commands through
10054  # without removal of \ escapes.
10055  if test -n "${ZSH_VERSION+set}" ; then
10056    setopt NO_GLOB_SUBST
10057  fi
10058  # Now quote all the things that may contain metacharacters while being
10059  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10060  # variables and quote the copies for generation of the libtool script.
10061  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10062    SED SHELL STRIP \
10063    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10064    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10065    deplibs_check_method reload_flag reload_cmds need_locks \
10066    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10067    lt_cv_sys_global_symbol_to_c_name_address \
10068    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10069    old_postinstall_cmds old_postuninstall_cmds \
10070    compiler \
10071    CC \
10072    LD \
10073    lt_prog_compiler_wl \
10074    lt_prog_compiler_pic \
10075    lt_prog_compiler_static \
10076    lt_prog_compiler_no_builtin_flag \
10077    export_dynamic_flag_spec \
10078    thread_safe_flag_spec \
10079    whole_archive_flag_spec \
10080    enable_shared_with_static_runtimes \
10081    old_archive_cmds \
10082    old_archive_from_new_cmds \
10083    predep_objects \
10084    postdep_objects \
10085    predeps \
10086    postdeps \
10087    compiler_lib_search_path \
10088    archive_cmds \
10089    archive_expsym_cmds \
10090    postinstall_cmds \
10091    postuninstall_cmds \
10092    old_archive_from_expsyms_cmds \
10093    allow_undefined_flag \
10094    no_undefined_flag \
10095    export_symbols_cmds \
10096    hardcode_libdir_flag_spec \
10097    hardcode_libdir_flag_spec_ld \
10098    hardcode_libdir_separator \
10099    hardcode_automatic \
10100    module_cmds \
10101    module_expsym_cmds \
10102    lt_cv_prog_compiler_c_o \
10103    exclude_expsyms \
10104    include_expsyms; do
10105
10106    case $var in
10107    old_archive_cmds | \
10108    old_archive_from_new_cmds | \
10109    archive_cmds | \
10110    archive_expsym_cmds | \
10111    module_cmds | \
10112    module_expsym_cmds | \
10113    old_archive_from_expsyms_cmds | \
10114    export_symbols_cmds | \
10115    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10116    postinstall_cmds | postuninstall_cmds | \
10117    old_postinstall_cmds | old_postuninstall_cmds | \
10118    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10119      # Double-quote double-evaled strings.
10120      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10121      ;;
10122    *)
10123      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10124      ;;
10125    esac
10126  done
10127
10128  case $lt_echo in
10129  *'\$0 --fallback-echo"')
10130    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10131    ;;
10132  esac
10133
10134cfgfile="${ofile}T"
10135  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10136  $rm -f "$cfgfile"
10137  { echo "$as_me:$LINENO: creating $ofile" >&5
10138echo "$as_me: creating $ofile" >&6;}
10139
10140  cat <<__EOF__ >> "$cfgfile"
10141#! $SHELL
10142
10143# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10144# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10145# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10146#
10147# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10148# Free Software Foundation, Inc.
10149#
10150# This file is part of GNU Libtool:
10151# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10152#
10153# This program is free software; you can redistribute it and/or modify
10154# it under the terms of the GNU General Public License as published by
10155# the Free Software Foundation; either version 2 of the License, or
10156# (at your option) any later version.
10157#
10158# This program is distributed in the hope that it will be useful, but
10159# WITHOUT ANY WARRANTY; without even the implied warranty of
10160# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10161# General Public License for more details.
10162#
10163# You should have received a copy of the GNU General Public License
10164# along with this program; if not, write to the Free Software
10165# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10166#
10167# As a special exception to the GNU General Public License, if you
10168# distribute this file as part of a program that contains a
10169# configuration script generated by Autoconf, you may include it under
10170# the same distribution terms that you use for the rest of that program.
10171
10172# A sed program that does not truncate output.
10173SED=$lt_SED
10174
10175# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10176Xsed="$SED -e 1s/^X//"
10177
10178# The HP-UX ksh and POSIX shell print the target directory to stdout
10179# if CDPATH is set.
10180(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10181
10182# The names of the tagged configurations supported by this script.
10183available_tags=
10184
10185# ### BEGIN LIBTOOL CONFIG
10186
10187# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10188
10189# Shell to use when invoking shell scripts.
10190SHELL=$lt_SHELL
10191
10192# Whether or not to build shared libraries.
10193build_libtool_libs=$enable_shared
10194
10195# Whether or not to build static libraries.
10196build_old_libs=$enable_static
10197
10198# Whether or not to add -lc for building shared libraries.
10199build_libtool_need_lc=$archive_cmds_need_lc
10200
10201# Whether or not to disallow shared libs when runtime libs are static
10202allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10203
10204# Whether or not to optimize for fast installation.
10205fast_install=$enable_fast_install
10206
10207# The host system.
10208host_alias=$host_alias
10209host=$host
10210host_os=$host_os
10211
10212# The build system.
10213build_alias=$build_alias
10214build=$build
10215build_os=$build_os
10216
10217# An echo program that does not interpret backslashes.
10218echo=$lt_echo
10219
10220# The archiver.
10221AR=$lt_AR
10222AR_FLAGS=$lt_AR_FLAGS
10223
10224# A C compiler.
10225LTCC=$lt_LTCC
10226
10227# LTCC compiler flags.
10228LTCFLAGS=$lt_LTCFLAGS
10229
10230# A language-specific compiler.
10231CC=$lt_compiler
10232
10233# Is the compiler the GNU C compiler?
10234with_gcc=$GCC
10235
10236# An ERE matcher.
10237EGREP=$lt_EGREP
10238
10239# The linker used to build libraries.
10240LD=$lt_LD
10241
10242# Whether we need hard or soft links.
10243LN_S=$lt_LN_S
10244
10245# A BSD-compatible nm program.
10246NM=$lt_NM
10247
10248# A symbol stripping program
10249STRIP=$lt_STRIP
10250
10251# Used to examine libraries when file_magic_cmd begins "file"
10252MAGIC_CMD=$MAGIC_CMD
10253
10254# Used on cygwin: DLL creation program.
10255DLLTOOL="$DLLTOOL"
10256
10257# Used on cygwin: object dumper.
10258OBJDUMP="$OBJDUMP"
10259
10260# Used on cygwin: assembler.
10261AS="$AS"
10262
10263# The name of the directory that contains temporary libtool files.
10264objdir=$objdir
10265
10266# How to create reloadable object files.
10267reload_flag=$lt_reload_flag
10268reload_cmds=$lt_reload_cmds
10269
10270# How to pass a linker flag through the compiler.
10271wl=$lt_lt_prog_compiler_wl
10272
10273# Object file suffix (normally "o").
10274objext="$ac_objext"
10275
10276# Old archive suffix (normally "a").
10277libext="$libext"
10278
10279# Shared library suffix (normally ".so").
10280shrext_cmds='$shrext_cmds'
10281
10282# Executable file suffix (normally "").
10283exeext="$exeext"
10284
10285# Additional compiler flags for building library objects.
10286pic_flag=$lt_lt_prog_compiler_pic
10287pic_mode=$pic_mode
10288
10289# What is the maximum length of a command?
10290max_cmd_len=$lt_cv_sys_max_cmd_len
10291
10292# Does compiler simultaneously support -c and -o options?
10293compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10294
10295# Must we lock files when doing compilation?
10296need_locks=$lt_need_locks
10297
10298# Do we need the lib prefix for modules?
10299need_lib_prefix=$need_lib_prefix
10300
10301# Do we need a version for libraries?
10302need_version=$need_version
10303
10304# Whether dlopen is supported.
10305dlopen_support=$enable_dlopen
10306
10307# Whether dlopen of programs is supported.
10308dlopen_self=$enable_dlopen_self
10309
10310# Whether dlopen of statically linked programs is supported.
10311dlopen_self_static=$enable_dlopen_self_static
10312
10313# Compiler flag to prevent dynamic linking.
10314link_static_flag=$lt_lt_prog_compiler_static
10315
10316# Compiler flag to turn off builtin functions.
10317no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10318
10319# Compiler flag to allow reflexive dlopens.
10320export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10321
10322# Compiler flag to generate shared objects directly from archives.
10323whole_archive_flag_spec=$lt_whole_archive_flag_spec
10324
10325# Compiler flag to generate thread-safe objects.
10326thread_safe_flag_spec=$lt_thread_safe_flag_spec
10327
10328# Library versioning type.
10329version_type=$version_type
10330
10331# Format of library name prefix.
10332libname_spec=$lt_libname_spec
10333
10334# List of archive names.  First name is the real one, the rest are links.
10335# The last name is the one that the linker finds with -lNAME.
10336library_names_spec=$lt_library_names_spec
10337
10338# The coded name of the library, if different from the real name.
10339soname_spec=$lt_soname_spec
10340
10341# Commands used to build and install an old-style archive.
10342RANLIB=$lt_RANLIB
10343old_archive_cmds=$lt_old_archive_cmds
10344old_postinstall_cmds=$lt_old_postinstall_cmds
10345old_postuninstall_cmds=$lt_old_postuninstall_cmds
10346
10347# Create an old-style archive from a shared archive.
10348old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10349
10350# Create a temporary old-style archive to link instead of a shared archive.
10351old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10352
10353# Commands used to build and install a shared archive.
10354archive_cmds=$lt_archive_cmds
10355archive_expsym_cmds=$lt_archive_expsym_cmds
10356postinstall_cmds=$lt_postinstall_cmds
10357postuninstall_cmds=$lt_postuninstall_cmds
10358
10359# Commands used to build a loadable module (assumed same as above if empty)
10360module_cmds=$lt_module_cmds
10361module_expsym_cmds=$lt_module_expsym_cmds
10362
10363# Commands to strip libraries.
10364old_striplib=$lt_old_striplib
10365striplib=$lt_striplib
10366
10367# Dependencies to place before the objects being linked to create a
10368# shared library.
10369predep_objects=$lt_predep_objects
10370
10371# Dependencies to place after the objects being linked to create a
10372# shared library.
10373postdep_objects=$lt_postdep_objects
10374
10375# Dependencies to place before the objects being linked to create a
10376# shared library.
10377predeps=$lt_predeps
10378
10379# Dependencies to place after the objects being linked to create a
10380# shared library.
10381postdeps=$lt_postdeps
10382
10383# The library search path used internally by the compiler when linking
10384# a shared library.
10385compiler_lib_search_path=$lt_compiler_lib_search_path
10386
10387# Method to check whether dependent libraries are shared objects.
10388deplibs_check_method=$lt_deplibs_check_method
10389
10390# Command to use when deplibs_check_method == file_magic.
10391file_magic_cmd=$lt_file_magic_cmd
10392
10393# Flag that allows shared libraries with undefined symbols to be built.
10394allow_undefined_flag=$lt_allow_undefined_flag
10395
10396# Flag that forces no undefined symbols.
10397no_undefined_flag=$lt_no_undefined_flag
10398
10399# Commands used to finish a libtool library installation in a directory.
10400finish_cmds=$lt_finish_cmds
10401
10402# Same as above, but a single script fragment to be evaled but not shown.
10403finish_eval=$lt_finish_eval
10404
10405# Take the output of nm and produce a listing of raw symbols and C names.
10406global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10407
10408# Transform the output of nm in a proper C declaration
10409global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10410
10411# Transform the output of nm in a C name address pair
10412global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10413
10414# This is the shared library runtime path variable.
10415runpath_var=$runpath_var
10416
10417# This is the shared library path variable.
10418shlibpath_var=$shlibpath_var
10419
10420# Is shlibpath searched before the hard-coded library search path?
10421shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10422
10423# How to hardcode a shared library path into an executable.
10424hardcode_action=$hardcode_action
10425
10426# Whether we should hardcode library paths into libraries.
10427hardcode_into_libs=$hardcode_into_libs
10428
10429# Flag to hardcode \$libdir into a binary during linking.
10430# This must work even if \$libdir does not exist.
10431hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10432
10433# If ld is used when linking, flag to hardcode \$libdir into
10434# a binary during linking. This must work even if \$libdir does
10435# not exist.
10436hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10437
10438# Whether we need a single -rpath flag with a separated argument.
10439hardcode_libdir_separator=$lt_hardcode_libdir_separator
10440
10441# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10442# resulting binary.
10443hardcode_direct=$hardcode_direct
10444
10445# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10446# resulting binary.
10447hardcode_minus_L=$hardcode_minus_L
10448
10449# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10450# the resulting binary.
10451hardcode_shlibpath_var=$hardcode_shlibpath_var
10452
10453# Set to yes if building a shared library automatically hardcodes DIR into the library
10454# and all subsequent libraries and executables linked against it.
10455hardcode_automatic=$hardcode_automatic
10456
10457# Variables whose values should be saved in libtool wrapper scripts and
10458# restored at relink time.
10459variables_saved_for_relink="$variables_saved_for_relink"
10460
10461# Whether libtool must link a program against all its dependency libraries.
10462link_all_deplibs=$link_all_deplibs
10463
10464# Compile-time system search path for libraries
10465sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10466
10467# Run-time system search path for libraries
10468sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10469
10470# Fix the shell variable \$srcfile for the compiler.
10471fix_srcfile_path="$fix_srcfile_path"
10472
10473# Set to yes if exported symbols are required.
10474always_export_symbols=$always_export_symbols
10475
10476# The commands to list exported symbols.
10477export_symbols_cmds=$lt_export_symbols_cmds
10478
10479# The commands to extract the exported symbol list from a shared archive.
10480extract_expsyms_cmds=$lt_extract_expsyms_cmds
10481
10482# Symbols that should not be listed in the preloaded symbols.
10483exclude_expsyms=$lt_exclude_expsyms
10484
10485# Symbols that must always be exported.
10486include_expsyms=$lt_include_expsyms
10487
10488# ### END LIBTOOL CONFIG
10489
10490__EOF__
10491
10492
10493  case $host_os in
10494  aix3*)
10495    cat <<\EOF >> "$cfgfile"
10496
10497# AIX sometimes has problems with the GCC collect2 program.  For some
10498# reason, if we set the COLLECT_NAMES environment variable, the problems
10499# vanish in a puff of smoke.
10500if test "X${COLLECT_NAMES+set}" != Xset; then
10501  COLLECT_NAMES=
10502  export COLLECT_NAMES
10503fi
10504EOF
10505    ;;
10506  esac
10507
10508  # We use sed instead of cat because bash on DJGPP gets confused if
10509  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10510  # text mode, it properly converts lines to CR/LF.  This bash problem
10511  # is reportedly fixed, but why not run on old versions too?
10512  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10513
10514  mv -f "$cfgfile" "$ofile" || \
10515    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10516  chmod +x "$ofile"
10517
10518else
10519  # If there is no Makefile yet, we rely on a make rule to execute
10520  # `config.status --recheck' to rerun these tests and create the
10521  # libtool script then.
10522  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10523  if test -f "$ltmain_in"; then
10524    test -f Makefile && make "$ltmain"
10525  fi
10526fi
10527
10528
10529ac_ext=c
10530ac_cpp='$CPP $CPPFLAGS'
10531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10533ac_compiler_gnu=$ac_cv_c_compiler_gnu
10534
10535CC="$lt_save_CC"
10536
10537
10538# Check whether --with-tags was given.
10539if test "${with_tags+set}" = set; then
10540  withval=$with_tags; tagnames="$withval"
10541fi
10542
10543
10544if test -f "$ltmain" && test -n "$tagnames"; then
10545  if test ! -f "${ofile}"; then
10546    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10547echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10548  fi
10549
10550  if test -z "$LTCC"; then
10551    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10552    if test -z "$LTCC"; then
10553      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10554echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10555    else
10556      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10557echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10558    fi
10559  fi
10560  if test -z "$LTCFLAGS"; then
10561    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10562  fi
10563
10564  # Extract list of available tagged configurations in $ofile.
10565  # Note that this assumes the entire list is on one line.
10566  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10567
10568  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10569  for tagname in $tagnames; do
10570    IFS="$lt_save_ifs"
10571    # Check whether tagname contains only valid characters
10572    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10573    "") ;;
10574    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10575echo "$as_me: error: invalid tag name: $tagname" >&2;}
10576   { (exit 1); exit 1; }; }
10577	;;
10578    esac
10579
10580    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10581    then
10582      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10583echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10584   { (exit 1); exit 1; }; }
10585    fi
10586
10587    # Update the list of available tags.
10588    if test -n "$tagname"; then
10589      echo appending configuration tag \"$tagname\" to $ofile
10590
10591      case $tagname in
10592      CXX)
10593	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10594	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10595	    (test "X$CXX" != "Xg++"))) ; then
10596	  ac_ext=cpp
10597ac_cpp='$CXXCPP $CPPFLAGS'
10598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10601
10602
10603
10604
10605archive_cmds_need_lc_CXX=no
10606allow_undefined_flag_CXX=
10607always_export_symbols_CXX=no
10608archive_expsym_cmds_CXX=
10609export_dynamic_flag_spec_CXX=
10610hardcode_direct_CXX=no
10611hardcode_libdir_flag_spec_CXX=
10612hardcode_libdir_flag_spec_ld_CXX=
10613hardcode_libdir_separator_CXX=
10614hardcode_minus_L_CXX=no
10615hardcode_shlibpath_var_CXX=unsupported
10616hardcode_automatic_CXX=no
10617module_cmds_CXX=
10618module_expsym_cmds_CXX=
10619link_all_deplibs_CXX=unknown
10620old_archive_cmds_CXX=$old_archive_cmds
10621no_undefined_flag_CXX=
10622whole_archive_flag_spec_CXX=
10623enable_shared_with_static_runtimes_CXX=no
10624
10625# Dependencies to place before and after the object being linked:
10626predep_objects_CXX=
10627postdep_objects_CXX=
10628predeps_CXX=
10629postdeps_CXX=
10630compiler_lib_search_path_CXX=
10631
10632# Source file extension for C++ test sources.
10633ac_ext=cpp
10634
10635# Object file extension for compiled C++ test sources.
10636objext=o
10637objext_CXX=$objext
10638
10639# Code to be used in simple compile tests
10640lt_simple_compile_test_code="int some_variable = 0;\n"
10641
10642# Code to be used in simple link tests
10643lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10644
10645# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10646
10647# If no C compiler was specified, use CC.
10648LTCC=${LTCC-"$CC"}
10649
10650# If no C compiler flags were specified, use CFLAGS.
10651LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10652
10653# Allow CC to be a program name with arguments.
10654compiler=$CC
10655
10656
10657# save warnings/boilerplate of simple test code
10658ac_outfile=conftest.$ac_objext
10659printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10660eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10661_lt_compiler_boilerplate=`cat conftest.err`
10662$rm conftest*
10663
10664ac_outfile=conftest.$ac_objext
10665printf "$lt_simple_link_test_code" >conftest.$ac_ext
10666eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10667_lt_linker_boilerplate=`cat conftest.err`
10668$rm conftest*
10669
10670
10671# Allow CC to be a program name with arguments.
10672lt_save_CC=$CC
10673lt_save_LD=$LD
10674lt_save_GCC=$GCC
10675GCC=$GXX
10676lt_save_with_gnu_ld=$with_gnu_ld
10677lt_save_path_LD=$lt_cv_path_LD
10678if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10679  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10680else
10681  $as_unset lt_cv_prog_gnu_ld
10682fi
10683if test -n "${lt_cv_path_LDCXX+set}"; then
10684  lt_cv_path_LD=$lt_cv_path_LDCXX
10685else
10686  $as_unset lt_cv_path_LD
10687fi
10688test -z "${LDCXX+set}" || LD=$LDCXX
10689CC=${CXX-"c++"}
10690compiler=$CC
10691compiler_CXX=$CC
10692for cc_temp in $compiler""; do
10693  case $cc_temp in
10694    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10695    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10696    \-*) ;;
10697    *) break;;
10698  esac
10699done
10700cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10701
10702
10703# We don't want -fno-exception wen compiling C++ code, so set the
10704# no_builtin_flag separately
10705if test "$GXX" = yes; then
10706  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10707else
10708  lt_prog_compiler_no_builtin_flag_CXX=
10709fi
10710
10711if test "$GXX" = yes; then
10712  # Set up default GNU C++ configuration
10713
10714
10715# Check whether --with-gnu-ld was given.
10716if test "${with_gnu_ld+set}" = set; then
10717  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10718else
10719  with_gnu_ld=no
10720fi
10721
10722ac_prog=ld
10723if test "$GCC" = yes; then
10724  # Check if gcc -print-prog-name=ld gives a path.
10725  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10726echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10727  case $host in
10728  *-*-mingw*)
10729    # gcc leaves a trailing carriage return which upsets mingw
10730    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10731  *)
10732    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10733  esac
10734  case $ac_prog in
10735    # Accept absolute paths.
10736    [\\/]* | ?:[\\/]*)
10737      re_direlt='/[^/][^/]*/\.\./'
10738      # Canonicalize the pathname of ld
10739      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10740      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10741	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10742      done
10743      test -z "$LD" && LD="$ac_prog"
10744      ;;
10745  "")
10746    # If it fails, then pretend we aren't using GCC.
10747    ac_prog=ld
10748    ;;
10749  *)
10750    # If it is relative, then search for the first ld in PATH.
10751    with_gnu_ld=unknown
10752    ;;
10753  esac
10754elif test "$with_gnu_ld" = yes; then
10755  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10756echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10757else
10758  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10759echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10760fi
10761if test "${lt_cv_path_LD+set}" = set; then
10762  echo $ECHO_N "(cached) $ECHO_C" >&6
10763else
10764  if test -z "$LD"; then
10765  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10766  for ac_dir in $PATH; do
10767    IFS="$lt_save_ifs"
10768    test -z "$ac_dir" && ac_dir=.
10769    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10770      lt_cv_path_LD="$ac_dir/$ac_prog"
10771      # Check to see if the program is GNU ld.  I'd rather use --version,
10772      # but apparently some variants of GNU ld only accept -v.
10773      # Break only if it was the GNU/non-GNU ld that we prefer.
10774      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10775      *GNU* | *'with BFD'*)
10776	test "$with_gnu_ld" != no && break
10777	;;
10778      *)
10779	test "$with_gnu_ld" != yes && break
10780	;;
10781      esac
10782    fi
10783  done
10784  IFS="$lt_save_ifs"
10785else
10786  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10787fi
10788fi
10789
10790LD="$lt_cv_path_LD"
10791if test -n "$LD"; then
10792  { echo "$as_me:$LINENO: result: $LD" >&5
10793echo "${ECHO_T}$LD" >&6; }
10794else
10795  { echo "$as_me:$LINENO: result: no" >&5
10796echo "${ECHO_T}no" >&6; }
10797fi
10798test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10799echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10800   { (exit 1); exit 1; }; }
10801{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10802echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10803if test "${lt_cv_prog_gnu_ld+set}" = set; then
10804  echo $ECHO_N "(cached) $ECHO_C" >&6
10805else
10806  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10807case `$LD -v 2>&1 </dev/null` in
10808*GNU* | *'with BFD'*)
10809  lt_cv_prog_gnu_ld=yes
10810  ;;
10811*)
10812  lt_cv_prog_gnu_ld=no
10813  ;;
10814esac
10815fi
10816{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10817echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10818with_gnu_ld=$lt_cv_prog_gnu_ld
10819
10820
10821
10822  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10823  # archiving commands below assume that GNU ld is being used.
10824  if test "$with_gnu_ld" = yes; then
10825    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10826    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'
10827
10828    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10829    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10830
10831    # If archive_cmds runs LD, not CC, wlarc should be empty
10832    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10833    #     investigate it a little bit more. (MM)
10834    wlarc='${wl}'
10835
10836    # ancient GNU ld didn't support --whole-archive et. al.
10837    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10838	grep 'no-whole-archive' > /dev/null; then
10839      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10840    else
10841      whole_archive_flag_spec_CXX=
10842    fi
10843  else
10844    with_gnu_ld=no
10845    wlarc=
10846
10847    # A generic and very simple default shared library creation
10848    # command for GNU C++ for the case where it uses the native
10849    # linker, instead of GNU ld.  If possible, this setting should
10850    # overridden to take advantage of the native linker features on
10851    # the platform it is being used on.
10852    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10853  fi
10854
10855  # Commands to make compiler produce verbose output that lists
10856  # what "hidden" libraries, object files and flags are used when
10857  # linking a shared library.
10858  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10859
10860else
10861  GXX=no
10862  with_gnu_ld=no
10863  wlarc=
10864fi
10865
10866# PORTME: fill in a description of your system's C++ link characteristics
10867{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10868echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10869ld_shlibs_CXX=yes
10870case $host_os in
10871  aix3*)
10872    # FIXME: insert proper C++ library support
10873    ld_shlibs_CXX=no
10874    ;;
10875  aix4* | aix5*)
10876    if test "$host_cpu" = ia64; then
10877      # On IA64, the linker does run time linking by default, so we don't
10878      # have to do anything special.
10879      aix_use_runtimelinking=no
10880      exp_sym_flag='-Bexport'
10881      no_entry_flag=""
10882    else
10883      aix_use_runtimelinking=no
10884
10885      # Test if we are trying to use run time linking or normal
10886      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10887      # need to do runtime linking.
10888      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10889	for ld_flag in $LDFLAGS; do
10890	  case $ld_flag in
10891	  *-brtl*)
10892	    aix_use_runtimelinking=yes
10893	    break
10894	    ;;
10895	  esac
10896	done
10897	;;
10898      esac
10899
10900      exp_sym_flag='-bexport'
10901      no_entry_flag='-bnoentry'
10902    fi
10903
10904    # When large executables or shared objects are built, AIX ld can
10905    # have problems creating the table of contents.  If linking a library
10906    # or program results in "error TOC overflow" add -mminimal-toc to
10907    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10908    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10909
10910    archive_cmds_CXX=''
10911    hardcode_direct_CXX=yes
10912    hardcode_libdir_separator_CXX=':'
10913    link_all_deplibs_CXX=yes
10914
10915    if test "$GXX" = yes; then
10916      case $host_os in aix4.[012]|aix4.[012].*)
10917      # We only want to do this on AIX 4.2 and lower, the check
10918      # below for broken collect2 doesn't work under 4.3+
10919	collect2name=`${CC} -print-prog-name=collect2`
10920	if test -f "$collect2name" && \
10921	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10922	then
10923	  # We have reworked collect2
10924	  hardcode_direct_CXX=yes
10925	else
10926	  # We have old collect2
10927	  hardcode_direct_CXX=unsupported
10928	  # It fails to find uninstalled libraries when the uninstalled
10929	  # path is not listed in the libpath.  Setting hardcode_minus_L
10930	  # to unsupported forces relinking
10931	  hardcode_minus_L_CXX=yes
10932	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10933	  hardcode_libdir_separator_CXX=
10934	fi
10935	;;
10936      esac
10937      shared_flag='-shared'
10938      if test "$aix_use_runtimelinking" = yes; then
10939	shared_flag="$shared_flag "'${wl}-G'
10940      fi
10941    else
10942      # not using gcc
10943      if test "$host_cpu" = ia64; then
10944	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10945	# chokes on -Wl,-G. The following line is correct:
10946	shared_flag='-G'
10947      else
10948	if test "$aix_use_runtimelinking" = yes; then
10949	  shared_flag='${wl}-G'
10950	else
10951	  shared_flag='${wl}-bM:SRE'
10952	fi
10953      fi
10954    fi
10955
10956    # It seems that -bexpall does not export symbols beginning with
10957    # underscore (_), so it is better to generate a list of symbols to export.
10958    always_export_symbols_CXX=yes
10959    if test "$aix_use_runtimelinking" = yes; then
10960      # Warning - without using the other runtime loading flags (-brtl),
10961      # -berok will link without error, but may produce a broken library.
10962      allow_undefined_flag_CXX='-berok'
10963      # Determine the default libpath from the value encoded in an empty executable.
10964      cat >conftest.$ac_ext <<_ACEOF
10965/* confdefs.h.  */
10966_ACEOF
10967cat confdefs.h >>conftest.$ac_ext
10968cat >>conftest.$ac_ext <<_ACEOF
10969/* end confdefs.h.  */
10970
10971int
10972main ()
10973{
10974
10975  ;
10976  return 0;
10977}
10978_ACEOF
10979rm -f conftest.$ac_objext conftest$ac_exeext
10980if { (ac_try="$ac_link"
10981case "(($ac_try" in
10982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983  *) ac_try_echo=$ac_try;;
10984esac
10985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10986  (eval "$ac_link") 2>conftest.er1
10987  ac_status=$?
10988  grep -v '^ *+' conftest.er1 >conftest.err
10989  rm -f conftest.er1
10990  cat conftest.err >&5
10991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992  (exit $ac_status); } && {
10993	 test -z "$ac_cxx_werror_flag" ||
10994	 test ! -s conftest.err
10995       } && test -s conftest$ac_exeext &&
10996       $as_test_x conftest$ac_exeext; then
10997
10998aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10999}'`
11000# Check for a 64-bit object if we didn't find anything.
11001if 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; }
11002}'`; fi
11003else
11004  echo "$as_me: failed program was:" >&5
11005sed 's/^/| /' conftest.$ac_ext >&5
11006
11007
11008fi
11009
11010rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11011      conftest$ac_exeext conftest.$ac_ext
11012if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11013
11014      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11015
11016      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"
11017     else
11018      if test "$host_cpu" = ia64; then
11019	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11020	allow_undefined_flag_CXX="-z nodefs"
11021	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"
11022      else
11023	# Determine the default libpath from the value encoded in an empty executable.
11024	cat >conftest.$ac_ext <<_ACEOF
11025/* confdefs.h.  */
11026_ACEOF
11027cat confdefs.h >>conftest.$ac_ext
11028cat >>conftest.$ac_ext <<_ACEOF
11029/* end confdefs.h.  */
11030
11031int
11032main ()
11033{
11034
11035  ;
11036  return 0;
11037}
11038_ACEOF
11039rm -f conftest.$ac_objext conftest$ac_exeext
11040if { (ac_try="$ac_link"
11041case "(($ac_try" in
11042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043  *) ac_try_echo=$ac_try;;
11044esac
11045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046  (eval "$ac_link") 2>conftest.er1
11047  ac_status=$?
11048  grep -v '^ *+' conftest.er1 >conftest.err
11049  rm -f conftest.er1
11050  cat conftest.err >&5
11051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052  (exit $ac_status); } && {
11053	 test -z "$ac_cxx_werror_flag" ||
11054	 test ! -s conftest.err
11055       } && test -s conftest$ac_exeext &&
11056       $as_test_x conftest$ac_exeext; then
11057
11058aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11059}'`
11060# Check for a 64-bit object if we didn't find anything.
11061if 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; }
11062}'`; fi
11063else
11064  echo "$as_me: failed program was:" >&5
11065sed 's/^/| /' conftest.$ac_ext >&5
11066
11067
11068fi
11069
11070rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11071      conftest$ac_exeext conftest.$ac_ext
11072if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11073
11074	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11075	# Warning - without using the other run time loading flags,
11076	# -berok will link without error, but may produce a broken library.
11077	no_undefined_flag_CXX=' ${wl}-bernotok'
11078	allow_undefined_flag_CXX=' ${wl}-berok'
11079	# Exported symbols can be pulled into shared objects from archives
11080	whole_archive_flag_spec_CXX='$convenience'
11081	archive_cmds_need_lc_CXX=yes
11082	# This is similar to how AIX traditionally builds its shared libraries.
11083	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'
11084      fi
11085    fi
11086    ;;
11087
11088  beos*)
11089    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11090      allow_undefined_flag_CXX=unsupported
11091      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11092      # support --undefined.  This deserves some investigation.  FIXME
11093      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11094    else
11095      ld_shlibs_CXX=no
11096    fi
11097    ;;
11098
11099  chorus*)
11100    case $cc_basename in
11101      *)
11102	# FIXME: insert proper C++ library support
11103	ld_shlibs_CXX=no
11104	;;
11105    esac
11106    ;;
11107
11108  cygwin* | mingw* | pw32*)
11109    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11110    # as there is no search path for DLLs.
11111    hardcode_libdir_flag_spec_CXX='-L$libdir'
11112    allow_undefined_flag_CXX=unsupported
11113    always_export_symbols_CXX=no
11114    enable_shared_with_static_runtimes_CXX=yes
11115
11116    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11117      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'
11118      # If the export-symbols file already is a .def file (1st line
11119      # is EXPORTS), use it as is; otherwise, prepend...
11120      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11121	cp $export_symbols $output_objdir/$soname.def;
11122      else
11123	echo EXPORTS > $output_objdir/$soname.def;
11124	cat $export_symbols >> $output_objdir/$soname.def;
11125      fi~
11126      $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'
11127    else
11128      ld_shlibs_CXX=no
11129    fi
11130  ;;
11131      darwin* | rhapsody*)
11132        case $host_os in
11133        rhapsody* | darwin1.[012])
11134         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11135         ;;
11136       *) # Darwin 1.3 on
11137         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11138           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11139         else
11140           case ${MACOSX_DEPLOYMENT_TARGET} in
11141             10.[012])
11142               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11143               ;;
11144             10.*)
11145               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11146               ;;
11147           esac
11148         fi
11149         ;;
11150        esac
11151      archive_cmds_need_lc_CXX=no
11152      hardcode_direct_CXX=no
11153      hardcode_automatic_CXX=yes
11154      hardcode_shlibpath_var_CXX=unsupported
11155      whole_archive_flag_spec_CXX=''
11156      link_all_deplibs_CXX=yes
11157
11158    if test "$GXX" = yes ; then
11159      lt_int_apple_cc_single_mod=no
11160      output_verbose_link_cmd='echo'
11161      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11162       lt_int_apple_cc_single_mod=yes
11163      fi
11164      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11165       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11166      else
11167          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'
11168        fi
11169        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11170        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11171          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11172            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}'
11173          else
11174            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}'
11175          fi
11176            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}'
11177      else
11178      case $cc_basename in
11179        xlc*)
11180         output_verbose_link_cmd='echo'
11181          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'
11182          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11183          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11184          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}'
11185          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}'
11186          ;;
11187       *)
11188         ld_shlibs_CXX=no
11189          ;;
11190      esac
11191      fi
11192        ;;
11193
11194  dgux*)
11195    case $cc_basename in
11196      ec++*)
11197	# FIXME: insert proper C++ library support
11198	ld_shlibs_CXX=no
11199	;;
11200      ghcx*)
11201	# Green Hills C++ Compiler
11202	# FIXME: insert proper C++ library support
11203	ld_shlibs_CXX=no
11204	;;
11205      *)
11206	# FIXME: insert proper C++ library support
11207	ld_shlibs_CXX=no
11208	;;
11209    esac
11210    ;;
11211  freebsd[12]*)
11212    # C++ shared libraries reported to be fairly broken before switch to ELF
11213    ld_shlibs_CXX=no
11214    ;;
11215  freebsd-elf*)
11216    archive_cmds_need_lc_CXX=no
11217    ;;
11218  freebsd* | kfreebsd*-gnu | dragonfly*)
11219    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11220    # conventions
11221    ld_shlibs_CXX=yes
11222    ;;
11223  gnu*)
11224    ;;
11225  hpux9*)
11226    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11227    hardcode_libdir_separator_CXX=:
11228    export_dynamic_flag_spec_CXX='${wl}-E'
11229    hardcode_direct_CXX=yes
11230    hardcode_minus_L_CXX=yes # Not in the search PATH,
11231				# but as the default
11232				# location of the library.
11233
11234    case $cc_basename in
11235    CC*)
11236      # FIXME: insert proper C++ library support
11237      ld_shlibs_CXX=no
11238      ;;
11239    aCC*)
11240      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'
11241      # Commands to make compiler produce verbose output that lists
11242      # what "hidden" libraries, object files and flags are used when
11243      # linking a shared library.
11244      #
11245      # There doesn't appear to be a way to prevent this compiler from
11246      # explicitly linking system object files so we need to strip them
11247      # from the output so that they don't get included in the library
11248      # dependencies.
11249      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'
11250      ;;
11251    *)
11252      if test "$GXX" = yes; then
11253        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'
11254      else
11255        # FIXME: insert proper C++ library support
11256        ld_shlibs_CXX=no
11257      fi
11258      ;;
11259    esac
11260    ;;
11261  hpux10*|hpux11*)
11262    if test $with_gnu_ld = no; then
11263      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11264      hardcode_libdir_separator_CXX=:
11265
11266      case $host_cpu in
11267      hppa*64*|ia64*)
11268	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11269        ;;
11270      *)
11271	export_dynamic_flag_spec_CXX='${wl}-E'
11272        ;;
11273      esac
11274    fi
11275    case $host_cpu in
11276    hppa*64*|ia64*)
11277      hardcode_direct_CXX=no
11278      hardcode_shlibpath_var_CXX=no
11279      ;;
11280    *)
11281      hardcode_direct_CXX=yes
11282      hardcode_minus_L_CXX=yes # Not in the search PATH,
11283					      # but as the default
11284					      # location of the library.
11285      ;;
11286    esac
11287
11288    case $cc_basename in
11289      CC*)
11290	# FIXME: insert proper C++ library support
11291	ld_shlibs_CXX=no
11292	;;
11293      aCC*)
11294	case $host_cpu in
11295	hppa*64*)
11296	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11297	  ;;
11298	ia64*)
11299	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11300	  ;;
11301	*)
11302	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11303	  ;;
11304	esac
11305	# Commands to make compiler produce verbose output that lists
11306	# what "hidden" libraries, object files and flags are used when
11307	# linking a shared library.
11308	#
11309	# There doesn't appear to be a way to prevent this compiler from
11310	# explicitly linking system object files so we need to strip them
11311	# from the output so that they don't get included in the library
11312	# dependencies.
11313	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'
11314	;;
11315      *)
11316	if test "$GXX" = yes; then
11317	  if test $with_gnu_ld = no; then
11318	    case $host_cpu in
11319	    hppa*64*)
11320	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11321	      ;;
11322	    ia64*)
11323	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11324	      ;;
11325	    *)
11326	      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'
11327	      ;;
11328	    esac
11329	  fi
11330	else
11331	  # FIXME: insert proper C++ library support
11332	  ld_shlibs_CXX=no
11333	fi
11334	;;
11335    esac
11336    ;;
11337  interix3*)
11338    hardcode_direct_CXX=no
11339    hardcode_shlibpath_var_CXX=no
11340    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11341    export_dynamic_flag_spec_CXX='${wl}-E'
11342    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11343    # Instead, shared libraries are loaded at an image base (0x10000000 by
11344    # default) and relocated if they conflict, which is a slow very memory
11345    # consuming and fragmenting process.  To avoid this, we pick a random,
11346    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11347    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11348    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'
11349    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'
11350    ;;
11351  irix5* | irix6*)
11352    case $cc_basename in
11353      CC*)
11354	# SGI C++
11355	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'
11356
11357	# Archives containing C++ object files must be created using
11358	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11359	# necessary to make sure instantiated templates are included
11360	# in the archive.
11361	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11362	;;
11363      *)
11364	if test "$GXX" = yes; then
11365	  if test "$with_gnu_ld" = no; then
11366	    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'
11367	  else
11368	    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'
11369	  fi
11370	fi
11371	link_all_deplibs_CXX=yes
11372	;;
11373    esac
11374    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11375    hardcode_libdir_separator_CXX=:
11376    ;;
11377  linux*)
11378    case $cc_basename in
11379      KCC*)
11380	# Kuck and Associates, Inc. (KAI) C++ Compiler
11381
11382	# KCC will only create a shared library if the output file
11383	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11384	# to its proper name (with version) after linking.
11385	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'
11386	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'
11387	# Commands to make compiler produce verbose output that lists
11388	# what "hidden" libraries, object files and flags are used when
11389	# linking a shared library.
11390	#
11391	# There doesn't appear to be a way to prevent this compiler from
11392	# explicitly linking system object files so we need to strip them
11393	# from the output so that they don't get included in the library
11394	# dependencies.
11395	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'
11396
11397	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11398	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11399
11400	# Archives containing C++ object files must be created using
11401	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11402	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11403	;;
11404      icpc*)
11405	# Intel C++
11406	with_gnu_ld=yes
11407	# version 8.0 and above of icpc choke on multiply defined symbols
11408	# if we add $predep_objects and $postdep_objects, however 7.1 and
11409	# earlier do not add the objects themselves.
11410	case `$CC -V 2>&1` in
11411	*"Version 7."*)
11412  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11413  	  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'
11414	  ;;
11415	*)  # Version 8.0 or newer
11416	  tmp_idyn=
11417	  case $host_cpu in
11418	    ia64*) tmp_idyn=' -i_dynamic';;
11419	  esac
11420  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11421	  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'
11422	  ;;
11423	esac
11424	archive_cmds_need_lc_CXX=no
11425	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11426	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11427	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11428	;;
11429      pgCC*)
11430        # Portland Group C++ compiler
11431	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11432  	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'
11433
11434	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11435	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11436	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'
11437        ;;
11438      cxx*)
11439	# Compaq C++
11440	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11441	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'
11442
11443	runpath_var=LD_RUN_PATH
11444	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11445	hardcode_libdir_separator_CXX=:
11446
11447	# Commands to make compiler produce verbose output that lists
11448	# what "hidden" libraries, object files and flags are used when
11449	# linking a shared library.
11450	#
11451	# There doesn't appear to be a way to prevent this compiler from
11452	# explicitly linking system object files so we need to strip them
11453	# from the output so that they don't get included in the library
11454	# dependencies.
11455	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'
11456	;;
11457    esac
11458    ;;
11459  lynxos*)
11460    # FIXME: insert proper C++ library support
11461    ld_shlibs_CXX=no
11462    ;;
11463  m88k*)
11464    # FIXME: insert proper C++ library support
11465    ld_shlibs_CXX=no
11466    ;;
11467  mvs*)
11468    case $cc_basename in
11469      cxx*)
11470	# FIXME: insert proper C++ library support
11471	ld_shlibs_CXX=no
11472	;;
11473      *)
11474	# FIXME: insert proper C++ library support
11475	ld_shlibs_CXX=no
11476	;;
11477    esac
11478    ;;
11479  netbsd*)
11480    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11481      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11482      wlarc=
11483      hardcode_libdir_flag_spec_CXX='-R$libdir'
11484      hardcode_direct_CXX=yes
11485      hardcode_shlibpath_var_CXX=no
11486    fi
11487    # Workaround some broken pre-1.5 toolchains
11488    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11489    ;;
11490  openbsd2*)
11491    # C++ shared libraries are fairly broken
11492    ld_shlibs_CXX=no
11493    ;;
11494  openbsd*)
11495    hardcode_direct_CXX=yes
11496    hardcode_shlibpath_var_CXX=no
11497    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11498    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11499    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11500      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11501      export_dynamic_flag_spec_CXX='${wl}-E'
11502      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11503    fi
11504    output_verbose_link_cmd='echo'
11505    ;;
11506  osf3*)
11507    case $cc_basename in
11508      KCC*)
11509	# Kuck and Associates, Inc. (KAI) C++ Compiler
11510
11511	# KCC will only create a shared library if the output file
11512	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11513	# to its proper name (with version) after linking.
11514	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'
11515
11516	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11517	hardcode_libdir_separator_CXX=:
11518
11519	# Archives containing C++ object files must be created using
11520	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11521	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11522
11523	;;
11524      RCC*)
11525	# Rational C++ 2.4.1
11526	# FIXME: insert proper C++ library support
11527	ld_shlibs_CXX=no
11528	;;
11529      cxx*)
11530	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11531	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'
11532
11533	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11534	hardcode_libdir_separator_CXX=:
11535
11536	# Commands to make compiler produce verbose output that lists
11537	# what "hidden" libraries, object files and flags are used when
11538	# linking a shared library.
11539	#
11540	# There doesn't appear to be a way to prevent this compiler from
11541	# explicitly linking system object files so we need to strip them
11542	# from the output so that they don't get included in the library
11543	# dependencies.
11544	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'
11545	;;
11546      *)
11547	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11548	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11549	  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'
11550
11551	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11552	  hardcode_libdir_separator_CXX=:
11553
11554	  # Commands to make compiler produce verbose output that lists
11555	  # what "hidden" libraries, object files and flags are used when
11556	  # linking a shared library.
11557	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11558
11559	else
11560	  # FIXME: insert proper C++ library support
11561	  ld_shlibs_CXX=no
11562	fi
11563	;;
11564    esac
11565    ;;
11566  osf4* | osf5*)
11567    case $cc_basename in
11568      KCC*)
11569	# Kuck and Associates, Inc. (KAI) C++ Compiler
11570
11571	# KCC will only create a shared library if the output file
11572	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11573	# to its proper name (with version) after linking.
11574	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'
11575
11576	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11577	hardcode_libdir_separator_CXX=:
11578
11579	# Archives containing C++ object files must be created using
11580	# the KAI C++ compiler.
11581	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11582	;;
11583      RCC*)
11584	# Rational C++ 2.4.1
11585	# FIXME: insert proper C++ library support
11586	ld_shlibs_CXX=no
11587	;;
11588      cxx*)
11589	allow_undefined_flag_CXX=' -expect_unresolved \*'
11590	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'
11591	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11592	  echo "-hidden">> $lib.exp~
11593	  $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~
11594	  $rm $lib.exp'
11595
11596	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11597	hardcode_libdir_separator_CXX=:
11598
11599	# Commands to make compiler produce verbose output that lists
11600	# what "hidden" libraries, object files and flags are used when
11601	# linking a shared library.
11602	#
11603	# There doesn't appear to be a way to prevent this compiler from
11604	# explicitly linking system object files so we need to strip them
11605	# from the output so that they don't get included in the library
11606	# dependencies.
11607	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'
11608	;;
11609      *)
11610	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11611	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11612	 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'
11613
11614	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11615	  hardcode_libdir_separator_CXX=:
11616
11617	  # Commands to make compiler produce verbose output that lists
11618	  # what "hidden" libraries, object files and flags are used when
11619	  # linking a shared library.
11620	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11621
11622	else
11623	  # FIXME: insert proper C++ library support
11624	  ld_shlibs_CXX=no
11625	fi
11626	;;
11627    esac
11628    ;;
11629  psos*)
11630    # FIXME: insert proper C++ library support
11631    ld_shlibs_CXX=no
11632    ;;
11633  sunos4*)
11634    case $cc_basename in
11635      CC*)
11636	# Sun C++ 4.x
11637	# FIXME: insert proper C++ library support
11638	ld_shlibs_CXX=no
11639	;;
11640      lcc*)
11641	# Lucid
11642	# FIXME: insert proper C++ library support
11643	ld_shlibs_CXX=no
11644	;;
11645      *)
11646	# FIXME: insert proper C++ library support
11647	ld_shlibs_CXX=no
11648	;;
11649    esac
11650    ;;
11651  solaris*)
11652    case $cc_basename in
11653      CC*)
11654	# Sun C++ 4.2, 5.x and Centerline C++
11655        archive_cmds_need_lc_CXX=yes
11656	no_undefined_flag_CXX=' -zdefs'
11657	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11658	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11659	$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'
11660
11661	hardcode_libdir_flag_spec_CXX='-R$libdir'
11662	hardcode_shlibpath_var_CXX=no
11663	case $host_os in
11664	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11665	  *)
11666	    # The C++ compiler is used as linker so we must use $wl
11667	    # flag to pass the commands to the underlying system
11668	    # linker. We must also pass each convience library through
11669	    # to the system linker between allextract/defaultextract.
11670	    # The C++ compiler will combine linker options so we
11671	    # cannot just pass the convience library names through
11672	    # without $wl.
11673	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11674	    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'
11675	    ;;
11676	esac
11677	link_all_deplibs_CXX=yes
11678
11679	output_verbose_link_cmd='echo'
11680
11681	# Archives containing C++ object files must be created using
11682	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11683	# necessary to make sure instantiated templates are included
11684	# in the archive.
11685	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11686	;;
11687      gcx*)
11688	# Green Hills C++ Compiler
11689	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11690
11691	# The C++ compiler must be used to create the archive.
11692	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11693	;;
11694      *)
11695	# GNU C++ compiler with Solaris linker
11696	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11697	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11698	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11699	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11700	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11701		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11702
11703	    # Commands to make compiler produce verbose output that lists
11704	    # what "hidden" libraries, object files and flags are used when
11705	    # linking a shared library.
11706	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11707	  else
11708	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11709	    # platform.
11710	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11711	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11712		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11713
11714	    # Commands to make compiler produce verbose output that lists
11715	    # what "hidden" libraries, object files and flags are used when
11716	    # linking a shared library.
11717	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11718	  fi
11719
11720	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11721	fi
11722	;;
11723    esac
11724    ;;
11725  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11726    no_undefined_flag_CXX='${wl}-z,text'
11727    archive_cmds_need_lc_CXX=no
11728    hardcode_shlibpath_var_CXX=no
11729    runpath_var='LD_RUN_PATH'
11730
11731    case $cc_basename in
11732      CC*)
11733	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11734	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11735	;;
11736      *)
11737	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11738	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11739	;;
11740    esac
11741    ;;
11742  sysv5* | sco3.2v5* | sco5v6*)
11743    # Note: We can NOT use -z defs as we might desire, because we do not
11744    # link with -lc, and that would cause any symbols used from libc to
11745    # always be unresolved, which means just about no library would
11746    # ever link correctly.  If we're not using GNU ld we use -z text
11747    # though, which does catch some bad symbols but isn't as heavy-handed
11748    # as -z defs.
11749    # For security reasons, it is highly recommended that you always
11750    # use absolute paths for naming shared libraries, and exclude the
11751    # DT_RUNPATH tag from executables and libraries.  But doing so
11752    # requires that you compile everything twice, which is a pain.
11753    # So that behaviour is only enabled if SCOABSPATH is set to a
11754    # non-empty value in the environment.  Most likely only useful for
11755    # creating official distributions of packages.
11756    # This is a hack until libtool officially supports absolute path
11757    # names for shared libraries.
11758    no_undefined_flag_CXX='${wl}-z,text'
11759    allow_undefined_flag_CXX='${wl}-z,nodefs'
11760    archive_cmds_need_lc_CXX=no
11761    hardcode_shlibpath_var_CXX=no
11762    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11763    hardcode_libdir_separator_CXX=':'
11764    link_all_deplibs_CXX=yes
11765    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11766    runpath_var='LD_RUN_PATH'
11767
11768    case $cc_basename in
11769      CC*)
11770	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11771	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11772	;;
11773      *)
11774	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11775	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11776	;;
11777    esac
11778    ;;
11779  tandem*)
11780    case $cc_basename in
11781      NCC*)
11782	# NonStop-UX NCC 3.20
11783	# FIXME: insert proper C++ library support
11784	ld_shlibs_CXX=no
11785	;;
11786      *)
11787	# FIXME: insert proper C++ library support
11788	ld_shlibs_CXX=no
11789	;;
11790    esac
11791    ;;
11792  vxworks*)
11793    # FIXME: insert proper C++ library support
11794    ld_shlibs_CXX=no
11795    ;;
11796  *)
11797    # FIXME: insert proper C++ library support
11798    ld_shlibs_CXX=no
11799    ;;
11800esac
11801{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11802echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11803test "$ld_shlibs_CXX" = no && can_build_shared=no
11804
11805GCC_CXX="$GXX"
11806LD_CXX="$LD"
11807
11808
11809cat > conftest.$ac_ext <<EOF
11810class Foo
11811{
11812public:
11813  Foo (void) { a = 0; }
11814private:
11815  int a;
11816};
11817EOF
11818
11819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11820  (eval $ac_compile) 2>&5
11821  ac_status=$?
11822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823  (exit $ac_status); }; then
11824  # Parse the compiler output and extract the necessary
11825  # objects, libraries and library flags.
11826
11827  # Sentinel used to keep track of whether or not we are before
11828  # the conftest object file.
11829  pre_test_object_deps_done=no
11830
11831  # The `*' in the case matches for architectures that use `case' in
11832  # $output_verbose_cmd can trigger glob expansion during the loop
11833  # eval without this substitution.
11834  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11835
11836  for p in `eval $output_verbose_link_cmd`; do
11837    case $p in
11838
11839    -L* | -R* | -l*)
11840       # Some compilers place space between "-{L,R}" and the path.
11841       # Remove the space.
11842       if test $p = "-L" \
11843	  || test $p = "-R"; then
11844	 prev=$p
11845	 continue
11846       else
11847	 prev=
11848       fi
11849
11850       if test "$pre_test_object_deps_done" = no; then
11851	 case $p in
11852	 -L* | -R*)
11853	   # Internal compiler library paths should come after those
11854	   # provided the user.  The postdeps already come after the
11855	   # user supplied libs so there is no need to process them.
11856	   if test -z "$compiler_lib_search_path_CXX"; then
11857	     compiler_lib_search_path_CXX="${prev}${p}"
11858	   else
11859	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11860	   fi
11861	   ;;
11862	 # The "-l" case would never come before the object being
11863	 # linked, so don't bother handling this case.
11864	 esac
11865       else
11866	 if test -z "$postdeps_CXX"; then
11867	   postdeps_CXX="${prev}${p}"
11868	 else
11869	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11870	 fi
11871       fi
11872       ;;
11873
11874    *.$objext)
11875       # This assumes that the test object file only shows up
11876       # once in the compiler output.
11877       if test "$p" = "conftest.$objext"; then
11878	 pre_test_object_deps_done=yes
11879	 continue
11880       fi
11881
11882       if test "$pre_test_object_deps_done" = no; then
11883	 if test -z "$predep_objects_CXX"; then
11884	   predep_objects_CXX="$p"
11885	 else
11886	   predep_objects_CXX="$predep_objects_CXX $p"
11887	 fi
11888       else
11889	 if test -z "$postdep_objects_CXX"; then
11890	   postdep_objects_CXX="$p"
11891	 else
11892	   postdep_objects_CXX="$postdep_objects_CXX $p"
11893	 fi
11894       fi
11895       ;;
11896
11897    *) ;; # Ignore the rest.
11898
11899    esac
11900  done
11901
11902  # Clean up.
11903  rm -f a.out a.exe
11904else
11905  echo "libtool.m4: error: problem compiling CXX test program"
11906fi
11907
11908$rm -f confest.$objext
11909
11910# PORTME: override above test on systems where it is broken
11911case $host_os in
11912interix3*)
11913  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11914  # hack all around it, let's just trust "g++" to DTRT.
11915  predep_objects_CXX=
11916  postdep_objects_CXX=
11917  postdeps_CXX=
11918  ;;
11919
11920solaris*)
11921  case $cc_basename in
11922  CC*)
11923    # Adding this requires a known-good setup of shared libraries for
11924    # Sun compiler versions before 5.6, else PIC objects from an old
11925    # archive will be linked into the output, leading to subtle bugs.
11926    postdeps_CXX='-lCstd -lCrun'
11927    ;;
11928  esac
11929  ;;
11930esac
11931
11932
11933case " $postdeps_CXX " in
11934*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11935esac
11936
11937lt_prog_compiler_wl_CXX=
11938lt_prog_compiler_pic_CXX=
11939lt_prog_compiler_static_CXX=
11940
11941{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11942echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11943
11944  # C++ specific cases for pic, static, wl, etc.
11945  if test "$GXX" = yes; then
11946    lt_prog_compiler_wl_CXX='-Wl,'
11947    lt_prog_compiler_static_CXX='-static'
11948
11949    case $host_os in
11950    aix*)
11951      # All AIX code is PIC.
11952      if test "$host_cpu" = ia64; then
11953	# AIX 5 now supports IA64 processor
11954	lt_prog_compiler_static_CXX='-Bstatic'
11955      fi
11956      ;;
11957    amigaos*)
11958      # FIXME: we need at least 68020 code to build shared libraries, but
11959      # adding the `-m68020' flag to GCC prevents building anything better,
11960      # like `-m68040'.
11961      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11962      ;;
11963    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11964      # PIC is the default for these OSes.
11965      ;;
11966    mingw* | os2* | pw32*)
11967      # This hack is so that the source file can tell whether it is being
11968      # built for inclusion in a dll (and should export symbols for example).
11969      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11970      ;;
11971    darwin* | rhapsody*)
11972      # PIC is the default on this platform
11973      # Common symbols not allowed in MH_DYLIB files
11974      lt_prog_compiler_pic_CXX='-fno-common'
11975      ;;
11976    *djgpp*)
11977      # DJGPP does not support shared libraries at all
11978      lt_prog_compiler_pic_CXX=
11979      ;;
11980    interix3*)
11981      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11982      # Instead, we relocate shared libraries at runtime.
11983      ;;
11984    sysv4*MP*)
11985      if test -d /usr/nec; then
11986	lt_prog_compiler_pic_CXX=-Kconform_pic
11987      fi
11988      ;;
11989    hpux*)
11990      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11991      # not for PA HP-UX.
11992      case $host_cpu in
11993      hppa*64*|ia64*)
11994	;;
11995      *)
11996	lt_prog_compiler_pic_CXX='-fPIC'
11997	;;
11998      esac
11999      ;;
12000    *)
12001      lt_prog_compiler_pic_CXX='-fPIC'
12002      ;;
12003    esac
12004  else
12005    case $host_os in
12006      aix4* | aix5*)
12007	# All AIX code is PIC.
12008	if test "$host_cpu" = ia64; then
12009	  # AIX 5 now supports IA64 processor
12010	  lt_prog_compiler_static_CXX='-Bstatic'
12011	else
12012	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12013	fi
12014	;;
12015      chorus*)
12016	case $cc_basename in
12017	cxch68*)
12018	  # Green Hills C++ Compiler
12019	  # _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"
12020	  ;;
12021	esac
12022	;;
12023       darwin*)
12024         # PIC is the default on this platform
12025         # Common symbols not allowed in MH_DYLIB files
12026         case $cc_basename in
12027           xlc*)
12028           lt_prog_compiler_pic_CXX='-qnocommon'
12029           lt_prog_compiler_wl_CXX='-Wl,'
12030           ;;
12031         esac
12032       ;;
12033      dgux*)
12034	case $cc_basename in
12035	  ec++*)
12036	    lt_prog_compiler_pic_CXX='-KPIC'
12037	    ;;
12038	  ghcx*)
12039	    # Green Hills C++ Compiler
12040	    lt_prog_compiler_pic_CXX='-pic'
12041	    ;;
12042	  *)
12043	    ;;
12044	esac
12045	;;
12046      freebsd* | kfreebsd*-gnu | dragonfly*)
12047	# FreeBSD uses GNU C++
12048	;;
12049      hpux9* | hpux10* | hpux11*)
12050	case $cc_basename in
12051	  CC*)
12052	    lt_prog_compiler_wl_CXX='-Wl,'
12053	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12054	    if test "$host_cpu" != ia64; then
12055	      lt_prog_compiler_pic_CXX='+Z'
12056	    fi
12057	    ;;
12058	  aCC*)
12059	    lt_prog_compiler_wl_CXX='-Wl,'
12060	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12061	    case $host_cpu in
12062	    hppa*64*|ia64*)
12063	      # +Z the default
12064	      ;;
12065	    *)
12066	      lt_prog_compiler_pic_CXX='+Z'
12067	      ;;
12068	    esac
12069	    ;;
12070	  *)
12071	    ;;
12072	esac
12073	;;
12074      interix*)
12075	# This is c89, which is MS Visual C++ (no shared libs)
12076	# Anyone wants to do a port?
12077	;;
12078      irix5* | irix6* | nonstopux*)
12079	case $cc_basename in
12080	  CC*)
12081	    lt_prog_compiler_wl_CXX='-Wl,'
12082	    lt_prog_compiler_static_CXX='-non_shared'
12083	    # CC pic flag -KPIC is the default.
12084	    ;;
12085	  *)
12086	    ;;
12087	esac
12088	;;
12089      linux*)
12090	case $cc_basename in
12091	  KCC*)
12092	    # KAI C++ Compiler
12093	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12094	    lt_prog_compiler_pic_CXX='-fPIC'
12095	    ;;
12096	  icpc* | ecpc*)
12097	    # Intel C++
12098	    lt_prog_compiler_wl_CXX='-Wl,'
12099	    lt_prog_compiler_pic_CXX='-KPIC'
12100	    lt_prog_compiler_static_CXX='-static'
12101	    ;;
12102	  pgCC*)
12103	    # Portland Group C++ compiler.
12104	    lt_prog_compiler_wl_CXX='-Wl,'
12105	    lt_prog_compiler_pic_CXX='-fpic'
12106	    lt_prog_compiler_static_CXX='-Bstatic'
12107	    ;;
12108	  cxx*)
12109	    # Compaq C++
12110	    # Make sure the PIC flag is empty.  It appears that all Alpha
12111	    # Linux and Compaq Tru64 Unix objects are PIC.
12112	    lt_prog_compiler_pic_CXX=
12113	    lt_prog_compiler_static_CXX='-non_shared'
12114	    ;;
12115	  *)
12116	    ;;
12117	esac
12118	;;
12119      lynxos*)
12120	;;
12121      m88k*)
12122	;;
12123      mvs*)
12124	case $cc_basename in
12125	  cxx*)
12126	    lt_prog_compiler_pic_CXX='-W c,exportall'
12127	    ;;
12128	  *)
12129	    ;;
12130	esac
12131	;;
12132      netbsd*)
12133	;;
12134      osf3* | osf4* | osf5*)
12135	case $cc_basename in
12136	  KCC*)
12137	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12138	    ;;
12139	  RCC*)
12140	    # Rational C++ 2.4.1
12141	    lt_prog_compiler_pic_CXX='-pic'
12142	    ;;
12143	  cxx*)
12144	    # Digital/Compaq C++
12145	    lt_prog_compiler_wl_CXX='-Wl,'
12146	    # Make sure the PIC flag is empty.  It appears that all Alpha
12147	    # Linux and Compaq Tru64 Unix objects are PIC.
12148	    lt_prog_compiler_pic_CXX=
12149	    lt_prog_compiler_static_CXX='-non_shared'
12150	    ;;
12151	  *)
12152	    ;;
12153	esac
12154	;;
12155      psos*)
12156	;;
12157      solaris*)
12158	case $cc_basename in
12159	  CC*)
12160	    # Sun C++ 4.2, 5.x and Centerline C++
12161	    lt_prog_compiler_pic_CXX='-KPIC'
12162	    lt_prog_compiler_static_CXX='-Bstatic'
12163	    lt_prog_compiler_wl_CXX='-Qoption ld '
12164	    ;;
12165	  gcx*)
12166	    # Green Hills C++ Compiler
12167	    lt_prog_compiler_pic_CXX='-PIC'
12168	    ;;
12169	  *)
12170	    ;;
12171	esac
12172	;;
12173      sunos4*)
12174	case $cc_basename in
12175	  CC*)
12176	    # Sun C++ 4.x
12177	    lt_prog_compiler_pic_CXX='-pic'
12178	    lt_prog_compiler_static_CXX='-Bstatic'
12179	    ;;
12180	  lcc*)
12181	    # Lucid
12182	    lt_prog_compiler_pic_CXX='-pic'
12183	    ;;
12184	  *)
12185	    ;;
12186	esac
12187	;;
12188      tandem*)
12189	case $cc_basename in
12190	  NCC*)
12191	    # NonStop-UX NCC 3.20
12192	    lt_prog_compiler_pic_CXX='-KPIC'
12193	    ;;
12194	  *)
12195	    ;;
12196	esac
12197	;;
12198      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12199	case $cc_basename in
12200	  CC*)
12201	    lt_prog_compiler_wl_CXX='-Wl,'
12202	    lt_prog_compiler_pic_CXX='-KPIC'
12203	    lt_prog_compiler_static_CXX='-Bstatic'
12204	    ;;
12205	esac
12206	;;
12207      vxworks*)
12208	;;
12209      *)
12210	lt_prog_compiler_can_build_shared_CXX=no
12211	;;
12212    esac
12213  fi
12214
12215{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12216echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12217
12218#
12219# Check to make sure the PIC flag actually works.
12220#
12221if test -n "$lt_prog_compiler_pic_CXX"; then
12222
12223{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12224echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12225if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12226  echo $ECHO_N "(cached) $ECHO_C" >&6
12227else
12228  lt_prog_compiler_pic_works_CXX=no
12229  ac_outfile=conftest.$ac_objext
12230   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12231   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12232   # Insert the option either (1) after the last *FLAGS variable, or
12233   # (2) before a word containing "conftest.", or (3) at the end.
12234   # Note that $ac_compile itself does not contain backslashes and begins
12235   # with a dollar sign (not a hyphen), so the echo should work correctly.
12236   # The option is referenced via a variable to avoid confusing sed.
12237   lt_compile=`echo "$ac_compile" | $SED \
12238   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12239   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12240   -e 's:$: $lt_compiler_flag:'`
12241   (eval echo "\"\$as_me:12241: $lt_compile\"" >&5)
12242   (eval "$lt_compile" 2>conftest.err)
12243   ac_status=$?
12244   cat conftest.err >&5
12245   echo "$as_me:12245: \$? = $ac_status" >&5
12246   if (exit $ac_status) && test -s "$ac_outfile"; then
12247     # The compiler can only warn and ignore the option if not recognized
12248     # So say no if there are warnings other than the usual output.
12249     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12250     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12251     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12252       lt_prog_compiler_pic_works_CXX=yes
12253     fi
12254   fi
12255   $rm conftest*
12256
12257fi
12258{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12259echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12260
12261if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12262    case $lt_prog_compiler_pic_CXX in
12263     "" | " "*) ;;
12264     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12265     esac
12266else
12267    lt_prog_compiler_pic_CXX=
12268     lt_prog_compiler_can_build_shared_CXX=no
12269fi
12270
12271fi
12272case $host_os in
12273  # For platforms which do not support PIC, -DPIC is meaningless:
12274  *djgpp*)
12275    lt_prog_compiler_pic_CXX=
12276    ;;
12277  *)
12278    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12279    ;;
12280esac
12281
12282#
12283# Check to make sure the static flag actually works.
12284#
12285wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12286{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12287echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12288if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12289  echo $ECHO_N "(cached) $ECHO_C" >&6
12290else
12291  lt_prog_compiler_static_works_CXX=no
12292   save_LDFLAGS="$LDFLAGS"
12293   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12294   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12295   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12296     # The linker can only warn and ignore the option if not recognized
12297     # So say no if there are warnings
12298     if test -s conftest.err; then
12299       # Append any errors to the config.log.
12300       cat conftest.err 1>&5
12301       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12302       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12303       if diff conftest.exp conftest.er2 >/dev/null; then
12304         lt_prog_compiler_static_works_CXX=yes
12305       fi
12306     else
12307       lt_prog_compiler_static_works_CXX=yes
12308     fi
12309   fi
12310   $rm conftest*
12311   LDFLAGS="$save_LDFLAGS"
12312
12313fi
12314{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12315echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12316
12317if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12318    :
12319else
12320    lt_prog_compiler_static_CXX=
12321fi
12322
12323
12324{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12325echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12326if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12327  echo $ECHO_N "(cached) $ECHO_C" >&6
12328else
12329  lt_cv_prog_compiler_c_o_CXX=no
12330   $rm -r conftest 2>/dev/null
12331   mkdir conftest
12332   cd conftest
12333   mkdir out
12334   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12335
12336   lt_compiler_flag="-o out/conftest2.$ac_objext"
12337   # Insert the option either (1) after the last *FLAGS variable, or
12338   # (2) before a word containing "conftest.", or (3) at the end.
12339   # Note that $ac_compile itself does not contain backslashes and begins
12340   # with a dollar sign (not a hyphen), so the echo should work correctly.
12341   lt_compile=`echo "$ac_compile" | $SED \
12342   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12343   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12344   -e 's:$: $lt_compiler_flag:'`
12345   (eval echo "\"\$as_me:12345: $lt_compile\"" >&5)
12346   (eval "$lt_compile" 2>out/conftest.err)
12347   ac_status=$?
12348   cat out/conftest.err >&5
12349   echo "$as_me:12349: \$? = $ac_status" >&5
12350   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12351   then
12352     # The compiler can only warn and ignore the option if not recognized
12353     # So say no if there are warnings
12354     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12355     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12356     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12357       lt_cv_prog_compiler_c_o_CXX=yes
12358     fi
12359   fi
12360   chmod u+w . 2>&5
12361   $rm conftest*
12362   # SGI C++ compiler will create directory out/ii_files/ for
12363   # template instantiation
12364   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12365   $rm out/* && rmdir out
12366   cd ..
12367   rmdir conftest
12368   $rm conftest*
12369
12370fi
12371{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12372echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12373
12374
12375hard_links="nottested"
12376if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12377  # do not overwrite the value of need_locks provided by the user
12378  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12379echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12380  hard_links=yes
12381  $rm conftest*
12382  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12383  touch conftest.a
12384  ln conftest.a conftest.b 2>&5 || hard_links=no
12385  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12386  { echo "$as_me:$LINENO: result: $hard_links" >&5
12387echo "${ECHO_T}$hard_links" >&6; }
12388  if test "$hard_links" = no; then
12389    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12390echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12391    need_locks=warn
12392  fi
12393else
12394  need_locks=no
12395fi
12396
12397{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12398echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12399
12400  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12401  case $host_os in
12402  aix4* | aix5*)
12403    # If we're using GNU nm, then we don't want the "-C" option.
12404    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12405    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12406      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'
12407    else
12408      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'
12409    fi
12410    ;;
12411  pw32*)
12412    export_symbols_cmds_CXX="$ltdll_cmds"
12413  ;;
12414  cygwin* | mingw*)
12415    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'
12416  ;;
12417  *)
12418    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12419  ;;
12420  esac
12421
12422{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12423echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12424test "$ld_shlibs_CXX" = no && can_build_shared=no
12425
12426#
12427# Do we need to explicitly link libc?
12428#
12429case "x$archive_cmds_need_lc_CXX" in
12430x|xyes)
12431  # Assume -lc should be added
12432  archive_cmds_need_lc_CXX=yes
12433
12434  if test "$enable_shared" = yes && test "$GCC" = yes; then
12435    case $archive_cmds_CXX in
12436    *'~'*)
12437      # FIXME: we may have to deal with multi-command sequences.
12438      ;;
12439    '$CC '*)
12440      # Test whether the compiler implicitly links with -lc since on some
12441      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12442      # to ld, don't add -lc before -lgcc.
12443      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12444echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12445      $rm conftest*
12446      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12447
12448      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12449  (eval $ac_compile) 2>&5
12450  ac_status=$?
12451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452  (exit $ac_status); } 2>conftest.err; then
12453        soname=conftest
12454        lib=conftest
12455        libobjs=conftest.$ac_objext
12456        deplibs=
12457        wl=$lt_prog_compiler_wl_CXX
12458	pic_flag=$lt_prog_compiler_pic_CXX
12459        compiler_flags=-v
12460        linker_flags=-v
12461        verstring=
12462        output_objdir=.
12463        libname=conftest
12464        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12465        allow_undefined_flag_CXX=
12466        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12467  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12468  ac_status=$?
12469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470  (exit $ac_status); }
12471        then
12472	  archive_cmds_need_lc_CXX=no
12473        else
12474	  archive_cmds_need_lc_CXX=yes
12475        fi
12476        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12477      else
12478        cat conftest.err 1>&5
12479      fi
12480      $rm conftest*
12481      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12482echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12483      ;;
12484    esac
12485  fi
12486  ;;
12487esac
12488
12489{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12490echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12491library_names_spec=
12492libname_spec='lib$name'
12493soname_spec=
12494shrext_cmds=".so"
12495postinstall_cmds=
12496postuninstall_cmds=
12497finish_cmds=
12498finish_eval=
12499shlibpath_var=
12500shlibpath_overrides_runpath=unknown
12501version_type=none
12502dynamic_linker="$host_os ld.so"
12503sys_lib_dlsearch_path_spec="/lib /usr/lib"
12504if test "$GCC" = yes; then
12505  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12506  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12507    # if the path contains ";" then we assume it to be the separator
12508    # otherwise default to the standard path separator (i.e. ":") - it is
12509    # assumed that no part of a normal pathname contains ";" but that should
12510    # okay in the real world where ";" in dirpaths is itself problematic.
12511    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12512  else
12513    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12514  fi
12515else
12516  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12517fi
12518need_lib_prefix=unknown
12519hardcode_into_libs=no
12520
12521# when you set need_version to no, make sure it does not cause -set_version
12522# flags to be left without arguments
12523need_version=unknown
12524
12525case $host_os in
12526aix3*)
12527  version_type=linux
12528  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12529  shlibpath_var=LIBPATH
12530
12531  # AIX 3 has no versioning support, so we append a major version to the name.
12532  soname_spec='${libname}${release}${shared_ext}$major'
12533  ;;
12534
12535aix4* | aix5*)
12536  version_type=linux
12537  need_lib_prefix=no
12538  need_version=no
12539  hardcode_into_libs=yes
12540  if test "$host_cpu" = ia64; then
12541    # AIX 5 supports IA64
12542    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12543    shlibpath_var=LD_LIBRARY_PATH
12544  else
12545    # With GCC up to 2.95.x, collect2 would create an import file
12546    # for dependence libraries.  The import file would start with
12547    # the line `#! .'.  This would cause the generated library to
12548    # depend on `.', always an invalid library.  This was fixed in
12549    # development snapshots of GCC prior to 3.0.
12550    case $host_os in
12551      aix4 | aix4.[01] | aix4.[01].*)
12552      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12553	   echo ' yes '
12554	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12555	:
12556      else
12557	can_build_shared=no
12558      fi
12559      ;;
12560    esac
12561    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12562    # soname into executable. Probably we can add versioning support to
12563    # collect2, so additional links can be useful in future.
12564    if test "$aix_use_runtimelinking" = yes; then
12565      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12566      # instead of lib<name>.a to let people know that these are not
12567      # typical AIX shared libraries.
12568      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12569    else
12570      # We preserve .a as extension for shared libraries through AIX4.2
12571      # and later when we are not doing run time linking.
12572      library_names_spec='${libname}${release}.a $libname.a'
12573      soname_spec='${libname}${release}${shared_ext}$major'
12574    fi
12575    shlibpath_var=LIBPATH
12576  fi
12577  ;;
12578
12579amigaos*)
12580  library_names_spec='$libname.ixlibrary $libname.a'
12581  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12582  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'
12583  ;;
12584
12585beos*)
12586  library_names_spec='${libname}${shared_ext}'
12587  dynamic_linker="$host_os ld.so"
12588  shlibpath_var=LIBRARY_PATH
12589  ;;
12590
12591bsdi[45]*)
12592  version_type=linux
12593  need_version=no
12594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12595  soname_spec='${libname}${release}${shared_ext}$major'
12596  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12597  shlibpath_var=LD_LIBRARY_PATH
12598  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12599  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12600  # the default ld.so.conf also contains /usr/contrib/lib and
12601  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12602  # libtool to hard-code these into programs
12603  ;;
12604
12605cygwin* | mingw* | pw32*)
12606  version_type=windows
12607  shrext_cmds=".dll"
12608  need_version=no
12609  need_lib_prefix=no
12610
12611  case $GCC,$host_os in
12612  yes,cygwin* | yes,mingw* | yes,pw32*)
12613    library_names_spec='$libname.dll.a'
12614    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12615    postinstall_cmds='base_file=`basename \${file}`~
12616      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12617      dldir=$destdir/`dirname \$dlpath`~
12618      test -d \$dldir || mkdir -p \$dldir~
12619      $install_prog $dir/$dlname \$dldir/$dlname~
12620      chmod a+x \$dldir/$dlname'
12621    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12622      dlpath=$dir/\$dldll~
12623       $rm \$dlpath'
12624    shlibpath_overrides_runpath=yes
12625
12626    case $host_os in
12627    cygwin*)
12628      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12629      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12630      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12631      ;;
12632    mingw*)
12633      # MinGW DLLs use traditional 'lib' prefix
12634      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12635      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12636      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12637        # It is most probably a Windows format PATH printed by
12638        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12639        # path with ; separators, and with drive letters. We can handle the
12640        # drive letters (cygwin fileutils understands them), so leave them,
12641        # especially as we might pass files found there to a mingw objdump,
12642        # which wouldn't understand a cygwinified path. Ahh.
12643        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12644      else
12645        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12646      fi
12647      ;;
12648    pw32*)
12649      # pw32 DLLs use 'pw' prefix rather than 'lib'
12650      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12651      ;;
12652    esac
12653    ;;
12654
12655  *)
12656    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12657    ;;
12658  esac
12659  dynamic_linker='Win32 ld.exe'
12660  # FIXME: first we should search . and the directory the executable is in
12661  shlibpath_var=PATH
12662  ;;
12663
12664darwin* | rhapsody*)
12665  dynamic_linker="$host_os dyld"
12666  version_type=darwin
12667  need_lib_prefix=no
12668  need_version=no
12669  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12670  soname_spec='${libname}${release}${major}$shared_ext'
12671  shlibpath_overrides_runpath=yes
12672  shlibpath_var=DYLD_LIBRARY_PATH
12673  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12674  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12675  if test "$GCC" = yes; then
12676    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"`
12677  else
12678    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12679  fi
12680  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12681  ;;
12682
12683dgux*)
12684  version_type=linux
12685  need_lib_prefix=no
12686  need_version=no
12687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12688  soname_spec='${libname}${release}${shared_ext}$major'
12689  shlibpath_var=LD_LIBRARY_PATH
12690  ;;
12691
12692freebsd1*)
12693  dynamic_linker=no
12694  ;;
12695
12696kfreebsd*-gnu)
12697  version_type=linux
12698  need_lib_prefix=no
12699  need_version=no
12700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12701  soname_spec='${libname}${release}${shared_ext}$major'
12702  shlibpath_var=LD_LIBRARY_PATH
12703  shlibpath_overrides_runpath=no
12704  hardcode_into_libs=yes
12705  dynamic_linker='GNU ld.so'
12706  ;;
12707
12708freebsd* | dragonfly*)
12709  # DragonFly does not have aout.  When/if they implement a new
12710  # versioning mechanism, adjust this.
12711  if test -x /usr/bin/objformat; then
12712    objformat=`/usr/bin/objformat`
12713  else
12714    case $host_os in
12715    freebsd[123]*) objformat=aout ;;
12716    *) objformat=elf ;;
12717    esac
12718  fi
12719  version_type=freebsd-$objformat
12720  case $version_type in
12721    freebsd-elf*)
12722      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12723      need_version=no
12724      need_lib_prefix=no
12725      ;;
12726    freebsd-*)
12727      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12728      need_version=yes
12729      ;;
12730  esac
12731  shlibpath_var=LD_LIBRARY_PATH
12732  case $host_os in
12733  freebsd2*)
12734    shlibpath_overrides_runpath=yes
12735    ;;
12736  freebsd3.[01]* | freebsdelf3.[01]*)
12737    shlibpath_overrides_runpath=yes
12738    hardcode_into_libs=yes
12739    ;;
12740  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12741  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12742    shlibpath_overrides_runpath=no
12743    hardcode_into_libs=yes
12744    ;;
12745  freebsd*) # from 4.6 on
12746    shlibpath_overrides_runpath=yes
12747    hardcode_into_libs=yes
12748    ;;
12749  esac
12750  ;;
12751
12752gnu*)
12753  version_type=linux
12754  need_lib_prefix=no
12755  need_version=no
12756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12757  soname_spec='${libname}${release}${shared_ext}$major'
12758  shlibpath_var=LD_LIBRARY_PATH
12759  hardcode_into_libs=yes
12760  ;;
12761
12762hpux9* | hpux10* | hpux11*)
12763  # Give a soname corresponding to the major version so that dld.sl refuses to
12764  # link against other versions.
12765  version_type=sunos
12766  need_lib_prefix=no
12767  need_version=no
12768  case $host_cpu in
12769  ia64*)
12770    shrext_cmds='.so'
12771    hardcode_into_libs=yes
12772    dynamic_linker="$host_os dld.so"
12773    shlibpath_var=LD_LIBRARY_PATH
12774    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12775    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12776    soname_spec='${libname}${release}${shared_ext}$major'
12777    if test "X$HPUX_IA64_MODE" = X32; then
12778      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12779    else
12780      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12781    fi
12782    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12783    ;;
12784   hppa*64*)
12785     shrext_cmds='.sl'
12786     hardcode_into_libs=yes
12787     dynamic_linker="$host_os dld.sl"
12788     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12789     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12790     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12791     soname_spec='${libname}${release}${shared_ext}$major'
12792     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12793     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12794     ;;
12795   *)
12796    shrext_cmds='.sl'
12797    dynamic_linker="$host_os dld.sl"
12798    shlibpath_var=SHLIB_PATH
12799    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12800    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12801    soname_spec='${libname}${release}${shared_ext}$major'
12802    ;;
12803  esac
12804  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12805  postinstall_cmds='chmod 555 $lib'
12806  ;;
12807
12808interix3*)
12809  version_type=linux
12810  need_lib_prefix=no
12811  need_version=no
12812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12813  soname_spec='${libname}${release}${shared_ext}$major'
12814  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12815  shlibpath_var=LD_LIBRARY_PATH
12816  shlibpath_overrides_runpath=no
12817  hardcode_into_libs=yes
12818  ;;
12819
12820irix5* | irix6* | nonstopux*)
12821  case $host_os in
12822    nonstopux*) version_type=nonstopux ;;
12823    *)
12824	if test "$lt_cv_prog_gnu_ld" = yes; then
12825		version_type=linux
12826	else
12827		version_type=irix
12828	fi ;;
12829  esac
12830  need_lib_prefix=no
12831  need_version=no
12832  soname_spec='${libname}${release}${shared_ext}$major'
12833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12834  case $host_os in
12835  irix5* | nonstopux*)
12836    libsuff= shlibsuff=
12837    ;;
12838  *)
12839    case $LD in # libtool.m4 will add one of these switches to LD
12840    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12841      libsuff= shlibsuff= libmagic=32-bit;;
12842    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12843      libsuff=32 shlibsuff=N32 libmagic=N32;;
12844    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12845      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12846    *) libsuff= shlibsuff= libmagic=never-match;;
12847    esac
12848    ;;
12849  esac
12850  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12851  shlibpath_overrides_runpath=no
12852  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12853  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12854  hardcode_into_libs=yes
12855  ;;
12856
12857# No shared lib support for Linux oldld, aout, or coff.
12858linux*oldld* | linux*aout* | linux*coff*)
12859  dynamic_linker=no
12860  ;;
12861
12862# This must be Linux ELF.
12863linux*)
12864  version_type=linux
12865  need_lib_prefix=no
12866  need_version=no
12867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12868  soname_spec='${libname}${release}${shared_ext}$major'
12869  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12870  shlibpath_var=LD_LIBRARY_PATH
12871  shlibpath_overrides_runpath=no
12872  # This implies no fast_install, which is unacceptable.
12873  # Some rework will be needed to allow for fast_install
12874  # before this can be enabled.
12875  hardcode_into_libs=yes
12876
12877  # Append ld.so.conf contents to the search path
12878  if test -f /etc/ld.so.conf; then
12879    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' ' '`
12880    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12881  fi
12882
12883  # We used to test for /lib/ld.so.1 and disable shared libraries on
12884  # powerpc, because MkLinux only supported shared libraries with the
12885  # GNU dynamic linker.  Since this was broken with cross compilers,
12886  # most powerpc-linux boxes support dynamic linking these days and
12887  # people can always --disable-shared, the test was removed, and we
12888  # assume the GNU/Linux dynamic linker is in use.
12889  dynamic_linker='GNU/Linux ld.so'
12890  ;;
12891
12892knetbsd*-gnu)
12893  version_type=linux
12894  need_lib_prefix=no
12895  need_version=no
12896  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12897  soname_spec='${libname}${release}${shared_ext}$major'
12898  shlibpath_var=LD_LIBRARY_PATH
12899  shlibpath_overrides_runpath=no
12900  hardcode_into_libs=yes
12901  dynamic_linker='GNU ld.so'
12902  ;;
12903
12904netbsd*)
12905  version_type=sunos
12906  need_lib_prefix=no
12907  need_version=no
12908  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12909    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12910    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12911    dynamic_linker='NetBSD (a.out) ld.so'
12912  else
12913    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12914    soname_spec='${libname}${release}${shared_ext}$major'
12915    dynamic_linker='NetBSD ld.elf_so'
12916  fi
12917  shlibpath_var=LD_LIBRARY_PATH
12918  shlibpath_overrides_runpath=yes
12919  hardcode_into_libs=yes
12920  ;;
12921
12922newsos6)
12923  version_type=linux
12924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12925  shlibpath_var=LD_LIBRARY_PATH
12926  shlibpath_overrides_runpath=yes
12927  ;;
12928
12929nto-qnx*)
12930  version_type=linux
12931  need_lib_prefix=no
12932  need_version=no
12933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12934  soname_spec='${libname}${release}${shared_ext}$major'
12935  shlibpath_var=LD_LIBRARY_PATH
12936  shlibpath_overrides_runpath=yes
12937  ;;
12938
12939openbsd*)
12940  version_type=sunos
12941  sys_lib_dlsearch_path_spec="/usr/lib"
12942  need_lib_prefix=no
12943  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12944  case $host_os in
12945    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12946    *)                         need_version=no  ;;
12947  esac
12948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12949  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12950  shlibpath_var=LD_LIBRARY_PATH
12951  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12952    case $host_os in
12953      openbsd2.[89] | openbsd2.[89].*)
12954	shlibpath_overrides_runpath=no
12955	;;
12956      *)
12957	shlibpath_overrides_runpath=yes
12958	;;
12959      esac
12960  else
12961    shlibpath_overrides_runpath=yes
12962  fi
12963  ;;
12964
12965os2*)
12966  libname_spec='$name'
12967  shrext_cmds=".dll"
12968  need_lib_prefix=no
12969  library_names_spec='$libname${shared_ext} $libname.a'
12970  dynamic_linker='OS/2 ld.exe'
12971  shlibpath_var=LIBPATH
12972  ;;
12973
12974osf3* | osf4* | osf5*)
12975  version_type=osf
12976  need_lib_prefix=no
12977  need_version=no
12978  soname_spec='${libname}${release}${shared_ext}$major'
12979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12980  shlibpath_var=LD_LIBRARY_PATH
12981  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12982  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12983  ;;
12984
12985solaris*)
12986  version_type=linux
12987  need_lib_prefix=no
12988  need_version=no
12989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12990  soname_spec='${libname}${release}${shared_ext}$major'
12991  shlibpath_var=LD_LIBRARY_PATH
12992  shlibpath_overrides_runpath=yes
12993  hardcode_into_libs=yes
12994  # ldd complains unless libraries are executable
12995  postinstall_cmds='chmod +x $lib'
12996  ;;
12997
12998sunos4*)
12999  version_type=sunos
13000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13001  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13002  shlibpath_var=LD_LIBRARY_PATH
13003  shlibpath_overrides_runpath=yes
13004  if test "$with_gnu_ld" = yes; then
13005    need_lib_prefix=no
13006  fi
13007  need_version=yes
13008  ;;
13009
13010sysv4 | sysv4.3*)
13011  version_type=linux
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  case $host_vendor in
13016    sni)
13017      shlibpath_overrides_runpath=no
13018      need_lib_prefix=no
13019      export_dynamic_flag_spec='${wl}-Blargedynsym'
13020      runpath_var=LD_RUN_PATH
13021      ;;
13022    siemens)
13023      need_lib_prefix=no
13024      ;;
13025    motorola)
13026      need_lib_prefix=no
13027      need_version=no
13028      shlibpath_overrides_runpath=no
13029      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13030      ;;
13031  esac
13032  ;;
13033
13034sysv4*MP*)
13035  if test -d /usr/nec ;then
13036    version_type=linux
13037    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13038    soname_spec='$libname${shared_ext}.$major'
13039    shlibpath_var=LD_LIBRARY_PATH
13040  fi
13041  ;;
13042
13043sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13044  version_type=freebsd-elf
13045  need_lib_prefix=no
13046  need_version=no
13047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13048  soname_spec='${libname}${release}${shared_ext}$major'
13049  shlibpath_var=LD_LIBRARY_PATH
13050  hardcode_into_libs=yes
13051  if test "$with_gnu_ld" = yes; then
13052    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13053    shlibpath_overrides_runpath=no
13054  else
13055    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13056    shlibpath_overrides_runpath=yes
13057    case $host_os in
13058      sco3.2v5*)
13059        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13060	;;
13061    esac
13062  fi
13063  sys_lib_dlsearch_path_spec='/usr/lib'
13064  ;;
13065
13066uts4*)
13067  version_type=linux
13068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13069  soname_spec='${libname}${release}${shared_ext}$major'
13070  shlibpath_var=LD_LIBRARY_PATH
13071  ;;
13072
13073*)
13074  dynamic_linker=no
13075  ;;
13076esac
13077{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13078echo "${ECHO_T}$dynamic_linker" >&6; }
13079test "$dynamic_linker" = no && can_build_shared=no
13080
13081variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13082if test "$GCC" = yes; then
13083  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13084fi
13085
13086{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13087echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13088hardcode_action_CXX=
13089if test -n "$hardcode_libdir_flag_spec_CXX" || \
13090   test -n "$runpath_var_CXX" || \
13091   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13092
13093  # We can hardcode non-existant directories.
13094  if test "$hardcode_direct_CXX" != no &&
13095     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13096     # have to relink, otherwise we might link with an installed library
13097     # when we should be linking with a yet-to-be-installed one
13098     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13099     test "$hardcode_minus_L_CXX" != no; then
13100    # Linking always hardcodes the temporary library directory.
13101    hardcode_action_CXX=relink
13102  else
13103    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13104    hardcode_action_CXX=immediate
13105  fi
13106else
13107  # We cannot hardcode anything, or else we can only hardcode existing
13108  # directories.
13109  hardcode_action_CXX=unsupported
13110fi
13111{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13112echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13113
13114if test "$hardcode_action_CXX" = relink; then
13115  # Fast installation is not supported
13116  enable_fast_install=no
13117elif test "$shlibpath_overrides_runpath" = yes ||
13118     test "$enable_shared" = no; then
13119  # Fast installation is not necessary
13120  enable_fast_install=needless
13121fi
13122
13123
13124# The else clause should only fire when bootstrapping the
13125# libtool distribution, otherwise you forgot to ship ltmain.sh
13126# with your package, and you will get complaints that there are
13127# no rules to generate ltmain.sh.
13128if test -f "$ltmain"; then
13129  # See if we are running on zsh, and set the options which allow our commands through
13130  # without removal of \ escapes.
13131  if test -n "${ZSH_VERSION+set}" ; then
13132    setopt NO_GLOB_SUBST
13133  fi
13134  # Now quote all the things that may contain metacharacters while being
13135  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13136  # variables and quote the copies for generation of the libtool script.
13137  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13138    SED SHELL STRIP \
13139    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13140    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13141    deplibs_check_method reload_flag reload_cmds need_locks \
13142    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13143    lt_cv_sys_global_symbol_to_c_name_address \
13144    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13145    old_postinstall_cmds old_postuninstall_cmds \
13146    compiler_CXX \
13147    CC_CXX \
13148    LD_CXX \
13149    lt_prog_compiler_wl_CXX \
13150    lt_prog_compiler_pic_CXX \
13151    lt_prog_compiler_static_CXX \
13152    lt_prog_compiler_no_builtin_flag_CXX \
13153    export_dynamic_flag_spec_CXX \
13154    thread_safe_flag_spec_CXX \
13155    whole_archive_flag_spec_CXX \
13156    enable_shared_with_static_runtimes_CXX \
13157    old_archive_cmds_CXX \
13158    old_archive_from_new_cmds_CXX \
13159    predep_objects_CXX \
13160    postdep_objects_CXX \
13161    predeps_CXX \
13162    postdeps_CXX \
13163    compiler_lib_search_path_CXX \
13164    archive_cmds_CXX \
13165    archive_expsym_cmds_CXX \
13166    postinstall_cmds_CXX \
13167    postuninstall_cmds_CXX \
13168    old_archive_from_expsyms_cmds_CXX \
13169    allow_undefined_flag_CXX \
13170    no_undefined_flag_CXX \
13171    export_symbols_cmds_CXX \
13172    hardcode_libdir_flag_spec_CXX \
13173    hardcode_libdir_flag_spec_ld_CXX \
13174    hardcode_libdir_separator_CXX \
13175    hardcode_automatic_CXX \
13176    module_cmds_CXX \
13177    module_expsym_cmds_CXX \
13178    lt_cv_prog_compiler_c_o_CXX \
13179    exclude_expsyms_CXX \
13180    include_expsyms_CXX; do
13181
13182    case $var in
13183    old_archive_cmds_CXX | \
13184    old_archive_from_new_cmds_CXX | \
13185    archive_cmds_CXX | \
13186    archive_expsym_cmds_CXX | \
13187    module_cmds_CXX | \
13188    module_expsym_cmds_CXX | \
13189    old_archive_from_expsyms_cmds_CXX | \
13190    export_symbols_cmds_CXX | \
13191    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13192    postinstall_cmds | postuninstall_cmds | \
13193    old_postinstall_cmds | old_postuninstall_cmds | \
13194    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13195      # Double-quote double-evaled strings.
13196      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13197      ;;
13198    *)
13199      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13200      ;;
13201    esac
13202  done
13203
13204  case $lt_echo in
13205  *'\$0 --fallback-echo"')
13206    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13207    ;;
13208  esac
13209
13210cfgfile="$ofile"
13211
13212  cat <<__EOF__ >> "$cfgfile"
13213# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13214
13215# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13216
13217# Shell to use when invoking shell scripts.
13218SHELL=$lt_SHELL
13219
13220# Whether or not to build shared libraries.
13221build_libtool_libs=$enable_shared
13222
13223# Whether or not to build static libraries.
13224build_old_libs=$enable_static
13225
13226# Whether or not to add -lc for building shared libraries.
13227build_libtool_need_lc=$archive_cmds_need_lc_CXX
13228
13229# Whether or not to disallow shared libs when runtime libs are static
13230allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13231
13232# Whether or not to optimize for fast installation.
13233fast_install=$enable_fast_install
13234
13235# The host system.
13236host_alias=$host_alias
13237host=$host
13238host_os=$host_os
13239
13240# The build system.
13241build_alias=$build_alias
13242build=$build
13243build_os=$build_os
13244
13245# An echo program that does not interpret backslashes.
13246echo=$lt_echo
13247
13248# The archiver.
13249AR=$lt_AR
13250AR_FLAGS=$lt_AR_FLAGS
13251
13252# A C compiler.
13253LTCC=$lt_LTCC
13254
13255# LTCC compiler flags.
13256LTCFLAGS=$lt_LTCFLAGS
13257
13258# A language-specific compiler.
13259CC=$lt_compiler_CXX
13260
13261# Is the compiler the GNU C compiler?
13262with_gcc=$GCC_CXX
13263
13264# An ERE matcher.
13265EGREP=$lt_EGREP
13266
13267# The linker used to build libraries.
13268LD=$lt_LD_CXX
13269
13270# Whether we need hard or soft links.
13271LN_S=$lt_LN_S
13272
13273# A BSD-compatible nm program.
13274NM=$lt_NM
13275
13276# A symbol stripping program
13277STRIP=$lt_STRIP
13278
13279# Used to examine libraries when file_magic_cmd begins "file"
13280MAGIC_CMD=$MAGIC_CMD
13281
13282# Used on cygwin: DLL creation program.
13283DLLTOOL="$DLLTOOL"
13284
13285# Used on cygwin: object dumper.
13286OBJDUMP="$OBJDUMP"
13287
13288# Used on cygwin: assembler.
13289AS="$AS"
13290
13291# The name of the directory that contains temporary libtool files.
13292objdir=$objdir
13293
13294# How to create reloadable object files.
13295reload_flag=$lt_reload_flag
13296reload_cmds=$lt_reload_cmds
13297
13298# How to pass a linker flag through the compiler.
13299wl=$lt_lt_prog_compiler_wl_CXX
13300
13301# Object file suffix (normally "o").
13302objext="$ac_objext"
13303
13304# Old archive suffix (normally "a").
13305libext="$libext"
13306
13307# Shared library suffix (normally ".so").
13308shrext_cmds='$shrext_cmds'
13309
13310# Executable file suffix (normally "").
13311exeext="$exeext"
13312
13313# Additional compiler flags for building library objects.
13314pic_flag=$lt_lt_prog_compiler_pic_CXX
13315pic_mode=$pic_mode
13316
13317# What is the maximum length of a command?
13318max_cmd_len=$lt_cv_sys_max_cmd_len
13319
13320# Does compiler simultaneously support -c and -o options?
13321compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13322
13323# Must we lock files when doing compilation?
13324need_locks=$lt_need_locks
13325
13326# Do we need the lib prefix for modules?
13327need_lib_prefix=$need_lib_prefix
13328
13329# Do we need a version for libraries?
13330need_version=$need_version
13331
13332# Whether dlopen is supported.
13333dlopen_support=$enable_dlopen
13334
13335# Whether dlopen of programs is supported.
13336dlopen_self=$enable_dlopen_self
13337
13338# Whether dlopen of statically linked programs is supported.
13339dlopen_self_static=$enable_dlopen_self_static
13340
13341# Compiler flag to prevent dynamic linking.
13342link_static_flag=$lt_lt_prog_compiler_static_CXX
13343
13344# Compiler flag to turn off builtin functions.
13345no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13346
13347# Compiler flag to allow reflexive dlopens.
13348export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13349
13350# Compiler flag to generate shared objects directly from archives.
13351whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13352
13353# Compiler flag to generate thread-safe objects.
13354thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13355
13356# Library versioning type.
13357version_type=$version_type
13358
13359# Format of library name prefix.
13360libname_spec=$lt_libname_spec
13361
13362# List of archive names.  First name is the real one, the rest are links.
13363# The last name is the one that the linker finds with -lNAME.
13364library_names_spec=$lt_library_names_spec
13365
13366# The coded name of the library, if different from the real name.
13367soname_spec=$lt_soname_spec
13368
13369# Commands used to build and install an old-style archive.
13370RANLIB=$lt_RANLIB
13371old_archive_cmds=$lt_old_archive_cmds_CXX
13372old_postinstall_cmds=$lt_old_postinstall_cmds
13373old_postuninstall_cmds=$lt_old_postuninstall_cmds
13374
13375# Create an old-style archive from a shared archive.
13376old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13377
13378# Create a temporary old-style archive to link instead of a shared archive.
13379old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13380
13381# Commands used to build and install a shared archive.
13382archive_cmds=$lt_archive_cmds_CXX
13383archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13384postinstall_cmds=$lt_postinstall_cmds
13385postuninstall_cmds=$lt_postuninstall_cmds
13386
13387# Commands used to build a loadable module (assumed same as above if empty)
13388module_cmds=$lt_module_cmds_CXX
13389module_expsym_cmds=$lt_module_expsym_cmds_CXX
13390
13391# Commands to strip libraries.
13392old_striplib=$lt_old_striplib
13393striplib=$lt_striplib
13394
13395# Dependencies to place before the objects being linked to create a
13396# shared library.
13397predep_objects=$lt_predep_objects_CXX
13398
13399# Dependencies to place after the objects being linked to create a
13400# shared library.
13401postdep_objects=$lt_postdep_objects_CXX
13402
13403# Dependencies to place before the objects being linked to create a
13404# shared library.
13405predeps=$lt_predeps_CXX
13406
13407# Dependencies to place after the objects being linked to create a
13408# shared library.
13409postdeps=$lt_postdeps_CXX
13410
13411# The library search path used internally by the compiler when linking
13412# a shared library.
13413compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13414
13415# Method to check whether dependent libraries are shared objects.
13416deplibs_check_method=$lt_deplibs_check_method
13417
13418# Command to use when deplibs_check_method == file_magic.
13419file_magic_cmd=$lt_file_magic_cmd
13420
13421# Flag that allows shared libraries with undefined symbols to be built.
13422allow_undefined_flag=$lt_allow_undefined_flag_CXX
13423
13424# Flag that forces no undefined symbols.
13425no_undefined_flag=$lt_no_undefined_flag_CXX
13426
13427# Commands used to finish a libtool library installation in a directory.
13428finish_cmds=$lt_finish_cmds
13429
13430# Same as above, but a single script fragment to be evaled but not shown.
13431finish_eval=$lt_finish_eval
13432
13433# Take the output of nm and produce a listing of raw symbols and C names.
13434global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13435
13436# Transform the output of nm in a proper C declaration
13437global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13438
13439# Transform the output of nm in a C name address pair
13440global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13441
13442# This is the shared library runtime path variable.
13443runpath_var=$runpath_var
13444
13445# This is the shared library path variable.
13446shlibpath_var=$shlibpath_var
13447
13448# Is shlibpath searched before the hard-coded library search path?
13449shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13450
13451# How to hardcode a shared library path into an executable.
13452hardcode_action=$hardcode_action_CXX
13453
13454# Whether we should hardcode library paths into libraries.
13455hardcode_into_libs=$hardcode_into_libs
13456
13457# Flag to hardcode \$libdir into a binary during linking.
13458# This must work even if \$libdir does not exist.
13459hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13460
13461# If ld is used when linking, flag to hardcode \$libdir into
13462# a binary during linking. This must work even if \$libdir does
13463# not exist.
13464hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13465
13466# Whether we need a single -rpath flag with a separated argument.
13467hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13468
13469# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13470# resulting binary.
13471hardcode_direct=$hardcode_direct_CXX
13472
13473# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13474# resulting binary.
13475hardcode_minus_L=$hardcode_minus_L_CXX
13476
13477# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13478# the resulting binary.
13479hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13480
13481# Set to yes if building a shared library automatically hardcodes DIR into the library
13482# and all subsequent libraries and executables linked against it.
13483hardcode_automatic=$hardcode_automatic_CXX
13484
13485# Variables whose values should be saved in libtool wrapper scripts and
13486# restored at relink time.
13487variables_saved_for_relink="$variables_saved_for_relink"
13488
13489# Whether libtool must link a program against all its dependency libraries.
13490link_all_deplibs=$link_all_deplibs_CXX
13491
13492# Compile-time system search path for libraries
13493sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13494
13495# Run-time system search path for libraries
13496sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13497
13498# Fix the shell variable \$srcfile for the compiler.
13499fix_srcfile_path="$fix_srcfile_path_CXX"
13500
13501# Set to yes if exported symbols are required.
13502always_export_symbols=$always_export_symbols_CXX
13503
13504# The commands to list exported symbols.
13505export_symbols_cmds=$lt_export_symbols_cmds_CXX
13506
13507# The commands to extract the exported symbol list from a shared archive.
13508extract_expsyms_cmds=$lt_extract_expsyms_cmds
13509
13510# Symbols that should not be listed in the preloaded symbols.
13511exclude_expsyms=$lt_exclude_expsyms_CXX
13512
13513# Symbols that must always be exported.
13514include_expsyms=$lt_include_expsyms_CXX
13515
13516# ### END LIBTOOL TAG CONFIG: $tagname
13517
13518__EOF__
13519
13520
13521else
13522  # If there is no Makefile yet, we rely on a make rule to execute
13523  # `config.status --recheck' to rerun these tests and create the
13524  # libtool script then.
13525  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13526  if test -f "$ltmain_in"; then
13527    test -f Makefile && make "$ltmain"
13528  fi
13529fi
13530
13531
13532ac_ext=c
13533ac_cpp='$CPP $CPPFLAGS'
13534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13536ac_compiler_gnu=$ac_cv_c_compiler_gnu
13537
13538CC=$lt_save_CC
13539LDCXX=$LD
13540LD=$lt_save_LD
13541GCC=$lt_save_GCC
13542with_gnu_ldcxx=$with_gnu_ld
13543with_gnu_ld=$lt_save_with_gnu_ld
13544lt_cv_path_LDCXX=$lt_cv_path_LD
13545lt_cv_path_LD=$lt_save_path_LD
13546lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13547lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13548
13549	else
13550	  tagname=""
13551	fi
13552	;;
13553
13554      F77)
13555	if test -n "$F77" && test "X$F77" != "Xno"; then
13556
13557ac_ext=f
13558ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13559ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13560ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13561
13562
13563archive_cmds_need_lc_F77=no
13564allow_undefined_flag_F77=
13565always_export_symbols_F77=no
13566archive_expsym_cmds_F77=
13567export_dynamic_flag_spec_F77=
13568hardcode_direct_F77=no
13569hardcode_libdir_flag_spec_F77=
13570hardcode_libdir_flag_spec_ld_F77=
13571hardcode_libdir_separator_F77=
13572hardcode_minus_L_F77=no
13573hardcode_automatic_F77=no
13574module_cmds_F77=
13575module_expsym_cmds_F77=
13576link_all_deplibs_F77=unknown
13577old_archive_cmds_F77=$old_archive_cmds
13578no_undefined_flag_F77=
13579whole_archive_flag_spec_F77=
13580enable_shared_with_static_runtimes_F77=no
13581
13582# Source file extension for f77 test sources.
13583ac_ext=f
13584
13585# Object file extension for compiled f77 test sources.
13586objext=o
13587objext_F77=$objext
13588
13589# Code to be used in simple compile tests
13590lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13591
13592# Code to be used in simple link tests
13593lt_simple_link_test_code="      program t\n      end\n"
13594
13595# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13596
13597# If no C compiler was specified, use CC.
13598LTCC=${LTCC-"$CC"}
13599
13600# If no C compiler flags were specified, use CFLAGS.
13601LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13602
13603# Allow CC to be a program name with arguments.
13604compiler=$CC
13605
13606
13607# save warnings/boilerplate of simple test code
13608ac_outfile=conftest.$ac_objext
13609printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13610eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13611_lt_compiler_boilerplate=`cat conftest.err`
13612$rm conftest*
13613
13614ac_outfile=conftest.$ac_objext
13615printf "$lt_simple_link_test_code" >conftest.$ac_ext
13616eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13617_lt_linker_boilerplate=`cat conftest.err`
13618$rm conftest*
13619
13620
13621# Allow CC to be a program name with arguments.
13622lt_save_CC="$CC"
13623CC=${F77-"f77"}
13624compiler=$CC
13625compiler_F77=$CC
13626for cc_temp in $compiler""; do
13627  case $cc_temp in
13628    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13629    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13630    \-*) ;;
13631    *) break;;
13632  esac
13633done
13634cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13635
13636
13637{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13638echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13639{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13640echo "${ECHO_T}$can_build_shared" >&6; }
13641
13642{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13643echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13644test "$can_build_shared" = "no" && enable_shared=no
13645
13646# On AIX, shared libraries and static libraries use the same namespace, and
13647# are all built from PIC.
13648case $host_os in
13649aix3*)
13650  test "$enable_shared" = yes && enable_static=no
13651  if test -n "$RANLIB"; then
13652    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13653    postinstall_cmds='$RANLIB $lib'
13654  fi
13655  ;;
13656aix4* | aix5*)
13657  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13658    test "$enable_shared" = yes && enable_static=no
13659  fi
13660  ;;
13661esac
13662{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13663echo "${ECHO_T}$enable_shared" >&6; }
13664
13665{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13666echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13667# Make sure either enable_shared or enable_static is yes.
13668test "$enable_shared" = yes || enable_static=yes
13669{ echo "$as_me:$LINENO: result: $enable_static" >&5
13670echo "${ECHO_T}$enable_static" >&6; }
13671
13672GCC_F77="$G77"
13673LD_F77="$LD"
13674
13675lt_prog_compiler_wl_F77=
13676lt_prog_compiler_pic_F77=
13677lt_prog_compiler_static_F77=
13678
13679{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13680echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13681
13682  if test "$GCC" = yes; then
13683    lt_prog_compiler_wl_F77='-Wl,'
13684    lt_prog_compiler_static_F77='-static'
13685
13686    case $host_os in
13687      aix*)
13688      # All AIX code is PIC.
13689      if test "$host_cpu" = ia64; then
13690	# AIX 5 now supports IA64 processor
13691	lt_prog_compiler_static_F77='-Bstatic'
13692      fi
13693      ;;
13694
13695    amigaos*)
13696      # FIXME: we need at least 68020 code to build shared libraries, but
13697      # adding the `-m68020' flag to GCC prevents building anything better,
13698      # like `-m68040'.
13699      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13700      ;;
13701
13702    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13703      # PIC is the default for these OSes.
13704      ;;
13705
13706    mingw* | pw32* | os2*)
13707      # This hack is so that the source file can tell whether it is being
13708      # built for inclusion in a dll (and should export symbols for example).
13709      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13710      ;;
13711
13712    darwin* | rhapsody*)
13713      # PIC is the default on this platform
13714      # Common symbols not allowed in MH_DYLIB files
13715      lt_prog_compiler_pic_F77='-fno-common'
13716      ;;
13717
13718    interix3*)
13719      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13720      # Instead, we relocate shared libraries at runtime.
13721      ;;
13722
13723    msdosdjgpp*)
13724      # Just because we use GCC doesn't mean we suddenly get shared libraries
13725      # on systems that don't support them.
13726      lt_prog_compiler_can_build_shared_F77=no
13727      enable_shared=no
13728      ;;
13729
13730    sysv4*MP*)
13731      if test -d /usr/nec; then
13732	lt_prog_compiler_pic_F77=-Kconform_pic
13733      fi
13734      ;;
13735
13736    hpux*)
13737      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13738      # not for PA HP-UX.
13739      case $host_cpu in
13740      hppa*64*|ia64*)
13741	# +Z the default
13742	;;
13743      *)
13744	lt_prog_compiler_pic_F77='-fPIC'
13745	;;
13746      esac
13747      ;;
13748
13749    *)
13750      lt_prog_compiler_pic_F77='-fPIC'
13751      ;;
13752    esac
13753  else
13754    # PORTME Check for flag to pass linker flags through the system compiler.
13755    case $host_os in
13756    aix*)
13757      lt_prog_compiler_wl_F77='-Wl,'
13758      if test "$host_cpu" = ia64; then
13759	# AIX 5 now supports IA64 processor
13760	lt_prog_compiler_static_F77='-Bstatic'
13761      else
13762	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13763      fi
13764      ;;
13765      darwin*)
13766        # PIC is the default on this platform
13767        # Common symbols not allowed in MH_DYLIB files
13768       case $cc_basename in
13769         xlc*)
13770         lt_prog_compiler_pic_F77='-qnocommon'
13771         lt_prog_compiler_wl_F77='-Wl,'
13772         ;;
13773       esac
13774       ;;
13775
13776    mingw* | pw32* | os2*)
13777      # This hack is so that the source file can tell whether it is being
13778      # built for inclusion in a dll (and should export symbols for example).
13779      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13780      ;;
13781
13782    hpux9* | hpux10* | hpux11*)
13783      lt_prog_compiler_wl_F77='-Wl,'
13784      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13785      # not for PA HP-UX.
13786      case $host_cpu in
13787      hppa*64*|ia64*)
13788	# +Z the default
13789	;;
13790      *)
13791	lt_prog_compiler_pic_F77='+Z'
13792	;;
13793      esac
13794      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13795      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13796      ;;
13797
13798    irix5* | irix6* | nonstopux*)
13799      lt_prog_compiler_wl_F77='-Wl,'
13800      # PIC (with -KPIC) is the default.
13801      lt_prog_compiler_static_F77='-non_shared'
13802      ;;
13803
13804    newsos6)
13805      lt_prog_compiler_pic_F77='-KPIC'
13806      lt_prog_compiler_static_F77='-Bstatic'
13807      ;;
13808
13809    linux*)
13810      case $cc_basename in
13811      icc* | ecc*)
13812	lt_prog_compiler_wl_F77='-Wl,'
13813	lt_prog_compiler_pic_F77='-KPIC'
13814	lt_prog_compiler_static_F77='-static'
13815        ;;
13816      pgcc* | pgf77* | pgf90* | pgf95*)
13817        # Portland Group compilers (*not* the Pentium gcc compiler,
13818	# which looks to be a dead project)
13819	lt_prog_compiler_wl_F77='-Wl,'
13820	lt_prog_compiler_pic_F77='-fpic'
13821	lt_prog_compiler_static_F77='-Bstatic'
13822        ;;
13823      ccc*)
13824        lt_prog_compiler_wl_F77='-Wl,'
13825        # All Alpha code is PIC.
13826        lt_prog_compiler_static_F77='-non_shared'
13827        ;;
13828      esac
13829      ;;
13830
13831    osf3* | osf4* | osf5*)
13832      lt_prog_compiler_wl_F77='-Wl,'
13833      # All OSF/1 code is PIC.
13834      lt_prog_compiler_static_F77='-non_shared'
13835      ;;
13836
13837    solaris*)
13838      lt_prog_compiler_pic_F77='-KPIC'
13839      lt_prog_compiler_static_F77='-Bstatic'
13840      case $cc_basename in
13841      f77* | f90* | f95*)
13842	lt_prog_compiler_wl_F77='-Qoption ld ';;
13843      *)
13844	lt_prog_compiler_wl_F77='-Wl,';;
13845      esac
13846      ;;
13847
13848    sunos4*)
13849      lt_prog_compiler_wl_F77='-Qoption ld '
13850      lt_prog_compiler_pic_F77='-PIC'
13851      lt_prog_compiler_static_F77='-Bstatic'
13852      ;;
13853
13854    sysv4 | sysv4.2uw2* | sysv4.3*)
13855      lt_prog_compiler_wl_F77='-Wl,'
13856      lt_prog_compiler_pic_F77='-KPIC'
13857      lt_prog_compiler_static_F77='-Bstatic'
13858      ;;
13859
13860    sysv4*MP*)
13861      if test -d /usr/nec ;then
13862	lt_prog_compiler_pic_F77='-Kconform_pic'
13863	lt_prog_compiler_static_F77='-Bstatic'
13864      fi
13865      ;;
13866
13867    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13868      lt_prog_compiler_wl_F77='-Wl,'
13869      lt_prog_compiler_pic_F77='-KPIC'
13870      lt_prog_compiler_static_F77='-Bstatic'
13871      ;;
13872
13873    unicos*)
13874      lt_prog_compiler_wl_F77='-Wl,'
13875      lt_prog_compiler_can_build_shared_F77=no
13876      ;;
13877
13878    uts4*)
13879      lt_prog_compiler_pic_F77='-pic'
13880      lt_prog_compiler_static_F77='-Bstatic'
13881      ;;
13882
13883    *)
13884      lt_prog_compiler_can_build_shared_F77=no
13885      ;;
13886    esac
13887  fi
13888
13889{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13890echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13891
13892#
13893# Check to make sure the PIC flag actually works.
13894#
13895if test -n "$lt_prog_compiler_pic_F77"; then
13896
13897{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13898echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13899if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13900  echo $ECHO_N "(cached) $ECHO_C" >&6
13901else
13902  lt_prog_compiler_pic_works_F77=no
13903  ac_outfile=conftest.$ac_objext
13904   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13905   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13906   # Insert the option either (1) after the last *FLAGS variable, or
13907   # (2) before a word containing "conftest.", or (3) at the end.
13908   # Note that $ac_compile itself does not contain backslashes and begins
13909   # with a dollar sign (not a hyphen), so the echo should work correctly.
13910   # The option is referenced via a variable to avoid confusing sed.
13911   lt_compile=`echo "$ac_compile" | $SED \
13912   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13913   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13914   -e 's:$: $lt_compiler_flag:'`
13915   (eval echo "\"\$as_me:13915: $lt_compile\"" >&5)
13916   (eval "$lt_compile" 2>conftest.err)
13917   ac_status=$?
13918   cat conftest.err >&5
13919   echo "$as_me:13919: \$? = $ac_status" >&5
13920   if (exit $ac_status) && test -s "$ac_outfile"; then
13921     # The compiler can only warn and ignore the option if not recognized
13922     # So say no if there are warnings other than the usual output.
13923     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13924     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13925     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13926       lt_prog_compiler_pic_works_F77=yes
13927     fi
13928   fi
13929   $rm conftest*
13930
13931fi
13932{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13933echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13934
13935if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13936    case $lt_prog_compiler_pic_F77 in
13937     "" | " "*) ;;
13938     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13939     esac
13940else
13941    lt_prog_compiler_pic_F77=
13942     lt_prog_compiler_can_build_shared_F77=no
13943fi
13944
13945fi
13946case $host_os in
13947  # For platforms which do not support PIC, -DPIC is meaningless:
13948  *djgpp*)
13949    lt_prog_compiler_pic_F77=
13950    ;;
13951  *)
13952    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13953    ;;
13954esac
13955
13956#
13957# Check to make sure the static flag actually works.
13958#
13959wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13960{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13961echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13962if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13963  echo $ECHO_N "(cached) $ECHO_C" >&6
13964else
13965  lt_prog_compiler_static_works_F77=no
13966   save_LDFLAGS="$LDFLAGS"
13967   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13968   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13969   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13970     # The linker can only warn and ignore the option if not recognized
13971     # So say no if there are warnings
13972     if test -s conftest.err; then
13973       # Append any errors to the config.log.
13974       cat conftest.err 1>&5
13975       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13976       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13977       if diff conftest.exp conftest.er2 >/dev/null; then
13978         lt_prog_compiler_static_works_F77=yes
13979       fi
13980     else
13981       lt_prog_compiler_static_works_F77=yes
13982     fi
13983   fi
13984   $rm conftest*
13985   LDFLAGS="$save_LDFLAGS"
13986
13987fi
13988{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13989echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13990
13991if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13992    :
13993else
13994    lt_prog_compiler_static_F77=
13995fi
13996
13997
13998{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13999echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14000if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14001  echo $ECHO_N "(cached) $ECHO_C" >&6
14002else
14003  lt_cv_prog_compiler_c_o_F77=no
14004   $rm -r conftest 2>/dev/null
14005   mkdir conftest
14006   cd conftest
14007   mkdir out
14008   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14009
14010   lt_compiler_flag="-o out/conftest2.$ac_objext"
14011   # Insert the option either (1) after the last *FLAGS variable, or
14012   # (2) before a word containing "conftest.", or (3) at the end.
14013   # Note that $ac_compile itself does not contain backslashes and begins
14014   # with a dollar sign (not a hyphen), so the echo should work correctly.
14015   lt_compile=`echo "$ac_compile" | $SED \
14016   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14017   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14018   -e 's:$: $lt_compiler_flag:'`
14019   (eval echo "\"\$as_me:14019: $lt_compile\"" >&5)
14020   (eval "$lt_compile" 2>out/conftest.err)
14021   ac_status=$?
14022   cat out/conftest.err >&5
14023   echo "$as_me:14023: \$? = $ac_status" >&5
14024   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14025   then
14026     # The compiler can only warn and ignore the option if not recognized
14027     # So say no if there are warnings
14028     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14029     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14030     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14031       lt_cv_prog_compiler_c_o_F77=yes
14032     fi
14033   fi
14034   chmod u+w . 2>&5
14035   $rm conftest*
14036   # SGI C++ compiler will create directory out/ii_files/ for
14037   # template instantiation
14038   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14039   $rm out/* && rmdir out
14040   cd ..
14041   rmdir conftest
14042   $rm conftest*
14043
14044fi
14045{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14046echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14047
14048
14049hard_links="nottested"
14050if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14051  # do not overwrite the value of need_locks provided by the user
14052  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14053echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14054  hard_links=yes
14055  $rm conftest*
14056  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14057  touch conftest.a
14058  ln conftest.a conftest.b 2>&5 || hard_links=no
14059  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14060  { echo "$as_me:$LINENO: result: $hard_links" >&5
14061echo "${ECHO_T}$hard_links" >&6; }
14062  if test "$hard_links" = no; then
14063    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14064echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14065    need_locks=warn
14066  fi
14067else
14068  need_locks=no
14069fi
14070
14071{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14072echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14073
14074  runpath_var=
14075  allow_undefined_flag_F77=
14076  enable_shared_with_static_runtimes_F77=no
14077  archive_cmds_F77=
14078  archive_expsym_cmds_F77=
14079  old_archive_From_new_cmds_F77=
14080  old_archive_from_expsyms_cmds_F77=
14081  export_dynamic_flag_spec_F77=
14082  whole_archive_flag_spec_F77=
14083  thread_safe_flag_spec_F77=
14084  hardcode_libdir_flag_spec_F77=
14085  hardcode_libdir_flag_spec_ld_F77=
14086  hardcode_libdir_separator_F77=
14087  hardcode_direct_F77=no
14088  hardcode_minus_L_F77=no
14089  hardcode_shlibpath_var_F77=unsupported
14090  link_all_deplibs_F77=unknown
14091  hardcode_automatic_F77=no
14092  module_cmds_F77=
14093  module_expsym_cmds_F77=
14094  always_export_symbols_F77=no
14095  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14096  # include_expsyms should be a list of space-separated symbols to be *always*
14097  # included in the symbol list
14098  include_expsyms_F77=
14099  # exclude_expsyms can be an extended regexp of symbols to exclude
14100  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14101  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14102  # as well as any symbol that contains `d'.
14103  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14104  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14105  # platforms (ab)use it in PIC code, but their linkers get confused if
14106  # the symbol is explicitly referenced.  Since portable code cannot
14107  # rely on this symbol name, it's probably fine to never include it in
14108  # preloaded symbol tables.
14109  extract_expsyms_cmds=
14110  # Just being paranoid about ensuring that cc_basename is set.
14111  for cc_temp in $compiler""; do
14112  case $cc_temp in
14113    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14114    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14115    \-*) ;;
14116    *) break;;
14117  esac
14118done
14119cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14120
14121  case $host_os in
14122  cygwin* | mingw* | pw32*)
14123    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14124    # When not using gcc, we currently assume that we are using
14125    # Microsoft Visual C++.
14126    if test "$GCC" != yes; then
14127      with_gnu_ld=no
14128    fi
14129    ;;
14130  interix*)
14131    # we just hope/assume this is gcc and not c89 (= MSVC++)
14132    with_gnu_ld=yes
14133    ;;
14134  openbsd*)
14135    with_gnu_ld=no
14136    ;;
14137  esac
14138
14139  ld_shlibs_F77=yes
14140  if test "$with_gnu_ld" = yes; then
14141    # If archive_cmds runs LD, not CC, wlarc should be empty
14142    wlarc='${wl}'
14143
14144    # Set some defaults for GNU ld with shared library support. These
14145    # are reset later if shared libraries are not supported. Putting them
14146    # here allows them to be overridden if necessary.
14147    runpath_var=LD_RUN_PATH
14148    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14149    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14150    # ancient GNU ld didn't support --whole-archive et. al.
14151    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14152	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14153      else
14154  	whole_archive_flag_spec_F77=
14155    fi
14156    supports_anon_versioning=no
14157    case `$LD -v 2>/dev/null` in
14158      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14159      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14160      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14161      *\ 2.11.*) ;; # other 2.11 versions
14162      *) supports_anon_versioning=yes ;;
14163    esac
14164
14165    # See if GNU ld supports shared libraries.
14166    case $host_os in
14167    aix3* | aix4* | aix5*)
14168      # On AIX/PPC, the GNU linker is very broken
14169      if test "$host_cpu" != ia64; then
14170	ld_shlibs_F77=no
14171	cat <<EOF 1>&2
14172
14173*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14174*** to be unable to reliably create shared libraries on AIX.
14175*** Therefore, libtool is disabling shared libraries support.  If you
14176*** really care for shared libraries, you may want to modify your PATH
14177*** so that a non-GNU linker is found, and then restart.
14178
14179EOF
14180      fi
14181      ;;
14182
14183    amigaos*)
14184      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)'
14185      hardcode_libdir_flag_spec_F77='-L$libdir'
14186      hardcode_minus_L_F77=yes
14187
14188      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14189      # that the semantics of dynamic libraries on AmigaOS, at least up
14190      # to version 4, is to share data among multiple programs linked
14191      # with the same dynamic library.  Since this doesn't match the
14192      # behavior of shared libraries on other platforms, we can't use
14193      # them.
14194      ld_shlibs_F77=no
14195      ;;
14196
14197    beos*)
14198      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14199	allow_undefined_flag_F77=unsupported
14200	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14201	# support --undefined.  This deserves some investigation.  FIXME
14202	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14203      else
14204	ld_shlibs_F77=no
14205      fi
14206      ;;
14207
14208    cygwin* | mingw* | pw32*)
14209      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14210      # as there is no search path for DLLs.
14211      hardcode_libdir_flag_spec_F77='-L$libdir'
14212      allow_undefined_flag_F77=unsupported
14213      always_export_symbols_F77=no
14214      enable_shared_with_static_runtimes_F77=yes
14215      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14216
14217      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14218        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14219	# If the export-symbols file already is a .def file (1st line
14220	# is EXPORTS), use it as is; otherwise, prepend...
14221	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14222	  cp $export_symbols $output_objdir/$soname.def;
14223	else
14224	  echo EXPORTS > $output_objdir/$soname.def;
14225	  cat $export_symbols >> $output_objdir/$soname.def;
14226	fi~
14227	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14228      else
14229	ld_shlibs_F77=no
14230      fi
14231      ;;
14232
14233    interix3*)
14234      hardcode_direct_F77=no
14235      hardcode_shlibpath_var_F77=no
14236      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14237      export_dynamic_flag_spec_F77='${wl}-E'
14238      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14239      # Instead, shared libraries are loaded at an image base (0x10000000 by
14240      # default) and relocated if they conflict, which is a slow very memory
14241      # consuming and fragmenting process.  To avoid this, we pick a random,
14242      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14243      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14244      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'
14245      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'
14246      ;;
14247
14248    linux*)
14249      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14250	tmp_addflag=
14251	case $cc_basename,$host_cpu in
14252	pgcc*)				# Portland Group C compiler
14253	  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'
14254	  tmp_addflag=' $pic_flag'
14255	  ;;
14256	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14257	  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'
14258	  tmp_addflag=' $pic_flag -Mnomain' ;;
14259	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14260	  tmp_addflag=' -i_dynamic' ;;
14261	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14262	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14263	ifc* | ifort*)			# Intel Fortran compiler
14264	  tmp_addflag=' -nofor_main' ;;
14265	esac
14266	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14267
14268	if test $supports_anon_versioning = yes; then
14269	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14270  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14271  $echo "local: *; };" >> $output_objdir/$libname.ver~
14272	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14273	fi
14274      else
14275	ld_shlibs_F77=no
14276      fi
14277      ;;
14278
14279    netbsd*)
14280      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14281	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14282	wlarc=
14283      else
14284	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14285	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14286      fi
14287      ;;
14288
14289    solaris*)
14290      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14291	ld_shlibs_F77=no
14292	cat <<EOF 1>&2
14293
14294*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14295*** create shared libraries on Solaris systems.  Therefore, libtool
14296*** is disabling shared libraries support.  We urge you to upgrade GNU
14297*** binutils to release 2.9.1 or newer.  Another option is to modify
14298*** your PATH or compiler configuration so that the native linker is
14299*** used, and then restart.
14300
14301EOF
14302      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14303	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14304	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14305      else
14306	ld_shlibs_F77=no
14307      fi
14308      ;;
14309
14310    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14311      case `$LD -v 2>&1` in
14312        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14313	ld_shlibs_F77=no
14314	cat <<_LT_EOF 1>&2
14315
14316*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14317*** reliably create shared libraries on SCO systems.  Therefore, libtool
14318*** is disabling shared libraries support.  We urge you to upgrade GNU
14319*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14320*** your PATH or compiler configuration so that the native linker is
14321*** used, and then restart.
14322
14323_LT_EOF
14324	;;
14325	*)
14326	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14327	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14328	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14329	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14330	  else
14331	    ld_shlibs_F77=no
14332	  fi
14333	;;
14334      esac
14335      ;;
14336
14337    sunos4*)
14338      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14339      wlarc=
14340      hardcode_direct_F77=yes
14341      hardcode_shlibpath_var_F77=no
14342      ;;
14343
14344    *)
14345      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14346	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14347	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14348      else
14349	ld_shlibs_F77=no
14350      fi
14351      ;;
14352    esac
14353
14354    if test "$ld_shlibs_F77" = no; then
14355      runpath_var=
14356      hardcode_libdir_flag_spec_F77=
14357      export_dynamic_flag_spec_F77=
14358      whole_archive_flag_spec_F77=
14359    fi
14360  else
14361    # PORTME fill in a description of your system's linker (not GNU ld)
14362    case $host_os in
14363    aix3*)
14364      allow_undefined_flag_F77=unsupported
14365      always_export_symbols_F77=yes
14366      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'
14367      # Note: this linker hardcodes the directories in LIBPATH if there
14368      # are no directories specified by -L.
14369      hardcode_minus_L_F77=yes
14370      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14371	# Neither direct hardcoding nor static linking is supported with a
14372	# broken collect2.
14373	hardcode_direct_F77=unsupported
14374      fi
14375      ;;
14376
14377    aix4* | aix5*)
14378      if test "$host_cpu" = ia64; then
14379	# On IA64, the linker does run time linking by default, so we don't
14380	# have to do anything special.
14381	aix_use_runtimelinking=no
14382	exp_sym_flag='-Bexport'
14383	no_entry_flag=""
14384      else
14385	# If we're using GNU nm, then we don't want the "-C" option.
14386	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14387	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14388	  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'
14389	else
14390	  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'
14391	fi
14392	aix_use_runtimelinking=no
14393
14394	# Test if we are trying to use run time linking or normal
14395	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14396	# need to do runtime linking.
14397	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14398	  for ld_flag in $LDFLAGS; do
14399  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14400  	    aix_use_runtimelinking=yes
14401  	    break
14402  	  fi
14403	  done
14404	  ;;
14405	esac
14406
14407	exp_sym_flag='-bexport'
14408	no_entry_flag='-bnoentry'
14409      fi
14410
14411      # When large executables or shared objects are built, AIX ld can
14412      # have problems creating the table of contents.  If linking a library
14413      # or program results in "error TOC overflow" add -mminimal-toc to
14414      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14415      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14416
14417      archive_cmds_F77=''
14418      hardcode_direct_F77=yes
14419      hardcode_libdir_separator_F77=':'
14420      link_all_deplibs_F77=yes
14421
14422      if test "$GCC" = yes; then
14423	case $host_os in aix4.[012]|aix4.[012].*)
14424	# We only want to do this on AIX 4.2 and lower, the check
14425	# below for broken collect2 doesn't work under 4.3+
14426	  collect2name=`${CC} -print-prog-name=collect2`
14427	  if test -f "$collect2name" && \
14428  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14429	  then
14430  	  # We have reworked collect2
14431  	  hardcode_direct_F77=yes
14432	  else
14433  	  # We have old collect2
14434  	  hardcode_direct_F77=unsupported
14435  	  # It fails to find uninstalled libraries when the uninstalled
14436  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14437  	  # to unsupported forces relinking
14438  	  hardcode_minus_L_F77=yes
14439  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14440  	  hardcode_libdir_separator_F77=
14441	  fi
14442	  ;;
14443	esac
14444	shared_flag='-shared'
14445	if test "$aix_use_runtimelinking" = yes; then
14446	  shared_flag="$shared_flag "'${wl}-G'
14447	fi
14448      else
14449	# not using gcc
14450	if test "$host_cpu" = ia64; then
14451  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14452  	# chokes on -Wl,-G. The following line is correct:
14453	  shared_flag='-G'
14454	else
14455	  if test "$aix_use_runtimelinking" = yes; then
14456	    shared_flag='${wl}-G'
14457	  else
14458	    shared_flag='${wl}-bM:SRE'
14459	  fi
14460	fi
14461      fi
14462
14463      # It seems that -bexpall does not export symbols beginning with
14464      # underscore (_), so it is better to generate a list of symbols to export.
14465      always_export_symbols_F77=yes
14466      if test "$aix_use_runtimelinking" = yes; then
14467	# Warning - without using the other runtime loading flags (-brtl),
14468	# -berok will link without error, but may produce a broken library.
14469	allow_undefined_flag_F77='-berok'
14470       # Determine the default libpath from the value encoded in an empty executable.
14471       cat >conftest.$ac_ext <<_ACEOF
14472      program main
14473
14474      end
14475_ACEOF
14476rm -f conftest.$ac_objext conftest$ac_exeext
14477if { (ac_try="$ac_link"
14478case "(($ac_try" in
14479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480  *) ac_try_echo=$ac_try;;
14481esac
14482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483  (eval "$ac_link") 2>conftest.er1
14484  ac_status=$?
14485  grep -v '^ *+' conftest.er1 >conftest.err
14486  rm -f conftest.er1
14487  cat conftest.err >&5
14488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489  (exit $ac_status); } && {
14490	 test -z "$ac_f77_werror_flag" ||
14491	 test ! -s conftest.err
14492       } && test -s conftest$ac_exeext &&
14493       $as_test_x conftest$ac_exeext; then
14494
14495aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14496}'`
14497# Check for a 64-bit object if we didn't find anything.
14498if 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; }
14499}'`; fi
14500else
14501  echo "$as_me: failed program was:" >&5
14502sed 's/^/| /' conftest.$ac_ext >&5
14503
14504
14505fi
14506
14507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14508      conftest$ac_exeext conftest.$ac_ext
14509if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14510
14511       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14512	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"
14513       else
14514	if test "$host_cpu" = ia64; then
14515	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14516	  allow_undefined_flag_F77="-z nodefs"
14517	  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"
14518	else
14519	 # Determine the default libpath from the value encoded in an empty executable.
14520	 cat >conftest.$ac_ext <<_ACEOF
14521      program main
14522
14523      end
14524_ACEOF
14525rm -f conftest.$ac_objext conftest$ac_exeext
14526if { (ac_try="$ac_link"
14527case "(($ac_try" in
14528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529  *) ac_try_echo=$ac_try;;
14530esac
14531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532  (eval "$ac_link") 2>conftest.er1
14533  ac_status=$?
14534  grep -v '^ *+' conftest.er1 >conftest.err
14535  rm -f conftest.er1
14536  cat conftest.err >&5
14537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538  (exit $ac_status); } && {
14539	 test -z "$ac_f77_werror_flag" ||
14540	 test ! -s conftest.err
14541       } && test -s conftest$ac_exeext &&
14542       $as_test_x conftest$ac_exeext; then
14543
14544aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14545}'`
14546# Check for a 64-bit object if we didn't find anything.
14547if 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; }
14548}'`; fi
14549else
14550  echo "$as_me: failed program was:" >&5
14551sed 's/^/| /' conftest.$ac_ext >&5
14552
14553
14554fi
14555
14556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14557      conftest$ac_exeext conftest.$ac_ext
14558if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14559
14560	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14561	  # Warning - without using the other run time loading flags,
14562	  # -berok will link without error, but may produce a broken library.
14563	  no_undefined_flag_F77=' ${wl}-bernotok'
14564	  allow_undefined_flag_F77=' ${wl}-berok'
14565	  # Exported symbols can be pulled into shared objects from archives
14566	  whole_archive_flag_spec_F77='$convenience'
14567	  archive_cmds_need_lc_F77=yes
14568	  # This is similar to how AIX traditionally builds its shared libraries.
14569	  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'
14570	fi
14571      fi
14572      ;;
14573
14574    amigaos*)
14575      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)'
14576      hardcode_libdir_flag_spec_F77='-L$libdir'
14577      hardcode_minus_L_F77=yes
14578      # see comment about different semantics on the GNU ld section
14579      ld_shlibs_F77=no
14580      ;;
14581
14582    bsdi[45]*)
14583      export_dynamic_flag_spec_F77=-rdynamic
14584      ;;
14585
14586    cygwin* | mingw* | pw32*)
14587      # When not using gcc, we currently assume that we are using
14588      # Microsoft Visual C++.
14589      # hardcode_libdir_flag_spec is actually meaningless, as there is
14590      # no search path for DLLs.
14591      hardcode_libdir_flag_spec_F77=' '
14592      allow_undefined_flag_F77=unsupported
14593      # Tell ltmain to make .lib files, not .a files.
14594      libext=lib
14595      # Tell ltmain to make .dll files, not .so files.
14596      shrext_cmds=".dll"
14597      # FIXME: Setting linknames here is a bad hack.
14598      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14599      # The linker will automatically build a .lib file if we build a DLL.
14600      old_archive_From_new_cmds_F77='true'
14601      # FIXME: Should let the user specify the lib program.
14602      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14603      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14604      enable_shared_with_static_runtimes_F77=yes
14605      ;;
14606
14607    darwin* | rhapsody*)
14608      case $host_os in
14609        rhapsody* | darwin1.[012])
14610         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14611         ;;
14612       *) # Darwin 1.3 on
14613         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14614           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14615         else
14616           case ${MACOSX_DEPLOYMENT_TARGET} in
14617             10.[012])
14618               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14619               ;;
14620             10.*)
14621               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14622               ;;
14623           esac
14624         fi
14625         ;;
14626      esac
14627      archive_cmds_need_lc_F77=no
14628      hardcode_direct_F77=no
14629      hardcode_automatic_F77=yes
14630      hardcode_shlibpath_var_F77=unsupported
14631      whole_archive_flag_spec_F77=''
14632      link_all_deplibs_F77=yes
14633    if test "$GCC" = yes ; then
14634    	output_verbose_link_cmd='echo'
14635        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14636      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14637      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14638      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}'
14639      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}'
14640    else
14641      case $cc_basename in
14642        xlc*)
14643         output_verbose_link_cmd='echo'
14644         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14645         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14646          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14647         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}'
14648          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}'
14649          ;;
14650       *)
14651         ld_shlibs_F77=no
14652          ;;
14653      esac
14654    fi
14655      ;;
14656
14657    dgux*)
14658      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14659      hardcode_libdir_flag_spec_F77='-L$libdir'
14660      hardcode_shlibpath_var_F77=no
14661      ;;
14662
14663    freebsd1*)
14664      ld_shlibs_F77=no
14665      ;;
14666
14667    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14668    # support.  Future versions do this automatically, but an explicit c++rt0.o
14669    # does not break anything, and helps significantly (at the cost of a little
14670    # extra space).
14671    freebsd2.2*)
14672      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14673      hardcode_libdir_flag_spec_F77='-R$libdir'
14674      hardcode_direct_F77=yes
14675      hardcode_shlibpath_var_F77=no
14676      ;;
14677
14678    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14679    freebsd2*)
14680      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14681      hardcode_direct_F77=yes
14682      hardcode_minus_L_F77=yes
14683      hardcode_shlibpath_var_F77=no
14684      ;;
14685
14686    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14687    freebsd* | kfreebsd*-gnu | dragonfly*)
14688      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14689      hardcode_libdir_flag_spec_F77='-R$libdir'
14690      hardcode_direct_F77=yes
14691      hardcode_shlibpath_var_F77=no
14692      ;;
14693
14694    hpux9*)
14695      if test "$GCC" = yes; then
14696	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'
14697      else
14698	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'
14699      fi
14700      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14701      hardcode_libdir_separator_F77=:
14702      hardcode_direct_F77=yes
14703
14704      # hardcode_minus_L: Not really in the search PATH,
14705      # but as the default location of the library.
14706      hardcode_minus_L_F77=yes
14707      export_dynamic_flag_spec_F77='${wl}-E'
14708      ;;
14709
14710    hpux10*)
14711      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14712	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14713      else
14714	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14715      fi
14716      if test "$with_gnu_ld" = no; then
14717	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14718	hardcode_libdir_separator_F77=:
14719
14720	hardcode_direct_F77=yes
14721	export_dynamic_flag_spec_F77='${wl}-E'
14722
14723	# hardcode_minus_L: Not really in the search PATH,
14724	# but as the default location of the library.
14725	hardcode_minus_L_F77=yes
14726      fi
14727      ;;
14728
14729    hpux11*)
14730      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14731	case $host_cpu in
14732	hppa*64*)
14733	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14734	  ;;
14735	ia64*)
14736	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14737	  ;;
14738	*)
14739	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14740	  ;;
14741	esac
14742      else
14743	case $host_cpu in
14744	hppa*64*)
14745	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14746	  ;;
14747	ia64*)
14748	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14749	  ;;
14750	*)
14751	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14752	  ;;
14753	esac
14754      fi
14755      if test "$with_gnu_ld" = no; then
14756	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14757	hardcode_libdir_separator_F77=:
14758
14759	case $host_cpu in
14760	hppa*64*|ia64*)
14761	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14762	  hardcode_direct_F77=no
14763	  hardcode_shlibpath_var_F77=no
14764	  ;;
14765	*)
14766	  hardcode_direct_F77=yes
14767	  export_dynamic_flag_spec_F77='${wl}-E'
14768
14769	  # hardcode_minus_L: Not really in the search PATH,
14770	  # but as the default location of the library.
14771	  hardcode_minus_L_F77=yes
14772	  ;;
14773	esac
14774      fi
14775      ;;
14776
14777    irix5* | irix6* | nonstopux*)
14778      if test "$GCC" = yes; then
14779	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'
14780      else
14781	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'
14782	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14783      fi
14784      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14785      hardcode_libdir_separator_F77=:
14786      link_all_deplibs_F77=yes
14787      ;;
14788
14789    netbsd*)
14790      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14791	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14792      else
14793	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14794      fi
14795      hardcode_libdir_flag_spec_F77='-R$libdir'
14796      hardcode_direct_F77=yes
14797      hardcode_shlibpath_var_F77=no
14798      ;;
14799
14800    newsos6)
14801      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14802      hardcode_direct_F77=yes
14803      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14804      hardcode_libdir_separator_F77=:
14805      hardcode_shlibpath_var_F77=no
14806      ;;
14807
14808    openbsd*)
14809      hardcode_direct_F77=yes
14810      hardcode_shlibpath_var_F77=no
14811      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14812	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14813	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14814	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14815	export_dynamic_flag_spec_F77='${wl}-E'
14816      else
14817       case $host_os in
14818	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14819	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14820	   hardcode_libdir_flag_spec_F77='-R$libdir'
14821	   ;;
14822	 *)
14823	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14824	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14825	   ;;
14826       esac
14827      fi
14828      ;;
14829
14830    os2*)
14831      hardcode_libdir_flag_spec_F77='-L$libdir'
14832      hardcode_minus_L_F77=yes
14833      allow_undefined_flag_F77=unsupported
14834      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'
14835      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14836      ;;
14837
14838    osf3*)
14839      if test "$GCC" = yes; then
14840	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14841	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'
14842      else
14843	allow_undefined_flag_F77=' -expect_unresolved \*'
14844	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'
14845      fi
14846      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14847      hardcode_libdir_separator_F77=:
14848      ;;
14849
14850    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14851      if test "$GCC" = yes; then
14852	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14853	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'
14854	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14855      else
14856	allow_undefined_flag_F77=' -expect_unresolved \*'
14857	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'
14858	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~
14859	$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'
14860
14861	# Both c and cxx compiler support -rpath directly
14862	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14863      fi
14864      hardcode_libdir_separator_F77=:
14865      ;;
14866
14867    solaris*)
14868      no_undefined_flag_F77=' -z text'
14869      if test "$GCC" = yes; then
14870	wlarc='${wl}'
14871	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14872	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14873	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14874      else
14875	wlarc=''
14876	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14877	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14878  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14879      fi
14880      hardcode_libdir_flag_spec_F77='-R$libdir'
14881      hardcode_shlibpath_var_F77=no
14882      case $host_os in
14883      solaris2.[0-5] | solaris2.[0-5].*) ;;
14884      *)
14885 	# The compiler driver will combine linker options so we
14886 	# cannot just pass the convience library names through
14887 	# without $wl, iff we do not link with $LD.
14888 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14889 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14890 	case $wlarc in
14891 	'')
14892 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14893 	*)
14894 	  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' ;;
14895 	esac ;;
14896      esac
14897      link_all_deplibs_F77=yes
14898      ;;
14899
14900    sunos4*)
14901      if test "x$host_vendor" = xsequent; then
14902	# Use $CC to link under sequent, because it throws in some extra .o
14903	# files that make .init and .fini sections work.
14904	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14905      else
14906	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14907      fi
14908      hardcode_libdir_flag_spec_F77='-L$libdir'
14909      hardcode_direct_F77=yes
14910      hardcode_minus_L_F77=yes
14911      hardcode_shlibpath_var_F77=no
14912      ;;
14913
14914    sysv4)
14915      case $host_vendor in
14916	sni)
14917	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14918	  hardcode_direct_F77=yes # is this really true???
14919	;;
14920	siemens)
14921	  ## LD is ld it makes a PLAMLIB
14922	  ## CC just makes a GrossModule.
14923	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14924	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14925	  hardcode_direct_F77=no
14926        ;;
14927	motorola)
14928	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14929	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14930	;;
14931      esac
14932      runpath_var='LD_RUN_PATH'
14933      hardcode_shlibpath_var_F77=no
14934      ;;
14935
14936    sysv4.3*)
14937      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14938      hardcode_shlibpath_var_F77=no
14939      export_dynamic_flag_spec_F77='-Bexport'
14940      ;;
14941
14942    sysv4*MP*)
14943      if test -d /usr/nec; then
14944	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14945	hardcode_shlibpath_var_F77=no
14946	runpath_var=LD_RUN_PATH
14947	hardcode_runpath_var=yes
14948	ld_shlibs_F77=yes
14949      fi
14950      ;;
14951
14952    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14953      no_undefined_flag_F77='${wl}-z,text'
14954      archive_cmds_need_lc_F77=no
14955      hardcode_shlibpath_var_F77=no
14956      runpath_var='LD_RUN_PATH'
14957
14958      if test "$GCC" = yes; then
14959	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14960	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14961      else
14962	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14963	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14964      fi
14965      ;;
14966
14967    sysv5* | sco3.2v5* | sco5v6*)
14968      # Note: We can NOT use -z defs as we might desire, because we do not
14969      # link with -lc, and that would cause any symbols used from libc to
14970      # always be unresolved, which means just about no library would
14971      # ever link correctly.  If we're not using GNU ld we use -z text
14972      # though, which does catch some bad symbols but isn't as heavy-handed
14973      # as -z defs.
14974      no_undefined_flag_F77='${wl}-z,text'
14975      allow_undefined_flag_F77='${wl}-z,nodefs'
14976      archive_cmds_need_lc_F77=no
14977      hardcode_shlibpath_var_F77=no
14978      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14979      hardcode_libdir_separator_F77=':'
14980      link_all_deplibs_F77=yes
14981      export_dynamic_flag_spec_F77='${wl}-Bexport'
14982      runpath_var='LD_RUN_PATH'
14983
14984      if test "$GCC" = yes; then
14985	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14986	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14987      else
14988	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14989	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14990      fi
14991      ;;
14992
14993    uts4*)
14994      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14995      hardcode_libdir_flag_spec_F77='-L$libdir'
14996      hardcode_shlibpath_var_F77=no
14997      ;;
14998
14999    *)
15000      ld_shlibs_F77=no
15001      ;;
15002    esac
15003  fi
15004
15005{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15006echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15007test "$ld_shlibs_F77" = no && can_build_shared=no
15008
15009#
15010# Do we need to explicitly link libc?
15011#
15012case "x$archive_cmds_need_lc_F77" in
15013x|xyes)
15014  # Assume -lc should be added
15015  archive_cmds_need_lc_F77=yes
15016
15017  if test "$enable_shared" = yes && test "$GCC" = yes; then
15018    case $archive_cmds_F77 in
15019    *'~'*)
15020      # FIXME: we may have to deal with multi-command sequences.
15021      ;;
15022    '$CC '*)
15023      # Test whether the compiler implicitly links with -lc since on some
15024      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15025      # to ld, don't add -lc before -lgcc.
15026      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15027echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15028      $rm conftest*
15029      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15030
15031      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15032  (eval $ac_compile) 2>&5
15033  ac_status=$?
15034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035  (exit $ac_status); } 2>conftest.err; then
15036        soname=conftest
15037        lib=conftest
15038        libobjs=conftest.$ac_objext
15039        deplibs=
15040        wl=$lt_prog_compiler_wl_F77
15041	pic_flag=$lt_prog_compiler_pic_F77
15042        compiler_flags=-v
15043        linker_flags=-v
15044        verstring=
15045        output_objdir=.
15046        libname=conftest
15047        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15048        allow_undefined_flag_F77=
15049        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15050  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15051  ac_status=$?
15052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053  (exit $ac_status); }
15054        then
15055	  archive_cmds_need_lc_F77=no
15056        else
15057	  archive_cmds_need_lc_F77=yes
15058        fi
15059        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15060      else
15061        cat conftest.err 1>&5
15062      fi
15063      $rm conftest*
15064      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15065echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15066      ;;
15067    esac
15068  fi
15069  ;;
15070esac
15071
15072{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15073echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15074library_names_spec=
15075libname_spec='lib$name'
15076soname_spec=
15077shrext_cmds=".so"
15078postinstall_cmds=
15079postuninstall_cmds=
15080finish_cmds=
15081finish_eval=
15082shlibpath_var=
15083shlibpath_overrides_runpath=unknown
15084version_type=none
15085dynamic_linker="$host_os ld.so"
15086sys_lib_dlsearch_path_spec="/lib /usr/lib"
15087if test "$GCC" = yes; then
15088  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15089  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15090    # if the path contains ";" then we assume it to be the separator
15091    # otherwise default to the standard path separator (i.e. ":") - it is
15092    # assumed that no part of a normal pathname contains ";" but that should
15093    # okay in the real world where ";" in dirpaths is itself problematic.
15094    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15095  else
15096    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15097  fi
15098else
15099  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15100fi
15101need_lib_prefix=unknown
15102hardcode_into_libs=no
15103
15104# when you set need_version to no, make sure it does not cause -set_version
15105# flags to be left without arguments
15106need_version=unknown
15107
15108case $host_os in
15109aix3*)
15110  version_type=linux
15111  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15112  shlibpath_var=LIBPATH
15113
15114  # AIX 3 has no versioning support, so we append a major version to the name.
15115  soname_spec='${libname}${release}${shared_ext}$major'
15116  ;;
15117
15118aix4* | aix5*)
15119  version_type=linux
15120  need_lib_prefix=no
15121  need_version=no
15122  hardcode_into_libs=yes
15123  if test "$host_cpu" = ia64; then
15124    # AIX 5 supports IA64
15125    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15126    shlibpath_var=LD_LIBRARY_PATH
15127  else
15128    # With GCC up to 2.95.x, collect2 would create an import file
15129    # for dependence libraries.  The import file would start with
15130    # the line `#! .'.  This would cause the generated library to
15131    # depend on `.', always an invalid library.  This was fixed in
15132    # development snapshots of GCC prior to 3.0.
15133    case $host_os in
15134      aix4 | aix4.[01] | aix4.[01].*)
15135      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15136	   echo ' yes '
15137	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15138	:
15139      else
15140	can_build_shared=no
15141      fi
15142      ;;
15143    esac
15144    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15145    # soname into executable. Probably we can add versioning support to
15146    # collect2, so additional links can be useful in future.
15147    if test "$aix_use_runtimelinking" = yes; then
15148      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15149      # instead of lib<name>.a to let people know that these are not
15150      # typical AIX shared libraries.
15151      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15152    else
15153      # We preserve .a as extension for shared libraries through AIX4.2
15154      # and later when we are not doing run time linking.
15155      library_names_spec='${libname}${release}.a $libname.a'
15156      soname_spec='${libname}${release}${shared_ext}$major'
15157    fi
15158    shlibpath_var=LIBPATH
15159  fi
15160  ;;
15161
15162amigaos*)
15163  library_names_spec='$libname.ixlibrary $libname.a'
15164  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15165  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'
15166  ;;
15167
15168beos*)
15169  library_names_spec='${libname}${shared_ext}'
15170  dynamic_linker="$host_os ld.so"
15171  shlibpath_var=LIBRARY_PATH
15172  ;;
15173
15174bsdi[45]*)
15175  version_type=linux
15176  need_version=no
15177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178  soname_spec='${libname}${release}${shared_ext}$major'
15179  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15180  shlibpath_var=LD_LIBRARY_PATH
15181  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15182  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15183  # the default ld.so.conf also contains /usr/contrib/lib and
15184  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15185  # libtool to hard-code these into programs
15186  ;;
15187
15188cygwin* | mingw* | pw32*)
15189  version_type=windows
15190  shrext_cmds=".dll"
15191  need_version=no
15192  need_lib_prefix=no
15193
15194  case $GCC,$host_os in
15195  yes,cygwin* | yes,mingw* | yes,pw32*)
15196    library_names_spec='$libname.dll.a'
15197    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15198    postinstall_cmds='base_file=`basename \${file}`~
15199      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15200      dldir=$destdir/`dirname \$dlpath`~
15201      test -d \$dldir || mkdir -p \$dldir~
15202      $install_prog $dir/$dlname \$dldir/$dlname~
15203      chmod a+x \$dldir/$dlname'
15204    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15205      dlpath=$dir/\$dldll~
15206       $rm \$dlpath'
15207    shlibpath_overrides_runpath=yes
15208
15209    case $host_os in
15210    cygwin*)
15211      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15212      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15213      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15214      ;;
15215    mingw*)
15216      # MinGW DLLs use traditional 'lib' prefix
15217      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15218      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15219      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15220        # It is most probably a Windows format PATH printed by
15221        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15222        # path with ; separators, and with drive letters. We can handle the
15223        # drive letters (cygwin fileutils understands them), so leave them,
15224        # especially as we might pass files found there to a mingw objdump,
15225        # which wouldn't understand a cygwinified path. Ahh.
15226        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15227      else
15228        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15229      fi
15230      ;;
15231    pw32*)
15232      # pw32 DLLs use 'pw' prefix rather than 'lib'
15233      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15234      ;;
15235    esac
15236    ;;
15237
15238  *)
15239    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15240    ;;
15241  esac
15242  dynamic_linker='Win32 ld.exe'
15243  # FIXME: first we should search . and the directory the executable is in
15244  shlibpath_var=PATH
15245  ;;
15246
15247darwin* | rhapsody*)
15248  dynamic_linker="$host_os dyld"
15249  version_type=darwin
15250  need_lib_prefix=no
15251  need_version=no
15252  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15253  soname_spec='${libname}${release}${major}$shared_ext'
15254  shlibpath_overrides_runpath=yes
15255  shlibpath_var=DYLD_LIBRARY_PATH
15256  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15257  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15258  if test "$GCC" = yes; then
15259    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"`
15260  else
15261    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15262  fi
15263  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15264  ;;
15265
15266dgux*)
15267  version_type=linux
15268  need_lib_prefix=no
15269  need_version=no
15270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15271  soname_spec='${libname}${release}${shared_ext}$major'
15272  shlibpath_var=LD_LIBRARY_PATH
15273  ;;
15274
15275freebsd1*)
15276  dynamic_linker=no
15277  ;;
15278
15279kfreebsd*-gnu)
15280  version_type=linux
15281  need_lib_prefix=no
15282  need_version=no
15283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15284  soname_spec='${libname}${release}${shared_ext}$major'
15285  shlibpath_var=LD_LIBRARY_PATH
15286  shlibpath_overrides_runpath=no
15287  hardcode_into_libs=yes
15288  dynamic_linker='GNU ld.so'
15289  ;;
15290
15291freebsd* | dragonfly*)
15292  # DragonFly does not have aout.  When/if they implement a new
15293  # versioning mechanism, adjust this.
15294  if test -x /usr/bin/objformat; then
15295    objformat=`/usr/bin/objformat`
15296  else
15297    case $host_os in
15298    freebsd[123]*) objformat=aout ;;
15299    *) objformat=elf ;;
15300    esac
15301  fi
15302  version_type=freebsd-$objformat
15303  case $version_type in
15304    freebsd-elf*)
15305      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15306      need_version=no
15307      need_lib_prefix=no
15308      ;;
15309    freebsd-*)
15310      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15311      need_version=yes
15312      ;;
15313  esac
15314  shlibpath_var=LD_LIBRARY_PATH
15315  case $host_os in
15316  freebsd2*)
15317    shlibpath_overrides_runpath=yes
15318    ;;
15319  freebsd3.[01]* | freebsdelf3.[01]*)
15320    shlibpath_overrides_runpath=yes
15321    hardcode_into_libs=yes
15322    ;;
15323  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15324  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15325    shlibpath_overrides_runpath=no
15326    hardcode_into_libs=yes
15327    ;;
15328  freebsd*) # from 4.6 on
15329    shlibpath_overrides_runpath=yes
15330    hardcode_into_libs=yes
15331    ;;
15332  esac
15333  ;;
15334
15335gnu*)
15336  version_type=linux
15337  need_lib_prefix=no
15338  need_version=no
15339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15340  soname_spec='${libname}${release}${shared_ext}$major'
15341  shlibpath_var=LD_LIBRARY_PATH
15342  hardcode_into_libs=yes
15343  ;;
15344
15345hpux9* | hpux10* | hpux11*)
15346  # Give a soname corresponding to the major version so that dld.sl refuses to
15347  # link against other versions.
15348  version_type=sunos
15349  need_lib_prefix=no
15350  need_version=no
15351  case $host_cpu in
15352  ia64*)
15353    shrext_cmds='.so'
15354    hardcode_into_libs=yes
15355    dynamic_linker="$host_os dld.so"
15356    shlibpath_var=LD_LIBRARY_PATH
15357    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15358    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359    soname_spec='${libname}${release}${shared_ext}$major'
15360    if test "X$HPUX_IA64_MODE" = X32; then
15361      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15362    else
15363      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15364    fi
15365    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15366    ;;
15367   hppa*64*)
15368     shrext_cmds='.sl'
15369     hardcode_into_libs=yes
15370     dynamic_linker="$host_os dld.sl"
15371     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15372     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15373     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15374     soname_spec='${libname}${release}${shared_ext}$major'
15375     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15376     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15377     ;;
15378   *)
15379    shrext_cmds='.sl'
15380    dynamic_linker="$host_os dld.sl"
15381    shlibpath_var=SHLIB_PATH
15382    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15383    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15384    soname_spec='${libname}${release}${shared_ext}$major'
15385    ;;
15386  esac
15387  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15388  postinstall_cmds='chmod 555 $lib'
15389  ;;
15390
15391interix3*)
15392  version_type=linux
15393  need_lib_prefix=no
15394  need_version=no
15395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15396  soname_spec='${libname}${release}${shared_ext}$major'
15397  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15398  shlibpath_var=LD_LIBRARY_PATH
15399  shlibpath_overrides_runpath=no
15400  hardcode_into_libs=yes
15401  ;;
15402
15403irix5* | irix6* | nonstopux*)
15404  case $host_os in
15405    nonstopux*) version_type=nonstopux ;;
15406    *)
15407	if test "$lt_cv_prog_gnu_ld" = yes; then
15408		version_type=linux
15409	else
15410		version_type=irix
15411	fi ;;
15412  esac
15413  need_lib_prefix=no
15414  need_version=no
15415  soname_spec='${libname}${release}${shared_ext}$major'
15416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15417  case $host_os in
15418  irix5* | nonstopux*)
15419    libsuff= shlibsuff=
15420    ;;
15421  *)
15422    case $LD in # libtool.m4 will add one of these switches to LD
15423    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15424      libsuff= shlibsuff= libmagic=32-bit;;
15425    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15426      libsuff=32 shlibsuff=N32 libmagic=N32;;
15427    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15428      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15429    *) libsuff= shlibsuff= libmagic=never-match;;
15430    esac
15431    ;;
15432  esac
15433  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15434  shlibpath_overrides_runpath=no
15435  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15436  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15437  hardcode_into_libs=yes
15438  ;;
15439
15440# No shared lib support for Linux oldld, aout, or coff.
15441linux*oldld* | linux*aout* | linux*coff*)
15442  dynamic_linker=no
15443  ;;
15444
15445# This must be Linux ELF.
15446linux*)
15447  version_type=linux
15448  need_lib_prefix=no
15449  need_version=no
15450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451  soname_spec='${libname}${release}${shared_ext}$major'
15452  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15453  shlibpath_var=LD_LIBRARY_PATH
15454  shlibpath_overrides_runpath=no
15455  # This implies no fast_install, which is unacceptable.
15456  # Some rework will be needed to allow for fast_install
15457  # before this can be enabled.
15458  hardcode_into_libs=yes
15459
15460  # Append ld.so.conf contents to the search path
15461  if test -f /etc/ld.so.conf; then
15462    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' ' '`
15463    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15464  fi
15465
15466  # We used to test for /lib/ld.so.1 and disable shared libraries on
15467  # powerpc, because MkLinux only supported shared libraries with the
15468  # GNU dynamic linker.  Since this was broken with cross compilers,
15469  # most powerpc-linux boxes support dynamic linking these days and
15470  # people can always --disable-shared, the test was removed, and we
15471  # assume the GNU/Linux dynamic linker is in use.
15472  dynamic_linker='GNU/Linux ld.so'
15473  ;;
15474
15475knetbsd*-gnu)
15476  version_type=linux
15477  need_lib_prefix=no
15478  need_version=no
15479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15480  soname_spec='${libname}${release}${shared_ext}$major'
15481  shlibpath_var=LD_LIBRARY_PATH
15482  shlibpath_overrides_runpath=no
15483  hardcode_into_libs=yes
15484  dynamic_linker='GNU ld.so'
15485  ;;
15486
15487netbsd*)
15488  version_type=sunos
15489  need_lib_prefix=no
15490  need_version=no
15491  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15492    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15493    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15494    dynamic_linker='NetBSD (a.out) ld.so'
15495  else
15496    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15497    soname_spec='${libname}${release}${shared_ext}$major'
15498    dynamic_linker='NetBSD ld.elf_so'
15499  fi
15500  shlibpath_var=LD_LIBRARY_PATH
15501  shlibpath_overrides_runpath=yes
15502  hardcode_into_libs=yes
15503  ;;
15504
15505newsos6)
15506  version_type=linux
15507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15508  shlibpath_var=LD_LIBRARY_PATH
15509  shlibpath_overrides_runpath=yes
15510  ;;
15511
15512nto-qnx*)
15513  version_type=linux
15514  need_lib_prefix=no
15515  need_version=no
15516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15517  soname_spec='${libname}${release}${shared_ext}$major'
15518  shlibpath_var=LD_LIBRARY_PATH
15519  shlibpath_overrides_runpath=yes
15520  ;;
15521
15522openbsd*)
15523  version_type=sunos
15524  sys_lib_dlsearch_path_spec="/usr/lib"
15525  need_lib_prefix=no
15526  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15527  case $host_os in
15528    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15529    *)                         need_version=no  ;;
15530  esac
15531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15532  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15533  shlibpath_var=LD_LIBRARY_PATH
15534  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15535    case $host_os in
15536      openbsd2.[89] | openbsd2.[89].*)
15537	shlibpath_overrides_runpath=no
15538	;;
15539      *)
15540	shlibpath_overrides_runpath=yes
15541	;;
15542      esac
15543  else
15544    shlibpath_overrides_runpath=yes
15545  fi
15546  ;;
15547
15548os2*)
15549  libname_spec='$name'
15550  shrext_cmds=".dll"
15551  need_lib_prefix=no
15552  library_names_spec='$libname${shared_ext} $libname.a'
15553  dynamic_linker='OS/2 ld.exe'
15554  shlibpath_var=LIBPATH
15555  ;;
15556
15557osf3* | osf4* | osf5*)
15558  version_type=osf
15559  need_lib_prefix=no
15560  need_version=no
15561  soname_spec='${libname}${release}${shared_ext}$major'
15562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15563  shlibpath_var=LD_LIBRARY_PATH
15564  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15565  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15566  ;;
15567
15568solaris*)
15569  version_type=linux
15570  need_lib_prefix=no
15571  need_version=no
15572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573  soname_spec='${libname}${release}${shared_ext}$major'
15574  shlibpath_var=LD_LIBRARY_PATH
15575  shlibpath_overrides_runpath=yes
15576  hardcode_into_libs=yes
15577  # ldd complains unless libraries are executable
15578  postinstall_cmds='chmod +x $lib'
15579  ;;
15580
15581sunos4*)
15582  version_type=sunos
15583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15584  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15585  shlibpath_var=LD_LIBRARY_PATH
15586  shlibpath_overrides_runpath=yes
15587  if test "$with_gnu_ld" = yes; then
15588    need_lib_prefix=no
15589  fi
15590  need_version=yes
15591  ;;
15592
15593sysv4 | sysv4.3*)
15594  version_type=linux
15595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15596  soname_spec='${libname}${release}${shared_ext}$major'
15597  shlibpath_var=LD_LIBRARY_PATH
15598  case $host_vendor in
15599    sni)
15600      shlibpath_overrides_runpath=no
15601      need_lib_prefix=no
15602      export_dynamic_flag_spec='${wl}-Blargedynsym'
15603      runpath_var=LD_RUN_PATH
15604      ;;
15605    siemens)
15606      need_lib_prefix=no
15607      ;;
15608    motorola)
15609      need_lib_prefix=no
15610      need_version=no
15611      shlibpath_overrides_runpath=no
15612      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15613      ;;
15614  esac
15615  ;;
15616
15617sysv4*MP*)
15618  if test -d /usr/nec ;then
15619    version_type=linux
15620    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15621    soname_spec='$libname${shared_ext}.$major'
15622    shlibpath_var=LD_LIBRARY_PATH
15623  fi
15624  ;;
15625
15626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15627  version_type=freebsd-elf
15628  need_lib_prefix=no
15629  need_version=no
15630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15631  soname_spec='${libname}${release}${shared_ext}$major'
15632  shlibpath_var=LD_LIBRARY_PATH
15633  hardcode_into_libs=yes
15634  if test "$with_gnu_ld" = yes; then
15635    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15636    shlibpath_overrides_runpath=no
15637  else
15638    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15639    shlibpath_overrides_runpath=yes
15640    case $host_os in
15641      sco3.2v5*)
15642        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15643	;;
15644    esac
15645  fi
15646  sys_lib_dlsearch_path_spec='/usr/lib'
15647  ;;
15648
15649uts4*)
15650  version_type=linux
15651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15652  soname_spec='${libname}${release}${shared_ext}$major'
15653  shlibpath_var=LD_LIBRARY_PATH
15654  ;;
15655
15656*)
15657  dynamic_linker=no
15658  ;;
15659esac
15660{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15661echo "${ECHO_T}$dynamic_linker" >&6; }
15662test "$dynamic_linker" = no && can_build_shared=no
15663
15664variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15665if test "$GCC" = yes; then
15666  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15667fi
15668
15669{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15670echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15671hardcode_action_F77=
15672if test -n "$hardcode_libdir_flag_spec_F77" || \
15673   test -n "$runpath_var_F77" || \
15674   test "X$hardcode_automatic_F77" = "Xyes" ; then
15675
15676  # We can hardcode non-existant directories.
15677  if test "$hardcode_direct_F77" != no &&
15678     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15679     # have to relink, otherwise we might link with an installed library
15680     # when we should be linking with a yet-to-be-installed one
15681     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15682     test "$hardcode_minus_L_F77" != no; then
15683    # Linking always hardcodes the temporary library directory.
15684    hardcode_action_F77=relink
15685  else
15686    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15687    hardcode_action_F77=immediate
15688  fi
15689else
15690  # We cannot hardcode anything, or else we can only hardcode existing
15691  # directories.
15692  hardcode_action_F77=unsupported
15693fi
15694{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15695echo "${ECHO_T}$hardcode_action_F77" >&6; }
15696
15697if test "$hardcode_action_F77" = relink; then
15698  # Fast installation is not supported
15699  enable_fast_install=no
15700elif test "$shlibpath_overrides_runpath" = yes ||
15701     test "$enable_shared" = no; then
15702  # Fast installation is not necessary
15703  enable_fast_install=needless
15704fi
15705
15706
15707# The else clause should only fire when bootstrapping the
15708# libtool distribution, otherwise you forgot to ship ltmain.sh
15709# with your package, and you will get complaints that there are
15710# no rules to generate ltmain.sh.
15711if test -f "$ltmain"; then
15712  # See if we are running on zsh, and set the options which allow our commands through
15713  # without removal of \ escapes.
15714  if test -n "${ZSH_VERSION+set}" ; then
15715    setopt NO_GLOB_SUBST
15716  fi
15717  # Now quote all the things that may contain metacharacters while being
15718  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15719  # variables and quote the copies for generation of the libtool script.
15720  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15721    SED SHELL STRIP \
15722    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15723    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15724    deplibs_check_method reload_flag reload_cmds need_locks \
15725    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15726    lt_cv_sys_global_symbol_to_c_name_address \
15727    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15728    old_postinstall_cmds old_postuninstall_cmds \
15729    compiler_F77 \
15730    CC_F77 \
15731    LD_F77 \
15732    lt_prog_compiler_wl_F77 \
15733    lt_prog_compiler_pic_F77 \
15734    lt_prog_compiler_static_F77 \
15735    lt_prog_compiler_no_builtin_flag_F77 \
15736    export_dynamic_flag_spec_F77 \
15737    thread_safe_flag_spec_F77 \
15738    whole_archive_flag_spec_F77 \
15739    enable_shared_with_static_runtimes_F77 \
15740    old_archive_cmds_F77 \
15741    old_archive_from_new_cmds_F77 \
15742    predep_objects_F77 \
15743    postdep_objects_F77 \
15744    predeps_F77 \
15745    postdeps_F77 \
15746    compiler_lib_search_path_F77 \
15747    archive_cmds_F77 \
15748    archive_expsym_cmds_F77 \
15749    postinstall_cmds_F77 \
15750    postuninstall_cmds_F77 \
15751    old_archive_from_expsyms_cmds_F77 \
15752    allow_undefined_flag_F77 \
15753    no_undefined_flag_F77 \
15754    export_symbols_cmds_F77 \
15755    hardcode_libdir_flag_spec_F77 \
15756    hardcode_libdir_flag_spec_ld_F77 \
15757    hardcode_libdir_separator_F77 \
15758    hardcode_automatic_F77 \
15759    module_cmds_F77 \
15760    module_expsym_cmds_F77 \
15761    lt_cv_prog_compiler_c_o_F77 \
15762    exclude_expsyms_F77 \
15763    include_expsyms_F77; do
15764
15765    case $var in
15766    old_archive_cmds_F77 | \
15767    old_archive_from_new_cmds_F77 | \
15768    archive_cmds_F77 | \
15769    archive_expsym_cmds_F77 | \
15770    module_cmds_F77 | \
15771    module_expsym_cmds_F77 | \
15772    old_archive_from_expsyms_cmds_F77 | \
15773    export_symbols_cmds_F77 | \
15774    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15775    postinstall_cmds | postuninstall_cmds | \
15776    old_postinstall_cmds | old_postuninstall_cmds | \
15777    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15778      # Double-quote double-evaled strings.
15779      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15780      ;;
15781    *)
15782      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15783      ;;
15784    esac
15785  done
15786
15787  case $lt_echo in
15788  *'\$0 --fallback-echo"')
15789    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15790    ;;
15791  esac
15792
15793cfgfile="$ofile"
15794
15795  cat <<__EOF__ >> "$cfgfile"
15796# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15797
15798# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15799
15800# Shell to use when invoking shell scripts.
15801SHELL=$lt_SHELL
15802
15803# Whether or not to build shared libraries.
15804build_libtool_libs=$enable_shared
15805
15806# Whether or not to build static libraries.
15807build_old_libs=$enable_static
15808
15809# Whether or not to add -lc for building shared libraries.
15810build_libtool_need_lc=$archive_cmds_need_lc_F77
15811
15812# Whether or not to disallow shared libs when runtime libs are static
15813allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15814
15815# Whether or not to optimize for fast installation.
15816fast_install=$enable_fast_install
15817
15818# The host system.
15819host_alias=$host_alias
15820host=$host
15821host_os=$host_os
15822
15823# The build system.
15824build_alias=$build_alias
15825build=$build
15826build_os=$build_os
15827
15828# An echo program that does not interpret backslashes.
15829echo=$lt_echo
15830
15831# The archiver.
15832AR=$lt_AR
15833AR_FLAGS=$lt_AR_FLAGS
15834
15835# A C compiler.
15836LTCC=$lt_LTCC
15837
15838# LTCC compiler flags.
15839LTCFLAGS=$lt_LTCFLAGS
15840
15841# A language-specific compiler.
15842CC=$lt_compiler_F77
15843
15844# Is the compiler the GNU C compiler?
15845with_gcc=$GCC_F77
15846
15847# An ERE matcher.
15848EGREP=$lt_EGREP
15849
15850# The linker used to build libraries.
15851LD=$lt_LD_F77
15852
15853# Whether we need hard or soft links.
15854LN_S=$lt_LN_S
15855
15856# A BSD-compatible nm program.
15857NM=$lt_NM
15858
15859# A symbol stripping program
15860STRIP=$lt_STRIP
15861
15862# Used to examine libraries when file_magic_cmd begins "file"
15863MAGIC_CMD=$MAGIC_CMD
15864
15865# Used on cygwin: DLL creation program.
15866DLLTOOL="$DLLTOOL"
15867
15868# Used on cygwin: object dumper.
15869OBJDUMP="$OBJDUMP"
15870
15871# Used on cygwin: assembler.
15872AS="$AS"
15873
15874# The name of the directory that contains temporary libtool files.
15875objdir=$objdir
15876
15877# How to create reloadable object files.
15878reload_flag=$lt_reload_flag
15879reload_cmds=$lt_reload_cmds
15880
15881# How to pass a linker flag through the compiler.
15882wl=$lt_lt_prog_compiler_wl_F77
15883
15884# Object file suffix (normally "o").
15885objext="$ac_objext"
15886
15887# Old archive suffix (normally "a").
15888libext="$libext"
15889
15890# Shared library suffix (normally ".so").
15891shrext_cmds='$shrext_cmds'
15892
15893# Executable file suffix (normally "").
15894exeext="$exeext"
15895
15896# Additional compiler flags for building library objects.
15897pic_flag=$lt_lt_prog_compiler_pic_F77
15898pic_mode=$pic_mode
15899
15900# What is the maximum length of a command?
15901max_cmd_len=$lt_cv_sys_max_cmd_len
15902
15903# Does compiler simultaneously support -c and -o options?
15904compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15905
15906# Must we lock files when doing compilation?
15907need_locks=$lt_need_locks
15908
15909# Do we need the lib prefix for modules?
15910need_lib_prefix=$need_lib_prefix
15911
15912# Do we need a version for libraries?
15913need_version=$need_version
15914
15915# Whether dlopen is supported.
15916dlopen_support=$enable_dlopen
15917
15918# Whether dlopen of programs is supported.
15919dlopen_self=$enable_dlopen_self
15920
15921# Whether dlopen of statically linked programs is supported.
15922dlopen_self_static=$enable_dlopen_self_static
15923
15924# Compiler flag to prevent dynamic linking.
15925link_static_flag=$lt_lt_prog_compiler_static_F77
15926
15927# Compiler flag to turn off builtin functions.
15928no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15929
15930# Compiler flag to allow reflexive dlopens.
15931export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15932
15933# Compiler flag to generate shared objects directly from archives.
15934whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15935
15936# Compiler flag to generate thread-safe objects.
15937thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15938
15939# Library versioning type.
15940version_type=$version_type
15941
15942# Format of library name prefix.
15943libname_spec=$lt_libname_spec
15944
15945# List of archive names.  First name is the real one, the rest are links.
15946# The last name is the one that the linker finds with -lNAME.
15947library_names_spec=$lt_library_names_spec
15948
15949# The coded name of the library, if different from the real name.
15950soname_spec=$lt_soname_spec
15951
15952# Commands used to build and install an old-style archive.
15953RANLIB=$lt_RANLIB
15954old_archive_cmds=$lt_old_archive_cmds_F77
15955old_postinstall_cmds=$lt_old_postinstall_cmds
15956old_postuninstall_cmds=$lt_old_postuninstall_cmds
15957
15958# Create an old-style archive from a shared archive.
15959old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15960
15961# Create a temporary old-style archive to link instead of a shared archive.
15962old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15963
15964# Commands used to build and install a shared archive.
15965archive_cmds=$lt_archive_cmds_F77
15966archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15967postinstall_cmds=$lt_postinstall_cmds
15968postuninstall_cmds=$lt_postuninstall_cmds
15969
15970# Commands used to build a loadable module (assumed same as above if empty)
15971module_cmds=$lt_module_cmds_F77
15972module_expsym_cmds=$lt_module_expsym_cmds_F77
15973
15974# Commands to strip libraries.
15975old_striplib=$lt_old_striplib
15976striplib=$lt_striplib
15977
15978# Dependencies to place before the objects being linked to create a
15979# shared library.
15980predep_objects=$lt_predep_objects_F77
15981
15982# Dependencies to place after the objects being linked to create a
15983# shared library.
15984postdep_objects=$lt_postdep_objects_F77
15985
15986# Dependencies to place before the objects being linked to create a
15987# shared library.
15988predeps=$lt_predeps_F77
15989
15990# Dependencies to place after the objects being linked to create a
15991# shared library.
15992postdeps=$lt_postdeps_F77
15993
15994# The library search path used internally by the compiler when linking
15995# a shared library.
15996compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15997
15998# Method to check whether dependent libraries are shared objects.
15999deplibs_check_method=$lt_deplibs_check_method
16000
16001# Command to use when deplibs_check_method == file_magic.
16002file_magic_cmd=$lt_file_magic_cmd
16003
16004# Flag that allows shared libraries with undefined symbols to be built.
16005allow_undefined_flag=$lt_allow_undefined_flag_F77
16006
16007# Flag that forces no undefined symbols.
16008no_undefined_flag=$lt_no_undefined_flag_F77
16009
16010# Commands used to finish a libtool library installation in a directory.
16011finish_cmds=$lt_finish_cmds
16012
16013# Same as above, but a single script fragment to be evaled but not shown.
16014finish_eval=$lt_finish_eval
16015
16016# Take the output of nm and produce a listing of raw symbols and C names.
16017global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16018
16019# Transform the output of nm in a proper C declaration
16020global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16021
16022# Transform the output of nm in a C name address pair
16023global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16024
16025# This is the shared library runtime path variable.
16026runpath_var=$runpath_var
16027
16028# This is the shared library path variable.
16029shlibpath_var=$shlibpath_var
16030
16031# Is shlibpath searched before the hard-coded library search path?
16032shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16033
16034# How to hardcode a shared library path into an executable.
16035hardcode_action=$hardcode_action_F77
16036
16037# Whether we should hardcode library paths into libraries.
16038hardcode_into_libs=$hardcode_into_libs
16039
16040# Flag to hardcode \$libdir into a binary during linking.
16041# This must work even if \$libdir does not exist.
16042hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16043
16044# If ld is used when linking, flag to hardcode \$libdir into
16045# a binary during linking. This must work even if \$libdir does
16046# not exist.
16047hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16048
16049# Whether we need a single -rpath flag with a separated argument.
16050hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16051
16052# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16053# resulting binary.
16054hardcode_direct=$hardcode_direct_F77
16055
16056# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16057# resulting binary.
16058hardcode_minus_L=$hardcode_minus_L_F77
16059
16060# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16061# the resulting binary.
16062hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16063
16064# Set to yes if building a shared library automatically hardcodes DIR into the library
16065# and all subsequent libraries and executables linked against it.
16066hardcode_automatic=$hardcode_automatic_F77
16067
16068# Variables whose values should be saved in libtool wrapper scripts and
16069# restored at relink time.
16070variables_saved_for_relink="$variables_saved_for_relink"
16071
16072# Whether libtool must link a program against all its dependency libraries.
16073link_all_deplibs=$link_all_deplibs_F77
16074
16075# Compile-time system search path for libraries
16076sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16077
16078# Run-time system search path for libraries
16079sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16080
16081# Fix the shell variable \$srcfile for the compiler.
16082fix_srcfile_path="$fix_srcfile_path_F77"
16083
16084# Set to yes if exported symbols are required.
16085always_export_symbols=$always_export_symbols_F77
16086
16087# The commands to list exported symbols.
16088export_symbols_cmds=$lt_export_symbols_cmds_F77
16089
16090# The commands to extract the exported symbol list from a shared archive.
16091extract_expsyms_cmds=$lt_extract_expsyms_cmds
16092
16093# Symbols that should not be listed in the preloaded symbols.
16094exclude_expsyms=$lt_exclude_expsyms_F77
16095
16096# Symbols that must always be exported.
16097include_expsyms=$lt_include_expsyms_F77
16098
16099# ### END LIBTOOL TAG CONFIG: $tagname
16100
16101__EOF__
16102
16103
16104else
16105  # If there is no Makefile yet, we rely on a make rule to execute
16106  # `config.status --recheck' to rerun these tests and create the
16107  # libtool script then.
16108  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16109  if test -f "$ltmain_in"; then
16110    test -f Makefile && make "$ltmain"
16111  fi
16112fi
16113
16114
16115ac_ext=c
16116ac_cpp='$CPP $CPPFLAGS'
16117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16119ac_compiler_gnu=$ac_cv_c_compiler_gnu
16120
16121CC="$lt_save_CC"
16122
16123	else
16124	  tagname=""
16125	fi
16126	;;
16127
16128      GCJ)
16129	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16130
16131
16132# Source file extension for Java test sources.
16133ac_ext=java
16134
16135# Object file extension for compiled Java test sources.
16136objext=o
16137objext_GCJ=$objext
16138
16139# Code to be used in simple compile tests
16140lt_simple_compile_test_code="class foo {}\n"
16141
16142# Code to be used in simple link tests
16143lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16144
16145# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16146
16147# If no C compiler was specified, use CC.
16148LTCC=${LTCC-"$CC"}
16149
16150# If no C compiler flags were specified, use CFLAGS.
16151LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16152
16153# Allow CC to be a program name with arguments.
16154compiler=$CC
16155
16156
16157# save warnings/boilerplate of simple test code
16158ac_outfile=conftest.$ac_objext
16159printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16160eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16161_lt_compiler_boilerplate=`cat conftest.err`
16162$rm conftest*
16163
16164ac_outfile=conftest.$ac_objext
16165printf "$lt_simple_link_test_code" >conftest.$ac_ext
16166eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16167_lt_linker_boilerplate=`cat conftest.err`
16168$rm conftest*
16169
16170
16171# Allow CC to be a program name with arguments.
16172lt_save_CC="$CC"
16173CC=${GCJ-"gcj"}
16174compiler=$CC
16175compiler_GCJ=$CC
16176for cc_temp in $compiler""; do
16177  case $cc_temp in
16178    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16179    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16180    \-*) ;;
16181    *) break;;
16182  esac
16183done
16184cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16185
16186
16187# GCJ did not exist at the time GCC didn't implicitly link libc in.
16188archive_cmds_need_lc_GCJ=no
16189
16190old_archive_cmds_GCJ=$old_archive_cmds
16191
16192
16193lt_prog_compiler_no_builtin_flag_GCJ=
16194
16195if test "$GCC" = yes; then
16196  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16197
16198
16199{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16200echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16201if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16202  echo $ECHO_N "(cached) $ECHO_C" >&6
16203else
16204  lt_cv_prog_compiler_rtti_exceptions=no
16205  ac_outfile=conftest.$ac_objext
16206   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16207   lt_compiler_flag="-fno-rtti -fno-exceptions"
16208   # Insert the option either (1) after the last *FLAGS variable, or
16209   # (2) before a word containing "conftest.", or (3) at the end.
16210   # Note that $ac_compile itself does not contain backslashes and begins
16211   # with a dollar sign (not a hyphen), so the echo should work correctly.
16212   # The option is referenced via a variable to avoid confusing sed.
16213   lt_compile=`echo "$ac_compile" | $SED \
16214   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16215   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16216   -e 's:$: $lt_compiler_flag:'`
16217   (eval echo "\"\$as_me:16217: $lt_compile\"" >&5)
16218   (eval "$lt_compile" 2>conftest.err)
16219   ac_status=$?
16220   cat conftest.err >&5
16221   echo "$as_me:16221: \$? = $ac_status" >&5
16222   if (exit $ac_status) && test -s "$ac_outfile"; then
16223     # The compiler can only warn and ignore the option if not recognized
16224     # So say no if there are warnings other than the usual output.
16225     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16226     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16227     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16228       lt_cv_prog_compiler_rtti_exceptions=yes
16229     fi
16230   fi
16231   $rm conftest*
16232
16233fi
16234{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16235echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16236
16237if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16238    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16239else
16240    :
16241fi
16242
16243fi
16244
16245lt_prog_compiler_wl_GCJ=
16246lt_prog_compiler_pic_GCJ=
16247lt_prog_compiler_static_GCJ=
16248
16249{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16250echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16251
16252  if test "$GCC" = yes; then
16253    lt_prog_compiler_wl_GCJ='-Wl,'
16254    lt_prog_compiler_static_GCJ='-static'
16255
16256    case $host_os in
16257      aix*)
16258      # All AIX code is PIC.
16259      if test "$host_cpu" = ia64; then
16260	# AIX 5 now supports IA64 processor
16261	lt_prog_compiler_static_GCJ='-Bstatic'
16262      fi
16263      ;;
16264
16265    amigaos*)
16266      # FIXME: we need at least 68020 code to build shared libraries, but
16267      # adding the `-m68020' flag to GCC prevents building anything better,
16268      # like `-m68040'.
16269      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16270      ;;
16271
16272    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16273      # PIC is the default for these OSes.
16274      ;;
16275
16276    mingw* | pw32* | os2*)
16277      # This hack is so that the source file can tell whether it is being
16278      # built for inclusion in a dll (and should export symbols for example).
16279      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16280      ;;
16281
16282    darwin* | rhapsody*)
16283      # PIC is the default on this platform
16284      # Common symbols not allowed in MH_DYLIB files
16285      lt_prog_compiler_pic_GCJ='-fno-common'
16286      ;;
16287
16288    interix3*)
16289      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16290      # Instead, we relocate shared libraries at runtime.
16291      ;;
16292
16293    msdosdjgpp*)
16294      # Just because we use GCC doesn't mean we suddenly get shared libraries
16295      # on systems that don't support them.
16296      lt_prog_compiler_can_build_shared_GCJ=no
16297      enable_shared=no
16298      ;;
16299
16300    sysv4*MP*)
16301      if test -d /usr/nec; then
16302	lt_prog_compiler_pic_GCJ=-Kconform_pic
16303      fi
16304      ;;
16305
16306    hpux*)
16307      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16308      # not for PA HP-UX.
16309      case $host_cpu in
16310      hppa*64*|ia64*)
16311	# +Z the default
16312	;;
16313      *)
16314	lt_prog_compiler_pic_GCJ='-fPIC'
16315	;;
16316      esac
16317      ;;
16318
16319    *)
16320      lt_prog_compiler_pic_GCJ='-fPIC'
16321      ;;
16322    esac
16323  else
16324    # PORTME Check for flag to pass linker flags through the system compiler.
16325    case $host_os in
16326    aix*)
16327      lt_prog_compiler_wl_GCJ='-Wl,'
16328      if test "$host_cpu" = ia64; then
16329	# AIX 5 now supports IA64 processor
16330	lt_prog_compiler_static_GCJ='-Bstatic'
16331      else
16332	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16333      fi
16334      ;;
16335      darwin*)
16336        # PIC is the default on this platform
16337        # Common symbols not allowed in MH_DYLIB files
16338       case $cc_basename in
16339         xlc*)
16340         lt_prog_compiler_pic_GCJ='-qnocommon'
16341         lt_prog_compiler_wl_GCJ='-Wl,'
16342         ;;
16343       esac
16344       ;;
16345
16346    mingw* | pw32* | os2*)
16347      # This hack is so that the source file can tell whether it is being
16348      # built for inclusion in a dll (and should export symbols for example).
16349      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16350      ;;
16351
16352    hpux9* | hpux10* | hpux11*)
16353      lt_prog_compiler_wl_GCJ='-Wl,'
16354      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16355      # not for PA HP-UX.
16356      case $host_cpu in
16357      hppa*64*|ia64*)
16358	# +Z the default
16359	;;
16360      *)
16361	lt_prog_compiler_pic_GCJ='+Z'
16362	;;
16363      esac
16364      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16365      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16366      ;;
16367
16368    irix5* | irix6* | nonstopux*)
16369      lt_prog_compiler_wl_GCJ='-Wl,'
16370      # PIC (with -KPIC) is the default.
16371      lt_prog_compiler_static_GCJ='-non_shared'
16372      ;;
16373
16374    newsos6)
16375      lt_prog_compiler_pic_GCJ='-KPIC'
16376      lt_prog_compiler_static_GCJ='-Bstatic'
16377      ;;
16378
16379    linux*)
16380      case $cc_basename in
16381      icc* | ecc*)
16382	lt_prog_compiler_wl_GCJ='-Wl,'
16383	lt_prog_compiler_pic_GCJ='-KPIC'
16384	lt_prog_compiler_static_GCJ='-static'
16385        ;;
16386      pgcc* | pgf77* | pgf90* | pgf95*)
16387        # Portland Group compilers (*not* the Pentium gcc compiler,
16388	# which looks to be a dead project)
16389	lt_prog_compiler_wl_GCJ='-Wl,'
16390	lt_prog_compiler_pic_GCJ='-fpic'
16391	lt_prog_compiler_static_GCJ='-Bstatic'
16392        ;;
16393      ccc*)
16394        lt_prog_compiler_wl_GCJ='-Wl,'
16395        # All Alpha code is PIC.
16396        lt_prog_compiler_static_GCJ='-non_shared'
16397        ;;
16398      esac
16399      ;;
16400
16401    osf3* | osf4* | osf5*)
16402      lt_prog_compiler_wl_GCJ='-Wl,'
16403      # All OSF/1 code is PIC.
16404      lt_prog_compiler_static_GCJ='-non_shared'
16405      ;;
16406
16407    solaris*)
16408      lt_prog_compiler_pic_GCJ='-KPIC'
16409      lt_prog_compiler_static_GCJ='-Bstatic'
16410      case $cc_basename in
16411      f77* | f90* | f95*)
16412	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16413      *)
16414	lt_prog_compiler_wl_GCJ='-Wl,';;
16415      esac
16416      ;;
16417
16418    sunos4*)
16419      lt_prog_compiler_wl_GCJ='-Qoption ld '
16420      lt_prog_compiler_pic_GCJ='-PIC'
16421      lt_prog_compiler_static_GCJ='-Bstatic'
16422      ;;
16423
16424    sysv4 | sysv4.2uw2* | sysv4.3*)
16425      lt_prog_compiler_wl_GCJ='-Wl,'
16426      lt_prog_compiler_pic_GCJ='-KPIC'
16427      lt_prog_compiler_static_GCJ='-Bstatic'
16428      ;;
16429
16430    sysv4*MP*)
16431      if test -d /usr/nec ;then
16432	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16433	lt_prog_compiler_static_GCJ='-Bstatic'
16434      fi
16435      ;;
16436
16437    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16438      lt_prog_compiler_wl_GCJ='-Wl,'
16439      lt_prog_compiler_pic_GCJ='-KPIC'
16440      lt_prog_compiler_static_GCJ='-Bstatic'
16441      ;;
16442
16443    unicos*)
16444      lt_prog_compiler_wl_GCJ='-Wl,'
16445      lt_prog_compiler_can_build_shared_GCJ=no
16446      ;;
16447
16448    uts4*)
16449      lt_prog_compiler_pic_GCJ='-pic'
16450      lt_prog_compiler_static_GCJ='-Bstatic'
16451      ;;
16452
16453    *)
16454      lt_prog_compiler_can_build_shared_GCJ=no
16455      ;;
16456    esac
16457  fi
16458
16459{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16460echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16461
16462#
16463# Check to make sure the PIC flag actually works.
16464#
16465if test -n "$lt_prog_compiler_pic_GCJ"; then
16466
16467{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16468echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16469if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16470  echo $ECHO_N "(cached) $ECHO_C" >&6
16471else
16472  lt_prog_compiler_pic_works_GCJ=no
16473  ac_outfile=conftest.$ac_objext
16474   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16475   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16476   # Insert the option either (1) after the last *FLAGS variable, or
16477   # (2) before a word containing "conftest.", or (3) at the end.
16478   # Note that $ac_compile itself does not contain backslashes and begins
16479   # with a dollar sign (not a hyphen), so the echo should work correctly.
16480   # The option is referenced via a variable to avoid confusing sed.
16481   lt_compile=`echo "$ac_compile" | $SED \
16482   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16483   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16484   -e 's:$: $lt_compiler_flag:'`
16485   (eval echo "\"\$as_me:16485: $lt_compile\"" >&5)
16486   (eval "$lt_compile" 2>conftest.err)
16487   ac_status=$?
16488   cat conftest.err >&5
16489   echo "$as_me:16489: \$? = $ac_status" >&5
16490   if (exit $ac_status) && test -s "$ac_outfile"; then
16491     # The compiler can only warn and ignore the option if not recognized
16492     # So say no if there are warnings other than the usual output.
16493     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16494     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16495     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16496       lt_prog_compiler_pic_works_GCJ=yes
16497     fi
16498   fi
16499   $rm conftest*
16500
16501fi
16502{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16503echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16504
16505if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16506    case $lt_prog_compiler_pic_GCJ in
16507     "" | " "*) ;;
16508     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16509     esac
16510else
16511    lt_prog_compiler_pic_GCJ=
16512     lt_prog_compiler_can_build_shared_GCJ=no
16513fi
16514
16515fi
16516case $host_os in
16517  # For platforms which do not support PIC, -DPIC is meaningless:
16518  *djgpp*)
16519    lt_prog_compiler_pic_GCJ=
16520    ;;
16521  *)
16522    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16523    ;;
16524esac
16525
16526#
16527# Check to make sure the static flag actually works.
16528#
16529wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16530{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16531echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16532if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16533  echo $ECHO_N "(cached) $ECHO_C" >&6
16534else
16535  lt_prog_compiler_static_works_GCJ=no
16536   save_LDFLAGS="$LDFLAGS"
16537   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16538   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16539   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16540     # The linker can only warn and ignore the option if not recognized
16541     # So say no if there are warnings
16542     if test -s conftest.err; then
16543       # Append any errors to the config.log.
16544       cat conftest.err 1>&5
16545       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16546       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16547       if diff conftest.exp conftest.er2 >/dev/null; then
16548         lt_prog_compiler_static_works_GCJ=yes
16549       fi
16550     else
16551       lt_prog_compiler_static_works_GCJ=yes
16552     fi
16553   fi
16554   $rm conftest*
16555   LDFLAGS="$save_LDFLAGS"
16556
16557fi
16558{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16559echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16560
16561if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16562    :
16563else
16564    lt_prog_compiler_static_GCJ=
16565fi
16566
16567
16568{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16569echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16570if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16571  echo $ECHO_N "(cached) $ECHO_C" >&6
16572else
16573  lt_cv_prog_compiler_c_o_GCJ=no
16574   $rm -r conftest 2>/dev/null
16575   mkdir conftest
16576   cd conftest
16577   mkdir out
16578   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16579
16580   lt_compiler_flag="-o out/conftest2.$ac_objext"
16581   # Insert the option either (1) after the last *FLAGS variable, or
16582   # (2) before a word containing "conftest.", or (3) at the end.
16583   # Note that $ac_compile itself does not contain backslashes and begins
16584   # with a dollar sign (not a hyphen), so the echo should work correctly.
16585   lt_compile=`echo "$ac_compile" | $SED \
16586   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16587   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16588   -e 's:$: $lt_compiler_flag:'`
16589   (eval echo "\"\$as_me:16589: $lt_compile\"" >&5)
16590   (eval "$lt_compile" 2>out/conftest.err)
16591   ac_status=$?
16592   cat out/conftest.err >&5
16593   echo "$as_me:16593: \$? = $ac_status" >&5
16594   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16595   then
16596     # The compiler can only warn and ignore the option if not recognized
16597     # So say no if there are warnings
16598     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16599     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16600     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16601       lt_cv_prog_compiler_c_o_GCJ=yes
16602     fi
16603   fi
16604   chmod u+w . 2>&5
16605   $rm conftest*
16606   # SGI C++ compiler will create directory out/ii_files/ for
16607   # template instantiation
16608   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16609   $rm out/* && rmdir out
16610   cd ..
16611   rmdir conftest
16612   $rm conftest*
16613
16614fi
16615{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16616echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16617
16618
16619hard_links="nottested"
16620if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16621  # do not overwrite the value of need_locks provided by the user
16622  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16623echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16624  hard_links=yes
16625  $rm conftest*
16626  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16627  touch conftest.a
16628  ln conftest.a conftest.b 2>&5 || hard_links=no
16629  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16630  { echo "$as_me:$LINENO: result: $hard_links" >&5
16631echo "${ECHO_T}$hard_links" >&6; }
16632  if test "$hard_links" = no; then
16633    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16634echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16635    need_locks=warn
16636  fi
16637else
16638  need_locks=no
16639fi
16640
16641{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16642echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16643
16644  runpath_var=
16645  allow_undefined_flag_GCJ=
16646  enable_shared_with_static_runtimes_GCJ=no
16647  archive_cmds_GCJ=
16648  archive_expsym_cmds_GCJ=
16649  old_archive_From_new_cmds_GCJ=
16650  old_archive_from_expsyms_cmds_GCJ=
16651  export_dynamic_flag_spec_GCJ=
16652  whole_archive_flag_spec_GCJ=
16653  thread_safe_flag_spec_GCJ=
16654  hardcode_libdir_flag_spec_GCJ=
16655  hardcode_libdir_flag_spec_ld_GCJ=
16656  hardcode_libdir_separator_GCJ=
16657  hardcode_direct_GCJ=no
16658  hardcode_minus_L_GCJ=no
16659  hardcode_shlibpath_var_GCJ=unsupported
16660  link_all_deplibs_GCJ=unknown
16661  hardcode_automatic_GCJ=no
16662  module_cmds_GCJ=
16663  module_expsym_cmds_GCJ=
16664  always_export_symbols_GCJ=no
16665  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16666  # include_expsyms should be a list of space-separated symbols to be *always*
16667  # included in the symbol list
16668  include_expsyms_GCJ=
16669  # exclude_expsyms can be an extended regexp of symbols to exclude
16670  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16671  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16672  # as well as any symbol that contains `d'.
16673  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16674  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16675  # platforms (ab)use it in PIC code, but their linkers get confused if
16676  # the symbol is explicitly referenced.  Since portable code cannot
16677  # rely on this symbol name, it's probably fine to never include it in
16678  # preloaded symbol tables.
16679  extract_expsyms_cmds=
16680  # Just being paranoid about ensuring that cc_basename is set.
16681  for cc_temp in $compiler""; do
16682  case $cc_temp in
16683    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16684    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16685    \-*) ;;
16686    *) break;;
16687  esac
16688done
16689cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16690
16691  case $host_os in
16692  cygwin* | mingw* | pw32*)
16693    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16694    # When not using gcc, we currently assume that we are using
16695    # Microsoft Visual C++.
16696    if test "$GCC" != yes; then
16697      with_gnu_ld=no
16698    fi
16699    ;;
16700  interix*)
16701    # we just hope/assume this is gcc and not c89 (= MSVC++)
16702    with_gnu_ld=yes
16703    ;;
16704  openbsd*)
16705    with_gnu_ld=no
16706    ;;
16707  esac
16708
16709  ld_shlibs_GCJ=yes
16710  if test "$with_gnu_ld" = yes; then
16711    # If archive_cmds runs LD, not CC, wlarc should be empty
16712    wlarc='${wl}'
16713
16714    # Set some defaults for GNU ld with shared library support. These
16715    # are reset later if shared libraries are not supported. Putting them
16716    # here allows them to be overridden if necessary.
16717    runpath_var=LD_RUN_PATH
16718    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16719    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16720    # ancient GNU ld didn't support --whole-archive et. al.
16721    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16722	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16723      else
16724  	whole_archive_flag_spec_GCJ=
16725    fi
16726    supports_anon_versioning=no
16727    case `$LD -v 2>/dev/null` in
16728      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16729      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16730      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16731      *\ 2.11.*) ;; # other 2.11 versions
16732      *) supports_anon_versioning=yes ;;
16733    esac
16734
16735    # See if GNU ld supports shared libraries.
16736    case $host_os in
16737    aix3* | aix4* | aix5*)
16738      # On AIX/PPC, the GNU linker is very broken
16739      if test "$host_cpu" != ia64; then
16740	ld_shlibs_GCJ=no
16741	cat <<EOF 1>&2
16742
16743*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16744*** to be unable to reliably create shared libraries on AIX.
16745*** Therefore, libtool is disabling shared libraries support.  If you
16746*** really care for shared libraries, you may want to modify your PATH
16747*** so that a non-GNU linker is found, and then restart.
16748
16749EOF
16750      fi
16751      ;;
16752
16753    amigaos*)
16754      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)'
16755      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16756      hardcode_minus_L_GCJ=yes
16757
16758      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16759      # that the semantics of dynamic libraries on AmigaOS, at least up
16760      # to version 4, is to share data among multiple programs linked
16761      # with the same dynamic library.  Since this doesn't match the
16762      # behavior of shared libraries on other platforms, we can't use
16763      # them.
16764      ld_shlibs_GCJ=no
16765      ;;
16766
16767    beos*)
16768      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16769	allow_undefined_flag_GCJ=unsupported
16770	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16771	# support --undefined.  This deserves some investigation.  FIXME
16772	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16773      else
16774	ld_shlibs_GCJ=no
16775      fi
16776      ;;
16777
16778    cygwin* | mingw* | pw32*)
16779      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16780      # as there is no search path for DLLs.
16781      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16782      allow_undefined_flag_GCJ=unsupported
16783      always_export_symbols_GCJ=no
16784      enable_shared_with_static_runtimes_GCJ=yes
16785      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16786
16787      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16788        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16789	# If the export-symbols file already is a .def file (1st line
16790	# is EXPORTS), use it as is; otherwise, prepend...
16791	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16792	  cp $export_symbols $output_objdir/$soname.def;
16793	else
16794	  echo EXPORTS > $output_objdir/$soname.def;
16795	  cat $export_symbols >> $output_objdir/$soname.def;
16796	fi~
16797	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16798      else
16799	ld_shlibs_GCJ=no
16800      fi
16801      ;;
16802
16803    interix3*)
16804      hardcode_direct_GCJ=no
16805      hardcode_shlibpath_var_GCJ=no
16806      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16807      export_dynamic_flag_spec_GCJ='${wl}-E'
16808      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16809      # Instead, shared libraries are loaded at an image base (0x10000000 by
16810      # default) and relocated if they conflict, which is a slow very memory
16811      # consuming and fragmenting process.  To avoid this, we pick a random,
16812      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16813      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16814      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'
16815      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'
16816      ;;
16817
16818    linux*)
16819      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16820	tmp_addflag=
16821	case $cc_basename,$host_cpu in
16822	pgcc*)				# Portland Group C compiler
16823	  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'
16824	  tmp_addflag=' $pic_flag'
16825	  ;;
16826	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16827	  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'
16828	  tmp_addflag=' $pic_flag -Mnomain' ;;
16829	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16830	  tmp_addflag=' -i_dynamic' ;;
16831	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16832	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16833	ifc* | ifort*)			# Intel Fortran compiler
16834	  tmp_addflag=' -nofor_main' ;;
16835	esac
16836	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16837
16838	if test $supports_anon_versioning = yes; then
16839	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16840  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16841  $echo "local: *; };" >> $output_objdir/$libname.ver~
16842	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16843	fi
16844      else
16845	ld_shlibs_GCJ=no
16846      fi
16847      ;;
16848
16849    netbsd*)
16850      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16851	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16852	wlarc=
16853      else
16854	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16855	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16856      fi
16857      ;;
16858
16859    solaris*)
16860      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16861	ld_shlibs_GCJ=no
16862	cat <<EOF 1>&2
16863
16864*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16865*** create shared libraries on Solaris systems.  Therefore, libtool
16866*** is disabling shared libraries support.  We urge you to upgrade GNU
16867*** binutils to release 2.9.1 or newer.  Another option is to modify
16868*** your PATH or compiler configuration so that the native linker is
16869*** used, and then restart.
16870
16871EOF
16872      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16873	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16874	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16875      else
16876	ld_shlibs_GCJ=no
16877      fi
16878      ;;
16879
16880    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16881      case `$LD -v 2>&1` in
16882        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16883	ld_shlibs_GCJ=no
16884	cat <<_LT_EOF 1>&2
16885
16886*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16887*** reliably create shared libraries on SCO systems.  Therefore, libtool
16888*** is disabling shared libraries support.  We urge you to upgrade GNU
16889*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16890*** your PATH or compiler configuration so that the native linker is
16891*** used, and then restart.
16892
16893_LT_EOF
16894	;;
16895	*)
16896	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16897	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16898	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16899	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16900	  else
16901	    ld_shlibs_GCJ=no
16902	  fi
16903	;;
16904      esac
16905      ;;
16906
16907    sunos4*)
16908      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16909      wlarc=
16910      hardcode_direct_GCJ=yes
16911      hardcode_shlibpath_var_GCJ=no
16912      ;;
16913
16914    *)
16915      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16916	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16917	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16918      else
16919	ld_shlibs_GCJ=no
16920      fi
16921      ;;
16922    esac
16923
16924    if test "$ld_shlibs_GCJ" = no; then
16925      runpath_var=
16926      hardcode_libdir_flag_spec_GCJ=
16927      export_dynamic_flag_spec_GCJ=
16928      whole_archive_flag_spec_GCJ=
16929    fi
16930  else
16931    # PORTME fill in a description of your system's linker (not GNU ld)
16932    case $host_os in
16933    aix3*)
16934      allow_undefined_flag_GCJ=unsupported
16935      always_export_symbols_GCJ=yes
16936      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'
16937      # Note: this linker hardcodes the directories in LIBPATH if there
16938      # are no directories specified by -L.
16939      hardcode_minus_L_GCJ=yes
16940      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16941	# Neither direct hardcoding nor static linking is supported with a
16942	# broken collect2.
16943	hardcode_direct_GCJ=unsupported
16944      fi
16945      ;;
16946
16947    aix4* | aix5*)
16948      if test "$host_cpu" = ia64; then
16949	# On IA64, the linker does run time linking by default, so we don't
16950	# have to do anything special.
16951	aix_use_runtimelinking=no
16952	exp_sym_flag='-Bexport'
16953	no_entry_flag=""
16954      else
16955	# If we're using GNU nm, then we don't want the "-C" option.
16956	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16957	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16958	  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'
16959	else
16960	  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'
16961	fi
16962	aix_use_runtimelinking=no
16963
16964	# Test if we are trying to use run time linking or normal
16965	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16966	# need to do runtime linking.
16967	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16968	  for ld_flag in $LDFLAGS; do
16969  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16970  	    aix_use_runtimelinking=yes
16971  	    break
16972  	  fi
16973	  done
16974	  ;;
16975	esac
16976
16977	exp_sym_flag='-bexport'
16978	no_entry_flag='-bnoentry'
16979      fi
16980
16981      # When large executables or shared objects are built, AIX ld can
16982      # have problems creating the table of contents.  If linking a library
16983      # or program results in "error TOC overflow" add -mminimal-toc to
16984      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16985      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16986
16987      archive_cmds_GCJ=''
16988      hardcode_direct_GCJ=yes
16989      hardcode_libdir_separator_GCJ=':'
16990      link_all_deplibs_GCJ=yes
16991
16992      if test "$GCC" = yes; then
16993	case $host_os in aix4.[012]|aix4.[012].*)
16994	# We only want to do this on AIX 4.2 and lower, the check
16995	# below for broken collect2 doesn't work under 4.3+
16996	  collect2name=`${CC} -print-prog-name=collect2`
16997	  if test -f "$collect2name" && \
16998  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16999	  then
17000  	  # We have reworked collect2
17001  	  hardcode_direct_GCJ=yes
17002	  else
17003  	  # We have old collect2
17004  	  hardcode_direct_GCJ=unsupported
17005  	  # It fails to find uninstalled libraries when the uninstalled
17006  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17007  	  # to unsupported forces relinking
17008  	  hardcode_minus_L_GCJ=yes
17009  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17010  	  hardcode_libdir_separator_GCJ=
17011	  fi
17012	  ;;
17013	esac
17014	shared_flag='-shared'
17015	if test "$aix_use_runtimelinking" = yes; then
17016	  shared_flag="$shared_flag "'${wl}-G'
17017	fi
17018      else
17019	# not using gcc
17020	if test "$host_cpu" = ia64; then
17021  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17022  	# chokes on -Wl,-G. The following line is correct:
17023	  shared_flag='-G'
17024	else
17025	  if test "$aix_use_runtimelinking" = yes; then
17026	    shared_flag='${wl}-G'
17027	  else
17028	    shared_flag='${wl}-bM:SRE'
17029	  fi
17030	fi
17031      fi
17032
17033      # It seems that -bexpall does not export symbols beginning with
17034      # underscore (_), so it is better to generate a list of symbols to export.
17035      always_export_symbols_GCJ=yes
17036      if test "$aix_use_runtimelinking" = yes; then
17037	# Warning - without using the other runtime loading flags (-brtl),
17038	# -berok will link without error, but may produce a broken library.
17039	allow_undefined_flag_GCJ='-berok'
17040       # Determine the default libpath from the value encoded in an empty executable.
17041       cat >conftest.$ac_ext <<_ACEOF
17042/* confdefs.h.  */
17043_ACEOF
17044cat confdefs.h >>conftest.$ac_ext
17045cat >>conftest.$ac_ext <<_ACEOF
17046/* end confdefs.h.  */
17047
17048int
17049main ()
17050{
17051
17052  ;
17053  return 0;
17054}
17055_ACEOF
17056rm -f conftest.$ac_objext conftest$ac_exeext
17057if { (ac_try="$ac_link"
17058case "(($ac_try" in
17059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060  *) ac_try_echo=$ac_try;;
17061esac
17062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063  (eval "$ac_link") 2>conftest.er1
17064  ac_status=$?
17065  grep -v '^ *+' conftest.er1 >conftest.err
17066  rm -f conftest.er1
17067  cat conftest.err >&5
17068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069  (exit $ac_status); } && {
17070	 test -z "$ac_c_werror_flag" ||
17071	 test ! -s conftest.err
17072       } && test -s conftest$ac_exeext &&
17073       $as_test_x conftest$ac_exeext; then
17074
17075aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17076}'`
17077# Check for a 64-bit object if we didn't find anything.
17078if 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; }
17079}'`; fi
17080else
17081  echo "$as_me: failed program was:" >&5
17082sed 's/^/| /' conftest.$ac_ext >&5
17083
17084
17085fi
17086
17087rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17088      conftest$ac_exeext conftest.$ac_ext
17089if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17090
17091       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17092	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"
17093       else
17094	if test "$host_cpu" = ia64; then
17095	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17096	  allow_undefined_flag_GCJ="-z nodefs"
17097	  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"
17098	else
17099	 # Determine the default libpath from the value encoded in an empty executable.
17100	 cat >conftest.$ac_ext <<_ACEOF
17101/* confdefs.h.  */
17102_ACEOF
17103cat confdefs.h >>conftest.$ac_ext
17104cat >>conftest.$ac_ext <<_ACEOF
17105/* end confdefs.h.  */
17106
17107int
17108main ()
17109{
17110
17111  ;
17112  return 0;
17113}
17114_ACEOF
17115rm -f conftest.$ac_objext conftest$ac_exeext
17116if { (ac_try="$ac_link"
17117case "(($ac_try" in
17118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119  *) ac_try_echo=$ac_try;;
17120esac
17121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122  (eval "$ac_link") 2>conftest.er1
17123  ac_status=$?
17124  grep -v '^ *+' conftest.er1 >conftest.err
17125  rm -f conftest.er1
17126  cat conftest.err >&5
17127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128  (exit $ac_status); } && {
17129	 test -z "$ac_c_werror_flag" ||
17130	 test ! -s conftest.err
17131       } && test -s conftest$ac_exeext &&
17132       $as_test_x conftest$ac_exeext; then
17133
17134aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17135}'`
17136# Check for a 64-bit object if we didn't find anything.
17137if 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; }
17138}'`; fi
17139else
17140  echo "$as_me: failed program was:" >&5
17141sed 's/^/| /' conftest.$ac_ext >&5
17142
17143
17144fi
17145
17146rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17147      conftest$ac_exeext conftest.$ac_ext
17148if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17149
17150	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17151	  # Warning - without using the other run time loading flags,
17152	  # -berok will link without error, but may produce a broken library.
17153	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17154	  allow_undefined_flag_GCJ=' ${wl}-berok'
17155	  # Exported symbols can be pulled into shared objects from archives
17156	  whole_archive_flag_spec_GCJ='$convenience'
17157	  archive_cmds_need_lc_GCJ=yes
17158	  # This is similar to how AIX traditionally builds its shared libraries.
17159	  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'
17160	fi
17161      fi
17162      ;;
17163
17164    amigaos*)
17165      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)'
17166      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17167      hardcode_minus_L_GCJ=yes
17168      # see comment about different semantics on the GNU ld section
17169      ld_shlibs_GCJ=no
17170      ;;
17171
17172    bsdi[45]*)
17173      export_dynamic_flag_spec_GCJ=-rdynamic
17174      ;;
17175
17176    cygwin* | mingw* | pw32*)
17177      # When not using gcc, we currently assume that we are using
17178      # Microsoft Visual C++.
17179      # hardcode_libdir_flag_spec is actually meaningless, as there is
17180      # no search path for DLLs.
17181      hardcode_libdir_flag_spec_GCJ=' '
17182      allow_undefined_flag_GCJ=unsupported
17183      # Tell ltmain to make .lib files, not .a files.
17184      libext=lib
17185      # Tell ltmain to make .dll files, not .so files.
17186      shrext_cmds=".dll"
17187      # FIXME: Setting linknames here is a bad hack.
17188      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17189      # The linker will automatically build a .lib file if we build a DLL.
17190      old_archive_From_new_cmds_GCJ='true'
17191      # FIXME: Should let the user specify the lib program.
17192      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17193      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17194      enable_shared_with_static_runtimes_GCJ=yes
17195      ;;
17196
17197    darwin* | rhapsody*)
17198      case $host_os in
17199        rhapsody* | darwin1.[012])
17200         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17201         ;;
17202       *) # Darwin 1.3 on
17203         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17204           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17205         else
17206           case ${MACOSX_DEPLOYMENT_TARGET} in
17207             10.[012])
17208               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17209               ;;
17210             10.*)
17211               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17212               ;;
17213           esac
17214         fi
17215         ;;
17216      esac
17217      archive_cmds_need_lc_GCJ=no
17218      hardcode_direct_GCJ=no
17219      hardcode_automatic_GCJ=yes
17220      hardcode_shlibpath_var_GCJ=unsupported
17221      whole_archive_flag_spec_GCJ=''
17222      link_all_deplibs_GCJ=yes
17223    if test "$GCC" = yes ; then
17224    	output_verbose_link_cmd='echo'
17225        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17226      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17227      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17228      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}'
17229      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}'
17230    else
17231      case $cc_basename in
17232        xlc*)
17233         output_verbose_link_cmd='echo'
17234         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17235         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17236          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17237         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}'
17238          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}'
17239          ;;
17240       *)
17241         ld_shlibs_GCJ=no
17242          ;;
17243      esac
17244    fi
17245      ;;
17246
17247    dgux*)
17248      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17249      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17250      hardcode_shlibpath_var_GCJ=no
17251      ;;
17252
17253    freebsd1*)
17254      ld_shlibs_GCJ=no
17255      ;;
17256
17257    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17258    # support.  Future versions do this automatically, but an explicit c++rt0.o
17259    # does not break anything, and helps significantly (at the cost of a little
17260    # extra space).
17261    freebsd2.2*)
17262      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17263      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17264      hardcode_direct_GCJ=yes
17265      hardcode_shlibpath_var_GCJ=no
17266      ;;
17267
17268    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17269    freebsd2*)
17270      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17271      hardcode_direct_GCJ=yes
17272      hardcode_minus_L_GCJ=yes
17273      hardcode_shlibpath_var_GCJ=no
17274      ;;
17275
17276    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17277    freebsd* | kfreebsd*-gnu | dragonfly*)
17278      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17279      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17280      hardcode_direct_GCJ=yes
17281      hardcode_shlibpath_var_GCJ=no
17282      ;;
17283
17284    hpux9*)
17285      if test "$GCC" = yes; then
17286	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'
17287      else
17288	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'
17289      fi
17290      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17291      hardcode_libdir_separator_GCJ=:
17292      hardcode_direct_GCJ=yes
17293
17294      # hardcode_minus_L: Not really in the search PATH,
17295      # but as the default location of the library.
17296      hardcode_minus_L_GCJ=yes
17297      export_dynamic_flag_spec_GCJ='${wl}-E'
17298      ;;
17299
17300    hpux10*)
17301      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17302	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17303      else
17304	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17305      fi
17306      if test "$with_gnu_ld" = no; then
17307	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17308	hardcode_libdir_separator_GCJ=:
17309
17310	hardcode_direct_GCJ=yes
17311	export_dynamic_flag_spec_GCJ='${wl}-E'
17312
17313	# hardcode_minus_L: Not really in the search PATH,
17314	# but as the default location of the library.
17315	hardcode_minus_L_GCJ=yes
17316      fi
17317      ;;
17318
17319    hpux11*)
17320      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17321	case $host_cpu in
17322	hppa*64*)
17323	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17324	  ;;
17325	ia64*)
17326	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17327	  ;;
17328	*)
17329	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17330	  ;;
17331	esac
17332      else
17333	case $host_cpu in
17334	hppa*64*)
17335	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17336	  ;;
17337	ia64*)
17338	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17339	  ;;
17340	*)
17341	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17342	  ;;
17343	esac
17344      fi
17345      if test "$with_gnu_ld" = no; then
17346	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17347	hardcode_libdir_separator_GCJ=:
17348
17349	case $host_cpu in
17350	hppa*64*|ia64*)
17351	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17352	  hardcode_direct_GCJ=no
17353	  hardcode_shlibpath_var_GCJ=no
17354	  ;;
17355	*)
17356	  hardcode_direct_GCJ=yes
17357	  export_dynamic_flag_spec_GCJ='${wl}-E'
17358
17359	  # hardcode_minus_L: Not really in the search PATH,
17360	  # but as the default location of the library.
17361	  hardcode_minus_L_GCJ=yes
17362	  ;;
17363	esac
17364      fi
17365      ;;
17366
17367    irix5* | irix6* | nonstopux*)
17368      if test "$GCC" = yes; then
17369	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'
17370      else
17371	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'
17372	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17373      fi
17374      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17375      hardcode_libdir_separator_GCJ=:
17376      link_all_deplibs_GCJ=yes
17377      ;;
17378
17379    netbsd*)
17380      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17381	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17382      else
17383	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17384      fi
17385      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17386      hardcode_direct_GCJ=yes
17387      hardcode_shlibpath_var_GCJ=no
17388      ;;
17389
17390    newsos6)
17391      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17392      hardcode_direct_GCJ=yes
17393      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17394      hardcode_libdir_separator_GCJ=:
17395      hardcode_shlibpath_var_GCJ=no
17396      ;;
17397
17398    openbsd*)
17399      hardcode_direct_GCJ=yes
17400      hardcode_shlibpath_var_GCJ=no
17401      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17402	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17403	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17404	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17405	export_dynamic_flag_spec_GCJ='${wl}-E'
17406      else
17407       case $host_os in
17408	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17409	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17410	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17411	   ;;
17412	 *)
17413	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17414	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17415	   ;;
17416       esac
17417      fi
17418      ;;
17419
17420    os2*)
17421      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17422      hardcode_minus_L_GCJ=yes
17423      allow_undefined_flag_GCJ=unsupported
17424      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'
17425      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17426      ;;
17427
17428    osf3*)
17429      if test "$GCC" = yes; then
17430	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17431	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'
17432      else
17433	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17434	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'
17435      fi
17436      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17437      hardcode_libdir_separator_GCJ=:
17438      ;;
17439
17440    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17441      if test "$GCC" = yes; then
17442	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17443	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'
17444	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17445      else
17446	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17447	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'
17448	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~
17449	$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'
17450
17451	# Both c and cxx compiler support -rpath directly
17452	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17453      fi
17454      hardcode_libdir_separator_GCJ=:
17455      ;;
17456
17457    solaris*)
17458      no_undefined_flag_GCJ=' -z text'
17459      if test "$GCC" = yes; then
17460	wlarc='${wl}'
17461	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17462	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17463	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17464      else
17465	wlarc=''
17466	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17467	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17468  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17469      fi
17470      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17471      hardcode_shlibpath_var_GCJ=no
17472      case $host_os in
17473      solaris2.[0-5] | solaris2.[0-5].*) ;;
17474      *)
17475 	# The compiler driver will combine linker options so we
17476 	# cannot just pass the convience library names through
17477 	# without $wl, iff we do not link with $LD.
17478 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17479 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17480 	case $wlarc in
17481 	'')
17482 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17483 	*)
17484 	  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' ;;
17485 	esac ;;
17486      esac
17487      link_all_deplibs_GCJ=yes
17488      ;;
17489
17490    sunos4*)
17491      if test "x$host_vendor" = xsequent; then
17492	# Use $CC to link under sequent, because it throws in some extra .o
17493	# files that make .init and .fini sections work.
17494	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17495      else
17496	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17497      fi
17498      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17499      hardcode_direct_GCJ=yes
17500      hardcode_minus_L_GCJ=yes
17501      hardcode_shlibpath_var_GCJ=no
17502      ;;
17503
17504    sysv4)
17505      case $host_vendor in
17506	sni)
17507	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17508	  hardcode_direct_GCJ=yes # is this really true???
17509	;;
17510	siemens)
17511	  ## LD is ld it makes a PLAMLIB
17512	  ## CC just makes a GrossModule.
17513	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17514	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17515	  hardcode_direct_GCJ=no
17516        ;;
17517	motorola)
17518	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17519	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17520	;;
17521      esac
17522      runpath_var='LD_RUN_PATH'
17523      hardcode_shlibpath_var_GCJ=no
17524      ;;
17525
17526    sysv4.3*)
17527      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17528      hardcode_shlibpath_var_GCJ=no
17529      export_dynamic_flag_spec_GCJ='-Bexport'
17530      ;;
17531
17532    sysv4*MP*)
17533      if test -d /usr/nec; then
17534	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17535	hardcode_shlibpath_var_GCJ=no
17536	runpath_var=LD_RUN_PATH
17537	hardcode_runpath_var=yes
17538	ld_shlibs_GCJ=yes
17539      fi
17540      ;;
17541
17542    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17543      no_undefined_flag_GCJ='${wl}-z,text'
17544      archive_cmds_need_lc_GCJ=no
17545      hardcode_shlibpath_var_GCJ=no
17546      runpath_var='LD_RUN_PATH'
17547
17548      if test "$GCC" = yes; then
17549	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17550	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17551      else
17552	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17553	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17554      fi
17555      ;;
17556
17557    sysv5* | sco3.2v5* | sco5v6*)
17558      # Note: We can NOT use -z defs as we might desire, because we do not
17559      # link with -lc, and that would cause any symbols used from libc to
17560      # always be unresolved, which means just about no library would
17561      # ever link correctly.  If we're not using GNU ld we use -z text
17562      # though, which does catch some bad symbols but isn't as heavy-handed
17563      # as -z defs.
17564      no_undefined_flag_GCJ='${wl}-z,text'
17565      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17566      archive_cmds_need_lc_GCJ=no
17567      hardcode_shlibpath_var_GCJ=no
17568      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17569      hardcode_libdir_separator_GCJ=':'
17570      link_all_deplibs_GCJ=yes
17571      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17572      runpath_var='LD_RUN_PATH'
17573
17574      if test "$GCC" = yes; then
17575	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17576	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17577      else
17578	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17579	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17580      fi
17581      ;;
17582
17583    uts4*)
17584      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17585      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17586      hardcode_shlibpath_var_GCJ=no
17587      ;;
17588
17589    *)
17590      ld_shlibs_GCJ=no
17591      ;;
17592    esac
17593  fi
17594
17595{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17596echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17597test "$ld_shlibs_GCJ" = no && can_build_shared=no
17598
17599#
17600# Do we need to explicitly link libc?
17601#
17602case "x$archive_cmds_need_lc_GCJ" in
17603x|xyes)
17604  # Assume -lc should be added
17605  archive_cmds_need_lc_GCJ=yes
17606
17607  if test "$enable_shared" = yes && test "$GCC" = yes; then
17608    case $archive_cmds_GCJ in
17609    *'~'*)
17610      # FIXME: we may have to deal with multi-command sequences.
17611      ;;
17612    '$CC '*)
17613      # Test whether the compiler implicitly links with -lc since on some
17614      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17615      # to ld, don't add -lc before -lgcc.
17616      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17617echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17618      $rm conftest*
17619      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17620
17621      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17622  (eval $ac_compile) 2>&5
17623  ac_status=$?
17624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625  (exit $ac_status); } 2>conftest.err; then
17626        soname=conftest
17627        lib=conftest
17628        libobjs=conftest.$ac_objext
17629        deplibs=
17630        wl=$lt_prog_compiler_wl_GCJ
17631	pic_flag=$lt_prog_compiler_pic_GCJ
17632        compiler_flags=-v
17633        linker_flags=-v
17634        verstring=
17635        output_objdir=.
17636        libname=conftest
17637        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17638        allow_undefined_flag_GCJ=
17639        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17640  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17641  ac_status=$?
17642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643  (exit $ac_status); }
17644        then
17645	  archive_cmds_need_lc_GCJ=no
17646        else
17647	  archive_cmds_need_lc_GCJ=yes
17648        fi
17649        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17650      else
17651        cat conftest.err 1>&5
17652      fi
17653      $rm conftest*
17654      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17655echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17656      ;;
17657    esac
17658  fi
17659  ;;
17660esac
17661
17662{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17663echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17664library_names_spec=
17665libname_spec='lib$name'
17666soname_spec=
17667shrext_cmds=".so"
17668postinstall_cmds=
17669postuninstall_cmds=
17670finish_cmds=
17671finish_eval=
17672shlibpath_var=
17673shlibpath_overrides_runpath=unknown
17674version_type=none
17675dynamic_linker="$host_os ld.so"
17676sys_lib_dlsearch_path_spec="/lib /usr/lib"
17677if test "$GCC" = yes; then
17678  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17679  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17680    # if the path contains ";" then we assume it to be the separator
17681    # otherwise default to the standard path separator (i.e. ":") - it is
17682    # assumed that no part of a normal pathname contains ";" but that should
17683    # okay in the real world where ";" in dirpaths is itself problematic.
17684    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17685  else
17686    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17687  fi
17688else
17689  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17690fi
17691need_lib_prefix=unknown
17692hardcode_into_libs=no
17693
17694# when you set need_version to no, make sure it does not cause -set_version
17695# flags to be left without arguments
17696need_version=unknown
17697
17698case $host_os in
17699aix3*)
17700  version_type=linux
17701  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17702  shlibpath_var=LIBPATH
17703
17704  # AIX 3 has no versioning support, so we append a major version to the name.
17705  soname_spec='${libname}${release}${shared_ext}$major'
17706  ;;
17707
17708aix4* | aix5*)
17709  version_type=linux
17710  need_lib_prefix=no
17711  need_version=no
17712  hardcode_into_libs=yes
17713  if test "$host_cpu" = ia64; then
17714    # AIX 5 supports IA64
17715    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17716    shlibpath_var=LD_LIBRARY_PATH
17717  else
17718    # With GCC up to 2.95.x, collect2 would create an import file
17719    # for dependence libraries.  The import file would start with
17720    # the line `#! .'.  This would cause the generated library to
17721    # depend on `.', always an invalid library.  This was fixed in
17722    # development snapshots of GCC prior to 3.0.
17723    case $host_os in
17724      aix4 | aix4.[01] | aix4.[01].*)
17725      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17726	   echo ' yes '
17727	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17728	:
17729      else
17730	can_build_shared=no
17731      fi
17732      ;;
17733    esac
17734    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17735    # soname into executable. Probably we can add versioning support to
17736    # collect2, so additional links can be useful in future.
17737    if test "$aix_use_runtimelinking" = yes; then
17738      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17739      # instead of lib<name>.a to let people know that these are not
17740      # typical AIX shared libraries.
17741      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17742    else
17743      # We preserve .a as extension for shared libraries through AIX4.2
17744      # and later when we are not doing run time linking.
17745      library_names_spec='${libname}${release}.a $libname.a'
17746      soname_spec='${libname}${release}${shared_ext}$major'
17747    fi
17748    shlibpath_var=LIBPATH
17749  fi
17750  ;;
17751
17752amigaos*)
17753  library_names_spec='$libname.ixlibrary $libname.a'
17754  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17755  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'
17756  ;;
17757
17758beos*)
17759  library_names_spec='${libname}${shared_ext}'
17760  dynamic_linker="$host_os ld.so"
17761  shlibpath_var=LIBRARY_PATH
17762  ;;
17763
17764bsdi[45]*)
17765  version_type=linux
17766  need_version=no
17767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17768  soname_spec='${libname}${release}${shared_ext}$major'
17769  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17770  shlibpath_var=LD_LIBRARY_PATH
17771  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17772  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17773  # the default ld.so.conf also contains /usr/contrib/lib and
17774  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17775  # libtool to hard-code these into programs
17776  ;;
17777
17778cygwin* | mingw* | pw32*)
17779  version_type=windows
17780  shrext_cmds=".dll"
17781  need_version=no
17782  need_lib_prefix=no
17783
17784  case $GCC,$host_os in
17785  yes,cygwin* | yes,mingw* | yes,pw32*)
17786    library_names_spec='$libname.dll.a'
17787    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17788    postinstall_cmds='base_file=`basename \${file}`~
17789      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17790      dldir=$destdir/`dirname \$dlpath`~
17791      test -d \$dldir || mkdir -p \$dldir~
17792      $install_prog $dir/$dlname \$dldir/$dlname~
17793      chmod a+x \$dldir/$dlname'
17794    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17795      dlpath=$dir/\$dldll~
17796       $rm \$dlpath'
17797    shlibpath_overrides_runpath=yes
17798
17799    case $host_os in
17800    cygwin*)
17801      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17802      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17803      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17804      ;;
17805    mingw*)
17806      # MinGW DLLs use traditional 'lib' prefix
17807      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17808      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17809      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17810        # It is most probably a Windows format PATH printed by
17811        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17812        # path with ; separators, and with drive letters. We can handle the
17813        # drive letters (cygwin fileutils understands them), so leave them,
17814        # especially as we might pass files found there to a mingw objdump,
17815        # which wouldn't understand a cygwinified path. Ahh.
17816        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17817      else
17818        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17819      fi
17820      ;;
17821    pw32*)
17822      # pw32 DLLs use 'pw' prefix rather than 'lib'
17823      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17824      ;;
17825    esac
17826    ;;
17827
17828  *)
17829    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17830    ;;
17831  esac
17832  dynamic_linker='Win32 ld.exe'
17833  # FIXME: first we should search . and the directory the executable is in
17834  shlibpath_var=PATH
17835  ;;
17836
17837darwin* | rhapsody*)
17838  dynamic_linker="$host_os dyld"
17839  version_type=darwin
17840  need_lib_prefix=no
17841  need_version=no
17842  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17843  soname_spec='${libname}${release}${major}$shared_ext'
17844  shlibpath_overrides_runpath=yes
17845  shlibpath_var=DYLD_LIBRARY_PATH
17846  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17847  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17848  if test "$GCC" = yes; then
17849    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"`
17850  else
17851    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17852  fi
17853  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17854  ;;
17855
17856dgux*)
17857  version_type=linux
17858  need_lib_prefix=no
17859  need_version=no
17860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17861  soname_spec='${libname}${release}${shared_ext}$major'
17862  shlibpath_var=LD_LIBRARY_PATH
17863  ;;
17864
17865freebsd1*)
17866  dynamic_linker=no
17867  ;;
17868
17869kfreebsd*-gnu)
17870  version_type=linux
17871  need_lib_prefix=no
17872  need_version=no
17873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17874  soname_spec='${libname}${release}${shared_ext}$major'
17875  shlibpath_var=LD_LIBRARY_PATH
17876  shlibpath_overrides_runpath=no
17877  hardcode_into_libs=yes
17878  dynamic_linker='GNU ld.so'
17879  ;;
17880
17881freebsd* | dragonfly*)
17882  # DragonFly does not have aout.  When/if they implement a new
17883  # versioning mechanism, adjust this.
17884  if test -x /usr/bin/objformat; then
17885    objformat=`/usr/bin/objformat`
17886  else
17887    case $host_os in
17888    freebsd[123]*) objformat=aout ;;
17889    *) objformat=elf ;;
17890    esac
17891  fi
17892  version_type=freebsd-$objformat
17893  case $version_type in
17894    freebsd-elf*)
17895      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17896      need_version=no
17897      need_lib_prefix=no
17898      ;;
17899    freebsd-*)
17900      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17901      need_version=yes
17902      ;;
17903  esac
17904  shlibpath_var=LD_LIBRARY_PATH
17905  case $host_os in
17906  freebsd2*)
17907    shlibpath_overrides_runpath=yes
17908    ;;
17909  freebsd3.[01]* | freebsdelf3.[01]*)
17910    shlibpath_overrides_runpath=yes
17911    hardcode_into_libs=yes
17912    ;;
17913  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17914  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17915    shlibpath_overrides_runpath=no
17916    hardcode_into_libs=yes
17917    ;;
17918  freebsd*) # from 4.6 on
17919    shlibpath_overrides_runpath=yes
17920    hardcode_into_libs=yes
17921    ;;
17922  esac
17923  ;;
17924
17925gnu*)
17926  version_type=linux
17927  need_lib_prefix=no
17928  need_version=no
17929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17930  soname_spec='${libname}${release}${shared_ext}$major'
17931  shlibpath_var=LD_LIBRARY_PATH
17932  hardcode_into_libs=yes
17933  ;;
17934
17935hpux9* | hpux10* | hpux11*)
17936  # Give a soname corresponding to the major version so that dld.sl refuses to
17937  # link against other versions.
17938  version_type=sunos
17939  need_lib_prefix=no
17940  need_version=no
17941  case $host_cpu in
17942  ia64*)
17943    shrext_cmds='.so'
17944    hardcode_into_libs=yes
17945    dynamic_linker="$host_os dld.so"
17946    shlibpath_var=LD_LIBRARY_PATH
17947    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17948    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17949    soname_spec='${libname}${release}${shared_ext}$major'
17950    if test "X$HPUX_IA64_MODE" = X32; then
17951      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17952    else
17953      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17954    fi
17955    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17956    ;;
17957   hppa*64*)
17958     shrext_cmds='.sl'
17959     hardcode_into_libs=yes
17960     dynamic_linker="$host_os dld.sl"
17961     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17962     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17963     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17964     soname_spec='${libname}${release}${shared_ext}$major'
17965     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17966     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17967     ;;
17968   *)
17969    shrext_cmds='.sl'
17970    dynamic_linker="$host_os dld.sl"
17971    shlibpath_var=SHLIB_PATH
17972    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17973    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17974    soname_spec='${libname}${release}${shared_ext}$major'
17975    ;;
17976  esac
17977  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17978  postinstall_cmds='chmod 555 $lib'
17979  ;;
17980
17981interix3*)
17982  version_type=linux
17983  need_lib_prefix=no
17984  need_version=no
17985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17986  soname_spec='${libname}${release}${shared_ext}$major'
17987  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17988  shlibpath_var=LD_LIBRARY_PATH
17989  shlibpath_overrides_runpath=no
17990  hardcode_into_libs=yes
17991  ;;
17992
17993irix5* | irix6* | nonstopux*)
17994  case $host_os in
17995    nonstopux*) version_type=nonstopux ;;
17996    *)
17997	if test "$lt_cv_prog_gnu_ld" = yes; then
17998		version_type=linux
17999	else
18000		version_type=irix
18001	fi ;;
18002  esac
18003  need_lib_prefix=no
18004  need_version=no
18005  soname_spec='${libname}${release}${shared_ext}$major'
18006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18007  case $host_os in
18008  irix5* | nonstopux*)
18009    libsuff= shlibsuff=
18010    ;;
18011  *)
18012    case $LD in # libtool.m4 will add one of these switches to LD
18013    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18014      libsuff= shlibsuff= libmagic=32-bit;;
18015    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18016      libsuff=32 shlibsuff=N32 libmagic=N32;;
18017    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18018      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18019    *) libsuff= shlibsuff= libmagic=never-match;;
18020    esac
18021    ;;
18022  esac
18023  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18024  shlibpath_overrides_runpath=no
18025  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18026  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18027  hardcode_into_libs=yes
18028  ;;
18029
18030# No shared lib support for Linux oldld, aout, or coff.
18031linux*oldld* | linux*aout* | linux*coff*)
18032  dynamic_linker=no
18033  ;;
18034
18035# This must be Linux ELF.
18036linux*)
18037  version_type=linux
18038  need_lib_prefix=no
18039  need_version=no
18040  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18041  soname_spec='${libname}${release}${shared_ext}$major'
18042  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18043  shlibpath_var=LD_LIBRARY_PATH
18044  shlibpath_overrides_runpath=no
18045  # This implies no fast_install, which is unacceptable.
18046  # Some rework will be needed to allow for fast_install
18047  # before this can be enabled.
18048  hardcode_into_libs=yes
18049
18050  # Append ld.so.conf contents to the search path
18051  if test -f /etc/ld.so.conf; then
18052    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' ' '`
18053    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18054  fi
18055
18056  # We used to test for /lib/ld.so.1 and disable shared libraries on
18057  # powerpc, because MkLinux only supported shared libraries with the
18058  # GNU dynamic linker.  Since this was broken with cross compilers,
18059  # most powerpc-linux boxes support dynamic linking these days and
18060  # people can always --disable-shared, the test was removed, and we
18061  # assume the GNU/Linux dynamic linker is in use.
18062  dynamic_linker='GNU/Linux ld.so'
18063  ;;
18064
18065knetbsd*-gnu)
18066  version_type=linux
18067  need_lib_prefix=no
18068  need_version=no
18069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18070  soname_spec='${libname}${release}${shared_ext}$major'
18071  shlibpath_var=LD_LIBRARY_PATH
18072  shlibpath_overrides_runpath=no
18073  hardcode_into_libs=yes
18074  dynamic_linker='GNU ld.so'
18075  ;;
18076
18077netbsd*)
18078  version_type=sunos
18079  need_lib_prefix=no
18080  need_version=no
18081  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18082    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18083    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18084    dynamic_linker='NetBSD (a.out) ld.so'
18085  else
18086    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18087    soname_spec='${libname}${release}${shared_ext}$major'
18088    dynamic_linker='NetBSD ld.elf_so'
18089  fi
18090  shlibpath_var=LD_LIBRARY_PATH
18091  shlibpath_overrides_runpath=yes
18092  hardcode_into_libs=yes
18093  ;;
18094
18095newsos6)
18096  version_type=linux
18097  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18098  shlibpath_var=LD_LIBRARY_PATH
18099  shlibpath_overrides_runpath=yes
18100  ;;
18101
18102nto-qnx*)
18103  version_type=linux
18104  need_lib_prefix=no
18105  need_version=no
18106  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18107  soname_spec='${libname}${release}${shared_ext}$major'
18108  shlibpath_var=LD_LIBRARY_PATH
18109  shlibpath_overrides_runpath=yes
18110  ;;
18111
18112openbsd*)
18113  version_type=sunos
18114  sys_lib_dlsearch_path_spec="/usr/lib"
18115  need_lib_prefix=no
18116  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18117  case $host_os in
18118    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18119    *)                         need_version=no  ;;
18120  esac
18121  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18122  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18123  shlibpath_var=LD_LIBRARY_PATH
18124  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18125    case $host_os in
18126      openbsd2.[89] | openbsd2.[89].*)
18127	shlibpath_overrides_runpath=no
18128	;;
18129      *)
18130	shlibpath_overrides_runpath=yes
18131	;;
18132      esac
18133  else
18134    shlibpath_overrides_runpath=yes
18135  fi
18136  ;;
18137
18138os2*)
18139  libname_spec='$name'
18140  shrext_cmds=".dll"
18141  need_lib_prefix=no
18142  library_names_spec='$libname${shared_ext} $libname.a'
18143  dynamic_linker='OS/2 ld.exe'
18144  shlibpath_var=LIBPATH
18145  ;;
18146
18147osf3* | osf4* | osf5*)
18148  version_type=osf
18149  need_lib_prefix=no
18150  need_version=no
18151  soname_spec='${libname}${release}${shared_ext}$major'
18152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18153  shlibpath_var=LD_LIBRARY_PATH
18154  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18155  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18156  ;;
18157
18158solaris*)
18159  version_type=linux
18160  need_lib_prefix=no
18161  need_version=no
18162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18163  soname_spec='${libname}${release}${shared_ext}$major'
18164  shlibpath_var=LD_LIBRARY_PATH
18165  shlibpath_overrides_runpath=yes
18166  hardcode_into_libs=yes
18167  # ldd complains unless libraries are executable
18168  postinstall_cmds='chmod +x $lib'
18169  ;;
18170
18171sunos4*)
18172  version_type=sunos
18173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18174  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18175  shlibpath_var=LD_LIBRARY_PATH
18176  shlibpath_overrides_runpath=yes
18177  if test "$with_gnu_ld" = yes; then
18178    need_lib_prefix=no
18179  fi
18180  need_version=yes
18181  ;;
18182
18183sysv4 | sysv4.3*)
18184  version_type=linux
18185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18186  soname_spec='${libname}${release}${shared_ext}$major'
18187  shlibpath_var=LD_LIBRARY_PATH
18188  case $host_vendor in
18189    sni)
18190      shlibpath_overrides_runpath=no
18191      need_lib_prefix=no
18192      export_dynamic_flag_spec='${wl}-Blargedynsym'
18193      runpath_var=LD_RUN_PATH
18194      ;;
18195    siemens)
18196      need_lib_prefix=no
18197      ;;
18198    motorola)
18199      need_lib_prefix=no
18200      need_version=no
18201      shlibpath_overrides_runpath=no
18202      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18203      ;;
18204  esac
18205  ;;
18206
18207sysv4*MP*)
18208  if test -d /usr/nec ;then
18209    version_type=linux
18210    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18211    soname_spec='$libname${shared_ext}.$major'
18212    shlibpath_var=LD_LIBRARY_PATH
18213  fi
18214  ;;
18215
18216sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18217  version_type=freebsd-elf
18218  need_lib_prefix=no
18219  need_version=no
18220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18221  soname_spec='${libname}${release}${shared_ext}$major'
18222  shlibpath_var=LD_LIBRARY_PATH
18223  hardcode_into_libs=yes
18224  if test "$with_gnu_ld" = yes; then
18225    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18226    shlibpath_overrides_runpath=no
18227  else
18228    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18229    shlibpath_overrides_runpath=yes
18230    case $host_os in
18231      sco3.2v5*)
18232        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18233	;;
18234    esac
18235  fi
18236  sys_lib_dlsearch_path_spec='/usr/lib'
18237  ;;
18238
18239uts4*)
18240  version_type=linux
18241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18242  soname_spec='${libname}${release}${shared_ext}$major'
18243  shlibpath_var=LD_LIBRARY_PATH
18244  ;;
18245
18246*)
18247  dynamic_linker=no
18248  ;;
18249esac
18250{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18251echo "${ECHO_T}$dynamic_linker" >&6; }
18252test "$dynamic_linker" = no && can_build_shared=no
18253
18254variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18255if test "$GCC" = yes; then
18256  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18257fi
18258
18259{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18260echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18261hardcode_action_GCJ=
18262if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18263   test -n "$runpath_var_GCJ" || \
18264   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18265
18266  # We can hardcode non-existant directories.
18267  if test "$hardcode_direct_GCJ" != no &&
18268     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18269     # have to relink, otherwise we might link with an installed library
18270     # when we should be linking with a yet-to-be-installed one
18271     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18272     test "$hardcode_minus_L_GCJ" != no; then
18273    # Linking always hardcodes the temporary library directory.
18274    hardcode_action_GCJ=relink
18275  else
18276    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18277    hardcode_action_GCJ=immediate
18278  fi
18279else
18280  # We cannot hardcode anything, or else we can only hardcode existing
18281  # directories.
18282  hardcode_action_GCJ=unsupported
18283fi
18284{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18285echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18286
18287if test "$hardcode_action_GCJ" = relink; then
18288  # Fast installation is not supported
18289  enable_fast_install=no
18290elif test "$shlibpath_overrides_runpath" = yes ||
18291     test "$enable_shared" = no; then
18292  # Fast installation is not necessary
18293  enable_fast_install=needless
18294fi
18295
18296
18297# The else clause should only fire when bootstrapping the
18298# libtool distribution, otherwise you forgot to ship ltmain.sh
18299# with your package, and you will get complaints that there are
18300# no rules to generate ltmain.sh.
18301if test -f "$ltmain"; then
18302  # See if we are running on zsh, and set the options which allow our commands through
18303  # without removal of \ escapes.
18304  if test -n "${ZSH_VERSION+set}" ; then
18305    setopt NO_GLOB_SUBST
18306  fi
18307  # Now quote all the things that may contain metacharacters while being
18308  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18309  # variables and quote the copies for generation of the libtool script.
18310  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18311    SED SHELL STRIP \
18312    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18313    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18314    deplibs_check_method reload_flag reload_cmds need_locks \
18315    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18316    lt_cv_sys_global_symbol_to_c_name_address \
18317    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18318    old_postinstall_cmds old_postuninstall_cmds \
18319    compiler_GCJ \
18320    CC_GCJ \
18321    LD_GCJ \
18322    lt_prog_compiler_wl_GCJ \
18323    lt_prog_compiler_pic_GCJ \
18324    lt_prog_compiler_static_GCJ \
18325    lt_prog_compiler_no_builtin_flag_GCJ \
18326    export_dynamic_flag_spec_GCJ \
18327    thread_safe_flag_spec_GCJ \
18328    whole_archive_flag_spec_GCJ \
18329    enable_shared_with_static_runtimes_GCJ \
18330    old_archive_cmds_GCJ \
18331    old_archive_from_new_cmds_GCJ \
18332    predep_objects_GCJ \
18333    postdep_objects_GCJ \
18334    predeps_GCJ \
18335    postdeps_GCJ \
18336    compiler_lib_search_path_GCJ \
18337    archive_cmds_GCJ \
18338    archive_expsym_cmds_GCJ \
18339    postinstall_cmds_GCJ \
18340    postuninstall_cmds_GCJ \
18341    old_archive_from_expsyms_cmds_GCJ \
18342    allow_undefined_flag_GCJ \
18343    no_undefined_flag_GCJ \
18344    export_symbols_cmds_GCJ \
18345    hardcode_libdir_flag_spec_GCJ \
18346    hardcode_libdir_flag_spec_ld_GCJ \
18347    hardcode_libdir_separator_GCJ \
18348    hardcode_automatic_GCJ \
18349    module_cmds_GCJ \
18350    module_expsym_cmds_GCJ \
18351    lt_cv_prog_compiler_c_o_GCJ \
18352    exclude_expsyms_GCJ \
18353    include_expsyms_GCJ; do
18354
18355    case $var in
18356    old_archive_cmds_GCJ | \
18357    old_archive_from_new_cmds_GCJ | \
18358    archive_cmds_GCJ | \
18359    archive_expsym_cmds_GCJ | \
18360    module_cmds_GCJ | \
18361    module_expsym_cmds_GCJ | \
18362    old_archive_from_expsyms_cmds_GCJ | \
18363    export_symbols_cmds_GCJ | \
18364    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18365    postinstall_cmds | postuninstall_cmds | \
18366    old_postinstall_cmds | old_postuninstall_cmds | \
18367    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18368      # Double-quote double-evaled strings.
18369      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18370      ;;
18371    *)
18372      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18373      ;;
18374    esac
18375  done
18376
18377  case $lt_echo in
18378  *'\$0 --fallback-echo"')
18379    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18380    ;;
18381  esac
18382
18383cfgfile="$ofile"
18384
18385  cat <<__EOF__ >> "$cfgfile"
18386# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18387
18388# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18389
18390# Shell to use when invoking shell scripts.
18391SHELL=$lt_SHELL
18392
18393# Whether or not to build shared libraries.
18394build_libtool_libs=$enable_shared
18395
18396# Whether or not to build static libraries.
18397build_old_libs=$enable_static
18398
18399# Whether or not to add -lc for building shared libraries.
18400build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18401
18402# Whether or not to disallow shared libs when runtime libs are static
18403allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18404
18405# Whether or not to optimize for fast installation.
18406fast_install=$enable_fast_install
18407
18408# The host system.
18409host_alias=$host_alias
18410host=$host
18411host_os=$host_os
18412
18413# The build system.
18414build_alias=$build_alias
18415build=$build
18416build_os=$build_os
18417
18418# An echo program that does not interpret backslashes.
18419echo=$lt_echo
18420
18421# The archiver.
18422AR=$lt_AR
18423AR_FLAGS=$lt_AR_FLAGS
18424
18425# A C compiler.
18426LTCC=$lt_LTCC
18427
18428# LTCC compiler flags.
18429LTCFLAGS=$lt_LTCFLAGS
18430
18431# A language-specific compiler.
18432CC=$lt_compiler_GCJ
18433
18434# Is the compiler the GNU C compiler?
18435with_gcc=$GCC_GCJ
18436
18437# An ERE matcher.
18438EGREP=$lt_EGREP
18439
18440# The linker used to build libraries.
18441LD=$lt_LD_GCJ
18442
18443# Whether we need hard or soft links.
18444LN_S=$lt_LN_S
18445
18446# A BSD-compatible nm program.
18447NM=$lt_NM
18448
18449# A symbol stripping program
18450STRIP=$lt_STRIP
18451
18452# Used to examine libraries when file_magic_cmd begins "file"
18453MAGIC_CMD=$MAGIC_CMD
18454
18455# Used on cygwin: DLL creation program.
18456DLLTOOL="$DLLTOOL"
18457
18458# Used on cygwin: object dumper.
18459OBJDUMP="$OBJDUMP"
18460
18461# Used on cygwin: assembler.
18462AS="$AS"
18463
18464# The name of the directory that contains temporary libtool files.
18465objdir=$objdir
18466
18467# How to create reloadable object files.
18468reload_flag=$lt_reload_flag
18469reload_cmds=$lt_reload_cmds
18470
18471# How to pass a linker flag through the compiler.
18472wl=$lt_lt_prog_compiler_wl_GCJ
18473
18474# Object file suffix (normally "o").
18475objext="$ac_objext"
18476
18477# Old archive suffix (normally "a").
18478libext="$libext"
18479
18480# Shared library suffix (normally ".so").
18481shrext_cmds='$shrext_cmds'
18482
18483# Executable file suffix (normally "").
18484exeext="$exeext"
18485
18486# Additional compiler flags for building library objects.
18487pic_flag=$lt_lt_prog_compiler_pic_GCJ
18488pic_mode=$pic_mode
18489
18490# What is the maximum length of a command?
18491max_cmd_len=$lt_cv_sys_max_cmd_len
18492
18493# Does compiler simultaneously support -c and -o options?
18494compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18495
18496# Must we lock files when doing compilation?
18497need_locks=$lt_need_locks
18498
18499# Do we need the lib prefix for modules?
18500need_lib_prefix=$need_lib_prefix
18501
18502# Do we need a version for libraries?
18503need_version=$need_version
18504
18505# Whether dlopen is supported.
18506dlopen_support=$enable_dlopen
18507
18508# Whether dlopen of programs is supported.
18509dlopen_self=$enable_dlopen_self
18510
18511# Whether dlopen of statically linked programs is supported.
18512dlopen_self_static=$enable_dlopen_self_static
18513
18514# Compiler flag to prevent dynamic linking.
18515link_static_flag=$lt_lt_prog_compiler_static_GCJ
18516
18517# Compiler flag to turn off builtin functions.
18518no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18519
18520# Compiler flag to allow reflexive dlopens.
18521export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18522
18523# Compiler flag to generate shared objects directly from archives.
18524whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18525
18526# Compiler flag to generate thread-safe objects.
18527thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18528
18529# Library versioning type.
18530version_type=$version_type
18531
18532# Format of library name prefix.
18533libname_spec=$lt_libname_spec
18534
18535# List of archive names.  First name is the real one, the rest are links.
18536# The last name is the one that the linker finds with -lNAME.
18537library_names_spec=$lt_library_names_spec
18538
18539# The coded name of the library, if different from the real name.
18540soname_spec=$lt_soname_spec
18541
18542# Commands used to build and install an old-style archive.
18543RANLIB=$lt_RANLIB
18544old_archive_cmds=$lt_old_archive_cmds_GCJ
18545old_postinstall_cmds=$lt_old_postinstall_cmds
18546old_postuninstall_cmds=$lt_old_postuninstall_cmds
18547
18548# Create an old-style archive from a shared archive.
18549old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18550
18551# Create a temporary old-style archive to link instead of a shared archive.
18552old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18553
18554# Commands used to build and install a shared archive.
18555archive_cmds=$lt_archive_cmds_GCJ
18556archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18557postinstall_cmds=$lt_postinstall_cmds
18558postuninstall_cmds=$lt_postuninstall_cmds
18559
18560# Commands used to build a loadable module (assumed same as above if empty)
18561module_cmds=$lt_module_cmds_GCJ
18562module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18563
18564# Commands to strip libraries.
18565old_striplib=$lt_old_striplib
18566striplib=$lt_striplib
18567
18568# Dependencies to place before the objects being linked to create a
18569# shared library.
18570predep_objects=$lt_predep_objects_GCJ
18571
18572# Dependencies to place after the objects being linked to create a
18573# shared library.
18574postdep_objects=$lt_postdep_objects_GCJ
18575
18576# Dependencies to place before the objects being linked to create a
18577# shared library.
18578predeps=$lt_predeps_GCJ
18579
18580# Dependencies to place after the objects being linked to create a
18581# shared library.
18582postdeps=$lt_postdeps_GCJ
18583
18584# The library search path used internally by the compiler when linking
18585# a shared library.
18586compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18587
18588# Method to check whether dependent libraries are shared objects.
18589deplibs_check_method=$lt_deplibs_check_method
18590
18591# Command to use when deplibs_check_method == file_magic.
18592file_magic_cmd=$lt_file_magic_cmd
18593
18594# Flag that allows shared libraries with undefined symbols to be built.
18595allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18596
18597# Flag that forces no undefined symbols.
18598no_undefined_flag=$lt_no_undefined_flag_GCJ
18599
18600# Commands used to finish a libtool library installation in a directory.
18601finish_cmds=$lt_finish_cmds
18602
18603# Same as above, but a single script fragment to be evaled but not shown.
18604finish_eval=$lt_finish_eval
18605
18606# Take the output of nm and produce a listing of raw symbols and C names.
18607global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18608
18609# Transform the output of nm in a proper C declaration
18610global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18611
18612# Transform the output of nm in a C name address pair
18613global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18614
18615# This is the shared library runtime path variable.
18616runpath_var=$runpath_var
18617
18618# This is the shared library path variable.
18619shlibpath_var=$shlibpath_var
18620
18621# Is shlibpath searched before the hard-coded library search path?
18622shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18623
18624# How to hardcode a shared library path into an executable.
18625hardcode_action=$hardcode_action_GCJ
18626
18627# Whether we should hardcode library paths into libraries.
18628hardcode_into_libs=$hardcode_into_libs
18629
18630# Flag to hardcode \$libdir into a binary during linking.
18631# This must work even if \$libdir does not exist.
18632hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18633
18634# If ld is used when linking, flag to hardcode \$libdir into
18635# a binary during linking. This must work even if \$libdir does
18636# not exist.
18637hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18638
18639# Whether we need a single -rpath flag with a separated argument.
18640hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18641
18642# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18643# resulting binary.
18644hardcode_direct=$hardcode_direct_GCJ
18645
18646# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18647# resulting binary.
18648hardcode_minus_L=$hardcode_minus_L_GCJ
18649
18650# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18651# the resulting binary.
18652hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18653
18654# Set to yes if building a shared library automatically hardcodes DIR into the library
18655# and all subsequent libraries and executables linked against it.
18656hardcode_automatic=$hardcode_automatic_GCJ
18657
18658# Variables whose values should be saved in libtool wrapper scripts and
18659# restored at relink time.
18660variables_saved_for_relink="$variables_saved_for_relink"
18661
18662# Whether libtool must link a program against all its dependency libraries.
18663link_all_deplibs=$link_all_deplibs_GCJ
18664
18665# Compile-time system search path for libraries
18666sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18667
18668# Run-time system search path for libraries
18669sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18670
18671# Fix the shell variable \$srcfile for the compiler.
18672fix_srcfile_path="$fix_srcfile_path_GCJ"
18673
18674# Set to yes if exported symbols are required.
18675always_export_symbols=$always_export_symbols_GCJ
18676
18677# The commands to list exported symbols.
18678export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18679
18680# The commands to extract the exported symbol list from a shared archive.
18681extract_expsyms_cmds=$lt_extract_expsyms_cmds
18682
18683# Symbols that should not be listed in the preloaded symbols.
18684exclude_expsyms=$lt_exclude_expsyms_GCJ
18685
18686# Symbols that must always be exported.
18687include_expsyms=$lt_include_expsyms_GCJ
18688
18689# ### END LIBTOOL TAG CONFIG: $tagname
18690
18691__EOF__
18692
18693
18694else
18695  # If there is no Makefile yet, we rely on a make rule to execute
18696  # `config.status --recheck' to rerun these tests and create the
18697  # libtool script then.
18698  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18699  if test -f "$ltmain_in"; then
18700    test -f Makefile && make "$ltmain"
18701  fi
18702fi
18703
18704
18705ac_ext=c
18706ac_cpp='$CPP $CPPFLAGS'
18707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18709ac_compiler_gnu=$ac_cv_c_compiler_gnu
18710
18711CC="$lt_save_CC"
18712
18713	else
18714	  tagname=""
18715	fi
18716	;;
18717
18718      RC)
18719
18720
18721# Source file extension for RC test sources.
18722ac_ext=rc
18723
18724# Object file extension for compiled RC test sources.
18725objext=o
18726objext_RC=$objext
18727
18728# Code to be used in simple compile tests
18729lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18730
18731# Code to be used in simple link tests
18732lt_simple_link_test_code="$lt_simple_compile_test_code"
18733
18734# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18735
18736# If no C compiler was specified, use CC.
18737LTCC=${LTCC-"$CC"}
18738
18739# If no C compiler flags were specified, use CFLAGS.
18740LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18741
18742# Allow CC to be a program name with arguments.
18743compiler=$CC
18744
18745
18746# save warnings/boilerplate of simple test code
18747ac_outfile=conftest.$ac_objext
18748printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18749eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18750_lt_compiler_boilerplate=`cat conftest.err`
18751$rm conftest*
18752
18753ac_outfile=conftest.$ac_objext
18754printf "$lt_simple_link_test_code" >conftest.$ac_ext
18755eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18756_lt_linker_boilerplate=`cat conftest.err`
18757$rm conftest*
18758
18759
18760# Allow CC to be a program name with arguments.
18761lt_save_CC="$CC"
18762CC=${RC-"windres"}
18763compiler=$CC
18764compiler_RC=$CC
18765for cc_temp in $compiler""; do
18766  case $cc_temp in
18767    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18768    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18769    \-*) ;;
18770    *) break;;
18771  esac
18772done
18773cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18774
18775lt_cv_prog_compiler_c_o_RC=yes
18776
18777# The else clause should only fire when bootstrapping the
18778# libtool distribution, otherwise you forgot to ship ltmain.sh
18779# with your package, and you will get complaints that there are
18780# no rules to generate ltmain.sh.
18781if test -f "$ltmain"; then
18782  # See if we are running on zsh, and set the options which allow our commands through
18783  # without removal of \ escapes.
18784  if test -n "${ZSH_VERSION+set}" ; then
18785    setopt NO_GLOB_SUBST
18786  fi
18787  # Now quote all the things that may contain metacharacters while being
18788  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18789  # variables and quote the copies for generation of the libtool script.
18790  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18791    SED SHELL STRIP \
18792    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18793    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18794    deplibs_check_method reload_flag reload_cmds need_locks \
18795    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18796    lt_cv_sys_global_symbol_to_c_name_address \
18797    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18798    old_postinstall_cmds old_postuninstall_cmds \
18799    compiler_RC \
18800    CC_RC \
18801    LD_RC \
18802    lt_prog_compiler_wl_RC \
18803    lt_prog_compiler_pic_RC \
18804    lt_prog_compiler_static_RC \
18805    lt_prog_compiler_no_builtin_flag_RC \
18806    export_dynamic_flag_spec_RC \
18807    thread_safe_flag_spec_RC \
18808    whole_archive_flag_spec_RC \
18809    enable_shared_with_static_runtimes_RC \
18810    old_archive_cmds_RC \
18811    old_archive_from_new_cmds_RC \
18812    predep_objects_RC \
18813    postdep_objects_RC \
18814    predeps_RC \
18815    postdeps_RC \
18816    compiler_lib_search_path_RC \
18817    archive_cmds_RC \
18818    archive_expsym_cmds_RC \
18819    postinstall_cmds_RC \
18820    postuninstall_cmds_RC \
18821    old_archive_from_expsyms_cmds_RC \
18822    allow_undefined_flag_RC \
18823    no_undefined_flag_RC \
18824    export_symbols_cmds_RC \
18825    hardcode_libdir_flag_spec_RC \
18826    hardcode_libdir_flag_spec_ld_RC \
18827    hardcode_libdir_separator_RC \
18828    hardcode_automatic_RC \
18829    module_cmds_RC \
18830    module_expsym_cmds_RC \
18831    lt_cv_prog_compiler_c_o_RC \
18832    exclude_expsyms_RC \
18833    include_expsyms_RC; do
18834
18835    case $var in
18836    old_archive_cmds_RC | \
18837    old_archive_from_new_cmds_RC | \
18838    archive_cmds_RC | \
18839    archive_expsym_cmds_RC | \
18840    module_cmds_RC | \
18841    module_expsym_cmds_RC | \
18842    old_archive_from_expsyms_cmds_RC | \
18843    export_symbols_cmds_RC | \
18844    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18845    postinstall_cmds | postuninstall_cmds | \
18846    old_postinstall_cmds | old_postuninstall_cmds | \
18847    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18848      # Double-quote double-evaled strings.
18849      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18850      ;;
18851    *)
18852      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18853      ;;
18854    esac
18855  done
18856
18857  case $lt_echo in
18858  *'\$0 --fallback-echo"')
18859    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18860    ;;
18861  esac
18862
18863cfgfile="$ofile"
18864
18865  cat <<__EOF__ >> "$cfgfile"
18866# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18867
18868# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18869
18870# Shell to use when invoking shell scripts.
18871SHELL=$lt_SHELL
18872
18873# Whether or not to build shared libraries.
18874build_libtool_libs=$enable_shared
18875
18876# Whether or not to build static libraries.
18877build_old_libs=$enable_static
18878
18879# Whether or not to add -lc for building shared libraries.
18880build_libtool_need_lc=$archive_cmds_need_lc_RC
18881
18882# Whether or not to disallow shared libs when runtime libs are static
18883allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18884
18885# Whether or not to optimize for fast installation.
18886fast_install=$enable_fast_install
18887
18888# The host system.
18889host_alias=$host_alias
18890host=$host
18891host_os=$host_os
18892
18893# The build system.
18894build_alias=$build_alias
18895build=$build
18896build_os=$build_os
18897
18898# An echo program that does not interpret backslashes.
18899echo=$lt_echo
18900
18901# The archiver.
18902AR=$lt_AR
18903AR_FLAGS=$lt_AR_FLAGS
18904
18905# A C compiler.
18906LTCC=$lt_LTCC
18907
18908# LTCC compiler flags.
18909LTCFLAGS=$lt_LTCFLAGS
18910
18911# A language-specific compiler.
18912CC=$lt_compiler_RC
18913
18914# Is the compiler the GNU C compiler?
18915with_gcc=$GCC_RC
18916
18917# An ERE matcher.
18918EGREP=$lt_EGREP
18919
18920# The linker used to build libraries.
18921LD=$lt_LD_RC
18922
18923# Whether we need hard or soft links.
18924LN_S=$lt_LN_S
18925
18926# A BSD-compatible nm program.
18927NM=$lt_NM
18928
18929# A symbol stripping program
18930STRIP=$lt_STRIP
18931
18932# Used to examine libraries when file_magic_cmd begins "file"
18933MAGIC_CMD=$MAGIC_CMD
18934
18935# Used on cygwin: DLL creation program.
18936DLLTOOL="$DLLTOOL"
18937
18938# Used on cygwin: object dumper.
18939OBJDUMP="$OBJDUMP"
18940
18941# Used on cygwin: assembler.
18942AS="$AS"
18943
18944# The name of the directory that contains temporary libtool files.
18945objdir=$objdir
18946
18947# How to create reloadable object files.
18948reload_flag=$lt_reload_flag
18949reload_cmds=$lt_reload_cmds
18950
18951# How to pass a linker flag through the compiler.
18952wl=$lt_lt_prog_compiler_wl_RC
18953
18954# Object file suffix (normally "o").
18955objext="$ac_objext"
18956
18957# Old archive suffix (normally "a").
18958libext="$libext"
18959
18960# Shared library suffix (normally ".so").
18961shrext_cmds='$shrext_cmds'
18962
18963# Executable file suffix (normally "").
18964exeext="$exeext"
18965
18966# Additional compiler flags for building library objects.
18967pic_flag=$lt_lt_prog_compiler_pic_RC
18968pic_mode=$pic_mode
18969
18970# What is the maximum length of a command?
18971max_cmd_len=$lt_cv_sys_max_cmd_len
18972
18973# Does compiler simultaneously support -c and -o options?
18974compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18975
18976# Must we lock files when doing compilation?
18977need_locks=$lt_need_locks
18978
18979# Do we need the lib prefix for modules?
18980need_lib_prefix=$need_lib_prefix
18981
18982# Do we need a version for libraries?
18983need_version=$need_version
18984
18985# Whether dlopen is supported.
18986dlopen_support=$enable_dlopen
18987
18988# Whether dlopen of programs is supported.
18989dlopen_self=$enable_dlopen_self
18990
18991# Whether dlopen of statically linked programs is supported.
18992dlopen_self_static=$enable_dlopen_self_static
18993
18994# Compiler flag to prevent dynamic linking.
18995link_static_flag=$lt_lt_prog_compiler_static_RC
18996
18997# Compiler flag to turn off builtin functions.
18998no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18999
19000# Compiler flag to allow reflexive dlopens.
19001export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19002
19003# Compiler flag to generate shared objects directly from archives.
19004whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19005
19006# Compiler flag to generate thread-safe objects.
19007thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19008
19009# Library versioning type.
19010version_type=$version_type
19011
19012# Format of library name prefix.
19013libname_spec=$lt_libname_spec
19014
19015# List of archive names.  First name is the real one, the rest are links.
19016# The last name is the one that the linker finds with -lNAME.
19017library_names_spec=$lt_library_names_spec
19018
19019# The coded name of the library, if different from the real name.
19020soname_spec=$lt_soname_spec
19021
19022# Commands used to build and install an old-style archive.
19023RANLIB=$lt_RANLIB
19024old_archive_cmds=$lt_old_archive_cmds_RC
19025old_postinstall_cmds=$lt_old_postinstall_cmds
19026old_postuninstall_cmds=$lt_old_postuninstall_cmds
19027
19028# Create an old-style archive from a shared archive.
19029old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19030
19031# Create a temporary old-style archive to link instead of a shared archive.
19032old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19033
19034# Commands used to build and install a shared archive.
19035archive_cmds=$lt_archive_cmds_RC
19036archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19037postinstall_cmds=$lt_postinstall_cmds
19038postuninstall_cmds=$lt_postuninstall_cmds
19039
19040# Commands used to build a loadable module (assumed same as above if empty)
19041module_cmds=$lt_module_cmds_RC
19042module_expsym_cmds=$lt_module_expsym_cmds_RC
19043
19044# Commands to strip libraries.
19045old_striplib=$lt_old_striplib
19046striplib=$lt_striplib
19047
19048# Dependencies to place before the objects being linked to create a
19049# shared library.
19050predep_objects=$lt_predep_objects_RC
19051
19052# Dependencies to place after the objects being linked to create a
19053# shared library.
19054postdep_objects=$lt_postdep_objects_RC
19055
19056# Dependencies to place before the objects being linked to create a
19057# shared library.
19058predeps=$lt_predeps_RC
19059
19060# Dependencies to place after the objects being linked to create a
19061# shared library.
19062postdeps=$lt_postdeps_RC
19063
19064# The library search path used internally by the compiler when linking
19065# a shared library.
19066compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19067
19068# Method to check whether dependent libraries are shared objects.
19069deplibs_check_method=$lt_deplibs_check_method
19070
19071# Command to use when deplibs_check_method == file_magic.
19072file_magic_cmd=$lt_file_magic_cmd
19073
19074# Flag that allows shared libraries with undefined symbols to be built.
19075allow_undefined_flag=$lt_allow_undefined_flag_RC
19076
19077# Flag that forces no undefined symbols.
19078no_undefined_flag=$lt_no_undefined_flag_RC
19079
19080# Commands used to finish a libtool library installation in a directory.
19081finish_cmds=$lt_finish_cmds
19082
19083# Same as above, but a single script fragment to be evaled but not shown.
19084finish_eval=$lt_finish_eval
19085
19086# Take the output of nm and produce a listing of raw symbols and C names.
19087global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19088
19089# Transform the output of nm in a proper C declaration
19090global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19091
19092# Transform the output of nm in a C name address pair
19093global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19094
19095# This is the shared library runtime path variable.
19096runpath_var=$runpath_var
19097
19098# This is the shared library path variable.
19099shlibpath_var=$shlibpath_var
19100
19101# Is shlibpath searched before the hard-coded library search path?
19102shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19103
19104# How to hardcode a shared library path into an executable.
19105hardcode_action=$hardcode_action_RC
19106
19107# Whether we should hardcode library paths into libraries.
19108hardcode_into_libs=$hardcode_into_libs
19109
19110# Flag to hardcode \$libdir into a binary during linking.
19111# This must work even if \$libdir does not exist.
19112hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19113
19114# If ld is used when linking, flag to hardcode \$libdir into
19115# a binary during linking. This must work even if \$libdir does
19116# not exist.
19117hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19118
19119# Whether we need a single -rpath flag with a separated argument.
19120hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19121
19122# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19123# resulting binary.
19124hardcode_direct=$hardcode_direct_RC
19125
19126# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19127# resulting binary.
19128hardcode_minus_L=$hardcode_minus_L_RC
19129
19130# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19131# the resulting binary.
19132hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19133
19134# Set to yes if building a shared library automatically hardcodes DIR into the library
19135# and all subsequent libraries and executables linked against it.
19136hardcode_automatic=$hardcode_automatic_RC
19137
19138# Variables whose values should be saved in libtool wrapper scripts and
19139# restored at relink time.
19140variables_saved_for_relink="$variables_saved_for_relink"
19141
19142# Whether libtool must link a program against all its dependency libraries.
19143link_all_deplibs=$link_all_deplibs_RC
19144
19145# Compile-time system search path for libraries
19146sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19147
19148# Run-time system search path for libraries
19149sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19150
19151# Fix the shell variable \$srcfile for the compiler.
19152fix_srcfile_path="$fix_srcfile_path_RC"
19153
19154# Set to yes if exported symbols are required.
19155always_export_symbols=$always_export_symbols_RC
19156
19157# The commands to list exported symbols.
19158export_symbols_cmds=$lt_export_symbols_cmds_RC
19159
19160# The commands to extract the exported symbol list from a shared archive.
19161extract_expsyms_cmds=$lt_extract_expsyms_cmds
19162
19163# Symbols that should not be listed in the preloaded symbols.
19164exclude_expsyms=$lt_exclude_expsyms_RC
19165
19166# Symbols that must always be exported.
19167include_expsyms=$lt_include_expsyms_RC
19168
19169# ### END LIBTOOL TAG CONFIG: $tagname
19170
19171__EOF__
19172
19173
19174else
19175  # If there is no Makefile yet, we rely on a make rule to execute
19176  # `config.status --recheck' to rerun these tests and create the
19177  # libtool script then.
19178  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19179  if test -f "$ltmain_in"; then
19180    test -f Makefile && make "$ltmain"
19181  fi
19182fi
19183
19184
19185ac_ext=c
19186ac_cpp='$CPP $CPPFLAGS'
19187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19189ac_compiler_gnu=$ac_cv_c_compiler_gnu
19190
19191CC="$lt_save_CC"
19192
19193	;;
19194
19195      *)
19196	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19197echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19198   { (exit 1); exit 1; }; }
19199	;;
19200      esac
19201
19202      # Append the new tag name to the list of available tags.
19203      if test -n "$tagname" ; then
19204      available_tags="$available_tags $tagname"
19205    fi
19206    fi
19207  done
19208  IFS="$lt_save_ifs"
19209
19210  # Now substitute the updated list of available tags.
19211  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19212    mv "${ofile}T" "$ofile"
19213    chmod +x "$ofile"
19214  else
19215    rm -f "${ofile}T"
19216    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19217echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19218   { (exit 1); exit 1; }; }
19219  fi
19220fi
19221
19222
19223
19224# This can be used to rebuild libtool when needed
19225LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19226
19227# Always use our own libtool.
19228LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19229
19230# Prevent multiple expansion
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252# Check for dependencies
19253
19254
19255if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19256	if test -n "$ac_tool_prefix"; then
19257  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19258set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19259{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19261if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19262  echo $ECHO_N "(cached) $ECHO_C" >&6
19263else
19264  case $PKG_CONFIG in
19265  [\\/]* | ?:[\\/]*)
19266  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19267  ;;
19268  *)
19269  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19270for as_dir in $PATH
19271do
19272  IFS=$as_save_IFS
19273  test -z "$as_dir" && as_dir=.
19274  for ac_exec_ext in '' $ac_executable_extensions; do
19275  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19276    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19277    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19278    break 2
19279  fi
19280done
19281done
19282IFS=$as_save_IFS
19283
19284  ;;
19285esac
19286fi
19287PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19288if test -n "$PKG_CONFIG"; then
19289  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19290echo "${ECHO_T}$PKG_CONFIG" >&6; }
19291else
19292  { echo "$as_me:$LINENO: result: no" >&5
19293echo "${ECHO_T}no" >&6; }
19294fi
19295
19296
19297fi
19298if test -z "$ac_cv_path_PKG_CONFIG"; then
19299  ac_pt_PKG_CONFIG=$PKG_CONFIG
19300  # Extract the first word of "pkg-config", so it can be a program name with args.
19301set dummy pkg-config; ac_word=$2
19302{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19304if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19305  echo $ECHO_N "(cached) $ECHO_C" >&6
19306else
19307  case $ac_pt_PKG_CONFIG in
19308  [\\/]* | ?:[\\/]*)
19309  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19310  ;;
19311  *)
19312  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19313for as_dir in $PATH
19314do
19315  IFS=$as_save_IFS
19316  test -z "$as_dir" && as_dir=.
19317  for ac_exec_ext in '' $ac_executable_extensions; do
19318  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19319    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19320    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19321    break 2
19322  fi
19323done
19324done
19325IFS=$as_save_IFS
19326
19327  ;;
19328esac
19329fi
19330ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19331if test -n "$ac_pt_PKG_CONFIG"; then
19332  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19333echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19334else
19335  { echo "$as_me:$LINENO: result: no" >&5
19336echo "${ECHO_T}no" >&6; }
19337fi
19338
19339  if test "x$ac_pt_PKG_CONFIG" = x; then
19340    PKG_CONFIG=""
19341  else
19342    case $cross_compiling:$ac_tool_warned in
19343yes:)
19344{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19345whose name does not start with the host triplet.  If you think this
19346configuration is useful to you, please write to autoconf@gnu.org." >&5
19347echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19348whose name does not start with the host triplet.  If you think this
19349configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19350ac_tool_warned=yes ;;
19351esac
19352    PKG_CONFIG=$ac_pt_PKG_CONFIG
19353  fi
19354else
19355  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19356fi
19357
19358fi
19359if test -n "$PKG_CONFIG"; then
19360	_pkg_min_version=0.9.0
19361	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19362echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19363	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19364		{ echo "$as_me:$LINENO: result: yes" >&5
19365echo "${ECHO_T}yes" >&6; }
19366	else
19367		{ echo "$as_me:$LINENO: result: no" >&5
19368echo "${ECHO_T}no" >&6; }
19369		PKG_CONFIG=""
19370	fi
19371
19372fi
19373
19374pkg_failed=no
19375{ echo "$as_me:$LINENO: checking for FS" >&5
19376echo $ECHO_N "checking for FS... $ECHO_C" >&6; }
19377
19378if test -n "$PKG_CONFIG"; then
19379        if test -n "$PKG_CONFIG" && \
19380    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto fontsproto\"") >&5
19381  ($PKG_CONFIG --exists --print-errors "xproto fontsproto") 2>&5
19382  ac_status=$?
19383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384  (exit $ac_status); }; then
19385  pkg_cv_FS_CFLAGS=`$PKG_CONFIG --cflags "xproto fontsproto" 2>/dev/null`
19386else
19387  pkg_failed=yes
19388fi
19389else
19390	pkg_failed=untried
19391fi
19392if test -n "$PKG_CONFIG"; then
19393        if test -n "$PKG_CONFIG" && \
19394    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto fontsproto\"") >&5
19395  ($PKG_CONFIG --exists --print-errors "xproto fontsproto") 2>&5
19396  ac_status=$?
19397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398  (exit $ac_status); }; then
19399  pkg_cv_FS_LIBS=`$PKG_CONFIG --libs "xproto fontsproto" 2>/dev/null`
19400else
19401  pkg_failed=yes
19402fi
19403else
19404	pkg_failed=untried
19405fi
19406
19407if test $pkg_failed = yes; then
19408	FS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto fontsproto"`
19409	# Put the nasty error message in config.log where it belongs
19410	echo "$FS_PKG_ERRORS" 1>&5
19411
19412	{ { echo "$as_me:$LINENO: error: Package requirements (xproto fontsproto) were not met.
19413Consider adjusting the PKG_CONFIG_PATH environment variable if you
19414installed software in a non-standard prefix.
19415
19416Alternatively you may set the FS_CFLAGS and FS_LIBS environment variables
19417to avoid the need to call pkg-config.  See the pkg-config man page for
19418more details." >&5
19419echo "$as_me: error: Package requirements (xproto fontsproto) were not met.
19420Consider adjusting the PKG_CONFIG_PATH environment variable if you
19421installed software in a non-standard prefix.
19422
19423Alternatively you may set the FS_CFLAGS and FS_LIBS environment variables
19424to avoid the need to call pkg-config.  See the pkg-config man page for
19425more details." >&2;}
19426   { (exit 1); exit 1; }; }
19427elif test $pkg_failed = untried; then
19428	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
19429is in your PATH or set the PKG_CONFIG environment variable to the full
19430path to pkg-config.
19431
19432Alternatively you may set the FS_CFLAGS and FS_LIBS environment variables
19433to avoid the need to call pkg-config.  See the pkg-config man page for
19434more details.
19435
19436To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19437See \`config.log' for more details." >&5
19438echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
19439is in your PATH or set the PKG_CONFIG environment variable to the full
19440path to pkg-config.
19441
19442Alternatively you may set the FS_CFLAGS and FS_LIBS environment variables
19443to avoid the need to call pkg-config.  See the pkg-config man page for
19444more details.
19445
19446To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19447See \`config.log' for more details." >&2;}
19448   { (exit 1); exit 1; }; }
19449else
19450	FS_CFLAGS=$pkg_cv_FS_CFLAGS
19451	FS_LIBS=$pkg_cv_FS_LIBS
19452        { echo "$as_me:$LINENO: result: yes" >&5
19453echo "${ECHO_T}yes" >&6; }
19454	:
19455fi
19456
19457
19458#
19459# Split out so we don't include xtrans C flags in fs.pc
19460#
19461
19462pkg_failed=no
19463{ echo "$as_me:$LINENO: checking for XTRANS" >&5
19464echo $ECHO_N "checking for XTRANS... $ECHO_C" >&6; }
19465
19466if test -n "$PKG_CONFIG"; then
19467        if test -n "$PKG_CONFIG" && \
19468    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtrans\"") >&5
19469  ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5
19470  ac_status=$?
19471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472  (exit $ac_status); }; then
19473  pkg_cv_XTRANS_CFLAGS=`$PKG_CONFIG --cflags "xtrans" 2>/dev/null`
19474else
19475  pkg_failed=yes
19476fi
19477else
19478	pkg_failed=untried
19479fi
19480if test -n "$PKG_CONFIG"; then
19481        if test -n "$PKG_CONFIG" && \
19482    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtrans\"") >&5
19483  ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5
19484  ac_status=$?
19485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486  (exit $ac_status); }; then
19487  pkg_cv_XTRANS_LIBS=`$PKG_CONFIG --libs "xtrans" 2>/dev/null`
19488else
19489  pkg_failed=yes
19490fi
19491else
19492	pkg_failed=untried
19493fi
19494
19495if test $pkg_failed = yes; then
19496	XTRANS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xtrans"`
19497	# Put the nasty error message in config.log where it belongs
19498	echo "$XTRANS_PKG_ERRORS" 1>&5
19499
19500	{ { echo "$as_me:$LINENO: error: Package requirements (xtrans) were not met.
19501Consider adjusting the PKG_CONFIG_PATH environment variable if you
19502installed software in a non-standard prefix.
19503
19504Alternatively you may set the XTRANS_CFLAGS and XTRANS_LIBS environment variables
19505to avoid the need to call pkg-config.  See the pkg-config man page for
19506more details." >&5
19507echo "$as_me: error: Package requirements (xtrans) were not met.
19508Consider adjusting the PKG_CONFIG_PATH environment variable if you
19509installed software in a non-standard prefix.
19510
19511Alternatively you may set the XTRANS_CFLAGS and XTRANS_LIBS environment variables
19512to avoid the need to call pkg-config.  See the pkg-config man page for
19513more details." >&2;}
19514   { (exit 1); exit 1; }; }
19515elif test $pkg_failed = untried; then
19516	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
19517is in your PATH or set the PKG_CONFIG environment variable to the full
19518path to pkg-config.
19519
19520Alternatively you may set the XTRANS_CFLAGS and XTRANS_LIBS environment variables
19521to avoid the need to call pkg-config.  See the pkg-config man page for
19522more details.
19523
19524To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19525See \`config.log' for more details." >&5
19526echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
19527is in your PATH or set the PKG_CONFIG environment variable to the full
19528path to pkg-config.
19529
19530Alternatively you may set the XTRANS_CFLAGS and XTRANS_LIBS environment variables
19531to avoid the need to call pkg-config.  See the pkg-config man page for
19532more details.
19533
19534To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19535See \`config.log' for more details." >&2;}
19536   { (exit 1); exit 1; }; }
19537else
19538	XTRANS_CFLAGS=$pkg_cv_XTRANS_CFLAGS
19539	XTRANS_LIBS=$pkg_cv_XTRANS_LIBS
19540        { echo "$as_me:$LINENO: result: yes" >&5
19541echo "${ECHO_T}yes" >&6; }
19542	:
19543fi
19544
19545
19546
19547{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19548echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
19549if test "${ac_cv_type_signal+set}" = set; then
19550  echo $ECHO_N "(cached) $ECHO_C" >&6
19551else
19552  cat >conftest.$ac_ext <<_ACEOF
19553/* confdefs.h.  */
19554_ACEOF
19555cat confdefs.h >>conftest.$ac_ext
19556cat >>conftest.$ac_ext <<_ACEOF
19557/* end confdefs.h.  */
19558#include <sys/types.h>
19559#include <signal.h>
19560
19561int
19562main ()
19563{
19564return *(signal (0, 0)) (0) == 1;
19565  ;
19566  return 0;
19567}
19568_ACEOF
19569rm -f conftest.$ac_objext
19570if { (ac_try="$ac_compile"
19571case "(($ac_try" in
19572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573  *) ac_try_echo=$ac_try;;
19574esac
19575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576  (eval "$ac_compile") 2>conftest.er1
19577  ac_status=$?
19578  grep -v '^ *+' conftest.er1 >conftest.err
19579  rm -f conftest.er1
19580  cat conftest.err >&5
19581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582  (exit $ac_status); } && {
19583	 test -z "$ac_c_werror_flag" ||
19584	 test ! -s conftest.err
19585       } && test -s conftest.$ac_objext; then
19586  ac_cv_type_signal=int
19587else
19588  echo "$as_me: failed program was:" >&5
19589sed 's/^/| /' conftest.$ac_ext >&5
19590
19591	ac_cv_type_signal=void
19592fi
19593
19594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19595fi
19596{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19597echo "${ECHO_T}$ac_cv_type_signal" >&6; }
19598
19599cat >>confdefs.h <<_ACEOF
19600#define RETSIGTYPE $ac_cv_type_signal
19601_ACEOF
19602
19603
19604
19605
19606
19607 case $host_os in
19608	mingw*)	unixdef="no"   ;;
19609	*)	unixdef="yes"  ;;
19610 esac
19611 # Check whether --enable-unix-transport was given.
19612if test "${enable_unix_transport+set}" = set; then
19613  enableval=$enable_unix_transport; UNIXCONN=$enableval
19614else
19615  UNIXCONN=$unixdef
19616fi
19617
19618 { echo "$as_me:$LINENO: checking if Xtrans should support UNIX socket connections" >&5
19619echo $ECHO_N "checking if Xtrans should support UNIX socket connections... $ECHO_C" >&6; }
19620 if test "$UNIXCONN" = "yes"; then
19621
19622cat >>confdefs.h <<\_ACEOF
19623#define UNIXCONN 1
19624_ACEOF
19625
19626 fi
19627 { echo "$as_me:$LINENO: result: $UNIXCONN" >&5
19628echo "${ECHO_T}$UNIXCONN" >&6; }
19629 # Check whether --enable-tcp-transport was given.
19630if test "${enable_tcp_transport+set}" = set; then
19631  enableval=$enable_tcp_transport; TCPCONN=$enableval
19632else
19633  TCPCONN=yes
19634fi
19635
19636 { echo "$as_me:$LINENO: checking if Xtrans should support TCP socket connections" >&5
19637echo $ECHO_N "checking if Xtrans should support TCP socket connections... $ECHO_C" >&6; }
19638 { echo "$as_me:$LINENO: result: $TCPCONN" >&5
19639echo "${ECHO_T}$TCPCONN" >&6; }
19640 if test "$TCPCONN" = "yes"; then
19641
19642cat >>confdefs.h <<\_ACEOF
19643#define TCPCONN 1
19644_ACEOF
19645
19646
19647 # SVR4 hides these in libraries other than libc
19648 { echo "$as_me:$LINENO: checking for library containing socket" >&5
19649echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
19650if test "${ac_cv_search_socket+set}" = set; then
19651  echo $ECHO_N "(cached) $ECHO_C" >&6
19652else
19653  ac_func_search_save_LIBS=$LIBS
19654cat >conftest.$ac_ext <<_ACEOF
19655/* confdefs.h.  */
19656_ACEOF
19657cat confdefs.h >>conftest.$ac_ext
19658cat >>conftest.$ac_ext <<_ACEOF
19659/* end confdefs.h.  */
19660
19661/* Override any GCC internal prototype to avoid an error.
19662   Use char because int might match the return type of a GCC
19663   builtin and then its argument prototype would still apply.  */
19664#ifdef __cplusplus
19665extern "C"
19666#endif
19667char socket ();
19668int
19669main ()
19670{
19671return socket ();
19672  ;
19673  return 0;
19674}
19675_ACEOF
19676for ac_lib in '' socket; do
19677  if test -z "$ac_lib"; then
19678    ac_res="none required"
19679  else
19680    ac_res=-l$ac_lib
19681    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19682  fi
19683  rm -f conftest.$ac_objext conftest$ac_exeext
19684if { (ac_try="$ac_link"
19685case "(($ac_try" in
19686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687  *) ac_try_echo=$ac_try;;
19688esac
19689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690  (eval "$ac_link") 2>conftest.er1
19691  ac_status=$?
19692  grep -v '^ *+' conftest.er1 >conftest.err
19693  rm -f conftest.er1
19694  cat conftest.err >&5
19695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696  (exit $ac_status); } && {
19697	 test -z "$ac_c_werror_flag" ||
19698	 test ! -s conftest.err
19699       } && test -s conftest$ac_exeext &&
19700       $as_test_x conftest$ac_exeext; then
19701  ac_cv_search_socket=$ac_res
19702else
19703  echo "$as_me: failed program was:" >&5
19704sed 's/^/| /' conftest.$ac_ext >&5
19705
19706
19707fi
19708
19709rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19710      conftest$ac_exeext
19711  if test "${ac_cv_search_socket+set}" = set; then
19712  break
19713fi
19714done
19715if test "${ac_cv_search_socket+set}" = set; then
19716  :
19717else
19718  ac_cv_search_socket=no
19719fi
19720rm conftest.$ac_ext
19721LIBS=$ac_func_search_save_LIBS
19722fi
19723{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
19724echo "${ECHO_T}$ac_cv_search_socket" >&6; }
19725ac_res=$ac_cv_search_socket
19726if test "$ac_res" != no; then
19727  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19728
19729fi
19730
19731 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
19732echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
19733if test "${ac_cv_search_gethostbyname+set}" = set; then
19734  echo $ECHO_N "(cached) $ECHO_C" >&6
19735else
19736  ac_func_search_save_LIBS=$LIBS
19737cat >conftest.$ac_ext <<_ACEOF
19738/* confdefs.h.  */
19739_ACEOF
19740cat confdefs.h >>conftest.$ac_ext
19741cat >>conftest.$ac_ext <<_ACEOF
19742/* end confdefs.h.  */
19743
19744/* Override any GCC internal prototype to avoid an error.
19745   Use char because int might match the return type of a GCC
19746   builtin and then its argument prototype would still apply.  */
19747#ifdef __cplusplus
19748extern "C"
19749#endif
19750char gethostbyname ();
19751int
19752main ()
19753{
19754return gethostbyname ();
19755  ;
19756  return 0;
19757}
19758_ACEOF
19759for ac_lib in '' nsl; do
19760  if test -z "$ac_lib"; then
19761    ac_res="none required"
19762  else
19763    ac_res=-l$ac_lib
19764    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19765  fi
19766  rm -f conftest.$ac_objext conftest$ac_exeext
19767if { (ac_try="$ac_link"
19768case "(($ac_try" in
19769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770  *) ac_try_echo=$ac_try;;
19771esac
19772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773  (eval "$ac_link") 2>conftest.er1
19774  ac_status=$?
19775  grep -v '^ *+' conftest.er1 >conftest.err
19776  rm -f conftest.er1
19777  cat conftest.err >&5
19778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779  (exit $ac_status); } && {
19780	 test -z "$ac_c_werror_flag" ||
19781	 test ! -s conftest.err
19782       } && test -s conftest$ac_exeext &&
19783       $as_test_x conftest$ac_exeext; then
19784  ac_cv_search_gethostbyname=$ac_res
19785else
19786  echo "$as_me: failed program was:" >&5
19787sed 's/^/| /' conftest.$ac_ext >&5
19788
19789
19790fi
19791
19792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19793      conftest$ac_exeext
19794  if test "${ac_cv_search_gethostbyname+set}" = set; then
19795  break
19796fi
19797done
19798if test "${ac_cv_search_gethostbyname+set}" = set; then
19799  :
19800else
19801  ac_cv_search_gethostbyname=no
19802fi
19803rm conftest.$ac_ext
19804LIBS=$ac_func_search_save_LIBS
19805fi
19806{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
19807echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
19808ac_res=$ac_cv_search_gethostbyname
19809if test "$ac_res" != no; then
19810  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19811
19812fi
19813
19814
19815 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
19816 # Check whether --enable-ipv6 was given.
19817if test "${enable_ipv6+set}" = set; then
19818  enableval=$enable_ipv6; IPV6CONN=$enableval
19819else
19820  { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19821echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19822if test "${ac_cv_func_getaddrinfo+set}" = set; then
19823  echo $ECHO_N "(cached) $ECHO_C" >&6
19824else
19825  cat >conftest.$ac_ext <<_ACEOF
19826/* confdefs.h.  */
19827_ACEOF
19828cat confdefs.h >>conftest.$ac_ext
19829cat >>conftest.$ac_ext <<_ACEOF
19830/* end confdefs.h.  */
19831/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
19832   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19833#define getaddrinfo innocuous_getaddrinfo
19834
19835/* System header to define __stub macros and hopefully few prototypes,
19836    which can conflict with char getaddrinfo (); below.
19837    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19838    <limits.h> exists even on freestanding compilers.  */
19839
19840#ifdef __STDC__
19841# include <limits.h>
19842#else
19843# include <assert.h>
19844#endif
19845
19846#undef getaddrinfo
19847
19848/* Override any GCC internal prototype to avoid an error.
19849   Use char because int might match the return type of a GCC
19850   builtin and then its argument prototype would still apply.  */
19851#ifdef __cplusplus
19852extern "C"
19853#endif
19854char getaddrinfo ();
19855/* The GNU C library defines this for functions which it implements
19856    to always fail with ENOSYS.  Some functions are actually named
19857    something starting with __ and the normal name is an alias.  */
19858#if defined __stub_getaddrinfo || defined __stub___getaddrinfo
19859choke me
19860#endif
19861
19862int
19863main ()
19864{
19865return getaddrinfo ();
19866  ;
19867  return 0;
19868}
19869_ACEOF
19870rm -f conftest.$ac_objext conftest$ac_exeext
19871if { (ac_try="$ac_link"
19872case "(($ac_try" in
19873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874  *) ac_try_echo=$ac_try;;
19875esac
19876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877  (eval "$ac_link") 2>conftest.er1
19878  ac_status=$?
19879  grep -v '^ *+' conftest.er1 >conftest.err
19880  rm -f conftest.er1
19881  cat conftest.err >&5
19882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883  (exit $ac_status); } && {
19884	 test -z "$ac_c_werror_flag" ||
19885	 test ! -s conftest.err
19886       } && test -s conftest$ac_exeext &&
19887       $as_test_x conftest$ac_exeext; then
19888  ac_cv_func_getaddrinfo=yes
19889else
19890  echo "$as_me: failed program was:" >&5
19891sed 's/^/| /' conftest.$ac_ext >&5
19892
19893	ac_cv_func_getaddrinfo=no
19894fi
19895
19896rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19897      conftest$ac_exeext conftest.$ac_ext
19898fi
19899{ echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
19900echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
19901if test $ac_cv_func_getaddrinfo = yes; then
19902  IPV6CONN=yes
19903else
19904  IPV6CONN=no
19905fi
19906
19907fi
19908
19909 { echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5
19910echo $ECHO_N "checking if IPv6 support should be built... $ECHO_C" >&6; }
19911 if test "$IPV6CONN" = "yes"; then
19912
19913cat >>confdefs.h <<\_ACEOF
19914#define IPv6 1
19915_ACEOF
19916
19917 fi
19918 { echo "$as_me:$LINENO: result: $IPV6CONN" >&5
19919echo "${ECHO_T}$IPV6CONN" >&6; }
19920
19921 # 4.3BSD-Reno added a new member to struct sockaddr_in
19922 { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
19923echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
19924if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
19925  echo $ECHO_N "(cached) $ECHO_C" >&6
19926else
19927  cat >conftest.$ac_ext <<_ACEOF
19928/* confdefs.h.  */
19929_ACEOF
19930cat confdefs.h >>conftest.$ac_ext
19931cat >>conftest.$ac_ext <<_ACEOF
19932/* end confdefs.h.  */
19933
19934#include <sys/types.h>
19935#include <sys/socket.h>
19936#include <netinet/in.h>
19937
19938
19939int
19940main ()
19941{
19942static struct sockaddr_in ac_aggr;
19943if (ac_aggr.sin_len)
19944return 0;
19945  ;
19946  return 0;
19947}
19948_ACEOF
19949rm -f conftest.$ac_objext
19950if { (ac_try="$ac_compile"
19951case "(($ac_try" in
19952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953  *) ac_try_echo=$ac_try;;
19954esac
19955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956  (eval "$ac_compile") 2>conftest.er1
19957  ac_status=$?
19958  grep -v '^ *+' conftest.er1 >conftest.err
19959  rm -f conftest.er1
19960  cat conftest.err >&5
19961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962  (exit $ac_status); } && {
19963	 test -z "$ac_c_werror_flag" ||
19964	 test ! -s conftest.err
19965       } && test -s conftest.$ac_objext; then
19966  ac_cv_member_struct_sockaddr_in_sin_len=yes
19967else
19968  echo "$as_me: failed program was:" >&5
19969sed 's/^/| /' conftest.$ac_ext >&5
19970
19971	cat >conftest.$ac_ext <<_ACEOF
19972/* confdefs.h.  */
19973_ACEOF
19974cat confdefs.h >>conftest.$ac_ext
19975cat >>conftest.$ac_ext <<_ACEOF
19976/* end confdefs.h.  */
19977
19978#include <sys/types.h>
19979#include <sys/socket.h>
19980#include <netinet/in.h>
19981
19982
19983int
19984main ()
19985{
19986static struct sockaddr_in ac_aggr;
19987if (sizeof ac_aggr.sin_len)
19988return 0;
19989  ;
19990  return 0;
19991}
19992_ACEOF
19993rm -f conftest.$ac_objext
19994if { (ac_try="$ac_compile"
19995case "(($ac_try" in
19996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997  *) ac_try_echo=$ac_try;;
19998esac
19999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000  (eval "$ac_compile") 2>conftest.er1
20001  ac_status=$?
20002  grep -v '^ *+' conftest.er1 >conftest.err
20003  rm -f conftest.er1
20004  cat conftest.err >&5
20005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006  (exit $ac_status); } && {
20007	 test -z "$ac_c_werror_flag" ||
20008	 test ! -s conftest.err
20009       } && test -s conftest.$ac_objext; then
20010  ac_cv_member_struct_sockaddr_in_sin_len=yes
20011else
20012  echo "$as_me: failed program was:" >&5
20013sed 's/^/| /' conftest.$ac_ext >&5
20014
20015	ac_cv_member_struct_sockaddr_in_sin_len=no
20016fi
20017
20018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019fi
20020
20021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20022fi
20023{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
20024echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
20025if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
20026
20027cat >>confdefs.h <<\_ACEOF
20028#define BSD44SOCKETS 1
20029_ACEOF
20030
20031fi
20032
20033
20034 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
20035 { echo "$as_me:$LINENO: checking for socklen_t" >&5
20036echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
20037if test "${ac_cv_type_socklen_t+set}" = set; then
20038  echo $ECHO_N "(cached) $ECHO_C" >&6
20039else
20040  cat >conftest.$ac_ext <<_ACEOF
20041/* confdefs.h.  */
20042_ACEOF
20043cat confdefs.h >>conftest.$ac_ext
20044cat >>conftest.$ac_ext <<_ACEOF
20045/* end confdefs.h.  */
20046
20047$ac_includes_default
20048#include <sys/socket.h>
20049
20050typedef socklen_t ac__type_new_;
20051int
20052main ()
20053{
20054if ((ac__type_new_ *) 0)
20055  return 0;
20056if (sizeof (ac__type_new_))
20057  return 0;
20058  ;
20059  return 0;
20060}
20061_ACEOF
20062rm -f conftest.$ac_objext
20063if { (ac_try="$ac_compile"
20064case "(($ac_try" in
20065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066  *) ac_try_echo=$ac_try;;
20067esac
20068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069  (eval "$ac_compile") 2>conftest.er1
20070  ac_status=$?
20071  grep -v '^ *+' conftest.er1 >conftest.err
20072  rm -f conftest.er1
20073  cat conftest.err >&5
20074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075  (exit $ac_status); } && {
20076	 test -z "$ac_c_werror_flag" ||
20077	 test ! -s conftest.err
20078       } && test -s conftest.$ac_objext; then
20079  ac_cv_type_socklen_t=yes
20080else
20081  echo "$as_me: failed program was:" >&5
20082sed 's/^/| /' conftest.$ac_ext >&5
20083
20084	ac_cv_type_socklen_t=no
20085fi
20086
20087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20088fi
20089{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
20090echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
20091if test $ac_cv_type_socklen_t = yes; then
20092
20093cat >>confdefs.h <<_ACEOF
20094#define HAVE_SOCKLEN_T 1
20095_ACEOF
20096
20097
20098fi
20099
20100
20101
20102 fi
20103 case $host_os in
20104	solaris*|sco*|sysv4*)	localdef="yes" ;;
20105	*)			localdef="no"  ;;
20106 esac
20107 # Check whether --enable-local-transport was given.
20108if test "${enable_local_transport+set}" = set; then
20109  enableval=$enable_local_transport; LOCALCONN=$enableval
20110else
20111  LOCALCONN=$localdef
20112fi
20113
20114 { echo "$as_me:$LINENO: checking if Xtrans should support os-specific local connections" >&5
20115echo $ECHO_N "checking if Xtrans should support os-specific local connections... $ECHO_C" >&6; }
20116 { echo "$as_me:$LINENO: result: $LOCALCONN" >&5
20117echo "${ECHO_T}$LOCALCONN" >&6; }
20118 if test "$LOCALCONN" = "yes"; then
20119
20120cat >>confdefs.h <<\_ACEOF
20121#define LOCALCONN 1
20122_ACEOF
20123
20124 fi
20125
20126
20127
20128
20129# Check whether --enable-malloc0returnsnull was given.
20130if test "${enable_malloc0returnsnull+set}" = set; then
20131  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
20132else
20133  MALLOC_ZERO_RETURNS_NULL=auto
20134fi
20135
20136
20137{ echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
20138echo $ECHO_N "checking whether malloc(0) returns NULL... $ECHO_C" >&6; }
20139if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
20140	if test "$cross_compiling" = yes; then
20141  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20142See \`config.log' for more details." >&5
20143echo "$as_me: error: cannot run test program while cross compiling
20144See \`config.log' for more details." >&2;}
20145   { (exit 1); exit 1; }; }
20146else
20147  cat >conftest.$ac_ext <<_ACEOF
20148
20149char *malloc();
20150char *realloc();
20151char *calloc();
20152main() {
20153    char *m0, *r0, *c0, *p;
20154    m0 = malloc(0);
20155    p = malloc(10);
20156    r0 = realloc(p,0);
20157    c0 = calloc(0);
20158    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
20159}
20160_ACEOF
20161rm -f conftest$ac_exeext
20162if { (ac_try="$ac_link"
20163case "(($ac_try" in
20164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165  *) ac_try_echo=$ac_try;;
20166esac
20167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168  (eval "$ac_link") 2>&5
20169  ac_status=$?
20170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20172  { (case "(($ac_try" in
20173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174  *) ac_try_echo=$ac_try;;
20175esac
20176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177  (eval "$ac_try") 2>&5
20178  ac_status=$?
20179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180  (exit $ac_status); }; }; then
20181  MALLOC_ZERO_RETURNS_NULL=yes
20182else
20183  echo "$as_me: program exited with status $ac_status" >&5
20184echo "$as_me: failed program was:" >&5
20185sed 's/^/| /' conftest.$ac_ext >&5
20186
20187( exit $ac_status )
20188MALLOC_ZERO_RETURNS_NULL=no
20189fi
20190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20191fi
20192
20193
20194fi
20195{ echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
20196echo "${ECHO_T}$MALLOC_ZERO_RETURNS_NULL" >&6; }
20197
20198if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
20199	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
20200	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
20201	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
20202else
20203	MALLOC_ZERO_CFLAGS=""
20204	XMALLOC_ZERO_CFLAGS=""
20205	XTMALLOC_ZERO_CFLAGS=""
20206fi
20207
20208
20209
20210
20211
20212
20213
20214
20215# Allow checking code with lint, sparse, etc.
20216
20217# Check whether --with-lint was given.
20218if test "${with_lint+set}" = set; then
20219  withval=$with_lint; use_lint=$withval
20220else
20221  use_lint=no
20222fi
20223
20224if test "x$use_lint" = "xyes" ; then
20225	LINT="lint"
20226else
20227	LINT="$use_lint"
20228fi
20229if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
20230    case $LINT in
20231	lint|*/lint)
20232	    case $host_os in
20233		solaris*)
20234			LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20235			;;
20236	    esac
20237	    ;;
20238    esac
20239fi
20240
20241
20242
20243 if test x$LINT != xno; then
20244  LINT_TRUE=
20245  LINT_FALSE='#'
20246else
20247  LINT_TRUE='#'
20248  LINT_FALSE=
20249fi
20250
20251
20252
20253
20254
20255# Build lint "library" for more indepth checks of programs calling this library
20256# Check whether --enable-lint-library was given.
20257if test "${enable_lint_library+set}" = set; then
20258  enableval=$enable_lint_library; make_lint_lib=$enableval
20259else
20260  make_lint_lib=no
20261fi
20262
20263if test "x$make_lint_lib" != "xno" ; then
20264	if test "x$LINT" = "xno" ; then
20265		{ { echo "$as_me:$LINENO: error: Cannot make lint library without --with-lint" >&5
20266echo "$as_me: error: Cannot make lint library without --with-lint" >&2;}
20267   { (exit 1); exit 1; }; }
20268	fi
20269	if test "x$make_lint_lib" = "xyes" ; then
20270		LINTLIB=llib-lFS.ln
20271	else
20272		LINTLIB=$make_lint_lib
20273	fi
20274fi
20275
20276 if test x$make_lint_lib != xno; then
20277  MAKE_LINT_LIB_TRUE=
20278  MAKE_LINT_LIB_FALSE='#'
20279else
20280  MAKE_LINT_LIB_TRUE='#'
20281  MAKE_LINT_LIB_FALSE=
20282fi
20283
20284
20285
20286
20287
20288
20289# Check whether --with-release-version was given.
20290if test "${with_release_version+set}" = set; then
20291  withval=$with_release_version; RELEASE_VERSION="$withval"
20292else
20293  RELEASE_VERSION=""
20294fi
20295
20296	if test "x$RELEASE_VERSION" != "x"; then
20297		PACKAGE="$PACKAGE-$RELEASE_VERSION"
20298		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20299		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20300echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20301	fi
20302
20303cat >>confdefs.h <<_ACEOF
20304#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20305_ACEOF
20306
20307	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20308	if test "x$PVM" = "x"; then
20309		PVM="0"
20310	fi
20311
20312cat >>confdefs.h <<_ACEOF
20313#define PACKAGE_VERSION_MINOR $PVM
20314_ACEOF
20315
20316	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20317	if test "x$PVP" = "x"; then
20318		PVP="0"
20319	fi
20320
20321cat >>confdefs.h <<_ACEOF
20322#define PACKAGE_VERSION_PATCHLEVEL $PVP
20323_ACEOF
20324
20325
20326
20327ac_config_files="$ac_config_files Makefile src/Makefile libfs.pc"
20328
20329cat >confcache <<\_ACEOF
20330# This file is a shell script that caches the results of configure
20331# tests run on this system so they can be shared between configure
20332# scripts and configure runs, see configure's option --config-cache.
20333# It is not useful on other systems.  If it contains results you don't
20334# want to keep, you may remove or edit it.
20335#
20336# config.status only pays attention to the cache file if you give it
20337# the --recheck option to rerun configure.
20338#
20339# `ac_cv_env_foo' variables (set or unset) will be overridden when
20340# loading this file, other *unset* `ac_cv_foo' will be assigned the
20341# following values.
20342
20343_ACEOF
20344
20345# The following way of writing the cache mishandles newlines in values,
20346# but we know of no workaround that is simple, portable, and efficient.
20347# So, we kill variables containing newlines.
20348# Ultrix sh set writes to stderr and can't be redirected directly,
20349# and sets the high bit in the cache file unless we assign to the vars.
20350(
20351  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20352    eval ac_val=\$$ac_var
20353    case $ac_val in #(
20354    *${as_nl}*)
20355      case $ac_var in #(
20356      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20357echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20358      esac
20359      case $ac_var in #(
20360      _ | IFS | as_nl) ;; #(
20361      *) $as_unset $ac_var ;;
20362      esac ;;
20363    esac
20364  done
20365
20366  (set) 2>&1 |
20367    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20368    *${as_nl}ac_space=\ *)
20369      # `set' does not quote correctly, so add quotes (double-quote
20370      # substitution turns \\\\ into \\, and sed turns \\ into \).
20371      sed -n \
20372	"s/'/'\\\\''/g;
20373	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20374      ;; #(
20375    *)
20376      # `set' quotes correctly as required by POSIX, so do not add quotes.
20377      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20378      ;;
20379    esac |
20380    sort
20381) |
20382  sed '
20383     /^ac_cv_env_/b end
20384     t clear
20385     :clear
20386     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20387     t end
20388     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20389     :end' >>confcache
20390if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20391  if test -w "$cache_file"; then
20392    test "x$cache_file" != "x/dev/null" &&
20393      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20394echo "$as_me: updating cache $cache_file" >&6;}
20395    cat confcache >$cache_file
20396  else
20397    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20398echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20399  fi
20400fi
20401rm -f confcache
20402
20403test "x$prefix" = xNONE && prefix=$ac_default_prefix
20404# Let make expand exec_prefix.
20405test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20406
20407DEFS=-DHAVE_CONFIG_H
20408
20409ac_libobjs=
20410ac_ltlibobjs=
20411for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20412  # 1. Remove the extension, and $U if already installed.
20413  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20414  ac_i=`echo "$ac_i" | sed "$ac_script"`
20415  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20416  #    will be set to the directory where LIBOBJS objects are built.
20417  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20418  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20419done
20420LIBOBJS=$ac_libobjs
20421
20422LTLIBOBJS=$ac_ltlibobjs
20423
20424
20425if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20426  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20427Usually this means the macro was only invoked conditionally." >&5
20428echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20429Usually this means the macro was only invoked conditionally." >&2;}
20430   { (exit 1); exit 1; }; }
20431fi
20432if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20433  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20434Usually this means the macro was only invoked conditionally." >&5
20435echo "$as_me: error: conditional \"AMDEP\" was never defined.
20436Usually this means the macro was only invoked conditionally." >&2;}
20437   { (exit 1); exit 1; }; }
20438fi
20439if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20440  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20441Usually this means the macro was only invoked conditionally." >&5
20442echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20443Usually this means the macro was only invoked conditionally." >&2;}
20444   { (exit 1); exit 1; }; }
20445fi
20446if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20447  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20448Usually this means the macro was only invoked conditionally." >&5
20449echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20450Usually this means the macro was only invoked conditionally." >&2;}
20451   { (exit 1); exit 1; }; }
20452fi
20453if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
20454  { { echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined.
20455Usually this means the macro was only invoked conditionally." >&5
20456echo "$as_me: error: conditional \"LINT\" was never defined.
20457Usually this means the macro was only invoked conditionally." >&2;}
20458   { (exit 1); exit 1; }; }
20459fi
20460if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
20461  { { echo "$as_me:$LINENO: error: conditional \"MAKE_LINT_LIB\" was never defined.
20462Usually this means the macro was only invoked conditionally." >&5
20463echo "$as_me: error: conditional \"MAKE_LINT_LIB\" was never defined.
20464Usually this means the macro was only invoked conditionally." >&2;}
20465   { (exit 1); exit 1; }; }
20466fi
20467
20468: ${CONFIG_STATUS=./config.status}
20469ac_clean_files_save=$ac_clean_files
20470ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20471{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20472echo "$as_me: creating $CONFIG_STATUS" >&6;}
20473cat >$CONFIG_STATUS <<_ACEOF
20474#! $SHELL
20475# Generated by $as_me.
20476# Run this file to recreate the current configuration.
20477# Compiler output produced by configure, useful for debugging
20478# configure, is in config.log if it exists.
20479
20480debug=false
20481ac_cs_recheck=false
20482ac_cs_silent=false
20483SHELL=\${CONFIG_SHELL-$SHELL}
20484_ACEOF
20485
20486cat >>$CONFIG_STATUS <<\_ACEOF
20487## --------------------- ##
20488## M4sh Initialization.  ##
20489## --------------------- ##
20490
20491# Be more Bourne compatible
20492DUALCASE=1; export DUALCASE # for MKS sh
20493if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20494  emulate sh
20495  NULLCMD=:
20496  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20497  # is contrary to our usage.  Disable this feature.
20498  alias -g '${1+"$@"}'='"$@"'
20499  setopt NO_GLOB_SUBST
20500else
20501  case `(set -o) 2>/dev/null` in
20502  *posix*) set -o posix ;;
20503esac
20504
20505fi
20506
20507
20508
20509
20510# PATH needs CR
20511# Avoid depending upon Character Ranges.
20512as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20513as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20514as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20515as_cr_digits='0123456789'
20516as_cr_alnum=$as_cr_Letters$as_cr_digits
20517
20518# The user is always right.
20519if test "${PATH_SEPARATOR+set}" != set; then
20520  echo "#! /bin/sh" >conf$$.sh
20521  echo  "exit 0"   >>conf$$.sh
20522  chmod +x conf$$.sh
20523  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20524    PATH_SEPARATOR=';'
20525  else
20526    PATH_SEPARATOR=:
20527  fi
20528  rm -f conf$$.sh
20529fi
20530
20531# Support unset when possible.
20532if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20533  as_unset=unset
20534else
20535  as_unset=false
20536fi
20537
20538
20539# IFS
20540# We need space, tab and new line, in precisely that order.  Quoting is
20541# there to prevent editors from complaining about space-tab.
20542# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20543# splitting by setting IFS to empty value.)
20544as_nl='
20545'
20546IFS=" ""	$as_nl"
20547
20548# Find who we are.  Look in the path if we contain no directory separator.
20549case $0 in
20550  *[\\/]* ) as_myself=$0 ;;
20551  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20552for as_dir in $PATH
20553do
20554  IFS=$as_save_IFS
20555  test -z "$as_dir" && as_dir=.
20556  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20557done
20558IFS=$as_save_IFS
20559
20560     ;;
20561esac
20562# We did not find ourselves, most probably we were run as `sh COMMAND'
20563# in which case we are not to be found in the path.
20564if test "x$as_myself" = x; then
20565  as_myself=$0
20566fi
20567if test ! -f "$as_myself"; then
20568  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20569  { (exit 1); exit 1; }
20570fi
20571
20572# Work around bugs in pre-3.0 UWIN ksh.
20573for as_var in ENV MAIL MAILPATH
20574do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20575done
20576PS1='$ '
20577PS2='> '
20578PS4='+ '
20579
20580# NLS nuisances.
20581for as_var in \
20582  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20583  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20584  LC_TELEPHONE LC_TIME
20585do
20586  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20587    eval $as_var=C; export $as_var
20588  else
20589    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20590  fi
20591done
20592
20593# Required to use basename.
20594if expr a : '\(a\)' >/dev/null 2>&1 &&
20595   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20596  as_expr=expr
20597else
20598  as_expr=false
20599fi
20600
20601if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20602  as_basename=basename
20603else
20604  as_basename=false
20605fi
20606
20607
20608# Name of the executable.
20609as_me=`$as_basename -- "$0" ||
20610$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20611	 X"$0" : 'X\(//\)$' \| \
20612	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20613echo X/"$0" |
20614    sed '/^.*\/\([^/][^/]*\)\/*$/{
20615	    s//\1/
20616	    q
20617	  }
20618	  /^X\/\(\/\/\)$/{
20619	    s//\1/
20620	    q
20621	  }
20622	  /^X\/\(\/\).*/{
20623	    s//\1/
20624	    q
20625	  }
20626	  s/.*/./; q'`
20627
20628# CDPATH.
20629$as_unset CDPATH
20630
20631
20632
20633  as_lineno_1=$LINENO
20634  as_lineno_2=$LINENO
20635  test "x$as_lineno_1" != "x$as_lineno_2" &&
20636  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20637
20638  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20639  # uniformly replaced by the line number.  The first 'sed' inserts a
20640  # line-number line after each line using $LINENO; the second 'sed'
20641  # does the real work.  The second script uses 'N' to pair each
20642  # line-number line with the line containing $LINENO, and appends
20643  # trailing '-' during substitution so that $LINENO is not a special
20644  # case at line end.
20645  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20646  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20647  # E. McMahon (1931-1989) for sed's syntax.  :-)
20648  sed -n '
20649    p
20650    /[$]LINENO/=
20651  ' <$as_myself |
20652    sed '
20653      s/[$]LINENO.*/&-/
20654      t lineno
20655      b
20656      :lineno
20657      N
20658      :loop
20659      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20660      t loop
20661      s/-\n.*//
20662    ' >$as_me.lineno &&
20663  chmod +x "$as_me.lineno" ||
20664    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20665   { (exit 1); exit 1; }; }
20666
20667  # Don't try to exec as it changes $[0], causing all sort of problems
20668  # (the dirname of $[0] is not the place where we might find the
20669  # original and so on.  Autoconf is especially sensitive to this).
20670  . "./$as_me.lineno"
20671  # Exit status is that of the last command.
20672  exit
20673}
20674
20675
20676if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20677  as_dirname=dirname
20678else
20679  as_dirname=false
20680fi
20681
20682ECHO_C= ECHO_N= ECHO_T=
20683case `echo -n x` in
20684-n*)
20685  case `echo 'x\c'` in
20686  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20687  *)   ECHO_C='\c';;
20688  esac;;
20689*)
20690  ECHO_N='-n';;
20691esac
20692
20693if expr a : '\(a\)' >/dev/null 2>&1 &&
20694   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20695  as_expr=expr
20696else
20697  as_expr=false
20698fi
20699
20700rm -f conf$$ conf$$.exe conf$$.file
20701if test -d conf$$.dir; then
20702  rm -f conf$$.dir/conf$$.file
20703else
20704  rm -f conf$$.dir
20705  mkdir conf$$.dir
20706fi
20707echo >conf$$.file
20708if ln -s conf$$.file conf$$ 2>/dev/null; then
20709  as_ln_s='ln -s'
20710  # ... but there are two gotchas:
20711  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20712  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20713  # In both cases, we have to default to `cp -p'.
20714  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20715    as_ln_s='cp -p'
20716elif ln conf$$.file conf$$ 2>/dev/null; then
20717  as_ln_s=ln
20718else
20719  as_ln_s='cp -p'
20720fi
20721rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20722rmdir conf$$.dir 2>/dev/null
20723
20724if mkdir -p . 2>/dev/null; then
20725  as_mkdir_p=:
20726else
20727  test -d ./-p && rmdir ./-p
20728  as_mkdir_p=false
20729fi
20730
20731if test -x / >/dev/null 2>&1; then
20732  as_test_x='test -x'
20733else
20734  if ls -dL / >/dev/null 2>&1; then
20735    as_ls_L_option=L
20736  else
20737    as_ls_L_option=
20738  fi
20739  as_test_x='
20740    eval sh -c '\''
20741      if test -d "$1"; then
20742        test -d "$1/.";
20743      else
20744	case $1 in
20745        -*)set "./$1";;
20746	esac;
20747	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20748	???[sx]*):;;*)false;;esac;fi
20749    '\'' sh
20750  '
20751fi
20752as_executable_p=$as_test_x
20753
20754# Sed expression to map a string onto a valid CPP name.
20755as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20756
20757# Sed expression to map a string onto a valid variable name.
20758as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20759
20760
20761exec 6>&1
20762
20763# Save the log message, to keep $[0] and so on meaningful, and to
20764# report actual input values of CONFIG_FILES etc. instead of their
20765# values after options handling.
20766ac_log="
20767This file was extended by libFS $as_me 1.0.1, which was
20768generated by GNU Autoconf 2.61.  Invocation command line was
20769
20770  CONFIG_FILES    = $CONFIG_FILES
20771  CONFIG_HEADERS  = $CONFIG_HEADERS
20772  CONFIG_LINKS    = $CONFIG_LINKS
20773  CONFIG_COMMANDS = $CONFIG_COMMANDS
20774  $ $0 $@
20775
20776on `(hostname || uname -n) 2>/dev/null | sed 1q`
20777"
20778
20779_ACEOF
20780
20781cat >>$CONFIG_STATUS <<_ACEOF
20782# Files that config.status was made for.
20783config_files="$ac_config_files"
20784config_headers="$ac_config_headers"
20785config_commands="$ac_config_commands"
20786
20787_ACEOF
20788
20789cat >>$CONFIG_STATUS <<\_ACEOF
20790ac_cs_usage="\
20791\`$as_me' instantiates files from templates according to the
20792current configuration.
20793
20794Usage: $0 [OPTIONS] [FILE]...
20795
20796  -h, --help       print this help, then exit
20797  -V, --version    print version number and configuration settings, then exit
20798  -q, --quiet      do not print progress messages
20799  -d, --debug      don't remove temporary files
20800      --recheck    update $as_me by reconfiguring in the same conditions
20801  --file=FILE[:TEMPLATE]
20802		   instantiate the configuration file FILE
20803  --header=FILE[:TEMPLATE]
20804		   instantiate the configuration header FILE
20805
20806Configuration files:
20807$config_files
20808
20809Configuration headers:
20810$config_headers
20811
20812Configuration commands:
20813$config_commands
20814
20815Report bugs to <bug-autoconf@gnu.org>."
20816
20817_ACEOF
20818cat >>$CONFIG_STATUS <<_ACEOF
20819ac_cs_version="\\
20820libFS config.status 1.0.1
20821configured by $0, generated by GNU Autoconf 2.61,
20822  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20823
20824Copyright (C) 2006 Free Software Foundation, Inc.
20825This config.status script is free software; the Free Software Foundation
20826gives unlimited permission to copy, distribute and modify it."
20827
20828ac_pwd='$ac_pwd'
20829srcdir='$srcdir'
20830INSTALL='$INSTALL'
20831MKDIR_P='$MKDIR_P'
20832_ACEOF
20833
20834cat >>$CONFIG_STATUS <<\_ACEOF
20835# If no file are specified by the user, then we need to provide default
20836# value.  By we need to know if files were specified by the user.
20837ac_need_defaults=:
20838while test $# != 0
20839do
20840  case $1 in
20841  --*=*)
20842    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20843    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20844    ac_shift=:
20845    ;;
20846  *)
20847    ac_option=$1
20848    ac_optarg=$2
20849    ac_shift=shift
20850    ;;
20851  esac
20852
20853  case $ac_option in
20854  # Handling of the options.
20855  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20856    ac_cs_recheck=: ;;
20857  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20858    echo "$ac_cs_version"; exit ;;
20859  --debug | --debu | --deb | --de | --d | -d )
20860    debug=: ;;
20861  --file | --fil | --fi | --f )
20862    $ac_shift
20863    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20864    ac_need_defaults=false;;
20865  --header | --heade | --head | --hea )
20866    $ac_shift
20867    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20868    ac_need_defaults=false;;
20869  --he | --h)
20870    # Conflict between --help and --header
20871    { echo "$as_me: error: ambiguous option: $1
20872Try \`$0 --help' for more information." >&2
20873   { (exit 1); exit 1; }; };;
20874  --help | --hel | -h )
20875    echo "$ac_cs_usage"; exit ;;
20876  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20877  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20878    ac_cs_silent=: ;;
20879
20880  # This is an error.
20881  -*) { echo "$as_me: error: unrecognized option: $1
20882Try \`$0 --help' for more information." >&2
20883   { (exit 1); exit 1; }; } ;;
20884
20885  *) ac_config_targets="$ac_config_targets $1"
20886     ac_need_defaults=false ;;
20887
20888  esac
20889  shift
20890done
20891
20892ac_configure_extra_args=
20893
20894if $ac_cs_silent; then
20895  exec 6>/dev/null
20896  ac_configure_extra_args="$ac_configure_extra_args --silent"
20897fi
20898
20899_ACEOF
20900cat >>$CONFIG_STATUS <<_ACEOF
20901if \$ac_cs_recheck; then
20902  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20903  CONFIG_SHELL=$SHELL
20904  export CONFIG_SHELL
20905  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20906fi
20907
20908_ACEOF
20909cat >>$CONFIG_STATUS <<\_ACEOF
20910exec 5>>config.log
20911{
20912  echo
20913  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20914## Running $as_me. ##
20915_ASBOX
20916  echo "$ac_log"
20917} >&5
20918
20919_ACEOF
20920cat >>$CONFIG_STATUS <<_ACEOF
20921#
20922# INIT-COMMANDS
20923#
20924AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20925
20926_ACEOF
20927
20928cat >>$CONFIG_STATUS <<\_ACEOF
20929
20930# Handling of arguments.
20931for ac_config_target in $ac_config_targets
20932do
20933  case $ac_config_target in
20934    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20935    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20936    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20937    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20938    "libfs.pc") CONFIG_FILES="$CONFIG_FILES libfs.pc" ;;
20939
20940  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20941echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20942   { (exit 1); exit 1; }; };;
20943  esac
20944done
20945
20946
20947# If the user did not use the arguments to specify the items to instantiate,
20948# then the envvar interface is used.  Set only those that are not.
20949# We use the long form for the default assignment because of an extremely
20950# bizarre bug on SunOS 4.1.3.
20951if $ac_need_defaults; then
20952  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20953  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20954  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20955fi
20956
20957# Have a temporary directory for convenience.  Make it in the build tree
20958# simply because there is no reason against having it here, and in addition,
20959# creating and moving files from /tmp can sometimes cause problems.
20960# Hook for its removal unless debugging.
20961# Note that there is a small window in which the directory will not be cleaned:
20962# after its creation but before its name has been assigned to `$tmp'.
20963$debug ||
20964{
20965  tmp=
20966  trap 'exit_status=$?
20967  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20968' 0
20969  trap '{ (exit 1); exit 1; }' 1 2 13 15
20970}
20971# Create a (secure) tmp directory for tmp files.
20972
20973{
20974  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20975  test -n "$tmp" && test -d "$tmp"
20976}  ||
20977{
20978  tmp=./conf$$-$RANDOM
20979  (umask 077 && mkdir "$tmp")
20980} ||
20981{
20982   echo "$me: cannot create a temporary directory in ." >&2
20983   { (exit 1); exit 1; }
20984}
20985
20986#
20987# Set up the sed scripts for CONFIG_FILES section.
20988#
20989
20990# No need to generate the scripts if there are no CONFIG_FILES.
20991# This happens for instance when ./config.status config.h
20992if test -n "$CONFIG_FILES"; then
20993
20994_ACEOF
20995
20996
20997
20998ac_delim='%!_!# '
20999for ac_last_try in false false false false false :; do
21000  cat >conf$$subs.sed <<_ACEOF
21001SHELL!$SHELL$ac_delim
21002PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21003PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21004PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21005PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21006PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21007PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21008exec_prefix!$exec_prefix$ac_delim
21009prefix!$prefix$ac_delim
21010program_transform_name!$program_transform_name$ac_delim
21011bindir!$bindir$ac_delim
21012sbindir!$sbindir$ac_delim
21013libexecdir!$libexecdir$ac_delim
21014datarootdir!$datarootdir$ac_delim
21015datadir!$datadir$ac_delim
21016sysconfdir!$sysconfdir$ac_delim
21017sharedstatedir!$sharedstatedir$ac_delim
21018localstatedir!$localstatedir$ac_delim
21019includedir!$includedir$ac_delim
21020oldincludedir!$oldincludedir$ac_delim
21021docdir!$docdir$ac_delim
21022infodir!$infodir$ac_delim
21023htmldir!$htmldir$ac_delim
21024dvidir!$dvidir$ac_delim
21025pdfdir!$pdfdir$ac_delim
21026psdir!$psdir$ac_delim
21027libdir!$libdir$ac_delim
21028localedir!$localedir$ac_delim
21029mandir!$mandir$ac_delim
21030DEFS!$DEFS$ac_delim
21031ECHO_C!$ECHO_C$ac_delim
21032ECHO_N!$ECHO_N$ac_delim
21033ECHO_T!$ECHO_T$ac_delim
21034LIBS!$LIBS$ac_delim
21035build_alias!$build_alias$ac_delim
21036host_alias!$host_alias$ac_delim
21037target_alias!$target_alias$ac_delim
21038INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21039INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21040INSTALL_DATA!$INSTALL_DATA$ac_delim
21041am__isrc!$am__isrc$ac_delim
21042CYGPATH_W!$CYGPATH_W$ac_delim
21043PACKAGE!$PACKAGE$ac_delim
21044VERSION!$VERSION$ac_delim
21045ACLOCAL!$ACLOCAL$ac_delim
21046AUTOCONF!$AUTOCONF$ac_delim
21047AUTOMAKE!$AUTOMAKE$ac_delim
21048AUTOHEADER!$AUTOHEADER$ac_delim
21049MAKEINFO!$MAKEINFO$ac_delim
21050install_sh!$install_sh$ac_delim
21051STRIP!$STRIP$ac_delim
21052INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21053mkdir_p!$mkdir_p$ac_delim
21054AWK!$AWK$ac_delim
21055SET_MAKE!$SET_MAKE$ac_delim
21056am__leading_dot!$am__leading_dot$ac_delim
21057AMTAR!$AMTAR$ac_delim
21058am__tar!$am__tar$ac_delim
21059am__untar!$am__untar$ac_delim
21060MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21061MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21062MAINT!$MAINT$ac_delim
21063CC!$CC$ac_delim
21064CFLAGS!$CFLAGS$ac_delim
21065LDFLAGS!$LDFLAGS$ac_delim
21066CPPFLAGS!$CPPFLAGS$ac_delim
21067ac_ct_CC!$ac_ct_CC$ac_delim
21068EXEEXT!$EXEEXT$ac_delim
21069OBJEXT!$OBJEXT$ac_delim
21070DEPDIR!$DEPDIR$ac_delim
21071am__include!$am__include$ac_delim
21072am__quote!$am__quote$ac_delim
21073AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21074AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21075AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21076CCDEPMODE!$CCDEPMODE$ac_delim
21077am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21078am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21079build!$build$ac_delim
21080build_cpu!$build_cpu$ac_delim
21081build_vendor!$build_vendor$ac_delim
21082build_os!$build_os$ac_delim
21083host!$host$ac_delim
21084host_cpu!$host_cpu$ac_delim
21085host_vendor!$host_vendor$ac_delim
21086host_os!$host_os$ac_delim
21087GREP!$GREP$ac_delim
21088EGREP!$EGREP$ac_delim
21089LN_S!$LN_S$ac_delim
21090ECHO!$ECHO$ac_delim
21091AR!$AR$ac_delim
21092RANLIB!$RANLIB$ac_delim
21093CPP!$CPP$ac_delim
21094CXX!$CXX$ac_delim
21095CXXFLAGS!$CXXFLAGS$ac_delim
21096ac_ct_CXX!$ac_ct_CXX$ac_delim
21097CXXDEPMODE!$CXXDEPMODE$ac_delim
21098_ACEOF
21099
21100  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21101    break
21102  elif $ac_last_try; then
21103    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21104echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21105   { (exit 1); exit 1; }; }
21106  else
21107    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21108  fi
21109done
21110
21111ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21112if test -n "$ac_eof"; then
21113  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21114  ac_eof=`expr $ac_eof + 1`
21115fi
21116
21117cat >>$CONFIG_STATUS <<_ACEOF
21118cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21119/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21120_ACEOF
21121sed '
21122s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21123s/^/s,@/; s/!/@,|#_!!_#|/
21124:n
21125t n
21126s/'"$ac_delim"'$/,g/; t
21127s/$/\\/; p
21128N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21129' >>$CONFIG_STATUS <conf$$subs.sed
21130rm -f conf$$subs.sed
21131cat >>$CONFIG_STATUS <<_ACEOF
21132CEOF$ac_eof
21133_ACEOF
21134
21135
21136ac_delim='%!_!# '
21137for ac_last_try in false false false false false :; do
21138  cat >conf$$subs.sed <<_ACEOF
21139am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21140am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21141CXXCPP!$CXXCPP$ac_delim
21142F77!$F77$ac_delim
21143FFLAGS!$FFLAGS$ac_delim
21144ac_ct_F77!$ac_ct_F77$ac_delim
21145LIBTOOL!$LIBTOOL$ac_delim
21146PKG_CONFIG!$PKG_CONFIG$ac_delim
21147FS_CFLAGS!$FS_CFLAGS$ac_delim
21148FS_LIBS!$FS_LIBS$ac_delim
21149XTRANS_CFLAGS!$XTRANS_CFLAGS$ac_delim
21150XTRANS_LIBS!$XTRANS_LIBS$ac_delim
21151MALLOC_ZERO_CFLAGS!$MALLOC_ZERO_CFLAGS$ac_delim
21152XMALLOC_ZERO_CFLAGS!$XMALLOC_ZERO_CFLAGS$ac_delim
21153XTMALLOC_ZERO_CFLAGS!$XTMALLOC_ZERO_CFLAGS$ac_delim
21154LINT!$LINT$ac_delim
21155LINT_FLAGS!$LINT_FLAGS$ac_delim
21156LINT_TRUE!$LINT_TRUE$ac_delim
21157LINT_FALSE!$LINT_FALSE$ac_delim
21158LINTLIB!$LINTLIB$ac_delim
21159MAKE_LINT_LIB_TRUE!$MAKE_LINT_LIB_TRUE$ac_delim
21160MAKE_LINT_LIB_FALSE!$MAKE_LINT_LIB_FALSE$ac_delim
21161LIBOBJS!$LIBOBJS$ac_delim
21162LTLIBOBJS!$LTLIBOBJS$ac_delim
21163_ACEOF
21164
21165  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
21166    break
21167  elif $ac_last_try; then
21168    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21169echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21170   { (exit 1); exit 1; }; }
21171  else
21172    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21173  fi
21174done
21175
21176ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21177if test -n "$ac_eof"; then
21178  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21179  ac_eof=`expr $ac_eof + 1`
21180fi
21181
21182cat >>$CONFIG_STATUS <<_ACEOF
21183cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21184/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21185_ACEOF
21186sed '
21187s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21188s/^/s,@/; s/!/@,|#_!!_#|/
21189:n
21190t n
21191s/'"$ac_delim"'$/,g/; t
21192s/$/\\/; p
21193N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21194' >>$CONFIG_STATUS <conf$$subs.sed
21195rm -f conf$$subs.sed
21196cat >>$CONFIG_STATUS <<_ACEOF
21197:end
21198s/|#_!!_#|//g
21199CEOF$ac_eof
21200_ACEOF
21201
21202
21203# VPATH may cause trouble with some makes, so we remove $(srcdir),
21204# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21205# trailing colons and then remove the whole line if VPATH becomes empty
21206# (actually we leave an empty line to preserve line numbers).
21207if test "x$srcdir" = x.; then
21208  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21209s/:*\$(srcdir):*/:/
21210s/:*\${srcdir}:*/:/
21211s/:*@srcdir@:*/:/
21212s/^\([^=]*=[	 ]*\):*/\1/
21213s/:*$//
21214s/^[^=]*=[	 ]*$//
21215}'
21216fi
21217
21218cat >>$CONFIG_STATUS <<\_ACEOF
21219fi # test -n "$CONFIG_FILES"
21220
21221
21222for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21223do
21224  case $ac_tag in
21225  :[FHLC]) ac_mode=$ac_tag; continue;;
21226  esac
21227  case $ac_mode$ac_tag in
21228  :[FHL]*:*);;
21229  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21230echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21231   { (exit 1); exit 1; }; };;
21232  :[FH]-) ac_tag=-:-;;
21233  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21234  esac
21235  ac_save_IFS=$IFS
21236  IFS=:
21237  set x $ac_tag
21238  IFS=$ac_save_IFS
21239  shift
21240  ac_file=$1
21241  shift
21242
21243  case $ac_mode in
21244  :L) ac_source=$1;;
21245  :[FH])
21246    ac_file_inputs=
21247    for ac_f
21248    do
21249      case $ac_f in
21250      -) ac_f="$tmp/stdin";;
21251      *) # Look for the file first in the build tree, then in the source tree
21252	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21253	 # because $ac_f cannot contain `:'.
21254	 test -f "$ac_f" ||
21255	   case $ac_f in
21256	   [\\/$]*) false;;
21257	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21258	   esac ||
21259	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21260echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21261   { (exit 1); exit 1; }; };;
21262      esac
21263      ac_file_inputs="$ac_file_inputs $ac_f"
21264    done
21265
21266    # Let's still pretend it is `configure' which instantiates (i.e., don't
21267    # use $as_me), people would be surprised to read:
21268    #    /* config.h.  Generated by config.status.  */
21269    configure_input="Generated from "`IFS=:
21270	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21271    if test x"$ac_file" != x-; then
21272      configure_input="$ac_file.  $configure_input"
21273      { echo "$as_me:$LINENO: creating $ac_file" >&5
21274echo "$as_me: creating $ac_file" >&6;}
21275    fi
21276
21277    case $ac_tag in
21278    *:-:* | *:-) cat >"$tmp/stdin";;
21279    esac
21280    ;;
21281  esac
21282
21283  ac_dir=`$as_dirname -- "$ac_file" ||
21284$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21285	 X"$ac_file" : 'X\(//\)[^/]' \| \
21286	 X"$ac_file" : 'X\(//\)$' \| \
21287	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21288echo X"$ac_file" |
21289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21290	    s//\1/
21291	    q
21292	  }
21293	  /^X\(\/\/\)[^/].*/{
21294	    s//\1/
21295	    q
21296	  }
21297	  /^X\(\/\/\)$/{
21298	    s//\1/
21299	    q
21300	  }
21301	  /^X\(\/\).*/{
21302	    s//\1/
21303	    q
21304	  }
21305	  s/.*/./; q'`
21306  { as_dir="$ac_dir"
21307  case $as_dir in #(
21308  -*) as_dir=./$as_dir;;
21309  esac
21310  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21311    as_dirs=
21312    while :; do
21313      case $as_dir in #(
21314      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21315      *) as_qdir=$as_dir;;
21316      esac
21317      as_dirs="'$as_qdir' $as_dirs"
21318      as_dir=`$as_dirname -- "$as_dir" ||
21319$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21320	 X"$as_dir" : 'X\(//\)[^/]' \| \
21321	 X"$as_dir" : 'X\(//\)$' \| \
21322	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21323echo X"$as_dir" |
21324    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21325	    s//\1/
21326	    q
21327	  }
21328	  /^X\(\/\/\)[^/].*/{
21329	    s//\1/
21330	    q
21331	  }
21332	  /^X\(\/\/\)$/{
21333	    s//\1/
21334	    q
21335	  }
21336	  /^X\(\/\).*/{
21337	    s//\1/
21338	    q
21339	  }
21340	  s/.*/./; q'`
21341      test -d "$as_dir" && break
21342    done
21343    test -z "$as_dirs" || eval "mkdir $as_dirs"
21344  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21345echo "$as_me: error: cannot create directory $as_dir" >&2;}
21346   { (exit 1); exit 1; }; }; }
21347  ac_builddir=.
21348
21349case "$ac_dir" in
21350.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21351*)
21352  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21353  # A ".." for each directory in $ac_dir_suffix.
21354  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21355  case $ac_top_builddir_sub in
21356  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21357  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21358  esac ;;
21359esac
21360ac_abs_top_builddir=$ac_pwd
21361ac_abs_builddir=$ac_pwd$ac_dir_suffix
21362# for backward compatibility:
21363ac_top_builddir=$ac_top_build_prefix
21364
21365case $srcdir in
21366  .)  # We are building in place.
21367    ac_srcdir=.
21368    ac_top_srcdir=$ac_top_builddir_sub
21369    ac_abs_top_srcdir=$ac_pwd ;;
21370  [\\/]* | ?:[\\/]* )  # Absolute name.
21371    ac_srcdir=$srcdir$ac_dir_suffix;
21372    ac_top_srcdir=$srcdir
21373    ac_abs_top_srcdir=$srcdir ;;
21374  *) # Relative name.
21375    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21376    ac_top_srcdir=$ac_top_build_prefix$srcdir
21377    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21378esac
21379ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21380
21381
21382  case $ac_mode in
21383  :F)
21384  #
21385  # CONFIG_FILE
21386  #
21387
21388  case $INSTALL in
21389  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21390  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21391  esac
21392  ac_MKDIR_P=$MKDIR_P
21393  case $MKDIR_P in
21394  [\\/$]* | ?:[\\/]* ) ;;
21395  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21396  esac
21397_ACEOF
21398
21399cat >>$CONFIG_STATUS <<\_ACEOF
21400# If the template does not know about datarootdir, expand it.
21401# FIXME: This hack should be removed a few years after 2.60.
21402ac_datarootdir_hack=; ac_datarootdir_seen=
21403
21404case `sed -n '/datarootdir/ {
21405  p
21406  q
21407}
21408/@datadir@/p
21409/@docdir@/p
21410/@infodir@/p
21411/@localedir@/p
21412/@mandir@/p
21413' $ac_file_inputs` in
21414*datarootdir*) ac_datarootdir_seen=yes;;
21415*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21416  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21417echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21418_ACEOF
21419cat >>$CONFIG_STATUS <<_ACEOF
21420  ac_datarootdir_hack='
21421  s&@datadir@&$datadir&g
21422  s&@docdir@&$docdir&g
21423  s&@infodir@&$infodir&g
21424  s&@localedir@&$localedir&g
21425  s&@mandir@&$mandir&g
21426    s&\\\${datarootdir}&$datarootdir&g' ;;
21427esac
21428_ACEOF
21429
21430# Neutralize VPATH when `$srcdir' = `.'.
21431# Shell code in configure.ac might set extrasub.
21432# FIXME: do we really want to maintain this feature?
21433cat >>$CONFIG_STATUS <<_ACEOF
21434  sed "$ac_vpsub
21435$extrasub
21436_ACEOF
21437cat >>$CONFIG_STATUS <<\_ACEOF
21438:t
21439/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21440s&@configure_input@&$configure_input&;t t
21441s&@top_builddir@&$ac_top_builddir_sub&;t t
21442s&@srcdir@&$ac_srcdir&;t t
21443s&@abs_srcdir@&$ac_abs_srcdir&;t t
21444s&@top_srcdir@&$ac_top_srcdir&;t t
21445s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21446s&@builddir@&$ac_builddir&;t t
21447s&@abs_builddir@&$ac_abs_builddir&;t t
21448s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21449s&@INSTALL@&$ac_INSTALL&;t t
21450s&@MKDIR_P@&$ac_MKDIR_P&;t t
21451$ac_datarootdir_hack
21452" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21453
21454test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21455  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21456  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21457  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21458which seems to be undefined.  Please make sure it is defined." >&5
21459echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21460which seems to be undefined.  Please make sure it is defined." >&2;}
21461
21462  rm -f "$tmp/stdin"
21463  case $ac_file in
21464  -) cat "$tmp/out"; rm -f "$tmp/out";;
21465  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21466  esac
21467 ;;
21468  :H)
21469  #
21470  # CONFIG_HEADER
21471  #
21472_ACEOF
21473
21474# Transform confdefs.h into a sed script `conftest.defines', that
21475# substitutes the proper values into config.h.in to produce config.h.
21476rm -f conftest.defines conftest.tail
21477# First, append a space to every undef/define line, to ease matching.
21478echo 's/$/ /' >conftest.defines
21479# Then, protect against being on the right side of a sed subst, or in
21480# an unquoted here document, in config.status.  If some macros were
21481# called several times there might be several #defines for the same
21482# symbol, which is useless.  But do not sort them, since the last
21483# AC_DEFINE must be honored.
21484ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21485# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21486# NAME is the cpp macro being defined, VALUE is the value it is being given.
21487# PARAMS is the parameter list in the macro definition--in most cases, it's
21488# just an empty string.
21489ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
21490ac_dB='\\)[	 (].*,\\1define\\2'
21491ac_dC=' '
21492ac_dD=' ,'
21493
21494uniq confdefs.h |
21495  sed -n '
21496	t rset
21497	:rset
21498	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
21499	t ok
21500	d
21501	:ok
21502	s/[\\&,]/\\&/g
21503	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21504	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21505  ' >>conftest.defines
21506
21507# Remove the space that was appended to ease matching.
21508# Then replace #undef with comments.  This is necessary, for
21509# example, in the case of _POSIX_SOURCE, which is predefined and required
21510# on some systems where configure will not decide to define it.
21511# (The regexp can be short, since the line contains either #define or #undef.)
21512echo 's/ $//
21513s,^[	 #]*u.*,/* & */,' >>conftest.defines
21514
21515# Break up conftest.defines:
21516ac_max_sed_lines=50
21517
21518# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21519# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21520# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21521# et cetera.
21522ac_in='$ac_file_inputs'
21523ac_out='"$tmp/out1"'
21524ac_nxt='"$tmp/out2"'
21525
21526while :
21527do
21528  # Write a here document:
21529    cat >>$CONFIG_STATUS <<_ACEOF
21530    # First, check the format of the line:
21531    cat >"\$tmp/defines.sed" <<\\CEOF
21532/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
21533/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
21534b
21535:def
21536_ACEOF
21537  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21538  echo 'CEOF
21539    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21540  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21541  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21542  grep . conftest.tail >/dev/null || break
21543  rm -f conftest.defines
21544  mv conftest.tail conftest.defines
21545done
21546rm -f conftest.defines conftest.tail
21547
21548echo "ac_result=$ac_in" >>$CONFIG_STATUS
21549cat >>$CONFIG_STATUS <<\_ACEOF
21550  if test x"$ac_file" != x-; then
21551    echo "/* $configure_input  */" >"$tmp/config.h"
21552    cat "$ac_result" >>"$tmp/config.h"
21553    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21554      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21555echo "$as_me: $ac_file is unchanged" >&6;}
21556    else
21557      rm -f $ac_file
21558      mv "$tmp/config.h" $ac_file
21559    fi
21560  else
21561    echo "/* $configure_input  */"
21562    cat "$ac_result"
21563  fi
21564  rm -f "$tmp/out12"
21565# Compute $ac_file's index in $config_headers.
21566_am_stamp_count=1
21567for _am_header in $config_headers :; do
21568  case $_am_header in
21569    $ac_file | $ac_file:* )
21570      break ;;
21571    * )
21572      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21573  esac
21574done
21575echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21576$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21577	 X$ac_file : 'X\(//\)[^/]' \| \
21578	 X$ac_file : 'X\(//\)$' \| \
21579	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21580echo X$ac_file |
21581    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21582	    s//\1/
21583	    q
21584	  }
21585	  /^X\(\/\/\)[^/].*/{
21586	    s//\1/
21587	    q
21588	  }
21589	  /^X\(\/\/\)$/{
21590	    s//\1/
21591	    q
21592	  }
21593	  /^X\(\/\).*/{
21594	    s//\1/
21595	    q
21596	  }
21597	  s/.*/./; q'`/stamp-h$_am_stamp_count
21598 ;;
21599
21600  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21601echo "$as_me: executing $ac_file commands" >&6;}
21602 ;;
21603  esac
21604
21605
21606  case $ac_file$ac_mode in
21607    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21608  # Strip MF so we end up with the name of the file.
21609  mf=`echo "$mf" | sed -e 's/:.*$//'`
21610  # Check whether this is an Automake generated Makefile or not.
21611  # We used to match only the files named `Makefile.in', but
21612  # some people rename them; so instead we look at the file content.
21613  # Grep'ing the first line is not enough: some people post-process
21614  # each Makefile.in and add a new line on top of each file to say so.
21615  # Grep'ing the whole file is not good either: AIX grep has a line
21616  # limit of 2048, but all sed's we know have understand at least 4000.
21617  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21618    dirpart=`$as_dirname -- "$mf" ||
21619$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21620	 X"$mf" : 'X\(//\)[^/]' \| \
21621	 X"$mf" : 'X\(//\)$' \| \
21622	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21623echo X"$mf" |
21624    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21625	    s//\1/
21626	    q
21627	  }
21628	  /^X\(\/\/\)[^/].*/{
21629	    s//\1/
21630	    q
21631	  }
21632	  /^X\(\/\/\)$/{
21633	    s//\1/
21634	    q
21635	  }
21636	  /^X\(\/\).*/{
21637	    s//\1/
21638	    q
21639	  }
21640	  s/.*/./; q'`
21641  else
21642    continue
21643  fi
21644  # Extract the definition of DEPDIR, am__include, and am__quote
21645  # from the Makefile without running `make'.
21646  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21647  test -z "$DEPDIR" && continue
21648  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21649  test -z "am__include" && continue
21650  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21651  # When using ansi2knr, U may be empty or an underscore; expand it
21652  U=`sed -n 's/^U = //p' < "$mf"`
21653  # Find all dependency output files, they are included files with
21654  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21655  # simplest approach to changing $(DEPDIR) to its actual value in the
21656  # expansion.
21657  for file in `sed -n "
21658    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21659       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21660    # Make sure the directory exists.
21661    test -f "$dirpart/$file" && continue
21662    fdir=`$as_dirname -- "$file" ||
21663$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21664	 X"$file" : 'X\(//\)[^/]' \| \
21665	 X"$file" : 'X\(//\)$' \| \
21666	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21667echo X"$file" |
21668    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21669	    s//\1/
21670	    q
21671	  }
21672	  /^X\(\/\/\)[^/].*/{
21673	    s//\1/
21674	    q
21675	  }
21676	  /^X\(\/\/\)$/{
21677	    s//\1/
21678	    q
21679	  }
21680	  /^X\(\/\).*/{
21681	    s//\1/
21682	    q
21683	  }
21684	  s/.*/./; q'`
21685    { as_dir=$dirpart/$fdir
21686  case $as_dir in #(
21687  -*) as_dir=./$as_dir;;
21688  esac
21689  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21690    as_dirs=
21691    while :; do
21692      case $as_dir in #(
21693      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21694      *) as_qdir=$as_dir;;
21695      esac
21696      as_dirs="'$as_qdir' $as_dirs"
21697      as_dir=`$as_dirname -- "$as_dir" ||
21698$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21699	 X"$as_dir" : 'X\(//\)[^/]' \| \
21700	 X"$as_dir" : 'X\(//\)$' \| \
21701	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21702echo X"$as_dir" |
21703    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21704	    s//\1/
21705	    q
21706	  }
21707	  /^X\(\/\/\)[^/].*/{
21708	    s//\1/
21709	    q
21710	  }
21711	  /^X\(\/\/\)$/{
21712	    s//\1/
21713	    q
21714	  }
21715	  /^X\(\/\).*/{
21716	    s//\1/
21717	    q
21718	  }
21719	  s/.*/./; q'`
21720      test -d "$as_dir" && break
21721    done
21722    test -z "$as_dirs" || eval "mkdir $as_dirs"
21723  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21724echo "$as_me: error: cannot create directory $as_dir" >&2;}
21725   { (exit 1); exit 1; }; }; }
21726    # echo "creating $dirpart/$file"
21727    echo '# dummy' > "$dirpart/$file"
21728  done
21729done
21730 ;;
21731
21732  esac
21733done # for ac_tag
21734
21735
21736{ (exit 0); exit 0; }
21737_ACEOF
21738chmod +x $CONFIG_STATUS
21739ac_clean_files=$ac_clean_files_save
21740
21741
21742# configure is writing to config.log, and then calls config.status.
21743# config.status does its own redirection, appending to config.log.
21744# Unfortunately, on DOS this fails, as config.log is still kept open
21745# by configure, so config.status won't be able to write to it; its
21746# output is simply discarded.  So we exec the FD to /dev/null,
21747# effectively closing config.log, so it can be properly (re)opened and
21748# appended to by config.status.  When coming back to configure, we
21749# need to make the FD available again.
21750if test "$no_create" != yes; then
21751  ac_cs_success=:
21752  ac_config_status_args=
21753  test "$silent" = yes &&
21754    ac_config_status_args="$ac_config_status_args --quiet"
21755  exec 5>/dev/null
21756  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21757  exec 5>>config.log
21758  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21759  # would make configure fail if this is the last instruction.
21760  $ac_cs_success || { (exit 1); exit 1; }
21761fi
21762
21763