1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20  setopt NO_GLOB_SUBST
21else
22  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23fi
24BIN_SH=xpg4; export BIN_SH # for Tru64
25DUALCASE=1; export DUALCASE # for MKS sh
26
27
28# PATH needs CR
29# Avoid depending upon Character Ranges.
30as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33as_cr_digits='0123456789'
34as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36# The user is always right.
37if test "${PATH_SEPARATOR+set}" != set; then
38  echo "#! /bin/sh" >conf$$.sh
39  echo  "exit 0"   >>conf$$.sh
40  chmod +x conf$$.sh
41  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42    PATH_SEPARATOR=';'
43  else
44    PATH_SEPARATOR=:
45  fi
46  rm -f conf$$.sh
47fi
48
49# Support unset when possible.
50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51  as_unset=unset
52else
53  as_unset=false
54fi
55
56
57# IFS
58# We need space, tab and new line, in precisely that order.  Quoting is
59# there to prevent editors from complaining about space-tab.
60# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61# splitting by setting IFS to empty value.)
62as_nl='
63'
64IFS=" ""	$as_nl"
65
66# Find who we are.  Look in the path if we contain no directory separator.
67case $0 in
68  *[\\/]* ) as_myself=$0 ;;
69  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70for as_dir in $PATH
71do
72  IFS=$as_save_IFS
73  test -z "$as_dir" && as_dir=.
74  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75done
76IFS=$as_save_IFS
77
78     ;;
79esac
80# We did not find ourselves, most probably we were run as `sh COMMAND'
81# in which case we are not to be found in the path.
82if test "x$as_myself" = x; then
83  as_myself=$0
84fi
85if test ! -f "$as_myself"; then
86  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87  { (exit 1); exit 1; }
88fi
89
90# Work around bugs in pre-3.0 UWIN ksh.
91for as_var in ENV MAIL MAILPATH
92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93done
94PS1='$ '
95PS2='> '
96PS4='+ '
97
98# NLS nuisances.
99for as_var in \
100  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102  LC_TELEPHONE LC_TIME
103do
104  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105    eval $as_var=C; export $as_var
106  else
107    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108  fi
109done
110
111# Required to use basename.
112if expr a : '\(a\)' >/dev/null 2>&1 &&
113   test "X`expr 00001 : '.*\(...\)'`" = X001; then
114  as_expr=expr
115else
116  as_expr=false
117fi
118
119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120  as_basename=basename
121else
122  as_basename=false
123fi
124
125
126# Name of the executable.
127as_me=`$as_basename -- "$0" ||
128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129	 X"$0" : 'X\(//\)$' \| \
130	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131echo X/"$0" |
132    sed '/^.*\/\([^/][^/]*\)\/*$/{
133	    s//\1/
134	    q
135	  }
136	  /^X\/\(\/\/\)$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\).*/{
141	    s//\1/
142	    q
143	  }
144	  s/.*/./; q'`
145
146# CDPATH.
147$as_unset CDPATH
148
149
150if test "x$CONFIG_SHELL" = x; then
151  if (eval ":") 2>/dev/null; then
152  as_have_required=yes
153else
154  as_have_required=no
155fi
156
157  if test $as_have_required = yes && 	 (eval ":
158(as_func_return () {
159  (exit \$1)
160}
161as_func_success () {
162  as_func_return 0
163}
164as_func_failure () {
165  as_func_return 1
166}
167as_func_ret_success () {
168  return 0
169}
170as_func_ret_failure () {
171  return 1
172}
173
174exitcode=0
175if as_func_success; then
176  :
177else
178  exitcode=1
179  echo as_func_success failed.
180fi
181
182if as_func_failure; then
183  exitcode=1
184  echo as_func_failure succeeded.
185fi
186
187if as_func_ret_success; then
188  :
189else
190  exitcode=1
191  echo as_func_ret_success failed.
192fi
193
194if as_func_ret_failure; then
195  exitcode=1
196  echo as_func_ret_failure succeeded.
197fi
198
199if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200  :
201else
202  exitcode=1
203  echo positional parameters were not saved.
204fi
205
206test \$exitcode = 0) || { (exit 1); exit 1; }
207
208(
209  as_lineno_1=\$LINENO
210  as_lineno_2=\$LINENO
211  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213") 2> /dev/null; then
214  :
215else
216  as_candidate_shells=
217    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  case $as_dir in
223	 /*)
224	   for as_base in sh bash ksh sh5; do
225	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226	   done;;
227       esac
228done
229IFS=$as_save_IFS
230
231
232      for as_shell in $as_candidate_shells $SHELL; do
233	 # Try only shells that exist, to save several forks.
234	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235		{ ("$as_shell") 2> /dev/null <<\_ASEOF
236# Be Bourne compatible
237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238  emulate sh
239  NULLCMD=:
240  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241  # is contrary to our usage.  Disable this feature.
242  alias -g '${1+"$@"}'='"$@"'
243  setopt NO_GLOB_SUBST
244else
245  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246fi
247BIN_SH=xpg4; export BIN_SH # for Tru64
248DUALCASE=1; export DUALCASE # for MKS sh
249
250:
251_ASEOF
252}; then
253  CONFIG_SHELL=$as_shell
254	       as_have_required=yes
255	       if { "$as_shell" 2> /dev/null <<\_ASEOF
256# Be Bourne compatible
257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258  emulate sh
259  NULLCMD=:
260  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261  # is contrary to our usage.  Disable this feature.
262  alias -g '${1+"$@"}'='"$@"'
263  setopt NO_GLOB_SUBST
264else
265  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266fi
267BIN_SH=xpg4; export BIN_SH # for Tru64
268DUALCASE=1; export DUALCASE # for MKS sh
269
270:
271(as_func_return () {
272  (exit $1)
273}
274as_func_success () {
275  as_func_return 0
276}
277as_func_failure () {
278  as_func_return 1
279}
280as_func_ret_success () {
281  return 0
282}
283as_func_ret_failure () {
284  return 1
285}
286
287exitcode=0
288if as_func_success; then
289  :
290else
291  exitcode=1
292  echo as_func_success failed.
293fi
294
295if as_func_failure; then
296  exitcode=1
297  echo as_func_failure succeeded.
298fi
299
300if as_func_ret_success; then
301  :
302else
303  exitcode=1
304  echo as_func_ret_success failed.
305fi
306
307if as_func_ret_failure; then
308  exitcode=1
309  echo as_func_ret_failure succeeded.
310fi
311
312if ( set x; as_func_ret_success y && test x = "$1" ); then
313  :
314else
315  exitcode=1
316  echo positional parameters were not saved.
317fi
318
319test $exitcode = 0) || { (exit 1); exit 1; }
320
321(
322  as_lineno_1=$LINENO
323  as_lineno_2=$LINENO
324  test "x$as_lineno_1" != "x$as_lineno_2" &&
325  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327_ASEOF
328}; then
329  break
330fi
331
332fi
333
334      done
335
336      if test "x$CONFIG_SHELL" != x; then
337  for as_var in BASH_ENV ENV
338        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339        done
340        export CONFIG_SHELL
341        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342fi
343
344
345    if test $as_have_required = no; then
346  echo This script requires a shell more modern than all the
347      echo shells that I found on your system.  Please install a
348      echo modern shell, or manually run the script under such a
349      echo shell if you do have one.
350      { (exit 1); exit 1; }
351fi
352
353
354fi
355
356fi
357
358
359
360(eval "as_func_return () {
361  (exit \$1)
362}
363as_func_success () {
364  as_func_return 0
365}
366as_func_failure () {
367  as_func_return 1
368}
369as_func_ret_success () {
370  return 0
371}
372as_func_ret_failure () {
373  return 1
374}
375
376exitcode=0
377if as_func_success; then
378  :
379else
380  exitcode=1
381  echo as_func_success failed.
382fi
383
384if as_func_failure; then
385  exitcode=1
386  echo as_func_failure succeeded.
387fi
388
389if as_func_ret_success; then
390  :
391else
392  exitcode=1
393  echo as_func_ret_success failed.
394fi
395
396if as_func_ret_failure; then
397  exitcode=1
398  echo as_func_ret_failure succeeded.
399fi
400
401if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402  :
403else
404  exitcode=1
405  echo positional parameters were not saved.
406fi
407
408test \$exitcode = 0") || {
409  echo No shell found that supports shell functions.
410  echo Please tell autoconf@gnu.org about your system,
411  echo including any error possibly output before this
412  echo message
413}
414
415
416
417  as_lineno_1=$LINENO
418  as_lineno_2=$LINENO
419  test "x$as_lineno_1" != "x$as_lineno_2" &&
420  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423  # uniformly replaced by the line number.  The first 'sed' inserts a
424  # line-number line after each line using $LINENO; the second 'sed'
425  # does the real work.  The second script uses 'N' to pair each
426  # line-number line with the line containing $LINENO, and appends
427  # trailing '-' during substitution so that $LINENO is not a special
428  # case at line end.
429  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430  # scripts with optimization help from Paolo Bonzini.  Blame Lee
431  # E. McMahon (1931-1989) for sed's syntax.  :-)
432  sed -n '
433    p
434    /[$]LINENO/=
435  ' <$as_myself |
436    sed '
437      s/[$]LINENO.*/&-/
438      t lineno
439      b
440      :lineno
441      N
442      :loop
443      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444      t loop
445      s/-\n.*//
446    ' >$as_me.lineno &&
447  chmod +x "$as_me.lineno" ||
448    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449   { (exit 1); exit 1; }; }
450
451  # Don't try to exec as it changes $[0], causing all sort of problems
452  # (the dirname of $[0] is not the place where we might find the
453  # original and so on.  Autoconf is especially sensitive to this).
454  . "./$as_me.lineno"
455  # Exit status is that of the last command.
456  exit
457}
458
459
460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461  as_dirname=dirname
462else
463  as_dirname=false
464fi
465
466ECHO_C= ECHO_N= ECHO_T=
467case `echo -n x` in
468-n*)
469  case `echo 'x\c'` in
470  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
471  *)   ECHO_C='\c';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477if expr a : '\(a\)' >/dev/null 2>&1 &&
478   test "X`expr 00001 : '.*\(...\)'`" = X001; then
479  as_expr=expr
480else
481  as_expr=false
482fi
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir
490fi
491echo >conf$$.file
492if ln -s conf$$.file conf$$ 2>/dev/null; then
493  as_ln_s='ln -s'
494  # ... but there are two gotchas:
495  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497  # In both cases, we have to default to `cp -p'.
498  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499    as_ln_s='cp -p'
500elif ln conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s=ln
502else
503  as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509  as_mkdir_p=:
510else
511  test -d ./-p && rmdir ./-p
512  as_mkdir_p=false
513fi
514
515# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516# systems may use methods other than mode bits to determine executability.
517cat >conf$$.file <<_ASEOF
518#! /bin/sh
519exit 0
520_ASEOF
521chmod +x conf$$.file
522if test -x conf$$.file >/dev/null 2>&1; then
523  as_executable_p="test -x"
524else
525  as_executable_p=:
526fi
527rm -f conf$$.file
528
529# Sed expression to map a string onto a valid CPP name.
530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532# Sed expression to map a string onto a valid variable name.
533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537
538# Check that we are running under the correct shell.
539SHELL=${CONFIG_SHELL-/bin/sh}
540
541case X$ECHO in
542X*--fallback-echo)
543  # Remove one level of quotation (which was required for Make).
544  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
545  ;;
546esac
547
548echo=${ECHO-echo}
549if test "X$1" = X--no-reexec; then
550  # Discard the --no-reexec flag, and continue.
551  shift
552elif test "X$1" = X--fallback-echo; then
553  # Avoid inline document here, it may be left over
554  :
555elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556  # Yippee, $echo works!
557  :
558else
559  # Restart under the correct shell.
560  exec $SHELL "$0" --no-reexec ${1+"$@"}
561fi
562
563if test "X$1" = X--fallback-echo; then
564  # used as fallback echo
565  shift
566  cat <<EOF
567$*
568EOF
569  exit 0
570fi
571
572# The HP-UX ksh and POSIX shell print the target directory to stdout
573# if CDPATH is set.
574(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
576if test -z "$ECHO"; then
577if test "X${echo_test_string+set}" != Xset; then
578# find a string as large as possible, as long as the shell can cope with it
579  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582       echo_test_string=`eval $cmd` &&
583       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
584    then
585      break
586    fi
587  done
588fi
589
590if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592   test "X$echo_testing_string" = "X$echo_test_string"; then
593  :
594else
595  # The Solaris, AIX, and Digital Unix default echo programs unquote
596  # backslashes.  This makes it impossible to quote backslashes using
597  #   echo "$something" | sed 's/\\/\\\\/g'
598  #
599  # So, first we look for a working echo in the user's PATH.
600
601  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602  for dir in $PATH /usr/ucb; do
603    IFS="$lt_save_ifs"
604    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607       test "X$echo_testing_string" = "X$echo_test_string"; then
608      echo="$dir/echo"
609      break
610    fi
611  done
612  IFS="$lt_save_ifs"
613
614  if test "X$echo" = Xecho; then
615    # We didn't find a better echo, so look for alternatives.
616    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618       test "X$echo_testing_string" = "X$echo_test_string"; then
619      # This shell has a builtin print -r that does the trick.
620      echo='print -r'
621    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622	 test "X$CONFIG_SHELL" != X/bin/ksh; then
623      # If we have ksh, try running configure again with it.
624      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625      export ORIGINAL_CONFIG_SHELL
626      CONFIG_SHELL=/bin/ksh
627      export CONFIG_SHELL
628      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629    else
630      # Try using printf.
631      echo='printf %s\n'
632      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634	 test "X$echo_testing_string" = "X$echo_test_string"; then
635	# Cool, printf works
636	:
637      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638	   test "X$echo_testing_string" = 'X\t' &&
639	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640	   test "X$echo_testing_string" = "X$echo_test_string"; then
641	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642	export CONFIG_SHELL
643	SHELL="$CONFIG_SHELL"
644	export SHELL
645	echo="$CONFIG_SHELL $0 --fallback-echo"
646      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647	   test "X$echo_testing_string" = 'X\t' &&
648	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649	   test "X$echo_testing_string" = "X$echo_test_string"; then
650	echo="$CONFIG_SHELL $0 --fallback-echo"
651      else
652	# maybe with a smaller string...
653	prev=:
654
655	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
657	  then
658	    break
659	  fi
660	  prev="$cmd"
661	done
662
663	if test "$prev" != 'sed 50q "$0"'; then
664	  echo_test_string=`eval $prev`
665	  export echo_test_string
666	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667	else
668	  # Oops.  We lost completely, so just stick with echo.
669	  echo=echo
670	fi
671      fi
672    fi
673  fi
674fi
675fi
676
677# Copy echo and quote the copy suitably for passing to libtool from
678# the Makefile, instead of quoting the original, which is used later.
679ECHO=$echo
680if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
682fi
683
684
685
686
687tagnames=${tagnames+${tagnames},}CXX
688
689tagnames=${tagnames+${tagnames},}F77
690
691exec 7<&0 </dev/null 6>&1
692
693# Name of the host.
694# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695# so uname gets run too.
696ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
697
698#
699# Initializations.
700#
701ac_default_prefix=/usr/local
702ac_clean_files=
703ac_config_libobj_dir=.
704LIBOBJS=
705cross_compiling=no
706subdirs=
707MFLAGS=
708MAKEFLAGS=
709SHELL=${CONFIG_SHELL-/bin/sh}
710
711# Identity of this package.
712PACKAGE_NAME=
713PACKAGE_TARNAME=
714PACKAGE_VERSION=
715PACKAGE_STRING=
716PACKAGE_BUGREPORT=
717
718ac_unique_file="lib/localcharset.c"
719# Factoring default headers for most tests.
720ac_includes_default="\
721#include <stdio.h>
722#if HAVE_SYS_TYPES_H
723# include <sys/types.h>
724#endif
725#if HAVE_SYS_STAT_H
726# include <sys/stat.h>
727#endif
728#if STDC_HEADERS
729# include <stdlib.h>
730# include <stddef.h>
731#else
732# if HAVE_STDLIB_H
733#  include <stdlib.h>
734# endif
735#endif
736#if HAVE_STRING_H
737# if !STDC_HEADERS && HAVE_MEMORY_H
738#  include <memory.h>
739# endif
740# include <string.h>
741#endif
742#if HAVE_STRINGS_H
743# include <strings.h>
744#endif
745#if HAVE_INTTYPES_H
746# include <inttypes.h>
747#endif
748#if HAVE_STDINT_H
749# include <stdint.h>
750#endif
751#if HAVE_UNISTD_H
752# include <unistd.h>
753#endif"
754
755ac_subst_vars='SHELL
756PATH_SEPARATOR
757PACKAGE_NAME
758PACKAGE_TARNAME
759PACKAGE_VERSION
760PACKAGE_STRING
761PACKAGE_BUGREPORT
762exec_prefix
763prefix
764program_transform_name
765bindir
766sbindir
767libexecdir
768datarootdir
769datadir
770sysconfdir
771sharedstatedir
772localstatedir
773includedir
774oldincludedir
775docdir
776infodir
777htmldir
778dvidir
779pdfdir
780psdir
781libdir
782localedir
783mandir
784DEFS
785ECHO_C
786ECHO_N
787ECHO_T
788LIBS
789build_alias
790host_alias
791target_alias
792SET_MAKE
793PACKAGE
794VERSION
795CC
796CFLAGS
797LDFLAGS
798CPPFLAGS
799ac_ct_CC
800EXEEXT
801OBJEXT
802CPP
803GREP
804EGREP
805INSTALL_PROGRAM
806INSTALL_SCRIPT
807INSTALL_DATA
808build
809build_cpu
810build_vendor
811build_os
812host
813host_cpu
814host_vendor
815host_os
816RELOCATABLE
817LN_S
818ECHO
819AR
820RANLIB
821STRIP
822DLLTOOL
823AS
824OBJDUMP
825CXX
826CXXFLAGS
827ac_ct_CXX
828CXXCPP
829F77
830FFLAGS
831ac_ct_F77
832LIBTOOL
833CFLAG_VISIBILITY
834HAVE_VISIBILITY
835GLIBC21
836LIBOBJS
837LTLIBOBJS'
838ac_subst_files=''
839      ac_precious_vars='build_alias
840host_alias
841target_alias
842CC
843CFLAGS
844LDFLAGS
845CPPFLAGS
846CPP
847CXX
848CXXFLAGS
849CCC
850CXXCPP
851F77
852FFLAGS'
853
854
855# Initialize some variables set by options.
856ac_init_help=
857ac_init_version=false
858# The variables have the same names as the options, with
859# dashes changed to underlines.
860cache_file=/dev/null
861exec_prefix=NONE
862no_create=
863no_recursion=
864prefix=NONE
865program_prefix=NONE
866program_suffix=NONE
867program_transform_name=s,x,x,
868silent=
869site=
870srcdir=
871verbose=
872x_includes=NONE
873x_libraries=NONE
874
875# Installation directory options.
876# These are left unexpanded so users can "make install exec_prefix=/foo"
877# and all the variables that are supposed to be based on exec_prefix
878# by default will actually change.
879# Use braces instead of parens because sh, perl, etc. also accept them.
880# (The list follows the same order as the GNU Coding Standards.)
881bindir='${exec_prefix}/bin'
882sbindir='${exec_prefix}/sbin'
883libexecdir='${exec_prefix}/libexec'
884datarootdir='${prefix}/share'
885datadir='${datarootdir}'
886sysconfdir='${prefix}/etc'
887sharedstatedir='${prefix}/com'
888localstatedir='${prefix}/var'
889includedir='${prefix}/include'
890oldincludedir='/usr/include'
891docdir='${datarootdir}/doc/${PACKAGE}'
892infodir='${datarootdir}/info'
893htmldir='${docdir}'
894dvidir='${docdir}'
895pdfdir='${docdir}'
896psdir='${docdir}'
897libdir='${exec_prefix}/lib'
898localedir='${datarootdir}/locale'
899mandir='${datarootdir}/man'
900
901ac_prev=
902ac_dashdash=
903for ac_option
904do
905  # If the previous option needs an argument, assign it.
906  if test -n "$ac_prev"; then
907    eval $ac_prev=\$ac_option
908    ac_prev=
909    continue
910  fi
911
912  case $ac_option in
913  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914  *)	ac_optarg=yes ;;
915  esac
916
917  # Accept the important Cygnus configure options, so we can diagnose typos.
918
919  case $ac_dashdash$ac_option in
920  --)
921    ac_dashdash=yes ;;
922
923  -bindir | --bindir | --bindi | --bind | --bin | --bi)
924    ac_prev=bindir ;;
925  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
926    bindir=$ac_optarg ;;
927
928  -build | --build | --buil | --bui | --bu)
929    ac_prev=build_alias ;;
930  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931    build_alias=$ac_optarg ;;
932
933  -cache-file | --cache-file | --cache-fil | --cache-fi \
934  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935    ac_prev=cache_file ;;
936  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938    cache_file=$ac_optarg ;;
939
940  --config-cache | -C)
941    cache_file=config.cache ;;
942
943  -datadir | --datadir | --datadi | --datad)
944    ac_prev=datadir ;;
945  -datadir=* | --datadir=* | --datadi=* | --datad=*)
946    datadir=$ac_optarg ;;
947
948  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949  | --dataroo | --dataro | --datar)
950    ac_prev=datarootdir ;;
951  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953    datarootdir=$ac_optarg ;;
954
955  -disable-* | --disable-*)
956    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957    # Reject names that are not valid shell variable names.
958    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
959      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
960   { (exit 1); exit 1; }; }
961    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
962    eval enable_$ac_feature=no ;;
963
964  -docdir | --docdir | --docdi | --doc | --do)
965    ac_prev=docdir ;;
966  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967    docdir=$ac_optarg ;;
968
969  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970    ac_prev=dvidir ;;
971  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972    dvidir=$ac_optarg ;;
973
974  -enable-* | --enable-*)
975    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976    # Reject names that are not valid shell variable names.
977    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
978      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
979   { (exit 1); exit 1; }; }
980    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
981    eval enable_$ac_feature=\$ac_optarg ;;
982
983  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985  | --exec | --exe | --ex)
986    ac_prev=exec_prefix ;;
987  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989  | --exec=* | --exe=* | --ex=*)
990    exec_prefix=$ac_optarg ;;
991
992  -gas | --gas | --ga | --g)
993    # Obsolete; use --with-gas.
994    with_gas=yes ;;
995
996  -help | --help | --hel | --he | -h)
997    ac_init_help=long ;;
998  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999    ac_init_help=recursive ;;
1000  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001    ac_init_help=short ;;
1002
1003  -host | --host | --hos | --ho)
1004    ac_prev=host_alias ;;
1005  -host=* | --host=* | --hos=* | --ho=*)
1006    host_alias=$ac_optarg ;;
1007
1008  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009    ac_prev=htmldir ;;
1010  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011  | --ht=*)
1012    htmldir=$ac_optarg ;;
1013
1014  -includedir | --includedir | --includedi | --included | --include \
1015  | --includ | --inclu | --incl | --inc)
1016    ac_prev=includedir ;;
1017  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018  | --includ=* | --inclu=* | --incl=* | --inc=*)
1019    includedir=$ac_optarg ;;
1020
1021  -infodir | --infodir | --infodi | --infod | --info | --inf)
1022    ac_prev=infodir ;;
1023  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024    infodir=$ac_optarg ;;
1025
1026  -libdir | --libdir | --libdi | --libd)
1027    ac_prev=libdir ;;
1028  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029    libdir=$ac_optarg ;;
1030
1031  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032  | --libexe | --libex | --libe)
1033    ac_prev=libexecdir ;;
1034  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035  | --libexe=* | --libex=* | --libe=*)
1036    libexecdir=$ac_optarg ;;
1037
1038  -localedir | --localedir | --localedi | --localed | --locale)
1039    ac_prev=localedir ;;
1040  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041    localedir=$ac_optarg ;;
1042
1043  -localstatedir | --localstatedir | --localstatedi | --localstated \
1044  | --localstate | --localstat | --localsta | --localst | --locals)
1045    ac_prev=localstatedir ;;
1046  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048    localstatedir=$ac_optarg ;;
1049
1050  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051    ac_prev=mandir ;;
1052  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053    mandir=$ac_optarg ;;
1054
1055  -nfp | --nfp | --nf)
1056    # Obsolete; use --without-fp.
1057    with_fp=no ;;
1058
1059  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060  | --no-cr | --no-c | -n)
1061    no_create=yes ;;
1062
1063  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065    no_recursion=yes ;;
1066
1067  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069  | --oldin | --oldi | --old | --ol | --o)
1070    ac_prev=oldincludedir ;;
1071  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074    oldincludedir=$ac_optarg ;;
1075
1076  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077    ac_prev=prefix ;;
1078  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079    prefix=$ac_optarg ;;
1080
1081  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082  | --program-pre | --program-pr | --program-p)
1083    ac_prev=program_prefix ;;
1084  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086    program_prefix=$ac_optarg ;;
1087
1088  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089  | --program-suf | --program-su | --program-s)
1090    ac_prev=program_suffix ;;
1091  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093    program_suffix=$ac_optarg ;;
1094
1095  -program-transform-name | --program-transform-name \
1096  | --program-transform-nam | --program-transform-na \
1097  | --program-transform-n | --program-transform- \
1098  | --program-transform | --program-transfor \
1099  | --program-transfo | --program-transf \
1100  | --program-trans | --program-tran \
1101  | --progr-tra | --program-tr | --program-t)
1102    ac_prev=program_transform_name ;;
1103  -program-transform-name=* | --program-transform-name=* \
1104  | --program-transform-nam=* | --program-transform-na=* \
1105  | --program-transform-n=* | --program-transform-=* \
1106  | --program-transform=* | --program-transfor=* \
1107  | --program-transfo=* | --program-transf=* \
1108  | --program-trans=* | --program-tran=* \
1109  | --progr-tra=* | --program-tr=* | --program-t=*)
1110    program_transform_name=$ac_optarg ;;
1111
1112  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113    ac_prev=pdfdir ;;
1114  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115    pdfdir=$ac_optarg ;;
1116
1117  -psdir | --psdir | --psdi | --psd | --ps)
1118    ac_prev=psdir ;;
1119  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120    psdir=$ac_optarg ;;
1121
1122  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123  | -silent | --silent | --silen | --sile | --sil)
1124    silent=yes ;;
1125
1126  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127    ac_prev=sbindir ;;
1128  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129  | --sbi=* | --sb=*)
1130    sbindir=$ac_optarg ;;
1131
1132  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134  | --sharedst | --shareds | --shared | --share | --shar \
1135  | --sha | --sh)
1136    ac_prev=sharedstatedir ;;
1137  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140  | --sha=* | --sh=*)
1141    sharedstatedir=$ac_optarg ;;
1142
1143  -site | --site | --sit)
1144    ac_prev=site ;;
1145  -site=* | --site=* | --sit=*)
1146    site=$ac_optarg ;;
1147
1148  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149    ac_prev=srcdir ;;
1150  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151    srcdir=$ac_optarg ;;
1152
1153  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154  | --syscon | --sysco | --sysc | --sys | --sy)
1155    ac_prev=sysconfdir ;;
1156  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158    sysconfdir=$ac_optarg ;;
1159
1160  -target | --target | --targe | --targ | --tar | --ta | --t)
1161    ac_prev=target_alias ;;
1162  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163    target_alias=$ac_optarg ;;
1164
1165  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166    verbose=yes ;;
1167
1168  -version | --version | --versio | --versi | --vers | -V)
1169    ac_init_version=: ;;
1170
1171  -with-* | --with-*)
1172    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173    # Reject names that are not valid shell variable names.
1174    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1175      { echo "$as_me: error: invalid package name: $ac_package" >&2
1176   { (exit 1); exit 1; }; }
1177    ac_package=`echo $ac_package| sed 's/-/_/g'`
1178    eval with_$ac_package=\$ac_optarg ;;
1179
1180  -without-* | --without-*)
1181    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182    # Reject names that are not valid shell variable names.
1183    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1184      { echo "$as_me: error: invalid package name: $ac_package" >&2
1185   { (exit 1); exit 1; }; }
1186    ac_package=`echo $ac_package | sed 's/-/_/g'`
1187    eval with_$ac_package=no ;;
1188
1189  --x)
1190    # Obsolete; use --with-x.
1191    with_x=yes ;;
1192
1193  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1194  | --x-incl | --x-inc | --x-in | --x-i)
1195    ac_prev=x_includes ;;
1196  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1197  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1198    x_includes=$ac_optarg ;;
1199
1200  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1201  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1202    ac_prev=x_libraries ;;
1203  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1204  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1205    x_libraries=$ac_optarg ;;
1206
1207  -*) { echo "$as_me: error: unrecognized option: $ac_option
1208Try \`$0 --help' for more information." >&2
1209   { (exit 1); exit 1; }; }
1210    ;;
1211
1212  *=*)
1213    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214    # Reject names that are not valid shell variable names.
1215    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1216      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1217   { (exit 1); exit 1; }; }
1218    eval $ac_envvar=\$ac_optarg
1219    export $ac_envvar ;;
1220
1221  *)
1222    # FIXME: should be removed in autoconf 3.0.
1223    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1224    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1226    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1227    ;;
1228
1229  esac
1230done
1231
1232if test -n "$ac_prev"; then
1233  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1234  { echo "$as_me: error: missing argument to $ac_option" >&2
1235   { (exit 1); exit 1; }; }
1236fi
1237
1238# Be sure to have absolute directory names.
1239for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240		datadir sysconfdir sharedstatedir localstatedir includedir \
1241		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242		libdir localedir mandir
1243do
1244  eval ac_val=\$$ac_var
1245  case $ac_val in
1246    [\\/$]* | ?:[\\/]* )  continue;;
1247    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248  esac
1249  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1250   { (exit 1); exit 1; }; }
1251done
1252
1253# There might be people who depend on the old broken behavior: `$host'
1254# used to hold the argument of --host etc.
1255# FIXME: To remove some day.
1256build=$build_alias
1257host=$host_alias
1258target=$target_alias
1259
1260# FIXME: To remove some day.
1261if test "x$host_alias" != x; then
1262  if test "x$build_alias" = x; then
1263    cross_compiling=maybe
1264    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1265    If a cross compiler is detected then cross compile mode will be used." >&2
1266  elif test "x$build_alias" != "x$host_alias"; then
1267    cross_compiling=yes
1268  fi
1269fi
1270
1271ac_tool_prefix=
1272test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273
1274test "$silent" = yes && exec 6>/dev/null
1275
1276
1277ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278ac_ls_di=`ls -di .` &&
1279ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280  { echo "$as_me: error: Working directory cannot be determined" >&2
1281   { (exit 1); exit 1; }; }
1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283  { echo "$as_me: error: pwd does not report name of working directory" >&2
1284   { (exit 1); exit 1; }; }
1285
1286
1287# Find the source files, if location was not specified.
1288if test -z "$srcdir"; then
1289  ac_srcdir_defaulted=yes
1290  # Try the directory containing this script, then the parent directory.
1291  ac_confdir=`$as_dirname -- "$0" ||
1292$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293	 X"$0" : 'X\(//\)[^/]' \| \
1294	 X"$0" : 'X\(//\)$' \| \
1295	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1296echo X"$0" |
1297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\/\)[^/].*/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\/\)$/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\).*/{
1310	    s//\1/
1311	    q
1312	  }
1313	  s/.*/./; q'`
1314  srcdir=$ac_confdir
1315  if test ! -r "$srcdir/$ac_unique_file"; then
1316    srcdir=..
1317  fi
1318else
1319  ac_srcdir_defaulted=no
1320fi
1321if test ! -r "$srcdir/$ac_unique_file"; then
1322  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1324   { (exit 1); exit 1; }; }
1325fi
1326ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327ac_abs_confdir=`(
1328	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1329   { (exit 1); exit 1; }; }
1330	pwd)`
1331# When building in place, set srcdir=.
1332if test "$ac_abs_confdir" = "$ac_pwd"; then
1333  srcdir=.
1334fi
1335# Remove unnecessary trailing slashes from srcdir.
1336# Double slashes in file names in object file debugging info
1337# mess up M-x gdb in Emacs.
1338case $srcdir in
1339*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340esac
1341for ac_var in $ac_precious_vars; do
1342  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343  eval ac_env_${ac_var}_value=\$${ac_var}
1344  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346done
1347
1348#
1349# Report the --help message.
1350#
1351if test "$ac_init_help" = "long"; then
1352  # Omit some internal or obsolete options to make the list less imposing.
1353  # This message is too long to be a string in the A/UX 3.1 sh.
1354  cat <<_ACEOF
1355\`configure' configures this package to adapt to many kinds of systems.
1356
1357Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1359To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360VAR=VALUE.  See below for descriptions of some of the useful variables.
1361
1362Defaults for the options are specified in brackets.
1363
1364Configuration:
1365  -h, --help              display this help and exit
1366      --help=short        display options specific to this package
1367      --help=recursive    display the short help of all the included packages
1368  -V, --version           display version information and exit
1369  -q, --quiet, --silent   do not print \`checking...' messages
1370      --cache-file=FILE   cache test results in FILE [disabled]
1371  -C, --config-cache      alias for \`--cache-file=config.cache'
1372  -n, --no-create         do not create output files
1373      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1374
1375Installation directories:
1376  --prefix=PREFIX         install architecture-independent files in PREFIX
1377			  [$ac_default_prefix]
1378  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1379			  [PREFIX]
1380
1381By default, \`make install' will install all the files in
1382\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1383an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384for instance \`--prefix=\$HOME'.
1385
1386For better control, use the options below.
1387
1388Fine tuning of the installation directories:
1389  --bindir=DIR           user executables [EPREFIX/bin]
1390  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1391  --libexecdir=DIR       program executables [EPREFIX/libexec]
1392  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1393  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1394  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1395  --libdir=DIR           object code libraries [EPREFIX/lib]
1396  --includedir=DIR       C header files [PREFIX/include]
1397  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1398  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1399  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1400  --infodir=DIR          info documentation [DATAROOTDIR/info]
1401  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1402  --mandir=DIR           man documentation [DATAROOTDIR/man]
1403  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1404  --htmldir=DIR          html documentation [DOCDIR]
1405  --dvidir=DIR           dvi documentation [DOCDIR]
1406  --pdfdir=DIR           pdf documentation [DOCDIR]
1407  --psdir=DIR            ps documentation [DOCDIR]
1408_ACEOF
1409
1410  cat <<\_ACEOF
1411
1412System types:
1413  --build=BUILD     configure for building on BUILD [guessed]
1414  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1415_ACEOF
1416fi
1417
1418if test -n "$ac_init_help"; then
1419
1420  cat <<\_ACEOF
1421
1422Optional Features:
1423  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1424  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1425  --enable-relocatable    install a package that can be moved in the filesystem
1426  --enable-shared[=PKGS]  build shared libraries [default=yes]
1427  --enable-static[=PKGS]  build static libraries [default=yes]
1428  --enable-fast-install[=PKGS]
1429                          optimize for fast installation [default=yes]
1430  --disable-libtool-lock  avoid locking (might break parallel builds)
1431
1432Optional Packages:
1433  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1434  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1435  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1436  --with-pic              try to use only PIC/non-PIC objects [default=use
1437                          both]
1438  --with-tags[=TAGS]      include additional configurations [automatic]
1439
1440Some influential environment variables:
1441  CC          C compiler command
1442  CFLAGS      C compiler flags
1443  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1444              nonstandard directory <lib dir>
1445  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1446              you have headers in a nonstandard directory <include dir>
1447  CPP         C preprocessor
1448  CXX         C++ compiler command
1449  CXXFLAGS    C++ compiler flags
1450  CXXCPP      C++ preprocessor
1451  F77         Fortran 77 compiler command
1452  FFLAGS      Fortran 77 compiler flags
1453
1454Use these variables to override the choices made by `configure' or to help
1455it to find libraries and programs with nonstandard names/locations.
1456
1457_ACEOF
1458ac_status=$?
1459fi
1460
1461if test "$ac_init_help" = "recursive"; then
1462  # If there are subdirs, report their specific --help.
1463  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464    test -d "$ac_dir" || continue
1465    ac_builddir=.
1466
1467case "$ac_dir" in
1468.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469*)
1470  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1471  # A ".." for each directory in $ac_dir_suffix.
1472  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1473  case $ac_top_builddir_sub in
1474  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476  esac ;;
1477esac
1478ac_abs_top_builddir=$ac_pwd
1479ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480# for backward compatibility:
1481ac_top_builddir=$ac_top_build_prefix
1482
1483case $srcdir in
1484  .)  # We are building in place.
1485    ac_srcdir=.
1486    ac_top_srcdir=$ac_top_builddir_sub
1487    ac_abs_top_srcdir=$ac_pwd ;;
1488  [\\/]* | ?:[\\/]* )  # Absolute name.
1489    ac_srcdir=$srcdir$ac_dir_suffix;
1490    ac_top_srcdir=$srcdir
1491    ac_abs_top_srcdir=$srcdir ;;
1492  *) # Relative name.
1493    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494    ac_top_srcdir=$ac_top_build_prefix$srcdir
1495    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496esac
1497ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
1499    cd "$ac_dir" || { ac_status=$?; continue; }
1500    # Check for guested configure.
1501    if test -f "$ac_srcdir/configure.gnu"; then
1502      echo &&
1503      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504    elif test -f "$ac_srcdir/configure"; then
1505      echo &&
1506      $SHELL "$ac_srcdir/configure" --help=recursive
1507    else
1508      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509    fi || ac_status=$?
1510    cd "$ac_pwd" || { ac_status=$?; break; }
1511  done
1512fi
1513
1514test -n "$ac_init_help" && exit $ac_status
1515if $ac_init_version; then
1516  cat <<\_ACEOF
1517configure
1518generated by GNU Autoconf 2.60
1519
1520Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15212002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1522This configure script is free software; the Free Software Foundation
1523gives unlimited permission to copy, distribute and modify it.
1524_ACEOF
1525  exit
1526fi
1527cat >config.log <<_ACEOF
1528This file contains any messages produced by compilers while
1529running configure, to aid debugging if configure makes a mistake.
1530
1531It was created by $as_me, which was
1532generated by GNU Autoconf 2.60.  Invocation command line was
1533
1534  $ $0 $@
1535
1536_ACEOF
1537exec 5>>config.log
1538{
1539cat <<_ASUNAME
1540## --------- ##
1541## Platform. ##
1542## --------- ##
1543
1544hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1545uname -m = `(uname -m) 2>/dev/null || echo unknown`
1546uname -r = `(uname -r) 2>/dev/null || echo unknown`
1547uname -s = `(uname -s) 2>/dev/null || echo unknown`
1548uname -v = `(uname -v) 2>/dev/null || echo unknown`
1549
1550/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1551/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1552
1553/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1554/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1555/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1556/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1557/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1558/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1559/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1560
1561_ASUNAME
1562
1563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH
1565do
1566  IFS=$as_save_IFS
1567  test -z "$as_dir" && as_dir=.
1568  echo "PATH: $as_dir"
1569done
1570IFS=$as_save_IFS
1571
1572} >&5
1573
1574cat >&5 <<_ACEOF
1575
1576
1577## ----------- ##
1578## Core tests. ##
1579## ----------- ##
1580
1581_ACEOF
1582
1583
1584# Keep a trace of the command line.
1585# Strip out --no-create and --no-recursion so they do not pile up.
1586# Strip out --silent because we don't want to record it for future runs.
1587# Also quote any args containing shell meta-characters.
1588# Make two passes to allow for proper duplicate-argument suppression.
1589ac_configure_args=
1590ac_configure_args0=
1591ac_configure_args1=
1592ac_must_keep_next=false
1593for ac_pass in 1 2
1594do
1595  for ac_arg
1596  do
1597    case $ac_arg in
1598    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1599    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1600    | -silent | --silent | --silen | --sile | --sil)
1601      continue ;;
1602    *\'*)
1603      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1604    esac
1605    case $ac_pass in
1606    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1607    2)
1608      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1609      if test $ac_must_keep_next = true; then
1610	ac_must_keep_next=false # Got value, back to normal.
1611      else
1612	case $ac_arg in
1613	  *=* | --config-cache | -C | -disable-* | --disable-* \
1614	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1615	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1616	  | -with-* | --with-* | -without-* | --without-* | --x)
1617	    case "$ac_configure_args0 " in
1618	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1619	    esac
1620	    ;;
1621	  -* ) ac_must_keep_next=true ;;
1622	esac
1623      fi
1624      ac_configure_args="$ac_configure_args '$ac_arg'"
1625      ;;
1626    esac
1627  done
1628done
1629$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1630$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1631
1632# When interrupted or exit'd, cleanup temporary files, and complete
1633# config.log.  We remove comments because anyway the quotes in there
1634# would cause problems or look ugly.
1635# WARNING: Use '\'' to represent an apostrophe within the trap.
1636# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1637trap 'exit_status=$?
1638  # Save into config.log some information that might help in debugging.
1639  {
1640    echo
1641
1642    cat <<\_ASBOX
1643## ---------------- ##
1644## Cache variables. ##
1645## ---------------- ##
1646_ASBOX
1647    echo
1648    # The following way of writing the cache mishandles newlines in values,
1649(
1650  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1651    eval ac_val=\$$ac_var
1652    case $ac_val in #(
1653    *${as_nl}*)
1654      case $ac_var in #(
1655      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1656echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1657      esac
1658      case $ac_var in #(
1659      _ | IFS | as_nl) ;; #(
1660      *) $as_unset $ac_var ;;
1661      esac ;;
1662    esac
1663  done
1664  (set) 2>&1 |
1665    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1666    *${as_nl}ac_space=\ *)
1667      sed -n \
1668	"s/'\''/'\''\\\\'\'''\''/g;
1669	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1670      ;; #(
1671    *)
1672      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1673      ;;
1674    esac |
1675    sort
1676)
1677    echo
1678
1679    cat <<\_ASBOX
1680## ----------------- ##
1681## Output variables. ##
1682## ----------------- ##
1683_ASBOX
1684    echo
1685    for ac_var in $ac_subst_vars
1686    do
1687      eval ac_val=\$$ac_var
1688      case $ac_val in
1689      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1690      esac
1691      echo "$ac_var='\''$ac_val'\''"
1692    done | sort
1693    echo
1694
1695    if test -n "$ac_subst_files"; then
1696      cat <<\_ASBOX
1697## ------------------- ##
1698## File substitutions. ##
1699## ------------------- ##
1700_ASBOX
1701      echo
1702      for ac_var in $ac_subst_files
1703      do
1704	eval ac_val=\$$ac_var
1705	case $ac_val in
1706	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1707	esac
1708	echo "$ac_var='\''$ac_val'\''"
1709      done | sort
1710      echo
1711    fi
1712
1713    if test -s confdefs.h; then
1714      cat <<\_ASBOX
1715## ----------- ##
1716## confdefs.h. ##
1717## ----------- ##
1718_ASBOX
1719      echo
1720      cat confdefs.h
1721      echo
1722    fi
1723    test "$ac_signal" != 0 &&
1724      echo "$as_me: caught signal $ac_signal"
1725    echo "$as_me: exit $exit_status"
1726  } >&5
1727  rm -f core *.core core.conftest.* &&
1728    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1729    exit $exit_status
1730' 0
1731for ac_signal in 1 2 13 15; do
1732  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1733done
1734ac_signal=0
1735
1736# confdefs.h avoids OS command line length limits that DEFS can exceed.
1737rm -f -r conftest* confdefs.h
1738
1739# Predefined preprocessor variables.
1740
1741cat >>confdefs.h <<_ACEOF
1742#define PACKAGE_NAME "$PACKAGE_NAME"
1743_ACEOF
1744
1745
1746cat >>confdefs.h <<_ACEOF
1747#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1748_ACEOF
1749
1750
1751cat >>confdefs.h <<_ACEOF
1752#define PACKAGE_VERSION "$PACKAGE_VERSION"
1753_ACEOF
1754
1755
1756cat >>confdefs.h <<_ACEOF
1757#define PACKAGE_STRING "$PACKAGE_STRING"
1758_ACEOF
1759
1760
1761cat >>confdefs.h <<_ACEOF
1762#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1763_ACEOF
1764
1765
1766# Let the site file select an alternate cache file if it wants to.
1767# Prefer explicitly selected file to automatically selected ones.
1768if test -n "$CONFIG_SITE"; then
1769  set x "$CONFIG_SITE"
1770elif test "x$prefix" != xNONE; then
1771  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1772else
1773  set x "$ac_default_prefix/share/config.site" \
1774	"$ac_default_prefix/etc/config.site"
1775fi
1776shift
1777for ac_site_file
1778do
1779  if test -r "$ac_site_file"; then
1780    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1781echo "$as_me: loading site script $ac_site_file" >&6;}
1782    sed 's/^/| /' "$ac_site_file" >&5
1783    . "$ac_site_file"
1784  fi
1785done
1786
1787if test -r "$cache_file"; then
1788  # Some versions of bash will fail to source /dev/null (special
1789  # files actually), so we avoid doing that.
1790  if test -f "$cache_file"; then
1791    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1792echo "$as_me: loading cache $cache_file" >&6;}
1793    case $cache_file in
1794      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1795      *)                      . "./$cache_file";;
1796    esac
1797  fi
1798else
1799  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1800echo "$as_me: creating cache $cache_file" >&6;}
1801  >$cache_file
1802fi
1803
1804# Check that the precious variables saved in the cache have kept the same
1805# value.
1806ac_cache_corrupted=false
1807for ac_var in $ac_precious_vars; do
1808  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1809  eval ac_new_set=\$ac_env_${ac_var}_set
1810  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1811  eval ac_new_val=\$ac_env_${ac_var}_value
1812  case $ac_old_set,$ac_new_set in
1813    set,)
1814      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1815echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1816      ac_cache_corrupted=: ;;
1817    ,set)
1818      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1819echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1820      ac_cache_corrupted=: ;;
1821    ,);;
1822    *)
1823      if test "x$ac_old_val" != "x$ac_new_val"; then
1824	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1825echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1826	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1827echo "$as_me:   former value:  $ac_old_val" >&2;}
1828	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1829echo "$as_me:   current value: $ac_new_val" >&2;}
1830	ac_cache_corrupted=:
1831      fi;;
1832  esac
1833  # Pass precious variables to config.status.
1834  if test "$ac_new_set" = set; then
1835    case $ac_new_val in
1836    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1837    *) ac_arg=$ac_var=$ac_new_val ;;
1838    esac
1839    case " $ac_configure_args " in
1840      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1841      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1842    esac
1843  fi
1844done
1845if $ac_cache_corrupted; then
1846  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1847echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1848  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1849echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1850   { (exit 1); exit 1; }; }
1851fi
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869ac_ext=c
1870ac_cpp='$CPP $CPPFLAGS'
1871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1873ac_compiler_gnu=$ac_cv_c_compiler_gnu
1874
1875
1876ac_aux_dir=
1877for ac_dir in build-aux "$srcdir"/build-aux; do
1878  if test -f "$ac_dir/install-sh"; then
1879    ac_aux_dir=$ac_dir
1880    ac_install_sh="$ac_aux_dir/install-sh -c"
1881    break
1882  elif test -f "$ac_dir/install.sh"; then
1883    ac_aux_dir=$ac_dir
1884    ac_install_sh="$ac_aux_dir/install.sh -c"
1885    break
1886  elif test -f "$ac_dir/shtool"; then
1887    ac_aux_dir=$ac_dir
1888    ac_install_sh="$ac_aux_dir/shtool install -c"
1889    break
1890  fi
1891done
1892if test -z "$ac_aux_dir"; then
1893  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
1894echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
1895   { (exit 1); exit 1; }; }
1896fi
1897
1898# These three variables are undocumented and unsupported,
1899# and are intended to be withdrawn in a future Autoconf release.
1900# They can cause serious problems if a builder's source tree is in a directory
1901# whose full name contains unusual characters.
1902ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1903ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1904ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1905
1906
1907ac_config_headers="$ac_config_headers config.h"
1908
1909{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1910echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1911set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1912if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1913  echo $ECHO_N "(cached) $ECHO_C" >&6
1914else
1915  cat >conftest.make <<\_ACEOF
1916SHELL = /bin/sh
1917all:
1918	@echo '@@@%%%=$(MAKE)=@@@%%%'
1919_ACEOF
1920# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1921case `${MAKE-make} -f conftest.make 2>/dev/null` in
1922  *@@@%%%=?*=@@@%%%*)
1923    eval ac_cv_prog_make_${ac_make}_set=yes;;
1924  *)
1925    eval ac_cv_prog_make_${ac_make}_set=no;;
1926esac
1927rm -f conftest.make
1928fi
1929if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1930  { echo "$as_me:$LINENO: result: yes" >&5
1931echo "${ECHO_T}yes" >&6; }
1932  SET_MAKE=
1933else
1934  { echo "$as_me:$LINENO: result: no" >&5
1935echo "${ECHO_T}no" >&6; }
1936  SET_MAKE="MAKE=${MAKE-make}"
1937fi
1938
1939
1940
1941
1942
1943ac_ext=c
1944ac_cpp='$CPP $CPPFLAGS'
1945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948if test -n "$ac_tool_prefix"; then
1949  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1950set dummy ${ac_tool_prefix}gcc; ac_word=$2
1951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1953if test "${ac_cv_prog_CC+set}" = set; then
1954  echo $ECHO_N "(cached) $ECHO_C" >&6
1955else
1956  if test -n "$CC"; then
1957  ac_cv_prog_CC="$CC" # Let the user override the test.
1958else
1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH
1961do
1962  IFS=$as_save_IFS
1963  test -z "$as_dir" && as_dir=.
1964  for ac_exec_ext in '' $ac_executable_extensions; do
1965  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1966    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1967    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968    break 2
1969  fi
1970done
1971done
1972IFS=$as_save_IFS
1973
1974fi
1975fi
1976CC=$ac_cv_prog_CC
1977if test -n "$CC"; then
1978  { echo "$as_me:$LINENO: result: $CC" >&5
1979echo "${ECHO_T}$CC" >&6; }
1980else
1981  { echo "$as_me:$LINENO: result: no" >&5
1982echo "${ECHO_T}no" >&6; }
1983fi
1984
1985
1986fi
1987if test -z "$ac_cv_prog_CC"; then
1988  ac_ct_CC=$CC
1989  # Extract the first word of "gcc", so it can be a program name with args.
1990set dummy gcc; ac_word=$2
1991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1993if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1994  echo $ECHO_N "(cached) $ECHO_C" >&6
1995else
1996  if test -n "$ac_ct_CC"; then
1997  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1998else
1999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000for as_dir in $PATH
2001do
2002  IFS=$as_save_IFS
2003  test -z "$as_dir" && as_dir=.
2004  for ac_exec_ext in '' $ac_executable_extensions; do
2005  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2006    ac_cv_prog_ac_ct_CC="gcc"
2007    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008    break 2
2009  fi
2010done
2011done
2012IFS=$as_save_IFS
2013
2014fi
2015fi
2016ac_ct_CC=$ac_cv_prog_ac_ct_CC
2017if test -n "$ac_ct_CC"; then
2018  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2019echo "${ECHO_T}$ac_ct_CC" >&6; }
2020else
2021  { echo "$as_me:$LINENO: result: no" >&5
2022echo "${ECHO_T}no" >&6; }
2023fi
2024
2025  if test "x$ac_ct_CC" = x; then
2026    CC=""
2027  else
2028    case $cross_compiling:$ac_tool_warned in
2029yes:)
2030{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2031whose name does not start with the host triplet.  If you think this
2032configuration is useful to you, please write to autoconf@gnu.org." >&5
2033echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2034whose name does not start with the host triplet.  If you think this
2035configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2036ac_tool_warned=yes ;;
2037esac
2038    CC=$ac_ct_CC
2039  fi
2040else
2041  CC="$ac_cv_prog_CC"
2042fi
2043
2044if test -z "$CC"; then
2045          if test -n "$ac_tool_prefix"; then
2046    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2047set dummy ${ac_tool_prefix}cc; ac_word=$2
2048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2050if test "${ac_cv_prog_CC+set}" = set; then
2051  echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053  if test -n "$CC"; then
2054  ac_cv_prog_CC="$CC" # Let the user override the test.
2055else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH
2058do
2059  IFS=$as_save_IFS
2060  test -z "$as_dir" && as_dir=.
2061  for ac_exec_ext in '' $ac_executable_extensions; do
2062  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2063    ac_cv_prog_CC="${ac_tool_prefix}cc"
2064    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065    break 2
2066  fi
2067done
2068done
2069IFS=$as_save_IFS
2070
2071fi
2072fi
2073CC=$ac_cv_prog_CC
2074if test -n "$CC"; then
2075  { echo "$as_me:$LINENO: result: $CC" >&5
2076echo "${ECHO_T}$CC" >&6; }
2077else
2078  { echo "$as_me:$LINENO: result: no" >&5
2079echo "${ECHO_T}no" >&6; }
2080fi
2081
2082
2083  fi
2084fi
2085if test -z "$CC"; then
2086  # Extract the first word of "cc", so it can be a program name with args.
2087set dummy cc; ac_word=$2
2088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2090if test "${ac_cv_prog_CC+set}" = set; then
2091  echo $ECHO_N "(cached) $ECHO_C" >&6
2092else
2093  if test -n "$CC"; then
2094  ac_cv_prog_CC="$CC" # Let the user override the test.
2095else
2096  ac_prog_rejected=no
2097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098for as_dir in $PATH
2099do
2100  IFS=$as_save_IFS
2101  test -z "$as_dir" && as_dir=.
2102  for ac_exec_ext in '' $ac_executable_extensions; do
2103  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2104    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2105       ac_prog_rejected=yes
2106       continue
2107     fi
2108    ac_cv_prog_CC="cc"
2109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110    break 2
2111  fi
2112done
2113done
2114IFS=$as_save_IFS
2115
2116if test $ac_prog_rejected = yes; then
2117  # We found a bogon in the path, so make sure we never use it.
2118  set dummy $ac_cv_prog_CC
2119  shift
2120  if test $# != 0; then
2121    # We chose a different compiler from the bogus one.
2122    # However, it has the same basename, so the bogon will be chosen
2123    # first if we set CC to just the basename; use the full file name.
2124    shift
2125    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2126  fi
2127fi
2128fi
2129fi
2130CC=$ac_cv_prog_CC
2131if test -n "$CC"; then
2132  { echo "$as_me:$LINENO: result: $CC" >&5
2133echo "${ECHO_T}$CC" >&6; }
2134else
2135  { echo "$as_me:$LINENO: result: no" >&5
2136echo "${ECHO_T}no" >&6; }
2137fi
2138
2139
2140fi
2141if test -z "$CC"; then
2142  if test -n "$ac_tool_prefix"; then
2143  for ac_prog in cl.exe
2144  do
2145    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2146set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2149if test "${ac_cv_prog_CC+set}" = set; then
2150  echo $ECHO_N "(cached) $ECHO_C" >&6
2151else
2152  if test -n "$CC"; then
2153  ac_cv_prog_CC="$CC" # Let the user override the test.
2154else
2155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156for as_dir in $PATH
2157do
2158  IFS=$as_save_IFS
2159  test -z "$as_dir" && as_dir=.
2160  for ac_exec_ext in '' $ac_executable_extensions; do
2161  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2162    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2163    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164    break 2
2165  fi
2166done
2167done
2168IFS=$as_save_IFS
2169
2170fi
2171fi
2172CC=$ac_cv_prog_CC
2173if test -n "$CC"; then
2174  { echo "$as_me:$LINENO: result: $CC" >&5
2175echo "${ECHO_T}$CC" >&6; }
2176else
2177  { echo "$as_me:$LINENO: result: no" >&5
2178echo "${ECHO_T}no" >&6; }
2179fi
2180
2181
2182    test -n "$CC" && break
2183  done
2184fi
2185if test -z "$CC"; then
2186  ac_ct_CC=$CC
2187  for ac_prog in cl.exe
2188do
2189  # Extract the first word of "$ac_prog", so it can be a program name with args.
2190set dummy $ac_prog; ac_word=$2
2191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2193if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2194  echo $ECHO_N "(cached) $ECHO_C" >&6
2195else
2196  if test -n "$ac_ct_CC"; then
2197  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2198else
2199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200for as_dir in $PATH
2201do
2202  IFS=$as_save_IFS
2203  test -z "$as_dir" && as_dir=.
2204  for ac_exec_ext in '' $ac_executable_extensions; do
2205  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2206    ac_cv_prog_ac_ct_CC="$ac_prog"
2207    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208    break 2
2209  fi
2210done
2211done
2212IFS=$as_save_IFS
2213
2214fi
2215fi
2216ac_ct_CC=$ac_cv_prog_ac_ct_CC
2217if test -n "$ac_ct_CC"; then
2218  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2219echo "${ECHO_T}$ac_ct_CC" >&6; }
2220else
2221  { echo "$as_me:$LINENO: result: no" >&5
2222echo "${ECHO_T}no" >&6; }
2223fi
2224
2225
2226  test -n "$ac_ct_CC" && break
2227done
2228
2229  if test "x$ac_ct_CC" = x; then
2230    CC=""
2231  else
2232    case $cross_compiling:$ac_tool_warned in
2233yes:)
2234{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2235whose name does not start with the host triplet.  If you think this
2236configuration is useful to you, please write to autoconf@gnu.org." >&5
2237echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2238whose name does not start with the host triplet.  If you think this
2239configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2240ac_tool_warned=yes ;;
2241esac
2242    CC=$ac_ct_CC
2243  fi
2244fi
2245
2246fi
2247
2248
2249test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2250See \`config.log' for more details." >&5
2251echo "$as_me: error: no acceptable C compiler found in \$PATH
2252See \`config.log' for more details." >&2;}
2253   { (exit 1); exit 1; }; }
2254
2255# Provide some information about the compiler.
2256echo "$as_me:$LINENO: checking for C compiler version" >&5
2257ac_compiler=`set X $ac_compile; echo $2`
2258{ (ac_try="$ac_compiler --version >&5"
2259case "(($ac_try" in
2260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261  *) ac_try_echo=$ac_try;;
2262esac
2263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2264  (eval "$ac_compiler --version >&5") 2>&5
2265  ac_status=$?
2266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267  (exit $ac_status); }
2268{ (ac_try="$ac_compiler -v >&5"
2269case "(($ac_try" in
2270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271  *) ac_try_echo=$ac_try;;
2272esac
2273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2274  (eval "$ac_compiler -v >&5") 2>&5
2275  ac_status=$?
2276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277  (exit $ac_status); }
2278{ (ac_try="$ac_compiler -V >&5"
2279case "(($ac_try" in
2280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281  *) ac_try_echo=$ac_try;;
2282esac
2283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2284  (eval "$ac_compiler -V >&5") 2>&5
2285  ac_status=$?
2286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287  (exit $ac_status); }
2288
2289cat >conftest.$ac_ext <<_ACEOF
2290/* confdefs.h.  */
2291_ACEOF
2292cat confdefs.h >>conftest.$ac_ext
2293cat >>conftest.$ac_ext <<_ACEOF
2294/* end confdefs.h.  */
2295
2296int
2297main ()
2298{
2299
2300  ;
2301  return 0;
2302}
2303_ACEOF
2304ac_clean_files_save=$ac_clean_files
2305ac_clean_files="$ac_clean_files a.out a.exe b.out"
2306# Try to create an executable without -o first, disregard a.out.
2307# It will help us diagnose broken compilers, and finding out an intuition
2308# of exeext.
2309{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2310echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2311ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2312#
2313# List of possible output files, starting from the most likely.
2314# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2315# only as a last resort.  b.out is created by i960 compilers.
2316ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2317#
2318# The IRIX 6 linker writes into existing files which may not be
2319# executable, retaining their permissions.  Remove them first so a
2320# subsequent execution test works.
2321ac_rmfiles=
2322for ac_file in $ac_files
2323do
2324  case $ac_file in
2325    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2326    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2327  esac
2328done
2329rm -f $ac_rmfiles
2330
2331if { (ac_try="$ac_link_default"
2332case "(($ac_try" in
2333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334  *) ac_try_echo=$ac_try;;
2335esac
2336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2337  (eval "$ac_link_default") 2>&5
2338  ac_status=$?
2339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340  (exit $ac_status); }; then
2341  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2342# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2343# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2344# so that the user can short-circuit this test for compilers unknown to
2345# Autoconf.
2346for ac_file in $ac_files
2347do
2348  test -f "$ac_file" || continue
2349  case $ac_file in
2350    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2351	;;
2352    [ab].out )
2353	# We found the default executable, but exeext='' is most
2354	# certainly right.
2355	break;;
2356    *.* )
2357        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2358	then :; else
2359	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2360	fi
2361	# We set ac_cv_exeext here because the later test for it is not
2362	# safe: cross compilers may not add the suffix if given an `-o'
2363	# argument, so we may need to know it at that point already.
2364	# Even if this section looks crufty: it has the advantage of
2365	# actually working.
2366	break;;
2367    * )
2368	break;;
2369  esac
2370done
2371test "$ac_cv_exeext" = no && ac_cv_exeext=
2372
2373else
2374  echo "$as_me: failed program was:" >&5
2375sed 's/^/| /' conftest.$ac_ext >&5
2376
2377{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2378See \`config.log' for more details." >&5
2379echo "$as_me: error: C compiler cannot create executables
2380See \`config.log' for more details." >&2;}
2381   { (exit 77); exit 77; }; }
2382fi
2383
2384ac_exeext=$ac_cv_exeext
2385{ echo "$as_me:$LINENO: result: $ac_file" >&5
2386echo "${ECHO_T}$ac_file" >&6; }
2387
2388# Check that the compiler produces executables we can run.  If not, either
2389# the compiler is broken, or we cross compile.
2390{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2391echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2392# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2393# If not cross compiling, check that we can run a simple program.
2394if test "$cross_compiling" != yes; then
2395  if { ac_try='./$ac_file'
2396  { (case "(($ac_try" in
2397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398  *) ac_try_echo=$ac_try;;
2399esac
2400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401  (eval "$ac_try") 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; }; then
2405    cross_compiling=no
2406  else
2407    if test "$cross_compiling" = maybe; then
2408	cross_compiling=yes
2409    else
2410	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2411If you meant to cross compile, use \`--host'.
2412See \`config.log' for more details." >&5
2413echo "$as_me: error: cannot run C compiled programs.
2414If you meant to cross compile, use \`--host'.
2415See \`config.log' for more details." >&2;}
2416   { (exit 1); exit 1; }; }
2417    fi
2418  fi
2419fi
2420{ echo "$as_me:$LINENO: result: yes" >&5
2421echo "${ECHO_T}yes" >&6; }
2422
2423rm -f a.out a.exe conftest$ac_cv_exeext b.out
2424ac_clean_files=$ac_clean_files_save
2425# Check that the compiler produces executables we can run.  If not, either
2426# the compiler is broken, or we cross compile.
2427{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2428echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2429{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2430echo "${ECHO_T}$cross_compiling" >&6; }
2431
2432{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2433echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2434if { (ac_try="$ac_link"
2435case "(($ac_try" in
2436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437  *) ac_try_echo=$ac_try;;
2438esac
2439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2440  (eval "$ac_link") 2>&5
2441  ac_status=$?
2442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443  (exit $ac_status); }; then
2444  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2445# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2446# work properly (i.e., refer to `conftest.exe'), while it won't with
2447# `rm'.
2448for ac_file in conftest.exe conftest conftest.*; do
2449  test -f "$ac_file" || continue
2450  case $ac_file in
2451    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2452    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2453	  break;;
2454    * ) break;;
2455  esac
2456done
2457else
2458  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2459See \`config.log' for more details." >&5
2460echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2461See \`config.log' for more details." >&2;}
2462   { (exit 1); exit 1; }; }
2463fi
2464
2465rm -f conftest$ac_cv_exeext
2466{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2467echo "${ECHO_T}$ac_cv_exeext" >&6; }
2468
2469rm -f conftest.$ac_ext
2470EXEEXT=$ac_cv_exeext
2471ac_exeext=$EXEEXT
2472{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2473echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2474if test "${ac_cv_objext+set}" = set; then
2475  echo $ECHO_N "(cached) $ECHO_C" >&6
2476else
2477  cat >conftest.$ac_ext <<_ACEOF
2478/* confdefs.h.  */
2479_ACEOF
2480cat confdefs.h >>conftest.$ac_ext
2481cat >>conftest.$ac_ext <<_ACEOF
2482/* end confdefs.h.  */
2483
2484int
2485main ()
2486{
2487
2488  ;
2489  return 0;
2490}
2491_ACEOF
2492rm -f conftest.o conftest.obj
2493if { (ac_try="$ac_compile"
2494case "(($ac_try" in
2495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496  *) ac_try_echo=$ac_try;;
2497esac
2498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499  (eval "$ac_compile") 2>&5
2500  ac_status=$?
2501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502  (exit $ac_status); }; then
2503  for ac_file in conftest.o conftest.obj conftest.*; do
2504  test -f "$ac_file" || continue;
2505  case $ac_file in
2506    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2507    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2508       break;;
2509  esac
2510done
2511else
2512  echo "$as_me: failed program was:" >&5
2513sed 's/^/| /' conftest.$ac_ext >&5
2514
2515{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2516See \`config.log' for more details." >&5
2517echo "$as_me: error: cannot compute suffix of object files: cannot compile
2518See \`config.log' for more details." >&2;}
2519   { (exit 1); exit 1; }; }
2520fi
2521
2522rm -f conftest.$ac_cv_objext conftest.$ac_ext
2523fi
2524{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2525echo "${ECHO_T}$ac_cv_objext" >&6; }
2526OBJEXT=$ac_cv_objext
2527ac_objext=$OBJEXT
2528{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2529echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2530if test "${ac_cv_c_compiler_gnu+set}" = set; then
2531  echo $ECHO_N "(cached) $ECHO_C" >&6
2532else
2533  cat >conftest.$ac_ext <<_ACEOF
2534/* confdefs.h.  */
2535_ACEOF
2536cat confdefs.h >>conftest.$ac_ext
2537cat >>conftest.$ac_ext <<_ACEOF
2538/* end confdefs.h.  */
2539
2540int
2541main ()
2542{
2543#ifndef __GNUC__
2544       choke me
2545#endif
2546
2547  ;
2548  return 0;
2549}
2550_ACEOF
2551rm -f conftest.$ac_objext
2552if { (ac_try="$ac_compile"
2553case "(($ac_try" in
2554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555  *) ac_try_echo=$ac_try;;
2556esac
2557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2558  (eval "$ac_compile") 2>conftest.er1
2559  ac_status=$?
2560  grep -v '^ *+' conftest.er1 >conftest.err
2561  rm -f conftest.er1
2562  cat conftest.err >&5
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); } &&
2565	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2566  { (case "(($ac_try" in
2567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568  *) ac_try_echo=$ac_try;;
2569esac
2570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571  (eval "$ac_try") 2>&5
2572  ac_status=$?
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); }; } &&
2575	 { ac_try='test -s conftest.$ac_objext'
2576  { (case "(($ac_try" in
2577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578  *) ac_try_echo=$ac_try;;
2579esac
2580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581  (eval "$ac_try") 2>&5
2582  ac_status=$?
2583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584  (exit $ac_status); }; }; then
2585  ac_compiler_gnu=yes
2586else
2587  echo "$as_me: failed program was:" >&5
2588sed 's/^/| /' conftest.$ac_ext >&5
2589
2590	ac_compiler_gnu=no
2591fi
2592
2593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594ac_cv_c_compiler_gnu=$ac_compiler_gnu
2595
2596fi
2597{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2598echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2599GCC=`test $ac_compiler_gnu = yes && echo yes`
2600ac_test_CFLAGS=${CFLAGS+set}
2601ac_save_CFLAGS=$CFLAGS
2602{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2603echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2604if test "${ac_cv_prog_cc_g+set}" = set; then
2605  echo $ECHO_N "(cached) $ECHO_C" >&6
2606else
2607  ac_save_c_werror_flag=$ac_c_werror_flag
2608   ac_c_werror_flag=yes
2609   ac_cv_prog_cc_g=no
2610   CFLAGS="-g"
2611   cat >conftest.$ac_ext <<_ACEOF
2612/* confdefs.h.  */
2613_ACEOF
2614cat confdefs.h >>conftest.$ac_ext
2615cat >>conftest.$ac_ext <<_ACEOF
2616/* end confdefs.h.  */
2617
2618int
2619main ()
2620{
2621
2622  ;
2623  return 0;
2624}
2625_ACEOF
2626rm -f conftest.$ac_objext
2627if { (ac_try="$ac_compile"
2628case "(($ac_try" in
2629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630  *) ac_try_echo=$ac_try;;
2631esac
2632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633  (eval "$ac_compile") 2>conftest.er1
2634  ac_status=$?
2635  grep -v '^ *+' conftest.er1 >conftest.err
2636  rm -f conftest.er1
2637  cat conftest.err >&5
2638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639  (exit $ac_status); } &&
2640	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2641  { (case "(($ac_try" in
2642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643  *) ac_try_echo=$ac_try;;
2644esac
2645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646  (eval "$ac_try") 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); }; } &&
2650	 { ac_try='test -s conftest.$ac_objext'
2651  { (case "(($ac_try" in
2652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653  *) ac_try_echo=$ac_try;;
2654esac
2655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2656  (eval "$ac_try") 2>&5
2657  ac_status=$?
2658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659  (exit $ac_status); }; }; then
2660  ac_cv_prog_cc_g=yes
2661else
2662  echo "$as_me: failed program was:" >&5
2663sed 's/^/| /' conftest.$ac_ext >&5
2664
2665	CFLAGS=""
2666      cat >conftest.$ac_ext <<_ACEOF
2667/* confdefs.h.  */
2668_ACEOF
2669cat confdefs.h >>conftest.$ac_ext
2670cat >>conftest.$ac_ext <<_ACEOF
2671/* end confdefs.h.  */
2672
2673int
2674main ()
2675{
2676
2677  ;
2678  return 0;
2679}
2680_ACEOF
2681rm -f conftest.$ac_objext
2682if { (ac_try="$ac_compile"
2683case "(($ac_try" in
2684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685  *) ac_try_echo=$ac_try;;
2686esac
2687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688  (eval "$ac_compile") 2>conftest.er1
2689  ac_status=$?
2690  grep -v '^ *+' conftest.er1 >conftest.err
2691  rm -f conftest.er1
2692  cat conftest.err >&5
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); } &&
2695	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2696  { (case "(($ac_try" in
2697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698  *) ac_try_echo=$ac_try;;
2699esac
2700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701  (eval "$ac_try") 2>&5
2702  ac_status=$?
2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); }; } &&
2705	 { ac_try='test -s conftest.$ac_objext'
2706  { (case "(($ac_try" in
2707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708  *) ac_try_echo=$ac_try;;
2709esac
2710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711  (eval "$ac_try") 2>&5
2712  ac_status=$?
2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); }; }; then
2715  :
2716else
2717  echo "$as_me: failed program was:" >&5
2718sed 's/^/| /' conftest.$ac_ext >&5
2719
2720	ac_c_werror_flag=$ac_save_c_werror_flag
2721	 CFLAGS="-g"
2722	 cat >conftest.$ac_ext <<_ACEOF
2723/* confdefs.h.  */
2724_ACEOF
2725cat confdefs.h >>conftest.$ac_ext
2726cat >>conftest.$ac_ext <<_ACEOF
2727/* end confdefs.h.  */
2728
2729int
2730main ()
2731{
2732
2733  ;
2734  return 0;
2735}
2736_ACEOF
2737rm -f conftest.$ac_objext
2738if { (ac_try="$ac_compile"
2739case "(($ac_try" in
2740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741  *) ac_try_echo=$ac_try;;
2742esac
2743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744  (eval "$ac_compile") 2>conftest.er1
2745  ac_status=$?
2746  grep -v '^ *+' conftest.er1 >conftest.err
2747  rm -f conftest.er1
2748  cat conftest.err >&5
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); } &&
2751	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2752  { (case "(($ac_try" in
2753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754  *) ac_try_echo=$ac_try;;
2755esac
2756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757  (eval "$ac_try") 2>&5
2758  ac_status=$?
2759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760  (exit $ac_status); }; } &&
2761	 { ac_try='test -s conftest.$ac_objext'
2762  { (case "(($ac_try" in
2763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764  *) ac_try_echo=$ac_try;;
2765esac
2766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767  (eval "$ac_try") 2>&5
2768  ac_status=$?
2769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770  (exit $ac_status); }; }; then
2771  ac_cv_prog_cc_g=yes
2772else
2773  echo "$as_me: failed program was:" >&5
2774sed 's/^/| /' conftest.$ac_ext >&5
2775
2776
2777fi
2778
2779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2780fi
2781
2782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2783fi
2784
2785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786   ac_c_werror_flag=$ac_save_c_werror_flag
2787fi
2788{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2789echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2790if test "$ac_test_CFLAGS" = set; then
2791  CFLAGS=$ac_save_CFLAGS
2792elif test $ac_cv_prog_cc_g = yes; then
2793  if test "$GCC" = yes; then
2794    CFLAGS="-g -O2"
2795  else
2796    CFLAGS="-g"
2797  fi
2798else
2799  if test "$GCC" = yes; then
2800    CFLAGS="-O2"
2801  else
2802    CFLAGS=
2803  fi
2804fi
2805{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2806echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2807if test "${ac_cv_prog_cc_c89+set}" = set; then
2808  echo $ECHO_N "(cached) $ECHO_C" >&6
2809else
2810  ac_cv_prog_cc_c89=no
2811ac_save_CC=$CC
2812cat >conftest.$ac_ext <<_ACEOF
2813/* confdefs.h.  */
2814_ACEOF
2815cat confdefs.h >>conftest.$ac_ext
2816cat >>conftest.$ac_ext <<_ACEOF
2817/* end confdefs.h.  */
2818#include <stdarg.h>
2819#include <stdio.h>
2820#include <sys/types.h>
2821#include <sys/stat.h>
2822/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2823struct buf { int x; };
2824FILE * (*rcsopen) (struct buf *, struct stat *, int);
2825static char *e (p, i)
2826     char **p;
2827     int i;
2828{
2829  return p[i];
2830}
2831static char *f (char * (*g) (char **, int), char **p, ...)
2832{
2833  char *s;
2834  va_list v;
2835  va_start (v,p);
2836  s = g (p, va_arg (v,int));
2837  va_end (v);
2838  return s;
2839}
2840
2841/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2842   function prototypes and stuff, but not '\xHH' hex character constants.
2843   These don't provoke an error unfortunately, instead are silently treated
2844   as 'x'.  The following induces an error, until -std is added to get
2845   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2846   array size at least.  It's necessary to write '\x00'==0 to get something
2847   that's true only with -std.  */
2848int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2849
2850/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2851   inside strings and character constants.  */
2852#define FOO(x) 'x'
2853int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2854
2855int test (int i, double x);
2856struct s1 {int (*f) (int a);};
2857struct s2 {int (*f) (double a);};
2858int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2859int argc;
2860char **argv;
2861int
2862main ()
2863{
2864return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2865  ;
2866  return 0;
2867}
2868_ACEOF
2869for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2870	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2871do
2872  CC="$ac_save_CC $ac_arg"
2873  rm -f conftest.$ac_objext
2874if { (ac_try="$ac_compile"
2875case "(($ac_try" in
2876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877  *) ac_try_echo=$ac_try;;
2878esac
2879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880  (eval "$ac_compile") 2>conftest.er1
2881  ac_status=$?
2882  grep -v '^ *+' conftest.er1 >conftest.err
2883  rm -f conftest.er1
2884  cat conftest.err >&5
2885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886  (exit $ac_status); } &&
2887	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2888  { (case "(($ac_try" in
2889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890  *) ac_try_echo=$ac_try;;
2891esac
2892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893  (eval "$ac_try") 2>&5
2894  ac_status=$?
2895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896  (exit $ac_status); }; } &&
2897	 { ac_try='test -s conftest.$ac_objext'
2898  { (case "(($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_try") 2>&5
2904  ac_status=$?
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); }; }; then
2907  ac_cv_prog_cc_c89=$ac_arg
2908else
2909  echo "$as_me: failed program was:" >&5
2910sed 's/^/| /' conftest.$ac_ext >&5
2911
2912
2913fi
2914
2915rm -f core conftest.err conftest.$ac_objext
2916  test "x$ac_cv_prog_cc_c89" != "xno" && break
2917done
2918rm -f conftest.$ac_ext
2919CC=$ac_save_CC
2920
2921fi
2922# AC_CACHE_VAL
2923case "x$ac_cv_prog_cc_c89" in
2924  x)
2925    { echo "$as_me:$LINENO: result: none needed" >&5
2926echo "${ECHO_T}none needed" >&6; } ;;
2927  xno)
2928    { echo "$as_me:$LINENO: result: unsupported" >&5
2929echo "${ECHO_T}unsupported" >&6; } ;;
2930  *)
2931    CC="$CC $ac_cv_prog_cc_c89"
2932    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2933echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2934esac
2935
2936
2937ac_ext=c
2938ac_cpp='$CPP $CPPFLAGS'
2939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942
2943ac_ext=c
2944ac_cpp='$CPP $CPPFLAGS'
2945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2949echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2950# On Suns, sometimes $CPP names a directory.
2951if test -n "$CPP" && test -d "$CPP"; then
2952  CPP=
2953fi
2954if test -z "$CPP"; then
2955  if test "${ac_cv_prog_CPP+set}" = set; then
2956  echo $ECHO_N "(cached) $ECHO_C" >&6
2957else
2958      # Double quotes because CPP needs to be expanded
2959    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2960    do
2961      ac_preproc_ok=false
2962for ac_c_preproc_warn_flag in '' yes
2963do
2964  # Use a header file that comes with gcc, so configuring glibc
2965  # with a fresh cross-compiler works.
2966  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2967  # <limits.h> exists even on freestanding compilers.
2968  # On the NeXT, cc -E runs the code through the compiler's parser,
2969  # not just through cpp. "Syntax error" is here to catch this case.
2970  cat >conftest.$ac_ext <<_ACEOF
2971/* confdefs.h.  */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
2975/* end confdefs.h.  */
2976#ifdef __STDC__
2977# include <limits.h>
2978#else
2979# include <assert.h>
2980#endif
2981		     Syntax error
2982_ACEOF
2983if { (ac_try="$ac_cpp conftest.$ac_ext"
2984case "(($ac_try" in
2985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986  *) ac_try_echo=$ac_try;;
2987esac
2988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2990  ac_status=$?
2991  grep -v '^ *+' conftest.er1 >conftest.err
2992  rm -f conftest.er1
2993  cat conftest.err >&5
2994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995  (exit $ac_status); } >/dev/null; then
2996  if test -s conftest.err; then
2997    ac_cpp_err=$ac_c_preproc_warn_flag
2998    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2999  else
3000    ac_cpp_err=
3001  fi
3002else
3003  ac_cpp_err=yes
3004fi
3005if test -z "$ac_cpp_err"; then
3006  :
3007else
3008  echo "$as_me: failed program was:" >&5
3009sed 's/^/| /' conftest.$ac_ext >&5
3010
3011  # Broken: fails on valid input.
3012continue
3013fi
3014
3015rm -f conftest.err conftest.$ac_ext
3016
3017  # OK, works on sane cases.  Now check whether nonexistent headers
3018  # can be detected and how.
3019  cat >conftest.$ac_ext <<_ACEOF
3020/* confdefs.h.  */
3021_ACEOF
3022cat confdefs.h >>conftest.$ac_ext
3023cat >>conftest.$ac_ext <<_ACEOF
3024/* end confdefs.h.  */
3025#include <ac_nonexistent.h>
3026_ACEOF
3027if { (ac_try="$ac_cpp conftest.$ac_ext"
3028case "(($ac_try" in
3029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030  *) ac_try_echo=$ac_try;;
3031esac
3032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3034  ac_status=$?
3035  grep -v '^ *+' conftest.er1 >conftest.err
3036  rm -f conftest.er1
3037  cat conftest.err >&5
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); } >/dev/null; then
3040  if test -s conftest.err; then
3041    ac_cpp_err=$ac_c_preproc_warn_flag
3042    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3043  else
3044    ac_cpp_err=
3045  fi
3046else
3047  ac_cpp_err=yes
3048fi
3049if test -z "$ac_cpp_err"; then
3050  # Broken: success on invalid input.
3051continue
3052else
3053  echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056  # Passes both tests.
3057ac_preproc_ok=:
3058break
3059fi
3060
3061rm -f conftest.err conftest.$ac_ext
3062
3063done
3064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3065rm -f conftest.err conftest.$ac_ext
3066if $ac_preproc_ok; then
3067  break
3068fi
3069
3070    done
3071    ac_cv_prog_CPP=$CPP
3072
3073fi
3074  CPP=$ac_cv_prog_CPP
3075else
3076  ac_cv_prog_CPP=$CPP
3077fi
3078{ echo "$as_me:$LINENO: result: $CPP" >&5
3079echo "${ECHO_T}$CPP" >&6; }
3080ac_preproc_ok=false
3081for ac_c_preproc_warn_flag in '' yes
3082do
3083  # Use a header file that comes with gcc, so configuring glibc
3084  # with a fresh cross-compiler works.
3085  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3086  # <limits.h> exists even on freestanding compilers.
3087  # On the NeXT, cc -E runs the code through the compiler's parser,
3088  # not just through cpp. "Syntax error" is here to catch this case.
3089  cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h.  */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h.  */
3095#ifdef __STDC__
3096# include <limits.h>
3097#else
3098# include <assert.h>
3099#endif
3100		     Syntax error
3101_ACEOF
3102if { (ac_try="$ac_cpp conftest.$ac_ext"
3103case "(($ac_try" in
3104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105  *) ac_try_echo=$ac_try;;
3106esac
3107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3109  ac_status=$?
3110  grep -v '^ *+' conftest.er1 >conftest.err
3111  rm -f conftest.er1
3112  cat conftest.err >&5
3113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114  (exit $ac_status); } >/dev/null; then
3115  if test -s conftest.err; then
3116    ac_cpp_err=$ac_c_preproc_warn_flag
3117    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3118  else
3119    ac_cpp_err=
3120  fi
3121else
3122  ac_cpp_err=yes
3123fi
3124if test -z "$ac_cpp_err"; then
3125  :
3126else
3127  echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130  # Broken: fails on valid input.
3131continue
3132fi
3133
3134rm -f conftest.err conftest.$ac_ext
3135
3136  # OK, works on sane cases.  Now check whether nonexistent headers
3137  # can be detected and how.
3138  cat >conftest.$ac_ext <<_ACEOF
3139/* confdefs.h.  */
3140_ACEOF
3141cat confdefs.h >>conftest.$ac_ext
3142cat >>conftest.$ac_ext <<_ACEOF
3143/* end confdefs.h.  */
3144#include <ac_nonexistent.h>
3145_ACEOF
3146if { (ac_try="$ac_cpp conftest.$ac_ext"
3147case "(($ac_try" in
3148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149  *) ac_try_echo=$ac_try;;
3150esac
3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3153  ac_status=$?
3154  grep -v '^ *+' conftest.er1 >conftest.err
3155  rm -f conftest.er1
3156  cat conftest.err >&5
3157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158  (exit $ac_status); } >/dev/null; then
3159  if test -s conftest.err; then
3160    ac_cpp_err=$ac_c_preproc_warn_flag
3161    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3162  else
3163    ac_cpp_err=
3164  fi
3165else
3166  ac_cpp_err=yes
3167fi
3168if test -z "$ac_cpp_err"; then
3169  # Broken: success on invalid input.
3170continue
3171else
3172  echo "$as_me: failed program was:" >&5
3173sed 's/^/| /' conftest.$ac_ext >&5
3174
3175  # Passes both tests.
3176ac_preproc_ok=:
3177break
3178fi
3179
3180rm -f conftest.err conftest.$ac_ext
3181
3182done
3183# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3184rm -f conftest.err conftest.$ac_ext
3185if $ac_preproc_ok; then
3186  :
3187else
3188  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3189See \`config.log' for more details." >&5
3190echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3191See \`config.log' for more details." >&2;}
3192   { (exit 1); exit 1; }; }
3193fi
3194
3195ac_ext=c
3196ac_cpp='$CPP $CPPFLAGS'
3197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200
3201
3202
3203{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3204echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3205if test "${ac_cv_path_GREP+set}" = set; then
3206  echo $ECHO_N "(cached) $ECHO_C" >&6
3207else
3208  # Extract the first word of "grep ggrep" to use in msg output
3209if test -z "$GREP"; then
3210set dummy grep ggrep; ac_prog_name=$2
3211if test "${ac_cv_path_GREP+set}" = set; then
3212  echo $ECHO_N "(cached) $ECHO_C" >&6
3213else
3214  ac_path_GREP_found=false
3215# Loop through the user's path and test for each of PROGNAME-LIST
3216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3218do
3219  IFS=$as_save_IFS
3220  test -z "$as_dir" && as_dir=.
3221  for ac_prog in grep ggrep; do
3222  for ac_exec_ext in '' $ac_executable_extensions; do
3223    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3224    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3225    # Check for GNU ac_path_GREP and select it if it is found.
3226  # Check for GNU $ac_path_GREP
3227case `"$ac_path_GREP" --version 2>&1` in
3228*GNU*)
3229  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3230*)
3231  ac_count=0
3232  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3233  while :
3234  do
3235    cat "conftest.in" "conftest.in" >"conftest.tmp"
3236    mv "conftest.tmp" "conftest.in"
3237    cp "conftest.in" "conftest.nl"
3238    echo 'GREP' >> "conftest.nl"
3239    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3240    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3241    ac_count=`expr $ac_count + 1`
3242    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3243      # Best one so far, save it but keep looking for a better one
3244      ac_cv_path_GREP="$ac_path_GREP"
3245      ac_path_GREP_max=$ac_count
3246    fi
3247    # 10*(2^10) chars as input seems more than enough
3248    test $ac_count -gt 10 && break
3249  done
3250  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3251esac
3252
3253
3254    $ac_path_GREP_found && break 3
3255  done
3256done
3257
3258done
3259IFS=$as_save_IFS
3260
3261
3262fi
3263
3264GREP="$ac_cv_path_GREP"
3265if test -z "$GREP"; then
3266  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3267echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3268   { (exit 1); exit 1; }; }
3269fi
3270
3271else
3272  ac_cv_path_GREP=$GREP
3273fi
3274
3275
3276fi
3277{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3278echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3279 GREP="$ac_cv_path_GREP"
3280
3281
3282{ echo "$as_me:$LINENO: checking for egrep" >&5
3283echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3284if test "${ac_cv_path_EGREP+set}" = set; then
3285  echo $ECHO_N "(cached) $ECHO_C" >&6
3286else
3287  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3288   then ac_cv_path_EGREP="$GREP -E"
3289   else
3290     # Extract the first word of "egrep" to use in msg output
3291if test -z "$EGREP"; then
3292set dummy egrep; ac_prog_name=$2
3293if test "${ac_cv_path_EGREP+set}" = set; then
3294  echo $ECHO_N "(cached) $ECHO_C" >&6
3295else
3296  ac_path_EGREP_found=false
3297# Loop through the user's path and test for each of PROGNAME-LIST
3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3300do
3301  IFS=$as_save_IFS
3302  test -z "$as_dir" && as_dir=.
3303  for ac_prog in egrep; do
3304  for ac_exec_ext in '' $ac_executable_extensions; do
3305    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3306    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3307    # Check for GNU ac_path_EGREP and select it if it is found.
3308  # Check for GNU $ac_path_EGREP
3309case `"$ac_path_EGREP" --version 2>&1` in
3310*GNU*)
3311  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3312*)
3313  ac_count=0
3314  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3315  while :
3316  do
3317    cat "conftest.in" "conftest.in" >"conftest.tmp"
3318    mv "conftest.tmp" "conftest.in"
3319    cp "conftest.in" "conftest.nl"
3320    echo 'EGREP' >> "conftest.nl"
3321    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3322    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3323    ac_count=`expr $ac_count + 1`
3324    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3325      # Best one so far, save it but keep looking for a better one
3326      ac_cv_path_EGREP="$ac_path_EGREP"
3327      ac_path_EGREP_max=$ac_count
3328    fi
3329    # 10*(2^10) chars as input seems more than enough
3330    test $ac_count -gt 10 && break
3331  done
3332  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3333esac
3334
3335
3336    $ac_path_EGREP_found && break 3
3337  done
3338done
3339
3340done
3341IFS=$as_save_IFS
3342
3343
3344fi
3345
3346EGREP="$ac_cv_path_EGREP"
3347if test -z "$EGREP"; then
3348  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350   { (exit 1); exit 1; }; }
3351fi
3352
3353else
3354  ac_cv_path_EGREP=$EGREP
3355fi
3356
3357
3358   fi
3359fi
3360{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3361echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3362 EGREP="$ac_cv_path_EGREP"
3363
3364
3365if test $ac_cv_c_compiler_gnu = yes; then
3366    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3367echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3368if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3369  echo $ECHO_N "(cached) $ECHO_C" >&6
3370else
3371    ac_pattern="Autoconf.*'x'"
3372  cat >conftest.$ac_ext <<_ACEOF
3373/* confdefs.h.  */
3374_ACEOF
3375cat confdefs.h >>conftest.$ac_ext
3376cat >>conftest.$ac_ext <<_ACEOF
3377/* end confdefs.h.  */
3378#include <sgtty.h>
3379Autoconf TIOCGETP
3380_ACEOF
3381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3382  $EGREP "$ac_pattern" >/dev/null 2>&1; then
3383  ac_cv_prog_gcc_traditional=yes
3384else
3385  ac_cv_prog_gcc_traditional=no
3386fi
3387rm -f conftest*
3388
3389
3390  if test $ac_cv_prog_gcc_traditional = no; then
3391    cat >conftest.$ac_ext <<_ACEOF
3392/* confdefs.h.  */
3393_ACEOF
3394cat confdefs.h >>conftest.$ac_ext
3395cat >>conftest.$ac_ext <<_ACEOF
3396/* end confdefs.h.  */
3397#include <termio.h>
3398Autoconf TCGETA
3399_ACEOF
3400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3401  $EGREP "$ac_pattern" >/dev/null 2>&1; then
3402  ac_cv_prog_gcc_traditional=yes
3403fi
3404rm -f conftest*
3405
3406  fi
3407fi
3408{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3409echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3410  if test $ac_cv_prog_gcc_traditional = yes; then
3411    CC="$CC -traditional"
3412  fi
3413fi
3414
3415# Find a good install program.  We prefer a C program (faster),
3416# so one script is as good as another.  But avoid the broken or
3417# incompatible versions:
3418# SysV /etc/install, /usr/sbin/install
3419# SunOS /usr/etc/install
3420# IRIX /sbin/install
3421# AIX /bin/install
3422# AmigaOS /C/install, which installs bootblocks on floppy discs
3423# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3424# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3425# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3426# OS/2's system install, which has a completely different semantic
3427# ./install, which can be erroneously created by make from ./install.sh.
3428{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3429echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3430if test -z "$INSTALL"; then
3431if test "${ac_cv_path_install+set}" = set; then
3432  echo $ECHO_N "(cached) $ECHO_C" >&6
3433else
3434  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435for as_dir in $PATH
3436do
3437  IFS=$as_save_IFS
3438  test -z "$as_dir" && as_dir=.
3439  # Account for people who put trailing slashes in PATH elements.
3440case $as_dir/ in
3441  ./ | .// | /cC/* | \
3442  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3443  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3444  /usr/ucb/* ) ;;
3445  *)
3446    # OSF1 and SCO ODT 3.0 have their own names for install.
3447    # Don't use installbsd from OSF since it installs stuff as root
3448    # by default.
3449    for ac_prog in ginstall scoinst install; do
3450      for ac_exec_ext in '' $ac_executable_extensions; do
3451	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
3452	  if test $ac_prog = install &&
3453	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3454	    # AIX install.  It has an incompatible calling convention.
3455	    :
3456	  elif test $ac_prog = install &&
3457	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3458	    # program-specific install script used by HP pwplus--don't use.
3459	    :
3460	  else
3461	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3462	    break 3
3463	  fi
3464	fi
3465      done
3466    done
3467    ;;
3468esac
3469done
3470IFS=$as_save_IFS
3471
3472
3473fi
3474  if test "${ac_cv_path_install+set}" = set; then
3475    INSTALL=$ac_cv_path_install
3476  else
3477    # As a last resort, use the slow shell script.  Don't cache a
3478    # value for INSTALL within a source directory, because that will
3479    # break other packages using the cache if that directory is
3480    # removed, or if the value is a relative name.
3481    INSTALL=$ac_install_sh
3482  fi
3483fi
3484{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3485echo "${ECHO_T}$INSTALL" >&6; }
3486
3487# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3488# It thinks the first close brace ends the variable substitution.
3489test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3490
3491test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3492
3493test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3494
3495
3496
3497# Make sure we can run config.sub.
3498$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3499  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3500echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3501   { (exit 1); exit 1; }; }
3502
3503{ echo "$as_me:$LINENO: checking build system type" >&5
3504echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3505if test "${ac_cv_build+set}" = set; then
3506  echo $ECHO_N "(cached) $ECHO_C" >&6
3507else
3508  ac_build_alias=$build_alias
3509test "x$ac_build_alias" = x &&
3510  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3511test "x$ac_build_alias" = x &&
3512  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3513echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3514   { (exit 1); exit 1; }; }
3515ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3516  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3517echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3518   { (exit 1); exit 1; }; }
3519
3520fi
3521{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3522echo "${ECHO_T}$ac_cv_build" >&6; }
3523case $ac_cv_build in
3524*-*-*) ;;
3525*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3526echo "$as_me: error: invalid value of canonical build" >&2;}
3527   { (exit 1); exit 1; }; };;
3528esac
3529build=$ac_cv_build
3530ac_save_IFS=$IFS; IFS='-'
3531set x $ac_cv_build
3532shift
3533build_cpu=$1
3534build_vendor=$2
3535shift; shift
3536# Remember, the first character of IFS is used to create $*,
3537# except with old shells:
3538build_os=$*
3539IFS=$ac_save_IFS
3540case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3541
3542
3543{ echo "$as_me:$LINENO: checking host system type" >&5
3544echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3545if test "${ac_cv_host+set}" = set; then
3546  echo $ECHO_N "(cached) $ECHO_C" >&6
3547else
3548  if test "x$host_alias" = x; then
3549  ac_cv_host=$ac_cv_build
3550else
3551  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3552    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3553echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3554   { (exit 1); exit 1; }; }
3555fi
3556
3557fi
3558{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3559echo "${ECHO_T}$ac_cv_host" >&6; }
3560case $ac_cv_host in
3561*-*-*) ;;
3562*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3563echo "$as_me: error: invalid value of canonical host" >&2;}
3564   { (exit 1); exit 1; }; };;
3565esac
3566host=$ac_cv_host
3567ac_save_IFS=$IFS; IFS='-'
3568set x $ac_cv_host
3569shift
3570host_cpu=$1
3571host_vendor=$2
3572shift; shift
3573# Remember, the first character of IFS is used to create $*,
3574# except with old shells:
3575host_os=$*
3576IFS=$ac_save_IFS
3577case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3578
3579
3580
3581
3582
3583  { echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
3584echo $ECHO_N "checking whether to activate relocatable installation... $ECHO_C" >&6; }
3585  # Check whether --enable-relocatable was given.
3586if test "${enable_relocatable+set}" = set; then
3587  enableval=$enable_relocatable; if test "$enableval" != no; then
3588       RELOCATABLE=yes
3589     else
3590       RELOCATABLE=no
3591     fi
3592
3593else
3594  RELOCATABLE=no
3595fi
3596
3597
3598  { echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
3599echo "${ECHO_T}$RELOCATABLE" >&6; }
3600
3601
3602
3603    if test "X$prefix" = "XNONE"; then
3604    reloc_final_prefix="$ac_default_prefix"
3605  else
3606    reloc_final_prefix="$prefix"
3607  fi
3608
3609cat >>confdefs.h <<_ACEOF
3610#define INSTALLPREFIX "${reloc_final_prefix}"
3611_ACEOF
3612
3613
3614
3615
3616
3617
3618{ echo "$as_me:$LINENO: checking for AIX" >&5
3619echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3620cat >conftest.$ac_ext <<_ACEOF
3621/* confdefs.h.  */
3622_ACEOF
3623cat confdefs.h >>conftest.$ac_ext
3624cat >>conftest.$ac_ext <<_ACEOF
3625/* end confdefs.h.  */
3626#ifdef _AIX
3627  yes
3628#endif
3629
3630_ACEOF
3631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3632  $EGREP "yes" >/dev/null 2>&1; then
3633  { echo "$as_me:$LINENO: result: yes" >&5
3634echo "${ECHO_T}yes" >&6; }
3635cat >>confdefs.h <<\_ACEOF
3636#define _ALL_SOURCE 1
3637_ACEOF
3638
3639else
3640  { echo "$as_me:$LINENO: result: no" >&5
3641echo "${ECHO_T}no" >&6; }
3642fi
3643rm -f conftest*
3644
3645
3646{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3647echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3648if test "${ac_cv_header_stdc+set}" = set; then
3649  echo $ECHO_N "(cached) $ECHO_C" >&6
3650else
3651  cat >conftest.$ac_ext <<_ACEOF
3652/* confdefs.h.  */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h.  */
3657#include <stdlib.h>
3658#include <stdarg.h>
3659#include <string.h>
3660#include <float.h>
3661
3662int
3663main ()
3664{
3665
3666  ;
3667  return 0;
3668}
3669_ACEOF
3670rm -f conftest.$ac_objext
3671if { (ac_try="$ac_compile"
3672case "(($ac_try" in
3673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674  *) ac_try_echo=$ac_try;;
3675esac
3676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677  (eval "$ac_compile") 2>conftest.er1
3678  ac_status=$?
3679  grep -v '^ *+' conftest.er1 >conftest.err
3680  rm -f conftest.er1
3681  cat conftest.err >&5
3682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683  (exit $ac_status); } &&
3684	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3685  { (case "(($ac_try" in
3686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687  *) ac_try_echo=$ac_try;;
3688esac
3689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690  (eval "$ac_try") 2>&5
3691  ac_status=$?
3692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693  (exit $ac_status); }; } &&
3694	 { ac_try='test -s conftest.$ac_objext'
3695  { (case "(($ac_try" in
3696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697  *) ac_try_echo=$ac_try;;
3698esac
3699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700  (eval "$ac_try") 2>&5
3701  ac_status=$?
3702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703  (exit $ac_status); }; }; then
3704  ac_cv_header_stdc=yes
3705else
3706  echo "$as_me: failed program was:" >&5
3707sed 's/^/| /' conftest.$ac_ext >&5
3708
3709	ac_cv_header_stdc=no
3710fi
3711
3712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713
3714if test $ac_cv_header_stdc = yes; then
3715  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3716  cat >conftest.$ac_ext <<_ACEOF
3717/* confdefs.h.  */
3718_ACEOF
3719cat confdefs.h >>conftest.$ac_ext
3720cat >>conftest.$ac_ext <<_ACEOF
3721/* end confdefs.h.  */
3722#include <string.h>
3723
3724_ACEOF
3725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3726  $EGREP "memchr" >/dev/null 2>&1; then
3727  :
3728else
3729  ac_cv_header_stdc=no
3730fi
3731rm -f conftest*
3732
3733fi
3734
3735if test $ac_cv_header_stdc = yes; then
3736  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3737  cat >conftest.$ac_ext <<_ACEOF
3738/* confdefs.h.  */
3739_ACEOF
3740cat confdefs.h >>conftest.$ac_ext
3741cat >>conftest.$ac_ext <<_ACEOF
3742/* end confdefs.h.  */
3743#include <stdlib.h>
3744
3745_ACEOF
3746if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3747  $EGREP "free" >/dev/null 2>&1; then
3748  :
3749else
3750  ac_cv_header_stdc=no
3751fi
3752rm -f conftest*
3753
3754fi
3755
3756if test $ac_cv_header_stdc = yes; then
3757  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3758  if test "$cross_compiling" = yes; then
3759  :
3760else
3761  cat >conftest.$ac_ext <<_ACEOF
3762/* confdefs.h.  */
3763_ACEOF
3764cat confdefs.h >>conftest.$ac_ext
3765cat >>conftest.$ac_ext <<_ACEOF
3766/* end confdefs.h.  */
3767#include <ctype.h>
3768#include <stdlib.h>
3769#if ((' ' & 0x0FF) == 0x020)
3770# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3771# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3772#else
3773# define ISLOWER(c) \
3774		   (('a' <= (c) && (c) <= 'i') \
3775		     || ('j' <= (c) && (c) <= 'r') \
3776		     || ('s' <= (c) && (c) <= 'z'))
3777# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3778#endif
3779
3780#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3781int
3782main ()
3783{
3784  int i;
3785  for (i = 0; i < 256; i++)
3786    if (XOR (islower (i), ISLOWER (i))
3787	|| toupper (i) != TOUPPER (i))
3788      return 2;
3789  return 0;
3790}
3791_ACEOF
3792rm -f conftest$ac_exeext
3793if { (ac_try="$ac_link"
3794case "(($ac_try" in
3795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796  *) ac_try_echo=$ac_try;;
3797esac
3798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799  (eval "$ac_link") 2>&5
3800  ac_status=$?
3801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3803  { (case "(($ac_try" in
3804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805  *) ac_try_echo=$ac_try;;
3806esac
3807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808  (eval "$ac_try") 2>&5
3809  ac_status=$?
3810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811  (exit $ac_status); }; }; then
3812  :
3813else
3814  echo "$as_me: program exited with status $ac_status" >&5
3815echo "$as_me: failed program was:" >&5
3816sed 's/^/| /' conftest.$ac_ext >&5
3817
3818( exit $ac_status )
3819ac_cv_header_stdc=no
3820fi
3821rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3822fi
3823
3824
3825fi
3826fi
3827{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3828echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3829if test $ac_cv_header_stdc = yes; then
3830
3831cat >>confdefs.h <<\_ACEOF
3832#define STDC_HEADERS 1
3833_ACEOF
3834
3835fi
3836
3837# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3848		  inttypes.h stdint.h unistd.h
3849do
3850as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3851{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3854  echo $ECHO_N "(cached) $ECHO_C" >&6
3855else
3856  cat >conftest.$ac_ext <<_ACEOF
3857/* confdefs.h.  */
3858_ACEOF
3859cat confdefs.h >>conftest.$ac_ext
3860cat >>conftest.$ac_ext <<_ACEOF
3861/* end confdefs.h.  */
3862$ac_includes_default
3863
3864#include <$ac_header>
3865_ACEOF
3866rm -f conftest.$ac_objext
3867if { (ac_try="$ac_compile"
3868case "(($ac_try" in
3869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870  *) ac_try_echo=$ac_try;;
3871esac
3872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873  (eval "$ac_compile") 2>conftest.er1
3874  ac_status=$?
3875  grep -v '^ *+' conftest.er1 >conftest.err
3876  rm -f conftest.er1
3877  cat conftest.err >&5
3878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879  (exit $ac_status); } &&
3880	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3881  { (case "(($ac_try" in
3882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883  *) ac_try_echo=$ac_try;;
3884esac
3885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886  (eval "$ac_try") 2>&5
3887  ac_status=$?
3888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889  (exit $ac_status); }; } &&
3890	 { ac_try='test -s conftest.$ac_objext'
3891  { (case "(($ac_try" in
3892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893  *) ac_try_echo=$ac_try;;
3894esac
3895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896  (eval "$ac_try") 2>&5
3897  ac_status=$?
3898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899  (exit $ac_status); }; }; then
3900  eval "$as_ac_Header=yes"
3901else
3902  echo "$as_me: failed program was:" >&5
3903sed 's/^/| /' conftest.$ac_ext >&5
3904
3905	eval "$as_ac_Header=no"
3906fi
3907
3908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909fi
3910ac_res=`eval echo '${'$as_ac_Header'}'`
3911	       { echo "$as_me:$LINENO: result: $ac_res" >&5
3912echo "${ECHO_T}$ac_res" >&6; }
3913if test `eval echo '${'$as_ac_Header'}'` = yes; then
3914  cat >>confdefs.h <<_ACEOF
3915#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3916_ACEOF
3917
3918fi
3919
3920done
3921
3922
3923if test "${ac_cv_header_minix_config_h+set}" = set; then
3924  { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3925echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3926if test "${ac_cv_header_minix_config_h+set}" = set; then
3927  echo $ECHO_N "(cached) $ECHO_C" >&6
3928fi
3929{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3930echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3931else
3932  # Is the header compilable?
3933{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3934echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3935cat >conftest.$ac_ext <<_ACEOF
3936/* confdefs.h.  */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h.  */
3941$ac_includes_default
3942#include <minix/config.h>
3943_ACEOF
3944rm -f conftest.$ac_objext
3945if { (ac_try="$ac_compile"
3946case "(($ac_try" in
3947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948  *) ac_try_echo=$ac_try;;
3949esac
3950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951  (eval "$ac_compile") 2>conftest.er1
3952  ac_status=$?
3953  grep -v '^ *+' conftest.er1 >conftest.err
3954  rm -f conftest.er1
3955  cat conftest.err >&5
3956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957  (exit $ac_status); } &&
3958	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3959  { (case "(($ac_try" in
3960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961  *) ac_try_echo=$ac_try;;
3962esac
3963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964  (eval "$ac_try") 2>&5
3965  ac_status=$?
3966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967  (exit $ac_status); }; } &&
3968	 { ac_try='test -s conftest.$ac_objext'
3969  { (case "(($ac_try" in
3970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971  *) ac_try_echo=$ac_try;;
3972esac
3973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974  (eval "$ac_try") 2>&5
3975  ac_status=$?
3976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977  (exit $ac_status); }; }; then
3978  ac_header_compiler=yes
3979else
3980  echo "$as_me: failed program was:" >&5
3981sed 's/^/| /' conftest.$ac_ext >&5
3982
3983	ac_header_compiler=no
3984fi
3985
3986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3988echo "${ECHO_T}$ac_header_compiler" >&6; }
3989
3990# Is the header present?
3991{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3992echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3993cat >conftest.$ac_ext <<_ACEOF
3994/* confdefs.h.  */
3995_ACEOF
3996cat confdefs.h >>conftest.$ac_ext
3997cat >>conftest.$ac_ext <<_ACEOF
3998/* end confdefs.h.  */
3999#include <minix/config.h>
4000_ACEOF
4001if { (ac_try="$ac_cpp conftest.$ac_ext"
4002case "(($ac_try" in
4003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004  *) ac_try_echo=$ac_try;;
4005esac
4006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4008  ac_status=$?
4009  grep -v '^ *+' conftest.er1 >conftest.err
4010  rm -f conftest.er1
4011  cat conftest.err >&5
4012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013  (exit $ac_status); } >/dev/null; then
4014  if test -s conftest.err; then
4015    ac_cpp_err=$ac_c_preproc_warn_flag
4016    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4017  else
4018    ac_cpp_err=
4019  fi
4020else
4021  ac_cpp_err=yes
4022fi
4023if test -z "$ac_cpp_err"; then
4024  ac_header_preproc=yes
4025else
4026  echo "$as_me: failed program was:" >&5
4027sed 's/^/| /' conftest.$ac_ext >&5
4028
4029  ac_header_preproc=no
4030fi
4031
4032rm -f conftest.err conftest.$ac_ext
4033{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4034echo "${ECHO_T}$ac_header_preproc" >&6; }
4035
4036# So?  What about this header?
4037case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4038  yes:no: )
4039    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4040echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4041    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4042echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4043    ac_header_preproc=yes
4044    ;;
4045  no:yes:* )
4046    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4047echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4048    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4049echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4050    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4051echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4052    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4053echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4054    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4055echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4056    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4057echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4058
4059    ;;
4060esac
4061{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
4062echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4063if test "${ac_cv_header_minix_config_h+set}" = set; then
4064  echo $ECHO_N "(cached) $ECHO_C" >&6
4065else
4066  ac_cv_header_minix_config_h=$ac_header_preproc
4067fi
4068{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4069echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4070
4071fi
4072if test $ac_cv_header_minix_config_h = yes; then
4073  MINIX=yes
4074else
4075  MINIX=
4076fi
4077
4078
4079if test "$MINIX" = yes; then
4080
4081cat >>confdefs.h <<\_ACEOF
4082#define _POSIX_SOURCE 1
4083_ACEOF
4084
4085
4086cat >>confdefs.h <<\_ACEOF
4087#define _POSIX_1_SOURCE 2
4088_ACEOF
4089
4090
4091cat >>confdefs.h <<\_ACEOF
4092#define _MINIX 1
4093_ACEOF
4094
4095fi
4096
4097{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
4098echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4099if test "${ac_cv_search_strerror+set}" = set; then
4100  echo $ECHO_N "(cached) $ECHO_C" >&6
4101else
4102  ac_func_search_save_LIBS=$LIBS
4103cat >conftest.$ac_ext <<_ACEOF
4104/* confdefs.h.  */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h.  */
4109
4110/* Override any GCC internal prototype to avoid an error.
4111   Use char because int might match the return type of a GCC
4112   builtin and then its argument prototype would still apply.  */
4113#ifdef __cplusplus
4114extern "C"
4115#endif
4116char strerror ();
4117int
4118main ()
4119{
4120return strerror ();
4121  ;
4122  return 0;
4123}
4124_ACEOF
4125for ac_lib in '' cposix; do
4126  if test -z "$ac_lib"; then
4127    ac_res="none required"
4128  else
4129    ac_res=-l$ac_lib
4130    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4131  fi
4132  rm -f conftest.$ac_objext conftest$ac_exeext
4133if { (ac_try="$ac_link"
4134case "(($ac_try" in
4135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136  *) ac_try_echo=$ac_try;;
4137esac
4138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139  (eval "$ac_link") 2>conftest.er1
4140  ac_status=$?
4141  grep -v '^ *+' conftest.er1 >conftest.err
4142  rm -f conftest.er1
4143  cat conftest.err >&5
4144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145  (exit $ac_status); } &&
4146	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4147  { (case "(($ac_try" in
4148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149  *) ac_try_echo=$ac_try;;
4150esac
4151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152  (eval "$ac_try") 2>&5
4153  ac_status=$?
4154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155  (exit $ac_status); }; } &&
4156	 { ac_try='test -s conftest$ac_exeext'
4157  { (case "(($ac_try" in
4158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159  *) ac_try_echo=$ac_try;;
4160esac
4161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162  (eval "$ac_try") 2>&5
4163  ac_status=$?
4164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165  (exit $ac_status); }; }; then
4166  ac_cv_search_strerror=$ac_res
4167else
4168  echo "$as_me: failed program was:" >&5
4169sed 's/^/| /' conftest.$ac_ext >&5
4170
4171
4172fi
4173
4174rm -f core conftest.err conftest.$ac_objext \
4175      conftest$ac_exeext
4176  if test "${ac_cv_search_strerror+set}" = set; then
4177  break
4178fi
4179done
4180if test "${ac_cv_search_strerror+set}" = set; then
4181  :
4182else
4183  ac_cv_search_strerror=no
4184fi
4185rm conftest.$ac_ext
4186LIBS=$ac_func_search_save_LIBS
4187fi
4188{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4189echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4190ac_res=$ac_cv_search_strerror
4191if test "$ac_res" != no; then
4192  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4193
4194fi
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204# Check whether --enable-shared was given.
4205if test "${enable_shared+set}" = set; then
4206  enableval=$enable_shared; p=${PACKAGE-default}
4207    case $enableval in
4208    yes) enable_shared=yes ;;
4209    no) enable_shared=no ;;
4210    *)
4211      enable_shared=no
4212      # Look at the argument we got.  We use all the common list separators.
4213      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4214      for pkg in $enableval; do
4215	IFS="$lt_save_ifs"
4216	if test "X$pkg" = "X$p"; then
4217	  enable_shared=yes
4218	fi
4219      done
4220      IFS="$lt_save_ifs"
4221      ;;
4222    esac
4223else
4224  enable_shared=yes
4225fi
4226
4227
4228# Check whether --enable-static was given.
4229if test "${enable_static+set}" = set; then
4230  enableval=$enable_static; p=${PACKAGE-default}
4231    case $enableval in
4232    yes) enable_static=yes ;;
4233    no) enable_static=no ;;
4234    *)
4235     enable_static=no
4236      # Look at the argument we got.  We use all the common list separators.
4237      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4238      for pkg in $enableval; do
4239	IFS="$lt_save_ifs"
4240	if test "X$pkg" = "X$p"; then
4241	  enable_static=yes
4242	fi
4243      done
4244      IFS="$lt_save_ifs"
4245      ;;
4246    esac
4247else
4248  enable_static=yes
4249fi
4250
4251
4252# Check whether --enable-fast-install was given.
4253if test "${enable_fast_install+set}" = set; then
4254  enableval=$enable_fast_install; p=${PACKAGE-default}
4255    case $enableval in
4256    yes) enable_fast_install=yes ;;
4257    no) enable_fast_install=no ;;
4258    *)
4259      enable_fast_install=no
4260      # Look at the argument we got.  We use all the common list separators.
4261      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4262      for pkg in $enableval; do
4263	IFS="$lt_save_ifs"
4264	if test "X$pkg" = "X$p"; then
4265	  enable_fast_install=yes
4266	fi
4267      done
4268      IFS="$lt_save_ifs"
4269      ;;
4270    esac
4271else
4272  enable_fast_install=yes
4273fi
4274
4275
4276{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4277echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4278if test "${lt_cv_path_SED+set}" = set; then
4279  echo $ECHO_N "(cached) $ECHO_C" >&6
4280else
4281  # Loop through the user's path and test for sed and gsed.
4282# Then use that list of sed's as ones to test for truncation.
4283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284for as_dir in $PATH
4285do
4286  IFS=$as_save_IFS
4287  test -z "$as_dir" && as_dir=.
4288  for lt_ac_prog in sed gsed; do
4289    for ac_exec_ext in '' $ac_executable_extensions; do
4290      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4291        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4292      fi
4293    done
4294  done
4295done
4296lt_ac_max=0
4297lt_ac_count=0
4298# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4299# along with /bin/sed that truncates output.
4300for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4301  test ! -f $lt_ac_sed && continue
4302  cat /dev/null > conftest.in
4303  lt_ac_count=0
4304  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4305  # Check for GNU sed and select it if it is found.
4306  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4307    lt_cv_path_SED=$lt_ac_sed
4308    break
4309  fi
4310  while true; do
4311    cat conftest.in conftest.in >conftest.tmp
4312    mv conftest.tmp conftest.in
4313    cp conftest.in conftest.nl
4314    echo >>conftest.nl
4315    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4316    cmp -s conftest.out conftest.nl || break
4317    # 10000 chars as input seems more than enough
4318    test $lt_ac_count -gt 10 && break
4319    lt_ac_count=`expr $lt_ac_count + 1`
4320    if test $lt_ac_count -gt $lt_ac_max; then
4321      lt_ac_max=$lt_ac_count
4322      lt_cv_path_SED=$lt_ac_sed
4323    fi
4324  done
4325done
4326
4327fi
4328
4329SED=$lt_cv_path_SED
4330{ echo "$as_me:$LINENO: result: $SED" >&5
4331echo "${ECHO_T}$SED" >&6; }
4332
4333
4334# Check whether --with-gnu-ld was given.
4335if test "${with_gnu_ld+set}" = set; then
4336  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4337else
4338  with_gnu_ld=no
4339fi
4340
4341ac_prog=ld
4342if test "$GCC" = yes; then
4343  # Check if gcc -print-prog-name=ld gives a path.
4344  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4345echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4346  case $host in
4347  *-*-mingw*)
4348    # gcc leaves a trailing carriage return which upsets mingw
4349    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4350  *)
4351    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4352  esac
4353  case $ac_prog in
4354    # Accept absolute paths.
4355    [\\/]* | ?:[\\/]*)
4356      re_direlt='/[^/][^/]*/\.\./'
4357      # Canonicalize the pathname of ld
4358      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4359      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4360	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4361      done
4362      test -z "$LD" && LD="$ac_prog"
4363      ;;
4364  "")
4365    # If it fails, then pretend we aren't using GCC.
4366    ac_prog=ld
4367    ;;
4368  *)
4369    # If it is relative, then search for the first ld in PATH.
4370    with_gnu_ld=unknown
4371    ;;
4372  esac
4373elif test "$with_gnu_ld" = yes; then
4374  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4375echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4376else
4377  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4378echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4379fi
4380if test "${lt_cv_path_LD+set}" = set; then
4381  echo $ECHO_N "(cached) $ECHO_C" >&6
4382else
4383  if test -z "$LD"; then
4384  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4385  for ac_dir in $PATH; do
4386    IFS="$lt_save_ifs"
4387    test -z "$ac_dir" && ac_dir=.
4388    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4389      lt_cv_path_LD="$ac_dir/$ac_prog"
4390      # Check to see if the program is GNU ld.  I'd rather use --version,
4391      # but apparently some variants of GNU ld only accept -v.
4392      # Break only if it was the GNU/non-GNU ld that we prefer.
4393      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4394      *GNU* | *'with BFD'*)
4395	test "$with_gnu_ld" != no && break
4396	;;
4397      *)
4398	test "$with_gnu_ld" != yes && break
4399	;;
4400      esac
4401    fi
4402  done
4403  IFS="$lt_save_ifs"
4404else
4405  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4406fi
4407fi
4408
4409LD="$lt_cv_path_LD"
4410if test -n "$LD"; then
4411  { echo "$as_me:$LINENO: result: $LD" >&5
4412echo "${ECHO_T}$LD" >&6; }
4413else
4414  { echo "$as_me:$LINENO: result: no" >&5
4415echo "${ECHO_T}no" >&6; }
4416fi
4417test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4418echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4419   { (exit 1); exit 1; }; }
4420{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4421echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4422if test "${lt_cv_prog_gnu_ld+set}" = set; then
4423  echo $ECHO_N "(cached) $ECHO_C" >&6
4424else
4425  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4426case `$LD -v 2>&1 </dev/null` in
4427*GNU* | *'with BFD'*)
4428  lt_cv_prog_gnu_ld=yes
4429  ;;
4430*)
4431  lt_cv_prog_gnu_ld=no
4432  ;;
4433esac
4434fi
4435{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4436echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4437with_gnu_ld=$lt_cv_prog_gnu_ld
4438
4439
4440{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4441echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4442if test "${lt_cv_ld_reload_flag+set}" = set; then
4443  echo $ECHO_N "(cached) $ECHO_C" >&6
4444else
4445  lt_cv_ld_reload_flag='-r'
4446fi
4447{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4448echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4449reload_flag=$lt_cv_ld_reload_flag
4450case $reload_flag in
4451"" | " "*) ;;
4452*) reload_flag=" $reload_flag" ;;
4453esac
4454reload_cmds='$LD$reload_flag -o $output$reload_objs'
4455case $host_os in
4456  darwin*)
4457    if test "$GCC" = yes; then
4458      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4459    else
4460      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4461    fi
4462    ;;
4463esac
4464
4465{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4466echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4467if test "${lt_cv_path_NM+set}" = set; then
4468  echo $ECHO_N "(cached) $ECHO_C" >&6
4469else
4470  if test -n "$NM"; then
4471  # Let the user override the test.
4472  lt_cv_path_NM="$NM"
4473else
4474  lt_nm_to_check="${ac_tool_prefix}nm"
4475  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4476    lt_nm_to_check="$lt_nm_to_check nm"
4477  fi
4478  for lt_tmp_nm in $lt_nm_to_check; do
4479    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4480    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4481      IFS="$lt_save_ifs"
4482      test -z "$ac_dir" && ac_dir=.
4483      tmp_nm="$ac_dir/$lt_tmp_nm"
4484      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4485	# Check to see if the nm accepts a BSD-compat flag.
4486	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4487	#   nm: unknown option "B" ignored
4488	# Tru64's nm complains that /dev/null is an invalid object file
4489	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4490	*/dev/null* | *'Invalid file or object type'*)
4491	  lt_cv_path_NM="$tmp_nm -B"
4492	  break
4493	  ;;
4494	*)
4495	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4496	  */dev/null*)
4497	    lt_cv_path_NM="$tmp_nm -p"
4498	    break
4499	    ;;
4500	  *)
4501	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4502	    continue # so that we can try to find one that supports BSD flags
4503	    ;;
4504	  esac
4505	  ;;
4506	esac
4507      fi
4508    done
4509    IFS="$lt_save_ifs"
4510  done
4511  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4512fi
4513fi
4514{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4515echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4516NM="$lt_cv_path_NM"
4517
4518{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4519echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4520LN_S=$as_ln_s
4521if test "$LN_S" = "ln -s"; then
4522  { echo "$as_me:$LINENO: result: yes" >&5
4523echo "${ECHO_T}yes" >&6; }
4524else
4525  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4526echo "${ECHO_T}no, using $LN_S" >&6; }
4527fi
4528
4529{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4530echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4531if test "${lt_cv_deplibs_check_method+set}" = set; then
4532  echo $ECHO_N "(cached) $ECHO_C" >&6
4533else
4534  lt_cv_file_magic_cmd='$MAGIC_CMD'
4535lt_cv_file_magic_test_file=
4536lt_cv_deplibs_check_method='unknown'
4537# Need to set the preceding variable on all platforms that support
4538# interlibrary dependencies.
4539# 'none' -- dependencies not supported.
4540# `unknown' -- same as none, but documents that we really don't know.
4541# 'pass_all' -- all dependencies passed with no checks.
4542# 'test_compile' -- check by making test program.
4543# 'file_magic [[regex]]' -- check by looking for files in library path
4544# which responds to the $file_magic_cmd with a given extended regex.
4545# If you have `file' or equivalent on your system and you're not sure
4546# whether `pass_all' will *always* work, you probably want this one.
4547
4548case $host_os in
4549aix4* | aix5*)
4550  lt_cv_deplibs_check_method=pass_all
4551  ;;
4552
4553beos*)
4554  lt_cv_deplibs_check_method=pass_all
4555  ;;
4556
4557bsdi[45]*)
4558  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4559  lt_cv_file_magic_cmd='/usr/bin/file -L'
4560  lt_cv_file_magic_test_file=/shlib/libc.so
4561  ;;
4562
4563cygwin*)
4564  # func_win32_libid is a shell function defined in ltmain.sh
4565  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4566  lt_cv_file_magic_cmd='func_win32_libid'
4567  ;;
4568
4569mingw* | pw32*)
4570  # Base MSYS/MinGW do not provide the 'file' command needed by
4571  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4572  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4573  lt_cv_file_magic_cmd='$OBJDUMP -f'
4574  ;;
4575
4576darwin* | rhapsody*)
4577  lt_cv_deplibs_check_method=pass_all
4578  ;;
4579
4580freebsd* | kfreebsd*-gnu | dragonfly*)
4581  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4582    case $host_cpu in
4583    i*86 )
4584      # Not sure whether the presence of OpenBSD here was a mistake.
4585      # Let's accept both of them until this is cleared up.
4586      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4587      lt_cv_file_magic_cmd=/usr/bin/file
4588      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4589      ;;
4590    esac
4591  else
4592    lt_cv_deplibs_check_method=pass_all
4593  fi
4594  ;;
4595
4596gnu*)
4597  lt_cv_deplibs_check_method=pass_all
4598  ;;
4599
4600hpux10.20* | hpux11*)
4601  lt_cv_file_magic_cmd=/usr/bin/file
4602  case $host_cpu in
4603  ia64*)
4604    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4605    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4606    ;;
4607  hppa*64*)
4608    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]'
4609    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4610    ;;
4611  *)
4612    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4613    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4614    ;;
4615  esac
4616  ;;
4617
4618interix3*)
4619  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4620  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4621  ;;
4622
4623irix5* | irix6* | nonstopux*)
4624  case $LD in
4625  *-32|*"-32 ") libmagic=32-bit;;
4626  *-n32|*"-n32 ") libmagic=N32;;
4627  *-64|*"-64 ") libmagic=64-bit;;
4628  *) libmagic=never-match;;
4629  esac
4630  lt_cv_deplibs_check_method=pass_all
4631  ;;
4632
4633# This must be Linux ELF.
4634linux*)
4635  lt_cv_deplibs_check_method=pass_all
4636  ;;
4637
4638netbsd*)
4639  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4640    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4641  else
4642    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4643  fi
4644  ;;
4645
4646newos6*)
4647  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4648  lt_cv_file_magic_cmd=/usr/bin/file
4649  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4650  ;;
4651
4652nto-qnx*)
4653  lt_cv_deplibs_check_method=unknown
4654  ;;
4655
4656openbsd*)
4657  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4658    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4659  else
4660    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4661  fi
4662  ;;
4663
4664osf3* | osf4* | osf5*)
4665  lt_cv_deplibs_check_method=pass_all
4666  ;;
4667
4668solaris*)
4669  lt_cv_deplibs_check_method=pass_all
4670  ;;
4671
4672sysv4 | sysv4.3*)
4673  case $host_vendor in
4674  motorola)
4675    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]'
4676    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4677    ;;
4678  ncr)
4679    lt_cv_deplibs_check_method=pass_all
4680    ;;
4681  sequent)
4682    lt_cv_file_magic_cmd='/bin/file'
4683    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4684    ;;
4685  sni)
4686    lt_cv_file_magic_cmd='/bin/file'
4687    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4688    lt_cv_file_magic_test_file=/lib/libc.so
4689    ;;
4690  siemens)
4691    lt_cv_deplibs_check_method=pass_all
4692    ;;
4693  pc)
4694    lt_cv_deplibs_check_method=pass_all
4695    ;;
4696  esac
4697  ;;
4698
4699sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4700  lt_cv_deplibs_check_method=pass_all
4701  ;;
4702esac
4703
4704fi
4705{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4706echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4707file_magic_cmd=$lt_cv_file_magic_cmd
4708deplibs_check_method=$lt_cv_deplibs_check_method
4709test -z "$deplibs_check_method" && deplibs_check_method=unknown
4710
4711
4712# If no C compiler was specified, use CC.
4713LTCC=${LTCC-"$CC"}
4714
4715# If no C compiler flags were specified, use CFLAGS.
4716LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4717
4718# Allow CC to be a program name with arguments.
4719compiler=$CC
4720
4721# Check whether --enable-libtool-lock was given.
4722if test "${enable_libtool_lock+set}" = set; then
4723  enableval=$enable_libtool_lock;
4724fi
4725
4726test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4727
4728# Some flags need to be propagated to the compiler or linker for good
4729# libtool support.
4730case $host in
4731ia64-*-hpux*)
4732  # Find out which ABI we are using.
4733  echo 'int i;' > conftest.$ac_ext
4734  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735  (eval $ac_compile) 2>&5
4736  ac_status=$?
4737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738  (exit $ac_status); }; then
4739    case `/usr/bin/file conftest.$ac_objext` in
4740    *ELF-32*)
4741      HPUX_IA64_MODE="32"
4742      ;;
4743    *ELF-64*)
4744      HPUX_IA64_MODE="64"
4745      ;;
4746    esac
4747  fi
4748  rm -rf conftest*
4749  ;;
4750*-*-irix6*)
4751  # Find out which ABI we are using.
4752  echo '#line 4752 "configure"' > conftest.$ac_ext
4753  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4754  (eval $ac_compile) 2>&5
4755  ac_status=$?
4756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757  (exit $ac_status); }; then
4758   if test "$lt_cv_prog_gnu_ld" = yes; then
4759    case `/usr/bin/file conftest.$ac_objext` in
4760    *32-bit*)
4761      LD="${LD-ld} -melf32bsmip"
4762      ;;
4763    *N32*)
4764      LD="${LD-ld} -melf32bmipn32"
4765      ;;
4766    *64-bit*)
4767      LD="${LD-ld} -melf64bmip"
4768      ;;
4769    esac
4770   else
4771    case `/usr/bin/file conftest.$ac_objext` in
4772    *32-bit*)
4773      LD="${LD-ld} -32"
4774      ;;
4775    *N32*)
4776      LD="${LD-ld} -n32"
4777      ;;
4778    *64-bit*)
4779      LD="${LD-ld} -64"
4780      ;;
4781    esac
4782   fi
4783  fi
4784  rm -rf conftest*
4785  ;;
4786
4787x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4788  # Find out which ABI we are using.
4789  echo 'int i;' > conftest.$ac_ext
4790  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4791  (eval $ac_compile) 2>&5
4792  ac_status=$?
4793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794  (exit $ac_status); }; then
4795    case `/usr/bin/file conftest.o` in
4796    *32-bit*)
4797      case $host in
4798        x86_64-*linux*)
4799          LD="${LD-ld} -m elf_i386"
4800          ;;
4801        ppc64-*linux*|powerpc64-*linux*)
4802          LD="${LD-ld} -m elf32ppclinux"
4803          ;;
4804        s390x-*linux*)
4805          LD="${LD-ld} -m elf_s390"
4806          ;;
4807        sparc64-*linux*)
4808          LD="${LD-ld} -m elf32_sparc"
4809          ;;
4810      esac
4811      ;;
4812    *64-bit*)
4813      case $host in
4814        x86_64-*linux*)
4815          LD="${LD-ld} -m elf_x86_64"
4816          ;;
4817        ppc*-*linux*|powerpc*-*linux*)
4818          LD="${LD-ld} -m elf64ppc"
4819          ;;
4820        s390*-*linux*)
4821          LD="${LD-ld} -m elf64_s390"
4822          ;;
4823        sparc*-*linux*)
4824          LD="${LD-ld} -m elf64_sparc"
4825          ;;
4826      esac
4827      ;;
4828    esac
4829  fi
4830  rm -rf conftest*
4831  ;;
4832
4833*-*-sco3.2v5*)
4834  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4835  SAVE_CFLAGS="$CFLAGS"
4836  CFLAGS="$CFLAGS -belf"
4837  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4838echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4839if test "${lt_cv_cc_needs_belf+set}" = set; then
4840  echo $ECHO_N "(cached) $ECHO_C" >&6
4841else
4842  ac_ext=c
4843ac_cpp='$CPP $CPPFLAGS'
4844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846ac_compiler_gnu=$ac_cv_c_compiler_gnu
4847
4848     cat >conftest.$ac_ext <<_ACEOF
4849/* confdefs.h.  */
4850_ACEOF
4851cat confdefs.h >>conftest.$ac_ext
4852cat >>conftest.$ac_ext <<_ACEOF
4853/* end confdefs.h.  */
4854
4855int
4856main ()
4857{
4858
4859  ;
4860  return 0;
4861}
4862_ACEOF
4863rm -f conftest.$ac_objext conftest$ac_exeext
4864if { (ac_try="$ac_link"
4865case "(($ac_try" in
4866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867  *) ac_try_echo=$ac_try;;
4868esac
4869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4870  (eval "$ac_link") 2>conftest.er1
4871  ac_status=$?
4872  grep -v '^ *+' conftest.er1 >conftest.err
4873  rm -f conftest.er1
4874  cat conftest.err >&5
4875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876  (exit $ac_status); } &&
4877	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4878  { (case "(($ac_try" in
4879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880  *) ac_try_echo=$ac_try;;
4881esac
4882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883  (eval "$ac_try") 2>&5
4884  ac_status=$?
4885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886  (exit $ac_status); }; } &&
4887	 { ac_try='test -s conftest$ac_exeext'
4888  { (case "(($ac_try" in
4889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890  *) ac_try_echo=$ac_try;;
4891esac
4892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893  (eval "$ac_try") 2>&5
4894  ac_status=$?
4895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896  (exit $ac_status); }; }; then
4897  lt_cv_cc_needs_belf=yes
4898else
4899  echo "$as_me: failed program was:" >&5
4900sed 's/^/| /' conftest.$ac_ext >&5
4901
4902	lt_cv_cc_needs_belf=no
4903fi
4904
4905rm -f core conftest.err conftest.$ac_objext \
4906      conftest$ac_exeext conftest.$ac_ext
4907     ac_ext=c
4908ac_cpp='$CPP $CPPFLAGS'
4909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911ac_compiler_gnu=$ac_cv_c_compiler_gnu
4912
4913fi
4914{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4915echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4916  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4917    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4918    CFLAGS="$SAVE_CFLAGS"
4919  fi
4920  ;;
4921sparc*-*solaris*)
4922  # Find out which ABI we are using.
4923  echo 'int i;' > conftest.$ac_ext
4924  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925  (eval $ac_compile) 2>&5
4926  ac_status=$?
4927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928  (exit $ac_status); }; then
4929    case `/usr/bin/file conftest.o` in
4930    *64-bit*)
4931      case $lt_cv_prog_gnu_ld in
4932      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4933      *)    LD="${LD-ld} -64" ;;
4934      esac
4935      ;;
4936    esac
4937  fi
4938  rm -rf conftest*
4939  ;;
4940
4941*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4942  if test -n "$ac_tool_prefix"; then
4943  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4944set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4947if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4948  echo $ECHO_N "(cached) $ECHO_C" >&6
4949else
4950  if test -n "$DLLTOOL"; then
4951  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4952else
4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956  IFS=$as_save_IFS
4957  test -z "$as_dir" && as_dir=.
4958  for ac_exec_ext in '' $ac_executable_extensions; do
4959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4960    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4961    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962    break 2
4963  fi
4964done
4965done
4966IFS=$as_save_IFS
4967
4968fi
4969fi
4970DLLTOOL=$ac_cv_prog_DLLTOOL
4971if test -n "$DLLTOOL"; then
4972  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4973echo "${ECHO_T}$DLLTOOL" >&6; }
4974else
4975  { echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6; }
4977fi
4978
4979
4980fi
4981if test -z "$ac_cv_prog_DLLTOOL"; then
4982  ac_ct_DLLTOOL=$DLLTOOL
4983  # Extract the first word of "dlltool", so it can be a program name with args.
4984set dummy dlltool; ac_word=$2
4985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4987if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4988  echo $ECHO_N "(cached) $ECHO_C" >&6
4989else
4990  if test -n "$ac_ct_DLLTOOL"; then
4991  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4992else
4993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH
4995do
4996  IFS=$as_save_IFS
4997  test -z "$as_dir" && as_dir=.
4998  for ac_exec_ext in '' $ac_executable_extensions; do
4999  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5000    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5001    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002    break 2
5003  fi
5004done
5005done
5006IFS=$as_save_IFS
5007
5008fi
5009fi
5010ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5011if test -n "$ac_ct_DLLTOOL"; then
5012  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5013echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5014else
5015  { echo "$as_me:$LINENO: result: no" >&5
5016echo "${ECHO_T}no" >&6; }
5017fi
5018
5019  if test "x$ac_ct_DLLTOOL" = x; then
5020    DLLTOOL="false"
5021  else
5022    case $cross_compiling:$ac_tool_warned in
5023yes:)
5024{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5025whose name does not start with the host triplet.  If you think this
5026configuration is useful to you, please write to autoconf@gnu.org." >&5
5027echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5028whose name does not start with the host triplet.  If you think this
5029configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5030ac_tool_warned=yes ;;
5031esac
5032    DLLTOOL=$ac_ct_DLLTOOL
5033  fi
5034else
5035  DLLTOOL="$ac_cv_prog_DLLTOOL"
5036fi
5037
5038  if test -n "$ac_tool_prefix"; then
5039  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5040set dummy ${ac_tool_prefix}as; ac_word=$2
5041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5043if test "${ac_cv_prog_AS+set}" = set; then
5044  echo $ECHO_N "(cached) $ECHO_C" >&6
5045else
5046  if test -n "$AS"; then
5047  ac_cv_prog_AS="$AS" # Let the user override the test.
5048else
5049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050for as_dir in $PATH
5051do
5052  IFS=$as_save_IFS
5053  test -z "$as_dir" && as_dir=.
5054  for ac_exec_ext in '' $ac_executable_extensions; do
5055  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5056    ac_cv_prog_AS="${ac_tool_prefix}as"
5057    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058    break 2
5059  fi
5060done
5061done
5062IFS=$as_save_IFS
5063
5064fi
5065fi
5066AS=$ac_cv_prog_AS
5067if test -n "$AS"; then
5068  { echo "$as_me:$LINENO: result: $AS" >&5
5069echo "${ECHO_T}$AS" >&6; }
5070else
5071  { echo "$as_me:$LINENO: result: no" >&5
5072echo "${ECHO_T}no" >&6; }
5073fi
5074
5075
5076fi
5077if test -z "$ac_cv_prog_AS"; then
5078  ac_ct_AS=$AS
5079  # Extract the first word of "as", so it can be a program name with args.
5080set dummy as; ac_word=$2
5081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5083if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5084  echo $ECHO_N "(cached) $ECHO_C" >&6
5085else
5086  if test -n "$ac_ct_AS"; then
5087  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5088else
5089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090for as_dir in $PATH
5091do
5092  IFS=$as_save_IFS
5093  test -z "$as_dir" && as_dir=.
5094  for ac_exec_ext in '' $ac_executable_extensions; do
5095  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5096    ac_cv_prog_ac_ct_AS="as"
5097    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098    break 2
5099  fi
5100done
5101done
5102IFS=$as_save_IFS
5103
5104fi
5105fi
5106ac_ct_AS=$ac_cv_prog_ac_ct_AS
5107if test -n "$ac_ct_AS"; then
5108  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5109echo "${ECHO_T}$ac_ct_AS" >&6; }
5110else
5111  { echo "$as_me:$LINENO: result: no" >&5
5112echo "${ECHO_T}no" >&6; }
5113fi
5114
5115  if test "x$ac_ct_AS" = x; then
5116    AS="false"
5117  else
5118    case $cross_compiling:$ac_tool_warned in
5119yes:)
5120{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5121whose name does not start with the host triplet.  If you think this
5122configuration is useful to you, please write to autoconf@gnu.org." >&5
5123echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5124whose name does not start with the host triplet.  If you think this
5125configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5126ac_tool_warned=yes ;;
5127esac
5128    AS=$ac_ct_AS
5129  fi
5130else
5131  AS="$ac_cv_prog_AS"
5132fi
5133
5134  if test -n "$ac_tool_prefix"; then
5135  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5136set dummy ${ac_tool_prefix}objdump; ac_word=$2
5137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5139if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5140  echo $ECHO_N "(cached) $ECHO_C" >&6
5141else
5142  if test -n "$OBJDUMP"; then
5143  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5144else
5145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146for as_dir in $PATH
5147do
5148  IFS=$as_save_IFS
5149  test -z "$as_dir" && as_dir=.
5150  for ac_exec_ext in '' $ac_executable_extensions; do
5151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5152    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5153    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5154    break 2
5155  fi
5156done
5157done
5158IFS=$as_save_IFS
5159
5160fi
5161fi
5162OBJDUMP=$ac_cv_prog_OBJDUMP
5163if test -n "$OBJDUMP"; then
5164  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5165echo "${ECHO_T}$OBJDUMP" >&6; }
5166else
5167  { echo "$as_me:$LINENO: result: no" >&5
5168echo "${ECHO_T}no" >&6; }
5169fi
5170
5171
5172fi
5173if test -z "$ac_cv_prog_OBJDUMP"; then
5174  ac_ct_OBJDUMP=$OBJDUMP
5175  # Extract the first word of "objdump", so it can be a program name with args.
5176set dummy objdump; ac_word=$2
5177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5179if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5180  echo $ECHO_N "(cached) $ECHO_C" >&6
5181else
5182  if test -n "$ac_ct_OBJDUMP"; then
5183  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5184else
5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188  IFS=$as_save_IFS
5189  test -z "$as_dir" && as_dir=.
5190  for ac_exec_ext in '' $ac_executable_extensions; do
5191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5192    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5193    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194    break 2
5195  fi
5196done
5197done
5198IFS=$as_save_IFS
5199
5200fi
5201fi
5202ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5203if test -n "$ac_ct_OBJDUMP"; then
5204  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5205echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5206else
5207  { echo "$as_me:$LINENO: result: no" >&5
5208echo "${ECHO_T}no" >&6; }
5209fi
5210
5211  if test "x$ac_ct_OBJDUMP" = x; then
5212    OBJDUMP="false"
5213  else
5214    case $cross_compiling:$ac_tool_warned in
5215yes:)
5216{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5217whose name does not start with the host triplet.  If you think this
5218configuration is useful to you, please write to autoconf@gnu.org." >&5
5219echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5220whose name does not start with the host triplet.  If you think this
5221configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5222ac_tool_warned=yes ;;
5223esac
5224    OBJDUMP=$ac_ct_OBJDUMP
5225  fi
5226else
5227  OBJDUMP="$ac_cv_prog_OBJDUMP"
5228fi
5229
5230  ;;
5231
5232esac
5233
5234need_locks="$enable_libtool_lock"
5235
5236
5237
5238for ac_header in dlfcn.h
5239do
5240as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5242  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5245  echo $ECHO_N "(cached) $ECHO_C" >&6
5246fi
5247ac_res=`eval echo '${'$as_ac_Header'}'`
5248	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5249echo "${ECHO_T}$ac_res" >&6; }
5250else
5251  # Is the header compilable?
5252{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5253echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5254cat >conftest.$ac_ext <<_ACEOF
5255/* confdefs.h.  */
5256_ACEOF
5257cat confdefs.h >>conftest.$ac_ext
5258cat >>conftest.$ac_ext <<_ACEOF
5259/* end confdefs.h.  */
5260$ac_includes_default
5261#include <$ac_header>
5262_ACEOF
5263rm -f conftest.$ac_objext
5264if { (ac_try="$ac_compile"
5265case "(($ac_try" in
5266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267  *) ac_try_echo=$ac_try;;
5268esac
5269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270  (eval "$ac_compile") 2>conftest.er1
5271  ac_status=$?
5272  grep -v '^ *+' conftest.er1 >conftest.err
5273  rm -f conftest.er1
5274  cat conftest.err >&5
5275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276  (exit $ac_status); } &&
5277	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5278  { (case "(($ac_try" in
5279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280  *) ac_try_echo=$ac_try;;
5281esac
5282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5283  (eval "$ac_try") 2>&5
5284  ac_status=$?
5285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286  (exit $ac_status); }; } &&
5287	 { ac_try='test -s conftest.$ac_objext'
5288  { (case "(($ac_try" in
5289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290  *) ac_try_echo=$ac_try;;
5291esac
5292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293  (eval "$ac_try") 2>&5
5294  ac_status=$?
5295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296  (exit $ac_status); }; }; then
5297  ac_header_compiler=yes
5298else
5299  echo "$as_me: failed program was:" >&5
5300sed 's/^/| /' conftest.$ac_ext >&5
5301
5302	ac_header_compiler=no
5303fi
5304
5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5307echo "${ECHO_T}$ac_header_compiler" >&6; }
5308
5309# Is the header present?
5310{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5311echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5312cat >conftest.$ac_ext <<_ACEOF
5313/* confdefs.h.  */
5314_ACEOF
5315cat confdefs.h >>conftest.$ac_ext
5316cat >>conftest.$ac_ext <<_ACEOF
5317/* end confdefs.h.  */
5318#include <$ac_header>
5319_ACEOF
5320if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
5327  ac_status=$?
5328  grep -v '^ *+' conftest.er1 >conftest.err
5329  rm -f conftest.er1
5330  cat conftest.err >&5
5331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332  (exit $ac_status); } >/dev/null; then
5333  if test -s conftest.err; then
5334    ac_cpp_err=$ac_c_preproc_warn_flag
5335    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5336  else
5337    ac_cpp_err=
5338  fi
5339else
5340  ac_cpp_err=yes
5341fi
5342if test -z "$ac_cpp_err"; then
5343  ac_header_preproc=yes
5344else
5345  echo "$as_me: failed program was:" >&5
5346sed 's/^/| /' conftest.$ac_ext >&5
5347
5348  ac_header_preproc=no
5349fi
5350
5351rm -f conftest.err conftest.$ac_ext
5352{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5353echo "${ECHO_T}$ac_header_preproc" >&6; }
5354
5355# So?  What about this header?
5356case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5357  yes:no: )
5358    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5359echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5360    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5361echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5362    ac_header_preproc=yes
5363    ;;
5364  no:yes:* )
5365    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5366echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5367    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5368echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5369    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5370echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5371    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5372echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5373    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5374echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5375    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5376echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5377
5378    ;;
5379esac
5380{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5383  echo $ECHO_N "(cached) $ECHO_C" >&6
5384else
5385  eval "$as_ac_Header=\$ac_header_preproc"
5386fi
5387ac_res=`eval echo '${'$as_ac_Header'}'`
5388	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5389echo "${ECHO_T}$ac_res" >&6; }
5390
5391fi
5392if test `eval echo '${'$as_ac_Header'}'` = yes; then
5393  cat >>confdefs.h <<_ACEOF
5394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5395_ACEOF
5396
5397fi
5398
5399done
5400
5401ac_ext=cpp
5402ac_cpp='$CXXCPP $CPPFLAGS'
5403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5406if test -z "$CXX"; then
5407  if test -n "$CCC"; then
5408    CXX=$CCC
5409  else
5410    if test -n "$ac_tool_prefix"; then
5411  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5412  do
5413    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5414set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5415{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5417if test "${ac_cv_prog_CXX+set}" = set; then
5418  echo $ECHO_N "(cached) $ECHO_C" >&6
5419else
5420  if test -n "$CXX"; then
5421  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5422else
5423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424for as_dir in $PATH
5425do
5426  IFS=$as_save_IFS
5427  test -z "$as_dir" && as_dir=.
5428  for ac_exec_ext in '' $ac_executable_extensions; do
5429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5430    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5431    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5432    break 2
5433  fi
5434done
5435done
5436IFS=$as_save_IFS
5437
5438fi
5439fi
5440CXX=$ac_cv_prog_CXX
5441if test -n "$CXX"; then
5442  { echo "$as_me:$LINENO: result: $CXX" >&5
5443echo "${ECHO_T}$CXX" >&6; }
5444else
5445  { echo "$as_me:$LINENO: result: no" >&5
5446echo "${ECHO_T}no" >&6; }
5447fi
5448
5449
5450    test -n "$CXX" && break
5451  done
5452fi
5453if test -z "$CXX"; then
5454  ac_ct_CXX=$CXX
5455  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5456do
5457  # Extract the first word of "$ac_prog", so it can be a program name with args.
5458set dummy $ac_prog; ac_word=$2
5459{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5461if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5462  echo $ECHO_N "(cached) $ECHO_C" >&6
5463else
5464  if test -n "$ac_ct_CXX"; then
5465  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5466else
5467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468for as_dir in $PATH
5469do
5470  IFS=$as_save_IFS
5471  test -z "$as_dir" && as_dir=.
5472  for ac_exec_ext in '' $ac_executable_extensions; do
5473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5474    ac_cv_prog_ac_ct_CXX="$ac_prog"
5475    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5476    break 2
5477  fi
5478done
5479done
5480IFS=$as_save_IFS
5481
5482fi
5483fi
5484ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5485if test -n "$ac_ct_CXX"; then
5486  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5487echo "${ECHO_T}$ac_ct_CXX" >&6; }
5488else
5489  { echo "$as_me:$LINENO: result: no" >&5
5490echo "${ECHO_T}no" >&6; }
5491fi
5492
5493
5494  test -n "$ac_ct_CXX" && break
5495done
5496
5497  if test "x$ac_ct_CXX" = x; then
5498    CXX="g++"
5499  else
5500    case $cross_compiling:$ac_tool_warned in
5501yes:)
5502{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5503whose name does not start with the host triplet.  If you think this
5504configuration is useful to you, please write to autoconf@gnu.org." >&5
5505echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5506whose name does not start with the host triplet.  If you think this
5507configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5508ac_tool_warned=yes ;;
5509esac
5510    CXX=$ac_ct_CXX
5511  fi
5512fi
5513
5514  fi
5515fi
5516# Provide some information about the compiler.
5517echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5518ac_compiler=`set X $ac_compile; echo $2`
5519{ (ac_try="$ac_compiler --version >&5"
5520case "(($ac_try" in
5521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522  *) ac_try_echo=$ac_try;;
5523esac
5524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525  (eval "$ac_compiler --version >&5") 2>&5
5526  ac_status=$?
5527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528  (exit $ac_status); }
5529{ (ac_try="$ac_compiler -v >&5"
5530case "(($ac_try" in
5531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532  *) ac_try_echo=$ac_try;;
5533esac
5534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535  (eval "$ac_compiler -v >&5") 2>&5
5536  ac_status=$?
5537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538  (exit $ac_status); }
5539{ (ac_try="$ac_compiler -V >&5"
5540case "(($ac_try" in
5541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542  *) ac_try_echo=$ac_try;;
5543esac
5544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545  (eval "$ac_compiler -V >&5") 2>&5
5546  ac_status=$?
5547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548  (exit $ac_status); }
5549
5550{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5551echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5552if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5553  echo $ECHO_N "(cached) $ECHO_C" >&6
5554else
5555  cat >conftest.$ac_ext <<_ACEOF
5556/* confdefs.h.  */
5557_ACEOF
5558cat confdefs.h >>conftest.$ac_ext
5559cat >>conftest.$ac_ext <<_ACEOF
5560/* end confdefs.h.  */
5561
5562int
5563main ()
5564{
5565#ifndef __GNUC__
5566       choke me
5567#endif
5568
5569  ;
5570  return 0;
5571}
5572_ACEOF
5573rm -f conftest.$ac_objext
5574if { (ac_try="$ac_compile"
5575case "(($ac_try" in
5576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577  *) ac_try_echo=$ac_try;;
5578esac
5579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580  (eval "$ac_compile") 2>conftest.er1
5581  ac_status=$?
5582  grep -v '^ *+' conftest.er1 >conftest.err
5583  rm -f conftest.er1
5584  cat conftest.err >&5
5585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586  (exit $ac_status); } &&
5587	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5588  { (case "(($ac_try" in
5589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590  *) ac_try_echo=$ac_try;;
5591esac
5592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593  (eval "$ac_try") 2>&5
5594  ac_status=$?
5595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596  (exit $ac_status); }; } &&
5597	 { ac_try='test -s conftest.$ac_objext'
5598  { (case "(($ac_try" in
5599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600  *) ac_try_echo=$ac_try;;
5601esac
5602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603  (eval "$ac_try") 2>&5
5604  ac_status=$?
5605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606  (exit $ac_status); }; }; then
5607  ac_compiler_gnu=yes
5608else
5609  echo "$as_me: failed program was:" >&5
5610sed 's/^/| /' conftest.$ac_ext >&5
5611
5612	ac_compiler_gnu=no
5613fi
5614
5615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5617
5618fi
5619{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5620echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5621GXX=`test $ac_compiler_gnu = yes && echo yes`
5622ac_test_CXXFLAGS=${CXXFLAGS+set}
5623ac_save_CXXFLAGS=$CXXFLAGS
5624{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5625echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5626if test "${ac_cv_prog_cxx_g+set}" = set; then
5627  echo $ECHO_N "(cached) $ECHO_C" >&6
5628else
5629  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5630   ac_cxx_werror_flag=yes
5631   ac_cv_prog_cxx_g=no
5632   CXXFLAGS="-g"
5633   cat >conftest.$ac_ext <<_ACEOF
5634/* confdefs.h.  */
5635_ACEOF
5636cat confdefs.h >>conftest.$ac_ext
5637cat >>conftest.$ac_ext <<_ACEOF
5638/* end confdefs.h.  */
5639
5640int
5641main ()
5642{
5643
5644  ;
5645  return 0;
5646}
5647_ACEOF
5648rm -f conftest.$ac_objext
5649if { (ac_try="$ac_compile"
5650case "(($ac_try" in
5651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652  *) ac_try_echo=$ac_try;;
5653esac
5654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655  (eval "$ac_compile") 2>conftest.er1
5656  ac_status=$?
5657  grep -v '^ *+' conftest.er1 >conftest.err
5658  rm -f conftest.er1
5659  cat conftest.err >&5
5660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661  (exit $ac_status); } &&
5662	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5663  { (case "(($ac_try" in
5664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665  *) ac_try_echo=$ac_try;;
5666esac
5667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668  (eval "$ac_try") 2>&5
5669  ac_status=$?
5670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671  (exit $ac_status); }; } &&
5672	 { ac_try='test -s conftest.$ac_objext'
5673  { (case "(($ac_try" in
5674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675  *) ac_try_echo=$ac_try;;
5676esac
5677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678  (eval "$ac_try") 2>&5
5679  ac_status=$?
5680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681  (exit $ac_status); }; }; then
5682  ac_cv_prog_cxx_g=yes
5683else
5684  echo "$as_me: failed program was:" >&5
5685sed 's/^/| /' conftest.$ac_ext >&5
5686
5687	CXXFLAGS=""
5688      cat >conftest.$ac_ext <<_ACEOF
5689/* confdefs.h.  */
5690_ACEOF
5691cat confdefs.h >>conftest.$ac_ext
5692cat >>conftest.$ac_ext <<_ACEOF
5693/* end confdefs.h.  */
5694
5695int
5696main ()
5697{
5698
5699  ;
5700  return 0;
5701}
5702_ACEOF
5703rm -f conftest.$ac_objext
5704if { (ac_try="$ac_compile"
5705case "(($ac_try" in
5706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707  *) ac_try_echo=$ac_try;;
5708esac
5709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710  (eval "$ac_compile") 2>conftest.er1
5711  ac_status=$?
5712  grep -v '^ *+' conftest.er1 >conftest.err
5713  rm -f conftest.er1
5714  cat conftest.err >&5
5715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716  (exit $ac_status); } &&
5717	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5718  { (case "(($ac_try" in
5719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720  *) ac_try_echo=$ac_try;;
5721esac
5722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723  (eval "$ac_try") 2>&5
5724  ac_status=$?
5725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726  (exit $ac_status); }; } &&
5727	 { ac_try='test -s conftest.$ac_objext'
5728  { (case "(($ac_try" in
5729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730  *) ac_try_echo=$ac_try;;
5731esac
5732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733  (eval "$ac_try") 2>&5
5734  ac_status=$?
5735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736  (exit $ac_status); }; }; then
5737  :
5738else
5739  echo "$as_me: failed program was:" >&5
5740sed 's/^/| /' conftest.$ac_ext >&5
5741
5742	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5743	 CXXFLAGS="-g"
5744	 cat >conftest.$ac_ext <<_ACEOF
5745/* confdefs.h.  */
5746_ACEOF
5747cat confdefs.h >>conftest.$ac_ext
5748cat >>conftest.$ac_ext <<_ACEOF
5749/* end confdefs.h.  */
5750
5751int
5752main ()
5753{
5754
5755  ;
5756  return 0;
5757}
5758_ACEOF
5759rm -f conftest.$ac_objext
5760if { (ac_try="$ac_compile"
5761case "(($ac_try" in
5762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763  *) ac_try_echo=$ac_try;;
5764esac
5765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766  (eval "$ac_compile") 2>conftest.er1
5767  ac_status=$?
5768  grep -v '^ *+' conftest.er1 >conftest.err
5769  rm -f conftest.er1
5770  cat conftest.err >&5
5771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772  (exit $ac_status); } &&
5773	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5774  { (case "(($ac_try" in
5775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776  *) ac_try_echo=$ac_try;;
5777esac
5778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779  (eval "$ac_try") 2>&5
5780  ac_status=$?
5781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782  (exit $ac_status); }; } &&
5783	 { ac_try='test -s conftest.$ac_objext'
5784  { (case "(($ac_try" in
5785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786  *) ac_try_echo=$ac_try;;
5787esac
5788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789  (eval "$ac_try") 2>&5
5790  ac_status=$?
5791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792  (exit $ac_status); }; }; then
5793  ac_cv_prog_cxx_g=yes
5794else
5795  echo "$as_me: failed program was:" >&5
5796sed 's/^/| /' conftest.$ac_ext >&5
5797
5798
5799fi
5800
5801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5802fi
5803
5804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805fi
5806
5807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5809fi
5810{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5811echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5812if test "$ac_test_CXXFLAGS" = set; then
5813  CXXFLAGS=$ac_save_CXXFLAGS
5814elif test $ac_cv_prog_cxx_g = yes; then
5815  if test "$GXX" = yes; then
5816    CXXFLAGS="-g -O2"
5817  else
5818    CXXFLAGS="-g"
5819  fi
5820else
5821  if test "$GXX" = yes; then
5822    CXXFLAGS="-O2"
5823  else
5824    CXXFLAGS=
5825  fi
5826fi
5827ac_ext=cpp
5828ac_cpp='$CXXCPP $CPPFLAGS'
5829ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5830ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5831ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5832
5833
5834
5835if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5836    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5837    (test "X$CXX" != "Xg++"))) ; then
5838  ac_ext=cpp
5839ac_cpp='$CXXCPP $CPPFLAGS'
5840ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5843{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5844echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5845if test -z "$CXXCPP"; then
5846  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5847  echo $ECHO_N "(cached) $ECHO_C" >&6
5848else
5849      # Double quotes because CXXCPP needs to be expanded
5850    for CXXCPP in "$CXX -E" "/lib/cpp"
5851    do
5852      ac_preproc_ok=false
5853for ac_cxx_preproc_warn_flag in '' yes
5854do
5855  # Use a header file that comes with gcc, so configuring glibc
5856  # with a fresh cross-compiler works.
5857  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5858  # <limits.h> exists even on freestanding compilers.
5859  # On the NeXT, cc -E runs the code through the compiler's parser,
5860  # not just through cpp. "Syntax error" is here to catch this case.
5861  cat >conftest.$ac_ext <<_ACEOF
5862/* confdefs.h.  */
5863_ACEOF
5864cat confdefs.h >>conftest.$ac_ext
5865cat >>conftest.$ac_ext <<_ACEOF
5866/* end confdefs.h.  */
5867#ifdef __STDC__
5868# include <limits.h>
5869#else
5870# include <assert.h>
5871#endif
5872		     Syntax error
5873_ACEOF
5874if { (ac_try="$ac_cpp conftest.$ac_ext"
5875case "(($ac_try" in
5876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877  *) ac_try_echo=$ac_try;;
5878esac
5879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5881  ac_status=$?
5882  grep -v '^ *+' conftest.er1 >conftest.err
5883  rm -f conftest.er1
5884  cat conftest.err >&5
5885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886  (exit $ac_status); } >/dev/null; then
5887  if test -s conftest.err; then
5888    ac_cpp_err=$ac_cxx_preproc_warn_flag
5889    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5890  else
5891    ac_cpp_err=
5892  fi
5893else
5894  ac_cpp_err=yes
5895fi
5896if test -z "$ac_cpp_err"; then
5897  :
5898else
5899  echo "$as_me: failed program was:" >&5
5900sed 's/^/| /' conftest.$ac_ext >&5
5901
5902  # Broken: fails on valid input.
5903continue
5904fi
5905
5906rm -f conftest.err conftest.$ac_ext
5907
5908  # OK, works on sane cases.  Now check whether nonexistent headers
5909  # can be detected and how.
5910  cat >conftest.$ac_ext <<_ACEOF
5911/* confdefs.h.  */
5912_ACEOF
5913cat confdefs.h >>conftest.$ac_ext
5914cat >>conftest.$ac_ext <<_ACEOF
5915/* end confdefs.h.  */
5916#include <ac_nonexistent.h>
5917_ACEOF
5918if { (ac_try="$ac_cpp conftest.$ac_ext"
5919case "(($ac_try" in
5920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921  *) ac_try_echo=$ac_try;;
5922esac
5923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5925  ac_status=$?
5926  grep -v '^ *+' conftest.er1 >conftest.err
5927  rm -f conftest.er1
5928  cat conftest.err >&5
5929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930  (exit $ac_status); } >/dev/null; then
5931  if test -s conftest.err; then
5932    ac_cpp_err=$ac_cxx_preproc_warn_flag
5933    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5934  else
5935    ac_cpp_err=
5936  fi
5937else
5938  ac_cpp_err=yes
5939fi
5940if test -z "$ac_cpp_err"; then
5941  # Broken: success on invalid input.
5942continue
5943else
5944  echo "$as_me: failed program was:" >&5
5945sed 's/^/| /' conftest.$ac_ext >&5
5946
5947  # Passes both tests.
5948ac_preproc_ok=:
5949break
5950fi
5951
5952rm -f conftest.err conftest.$ac_ext
5953
5954done
5955# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5956rm -f conftest.err conftest.$ac_ext
5957if $ac_preproc_ok; then
5958  break
5959fi
5960
5961    done
5962    ac_cv_prog_CXXCPP=$CXXCPP
5963
5964fi
5965  CXXCPP=$ac_cv_prog_CXXCPP
5966else
5967  ac_cv_prog_CXXCPP=$CXXCPP
5968fi
5969{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5970echo "${ECHO_T}$CXXCPP" >&6; }
5971ac_preproc_ok=false
5972for ac_cxx_preproc_warn_flag in '' yes
5973do
5974  # Use a header file that comes with gcc, so configuring glibc
5975  # with a fresh cross-compiler works.
5976  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5977  # <limits.h> exists even on freestanding compilers.
5978  # On the NeXT, cc -E runs the code through the compiler's parser,
5979  # not just through cpp. "Syntax error" is here to catch this case.
5980  cat >conftest.$ac_ext <<_ACEOF
5981/* confdefs.h.  */
5982_ACEOF
5983cat confdefs.h >>conftest.$ac_ext
5984cat >>conftest.$ac_ext <<_ACEOF
5985/* end confdefs.h.  */
5986#ifdef __STDC__
5987# include <limits.h>
5988#else
5989# include <assert.h>
5990#endif
5991		     Syntax error
5992_ACEOF
5993if { (ac_try="$ac_cpp conftest.$ac_ext"
5994case "(($ac_try" in
5995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996  *) ac_try_echo=$ac_try;;
5997esac
5998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6000  ac_status=$?
6001  grep -v '^ *+' conftest.er1 >conftest.err
6002  rm -f conftest.er1
6003  cat conftest.err >&5
6004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005  (exit $ac_status); } >/dev/null; then
6006  if test -s conftest.err; then
6007    ac_cpp_err=$ac_cxx_preproc_warn_flag
6008    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6009  else
6010    ac_cpp_err=
6011  fi
6012else
6013  ac_cpp_err=yes
6014fi
6015if test -z "$ac_cpp_err"; then
6016  :
6017else
6018  echo "$as_me: failed program was:" >&5
6019sed 's/^/| /' conftest.$ac_ext >&5
6020
6021  # Broken: fails on valid input.
6022continue
6023fi
6024
6025rm -f conftest.err conftest.$ac_ext
6026
6027  # OK, works on sane cases.  Now check whether nonexistent headers
6028  # can be detected and how.
6029  cat >conftest.$ac_ext <<_ACEOF
6030/* confdefs.h.  */
6031_ACEOF
6032cat confdefs.h >>conftest.$ac_ext
6033cat >>conftest.$ac_ext <<_ACEOF
6034/* end confdefs.h.  */
6035#include <ac_nonexistent.h>
6036_ACEOF
6037if { (ac_try="$ac_cpp conftest.$ac_ext"
6038case "(($ac_try" in
6039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040  *) ac_try_echo=$ac_try;;
6041esac
6042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6043  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6044  ac_status=$?
6045  grep -v '^ *+' conftest.er1 >conftest.err
6046  rm -f conftest.er1
6047  cat conftest.err >&5
6048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049  (exit $ac_status); } >/dev/null; then
6050  if test -s conftest.err; then
6051    ac_cpp_err=$ac_cxx_preproc_warn_flag
6052    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6053  else
6054    ac_cpp_err=
6055  fi
6056else
6057  ac_cpp_err=yes
6058fi
6059if test -z "$ac_cpp_err"; then
6060  # Broken: success on invalid input.
6061continue
6062else
6063  echo "$as_me: failed program was:" >&5
6064sed 's/^/| /' conftest.$ac_ext >&5
6065
6066  # Passes both tests.
6067ac_preproc_ok=:
6068break
6069fi
6070
6071rm -f conftest.err conftest.$ac_ext
6072
6073done
6074# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6075rm -f conftest.err conftest.$ac_ext
6076if $ac_preproc_ok; then
6077  :
6078else
6079  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6080See \`config.log' for more details." >&5
6081echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6082See \`config.log' for more details." >&2;}
6083   { (exit 1); exit 1; }; }
6084fi
6085
6086ac_ext=cpp
6087ac_cpp='$CXXCPP $CPPFLAGS'
6088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6091
6092fi
6093
6094
6095ac_ext=f
6096ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6097ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6099if test -n "$ac_tool_prefix"; then
6100  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6101  do
6102    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6103set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6104{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6106if test "${ac_cv_prog_F77+set}" = set; then
6107  echo $ECHO_N "(cached) $ECHO_C" >&6
6108else
6109  if test -n "$F77"; then
6110  ac_cv_prog_F77="$F77" # Let the user override the test.
6111else
6112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113for as_dir in $PATH
6114do
6115  IFS=$as_save_IFS
6116  test -z "$as_dir" && as_dir=.
6117  for ac_exec_ext in '' $ac_executable_extensions; do
6118  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6119    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6120    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121    break 2
6122  fi
6123done
6124done
6125IFS=$as_save_IFS
6126
6127fi
6128fi
6129F77=$ac_cv_prog_F77
6130if test -n "$F77"; then
6131  { echo "$as_me:$LINENO: result: $F77" >&5
6132echo "${ECHO_T}$F77" >&6; }
6133else
6134  { echo "$as_me:$LINENO: result: no" >&5
6135echo "${ECHO_T}no" >&6; }
6136fi
6137
6138
6139    test -n "$F77" && break
6140  done
6141fi
6142if test -z "$F77"; then
6143  ac_ct_F77=$F77
6144  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6145do
6146  # Extract the first word of "$ac_prog", so it can be a program name with args.
6147set dummy $ac_prog; ac_word=$2
6148{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6151  echo $ECHO_N "(cached) $ECHO_C" >&6
6152else
6153  if test -n "$ac_ct_F77"; then
6154  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6155else
6156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157for as_dir in $PATH
6158do
6159  IFS=$as_save_IFS
6160  test -z "$as_dir" && as_dir=.
6161  for ac_exec_ext in '' $ac_executable_extensions; do
6162  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6163    ac_cv_prog_ac_ct_F77="$ac_prog"
6164    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165    break 2
6166  fi
6167done
6168done
6169IFS=$as_save_IFS
6170
6171fi
6172fi
6173ac_ct_F77=$ac_cv_prog_ac_ct_F77
6174if test -n "$ac_ct_F77"; then
6175  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6176echo "${ECHO_T}$ac_ct_F77" >&6; }
6177else
6178  { echo "$as_me:$LINENO: result: no" >&5
6179echo "${ECHO_T}no" >&6; }
6180fi
6181
6182
6183  test -n "$ac_ct_F77" && break
6184done
6185
6186  if test "x$ac_ct_F77" = x; then
6187    F77=""
6188  else
6189    case $cross_compiling:$ac_tool_warned in
6190yes:)
6191{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6192whose name does not start with the host triplet.  If you think this
6193configuration is useful to you, please write to autoconf@gnu.org." >&5
6194echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6195whose name does not start with the host triplet.  If you think this
6196configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6197ac_tool_warned=yes ;;
6198esac
6199    F77=$ac_ct_F77
6200  fi
6201fi
6202
6203
6204# Provide some information about the compiler.
6205echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6206ac_compiler=`set X $ac_compile; echo $2`
6207{ (ac_try="$ac_compiler --version >&5"
6208case "(($ac_try" in
6209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210  *) ac_try_echo=$ac_try;;
6211esac
6212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213  (eval "$ac_compiler --version >&5") 2>&5
6214  ac_status=$?
6215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216  (exit $ac_status); }
6217{ (ac_try="$ac_compiler -v >&5"
6218case "(($ac_try" in
6219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220  *) ac_try_echo=$ac_try;;
6221esac
6222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223  (eval "$ac_compiler -v >&5") 2>&5
6224  ac_status=$?
6225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226  (exit $ac_status); }
6227{ (ac_try="$ac_compiler -V >&5"
6228case "(($ac_try" in
6229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230  *) ac_try_echo=$ac_try;;
6231esac
6232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233  (eval "$ac_compiler -V >&5") 2>&5
6234  ac_status=$?
6235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236  (exit $ac_status); }
6237rm -f a.out
6238
6239# If we don't use `.F' as extension, the preprocessor is not run on the
6240# input file.  (Note that this only needs to work for GNU compilers.)
6241ac_save_ext=$ac_ext
6242ac_ext=F
6243{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6244echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6245if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6246  echo $ECHO_N "(cached) $ECHO_C" >&6
6247else
6248  cat >conftest.$ac_ext <<_ACEOF
6249      program main
6250#ifndef __GNUC__
6251       choke me
6252#endif
6253
6254      end
6255_ACEOF
6256rm -f conftest.$ac_objext
6257if { (ac_try="$ac_compile"
6258case "(($ac_try" in
6259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260  *) ac_try_echo=$ac_try;;
6261esac
6262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263  (eval "$ac_compile") 2>conftest.er1
6264  ac_status=$?
6265  grep -v '^ *+' conftest.er1 >conftest.err
6266  rm -f conftest.er1
6267  cat conftest.err >&5
6268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269  (exit $ac_status); } &&
6270	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6271  { (case "(($ac_try" in
6272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273  *) ac_try_echo=$ac_try;;
6274esac
6275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6276  (eval "$ac_try") 2>&5
6277  ac_status=$?
6278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279  (exit $ac_status); }; } &&
6280	 { ac_try='test -s conftest.$ac_objext'
6281  { (case "(($ac_try" in
6282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283  *) ac_try_echo=$ac_try;;
6284esac
6285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286  (eval "$ac_try") 2>&5
6287  ac_status=$?
6288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289  (exit $ac_status); }; }; then
6290  ac_compiler_gnu=yes
6291else
6292  echo "$as_me: failed program was:" >&5
6293sed 's/^/| /' conftest.$ac_ext >&5
6294
6295	ac_compiler_gnu=no
6296fi
6297
6298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6299ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6300
6301fi
6302{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6303echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6304ac_ext=$ac_save_ext
6305ac_test_FFLAGS=${FFLAGS+set}
6306ac_save_FFLAGS=$FFLAGS
6307FFLAGS=
6308{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6309echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6310if test "${ac_cv_prog_f77_g+set}" = set; then
6311  echo $ECHO_N "(cached) $ECHO_C" >&6
6312else
6313  FFLAGS=-g
6314cat >conftest.$ac_ext <<_ACEOF
6315      program main
6316
6317      end
6318_ACEOF
6319rm -f conftest.$ac_objext
6320if { (ac_try="$ac_compile"
6321case "(($ac_try" in
6322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323  *) ac_try_echo=$ac_try;;
6324esac
6325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6326  (eval "$ac_compile") 2>conftest.er1
6327  ac_status=$?
6328  grep -v '^ *+' conftest.er1 >conftest.err
6329  rm -f conftest.er1
6330  cat conftest.err >&5
6331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332  (exit $ac_status); } &&
6333	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6334  { (case "(($ac_try" in
6335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336  *) ac_try_echo=$ac_try;;
6337esac
6338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339  (eval "$ac_try") 2>&5
6340  ac_status=$?
6341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342  (exit $ac_status); }; } &&
6343	 { ac_try='test -s conftest.$ac_objext'
6344  { (case "(($ac_try" in
6345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346  *) ac_try_echo=$ac_try;;
6347esac
6348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349  (eval "$ac_try") 2>&5
6350  ac_status=$?
6351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352  (exit $ac_status); }; }; then
6353  ac_cv_prog_f77_g=yes
6354else
6355  echo "$as_me: failed program was:" >&5
6356sed 's/^/| /' conftest.$ac_ext >&5
6357
6358	ac_cv_prog_f77_g=no
6359fi
6360
6361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362
6363fi
6364{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6365echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6366if test "$ac_test_FFLAGS" = set; then
6367  FFLAGS=$ac_save_FFLAGS
6368elif test $ac_cv_prog_f77_g = yes; then
6369  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6370    FFLAGS="-g -O2"
6371  else
6372    FFLAGS="-g"
6373  fi
6374else
6375  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6376    FFLAGS="-O2"
6377  else
6378    FFLAGS=
6379  fi
6380fi
6381
6382G77=`test $ac_compiler_gnu = yes && echo yes`
6383ac_ext=c
6384ac_cpp='$CPP $CPPFLAGS'
6385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387ac_compiler_gnu=$ac_cv_c_compiler_gnu
6388
6389
6390
6391# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6392
6393# find the maximum length of command line arguments
6394{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6395echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6396if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6397  echo $ECHO_N "(cached) $ECHO_C" >&6
6398else
6399    i=0
6400  teststring="ABCD"
6401
6402  case $build_os in
6403  msdosdjgpp*)
6404    # On DJGPP, this test can blow up pretty badly due to problems in libc
6405    # (any single argument exceeding 2000 bytes causes a buffer overrun
6406    # during glob expansion).  Even if it were fixed, the result of this
6407    # check would be larger than it should be.
6408    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6409    ;;
6410
6411  gnu*)
6412    # Under GNU Hurd, this test is not required because there is
6413    # no limit to the length of command line arguments.
6414    # Libtool will interpret -1 as no limit whatsoever
6415    lt_cv_sys_max_cmd_len=-1;
6416    ;;
6417
6418  cygwin* | mingw*)
6419    # On Win9x/ME, this test blows up -- it succeeds, but takes
6420    # about 5 minutes as the teststring grows exponentially.
6421    # Worse, since 9x/ME are not pre-emptively multitasking,
6422    # you end up with a "frozen" computer, even though with patience
6423    # the test eventually succeeds (with a max line length of 256k).
6424    # Instead, let's just punt: use the minimum linelength reported by
6425    # all of the supported platforms: 8192 (on NT/2K/XP).
6426    lt_cv_sys_max_cmd_len=8192;
6427    ;;
6428
6429  amigaos*)
6430    # On AmigaOS with pdksh, this test takes hours, literally.
6431    # So we just punt and use a minimum line length of 8192.
6432    lt_cv_sys_max_cmd_len=8192;
6433    ;;
6434
6435  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6436    # This has been around since 386BSD, at least.  Likely further.
6437    if test -x /sbin/sysctl; then
6438      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6439    elif test -x /usr/sbin/sysctl; then
6440      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6441    else
6442      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6443    fi
6444    # And add a safety zone
6445    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6446    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6447    ;;
6448
6449  interix*)
6450    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6451    lt_cv_sys_max_cmd_len=196608
6452    ;;
6453
6454  osf*)
6455    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6456    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6457    # nice to cause kernel panics so lets avoid the loop below.
6458    # First set a reasonable default.
6459    lt_cv_sys_max_cmd_len=16384
6460    #
6461    if test -x /sbin/sysconfig; then
6462      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6463        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6464      esac
6465    fi
6466    ;;
6467  sco3.2v5*)
6468    lt_cv_sys_max_cmd_len=102400
6469    ;;
6470  sysv5* | sco5v6* | sysv4.2uw2*)
6471    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6472    if test -n "$kargmax"; then
6473      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6474    else
6475      lt_cv_sys_max_cmd_len=32768
6476    fi
6477    ;;
6478  *)
6479    # If test is not a shell built-in, we'll probably end up computing a
6480    # maximum length that is only half of the actual maximum length, but
6481    # we can't tell.
6482    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6483    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6484	       = "XX$teststring") >/dev/null 2>&1 &&
6485	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6486	    lt_cv_sys_max_cmd_len=$new_result &&
6487	    test $i != 17 # 1/2 MB should be enough
6488    do
6489      i=`expr $i + 1`
6490      teststring=$teststring$teststring
6491    done
6492    teststring=
6493    # Add a significant safety factor because C++ compilers can tack on massive
6494    # amounts of additional arguments before passing them to the linker.
6495    # It appears as though 1/2 is a usable value.
6496    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6497    ;;
6498  esac
6499
6500fi
6501
6502if test -n $lt_cv_sys_max_cmd_len ; then
6503  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6504echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6505else
6506  { echo "$as_me:$LINENO: result: none" >&5
6507echo "${ECHO_T}none" >&6; }
6508fi
6509
6510
6511
6512
6513# Check for command to grab the raw symbol name followed by C symbol from nm.
6514{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6515echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6516if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6517  echo $ECHO_N "(cached) $ECHO_C" >&6
6518else
6519
6520# These are sane defaults that work on at least a few old systems.
6521# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6522
6523# Character class describing NM global symbol codes.
6524symcode='[BCDEGRST]'
6525
6526# Regexp to match symbols that can be accessed directly from C.
6527sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6528
6529# Transform an extracted symbol line into a proper C declaration
6530lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6531
6532# Transform an extracted symbol line into symbol name and symbol address
6533lt_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'"
6534
6535# Define system-specific variables.
6536case $host_os in
6537aix*)
6538  symcode='[BCDT]'
6539  ;;
6540cygwin* | mingw* | pw32*)
6541  symcode='[ABCDGISTW]'
6542  ;;
6543hpux*) # Its linker distinguishes data from code symbols
6544  if test "$host_cpu" = ia64; then
6545    symcode='[ABCDEGRST]'
6546  fi
6547  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6548  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'"
6549  ;;
6550linux*)
6551  if test "$host_cpu" = ia64; then
6552    symcode='[ABCDGIRSTW]'
6553    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6554    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'"
6555  fi
6556  ;;
6557irix* | nonstopux*)
6558  symcode='[BCDEGRST]'
6559  ;;
6560osf*)
6561  symcode='[BCDEGQRST]'
6562  ;;
6563solaris*)
6564  symcode='[BDRT]'
6565  ;;
6566sco3.2v5*)
6567  symcode='[DT]'
6568  ;;
6569sysv4.2uw2*)
6570  symcode='[DT]'
6571  ;;
6572sysv5* | sco5v6* | unixware* | OpenUNIX*)
6573  symcode='[ABDT]'
6574  ;;
6575sysv4)
6576  symcode='[DFNSTU]'
6577  ;;
6578esac
6579
6580# Handle CRLF in mingw tool chain
6581opt_cr=
6582case $build_os in
6583mingw*)
6584  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6585  ;;
6586esac
6587
6588# If we're using GNU nm, then use its standard symbol codes.
6589case `$NM -V 2>&1` in
6590*GNU* | *'with BFD'*)
6591  symcode='[ABCDGIRSTW]' ;;
6592esac
6593
6594# Try without a prefix undercore, then with it.
6595for ac_symprfx in "" "_"; do
6596
6597  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6598  symxfrm="\\1 $ac_symprfx\\2 \\2"
6599
6600  # Write the raw and C identifiers.
6601  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6602
6603  # Check to see that the pipe works correctly.
6604  pipe_works=no
6605
6606  rm -f conftest*
6607  cat > conftest.$ac_ext <<EOF
6608#ifdef __cplusplus
6609extern "C" {
6610#endif
6611char nm_test_var;
6612void nm_test_func(){}
6613#ifdef __cplusplus
6614}
6615#endif
6616int main(){nm_test_var='a';nm_test_func();return(0);}
6617EOF
6618
6619  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6620  (eval $ac_compile) 2>&5
6621  ac_status=$?
6622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623  (exit $ac_status); }; then
6624    # Now try to grab the symbols.
6625    nlist=conftest.nm
6626    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6627  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6628  ac_status=$?
6629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630  (exit $ac_status); } && test -s "$nlist"; then
6631      # Try sorting and uniquifying the output.
6632      if sort "$nlist" | uniq > "$nlist"T; then
6633	mv -f "$nlist"T "$nlist"
6634      else
6635	rm -f "$nlist"T
6636      fi
6637
6638      # Make sure that we snagged all the symbols we need.
6639      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6640	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6641	  cat <<EOF > conftest.$ac_ext
6642#ifdef __cplusplus
6643extern "C" {
6644#endif
6645
6646EOF
6647	  # Now generate the symbol file.
6648	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6649
6650	  cat <<EOF >> conftest.$ac_ext
6651#if defined (__STDC__) && __STDC__
6652# define lt_ptr_t void *
6653#else
6654# define lt_ptr_t char *
6655# define const
6656#endif
6657
6658/* The mapping between symbol names and symbols. */
6659const struct {
6660  const char *name;
6661  lt_ptr_t address;
6662}
6663lt_preloaded_symbols[] =
6664{
6665EOF
6666	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6667	  cat <<\EOF >> conftest.$ac_ext
6668  {0, (lt_ptr_t) 0}
6669};
6670
6671#ifdef __cplusplus
6672}
6673#endif
6674EOF
6675	  # Now try linking the two files.
6676	  mv conftest.$ac_objext conftstm.$ac_objext
6677	  lt_save_LIBS="$LIBS"
6678	  lt_save_CFLAGS="$CFLAGS"
6679	  LIBS="conftstm.$ac_objext"
6680	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6681	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6682  (eval $ac_link) 2>&5
6683  ac_status=$?
6684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6686	    pipe_works=yes
6687	  fi
6688	  LIBS="$lt_save_LIBS"
6689	  CFLAGS="$lt_save_CFLAGS"
6690	else
6691	  echo "cannot find nm_test_func in $nlist" >&5
6692	fi
6693      else
6694	echo "cannot find nm_test_var in $nlist" >&5
6695      fi
6696    else
6697      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6698    fi
6699  else
6700    echo "$progname: failed program was:" >&5
6701    cat conftest.$ac_ext >&5
6702  fi
6703  rm -f conftest* conftst*
6704
6705  # Do not use the global_symbol_pipe unless it works.
6706  if test "$pipe_works" = yes; then
6707    break
6708  else
6709    lt_cv_sys_global_symbol_pipe=
6710  fi
6711done
6712
6713fi
6714
6715if test -z "$lt_cv_sys_global_symbol_pipe"; then
6716  lt_cv_sys_global_symbol_to_cdecl=
6717fi
6718if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6719  { echo "$as_me:$LINENO: result: failed" >&5
6720echo "${ECHO_T}failed" >&6; }
6721else
6722  { echo "$as_me:$LINENO: result: ok" >&5
6723echo "${ECHO_T}ok" >&6; }
6724fi
6725
6726{ echo "$as_me:$LINENO: checking for objdir" >&5
6727echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6728if test "${lt_cv_objdir+set}" = set; then
6729  echo $ECHO_N "(cached) $ECHO_C" >&6
6730else
6731  rm -f .libs 2>/dev/null
6732mkdir .libs 2>/dev/null
6733if test -d .libs; then
6734  lt_cv_objdir=.libs
6735else
6736  # MS-DOS does not allow filenames that begin with a dot.
6737  lt_cv_objdir=_libs
6738fi
6739rmdir .libs 2>/dev/null
6740fi
6741{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6742echo "${ECHO_T}$lt_cv_objdir" >&6; }
6743objdir=$lt_cv_objdir
6744
6745
6746
6747
6748
6749case $host_os in
6750aix3*)
6751  # AIX sometimes has problems with the GCC collect2 program.  For some
6752  # reason, if we set the COLLECT_NAMES environment variable, the problems
6753  # vanish in a puff of smoke.
6754  if test "X${COLLECT_NAMES+set}" != Xset; then
6755    COLLECT_NAMES=
6756    export COLLECT_NAMES
6757  fi
6758  ;;
6759esac
6760
6761# Sed substitution that helps us do robust quoting.  It backslashifies
6762# metacharacters that are still active within double-quoted strings.
6763Xsed='sed -e 1s/^X//'
6764sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6765
6766# Same as above, but do not quote variable references.
6767double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6768
6769# Sed substitution to delay expansion of an escaped shell variable in a
6770# double_quote_subst'ed string.
6771delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6772
6773# Sed substitution to avoid accidental globbing in evaled expressions
6774no_glob_subst='s/\*/\\\*/g'
6775
6776# Constants:
6777rm="rm -f"
6778
6779# Global variables:
6780default_ofile=libtool
6781can_build_shared=yes
6782
6783# All known linkers require a `.a' archive for static linking (except MSVC,
6784# which needs '.lib').
6785libext=a
6786ltmain="$ac_aux_dir/ltmain.sh"
6787ofile="$default_ofile"
6788with_gnu_ld="$lt_cv_prog_gnu_ld"
6789
6790if test -n "$ac_tool_prefix"; then
6791  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6792set dummy ${ac_tool_prefix}ar; ac_word=$2
6793{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6795if test "${ac_cv_prog_AR+set}" = set; then
6796  echo $ECHO_N "(cached) $ECHO_C" >&6
6797else
6798  if test -n "$AR"; then
6799  ac_cv_prog_AR="$AR" # Let the user override the test.
6800else
6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804  IFS=$as_save_IFS
6805  test -z "$as_dir" && as_dir=.
6806  for ac_exec_ext in '' $ac_executable_extensions; do
6807  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6808    ac_cv_prog_AR="${ac_tool_prefix}ar"
6809    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810    break 2
6811  fi
6812done
6813done
6814IFS=$as_save_IFS
6815
6816fi
6817fi
6818AR=$ac_cv_prog_AR
6819if test -n "$AR"; then
6820  { echo "$as_me:$LINENO: result: $AR" >&5
6821echo "${ECHO_T}$AR" >&6; }
6822else
6823  { echo "$as_me:$LINENO: result: no" >&5
6824echo "${ECHO_T}no" >&6; }
6825fi
6826
6827
6828fi
6829if test -z "$ac_cv_prog_AR"; then
6830  ac_ct_AR=$AR
6831  # Extract the first word of "ar", so it can be a program name with args.
6832set dummy ar; ac_word=$2
6833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6836  echo $ECHO_N "(cached) $ECHO_C" >&6
6837else
6838  if test -n "$ac_ct_AR"; then
6839  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6840else
6841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842for as_dir in $PATH
6843do
6844  IFS=$as_save_IFS
6845  test -z "$as_dir" && as_dir=.
6846  for ac_exec_ext in '' $ac_executable_extensions; do
6847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6848    ac_cv_prog_ac_ct_AR="ar"
6849    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6850    break 2
6851  fi
6852done
6853done
6854IFS=$as_save_IFS
6855
6856fi
6857fi
6858ac_ct_AR=$ac_cv_prog_ac_ct_AR
6859if test -n "$ac_ct_AR"; then
6860  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6861echo "${ECHO_T}$ac_ct_AR" >&6; }
6862else
6863  { echo "$as_me:$LINENO: result: no" >&5
6864echo "${ECHO_T}no" >&6; }
6865fi
6866
6867  if test "x$ac_ct_AR" = x; then
6868    AR="false"
6869  else
6870    case $cross_compiling:$ac_tool_warned in
6871yes:)
6872{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6873whose name does not start with the host triplet.  If you think this
6874configuration is useful to you, please write to autoconf@gnu.org." >&5
6875echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6876whose name does not start with the host triplet.  If you think this
6877configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6878ac_tool_warned=yes ;;
6879esac
6880    AR=$ac_ct_AR
6881  fi
6882else
6883  AR="$ac_cv_prog_AR"
6884fi
6885
6886if test -n "$ac_tool_prefix"; then
6887  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6888set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6889{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891if test "${ac_cv_prog_RANLIB+set}" = set; then
6892  echo $ECHO_N "(cached) $ECHO_C" >&6
6893else
6894  if test -n "$RANLIB"; then
6895  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6896else
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900  IFS=$as_save_IFS
6901  test -z "$as_dir" && as_dir=.
6902  for ac_exec_ext in '' $ac_executable_extensions; do
6903  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6904    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6905    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906    break 2
6907  fi
6908done
6909done
6910IFS=$as_save_IFS
6911
6912fi
6913fi
6914RANLIB=$ac_cv_prog_RANLIB
6915if test -n "$RANLIB"; then
6916  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6917echo "${ECHO_T}$RANLIB" >&6; }
6918else
6919  { echo "$as_me:$LINENO: result: no" >&5
6920echo "${ECHO_T}no" >&6; }
6921fi
6922
6923
6924fi
6925if test -z "$ac_cv_prog_RANLIB"; then
6926  ac_ct_RANLIB=$RANLIB
6927  # Extract the first word of "ranlib", so it can be a program name with args.
6928set dummy ranlib; ac_word=$2
6929{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6931if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6932  echo $ECHO_N "(cached) $ECHO_C" >&6
6933else
6934  if test -n "$ac_ct_RANLIB"; then
6935  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6936else
6937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938for as_dir in $PATH
6939do
6940  IFS=$as_save_IFS
6941  test -z "$as_dir" && as_dir=.
6942  for ac_exec_ext in '' $ac_executable_extensions; do
6943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6944    ac_cv_prog_ac_ct_RANLIB="ranlib"
6945    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6946    break 2
6947  fi
6948done
6949done
6950IFS=$as_save_IFS
6951
6952fi
6953fi
6954ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6955if test -n "$ac_ct_RANLIB"; then
6956  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6957echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6958else
6959  { echo "$as_me:$LINENO: result: no" >&5
6960echo "${ECHO_T}no" >&6; }
6961fi
6962
6963  if test "x$ac_ct_RANLIB" = x; then
6964    RANLIB=":"
6965  else
6966    case $cross_compiling:$ac_tool_warned in
6967yes:)
6968{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6969whose name does not start with the host triplet.  If you think this
6970configuration is useful to you, please write to autoconf@gnu.org." >&5
6971echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6972whose name does not start with the host triplet.  If you think this
6973configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6974ac_tool_warned=yes ;;
6975esac
6976    RANLIB=$ac_ct_RANLIB
6977  fi
6978else
6979  RANLIB="$ac_cv_prog_RANLIB"
6980fi
6981
6982if test -n "$ac_tool_prefix"; then
6983  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6984set dummy ${ac_tool_prefix}strip; ac_word=$2
6985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987if test "${ac_cv_prog_STRIP+set}" = set; then
6988  echo $ECHO_N "(cached) $ECHO_C" >&6
6989else
6990  if test -n "$STRIP"; then
6991  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6992else
6993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994for as_dir in $PATH
6995do
6996  IFS=$as_save_IFS
6997  test -z "$as_dir" && as_dir=.
6998  for ac_exec_ext in '' $ac_executable_extensions; do
6999  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7000    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7001    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002    break 2
7003  fi
7004done
7005done
7006IFS=$as_save_IFS
7007
7008fi
7009fi
7010STRIP=$ac_cv_prog_STRIP
7011if test -n "$STRIP"; then
7012  { echo "$as_me:$LINENO: result: $STRIP" >&5
7013echo "${ECHO_T}$STRIP" >&6; }
7014else
7015  { echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6; }
7017fi
7018
7019
7020fi
7021if test -z "$ac_cv_prog_STRIP"; then
7022  ac_ct_STRIP=$STRIP
7023  # Extract the first word of "strip", so it can be a program name with args.
7024set dummy strip; ac_word=$2
7025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7027if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7028  echo $ECHO_N "(cached) $ECHO_C" >&6
7029else
7030  if test -n "$ac_ct_STRIP"; then
7031  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7032else
7033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034for as_dir in $PATH
7035do
7036  IFS=$as_save_IFS
7037  test -z "$as_dir" && as_dir=.
7038  for ac_exec_ext in '' $ac_executable_extensions; do
7039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7040    ac_cv_prog_ac_ct_STRIP="strip"
7041    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042    break 2
7043  fi
7044done
7045done
7046IFS=$as_save_IFS
7047
7048fi
7049fi
7050ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7051if test -n "$ac_ct_STRIP"; then
7052  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7053echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7054else
7055  { echo "$as_me:$LINENO: result: no" >&5
7056echo "${ECHO_T}no" >&6; }
7057fi
7058
7059  if test "x$ac_ct_STRIP" = x; then
7060    STRIP=":"
7061  else
7062    case $cross_compiling:$ac_tool_warned in
7063yes:)
7064{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7065whose name does not start with the host triplet.  If you think this
7066configuration is useful to you, please write to autoconf@gnu.org." >&5
7067echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7068whose name does not start with the host triplet.  If you think this
7069configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7070ac_tool_warned=yes ;;
7071esac
7072    STRIP=$ac_ct_STRIP
7073  fi
7074else
7075  STRIP="$ac_cv_prog_STRIP"
7076fi
7077
7078
7079old_CC="$CC"
7080old_CFLAGS="$CFLAGS"
7081
7082# Set sane defaults for various variables
7083test -z "$AR" && AR=ar
7084test -z "$AR_FLAGS" && AR_FLAGS=cru
7085test -z "$AS" && AS=as
7086test -z "$CC" && CC=cc
7087test -z "$LTCC" && LTCC=$CC
7088test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7089test -z "$DLLTOOL" && DLLTOOL=dlltool
7090test -z "$LD" && LD=ld
7091test -z "$LN_S" && LN_S="ln -s"
7092test -z "$MAGIC_CMD" && MAGIC_CMD=file
7093test -z "$NM" && NM=nm
7094test -z "$SED" && SED=sed
7095test -z "$OBJDUMP" && OBJDUMP=objdump
7096test -z "$RANLIB" && RANLIB=:
7097test -z "$STRIP" && STRIP=:
7098test -z "$ac_objext" && ac_objext=o
7099
7100# Determine commands to create old-style static archives.
7101old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7102old_postinstall_cmds='chmod 644 $oldlib'
7103old_postuninstall_cmds=
7104
7105if test -n "$RANLIB"; then
7106  case $host_os in
7107  openbsd*)
7108    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7109    ;;
7110  *)
7111    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7112    ;;
7113  esac
7114  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7115fi
7116
7117for cc_temp in $compiler""; do
7118  case $cc_temp in
7119    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7120    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7121    \-*) ;;
7122    *) break;;
7123  esac
7124done
7125cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7126
7127
7128# Only perform the check for file, if the check method requires it
7129case $deplibs_check_method in
7130file_magic*)
7131  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7132    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7133echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7134if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7135  echo $ECHO_N "(cached) $ECHO_C" >&6
7136else
7137  case $MAGIC_CMD in
7138[\\/*] |  ?:[\\/]*)
7139  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7140  ;;
7141*)
7142  lt_save_MAGIC_CMD="$MAGIC_CMD"
7143  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7144  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7145  for ac_dir in $ac_dummy; do
7146    IFS="$lt_save_ifs"
7147    test -z "$ac_dir" && ac_dir=.
7148    if test -f $ac_dir/${ac_tool_prefix}file; then
7149      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7150      if test -n "$file_magic_test_file"; then
7151	case $deplibs_check_method in
7152	"file_magic "*)
7153	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7154	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7155	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7156	    $EGREP "$file_magic_regex" > /dev/null; then
7157	    :
7158	  else
7159	    cat <<EOF 1>&2
7160
7161*** Warning: the command libtool uses to detect shared libraries,
7162*** $file_magic_cmd, produces output that libtool cannot recognize.
7163*** The result is that libtool may fail to recognize shared libraries
7164*** as such.  This will affect the creation of libtool libraries that
7165*** depend on shared libraries, but programs linked with such libtool
7166*** libraries will work regardless of this problem.  Nevertheless, you
7167*** may want to report the problem to your system manager and/or to
7168*** bug-libtool@gnu.org
7169
7170EOF
7171	  fi ;;
7172	esac
7173      fi
7174      break
7175    fi
7176  done
7177  IFS="$lt_save_ifs"
7178  MAGIC_CMD="$lt_save_MAGIC_CMD"
7179  ;;
7180esac
7181fi
7182
7183MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7184if test -n "$MAGIC_CMD"; then
7185  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7186echo "${ECHO_T}$MAGIC_CMD" >&6; }
7187else
7188  { echo "$as_me:$LINENO: result: no" >&5
7189echo "${ECHO_T}no" >&6; }
7190fi
7191
7192if test -z "$lt_cv_path_MAGIC_CMD"; then
7193  if test -n "$ac_tool_prefix"; then
7194    { echo "$as_me:$LINENO: checking for file" >&5
7195echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7196if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7197  echo $ECHO_N "(cached) $ECHO_C" >&6
7198else
7199  case $MAGIC_CMD in
7200[\\/*] |  ?:[\\/]*)
7201  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7202  ;;
7203*)
7204  lt_save_MAGIC_CMD="$MAGIC_CMD"
7205  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7206  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7207  for ac_dir in $ac_dummy; do
7208    IFS="$lt_save_ifs"
7209    test -z "$ac_dir" && ac_dir=.
7210    if test -f $ac_dir/file; then
7211      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7212      if test -n "$file_magic_test_file"; then
7213	case $deplibs_check_method in
7214	"file_magic "*)
7215	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7216	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7217	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7218	    $EGREP "$file_magic_regex" > /dev/null; then
7219	    :
7220	  else
7221	    cat <<EOF 1>&2
7222
7223*** Warning: the command libtool uses to detect shared libraries,
7224*** $file_magic_cmd, produces output that libtool cannot recognize.
7225*** The result is that libtool may fail to recognize shared libraries
7226*** as such.  This will affect the creation of libtool libraries that
7227*** depend on shared libraries, but programs linked with such libtool
7228*** libraries will work regardless of this problem.  Nevertheless, you
7229*** may want to report the problem to your system manager and/or to
7230*** bug-libtool@gnu.org
7231
7232EOF
7233	  fi ;;
7234	esac
7235      fi
7236      break
7237    fi
7238  done
7239  IFS="$lt_save_ifs"
7240  MAGIC_CMD="$lt_save_MAGIC_CMD"
7241  ;;
7242esac
7243fi
7244
7245MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7246if test -n "$MAGIC_CMD"; then
7247  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7248echo "${ECHO_T}$MAGIC_CMD" >&6; }
7249else
7250  { echo "$as_me:$LINENO: result: no" >&5
7251echo "${ECHO_T}no" >&6; }
7252fi
7253
7254  else
7255    MAGIC_CMD=:
7256  fi
7257fi
7258
7259  fi
7260  ;;
7261esac
7262
7263enable_dlopen=no
7264enable_win32_dll=yes
7265
7266# Check whether --enable-libtool-lock was given.
7267if test "${enable_libtool_lock+set}" = set; then
7268  enableval=$enable_libtool_lock;
7269fi
7270
7271test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7272
7273
7274# Check whether --with-pic was given.
7275if test "${with_pic+set}" = set; then
7276  withval=$with_pic; pic_mode="$withval"
7277else
7278  pic_mode=default
7279fi
7280
7281test -z "$pic_mode" && pic_mode=default
7282
7283# Use C for the default configuration in the libtool script
7284tagname=
7285lt_save_CC="$CC"
7286ac_ext=c
7287ac_cpp='$CPP $CPPFLAGS'
7288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7290ac_compiler_gnu=$ac_cv_c_compiler_gnu
7291
7292
7293# Source file extension for C test sources.
7294ac_ext=c
7295
7296# Object file extension for compiled C test sources.
7297objext=o
7298objext=$objext
7299
7300# Code to be used in simple compile tests
7301lt_simple_compile_test_code="int some_variable = 0;\n"
7302
7303# Code to be used in simple link tests
7304lt_simple_link_test_code='int main(){return(0);}\n'
7305
7306
7307# If no C compiler was specified, use CC.
7308LTCC=${LTCC-"$CC"}
7309
7310# If no C compiler flags were specified, use CFLAGS.
7311LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7312
7313# Allow CC to be a program name with arguments.
7314compiler=$CC
7315
7316
7317# save warnings/boilerplate of simple test code
7318ac_outfile=conftest.$ac_objext
7319printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7320eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7321_lt_compiler_boilerplate=`cat conftest.err`
7322$rm conftest*
7323
7324ac_outfile=conftest.$ac_objext
7325printf "$lt_simple_link_test_code" >conftest.$ac_ext
7326eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7327_lt_linker_boilerplate=`cat conftest.err`
7328$rm conftest*
7329
7330
7331## CAVEAT EMPTOR:
7332## There is no encapsulation within the following macros, do not change
7333## the running order or otherwise move them around unless you know exactly
7334## what you are doing...
7335
7336lt_prog_compiler_no_builtin_flag=
7337
7338if test "$GCC" = yes; then
7339  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7340
7341
7342{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7343echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7344if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7345  echo $ECHO_N "(cached) $ECHO_C" >&6
7346else
7347  lt_cv_prog_compiler_rtti_exceptions=no
7348  ac_outfile=conftest.$ac_objext
7349   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7350   lt_compiler_flag="-fno-rtti -fno-exceptions"
7351   # Insert the option either (1) after the last *FLAGS variable, or
7352   # (2) before a word containing "conftest.", or (3) at the end.
7353   # Note that $ac_compile itself does not contain backslashes and begins
7354   # with a dollar sign (not a hyphen), so the echo should work correctly.
7355   # The option is referenced via a variable to avoid confusing sed.
7356   lt_compile=`echo "$ac_compile" | $SED \
7357   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7358   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7359   -e 's:$: $lt_compiler_flag:'`
7360   (eval echo "\"\$as_me:7360: $lt_compile\"" >&5)
7361   (eval "$lt_compile" 2>conftest.err)
7362   ac_status=$?
7363   cat conftest.err >&5
7364   echo "$as_me:7364: \$? = $ac_status" >&5
7365   if (exit $ac_status) && test -s "$ac_outfile"; then
7366     # The compiler can only warn and ignore the option if not recognized
7367     # So say no if there are warnings other than the usual output.
7368     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7369     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7370     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7371       lt_cv_prog_compiler_rtti_exceptions=yes
7372     fi
7373   fi
7374   $rm conftest*
7375
7376fi
7377{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7378echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7379
7380if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7381    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7382else
7383    :
7384fi
7385
7386fi
7387
7388lt_prog_compiler_wl=
7389lt_prog_compiler_pic=
7390lt_prog_compiler_static=
7391
7392{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7393echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7394
7395  if test "$GCC" = yes; then
7396    lt_prog_compiler_wl='-Wl,'
7397    lt_prog_compiler_static='-static'
7398
7399    case $host_os in
7400      aix*)
7401      # All AIX code is PIC.
7402      if test "$host_cpu" = ia64; then
7403	# AIX 5 now supports IA64 processor
7404	lt_prog_compiler_static='-Bstatic'
7405      fi
7406      ;;
7407
7408    amigaos*)
7409      # FIXME: we need at least 68020 code to build shared libraries, but
7410      # adding the `-m68020' flag to GCC prevents building anything better,
7411      # like `-m68040'.
7412      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7413      ;;
7414
7415    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7416      # PIC is the default for these OSes.
7417      ;;
7418
7419    mingw* | cygwin* | pw32* | os2*)
7420      # This hack is so that the source file can tell whether it is being
7421      # built for inclusion in a dll (and should export symbols for example).
7422      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7423      # (--disable-auto-import) libraries
7424      lt_prog_compiler_pic='-DDLL_EXPORT'
7425      ;;
7426
7427    darwin* | rhapsody*)
7428      # PIC is the default on this platform
7429      # Common symbols not allowed in MH_DYLIB files
7430      lt_prog_compiler_pic='-fno-common'
7431      ;;
7432
7433    interix3*)
7434      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7435      # Instead, we relocate shared libraries at runtime.
7436      ;;
7437
7438    msdosdjgpp*)
7439      # Just because we use GCC doesn't mean we suddenly get shared libraries
7440      # on systems that don't support them.
7441      lt_prog_compiler_can_build_shared=no
7442      enable_shared=no
7443      ;;
7444
7445    sysv4*MP*)
7446      if test -d /usr/nec; then
7447	lt_prog_compiler_pic=-Kconform_pic
7448      fi
7449      ;;
7450
7451    hpux*)
7452      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7453      # not for PA HP-UX.
7454      case $host_cpu in
7455      hppa*64*|ia64*)
7456	# +Z the default
7457	;;
7458      *)
7459	lt_prog_compiler_pic='-fPIC'
7460	;;
7461      esac
7462      ;;
7463
7464    *)
7465      lt_prog_compiler_pic='-fPIC'
7466      ;;
7467    esac
7468  else
7469    # PORTME Check for flag to pass linker flags through the system compiler.
7470    case $host_os in
7471    aix*)
7472      lt_prog_compiler_wl='-Wl,'
7473      if test "$host_cpu" = ia64; then
7474	# AIX 5 now supports IA64 processor
7475	lt_prog_compiler_static='-Bstatic'
7476      else
7477	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7478      fi
7479      ;;
7480      darwin*)
7481        # PIC is the default on this platform
7482        # Common symbols not allowed in MH_DYLIB files
7483       case $cc_basename in
7484         xlc*)
7485         lt_prog_compiler_pic='-qnocommon'
7486         lt_prog_compiler_wl='-Wl,'
7487         ;;
7488       esac
7489       ;;
7490
7491    mingw* | cygwin* | pw32* | os2*)
7492      # This hack is so that the source file can tell whether it is being
7493      # built for inclusion in a dll (and should export symbols for example).
7494      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7495      # (--disable-auto-import) libraries
7496      lt_prog_compiler_pic='-DDLL_EXPORT'
7497      ;;
7498
7499    hpux9* | hpux10* | hpux11*)
7500      lt_prog_compiler_wl='-Wl,'
7501      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7502      # not for PA HP-UX.
7503      case $host_cpu in
7504      hppa*64*|ia64*)
7505	# +Z the default
7506	;;
7507      *)
7508	lt_prog_compiler_pic='+Z'
7509	;;
7510      esac
7511      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7512      lt_prog_compiler_static='${wl}-a ${wl}archive'
7513      ;;
7514
7515    irix5* | irix6* | nonstopux*)
7516      lt_prog_compiler_wl='-Wl,'
7517      # PIC (with -KPIC) is the default.
7518      lt_prog_compiler_static='-non_shared'
7519      ;;
7520
7521    newsos6)
7522      lt_prog_compiler_pic='-KPIC'
7523      lt_prog_compiler_static='-Bstatic'
7524      ;;
7525
7526    linux*)
7527      case $cc_basename in
7528      icc* | ecc*)
7529	lt_prog_compiler_wl='-Wl,'
7530	lt_prog_compiler_pic='-KPIC'
7531	lt_prog_compiler_static='-static'
7532        ;;
7533      pgcc* | pgf77* | pgf90* | pgf95*)
7534        # Portland Group compilers (*not* the Pentium gcc compiler,
7535	# which looks to be a dead project)
7536	lt_prog_compiler_wl='-Wl,'
7537	lt_prog_compiler_pic='-fpic'
7538	lt_prog_compiler_static='-Bstatic'
7539        ;;
7540      ccc*)
7541        lt_prog_compiler_wl='-Wl,'
7542        # All Alpha code is PIC.
7543        lt_prog_compiler_static='-non_shared'
7544        ;;
7545      como)
7546        lt_prog_compiler_wl='-lopt='
7547        ;;
7548      *)
7549        case `$CC -V 2>&1 | sed 5q` in
7550	*Sun\ C*)
7551	  # Sun C 5.9
7552	  lt_prog_compiler_pic='-KPIC'
7553	  lt_prog_compiler_static='-Bstatic'
7554	  lt_prog_compiler_wl='-Wl,'
7555	  ;;
7556	*Sun\ F*)
7557	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7558	  lt_prog_compiler_pic='-KPIC'
7559	  lt_prog_compiler_static='-Bstatic'
7560	  lt_prog_compiler_wl=''
7561	  ;;
7562	esac
7563	;;
7564      esac
7565      ;;
7566
7567    osf3* | osf4* | osf5*)
7568      lt_prog_compiler_wl='-Wl,'
7569      # All OSF/1 code is PIC.
7570      lt_prog_compiler_static='-non_shared'
7571      ;;
7572
7573    solaris*)
7574      lt_prog_compiler_pic='-KPIC'
7575      lt_prog_compiler_static='-Bstatic'
7576      case $cc_basename in
7577      f77* | f90* | f95*)
7578	lt_prog_compiler_wl='-Qoption ld ';;
7579      *)
7580	lt_prog_compiler_wl='-Wl,';;
7581      esac
7582      ;;
7583
7584    sunos4*)
7585      lt_prog_compiler_wl='-Qoption ld '
7586      lt_prog_compiler_pic='-PIC'
7587      lt_prog_compiler_static='-Bstatic'
7588      ;;
7589
7590    sysv4 | sysv4.2uw2* | sysv4.3*)
7591      lt_prog_compiler_wl='-Wl,'
7592      lt_prog_compiler_pic='-KPIC'
7593      lt_prog_compiler_static='-Bstatic'
7594      ;;
7595
7596    sysv4*MP*)
7597      if test -d /usr/nec ;then
7598	lt_prog_compiler_pic='-Kconform_pic'
7599	lt_prog_compiler_static='-Bstatic'
7600      fi
7601      ;;
7602
7603    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7604      lt_prog_compiler_wl='-Wl,'
7605      lt_prog_compiler_pic='-KPIC'
7606      lt_prog_compiler_static='-Bstatic'
7607      ;;
7608
7609    unicos*)
7610      lt_prog_compiler_wl='-Wl,'
7611      lt_prog_compiler_can_build_shared=no
7612      ;;
7613
7614    uts4*)
7615      lt_prog_compiler_pic='-pic'
7616      lt_prog_compiler_static='-Bstatic'
7617      ;;
7618
7619    *)
7620      lt_prog_compiler_can_build_shared=no
7621      ;;
7622    esac
7623  fi
7624
7625{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7626echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7627
7628#
7629# Check to make sure the PIC flag actually works.
7630#
7631if test -n "$lt_prog_compiler_pic"; then
7632
7633{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7634echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7635if test "${lt_prog_compiler_pic_works+set}" = set; then
7636  echo $ECHO_N "(cached) $ECHO_C" >&6
7637else
7638  lt_prog_compiler_pic_works=no
7639  ac_outfile=conftest.$ac_objext
7640   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7641   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7642   # Insert the option either (1) after the last *FLAGS variable, or
7643   # (2) before a word containing "conftest.", or (3) at the end.
7644   # Note that $ac_compile itself does not contain backslashes and begins
7645   # with a dollar sign (not a hyphen), so the echo should work correctly.
7646   # The option is referenced via a variable to avoid confusing sed.
7647   lt_compile=`echo "$ac_compile" | $SED \
7648   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7649   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7650   -e 's:$: $lt_compiler_flag:'`
7651   (eval echo "\"\$as_me:7651: $lt_compile\"" >&5)
7652   (eval "$lt_compile" 2>conftest.err)
7653   ac_status=$?
7654   cat conftest.err >&5
7655   echo "$as_me:7655: \$? = $ac_status" >&5
7656   if (exit $ac_status) && test -s "$ac_outfile"; then
7657     # The compiler can only warn and ignore the option if not recognized
7658     # So say no if there are warnings other than the usual output.
7659     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7660     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7661     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7662       lt_prog_compiler_pic_works=yes
7663     fi
7664   fi
7665   $rm conftest*
7666
7667fi
7668{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7669echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7670
7671if test x"$lt_prog_compiler_pic_works" = xyes; then
7672    case $lt_prog_compiler_pic in
7673     "" | " "*) ;;
7674     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7675     esac
7676else
7677    lt_prog_compiler_pic=
7678     lt_prog_compiler_can_build_shared=no
7679fi
7680
7681fi
7682case $host_os in
7683  # For platforms which do not support PIC, -DPIC is meaningless:
7684  *djgpp*)
7685    lt_prog_compiler_pic=
7686    ;;
7687  *)
7688    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7689    ;;
7690esac
7691
7692#
7693# Check to make sure the static flag actually works.
7694#
7695wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7696{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7697echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7698if test "${lt_prog_compiler_static_works+set}" = set; then
7699  echo $ECHO_N "(cached) $ECHO_C" >&6
7700else
7701  lt_prog_compiler_static_works=no
7702   save_LDFLAGS="$LDFLAGS"
7703   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7704   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7705   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7706     # The linker can only warn and ignore the option if not recognized
7707     # So say no if there are warnings
7708     if test -s conftest.err; then
7709       # Append any errors to the config.log.
7710       cat conftest.err 1>&5
7711       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7712       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7713       if diff conftest.exp conftest.er2 >/dev/null; then
7714         lt_prog_compiler_static_works=yes
7715       fi
7716     else
7717       lt_prog_compiler_static_works=yes
7718     fi
7719   fi
7720   $rm conftest*
7721   LDFLAGS="$save_LDFLAGS"
7722
7723fi
7724{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7725echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7726
7727if test x"$lt_prog_compiler_static_works" = xyes; then
7728    :
7729else
7730    lt_prog_compiler_static=
7731fi
7732
7733
7734{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7735echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7736if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7737  echo $ECHO_N "(cached) $ECHO_C" >&6
7738else
7739  lt_cv_prog_compiler_c_o=no
7740   $rm -r conftest 2>/dev/null
7741   mkdir conftest
7742   cd conftest
7743   mkdir out
7744   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7745
7746   lt_compiler_flag="-o out/conftest2.$ac_objext"
7747   # Insert the option either (1) after the last *FLAGS variable, or
7748   # (2) before a word containing "conftest.", or (3) at the end.
7749   # Note that $ac_compile itself does not contain backslashes and begins
7750   # with a dollar sign (not a hyphen), so the echo should work correctly.
7751   lt_compile=`echo "$ac_compile" | $SED \
7752   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7753   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7754   -e 's:$: $lt_compiler_flag:'`
7755   (eval echo "\"\$as_me:7755: $lt_compile\"" >&5)
7756   (eval "$lt_compile" 2>out/conftest.err)
7757   ac_status=$?
7758   cat out/conftest.err >&5
7759   echo "$as_me:7759: \$? = $ac_status" >&5
7760   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7761   then
7762     # The compiler can only warn and ignore the option if not recognized
7763     # So say no if there are warnings
7764     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7765     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7766     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7767       lt_cv_prog_compiler_c_o=yes
7768     fi
7769   fi
7770   chmod u+w . 2>&5
7771   $rm conftest*
7772   # SGI C++ compiler will create directory out/ii_files/ for
7773   # template instantiation
7774   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7775   $rm out/* && rmdir out
7776   cd ..
7777   rmdir conftest
7778   $rm conftest*
7779
7780fi
7781{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7782echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7783
7784
7785hard_links="nottested"
7786if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7787  # do not overwrite the value of need_locks provided by the user
7788  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7789echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7790  hard_links=yes
7791  $rm conftest*
7792  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7793  touch conftest.a
7794  ln conftest.a conftest.b 2>&5 || hard_links=no
7795  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7796  { echo "$as_me:$LINENO: result: $hard_links" >&5
7797echo "${ECHO_T}$hard_links" >&6; }
7798  if test "$hard_links" = no; then
7799    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7800echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7801    need_locks=warn
7802  fi
7803else
7804  need_locks=no
7805fi
7806
7807{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7808echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7809
7810  runpath_var=
7811  allow_undefined_flag=
7812  enable_shared_with_static_runtimes=no
7813  archive_cmds=
7814  archive_expsym_cmds=
7815  old_archive_From_new_cmds=
7816  old_archive_from_expsyms_cmds=
7817  export_dynamic_flag_spec=
7818  whole_archive_flag_spec=
7819  thread_safe_flag_spec=
7820  hardcode_libdir_flag_spec=
7821  hardcode_libdir_flag_spec_ld=
7822  hardcode_libdir_separator=
7823  hardcode_direct=no
7824  hardcode_minus_L=no
7825  hardcode_shlibpath_var=unsupported
7826  link_all_deplibs=unknown
7827  hardcode_automatic=no
7828  module_cmds=
7829  module_expsym_cmds=
7830  always_export_symbols=no
7831  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7832  # include_expsyms should be a list of space-separated symbols to be *always*
7833  # included in the symbol list
7834  include_expsyms=
7835  # exclude_expsyms can be an extended regexp of symbols to exclude
7836  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7837  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7838  # as well as any symbol that contains `d'.
7839  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7840  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7841  # platforms (ab)use it in PIC code, but their linkers get confused if
7842  # the symbol is explicitly referenced.  Since portable code cannot
7843  # rely on this symbol name, it's probably fine to never include it in
7844  # preloaded symbol tables.
7845  extract_expsyms_cmds=
7846  # Just being paranoid about ensuring that cc_basename is set.
7847  for cc_temp in $compiler""; do
7848  case $cc_temp in
7849    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7850    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7851    \-*) ;;
7852    *) break;;
7853  esac
7854done
7855cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7856
7857  case $host_os in
7858  cygwin* | mingw* | pw32*)
7859    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7860    # When not using gcc, we currently assume that we are using
7861    # Microsoft Visual C++.
7862    if test "$GCC" != yes; then
7863      with_gnu_ld=no
7864    fi
7865    ;;
7866  interix*)
7867    # we just hope/assume this is gcc and not c89 (= MSVC++)
7868    with_gnu_ld=yes
7869    ;;
7870  openbsd*)
7871    with_gnu_ld=no
7872    ;;
7873  esac
7874
7875  ld_shlibs=yes
7876  if test "$with_gnu_ld" = yes; then
7877    # If archive_cmds runs LD, not CC, wlarc should be empty
7878    wlarc='${wl}'
7879
7880    # Set some defaults for GNU ld with shared library support. These
7881    # are reset later if shared libraries are not supported. Putting them
7882    # here allows them to be overridden if necessary.
7883    runpath_var=LD_RUN_PATH
7884    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7885    export_dynamic_flag_spec='${wl}--export-dynamic'
7886    # ancient GNU ld didn't support --whole-archive et. al.
7887    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7888	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7889      else
7890  	whole_archive_flag_spec=
7891    fi
7892    supports_anon_versioning=no
7893    case `$LD -v 2>/dev/null` in
7894      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7895      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7896      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7897      *\ 2.11.*) ;; # other 2.11 versions
7898      *) supports_anon_versioning=yes ;;
7899    esac
7900
7901    # See if GNU ld supports shared libraries.
7902    case $host_os in
7903    aix3* | aix4* | aix5*)
7904      # On AIX/PPC, the GNU linker is very broken
7905      if test "$host_cpu" != ia64; then
7906	ld_shlibs=no
7907	cat <<EOF 1>&2
7908
7909*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7910*** to be unable to reliably create shared libraries on AIX.
7911*** Therefore, libtool is disabling shared libraries support.  If you
7912*** really care for shared libraries, you may want to modify your PATH
7913*** so that a non-GNU linker is found, and then restart.
7914
7915EOF
7916      fi
7917      ;;
7918
7919    amigaos*)
7920      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)'
7921      hardcode_libdir_flag_spec='-L$libdir'
7922      hardcode_minus_L=yes
7923
7924      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7925      # that the semantics of dynamic libraries on AmigaOS, at least up
7926      # to version 4, is to share data among multiple programs linked
7927      # with the same dynamic library.  Since this doesn't match the
7928      # behavior of shared libraries on other platforms, we can't use
7929      # them.
7930      ld_shlibs=no
7931      ;;
7932
7933    beos*)
7934      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7935	allow_undefined_flag=unsupported
7936	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7937	# support --undefined.  This deserves some investigation.  FIXME
7938	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7939      else
7940	ld_shlibs=no
7941      fi
7942      ;;
7943
7944    cygwin* | mingw* | pw32*)
7945      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7946      # as there is no search path for DLLs.
7947      hardcode_libdir_flag_spec='-L$libdir'
7948      allow_undefined_flag=unsupported
7949      always_export_symbols=no
7950      enable_shared_with_static_runtimes=yes
7951      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7952
7953      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7954        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7955	# If the export-symbols file already is a .def file (1st line
7956	# is EXPORTS), use it as is; otherwise, prepend...
7957	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7958	  cp $export_symbols $output_objdir/$soname.def;
7959	else
7960	  echo EXPORTS > $output_objdir/$soname.def;
7961	  cat $export_symbols >> $output_objdir/$soname.def;
7962	fi~
7963	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7964      else
7965	ld_shlibs=no
7966      fi
7967      ;;
7968
7969    interix3*)
7970      hardcode_direct=no
7971      hardcode_shlibpath_var=no
7972      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7973      export_dynamic_flag_spec='${wl}-E'
7974      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7975      # Instead, shared libraries are loaded at an image base (0x10000000 by
7976      # default) and relocated if they conflict, which is a slow very memory
7977      # consuming and fragmenting process.  To avoid this, we pick a random,
7978      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7979      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7980      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7981      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'
7982      ;;
7983
7984    linux*)
7985      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7986	tmp_addflag=
7987	case $cc_basename,$host_cpu in
7988	pgcc*)				# Portland Group C compiler
7989	  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'
7990	  tmp_addflag=' $pic_flag'
7991	  ;;
7992	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7993	  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'
7994	  tmp_addflag=' $pic_flag -Mnomain' ;;
7995	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7996	  tmp_addflag=' -i_dynamic' ;;
7997	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7998	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7999	ifc* | ifort*)			# Intel Fortran compiler
8000	  tmp_addflag=' -nofor_main' ;;
8001	esac
8002	case `$CC -V 2>&1 | sed 5q` in
8003	*Sun\ C*)			# Sun C 5.9
8004	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null'
8005	  tmp_sharedflag='-G' ;;
8006	*Sun\ F*)			# Sun Fortran 8.3
8007	  tmp_sharedflag='-G' ;;
8008	*)
8009	  tmp_sharedflag='-shared' ;;
8010	esac
8011	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8012
8013	if test $supports_anon_versioning = yes; then
8014	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8015  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8016  $echo "local: *; };" >> $output_objdir/$libname.ver~
8017	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8018	fi
8019      else
8020	ld_shlibs=no
8021      fi
8022      ;;
8023
8024    netbsd*)
8025      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8026	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8027	wlarc=
8028      else
8029	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8030	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8031      fi
8032      ;;
8033
8034    solaris*)
8035      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8036	ld_shlibs=no
8037	cat <<EOF 1>&2
8038
8039*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8040*** create shared libraries on Solaris systems.  Therefore, libtool
8041*** is disabling shared libraries support.  We urge you to upgrade GNU
8042*** binutils to release 2.9.1 or newer.  Another option is to modify
8043*** your PATH or compiler configuration so that the native linker is
8044*** used, and then restart.
8045
8046EOF
8047      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8048	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8049	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8050      else
8051	ld_shlibs=no
8052      fi
8053      ;;
8054
8055    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8056      case `$LD -v 2>&1` in
8057        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8058	ld_shlibs=no
8059	cat <<_LT_EOF 1>&2
8060
8061*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8062*** reliably create shared libraries on SCO systems.  Therefore, libtool
8063*** is disabling shared libraries support.  We urge you to upgrade GNU
8064*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8065*** your PATH or compiler configuration so that the native linker is
8066*** used, and then restart.
8067
8068_LT_EOF
8069	;;
8070	*)
8071	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8072	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8073	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8074	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8075	  else
8076	    ld_shlibs=no
8077	  fi
8078	;;
8079      esac
8080      ;;
8081
8082    sunos4*)
8083      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8084      wlarc=
8085      hardcode_direct=yes
8086      hardcode_shlibpath_var=no
8087      ;;
8088
8089    *)
8090      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8091	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8092	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8093      else
8094	ld_shlibs=no
8095      fi
8096      ;;
8097    esac
8098
8099    if test "$ld_shlibs" = no; then
8100      runpath_var=
8101      hardcode_libdir_flag_spec=
8102      export_dynamic_flag_spec=
8103      whole_archive_flag_spec=
8104    fi
8105  else
8106    # PORTME fill in a description of your system's linker (not GNU ld)
8107    case $host_os in
8108    aix3*)
8109      allow_undefined_flag=unsupported
8110      always_export_symbols=yes
8111      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'
8112      # Note: this linker hardcodes the directories in LIBPATH if there
8113      # are no directories specified by -L.
8114      hardcode_minus_L=yes
8115      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8116	# Neither direct hardcoding nor static linking is supported with a
8117	# broken collect2.
8118	hardcode_direct=unsupported
8119      fi
8120      ;;
8121
8122    aix4* | aix5*)
8123      if test "$host_cpu" = ia64; then
8124	# On IA64, the linker does run time linking by default, so we don't
8125	# have to do anything special.
8126	aix_use_runtimelinking=no
8127	exp_sym_flag='-Bexport'
8128	no_entry_flag=""
8129      else
8130	# If we're using GNU nm, then we don't want the "-C" option.
8131	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8132	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8133	  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'
8134	else
8135	  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'
8136	fi
8137	aix_use_runtimelinking=no
8138
8139	# Test if we are trying to use run time linking or normal
8140	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8141	# need to do runtime linking.
8142	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8143	  for ld_flag in $LDFLAGS; do
8144  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8145  	    aix_use_runtimelinking=yes
8146  	    break
8147  	  fi
8148	  done
8149	  ;;
8150	esac
8151
8152	exp_sym_flag='-bexport'
8153	no_entry_flag='-bnoentry'
8154      fi
8155
8156      # When large executables or shared objects are built, AIX ld can
8157      # have problems creating the table of contents.  If linking a library
8158      # or program results in "error TOC overflow" add -mminimal-toc to
8159      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8160      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8161
8162      archive_cmds=''
8163      hardcode_direct=yes
8164      hardcode_libdir_separator=':'
8165      link_all_deplibs=yes
8166
8167      if test "$GCC" = yes; then
8168	case $host_os in aix4.[012]|aix4.[012].*)
8169	# We only want to do this on AIX 4.2 and lower, the check
8170	# below for broken collect2 doesn't work under 4.3+
8171	  collect2name=`${CC} -print-prog-name=collect2`
8172	  if test -f "$collect2name" && \
8173  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8174	  then
8175  	  # We have reworked collect2
8176  	  hardcode_direct=yes
8177	  else
8178  	  # We have old collect2
8179  	  hardcode_direct=unsupported
8180  	  # It fails to find uninstalled libraries when the uninstalled
8181  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8182  	  # to unsupported forces relinking
8183  	  hardcode_minus_L=yes
8184  	  hardcode_libdir_flag_spec='-L$libdir'
8185  	  hardcode_libdir_separator=
8186	  fi
8187	  ;;
8188	esac
8189	shared_flag='-shared'
8190	if test "$aix_use_runtimelinking" = yes; then
8191	  shared_flag="$shared_flag "'${wl}-G'
8192	fi
8193      else
8194	# not using gcc
8195	if test "$host_cpu" = ia64; then
8196  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8197  	# chokes on -Wl,-G. The following line is correct:
8198	  shared_flag='-G'
8199	else
8200	  if test "$aix_use_runtimelinking" = yes; then
8201	    shared_flag='${wl}-G'
8202	  else
8203	    shared_flag='${wl}-bM:SRE'
8204	  fi
8205	fi
8206      fi
8207
8208      # It seems that -bexpall does not export symbols beginning with
8209      # underscore (_), so it is better to generate a list of symbols to export.
8210      always_export_symbols=yes
8211      if test "$aix_use_runtimelinking" = yes; then
8212	# Warning - without using the other runtime loading flags (-brtl),
8213	# -berok will link without error, but may produce a broken library.
8214	allow_undefined_flag='-berok'
8215       # Determine the default libpath from the value encoded in an empty executable.
8216       cat >conftest.$ac_ext <<_ACEOF
8217/* confdefs.h.  */
8218_ACEOF
8219cat confdefs.h >>conftest.$ac_ext
8220cat >>conftest.$ac_ext <<_ACEOF
8221/* end confdefs.h.  */
8222
8223int
8224main ()
8225{
8226
8227  ;
8228  return 0;
8229}
8230_ACEOF
8231rm -f conftest.$ac_objext conftest$ac_exeext
8232if { (ac_try="$ac_link"
8233case "(($ac_try" in
8234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235  *) ac_try_echo=$ac_try;;
8236esac
8237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238  (eval "$ac_link") 2>conftest.er1
8239  ac_status=$?
8240  grep -v '^ *+' conftest.er1 >conftest.err
8241  rm -f conftest.er1
8242  cat conftest.err >&5
8243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244  (exit $ac_status); } &&
8245	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8246  { (case "(($ac_try" in
8247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248  *) ac_try_echo=$ac_try;;
8249esac
8250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251  (eval "$ac_try") 2>&5
8252  ac_status=$?
8253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254  (exit $ac_status); }; } &&
8255	 { ac_try='test -s conftest$ac_exeext'
8256  { (case "(($ac_try" in
8257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258  *) ac_try_echo=$ac_try;;
8259esac
8260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261  (eval "$ac_try") 2>&5
8262  ac_status=$?
8263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264  (exit $ac_status); }; }; then
8265
8266aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8267}'`
8268# Check for a 64-bit object if we didn't find anything.
8269if 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; }
8270}'`; fi
8271else
8272  echo "$as_me: failed program was:" >&5
8273sed 's/^/| /' conftest.$ac_ext >&5
8274
8275
8276fi
8277
8278rm -f core conftest.err conftest.$ac_objext \
8279      conftest$ac_exeext conftest.$ac_ext
8280if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8281
8282       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8283	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"
8284       else
8285	if test "$host_cpu" = ia64; then
8286	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8287	  allow_undefined_flag="-z nodefs"
8288	  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"
8289	else
8290	 # Determine the default libpath from the value encoded in an empty executable.
8291	 cat >conftest.$ac_ext <<_ACEOF
8292/* confdefs.h.  */
8293_ACEOF
8294cat confdefs.h >>conftest.$ac_ext
8295cat >>conftest.$ac_ext <<_ACEOF
8296/* end confdefs.h.  */
8297
8298int
8299main ()
8300{
8301
8302  ;
8303  return 0;
8304}
8305_ACEOF
8306rm -f conftest.$ac_objext conftest$ac_exeext
8307if { (ac_try="$ac_link"
8308case "(($ac_try" in
8309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310  *) ac_try_echo=$ac_try;;
8311esac
8312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313  (eval "$ac_link") 2>conftest.er1
8314  ac_status=$?
8315  grep -v '^ *+' conftest.er1 >conftest.err
8316  rm -f conftest.er1
8317  cat conftest.err >&5
8318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319  (exit $ac_status); } &&
8320	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8321  { (case "(($ac_try" in
8322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323  *) ac_try_echo=$ac_try;;
8324esac
8325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326  (eval "$ac_try") 2>&5
8327  ac_status=$?
8328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329  (exit $ac_status); }; } &&
8330	 { ac_try='test -s conftest$ac_exeext'
8331  { (case "(($ac_try" in
8332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333  *) ac_try_echo=$ac_try;;
8334esac
8335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336  (eval "$ac_try") 2>&5
8337  ac_status=$?
8338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339  (exit $ac_status); }; }; then
8340
8341aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8342}'`
8343# Check for a 64-bit object if we didn't find anything.
8344if 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; }
8345}'`; fi
8346else
8347  echo "$as_me: failed program was:" >&5
8348sed 's/^/| /' conftest.$ac_ext >&5
8349
8350
8351fi
8352
8353rm -f core conftest.err conftest.$ac_objext \
8354      conftest$ac_exeext conftest.$ac_ext
8355if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8356
8357	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8358	  # Warning - without using the other run time loading flags,
8359	  # -berok will link without error, but may produce a broken library.
8360	  no_undefined_flag=' ${wl}-bernotok'
8361	  allow_undefined_flag=' ${wl}-berok'
8362	  # Exported symbols can be pulled into shared objects from archives
8363	  whole_archive_flag_spec='$convenience'
8364	  archive_cmds_need_lc=yes
8365	  # This is similar to how AIX traditionally builds its shared libraries.
8366	  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'
8367	fi
8368      fi
8369      ;;
8370
8371    amigaos*)
8372      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)'
8373      hardcode_libdir_flag_spec='-L$libdir'
8374      hardcode_minus_L=yes
8375      # see comment about different semantics on the GNU ld section
8376      ld_shlibs=no
8377      ;;
8378
8379    bsdi[45]*)
8380      export_dynamic_flag_spec=-rdynamic
8381      ;;
8382
8383    cygwin* | mingw* | pw32*)
8384      # When not using gcc, we currently assume that we are using
8385      # Microsoft Visual C++.
8386      # hardcode_libdir_flag_spec is actually meaningless, as there is
8387      # no search path for DLLs.
8388      hardcode_libdir_flag_spec=' '
8389      allow_undefined_flag=unsupported
8390      # Tell ltmain to make .lib files, not .a files.
8391      libext=lib
8392      # Tell ltmain to make .dll files, not .so files.
8393      shrext_cmds=".dll"
8394      # FIXME: Setting linknames here is a bad hack.
8395      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8396      # The linker will automatically build a .lib file if we build a DLL.
8397      old_archive_From_new_cmds='true'
8398      # FIXME: Should let the user specify the lib program.
8399      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8400      fix_srcfile_path='`cygpath -w "$srcfile"`'
8401      enable_shared_with_static_runtimes=yes
8402      ;;
8403
8404    darwin* | rhapsody*)
8405      case $host_os in
8406        rhapsody* | darwin1.[012])
8407         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8408         ;;
8409       *) # Darwin 1.3 on
8410         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8411           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8412         else
8413           case ${MACOSX_DEPLOYMENT_TARGET} in
8414             10.[012])
8415               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8416               ;;
8417             10.*)
8418               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8419               ;;
8420           esac
8421         fi
8422         ;;
8423      esac
8424      archive_cmds_need_lc=no
8425      hardcode_direct=no
8426      hardcode_automatic=yes
8427      hardcode_shlibpath_var=unsupported
8428      whole_archive_flag_spec=''
8429      link_all_deplibs=yes
8430    if test "$GCC" = yes ; then
8431    	output_verbose_link_cmd='echo'
8432        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring $RC_CFLAGS'
8433      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8434      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8435      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}'
8436      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}'
8437    else
8438      case $cc_basename in
8439        xlc*)
8440         output_verbose_link_cmd='echo'
8441         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8442         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8443          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8444         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}'
8445          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}'
8446          ;;
8447       *)
8448         ld_shlibs=no
8449          ;;
8450      esac
8451    fi
8452      ;;
8453
8454    dgux*)
8455      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8456      hardcode_libdir_flag_spec='-L$libdir'
8457      hardcode_shlibpath_var=no
8458      ;;
8459
8460    freebsd1*)
8461      ld_shlibs=no
8462      ;;
8463
8464    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8465    # support.  Future versions do this automatically, but an explicit c++rt0.o
8466    # does not break anything, and helps significantly (at the cost of a little
8467    # extra space).
8468    freebsd2.2*)
8469      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8470      hardcode_libdir_flag_spec='-R$libdir'
8471      hardcode_direct=yes
8472      hardcode_shlibpath_var=no
8473      ;;
8474
8475    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8476    freebsd2*)
8477      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8478      hardcode_direct=yes
8479      hardcode_minus_L=yes
8480      hardcode_shlibpath_var=no
8481      ;;
8482
8483    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8484    freebsd* | kfreebsd*-gnu | dragonfly*)
8485      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8486      hardcode_libdir_flag_spec='-R$libdir'
8487      hardcode_direct=yes
8488      hardcode_shlibpath_var=no
8489      ;;
8490
8491    hpux9*)
8492      if test "$GCC" = yes; then
8493	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'
8494      else
8495	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'
8496      fi
8497      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8498      hardcode_libdir_separator=:
8499      hardcode_direct=yes
8500
8501      # hardcode_minus_L: Not really in the search PATH,
8502      # but as the default location of the library.
8503      hardcode_minus_L=yes
8504      export_dynamic_flag_spec='${wl}-E'
8505      ;;
8506
8507    hpux10*)
8508      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8509	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8510      else
8511	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8512      fi
8513      if test "$with_gnu_ld" = no; then
8514	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8515	hardcode_libdir_separator=:
8516
8517	hardcode_direct=yes
8518	export_dynamic_flag_spec='${wl}-E'
8519
8520	# hardcode_minus_L: Not really in the search PATH,
8521	# but as the default location of the library.
8522	hardcode_minus_L=yes
8523      fi
8524      ;;
8525
8526    hpux11*)
8527      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8528	case $host_cpu in
8529	hppa*64*)
8530	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8531	  ;;
8532	ia64*)
8533	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8534	  ;;
8535	*)
8536	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8537	  ;;
8538	esac
8539      else
8540	case $host_cpu in
8541	hppa*64*)
8542	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8543	  ;;
8544	ia64*)
8545	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8546	  ;;
8547	*)
8548	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8549	  ;;
8550	esac
8551      fi
8552      if test "$with_gnu_ld" = no; then
8553	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8554	hardcode_libdir_separator=:
8555
8556	case $host_cpu in
8557	hppa*64*|ia64*)
8558	  hardcode_libdir_flag_spec_ld='+b $libdir'
8559	  hardcode_direct=no
8560	  hardcode_shlibpath_var=no
8561	  ;;
8562	*)
8563	  hardcode_direct=yes
8564	  export_dynamic_flag_spec='${wl}-E'
8565
8566	  # hardcode_minus_L: Not really in the search PATH,
8567	  # but as the default location of the library.
8568	  hardcode_minus_L=yes
8569	  ;;
8570	esac
8571      fi
8572      ;;
8573
8574    irix5* | irix6* | nonstopux*)
8575      if test "$GCC" = yes; then
8576	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'
8577      else
8578	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'
8579	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8580      fi
8581      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8582      hardcode_libdir_separator=:
8583      link_all_deplibs=yes
8584      ;;
8585
8586    netbsd*)
8587      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8588	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8589      else
8590	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8591      fi
8592      hardcode_libdir_flag_spec='-R$libdir'
8593      hardcode_direct=yes
8594      hardcode_shlibpath_var=no
8595      ;;
8596
8597    newsos6)
8598      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8599      hardcode_direct=yes
8600      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8601      hardcode_libdir_separator=:
8602      hardcode_shlibpath_var=no
8603      ;;
8604
8605    openbsd*)
8606      hardcode_direct=yes
8607      hardcode_shlibpath_var=no
8608      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8609	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8610	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8611	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8612	export_dynamic_flag_spec='${wl}-E'
8613      else
8614       case $host_os in
8615	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8616	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8617	   hardcode_libdir_flag_spec='-R$libdir'
8618	   ;;
8619	 *)
8620	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8621	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8622	   ;;
8623       esac
8624      fi
8625      ;;
8626
8627    os2*)
8628      hardcode_libdir_flag_spec='-L$libdir'
8629      hardcode_minus_L=yes
8630      allow_undefined_flag=unsupported
8631      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'
8632      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8633      ;;
8634
8635    osf3*)
8636      if test "$GCC" = yes; then
8637	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8638	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'
8639      else
8640	allow_undefined_flag=' -expect_unresolved \*'
8641	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'
8642      fi
8643      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8644      hardcode_libdir_separator=:
8645      ;;
8646
8647    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8648      if test "$GCC" = yes; then
8649	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8650	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'
8651	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8652      else
8653	allow_undefined_flag=' -expect_unresolved \*'
8654	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'
8655	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8656	$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'
8657
8658	# Both c and cxx compiler support -rpath directly
8659	hardcode_libdir_flag_spec='-rpath $libdir'
8660      fi
8661      hardcode_libdir_separator=:
8662      ;;
8663
8664    solaris*)
8665      no_undefined_flag=' -z text'
8666      if test "$GCC" = yes; then
8667	wlarc='${wl}'
8668	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8669	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8670	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8671      else
8672	wlarc=''
8673	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8674	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8675  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8676      fi
8677      hardcode_libdir_flag_spec='-R$libdir'
8678      hardcode_shlibpath_var=no
8679      case $host_os in
8680      solaris2.[0-5] | solaris2.[0-5].*) ;;
8681      *)
8682 	# The compiler driver will combine linker options so we
8683 	# cannot just pass the convience library names through
8684 	# without $wl, iff we do not link with $LD.
8685 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8686 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8687 	case $wlarc in
8688 	'')
8689 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8690 	*)
8691 	  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' ;;
8692 	esac ;;
8693      esac
8694      link_all_deplibs=yes
8695      ;;
8696
8697    sunos4*)
8698      if test "x$host_vendor" = xsequent; then
8699	# Use $CC to link under sequent, because it throws in some extra .o
8700	# files that make .init and .fini sections work.
8701	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8702      else
8703	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8704      fi
8705      hardcode_libdir_flag_spec='-L$libdir'
8706      hardcode_direct=yes
8707      hardcode_minus_L=yes
8708      hardcode_shlibpath_var=no
8709      ;;
8710
8711    sysv4)
8712      case $host_vendor in
8713	sni)
8714	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8715	  hardcode_direct=yes # is this really true???
8716	;;
8717	siemens)
8718	  ## LD is ld it makes a PLAMLIB
8719	  ## CC just makes a GrossModule.
8720	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8721	  reload_cmds='$CC -r -o $output$reload_objs'
8722	  hardcode_direct=no
8723        ;;
8724	motorola)
8725	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8726	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8727	;;
8728      esac
8729      runpath_var='LD_RUN_PATH'
8730      hardcode_shlibpath_var=no
8731      ;;
8732
8733    sysv4.3*)
8734      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8735      hardcode_shlibpath_var=no
8736      export_dynamic_flag_spec='-Bexport'
8737      ;;
8738
8739    sysv4*MP*)
8740      if test -d /usr/nec; then
8741	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8742	hardcode_shlibpath_var=no
8743	runpath_var=LD_RUN_PATH
8744	hardcode_runpath_var=yes
8745	ld_shlibs=yes
8746      fi
8747      ;;
8748
8749    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8750      no_undefined_flag='${wl}-z,text'
8751      archive_cmds_need_lc=no
8752      hardcode_shlibpath_var=no
8753      runpath_var='LD_RUN_PATH'
8754
8755      if test "$GCC" = yes; then
8756	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8757	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8758      else
8759	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8760	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8761      fi
8762      ;;
8763
8764    sysv5* | sco3.2v5* | sco5v6*)
8765      # Note: We can NOT use -z defs as we might desire, because we do not
8766      # link with -lc, and that would cause any symbols used from libc to
8767      # always be unresolved, which means just about no library would
8768      # ever link correctly.  If we're not using GNU ld we use -z text
8769      # though, which does catch some bad symbols but isn't as heavy-handed
8770      # as -z defs.
8771      no_undefined_flag='${wl}-z,text'
8772      allow_undefined_flag='${wl}-z,nodefs'
8773      archive_cmds_need_lc=no
8774      hardcode_shlibpath_var=no
8775      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8776      hardcode_libdir_separator=':'
8777      link_all_deplibs=yes
8778      export_dynamic_flag_spec='${wl}-Bexport'
8779      runpath_var='LD_RUN_PATH'
8780
8781      if test "$GCC" = yes; then
8782	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8783	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8784      else
8785	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8786	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8787      fi
8788      ;;
8789
8790    uts4*)
8791      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8792      hardcode_libdir_flag_spec='-L$libdir'
8793      hardcode_shlibpath_var=no
8794      ;;
8795
8796    *)
8797      ld_shlibs=no
8798      ;;
8799    esac
8800  fi
8801
8802{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8803echo "${ECHO_T}$ld_shlibs" >&6; }
8804test "$ld_shlibs" = no && can_build_shared=no
8805
8806#
8807# Do we need to explicitly link libc?
8808#
8809case "x$archive_cmds_need_lc" in
8810x|xyes)
8811  # Assume -lc should be added
8812  archive_cmds_need_lc=yes
8813
8814  if test "$enable_shared" = yes && test "$GCC" = yes; then
8815    case $archive_cmds in
8816    *'~'*)
8817      # FIXME: we may have to deal with multi-command sequences.
8818      ;;
8819    '$CC '*)
8820      # Test whether the compiler implicitly links with -lc since on some
8821      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8822      # to ld, don't add -lc before -lgcc.
8823      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8824echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8825      $rm conftest*
8826      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8827
8828      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8829  (eval $ac_compile) 2>&5
8830  ac_status=$?
8831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832  (exit $ac_status); } 2>conftest.err; then
8833        soname=conftest
8834        lib=conftest
8835        libobjs=conftest.$ac_objext
8836        deplibs=
8837        wl=$lt_prog_compiler_wl
8838	pic_flag=$lt_prog_compiler_pic
8839        compiler_flags=-v
8840        linker_flags=-v
8841        verstring=
8842        output_objdir=.
8843        libname=conftest
8844        lt_save_allow_undefined_flag=$allow_undefined_flag
8845        allow_undefined_flag=
8846        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8847  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8848  ac_status=$?
8849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850  (exit $ac_status); }
8851        then
8852	  archive_cmds_need_lc=no
8853        else
8854	  archive_cmds_need_lc=yes
8855        fi
8856        allow_undefined_flag=$lt_save_allow_undefined_flag
8857      else
8858        cat conftest.err 1>&5
8859      fi
8860      $rm conftest*
8861      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8862echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8863      ;;
8864    esac
8865  fi
8866  ;;
8867esac
8868
8869{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8870echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8871library_names_spec=
8872libname_spec='lib$name'
8873soname_spec=
8874shrext_cmds=".so"
8875postinstall_cmds=
8876postuninstall_cmds=
8877finish_cmds=
8878finish_eval=
8879shlibpath_var=
8880shlibpath_overrides_runpath=unknown
8881version_type=none
8882dynamic_linker="$host_os ld.so"
8883sys_lib_dlsearch_path_spec="/lib /usr/lib"
8884if test "$GCC" = yes; then
8885  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8886  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8887    # if the path contains ";" then we assume it to be the separator
8888    # otherwise default to the standard path separator (i.e. ":") - it is
8889    # assumed that no part of a normal pathname contains ";" but that should
8890    # okay in the real world where ";" in dirpaths is itself problematic.
8891    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8892  else
8893    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8894  fi
8895else
8896  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8897fi
8898need_lib_prefix=unknown
8899hardcode_into_libs=no
8900
8901# when you set need_version to no, make sure it does not cause -set_version
8902# flags to be left without arguments
8903need_version=unknown
8904
8905case $host_os in
8906aix3*)
8907  version_type=linux
8908  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8909  shlibpath_var=LIBPATH
8910
8911  # AIX 3 has no versioning support, so we append a major version to the name.
8912  soname_spec='${libname}${release}${shared_ext}$major'
8913  ;;
8914
8915aix4* | aix5*)
8916  version_type=linux
8917  need_lib_prefix=no
8918  need_version=no
8919  hardcode_into_libs=yes
8920  if test "$host_cpu" = ia64; then
8921    # AIX 5 supports IA64
8922    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8923    shlibpath_var=LD_LIBRARY_PATH
8924  else
8925    # With GCC up to 2.95.x, collect2 would create an import file
8926    # for dependence libraries.  The import file would start with
8927    # the line `#! .'.  This would cause the generated library to
8928    # depend on `.', always an invalid library.  This was fixed in
8929    # development snapshots of GCC prior to 3.0.
8930    case $host_os in
8931      aix4 | aix4.[01] | aix4.[01].*)
8932      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8933	   echo ' yes '
8934	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8935	:
8936      else
8937	can_build_shared=no
8938      fi
8939      ;;
8940    esac
8941    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8942    # soname into executable. Probably we can add versioning support to
8943    # collect2, so additional links can be useful in future.
8944    if test "$aix_use_runtimelinking" = yes; then
8945      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8946      # instead of lib<name>.a to let people know that these are not
8947      # typical AIX shared libraries.
8948      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949    else
8950      # We preserve .a as extension for shared libraries through AIX4.2
8951      # and later when we are not doing run time linking.
8952      library_names_spec='${libname}${release}.a $libname.a'
8953      soname_spec='${libname}${release}${shared_ext}$major'
8954    fi
8955    shlibpath_var=LIBPATH
8956  fi
8957  ;;
8958
8959amigaos*)
8960  library_names_spec='$libname.ixlibrary $libname.a'
8961  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8962  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'
8963  ;;
8964
8965beos*)
8966  library_names_spec='${libname}${shared_ext}'
8967  dynamic_linker="$host_os ld.so"
8968  shlibpath_var=LIBRARY_PATH
8969  ;;
8970
8971bsdi[45]*)
8972  version_type=linux
8973  need_version=no
8974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8975  soname_spec='${libname}${release}${shared_ext}$major'
8976  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8977  shlibpath_var=LD_LIBRARY_PATH
8978  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8979  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8980  # the default ld.so.conf also contains /usr/contrib/lib and
8981  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8982  # libtool to hard-code these into programs
8983  ;;
8984
8985cygwin* | mingw* | pw32*)
8986  version_type=windows
8987  shrext_cmds=".dll"
8988  need_version=no
8989  need_lib_prefix=no
8990
8991  case $GCC,$host_os in
8992  yes,cygwin* | yes,mingw* | yes,pw32*)
8993    library_names_spec='$libname.dll.a'
8994    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8995    postinstall_cmds='base_file=`basename \${file}`~
8996      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8997      dldir=$destdir/`dirname \$dlpath`~
8998      test -d \$dldir || mkdir -p \$dldir~
8999      $install_prog $dir/$dlname \$dldir/$dlname~
9000      chmod a+x \$dldir/$dlname'
9001    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9002      dlpath=$dir/\$dldll~
9003       $rm \$dlpath'
9004    shlibpath_overrides_runpath=yes
9005
9006    case $host_os in
9007    cygwin*)
9008      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9009      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9010      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9011      ;;
9012    mingw*)
9013      # MinGW DLLs use traditional 'lib' prefix
9014      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9015      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9016      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9017        # It is most probably a Windows format PATH printed by
9018        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9019        # path with ; separators, and with drive letters. We can handle the
9020        # drive letters (cygwin fileutils understands them), so leave them,
9021        # especially as we might pass files found there to a mingw objdump,
9022        # which wouldn't understand a cygwinified path. Ahh.
9023        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9024      else
9025        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9026      fi
9027      ;;
9028    pw32*)
9029      # pw32 DLLs use 'pw' prefix rather than 'lib'
9030      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9031      ;;
9032    esac
9033    ;;
9034
9035  *)
9036    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9037    ;;
9038  esac
9039  dynamic_linker='Win32 ld.exe'
9040  # FIXME: first we should search . and the directory the executable is in
9041  shlibpath_var=PATH
9042  ;;
9043
9044darwin* | rhapsody*)
9045  dynamic_linker="$host_os dyld"
9046  version_type=darwin
9047  need_lib_prefix=no
9048  need_version=no
9049  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9050  soname_spec='${libname}${release}${major}$shared_ext'
9051  shlibpath_overrides_runpath=yes
9052  shlibpath_var=DYLD_LIBRARY_PATH
9053  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9054  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9055  if test "$GCC" = yes; then
9056    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"`
9057  else
9058    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9059  fi
9060  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9061  ;;
9062
9063dgux*)
9064  version_type=linux
9065  need_lib_prefix=no
9066  need_version=no
9067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9068  soname_spec='${libname}${release}${shared_ext}$major'
9069  shlibpath_var=LD_LIBRARY_PATH
9070  ;;
9071
9072freebsd1*)
9073  dynamic_linker=no
9074  ;;
9075
9076kfreebsd*-gnu)
9077  version_type=linux
9078  need_lib_prefix=no
9079  need_version=no
9080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9081  soname_spec='${libname}${release}${shared_ext}$major'
9082  shlibpath_var=LD_LIBRARY_PATH
9083  shlibpath_overrides_runpath=no
9084  hardcode_into_libs=yes
9085  dynamic_linker='GNU ld.so'
9086  ;;
9087
9088freebsd* | dragonfly*)
9089  # DragonFly does not have aout.  When/if they implement a new
9090  # versioning mechanism, adjust this.
9091  if test -x /usr/bin/objformat; then
9092    objformat=`/usr/bin/objformat`
9093  else
9094    case $host_os in
9095    freebsd[123]*) objformat=aout ;;
9096    *) objformat=elf ;;
9097    esac
9098  fi
9099  version_type=freebsd-$objformat
9100  case $version_type in
9101    freebsd-elf*)
9102      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9103      need_version=no
9104      need_lib_prefix=no
9105      ;;
9106    freebsd-*)
9107      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9108      need_version=yes
9109      ;;
9110  esac
9111  shlibpath_var=LD_LIBRARY_PATH
9112  case $host_os in
9113  freebsd2*)
9114    shlibpath_overrides_runpath=yes
9115    ;;
9116  freebsd3.[01]* | freebsdelf3.[01]*)
9117    shlibpath_overrides_runpath=yes
9118    hardcode_into_libs=yes
9119    ;;
9120  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9121  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9122    shlibpath_overrides_runpath=no
9123    hardcode_into_libs=yes
9124    ;;
9125  freebsd*) # from 4.6 on
9126    shlibpath_overrides_runpath=yes
9127    hardcode_into_libs=yes
9128    ;;
9129  esac
9130  ;;
9131
9132gnu*)
9133  version_type=linux
9134  need_lib_prefix=no
9135  need_version=no
9136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9137  soname_spec='${libname}${release}${shared_ext}$major'
9138  shlibpath_var=LD_LIBRARY_PATH
9139  hardcode_into_libs=yes
9140  ;;
9141
9142hpux9* | hpux10* | hpux11*)
9143  # Give a soname corresponding to the major version so that dld.sl refuses to
9144  # link against other versions.
9145  version_type=sunos
9146  need_lib_prefix=no
9147  need_version=no
9148  case $host_cpu in
9149  ia64*)
9150    shrext_cmds='.so'
9151    hardcode_into_libs=yes
9152    dynamic_linker="$host_os dld.so"
9153    shlibpath_var=LD_LIBRARY_PATH
9154    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9155    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156    soname_spec='${libname}${release}${shared_ext}$major'
9157    if test "X$HPUX_IA64_MODE" = X32; then
9158      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9159    else
9160      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9161    fi
9162    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9163    ;;
9164   hppa*64*)
9165     shrext_cmds='.sl'
9166     hardcode_into_libs=yes
9167     dynamic_linker="$host_os dld.sl"
9168     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9169     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9170     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171     soname_spec='${libname}${release}${shared_ext}$major'
9172     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9173     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9174     ;;
9175   *)
9176    shrext_cmds='.sl'
9177    dynamic_linker="$host_os dld.sl"
9178    shlibpath_var=SHLIB_PATH
9179    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9180    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181    soname_spec='${libname}${release}${shared_ext}$major'
9182    ;;
9183  esac
9184  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9185  postinstall_cmds='chmod 555 $lib'
9186  ;;
9187
9188interix3*)
9189  version_type=linux
9190  need_lib_prefix=no
9191  need_version=no
9192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9193  soname_spec='${libname}${release}${shared_ext}$major'
9194  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9195  shlibpath_var=LD_LIBRARY_PATH
9196  shlibpath_overrides_runpath=no
9197  hardcode_into_libs=yes
9198  ;;
9199
9200irix5* | irix6* | nonstopux*)
9201  case $host_os in
9202    nonstopux*) version_type=nonstopux ;;
9203    *)
9204	if test "$lt_cv_prog_gnu_ld" = yes; then
9205		version_type=linux
9206	else
9207		version_type=irix
9208	fi ;;
9209  esac
9210  need_lib_prefix=no
9211  need_version=no
9212  soname_spec='${libname}${release}${shared_ext}$major'
9213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9214  case $host_os in
9215  irix5* | nonstopux*)
9216    libsuff= shlibsuff=
9217    ;;
9218  *)
9219    case $LD in # libtool.m4 will add one of these switches to LD
9220    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9221      libsuff= shlibsuff= libmagic=32-bit;;
9222    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9223      libsuff=32 shlibsuff=N32 libmagic=N32;;
9224    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9225      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9226    *) libsuff= shlibsuff= libmagic=never-match;;
9227    esac
9228    ;;
9229  esac
9230  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9231  shlibpath_overrides_runpath=no
9232  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9233  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9234  hardcode_into_libs=yes
9235  ;;
9236
9237# No shared lib support for Linux oldld, aout, or coff.
9238linux*oldld* | linux*aout* | linux*coff*)
9239  dynamic_linker=no
9240  ;;
9241
9242# This must be Linux ELF.
9243linux*)
9244  version_type=linux
9245  need_lib_prefix=no
9246  need_version=no
9247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248  soname_spec='${libname}${release}${shared_ext}$major'
9249  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9250  shlibpath_var=LD_LIBRARY_PATH
9251  shlibpath_overrides_runpath=no
9252  # This implies no fast_install, which is unacceptable.
9253  # Some rework will be needed to allow for fast_install
9254  # before this can be enabled.
9255  hardcode_into_libs=yes
9256
9257  # Append ld.so.conf contents to the search path
9258  if test -f /etc/ld.so.conf; then
9259    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9260    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9261  fi
9262
9263  # We used to test for /lib/ld.so.1 and disable shared libraries on
9264  # powerpc, because MkLinux only supported shared libraries with the
9265  # GNU dynamic linker.  Since this was broken with cross compilers,
9266  # most powerpc-linux boxes support dynamic linking these days and
9267  # people can always --disable-shared, the test was removed, and we
9268  # assume the GNU/Linux dynamic linker is in use.
9269  dynamic_linker='GNU/Linux ld.so'
9270  ;;
9271
9272knetbsd*-gnu)
9273  version_type=linux
9274  need_lib_prefix=no
9275  need_version=no
9276  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9277  soname_spec='${libname}${release}${shared_ext}$major'
9278  shlibpath_var=LD_LIBRARY_PATH
9279  shlibpath_overrides_runpath=no
9280  hardcode_into_libs=yes
9281  dynamic_linker='GNU ld.so'
9282  ;;
9283
9284netbsd*)
9285  version_type=sunos
9286  need_lib_prefix=no
9287  need_version=no
9288  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9289    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9290    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9291    dynamic_linker='NetBSD (a.out) ld.so'
9292  else
9293    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9294    soname_spec='${libname}${release}${shared_ext}$major'
9295    dynamic_linker='NetBSD ld.elf_so'
9296  fi
9297  shlibpath_var=LD_LIBRARY_PATH
9298  shlibpath_overrides_runpath=yes
9299  hardcode_into_libs=yes
9300  ;;
9301
9302newsos6)
9303  version_type=linux
9304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305  shlibpath_var=LD_LIBRARY_PATH
9306  shlibpath_overrides_runpath=yes
9307  ;;
9308
9309nto-qnx*)
9310  version_type=linux
9311  need_lib_prefix=no
9312  need_version=no
9313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314  soname_spec='${libname}${release}${shared_ext}$major'
9315  shlibpath_var=LD_LIBRARY_PATH
9316  shlibpath_overrides_runpath=yes
9317  ;;
9318
9319openbsd*)
9320  version_type=sunos
9321  sys_lib_dlsearch_path_spec="/usr/lib"
9322  need_lib_prefix=no
9323  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9324  case $host_os in
9325    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9326    *)                         need_version=no  ;;
9327  esac
9328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9329  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9330  shlibpath_var=LD_LIBRARY_PATH
9331  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9332    case $host_os in
9333      openbsd2.[89] | openbsd2.[89].*)
9334	shlibpath_overrides_runpath=no
9335	;;
9336      *)
9337	shlibpath_overrides_runpath=yes
9338	;;
9339      esac
9340  else
9341    shlibpath_overrides_runpath=yes
9342  fi
9343  ;;
9344
9345os2*)
9346  libname_spec='$name'
9347  shrext_cmds=".dll"
9348  need_lib_prefix=no
9349  library_names_spec='$libname${shared_ext} $libname.a'
9350  dynamic_linker='OS/2 ld.exe'
9351  shlibpath_var=LIBPATH
9352  ;;
9353
9354osf3* | osf4* | osf5*)
9355  version_type=osf
9356  need_lib_prefix=no
9357  need_version=no
9358  soname_spec='${libname}${release}${shared_ext}$major'
9359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360  shlibpath_var=LD_LIBRARY_PATH
9361  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9362  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9363  ;;
9364
9365solaris*)
9366  version_type=linux
9367  need_lib_prefix=no
9368  need_version=no
9369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370  soname_spec='${libname}${release}${shared_ext}$major'
9371  shlibpath_var=LD_LIBRARY_PATH
9372  shlibpath_overrides_runpath=yes
9373  hardcode_into_libs=yes
9374  # ldd complains unless libraries are executable
9375  postinstall_cmds='chmod +x $lib'
9376  ;;
9377
9378sunos4*)
9379  version_type=sunos
9380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9381  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9382  shlibpath_var=LD_LIBRARY_PATH
9383  shlibpath_overrides_runpath=yes
9384  if test "$with_gnu_ld" = yes; then
9385    need_lib_prefix=no
9386  fi
9387  need_version=yes
9388  ;;
9389
9390sysv4 | sysv4.3*)
9391  version_type=linux
9392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393  soname_spec='${libname}${release}${shared_ext}$major'
9394  shlibpath_var=LD_LIBRARY_PATH
9395  case $host_vendor in
9396    sni)
9397      shlibpath_overrides_runpath=no
9398      need_lib_prefix=no
9399      export_dynamic_flag_spec='${wl}-Blargedynsym'
9400      runpath_var=LD_RUN_PATH
9401      ;;
9402    siemens)
9403      need_lib_prefix=no
9404      ;;
9405    motorola)
9406      need_lib_prefix=no
9407      need_version=no
9408      shlibpath_overrides_runpath=no
9409      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9410      ;;
9411  esac
9412  ;;
9413
9414sysv4*MP*)
9415  if test -d /usr/nec ;then
9416    version_type=linux
9417    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9418    soname_spec='$libname${shared_ext}.$major'
9419    shlibpath_var=LD_LIBRARY_PATH
9420  fi
9421  ;;
9422
9423sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9424  version_type=freebsd-elf
9425  need_lib_prefix=no
9426  need_version=no
9427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9428  soname_spec='${libname}${release}${shared_ext}$major'
9429  shlibpath_var=LD_LIBRARY_PATH
9430  hardcode_into_libs=yes
9431  if test "$with_gnu_ld" = yes; then
9432    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9433    shlibpath_overrides_runpath=no
9434  else
9435    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9436    shlibpath_overrides_runpath=yes
9437    case $host_os in
9438      sco3.2v5*)
9439        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9440	;;
9441    esac
9442  fi
9443  sys_lib_dlsearch_path_spec='/usr/lib'
9444  ;;
9445
9446uts4*)
9447  version_type=linux
9448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449  soname_spec='${libname}${release}${shared_ext}$major'
9450  shlibpath_var=LD_LIBRARY_PATH
9451  ;;
9452
9453*)
9454  dynamic_linker=no
9455  ;;
9456esac
9457{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9458echo "${ECHO_T}$dynamic_linker" >&6; }
9459test "$dynamic_linker" = no && can_build_shared=no
9460
9461variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9462if test "$GCC" = yes; then
9463  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9464fi
9465
9466{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9467echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9468hardcode_action=
9469if test -n "$hardcode_libdir_flag_spec" || \
9470   test -n "$runpath_var" || \
9471   test "X$hardcode_automatic" = "Xyes" ; then
9472
9473  # We can hardcode non-existant directories.
9474  if test "$hardcode_direct" != no &&
9475     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9476     # have to relink, otherwise we might link with an installed library
9477     # when we should be linking with a yet-to-be-installed one
9478     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9479     test "$hardcode_minus_L" != no; then
9480    # Linking always hardcodes the temporary library directory.
9481    hardcode_action=relink
9482  else
9483    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9484    hardcode_action=immediate
9485  fi
9486else
9487  # We cannot hardcode anything, or else we can only hardcode existing
9488  # directories.
9489  hardcode_action=unsupported
9490fi
9491{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9492echo "${ECHO_T}$hardcode_action" >&6; }
9493
9494if test "$hardcode_action" = relink; then
9495  # Fast installation is not supported
9496  enable_fast_install=no
9497elif test "$shlibpath_overrides_runpath" = yes ||
9498     test "$enable_shared" = no; then
9499  # Fast installation is not necessary
9500  enable_fast_install=needless
9501fi
9502
9503striplib=
9504old_striplib=
9505{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9506echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9507if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9508  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9509  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9510  { echo "$as_me:$LINENO: result: yes" >&5
9511echo "${ECHO_T}yes" >&6; }
9512else
9513# FIXME - insert some real tests, host_os isn't really good enough
9514  case $host_os in
9515   darwin*)
9516       if test -n "$STRIP" ; then
9517         striplib="$STRIP -x"
9518         { echo "$as_me:$LINENO: result: yes" >&5
9519echo "${ECHO_T}yes" >&6; }
9520       else
9521  { echo "$as_me:$LINENO: result: no" >&5
9522echo "${ECHO_T}no" >&6; }
9523fi
9524       ;;
9525   *)
9526  { echo "$as_me:$LINENO: result: no" >&5
9527echo "${ECHO_T}no" >&6; }
9528    ;;
9529  esac
9530fi
9531
9532if test "x$enable_dlopen" != xyes; then
9533  enable_dlopen=unknown
9534  enable_dlopen_self=unknown
9535  enable_dlopen_self_static=unknown
9536else
9537  lt_cv_dlopen=no
9538  lt_cv_dlopen_libs=
9539
9540  case $host_os in
9541  beos*)
9542    lt_cv_dlopen="load_add_on"
9543    lt_cv_dlopen_libs=
9544    lt_cv_dlopen_self=yes
9545    ;;
9546
9547  mingw* | pw32*)
9548    lt_cv_dlopen="LoadLibrary"
9549    lt_cv_dlopen_libs=
9550   ;;
9551
9552  cygwin*)
9553    lt_cv_dlopen="dlopen"
9554    lt_cv_dlopen_libs=
9555   ;;
9556
9557  darwin*)
9558  # if libdl is installed we need to link against it
9559    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9560echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9561if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9562  echo $ECHO_N "(cached) $ECHO_C" >&6
9563else
9564  ac_check_lib_save_LIBS=$LIBS
9565LIBS="-ldl  $LIBS"
9566cat >conftest.$ac_ext <<_ACEOF
9567/* confdefs.h.  */
9568_ACEOF
9569cat confdefs.h >>conftest.$ac_ext
9570cat >>conftest.$ac_ext <<_ACEOF
9571/* end confdefs.h.  */
9572
9573/* Override any GCC internal prototype to avoid an error.
9574   Use char because int might match the return type of a GCC
9575   builtin and then its argument prototype would still apply.  */
9576#ifdef __cplusplus
9577extern "C"
9578#endif
9579char dlopen ();
9580int
9581main ()
9582{
9583return dlopen ();
9584  ;
9585  return 0;
9586}
9587_ACEOF
9588rm -f conftest.$ac_objext conftest$ac_exeext
9589if { (ac_try="$ac_link"
9590case "(($ac_try" in
9591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592  *) ac_try_echo=$ac_try;;
9593esac
9594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9595  (eval "$ac_link") 2>conftest.er1
9596  ac_status=$?
9597  grep -v '^ *+' conftest.er1 >conftest.err
9598  rm -f conftest.er1
9599  cat conftest.err >&5
9600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601  (exit $ac_status); } &&
9602	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9603  { (case "(($ac_try" in
9604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605  *) ac_try_echo=$ac_try;;
9606esac
9607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608  (eval "$ac_try") 2>&5
9609  ac_status=$?
9610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611  (exit $ac_status); }; } &&
9612	 { ac_try='test -s conftest$ac_exeext'
9613  { (case "(($ac_try" in
9614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615  *) ac_try_echo=$ac_try;;
9616esac
9617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9618  (eval "$ac_try") 2>&5
9619  ac_status=$?
9620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621  (exit $ac_status); }; }; then
9622  ac_cv_lib_dl_dlopen=yes
9623else
9624  echo "$as_me: failed program was:" >&5
9625sed 's/^/| /' conftest.$ac_ext >&5
9626
9627	ac_cv_lib_dl_dlopen=no
9628fi
9629
9630rm -f core conftest.err conftest.$ac_objext \
9631      conftest$ac_exeext conftest.$ac_ext
9632LIBS=$ac_check_lib_save_LIBS
9633fi
9634{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9635echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9636if test $ac_cv_lib_dl_dlopen = yes; then
9637  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9638else
9639
9640    lt_cv_dlopen="dyld"
9641    lt_cv_dlopen_libs=
9642    lt_cv_dlopen_self=yes
9643
9644fi
9645
9646   ;;
9647
9648  *)
9649    { echo "$as_me:$LINENO: checking for shl_load" >&5
9650echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9651if test "${ac_cv_func_shl_load+set}" = set; then
9652  echo $ECHO_N "(cached) $ECHO_C" >&6
9653else
9654  cat >conftest.$ac_ext <<_ACEOF
9655/* confdefs.h.  */
9656_ACEOF
9657cat confdefs.h >>conftest.$ac_ext
9658cat >>conftest.$ac_ext <<_ACEOF
9659/* end confdefs.h.  */
9660/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9661   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9662#define shl_load innocuous_shl_load
9663
9664/* System header to define __stub macros and hopefully few prototypes,
9665    which can conflict with char shl_load (); below.
9666    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667    <limits.h> exists even on freestanding compilers.  */
9668
9669#ifdef __STDC__
9670# include <limits.h>
9671#else
9672# include <assert.h>
9673#endif
9674
9675#undef shl_load
9676
9677/* Override any GCC internal prototype to avoid an error.
9678   Use char because int might match the return type of a GCC
9679   builtin and then its argument prototype would still apply.  */
9680#ifdef __cplusplus
9681extern "C"
9682#endif
9683char shl_load ();
9684/* The GNU C library defines this for functions which it implements
9685    to always fail with ENOSYS.  Some functions are actually named
9686    something starting with __ and the normal name is an alias.  */
9687#if defined __stub_shl_load || defined __stub___shl_load
9688choke me
9689#endif
9690
9691int
9692main ()
9693{
9694return shl_load ();
9695  ;
9696  return 0;
9697}
9698_ACEOF
9699rm -f conftest.$ac_objext conftest$ac_exeext
9700if { (ac_try="$ac_link"
9701case "(($ac_try" in
9702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703  *) ac_try_echo=$ac_try;;
9704esac
9705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706  (eval "$ac_link") 2>conftest.er1
9707  ac_status=$?
9708  grep -v '^ *+' conftest.er1 >conftest.err
9709  rm -f conftest.er1
9710  cat conftest.err >&5
9711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712  (exit $ac_status); } &&
9713	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9714  { (case "(($ac_try" in
9715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716  *) ac_try_echo=$ac_try;;
9717esac
9718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719  (eval "$ac_try") 2>&5
9720  ac_status=$?
9721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722  (exit $ac_status); }; } &&
9723	 { ac_try='test -s conftest$ac_exeext'
9724  { (case "(($ac_try" in
9725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726  *) ac_try_echo=$ac_try;;
9727esac
9728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729  (eval "$ac_try") 2>&5
9730  ac_status=$?
9731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732  (exit $ac_status); }; }; then
9733  ac_cv_func_shl_load=yes
9734else
9735  echo "$as_me: failed program was:" >&5
9736sed 's/^/| /' conftest.$ac_ext >&5
9737
9738	ac_cv_func_shl_load=no
9739fi
9740
9741rm -f core conftest.err conftest.$ac_objext \
9742      conftest$ac_exeext conftest.$ac_ext
9743fi
9744{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9745echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9746if test $ac_cv_func_shl_load = yes; then
9747  lt_cv_dlopen="shl_load"
9748else
9749  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9750echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9751if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9752  echo $ECHO_N "(cached) $ECHO_C" >&6
9753else
9754  ac_check_lib_save_LIBS=$LIBS
9755LIBS="-ldld  $LIBS"
9756cat >conftest.$ac_ext <<_ACEOF
9757/* confdefs.h.  */
9758_ACEOF
9759cat confdefs.h >>conftest.$ac_ext
9760cat >>conftest.$ac_ext <<_ACEOF
9761/* end confdefs.h.  */
9762
9763/* Override any GCC internal prototype to avoid an error.
9764   Use char because int might match the return type of a GCC
9765   builtin and then its argument prototype would still apply.  */
9766#ifdef __cplusplus
9767extern "C"
9768#endif
9769char shl_load ();
9770int
9771main ()
9772{
9773return shl_load ();
9774  ;
9775  return 0;
9776}
9777_ACEOF
9778rm -f conftest.$ac_objext conftest$ac_exeext
9779if { (ac_try="$ac_link"
9780case "(($ac_try" in
9781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782  *) ac_try_echo=$ac_try;;
9783esac
9784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785  (eval "$ac_link") 2>conftest.er1
9786  ac_status=$?
9787  grep -v '^ *+' conftest.er1 >conftest.err
9788  rm -f conftest.er1
9789  cat conftest.err >&5
9790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791  (exit $ac_status); } &&
9792	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9793  { (case "(($ac_try" in
9794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795  *) ac_try_echo=$ac_try;;
9796esac
9797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798  (eval "$ac_try") 2>&5
9799  ac_status=$?
9800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801  (exit $ac_status); }; } &&
9802	 { ac_try='test -s conftest$ac_exeext'
9803  { (case "(($ac_try" in
9804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805  *) ac_try_echo=$ac_try;;
9806esac
9807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808  (eval "$ac_try") 2>&5
9809  ac_status=$?
9810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811  (exit $ac_status); }; }; then
9812  ac_cv_lib_dld_shl_load=yes
9813else
9814  echo "$as_me: failed program was:" >&5
9815sed 's/^/| /' conftest.$ac_ext >&5
9816
9817	ac_cv_lib_dld_shl_load=no
9818fi
9819
9820rm -f core conftest.err conftest.$ac_objext \
9821      conftest$ac_exeext conftest.$ac_ext
9822LIBS=$ac_check_lib_save_LIBS
9823fi
9824{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9825echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9826if test $ac_cv_lib_dld_shl_load = yes; then
9827  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9828else
9829  { echo "$as_me:$LINENO: checking for dlopen" >&5
9830echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9831if test "${ac_cv_func_dlopen+set}" = set; then
9832  echo $ECHO_N "(cached) $ECHO_C" >&6
9833else
9834  cat >conftest.$ac_ext <<_ACEOF
9835/* confdefs.h.  */
9836_ACEOF
9837cat confdefs.h >>conftest.$ac_ext
9838cat >>conftest.$ac_ext <<_ACEOF
9839/* end confdefs.h.  */
9840/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9841   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9842#define dlopen innocuous_dlopen
9843
9844/* System header to define __stub macros and hopefully few prototypes,
9845    which can conflict with char dlopen (); below.
9846    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9847    <limits.h> exists even on freestanding compilers.  */
9848
9849#ifdef __STDC__
9850# include <limits.h>
9851#else
9852# include <assert.h>
9853#endif
9854
9855#undef dlopen
9856
9857/* Override any GCC internal prototype to avoid an error.
9858   Use char because int might match the return type of a GCC
9859   builtin and then its argument prototype would still apply.  */
9860#ifdef __cplusplus
9861extern "C"
9862#endif
9863char dlopen ();
9864/* The GNU C library defines this for functions which it implements
9865    to always fail with ENOSYS.  Some functions are actually named
9866    something starting with __ and the normal name is an alias.  */
9867#if defined __stub_dlopen || defined __stub___dlopen
9868choke me
9869#endif
9870
9871int
9872main ()
9873{
9874return dlopen ();
9875  ;
9876  return 0;
9877}
9878_ACEOF
9879rm -f conftest.$ac_objext conftest$ac_exeext
9880if { (ac_try="$ac_link"
9881case "(($ac_try" in
9882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883  *) ac_try_echo=$ac_try;;
9884esac
9885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886  (eval "$ac_link") 2>conftest.er1
9887  ac_status=$?
9888  grep -v '^ *+' conftest.er1 >conftest.err
9889  rm -f conftest.er1
9890  cat conftest.err >&5
9891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892  (exit $ac_status); } &&
9893	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9894  { (case "(($ac_try" in
9895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896  *) ac_try_echo=$ac_try;;
9897esac
9898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899  (eval "$ac_try") 2>&5
9900  ac_status=$?
9901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902  (exit $ac_status); }; } &&
9903	 { ac_try='test -s conftest$ac_exeext'
9904  { (case "(($ac_try" in
9905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906  *) ac_try_echo=$ac_try;;
9907esac
9908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909  (eval "$ac_try") 2>&5
9910  ac_status=$?
9911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912  (exit $ac_status); }; }; then
9913  ac_cv_func_dlopen=yes
9914else
9915  echo "$as_me: failed program was:" >&5
9916sed 's/^/| /' conftest.$ac_ext >&5
9917
9918	ac_cv_func_dlopen=no
9919fi
9920
9921rm -f core conftest.err conftest.$ac_objext \
9922      conftest$ac_exeext conftest.$ac_ext
9923fi
9924{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9925echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9926if test $ac_cv_func_dlopen = yes; then
9927  lt_cv_dlopen="dlopen"
9928else
9929  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9930echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9931if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9932  echo $ECHO_N "(cached) $ECHO_C" >&6
9933else
9934  ac_check_lib_save_LIBS=$LIBS
9935LIBS="-ldl  $LIBS"
9936cat >conftest.$ac_ext <<_ACEOF
9937/* confdefs.h.  */
9938_ACEOF
9939cat confdefs.h >>conftest.$ac_ext
9940cat >>conftest.$ac_ext <<_ACEOF
9941/* end confdefs.h.  */
9942
9943/* Override any GCC internal prototype to avoid an error.
9944   Use char because int might match the return type of a GCC
9945   builtin and then its argument prototype would still apply.  */
9946#ifdef __cplusplus
9947extern "C"
9948#endif
9949char dlopen ();
9950int
9951main ()
9952{
9953return dlopen ();
9954  ;
9955  return 0;
9956}
9957_ACEOF
9958rm -f conftest.$ac_objext conftest$ac_exeext
9959if { (ac_try="$ac_link"
9960case "(($ac_try" in
9961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962  *) ac_try_echo=$ac_try;;
9963esac
9964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965  (eval "$ac_link") 2>conftest.er1
9966  ac_status=$?
9967  grep -v '^ *+' conftest.er1 >conftest.err
9968  rm -f conftest.er1
9969  cat conftest.err >&5
9970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971  (exit $ac_status); } &&
9972	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9973  { (case "(($ac_try" in
9974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975  *) ac_try_echo=$ac_try;;
9976esac
9977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978  (eval "$ac_try") 2>&5
9979  ac_status=$?
9980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981  (exit $ac_status); }; } &&
9982	 { ac_try='test -s conftest$ac_exeext'
9983  { (case "(($ac_try" in
9984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985  *) ac_try_echo=$ac_try;;
9986esac
9987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988  (eval "$ac_try") 2>&5
9989  ac_status=$?
9990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991  (exit $ac_status); }; }; then
9992  ac_cv_lib_dl_dlopen=yes
9993else
9994  echo "$as_me: failed program was:" >&5
9995sed 's/^/| /' conftest.$ac_ext >&5
9996
9997	ac_cv_lib_dl_dlopen=no
9998fi
9999
10000rm -f core conftest.err conftest.$ac_objext \
10001      conftest$ac_exeext conftest.$ac_ext
10002LIBS=$ac_check_lib_save_LIBS
10003fi
10004{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10005echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10006if test $ac_cv_lib_dl_dlopen = yes; then
10007  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10008else
10009  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10010echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10011if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10012  echo $ECHO_N "(cached) $ECHO_C" >&6
10013else
10014  ac_check_lib_save_LIBS=$LIBS
10015LIBS="-lsvld  $LIBS"
10016cat >conftest.$ac_ext <<_ACEOF
10017/* confdefs.h.  */
10018_ACEOF
10019cat confdefs.h >>conftest.$ac_ext
10020cat >>conftest.$ac_ext <<_ACEOF
10021/* end confdefs.h.  */
10022
10023/* Override any GCC internal prototype to avoid an error.
10024   Use char because int might match the return type of a GCC
10025   builtin and then its argument prototype would still apply.  */
10026#ifdef __cplusplus
10027extern "C"
10028#endif
10029char dlopen ();
10030int
10031main ()
10032{
10033return dlopen ();
10034  ;
10035  return 0;
10036}
10037_ACEOF
10038rm -f conftest.$ac_objext conftest$ac_exeext
10039if { (ac_try="$ac_link"
10040case "(($ac_try" in
10041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042  *) ac_try_echo=$ac_try;;
10043esac
10044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045  (eval "$ac_link") 2>conftest.er1
10046  ac_status=$?
10047  grep -v '^ *+' conftest.er1 >conftest.err
10048  rm -f conftest.er1
10049  cat conftest.err >&5
10050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051  (exit $ac_status); } &&
10052	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10053  { (case "(($ac_try" in
10054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055  *) ac_try_echo=$ac_try;;
10056esac
10057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058  (eval "$ac_try") 2>&5
10059  ac_status=$?
10060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061  (exit $ac_status); }; } &&
10062	 { ac_try='test -s conftest$ac_exeext'
10063  { (case "(($ac_try" in
10064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065  *) ac_try_echo=$ac_try;;
10066esac
10067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068  (eval "$ac_try") 2>&5
10069  ac_status=$?
10070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071  (exit $ac_status); }; }; then
10072  ac_cv_lib_svld_dlopen=yes
10073else
10074  echo "$as_me: failed program was:" >&5
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
10077	ac_cv_lib_svld_dlopen=no
10078fi
10079
10080rm -f core conftest.err conftest.$ac_objext \
10081      conftest$ac_exeext conftest.$ac_ext
10082LIBS=$ac_check_lib_save_LIBS
10083fi
10084{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10085echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10086if test $ac_cv_lib_svld_dlopen = yes; then
10087  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10088else
10089  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10090echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10091if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10092  echo $ECHO_N "(cached) $ECHO_C" >&6
10093else
10094  ac_check_lib_save_LIBS=$LIBS
10095LIBS="-ldld  $LIBS"
10096cat >conftest.$ac_ext <<_ACEOF
10097/* confdefs.h.  */
10098_ACEOF
10099cat confdefs.h >>conftest.$ac_ext
10100cat >>conftest.$ac_ext <<_ACEOF
10101/* end confdefs.h.  */
10102
10103/* Override any GCC internal prototype to avoid an error.
10104   Use char because int might match the return type of a GCC
10105   builtin and then its argument prototype would still apply.  */
10106#ifdef __cplusplus
10107extern "C"
10108#endif
10109char dld_link ();
10110int
10111main ()
10112{
10113return dld_link ();
10114  ;
10115  return 0;
10116}
10117_ACEOF
10118rm -f conftest.$ac_objext conftest$ac_exeext
10119if { (ac_try="$ac_link"
10120case "(($ac_try" in
10121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122  *) ac_try_echo=$ac_try;;
10123esac
10124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125  (eval "$ac_link") 2>conftest.er1
10126  ac_status=$?
10127  grep -v '^ *+' conftest.er1 >conftest.err
10128  rm -f conftest.er1
10129  cat conftest.err >&5
10130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131  (exit $ac_status); } &&
10132	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10133  { (case "(($ac_try" in
10134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135  *) ac_try_echo=$ac_try;;
10136esac
10137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138  (eval "$ac_try") 2>&5
10139  ac_status=$?
10140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141  (exit $ac_status); }; } &&
10142	 { ac_try='test -s conftest$ac_exeext'
10143  { (case "(($ac_try" in
10144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145  *) ac_try_echo=$ac_try;;
10146esac
10147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148  (eval "$ac_try") 2>&5
10149  ac_status=$?
10150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151  (exit $ac_status); }; }; then
10152  ac_cv_lib_dld_dld_link=yes
10153else
10154  echo "$as_me: failed program was:" >&5
10155sed 's/^/| /' conftest.$ac_ext >&5
10156
10157	ac_cv_lib_dld_dld_link=no
10158fi
10159
10160rm -f core conftest.err conftest.$ac_objext \
10161      conftest$ac_exeext conftest.$ac_ext
10162LIBS=$ac_check_lib_save_LIBS
10163fi
10164{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10165echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10166if test $ac_cv_lib_dld_dld_link = yes; then
10167  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10168fi
10169
10170
10171fi
10172
10173
10174fi
10175
10176
10177fi
10178
10179
10180fi
10181
10182
10183fi
10184
10185    ;;
10186  esac
10187
10188  if test "x$lt_cv_dlopen" != xno; then
10189    enable_dlopen=yes
10190  else
10191    enable_dlopen=no
10192  fi
10193
10194  case $lt_cv_dlopen in
10195  dlopen)
10196    save_CPPFLAGS="$CPPFLAGS"
10197    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10198
10199    save_LDFLAGS="$LDFLAGS"
10200    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10201
10202    save_LIBS="$LIBS"
10203    LIBS="$lt_cv_dlopen_libs $LIBS"
10204
10205    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10206echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10207if test "${lt_cv_dlopen_self+set}" = set; then
10208  echo $ECHO_N "(cached) $ECHO_C" >&6
10209else
10210  	  if test "$cross_compiling" = yes; then :
10211  lt_cv_dlopen_self=cross
10212else
10213  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10214  lt_status=$lt_dlunknown
10215  cat > conftest.$ac_ext <<EOF
10216#line 10216 "configure"
10217#include "confdefs.h"
10218
10219#if HAVE_DLFCN_H
10220#include <dlfcn.h>
10221#endif
10222
10223#include <stdio.h>
10224
10225#ifdef RTLD_GLOBAL
10226#  define LT_DLGLOBAL		RTLD_GLOBAL
10227#else
10228#  ifdef DL_GLOBAL
10229#    define LT_DLGLOBAL		DL_GLOBAL
10230#  else
10231#    define LT_DLGLOBAL		0
10232#  endif
10233#endif
10234
10235/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10236   find out it does not work in some platform. */
10237#ifndef LT_DLLAZY_OR_NOW
10238#  ifdef RTLD_LAZY
10239#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10240#  else
10241#    ifdef DL_LAZY
10242#      define LT_DLLAZY_OR_NOW		DL_LAZY
10243#    else
10244#      ifdef RTLD_NOW
10245#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10246#      else
10247#        ifdef DL_NOW
10248#          define LT_DLLAZY_OR_NOW	DL_NOW
10249#        else
10250#          define LT_DLLAZY_OR_NOW	0
10251#        endif
10252#      endif
10253#    endif
10254#  endif
10255#endif
10256
10257#ifdef __cplusplus
10258extern "C" void exit (int);
10259#endif
10260
10261void fnord() { int i=42;}
10262int main ()
10263{
10264  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10265  int status = $lt_dlunknown;
10266
10267  if (self)
10268    {
10269      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10270      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10271      /* dlclose (self); */
10272    }
10273  else
10274    puts (dlerror ());
10275
10276    exit (status);
10277}
10278EOF
10279  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10280  (eval $ac_link) 2>&5
10281  ac_status=$?
10282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10284    (./conftest; exit; ) >&5 2>/dev/null
10285    lt_status=$?
10286    case x$lt_status in
10287      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10288      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10289      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10290    esac
10291  else :
10292    # compilation failed
10293    lt_cv_dlopen_self=no
10294  fi
10295fi
10296rm -fr conftest*
10297
10298
10299fi
10300{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10301echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10302
10303    if test "x$lt_cv_dlopen_self" = xyes; then
10304      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10305      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10306echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10307if test "${lt_cv_dlopen_self_static+set}" = set; then
10308  echo $ECHO_N "(cached) $ECHO_C" >&6
10309else
10310  	  if test "$cross_compiling" = yes; then :
10311  lt_cv_dlopen_self_static=cross
10312else
10313  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10314  lt_status=$lt_dlunknown
10315  cat > conftest.$ac_ext <<EOF
10316#line 10316 "configure"
10317#include "confdefs.h"
10318
10319#if HAVE_DLFCN_H
10320#include <dlfcn.h>
10321#endif
10322
10323#include <stdio.h>
10324
10325#ifdef RTLD_GLOBAL
10326#  define LT_DLGLOBAL		RTLD_GLOBAL
10327#else
10328#  ifdef DL_GLOBAL
10329#    define LT_DLGLOBAL		DL_GLOBAL
10330#  else
10331#    define LT_DLGLOBAL		0
10332#  endif
10333#endif
10334
10335/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10336   find out it does not work in some platform. */
10337#ifndef LT_DLLAZY_OR_NOW
10338#  ifdef RTLD_LAZY
10339#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10340#  else
10341#    ifdef DL_LAZY
10342#      define LT_DLLAZY_OR_NOW		DL_LAZY
10343#    else
10344#      ifdef RTLD_NOW
10345#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10346#      else
10347#        ifdef DL_NOW
10348#          define LT_DLLAZY_OR_NOW	DL_NOW
10349#        else
10350#          define LT_DLLAZY_OR_NOW	0
10351#        endif
10352#      endif
10353#    endif
10354#  endif
10355#endif
10356
10357#ifdef __cplusplus
10358extern "C" void exit (int);
10359#endif
10360
10361void fnord() { int i=42;}
10362int main ()
10363{
10364  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10365  int status = $lt_dlunknown;
10366
10367  if (self)
10368    {
10369      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10370      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10371      /* dlclose (self); */
10372    }
10373  else
10374    puts (dlerror ());
10375
10376    exit (status);
10377}
10378EOF
10379  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10380  (eval $ac_link) 2>&5
10381  ac_status=$?
10382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10384    (./conftest; exit; ) >&5 2>/dev/null
10385    lt_status=$?
10386    case x$lt_status in
10387      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10388      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10389      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10390    esac
10391  else :
10392    # compilation failed
10393    lt_cv_dlopen_self_static=no
10394  fi
10395fi
10396rm -fr conftest*
10397
10398
10399fi
10400{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10401echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10402    fi
10403
10404    CPPFLAGS="$save_CPPFLAGS"
10405    LDFLAGS="$save_LDFLAGS"
10406    LIBS="$save_LIBS"
10407    ;;
10408  esac
10409
10410  case $lt_cv_dlopen_self in
10411  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10412  *) enable_dlopen_self=unknown ;;
10413  esac
10414
10415  case $lt_cv_dlopen_self_static in
10416  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10417  *) enable_dlopen_self_static=unknown ;;
10418  esac
10419fi
10420
10421
10422# Report which library types will actually be built
10423{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10424echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10425{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10426echo "${ECHO_T}$can_build_shared" >&6; }
10427
10428{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10429echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10430test "$can_build_shared" = "no" && enable_shared=no
10431
10432# On AIX, shared libraries and static libraries use the same namespace, and
10433# are all built from PIC.
10434case $host_os in
10435aix3*)
10436  test "$enable_shared" = yes && enable_static=no
10437  if test -n "$RANLIB"; then
10438    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10439    postinstall_cmds='$RANLIB $lib'
10440  fi
10441  ;;
10442
10443aix4* | aix5*)
10444  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10445    test "$enable_shared" = yes && enable_static=no
10446  fi
10447    ;;
10448esac
10449{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10450echo "${ECHO_T}$enable_shared" >&6; }
10451
10452{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10453echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10454# Make sure either enable_shared or enable_static is yes.
10455test "$enable_shared" = yes || enable_static=yes
10456{ echo "$as_me:$LINENO: result: $enable_static" >&5
10457echo "${ECHO_T}$enable_static" >&6; }
10458
10459# The else clause should only fire when bootstrapping the
10460# libtool distribution, otherwise you forgot to ship ltmain.sh
10461# with your package, and you will get complaints that there are
10462# no rules to generate ltmain.sh.
10463if test -f "$ltmain"; then
10464  # See if we are running on zsh, and set the options which allow our commands through
10465  # without removal of \ escapes.
10466  if test -n "${ZSH_VERSION+set}" ; then
10467    setopt NO_GLOB_SUBST
10468  fi
10469  # Now quote all the things that may contain metacharacters while being
10470  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10471  # variables and quote the copies for generation of the libtool script.
10472  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10473    SED SHELL STRIP \
10474    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10475    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10476    deplibs_check_method reload_flag reload_cmds need_locks \
10477    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10478    lt_cv_sys_global_symbol_to_c_name_address \
10479    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10480    old_postinstall_cmds old_postuninstall_cmds \
10481    compiler \
10482    CC \
10483    LD \
10484    lt_prog_compiler_wl \
10485    lt_prog_compiler_pic \
10486    lt_prog_compiler_static \
10487    lt_prog_compiler_no_builtin_flag \
10488    export_dynamic_flag_spec \
10489    thread_safe_flag_spec \
10490    whole_archive_flag_spec \
10491    enable_shared_with_static_runtimes \
10492    old_archive_cmds \
10493    old_archive_from_new_cmds \
10494    predep_objects \
10495    postdep_objects \
10496    predeps \
10497    postdeps \
10498    compiler_lib_search_path \
10499    archive_cmds \
10500    archive_expsym_cmds \
10501    postinstall_cmds \
10502    postuninstall_cmds \
10503    old_archive_from_expsyms_cmds \
10504    allow_undefined_flag \
10505    no_undefined_flag \
10506    export_symbols_cmds \
10507    hardcode_libdir_flag_spec \
10508    hardcode_libdir_flag_spec_ld \
10509    hardcode_libdir_separator \
10510    hardcode_automatic \
10511    module_cmds \
10512    module_expsym_cmds \
10513    lt_cv_prog_compiler_c_o \
10514    exclude_expsyms \
10515    include_expsyms; do
10516
10517    case $var in
10518    old_archive_cmds | \
10519    old_archive_from_new_cmds | \
10520    archive_cmds | \
10521    archive_expsym_cmds | \
10522    module_cmds | \
10523    module_expsym_cmds | \
10524    old_archive_from_expsyms_cmds | \
10525    export_symbols_cmds | \
10526    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10527    postinstall_cmds | postuninstall_cmds | \
10528    old_postinstall_cmds | old_postuninstall_cmds | \
10529    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10530      # Double-quote double-evaled strings.
10531      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10532      ;;
10533    *)
10534      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10535      ;;
10536    esac
10537  done
10538
10539  case $lt_echo in
10540  *'\$0 --fallback-echo"')
10541    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10542    ;;
10543  esac
10544
10545cfgfile="${ofile}T"
10546  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10547  $rm -f "$cfgfile"
10548  { echo "$as_me:$LINENO: creating $ofile" >&5
10549echo "$as_me: creating $ofile" >&6;}
10550
10551  cat <<__EOF__ >> "$cfgfile"
10552#! $SHELL
10553
10554# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10555# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10556# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10557#
10558# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10559# Free Software Foundation, Inc.
10560#
10561# This file is part of GNU Libtool:
10562# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10563#
10564# This program is free software; you can redistribute it and/or modify
10565# it under the terms of the GNU General Public License as published by
10566# the Free Software Foundation; either version 2 of the License, or
10567# (at your option) any later version.
10568#
10569# This program is distributed in the hope that it will be useful, but
10570# WITHOUT ANY WARRANTY; without even the implied warranty of
10571# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10572# General Public License for more details.
10573#
10574# You should have received a copy of the GNU General Public License
10575# along with this program; if not, write to the Free Software
10576# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10577#
10578# As a special exception to the GNU General Public License, if you
10579# distribute this file as part of a program that contains a
10580# configuration script generated by Autoconf, you may include it under
10581# the same distribution terms that you use for the rest of that program.
10582
10583# A sed program that does not truncate output.
10584SED=$lt_SED
10585
10586# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10587Xsed="$SED -e 1s/^X//"
10588
10589# The HP-UX ksh and POSIX shell print the target directory to stdout
10590# if CDPATH is set.
10591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10592
10593# The names of the tagged configurations supported by this script.
10594available_tags=
10595
10596# ### BEGIN LIBTOOL CONFIG
10597
10598# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10599
10600# Shell to use when invoking shell scripts.
10601SHELL=$lt_SHELL
10602
10603# Whether or not to build shared libraries.
10604build_libtool_libs=$enable_shared
10605
10606# Whether or not to build static libraries.
10607build_old_libs=$enable_static
10608
10609# Whether or not to add -lc for building shared libraries.
10610build_libtool_need_lc=$archive_cmds_need_lc
10611
10612# Whether or not to disallow shared libs when runtime libs are static
10613allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10614
10615# Whether or not to optimize for fast installation.
10616fast_install=$enable_fast_install
10617
10618# The host system.
10619host_alias=$host_alias
10620host=$host
10621host_os=$host_os
10622
10623# The build system.
10624build_alias=$build_alias
10625build=$build
10626build_os=$build_os
10627
10628# An echo program that does not interpret backslashes.
10629echo=$lt_echo
10630
10631# The archiver.
10632AR=$lt_AR
10633AR_FLAGS=$lt_AR_FLAGS
10634
10635# A C compiler.
10636LTCC=$lt_LTCC
10637
10638# LTCC compiler flags.
10639LTCFLAGS=$lt_LTCFLAGS
10640
10641# A language-specific compiler.
10642CC=$lt_compiler
10643
10644# Is the compiler the GNU C compiler?
10645with_gcc=$GCC
10646
10647# An ERE matcher.
10648EGREP=$lt_EGREP
10649
10650# The linker used to build libraries.
10651LD=$lt_LD
10652
10653# Whether we need hard or soft links.
10654LN_S=$lt_LN_S
10655
10656# A BSD-compatible nm program.
10657NM=$lt_NM
10658
10659# A symbol stripping program
10660STRIP=$lt_STRIP
10661
10662# Used to examine libraries when file_magic_cmd begins "file"
10663MAGIC_CMD=$MAGIC_CMD
10664
10665# Used on cygwin: DLL creation program.
10666DLLTOOL="$DLLTOOL"
10667
10668# Used on cygwin: object dumper.
10669OBJDUMP="$OBJDUMP"
10670
10671# Used on cygwin: assembler.
10672AS="$AS"
10673
10674# The name of the directory that contains temporary libtool files.
10675objdir=$objdir
10676
10677# How to create reloadable object files.
10678reload_flag=$lt_reload_flag
10679reload_cmds=$lt_reload_cmds
10680
10681# How to pass a linker flag through the compiler.
10682wl=$lt_lt_prog_compiler_wl
10683
10684# Object file suffix (normally "o").
10685objext="$ac_objext"
10686
10687# Old archive suffix (normally "a").
10688libext="$libext"
10689
10690# Shared library suffix (normally ".so").
10691shrext_cmds='$shrext_cmds'
10692
10693# Executable file suffix (normally "").
10694exeext="$exeext"
10695
10696# Additional compiler flags for building library objects.
10697pic_flag=$lt_lt_prog_compiler_pic
10698pic_mode=$pic_mode
10699
10700# What is the maximum length of a command?
10701max_cmd_len=$lt_cv_sys_max_cmd_len
10702
10703# Does compiler simultaneously support -c and -o options?
10704compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10705
10706# Must we lock files when doing compilation?
10707need_locks=$lt_need_locks
10708
10709# Do we need the lib prefix for modules?
10710need_lib_prefix=$need_lib_prefix
10711
10712# Do we need a version for libraries?
10713need_version=$need_version
10714
10715# Whether dlopen is supported.
10716dlopen_support=$enable_dlopen
10717
10718# Whether dlopen of programs is supported.
10719dlopen_self=$enable_dlopen_self
10720
10721# Whether dlopen of statically linked programs is supported.
10722dlopen_self_static=$enable_dlopen_self_static
10723
10724# Compiler flag to prevent dynamic linking.
10725link_static_flag=$lt_lt_prog_compiler_static
10726
10727# Compiler flag to turn off builtin functions.
10728no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10729
10730# Compiler flag to allow reflexive dlopens.
10731export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10732
10733# Compiler flag to generate shared objects directly from archives.
10734whole_archive_flag_spec=$lt_whole_archive_flag_spec
10735
10736# Compiler flag to generate thread-safe objects.
10737thread_safe_flag_spec=$lt_thread_safe_flag_spec
10738
10739# Library versioning type.
10740version_type=$version_type
10741
10742# Format of library name prefix.
10743libname_spec=$lt_libname_spec
10744
10745# List of archive names.  First name is the real one, the rest are links.
10746# The last name is the one that the linker finds with -lNAME.
10747library_names_spec=$lt_library_names_spec
10748
10749# The coded name of the library, if different from the real name.
10750soname_spec=$lt_soname_spec
10751
10752# Commands used to build and install an old-style archive.
10753RANLIB=$lt_RANLIB
10754old_archive_cmds=$lt_old_archive_cmds
10755old_postinstall_cmds=$lt_old_postinstall_cmds
10756old_postuninstall_cmds=$lt_old_postuninstall_cmds
10757
10758# Create an old-style archive from a shared archive.
10759old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10760
10761# Create a temporary old-style archive to link instead of a shared archive.
10762old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10763
10764# Commands used to build and install a shared archive.
10765archive_cmds=$lt_archive_cmds
10766archive_expsym_cmds=$lt_archive_expsym_cmds
10767postinstall_cmds=$lt_postinstall_cmds
10768postuninstall_cmds=$lt_postuninstall_cmds
10769
10770# Commands used to build a loadable module (assumed same as above if empty)
10771module_cmds=$lt_module_cmds
10772module_expsym_cmds=$lt_module_expsym_cmds
10773
10774# Commands to strip libraries.
10775old_striplib=$lt_old_striplib
10776striplib=$lt_striplib
10777
10778# Dependencies to place before the objects being linked to create a
10779# shared library.
10780predep_objects=$lt_predep_objects
10781
10782# Dependencies to place after the objects being linked to create a
10783# shared library.
10784postdep_objects=$lt_postdep_objects
10785
10786# Dependencies to place before the objects being linked to create a
10787# shared library.
10788predeps=$lt_predeps
10789
10790# Dependencies to place after the objects being linked to create a
10791# shared library.
10792postdeps=$lt_postdeps
10793
10794# The library search path used internally by the compiler when linking
10795# a shared library.
10796compiler_lib_search_path=$lt_compiler_lib_search_path
10797
10798# Method to check whether dependent libraries are shared objects.
10799deplibs_check_method=$lt_deplibs_check_method
10800
10801# Command to use when deplibs_check_method == file_magic.
10802file_magic_cmd=$lt_file_magic_cmd
10803
10804# Flag that allows shared libraries with undefined symbols to be built.
10805allow_undefined_flag=$lt_allow_undefined_flag
10806
10807# Flag that forces no undefined symbols.
10808no_undefined_flag=$lt_no_undefined_flag
10809
10810# Commands used to finish a libtool library installation in a directory.
10811finish_cmds=$lt_finish_cmds
10812
10813# Same as above, but a single script fragment to be evaled but not shown.
10814finish_eval=$lt_finish_eval
10815
10816# Take the output of nm and produce a listing of raw symbols and C names.
10817global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10818
10819# Transform the output of nm in a proper C declaration
10820global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10821
10822# Transform the output of nm in a C name address pair
10823global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10824
10825# This is the shared library runtime path variable.
10826runpath_var=$runpath_var
10827
10828# This is the shared library path variable.
10829shlibpath_var=$shlibpath_var
10830
10831# Is shlibpath searched before the hard-coded library search path?
10832shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10833
10834# How to hardcode a shared library path into an executable.
10835hardcode_action=$hardcode_action
10836
10837# Whether we should hardcode library paths into libraries.
10838hardcode_into_libs=$hardcode_into_libs
10839
10840# Flag to hardcode \$libdir into a binary during linking.
10841# This must work even if \$libdir does not exist.
10842hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10843
10844# If ld is used when linking, flag to hardcode \$libdir into
10845# a binary during linking. This must work even if \$libdir does
10846# not exist.
10847hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10848
10849# Whether we need a single -rpath flag with a separated argument.
10850hardcode_libdir_separator=$lt_hardcode_libdir_separator
10851
10852# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10853# resulting binary.
10854hardcode_direct=$hardcode_direct
10855
10856# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10857# resulting binary.
10858hardcode_minus_L=$hardcode_minus_L
10859
10860# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10861# the resulting binary.
10862hardcode_shlibpath_var=$hardcode_shlibpath_var
10863
10864# Set to yes if building a shared library automatically hardcodes DIR into the library
10865# and all subsequent libraries and executables linked against it.
10866hardcode_automatic=$hardcode_automatic
10867
10868# Variables whose values should be saved in libtool wrapper scripts and
10869# restored at relink time.
10870variables_saved_for_relink="$variables_saved_for_relink"
10871
10872# Whether libtool must link a program against all its dependency libraries.
10873link_all_deplibs=$link_all_deplibs
10874
10875# Compile-time system search path for libraries
10876sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10877
10878# Run-time system search path for libraries
10879sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10880
10881# Fix the shell variable \$srcfile for the compiler.
10882fix_srcfile_path="$fix_srcfile_path"
10883
10884# Set to yes if exported symbols are required.
10885always_export_symbols=$always_export_symbols
10886
10887# The commands to list exported symbols.
10888export_symbols_cmds=$lt_export_symbols_cmds
10889
10890# The commands to extract the exported symbol list from a shared archive.
10891extract_expsyms_cmds=$lt_extract_expsyms_cmds
10892
10893# Symbols that should not be listed in the preloaded symbols.
10894exclude_expsyms=$lt_exclude_expsyms
10895
10896# Symbols that must always be exported.
10897include_expsyms=$lt_include_expsyms
10898
10899# ### END LIBTOOL CONFIG
10900
10901__EOF__
10902
10903
10904  case $host_os in
10905  aix3*)
10906    cat <<\EOF >> "$cfgfile"
10907
10908# AIX sometimes has problems with the GCC collect2 program.  For some
10909# reason, if we set the COLLECT_NAMES environment variable, the problems
10910# vanish in a puff of smoke.
10911if test "X${COLLECT_NAMES+set}" != Xset; then
10912  COLLECT_NAMES=
10913  export COLLECT_NAMES
10914fi
10915EOF
10916    ;;
10917  esac
10918
10919  # We use sed instead of cat because bash on DJGPP gets confused if
10920  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10921  # text mode, it properly converts lines to CR/LF.  This bash problem
10922  # is reportedly fixed, but why not run on old versions too?
10923  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10924
10925  mv -f "$cfgfile" "$ofile" || \
10926    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10927  chmod +x "$ofile"
10928
10929else
10930  # If there is no Makefile yet, we rely on a make rule to execute
10931  # `config.status --recheck' to rerun these tests and create the
10932  # libtool script then.
10933  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10934  if test -f "$ltmain_in"; then
10935    test -f Makefile && make "$ltmain"
10936  fi
10937fi
10938
10939
10940ac_ext=c
10941ac_cpp='$CPP $CPPFLAGS'
10942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10944ac_compiler_gnu=$ac_cv_c_compiler_gnu
10945
10946CC="$lt_save_CC"
10947
10948
10949# Check whether --with-tags was given.
10950if test "${with_tags+set}" = set; then
10951  withval=$with_tags; tagnames="$withval"
10952fi
10953
10954
10955if test -f "$ltmain" && test -n "$tagnames"; then
10956  if test ! -f "${ofile}"; then
10957    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10958echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10959  fi
10960
10961  if test -z "$LTCC"; then
10962    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10963    if test -z "$LTCC"; then
10964      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10965echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10966    else
10967      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10968echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10969    fi
10970  fi
10971  if test -z "$LTCFLAGS"; then
10972    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10973  fi
10974
10975  # Extract list of available tagged configurations in $ofile.
10976  # Note that this assumes the entire list is on one line.
10977  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10978
10979  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10980  for tagname in $tagnames; do
10981    IFS="$lt_save_ifs"
10982    # Check whether tagname contains only valid characters
10983    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10984    "") ;;
10985    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10986echo "$as_me: error: invalid tag name: $tagname" >&2;}
10987   { (exit 1); exit 1; }; }
10988	;;
10989    esac
10990
10991    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10992    then
10993      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10994echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10995   { (exit 1); exit 1; }; }
10996    fi
10997
10998    # Update the list of available tags.
10999    if test -n "$tagname"; then
11000      echo appending configuration tag \"$tagname\" to $ofile
11001
11002      case $tagname in
11003      CXX)
11004	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11005	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11006	    (test "X$CXX" != "Xg++"))) ; then
11007	  ac_ext=cpp
11008ac_cpp='$CXXCPP $CPPFLAGS'
11009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11012
11013
11014
11015
11016archive_cmds_need_lc_CXX=no
11017allow_undefined_flag_CXX=
11018always_export_symbols_CXX=no
11019archive_expsym_cmds_CXX=
11020export_dynamic_flag_spec_CXX=
11021hardcode_direct_CXX=no
11022hardcode_libdir_flag_spec_CXX=
11023hardcode_libdir_flag_spec_ld_CXX=
11024hardcode_libdir_separator_CXX=
11025hardcode_minus_L_CXX=no
11026hardcode_shlibpath_var_CXX=unsupported
11027hardcode_automatic_CXX=no
11028module_cmds_CXX=
11029module_expsym_cmds_CXX=
11030link_all_deplibs_CXX=unknown
11031old_archive_cmds_CXX=$old_archive_cmds
11032no_undefined_flag_CXX=
11033whole_archive_flag_spec_CXX=
11034enable_shared_with_static_runtimes_CXX=no
11035
11036# Dependencies to place before and after the object being linked:
11037predep_objects_CXX=
11038postdep_objects_CXX=
11039predeps_CXX=
11040postdeps_CXX=
11041compiler_lib_search_path_CXX=
11042
11043# Source file extension for C++ test sources.
11044ac_ext=cpp
11045
11046# Object file extension for compiled C++ test sources.
11047objext=o
11048objext_CXX=$objext
11049
11050# Code to be used in simple compile tests
11051lt_simple_compile_test_code="int some_variable = 0;\n"
11052
11053# Code to be used in simple link tests
11054lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11055
11056# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11057
11058# If no C compiler was specified, use CC.
11059LTCC=${LTCC-"$CC"}
11060
11061# If no C compiler flags were specified, use CFLAGS.
11062LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11063
11064# Allow CC to be a program name with arguments.
11065compiler=$CC
11066
11067
11068# save warnings/boilerplate of simple test code
11069ac_outfile=conftest.$ac_objext
11070printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11071eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11072_lt_compiler_boilerplate=`cat conftest.err`
11073$rm conftest*
11074
11075ac_outfile=conftest.$ac_objext
11076printf "$lt_simple_link_test_code" >conftest.$ac_ext
11077eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11078_lt_linker_boilerplate=`cat conftest.err`
11079$rm conftest*
11080
11081
11082# Allow CC to be a program name with arguments.
11083lt_save_CC=$CC
11084lt_save_LD=$LD
11085lt_save_GCC=$GCC
11086GCC=$GXX
11087lt_save_with_gnu_ld=$with_gnu_ld
11088lt_save_path_LD=$lt_cv_path_LD
11089if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11090  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11091else
11092  $as_unset lt_cv_prog_gnu_ld
11093fi
11094if test -n "${lt_cv_path_LDCXX+set}"; then
11095  lt_cv_path_LD=$lt_cv_path_LDCXX
11096else
11097  $as_unset lt_cv_path_LD
11098fi
11099test -z "${LDCXX+set}" || LD=$LDCXX
11100CC=${CXX-"c++"}
11101compiler=$CC
11102compiler_CXX=$CC
11103for cc_temp in $compiler""; do
11104  case $cc_temp in
11105    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11106    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11107    \-*) ;;
11108    *) break;;
11109  esac
11110done
11111cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11112
11113
11114# We don't want -fno-exception wen compiling C++ code, so set the
11115# no_builtin_flag separately
11116if test "$GXX" = yes; then
11117  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11118else
11119  lt_prog_compiler_no_builtin_flag_CXX=
11120fi
11121
11122if test "$GXX" = yes; then
11123  # Set up default GNU C++ configuration
11124
11125
11126# Check whether --with-gnu-ld was given.
11127if test "${with_gnu_ld+set}" = set; then
11128  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11129else
11130  with_gnu_ld=no
11131fi
11132
11133ac_prog=ld
11134if test "$GCC" = yes; then
11135  # Check if gcc -print-prog-name=ld gives a path.
11136  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11137echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11138  case $host in
11139  *-*-mingw*)
11140    # gcc leaves a trailing carriage return which upsets mingw
11141    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11142  *)
11143    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11144  esac
11145  case $ac_prog in
11146    # Accept absolute paths.
11147    [\\/]* | ?:[\\/]*)
11148      re_direlt='/[^/][^/]*/\.\./'
11149      # Canonicalize the pathname of ld
11150      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11151      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11152	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11153      done
11154      test -z "$LD" && LD="$ac_prog"
11155      ;;
11156  "")
11157    # If it fails, then pretend we aren't using GCC.
11158    ac_prog=ld
11159    ;;
11160  *)
11161    # If it is relative, then search for the first ld in PATH.
11162    with_gnu_ld=unknown
11163    ;;
11164  esac
11165elif test "$with_gnu_ld" = yes; then
11166  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11167echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11168else
11169  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11170echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11171fi
11172if test "${lt_cv_path_LD+set}" = set; then
11173  echo $ECHO_N "(cached) $ECHO_C" >&6
11174else
11175  if test -z "$LD"; then
11176  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11177  for ac_dir in $PATH; do
11178    IFS="$lt_save_ifs"
11179    test -z "$ac_dir" && ac_dir=.
11180    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11181      lt_cv_path_LD="$ac_dir/$ac_prog"
11182      # Check to see if the program is GNU ld.  I'd rather use --version,
11183      # but apparently some variants of GNU ld only accept -v.
11184      # Break only if it was the GNU/non-GNU ld that we prefer.
11185      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11186      *GNU* | *'with BFD'*)
11187	test "$with_gnu_ld" != no && break
11188	;;
11189      *)
11190	test "$with_gnu_ld" != yes && break
11191	;;
11192      esac
11193    fi
11194  done
11195  IFS="$lt_save_ifs"
11196else
11197  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11198fi
11199fi
11200
11201LD="$lt_cv_path_LD"
11202if test -n "$LD"; then
11203  { echo "$as_me:$LINENO: result: $LD" >&5
11204echo "${ECHO_T}$LD" >&6; }
11205else
11206  { echo "$as_me:$LINENO: result: no" >&5
11207echo "${ECHO_T}no" >&6; }
11208fi
11209test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11210echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11211   { (exit 1); exit 1; }; }
11212{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11213echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11214if test "${lt_cv_prog_gnu_ld+set}" = set; then
11215  echo $ECHO_N "(cached) $ECHO_C" >&6
11216else
11217  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11218case `$LD -v 2>&1 </dev/null` in
11219*GNU* | *'with BFD'*)
11220  lt_cv_prog_gnu_ld=yes
11221  ;;
11222*)
11223  lt_cv_prog_gnu_ld=no
11224  ;;
11225esac
11226fi
11227{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11228echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11229with_gnu_ld=$lt_cv_prog_gnu_ld
11230
11231
11232
11233  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11234  # archiving commands below assume that GNU ld is being used.
11235  if test "$with_gnu_ld" = yes; then
11236    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11237    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'
11238
11239    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11240    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11241
11242    # If archive_cmds runs LD, not CC, wlarc should be empty
11243    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11244    #     investigate it a little bit more. (MM)
11245    wlarc='${wl}'
11246
11247    # ancient GNU ld didn't support --whole-archive et. al.
11248    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11249	grep 'no-whole-archive' > /dev/null; then
11250      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11251    else
11252      whole_archive_flag_spec_CXX=
11253    fi
11254  else
11255    with_gnu_ld=no
11256    wlarc=
11257
11258    # A generic and very simple default shared library creation
11259    # command for GNU C++ for the case where it uses the native
11260    # linker, instead of GNU ld.  If possible, this setting should
11261    # overridden to take advantage of the native linker features on
11262    # the platform it is being used on.
11263    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11264  fi
11265
11266  # Commands to make compiler produce verbose output that lists
11267  # what "hidden" libraries, object files and flags are used when
11268  # linking a shared library.
11269  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11270
11271else
11272  GXX=no
11273  with_gnu_ld=no
11274  wlarc=
11275fi
11276
11277# PORTME: fill in a description of your system's C++ link characteristics
11278{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11279echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11280ld_shlibs_CXX=yes
11281case $host_os in
11282  aix3*)
11283    # FIXME: insert proper C++ library support
11284    ld_shlibs_CXX=no
11285    ;;
11286  aix4* | aix5*)
11287    if test "$host_cpu" = ia64; then
11288      # On IA64, the linker does run time linking by default, so we don't
11289      # have to do anything special.
11290      aix_use_runtimelinking=no
11291      exp_sym_flag='-Bexport'
11292      no_entry_flag=""
11293    else
11294      aix_use_runtimelinking=no
11295
11296      # Test if we are trying to use run time linking or normal
11297      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11298      # need to do runtime linking.
11299      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11300	for ld_flag in $LDFLAGS; do
11301	  case $ld_flag in
11302	  *-brtl*)
11303	    aix_use_runtimelinking=yes
11304	    break
11305	    ;;
11306	  esac
11307	done
11308	;;
11309      esac
11310
11311      exp_sym_flag='-bexport'
11312      no_entry_flag='-bnoentry'
11313    fi
11314
11315    # When large executables or shared objects are built, AIX ld can
11316    # have problems creating the table of contents.  If linking a library
11317    # or program results in "error TOC overflow" add -mminimal-toc to
11318    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11319    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11320
11321    archive_cmds_CXX=''
11322    hardcode_direct_CXX=yes
11323    hardcode_libdir_separator_CXX=':'
11324    link_all_deplibs_CXX=yes
11325
11326    if test "$GXX" = yes; then
11327      case $host_os in aix4.[012]|aix4.[012].*)
11328      # We only want to do this on AIX 4.2 and lower, the check
11329      # below for broken collect2 doesn't work under 4.3+
11330	collect2name=`${CC} -print-prog-name=collect2`
11331	if test -f "$collect2name" && \
11332	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11333	then
11334	  # We have reworked collect2
11335	  hardcode_direct_CXX=yes
11336	else
11337	  # We have old collect2
11338	  hardcode_direct_CXX=unsupported
11339	  # It fails to find uninstalled libraries when the uninstalled
11340	  # path is not listed in the libpath.  Setting hardcode_minus_L
11341	  # to unsupported forces relinking
11342	  hardcode_minus_L_CXX=yes
11343	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11344	  hardcode_libdir_separator_CXX=
11345	fi
11346	;;
11347      esac
11348      shared_flag='-shared'
11349      if test "$aix_use_runtimelinking" = yes; then
11350	shared_flag="$shared_flag "'${wl}-G'
11351      fi
11352    else
11353      # not using gcc
11354      if test "$host_cpu" = ia64; then
11355	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11356	# chokes on -Wl,-G. The following line is correct:
11357	shared_flag='-G'
11358      else
11359	if test "$aix_use_runtimelinking" = yes; then
11360	  shared_flag='${wl}-G'
11361	else
11362	  shared_flag='${wl}-bM:SRE'
11363	fi
11364      fi
11365    fi
11366
11367    # It seems that -bexpall does not export symbols beginning with
11368    # underscore (_), so it is better to generate a list of symbols to export.
11369    always_export_symbols_CXX=yes
11370    if test "$aix_use_runtimelinking" = yes; then
11371      # Warning - without using the other runtime loading flags (-brtl),
11372      # -berok will link without error, but may produce a broken library.
11373      allow_undefined_flag_CXX='-berok'
11374      # Determine the default libpath from the value encoded in an empty executable.
11375      cat >conftest.$ac_ext <<_ACEOF
11376/* confdefs.h.  */
11377_ACEOF
11378cat confdefs.h >>conftest.$ac_ext
11379cat >>conftest.$ac_ext <<_ACEOF
11380/* end confdefs.h.  */
11381
11382int
11383main ()
11384{
11385
11386  ;
11387  return 0;
11388}
11389_ACEOF
11390rm -f conftest.$ac_objext conftest$ac_exeext
11391if { (ac_try="$ac_link"
11392case "(($ac_try" in
11393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394  *) ac_try_echo=$ac_try;;
11395esac
11396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397  (eval "$ac_link") 2>conftest.er1
11398  ac_status=$?
11399  grep -v '^ *+' conftest.er1 >conftest.err
11400  rm -f conftest.er1
11401  cat conftest.err >&5
11402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403  (exit $ac_status); } &&
11404	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11405  { (case "(($ac_try" in
11406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11407  *) ac_try_echo=$ac_try;;
11408esac
11409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11410  (eval "$ac_try") 2>&5
11411  ac_status=$?
11412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413  (exit $ac_status); }; } &&
11414	 { ac_try='test -s conftest$ac_exeext'
11415  { (case "(($ac_try" in
11416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417  *) ac_try_echo=$ac_try;;
11418esac
11419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420  (eval "$ac_try") 2>&5
11421  ac_status=$?
11422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423  (exit $ac_status); }; }; then
11424
11425aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11426}'`
11427# Check for a 64-bit object if we didn't find anything.
11428if 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; }
11429}'`; fi
11430else
11431  echo "$as_me: failed program was:" >&5
11432sed 's/^/| /' conftest.$ac_ext >&5
11433
11434
11435fi
11436
11437rm -f core conftest.err conftest.$ac_objext \
11438      conftest$ac_exeext conftest.$ac_ext
11439if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11440
11441      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11442
11443      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"
11444     else
11445      if test "$host_cpu" = ia64; then
11446	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11447	allow_undefined_flag_CXX="-z nodefs"
11448	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"
11449      else
11450	# Determine the default libpath from the value encoded in an empty executable.
11451	cat >conftest.$ac_ext <<_ACEOF
11452/* confdefs.h.  */
11453_ACEOF
11454cat confdefs.h >>conftest.$ac_ext
11455cat >>conftest.$ac_ext <<_ACEOF
11456/* end confdefs.h.  */
11457
11458int
11459main ()
11460{
11461
11462  ;
11463  return 0;
11464}
11465_ACEOF
11466rm -f conftest.$ac_objext conftest$ac_exeext
11467if { (ac_try="$ac_link"
11468case "(($ac_try" in
11469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11470  *) ac_try_echo=$ac_try;;
11471esac
11472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11473  (eval "$ac_link") 2>conftest.er1
11474  ac_status=$?
11475  grep -v '^ *+' conftest.er1 >conftest.err
11476  rm -f conftest.er1
11477  cat conftest.err >&5
11478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479  (exit $ac_status); } &&
11480	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11481  { (case "(($ac_try" in
11482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483  *) ac_try_echo=$ac_try;;
11484esac
11485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11486  (eval "$ac_try") 2>&5
11487  ac_status=$?
11488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489  (exit $ac_status); }; } &&
11490	 { ac_try='test -s conftest$ac_exeext'
11491  { (case "(($ac_try" in
11492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493  *) ac_try_echo=$ac_try;;
11494esac
11495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496  (eval "$ac_try") 2>&5
11497  ac_status=$?
11498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499  (exit $ac_status); }; }; then
11500
11501aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11502}'`
11503# Check for a 64-bit object if we didn't find anything.
11504if 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; }
11505}'`; fi
11506else
11507  echo "$as_me: failed program was:" >&5
11508sed 's/^/| /' conftest.$ac_ext >&5
11509
11510
11511fi
11512
11513rm -f core conftest.err conftest.$ac_objext \
11514      conftest$ac_exeext conftest.$ac_ext
11515if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11516
11517	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11518	# Warning - without using the other run time loading flags,
11519	# -berok will link without error, but may produce a broken library.
11520	no_undefined_flag_CXX=' ${wl}-bernotok'
11521	allow_undefined_flag_CXX=' ${wl}-berok'
11522	# Exported symbols can be pulled into shared objects from archives
11523	whole_archive_flag_spec_CXX='$convenience'
11524	archive_cmds_need_lc_CXX=yes
11525	# This is similar to how AIX traditionally builds its shared libraries.
11526	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'
11527      fi
11528    fi
11529    ;;
11530
11531  beos*)
11532    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11533      allow_undefined_flag_CXX=unsupported
11534      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11535      # support --undefined.  This deserves some investigation.  FIXME
11536      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11537    else
11538      ld_shlibs_CXX=no
11539    fi
11540    ;;
11541
11542  chorus*)
11543    case $cc_basename in
11544      *)
11545	# FIXME: insert proper C++ library support
11546	ld_shlibs_CXX=no
11547	;;
11548    esac
11549    ;;
11550
11551  cygwin* | mingw* | pw32*)
11552    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11553    # as there is no search path for DLLs.
11554    hardcode_libdir_flag_spec_CXX='-L$libdir'
11555    allow_undefined_flag_CXX=unsupported
11556    always_export_symbols_CXX=no
11557    enable_shared_with_static_runtimes_CXX=yes
11558
11559    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11560      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'
11561      # If the export-symbols file already is a .def file (1st line
11562      # is EXPORTS), use it as is; otherwise, prepend...
11563      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11564	cp $export_symbols $output_objdir/$soname.def;
11565      else
11566	echo EXPORTS > $output_objdir/$soname.def;
11567	cat $export_symbols >> $output_objdir/$soname.def;
11568      fi~
11569      $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'
11570    else
11571      ld_shlibs_CXX=no
11572    fi
11573  ;;
11574      darwin* | rhapsody*)
11575        case $host_os in
11576        rhapsody* | darwin1.[012])
11577         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11578         ;;
11579       *) # Darwin 1.3 on
11580         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11581           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11582         else
11583           case ${MACOSX_DEPLOYMENT_TARGET} in
11584             10.[012])
11585               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11586               ;;
11587             10.*)
11588               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11589               ;;
11590           esac
11591         fi
11592         ;;
11593        esac
11594      archive_cmds_need_lc_CXX=no
11595      hardcode_direct_CXX=no
11596      hardcode_automatic_CXX=yes
11597      hardcode_shlibpath_var_CXX=unsupported
11598      whole_archive_flag_spec_CXX=''
11599      link_all_deplibs_CXX=yes
11600
11601    if test "$GXX" = yes ; then
11602      lt_int_apple_cc_single_mod=no
11603      output_verbose_link_cmd='echo'
11604      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11605       lt_int_apple_cc_single_mod=yes
11606      fi
11607      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11608       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11609      else
11610          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'
11611        fi
11612        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11613        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11614          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11615            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}'
11616          else
11617            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}'
11618          fi
11619            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}'
11620      else
11621      case $cc_basename in
11622        xlc*)
11623         output_verbose_link_cmd='echo'
11624          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'
11625          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11626          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11627          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}'
11628          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}'
11629          ;;
11630       *)
11631         ld_shlibs_CXX=no
11632          ;;
11633      esac
11634      fi
11635        ;;
11636
11637  dgux*)
11638    case $cc_basename in
11639      ec++*)
11640	# FIXME: insert proper C++ library support
11641	ld_shlibs_CXX=no
11642	;;
11643      ghcx*)
11644	# Green Hills C++ Compiler
11645	# FIXME: insert proper C++ library support
11646	ld_shlibs_CXX=no
11647	;;
11648      *)
11649	# FIXME: insert proper C++ library support
11650	ld_shlibs_CXX=no
11651	;;
11652    esac
11653    ;;
11654  freebsd[12]*)
11655    # C++ shared libraries reported to be fairly broken before switch to ELF
11656    ld_shlibs_CXX=no
11657    ;;
11658  freebsd-elf*)
11659    archive_cmds_need_lc_CXX=no
11660    ;;
11661  freebsd* | kfreebsd*-gnu | dragonfly*)
11662    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11663    # conventions
11664    ld_shlibs_CXX=yes
11665    ;;
11666  gnu*)
11667    ;;
11668  hpux9*)
11669    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11670    hardcode_libdir_separator_CXX=:
11671    export_dynamic_flag_spec_CXX='${wl}-E'
11672    hardcode_direct_CXX=yes
11673    hardcode_minus_L_CXX=yes # Not in the search PATH,
11674				# but as the default
11675				# location of the library.
11676
11677    case $cc_basename in
11678    CC*)
11679      # FIXME: insert proper C++ library support
11680      ld_shlibs_CXX=no
11681      ;;
11682    aCC*)
11683      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'
11684      # Commands to make compiler produce verbose output that lists
11685      # what "hidden" libraries, object files and flags are used when
11686      # linking a shared library.
11687      #
11688      # There doesn't appear to be a way to prevent this compiler from
11689      # explicitly linking system object files so we need to strip them
11690      # from the output so that they don't get included in the library
11691      # dependencies.
11692      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'
11693      ;;
11694    *)
11695      if test "$GXX" = yes; then
11696        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'
11697      else
11698        # FIXME: insert proper C++ library support
11699        ld_shlibs_CXX=no
11700      fi
11701      ;;
11702    esac
11703    ;;
11704  hpux10*|hpux11*)
11705    if test $with_gnu_ld = no; then
11706      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11707      hardcode_libdir_separator_CXX=:
11708
11709      case $host_cpu in
11710      hppa*64*|ia64*)
11711	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11712        ;;
11713      *)
11714	export_dynamic_flag_spec_CXX='${wl}-E'
11715        ;;
11716      esac
11717    fi
11718    case $host_cpu in
11719    hppa*64*|ia64*)
11720      hardcode_direct_CXX=no
11721      hardcode_shlibpath_var_CXX=no
11722      ;;
11723    *)
11724      hardcode_direct_CXX=yes
11725      hardcode_minus_L_CXX=yes # Not in the search PATH,
11726					      # but as the default
11727					      # location of the library.
11728      ;;
11729    esac
11730
11731    case $cc_basename in
11732      CC*)
11733	# FIXME: insert proper C++ library support
11734	ld_shlibs_CXX=no
11735	;;
11736      aCC*)
11737	case $host_cpu in
11738	hppa*64*)
11739	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11740	  ;;
11741	ia64*)
11742	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11743	  ;;
11744	*)
11745	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11746	  ;;
11747	esac
11748	# Commands to make compiler produce verbose output that lists
11749	# what "hidden" libraries, object files and flags are used when
11750	# linking a shared library.
11751	#
11752	# There doesn't appear to be a way to prevent this compiler from
11753	# explicitly linking system object files so we need to strip them
11754	# from the output so that they don't get included in the library
11755	# dependencies.
11756	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'
11757	;;
11758      *)
11759	if test "$GXX" = yes; then
11760	  if test $with_gnu_ld = no; then
11761	    case $host_cpu in
11762	    hppa*64*)
11763	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11764	      ;;
11765	    ia64*)
11766	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11767	      ;;
11768	    *)
11769	      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'
11770	      ;;
11771	    esac
11772	  fi
11773	else
11774	  # FIXME: insert proper C++ library support
11775	  ld_shlibs_CXX=no
11776	fi
11777	;;
11778    esac
11779    ;;
11780  interix3*)
11781    hardcode_direct_CXX=no
11782    hardcode_shlibpath_var_CXX=no
11783    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11784    export_dynamic_flag_spec_CXX='${wl}-E'
11785    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11786    # Instead, shared libraries are loaded at an image base (0x10000000 by
11787    # default) and relocated if they conflict, which is a slow very memory
11788    # consuming and fragmenting process.  To avoid this, we pick a random,
11789    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11790    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11791    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'
11792    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'
11793    ;;
11794  irix5* | irix6*)
11795    case $cc_basename in
11796      CC*)
11797	# SGI C++
11798	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'
11799
11800	# Archives containing C++ object files must be created using
11801	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11802	# necessary to make sure instantiated templates are included
11803	# in the archive.
11804	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11805	;;
11806      *)
11807	if test "$GXX" = yes; then
11808	  if test "$with_gnu_ld" = no; then
11809	    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'
11810	  else
11811	    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'
11812	  fi
11813	fi
11814	link_all_deplibs_CXX=yes
11815	;;
11816    esac
11817    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11818    hardcode_libdir_separator_CXX=:
11819    ;;
11820  linux*)
11821    case $cc_basename in
11822      KCC*)
11823	# Kuck and Associates, Inc. (KAI) C++ Compiler
11824
11825	# KCC will only create a shared library if the output file
11826	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11827	# to its proper name (with version) after linking.
11828	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'
11829	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'
11830	# Commands to make compiler produce verbose output that lists
11831	# what "hidden" libraries, object files and flags are used when
11832	# linking a shared library.
11833	#
11834	# There doesn't appear to be a way to prevent this compiler from
11835	# explicitly linking system object files so we need to strip them
11836	# from the output so that they don't get included in the library
11837	# dependencies.
11838	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'
11839
11840	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11841	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11842
11843	# Archives containing C++ object files must be created using
11844	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11845	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11846	;;
11847      icpc*)
11848	# Intel C++
11849	with_gnu_ld=yes
11850	# version 8.0 and above of icpc choke on multiply defined symbols
11851	# if we add $predep_objects and $postdep_objects, however 7.1 and
11852	# earlier do not add the objects themselves.
11853	case `$CC -V 2>&1` in
11854	*"Version 7."*)
11855  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11856  	  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'
11857	  ;;
11858	*)  # Version 8.0 or newer
11859	  tmp_idyn=
11860	  case $host_cpu in
11861	    ia64*) tmp_idyn=' -i_dynamic';;
11862	  esac
11863  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11864	  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'
11865	  ;;
11866	esac
11867	archive_cmds_need_lc_CXX=no
11868	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11869	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11870	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11871	;;
11872      pgCC*)
11873        # Portland Group C++ compiler
11874	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11875  	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'
11876
11877	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11878	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11879	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'
11880        ;;
11881      cxx*)
11882	# Compaq C++
11883	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11884	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'
11885
11886	runpath_var=LD_RUN_PATH
11887	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11888	hardcode_libdir_separator_CXX=:
11889
11890	# Commands to make compiler produce verbose output that lists
11891	# what "hidden" libraries, object files and flags are used when
11892	# linking a shared library.
11893	#
11894	# There doesn't appear to be a way to prevent this compiler from
11895	# explicitly linking system object files so we need to strip them
11896	# from the output so that they don't get included in the library
11897	# dependencies.
11898	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'
11899	;;
11900      *)
11901	case `$CC -V 2>&1 | sed 5q` in
11902	*Sun\ C*)
11903	  # Sun C++ 5.9
11904	  no_undefined_flag_CXX=' -zdefs'
11905	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11906	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11907	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11908	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11909
11910	  # Not sure whether something based on
11911	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11912	  # would be better.
11913	  output_verbose_link_cmd='echo'
11914
11915	  # Archives containing C++ object files must be created using
11916	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11917	  # necessary to make sure instantiated templates are included
11918	  # in the archive.
11919	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11920	  ;;
11921	esac
11922	;;
11923    esac
11924    ;;
11925  lynxos*)
11926    # FIXME: insert proper C++ library support
11927    ld_shlibs_CXX=no
11928    ;;
11929  m88k*)
11930    # FIXME: insert proper C++ library support
11931    ld_shlibs_CXX=no
11932    ;;
11933  mvs*)
11934    case $cc_basename in
11935      cxx*)
11936	# FIXME: insert proper C++ library support
11937	ld_shlibs_CXX=no
11938	;;
11939      *)
11940	# FIXME: insert proper C++ library support
11941	ld_shlibs_CXX=no
11942	;;
11943    esac
11944    ;;
11945  netbsd*)
11946    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11947      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11948      wlarc=
11949      hardcode_libdir_flag_spec_CXX='-R$libdir'
11950      hardcode_direct_CXX=yes
11951      hardcode_shlibpath_var_CXX=no
11952    fi
11953    # Workaround some broken pre-1.5 toolchains
11954    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11955    ;;
11956  openbsd2*)
11957    # C++ shared libraries are fairly broken
11958    ld_shlibs_CXX=no
11959    ;;
11960  openbsd*)
11961    hardcode_direct_CXX=yes
11962    hardcode_shlibpath_var_CXX=no
11963    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11964    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11965    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11966      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11967      export_dynamic_flag_spec_CXX='${wl}-E'
11968      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11969    fi
11970    output_verbose_link_cmd='echo'
11971    ;;
11972  osf3*)
11973    case $cc_basename in
11974      KCC*)
11975	# Kuck and Associates, Inc. (KAI) C++ Compiler
11976
11977	# KCC will only create a shared library if the output file
11978	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11979	# to its proper name (with version) after linking.
11980	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'
11981
11982	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11983	hardcode_libdir_separator_CXX=:
11984
11985	# Archives containing C++ object files must be created using
11986	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11987	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11988
11989	;;
11990      RCC*)
11991	# Rational C++ 2.4.1
11992	# FIXME: insert proper C++ library support
11993	ld_shlibs_CXX=no
11994	;;
11995      cxx*)
11996	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11997	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'
11998
11999	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12000	hardcode_libdir_separator_CXX=:
12001
12002	# Commands to make compiler produce verbose output that lists
12003	# what "hidden" libraries, object files and flags are used when
12004	# linking a shared library.
12005	#
12006	# There doesn't appear to be a way to prevent this compiler from
12007	# explicitly linking system object files so we need to strip them
12008	# from the output so that they don't get included in the library
12009	# dependencies.
12010	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'
12011	;;
12012      *)
12013	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12014	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12015	  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'
12016
12017	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12018	  hardcode_libdir_separator_CXX=:
12019
12020	  # Commands to make compiler produce verbose output that lists
12021	  # what "hidden" libraries, object files and flags are used when
12022	  # linking a shared library.
12023	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12024
12025	else
12026	  # FIXME: insert proper C++ library support
12027	  ld_shlibs_CXX=no
12028	fi
12029	;;
12030    esac
12031    ;;
12032  osf4* | osf5*)
12033    case $cc_basename in
12034      KCC*)
12035	# Kuck and Associates, Inc. (KAI) C++ Compiler
12036
12037	# KCC will only create a shared library if the output file
12038	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12039	# to its proper name (with version) after linking.
12040	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'
12041
12042	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12043	hardcode_libdir_separator_CXX=:
12044
12045	# Archives containing C++ object files must be created using
12046	# the KAI C++ compiler.
12047	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12048	;;
12049      RCC*)
12050	# Rational C++ 2.4.1
12051	# FIXME: insert proper C++ library support
12052	ld_shlibs_CXX=no
12053	;;
12054      cxx*)
12055	allow_undefined_flag_CXX=' -expect_unresolved \*'
12056	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'
12057	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12058	  echo "-hidden">> $lib.exp~
12059	  $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~
12060	  $rm $lib.exp'
12061
12062	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12063	hardcode_libdir_separator_CXX=:
12064
12065	# Commands to make compiler produce verbose output that lists
12066	# what "hidden" libraries, object files and flags are used when
12067	# linking a shared library.
12068	#
12069	# There doesn't appear to be a way to prevent this compiler from
12070	# explicitly linking system object files so we need to strip them
12071	# from the output so that they don't get included in the library
12072	# dependencies.
12073	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'
12074	;;
12075      *)
12076	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12077	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12078	 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'
12079
12080	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12081	  hardcode_libdir_separator_CXX=:
12082
12083	  # Commands to make compiler produce verbose output that lists
12084	  # what "hidden" libraries, object files and flags are used when
12085	  # linking a shared library.
12086	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12087
12088	else
12089	  # FIXME: insert proper C++ library support
12090	  ld_shlibs_CXX=no
12091	fi
12092	;;
12093    esac
12094    ;;
12095  psos*)
12096    # FIXME: insert proper C++ library support
12097    ld_shlibs_CXX=no
12098    ;;
12099  sunos4*)
12100    case $cc_basename in
12101      CC*)
12102	# Sun C++ 4.x
12103	# FIXME: insert proper C++ library support
12104	ld_shlibs_CXX=no
12105	;;
12106      lcc*)
12107	# Lucid
12108	# FIXME: insert proper C++ library support
12109	ld_shlibs_CXX=no
12110	;;
12111      *)
12112	# FIXME: insert proper C++ library support
12113	ld_shlibs_CXX=no
12114	;;
12115    esac
12116    ;;
12117  solaris*)
12118    case $cc_basename in
12119      CC*)
12120	# Sun C++ 4.2, 5.x and Centerline C++
12121        archive_cmds_need_lc_CXX=yes
12122	no_undefined_flag_CXX=' -zdefs'
12123	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12124	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12125	$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'
12126
12127	hardcode_libdir_flag_spec_CXX='-R$libdir'
12128	hardcode_shlibpath_var_CXX=no
12129	case $host_os in
12130	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12131	  *)
12132	    # The C++ compiler is used as linker so we must use $wl
12133	    # flag to pass the commands to the underlying system
12134	    # linker. We must also pass each convience library through
12135	    # to the system linker between allextract/defaultextract.
12136	    # The C++ compiler will combine linker options so we
12137	    # cannot just pass the convience library names through
12138	    # without $wl.
12139	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12140	    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'
12141	    ;;
12142	esac
12143	link_all_deplibs_CXX=yes
12144
12145	output_verbose_link_cmd='echo'
12146
12147	# Archives containing C++ object files must be created using
12148	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12149	# necessary to make sure instantiated templates are included
12150	# in the archive.
12151	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12152	;;
12153      gcx*)
12154	# Green Hills C++ Compiler
12155	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12156
12157	# The C++ compiler must be used to create the archive.
12158	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12159	;;
12160      *)
12161	# GNU C++ compiler with Solaris linker
12162	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12163	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12164	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12165	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12166	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12167		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12168
12169	    # Commands to make compiler produce verbose output that lists
12170	    # what "hidden" libraries, object files and flags are used when
12171	    # linking a shared library.
12172	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12173	  else
12174	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12175	    # platform.
12176	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12177	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12178		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12179
12180	    # Commands to make compiler produce verbose output that lists
12181	    # what "hidden" libraries, object files and flags are used when
12182	    # linking a shared library.
12183	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12184	  fi
12185
12186	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12187	fi
12188	;;
12189    esac
12190    ;;
12191  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12192    no_undefined_flag_CXX='${wl}-z,text'
12193    archive_cmds_need_lc_CXX=no
12194    hardcode_shlibpath_var_CXX=no
12195    runpath_var='LD_RUN_PATH'
12196
12197    case $cc_basename in
12198      CC*)
12199	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12200	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12201	;;
12202      *)
12203	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12204	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12205	;;
12206    esac
12207    ;;
12208  sysv5* | sco3.2v5* | sco5v6*)
12209    # Note: We can NOT use -z defs as we might desire, because we do not
12210    # link with -lc, and that would cause any symbols used from libc to
12211    # always be unresolved, which means just about no library would
12212    # ever link correctly.  If we're not using GNU ld we use -z text
12213    # though, which does catch some bad symbols but isn't as heavy-handed
12214    # as -z defs.
12215    # For security reasons, it is highly recommended that you always
12216    # use absolute paths for naming shared libraries, and exclude the
12217    # DT_RUNPATH tag from executables and libraries.  But doing so
12218    # requires that you compile everything twice, which is a pain.
12219    # So that behaviour is only enabled if SCOABSPATH is set to a
12220    # non-empty value in the environment.  Most likely only useful for
12221    # creating official distributions of packages.
12222    # This is a hack until libtool officially supports absolute path
12223    # names for shared libraries.
12224    no_undefined_flag_CXX='${wl}-z,text'
12225    allow_undefined_flag_CXX='${wl}-z,nodefs'
12226    archive_cmds_need_lc_CXX=no
12227    hardcode_shlibpath_var_CXX=no
12228    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12229    hardcode_libdir_separator_CXX=':'
12230    link_all_deplibs_CXX=yes
12231    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12232    runpath_var='LD_RUN_PATH'
12233
12234    case $cc_basename in
12235      CC*)
12236	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12237	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12238	;;
12239      *)
12240	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12241	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12242	;;
12243    esac
12244    ;;
12245  tandem*)
12246    case $cc_basename in
12247      NCC*)
12248	# NonStop-UX NCC 3.20
12249	# FIXME: insert proper C++ library support
12250	ld_shlibs_CXX=no
12251	;;
12252      *)
12253	# FIXME: insert proper C++ library support
12254	ld_shlibs_CXX=no
12255	;;
12256    esac
12257    ;;
12258  vxworks*)
12259    # FIXME: insert proper C++ library support
12260    ld_shlibs_CXX=no
12261    ;;
12262  *)
12263    # FIXME: insert proper C++ library support
12264    ld_shlibs_CXX=no
12265    ;;
12266esac
12267{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12268echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12269test "$ld_shlibs_CXX" = no && can_build_shared=no
12270
12271GCC_CXX="$GXX"
12272LD_CXX="$LD"
12273
12274## CAVEAT EMPTOR:
12275## There is no encapsulation within the following macros, do not change
12276## the running order or otherwise move them around unless you know exactly
12277## what you are doing...
12278
12279cat > conftest.$ac_ext <<EOF
12280class Foo
12281{
12282public:
12283  Foo (void) { a = 0; }
12284private:
12285  int a;
12286};
12287EOF
12288
12289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12290  (eval $ac_compile) 2>&5
12291  ac_status=$?
12292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293  (exit $ac_status); }; then
12294  # Parse the compiler output and extract the necessary
12295  # objects, libraries and library flags.
12296
12297  # Sentinel used to keep track of whether or not we are before
12298  # the conftest object file.
12299  pre_test_object_deps_done=no
12300
12301  # The `*' in the case matches for architectures that use `case' in
12302  # $output_verbose_cmd can trigger glob expansion during the loop
12303  # eval without this substitution.
12304  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12305
12306  for p in `eval $output_verbose_link_cmd`; do
12307    case $p in
12308
12309    -L* | -R* | -l*)
12310       # Some compilers place space between "-{L,R}" and the path.
12311       # Remove the space.
12312       if test $p = "-L" \
12313	  || test $p = "-R"; then
12314	 prev=$p
12315	 continue
12316       else
12317	 prev=
12318       fi
12319
12320       if test "$pre_test_object_deps_done" = no; then
12321	 case $p in
12322	 -L* | -R*)
12323	   # Internal compiler library paths should come after those
12324	   # provided the user.  The postdeps already come after the
12325	   # user supplied libs so there is no need to process them.
12326	   if test -z "$compiler_lib_search_path_CXX"; then
12327	     compiler_lib_search_path_CXX="${prev}${p}"
12328	   else
12329	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12330	   fi
12331	   ;;
12332	 # The "-l" case would never come before the object being
12333	 # linked, so don't bother handling this case.
12334	 esac
12335       else
12336	 if test -z "$postdeps_CXX"; then
12337	   postdeps_CXX="${prev}${p}"
12338	 else
12339	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12340	 fi
12341       fi
12342       ;;
12343
12344    *.$objext)
12345       # This assumes that the test object file only shows up
12346       # once in the compiler output.
12347       if test "$p" = "conftest.$objext"; then
12348	 pre_test_object_deps_done=yes
12349	 continue
12350       fi
12351
12352       if test "$pre_test_object_deps_done" = no; then
12353	 if test -z "$predep_objects_CXX"; then
12354	   predep_objects_CXX="$p"
12355	 else
12356	   predep_objects_CXX="$predep_objects_CXX $p"
12357	 fi
12358       else
12359	 if test -z "$postdep_objects_CXX"; then
12360	   postdep_objects_CXX="$p"
12361	 else
12362	   postdep_objects_CXX="$postdep_objects_CXX $p"
12363	 fi
12364       fi
12365       ;;
12366
12367    *) ;; # Ignore the rest.
12368
12369    esac
12370  done
12371
12372  # Clean up.
12373  rm -f a.out a.exe
12374else
12375  echo "libtool.m4: error: problem compiling CXX test program"
12376fi
12377
12378$rm -f confest.$objext
12379
12380# PORTME: override above test on systems where it is broken
12381case $host_os in
12382interix3*)
12383  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12384  # hack all around it, let's just trust "g++" to DTRT.
12385  predep_objects_CXX=
12386  postdep_objects_CXX=
12387  postdeps_CXX=
12388  ;;
12389
12390linux*)
12391  case `$CC -V 2>&1 | sed 5q` in
12392  *Sun\ C*)
12393    # Sun C++ 5.9
12394    postdeps_CXX='-lCstd -lCrun'
12395    ;;
12396  esac
12397  ;;
12398
12399solaris*)
12400  case $cc_basename in
12401  CC*)
12402    # Adding this requires a known-good setup of shared libraries for
12403    # Sun compiler versions before 5.6, else PIC objects from an old
12404    # archive will be linked into the output, leading to subtle bugs.
12405    postdeps_CXX='-lCstd -lCrun'
12406    ;;
12407  esac
12408  ;;
12409esac
12410
12411
12412case " $postdeps_CXX " in
12413*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12414esac
12415
12416lt_prog_compiler_wl_CXX=
12417lt_prog_compiler_pic_CXX=
12418lt_prog_compiler_static_CXX=
12419
12420{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12421echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12422
12423  # C++ specific cases for pic, static, wl, etc.
12424  if test "$GXX" = yes; then
12425    lt_prog_compiler_wl_CXX='-Wl,'
12426    lt_prog_compiler_static_CXX='-static'
12427
12428    case $host_os in
12429    aix*)
12430      # All AIX code is PIC.
12431      if test "$host_cpu" = ia64; then
12432	# AIX 5 now supports IA64 processor
12433	lt_prog_compiler_static_CXX='-Bstatic'
12434      fi
12435      ;;
12436    amigaos*)
12437      # FIXME: we need at least 68020 code to build shared libraries, but
12438      # adding the `-m68020' flag to GCC prevents building anything better,
12439      # like `-m68040'.
12440      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12441      ;;
12442    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12443      # PIC is the default for these OSes.
12444      ;;
12445    mingw* | cygwin* | os2* | pw32*)
12446      # This hack is so that the source file can tell whether it is being
12447      # built for inclusion in a dll (and should export symbols for example).
12448      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12449      # (--disable-auto-import) libraries
12450      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12451      ;;
12452    darwin* | rhapsody*)
12453      # PIC is the default on this platform
12454      # Common symbols not allowed in MH_DYLIB files
12455      lt_prog_compiler_pic_CXX='-fno-common'
12456      ;;
12457    *djgpp*)
12458      # DJGPP does not support shared libraries at all
12459      lt_prog_compiler_pic_CXX=
12460      ;;
12461    interix3*)
12462      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12463      # Instead, we relocate shared libraries at runtime.
12464      ;;
12465    sysv4*MP*)
12466      if test -d /usr/nec; then
12467	lt_prog_compiler_pic_CXX=-Kconform_pic
12468      fi
12469      ;;
12470    hpux*)
12471      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12472      # not for PA HP-UX.
12473      case $host_cpu in
12474      hppa*64*|ia64*)
12475	;;
12476      *)
12477	lt_prog_compiler_pic_CXX='-fPIC'
12478	;;
12479      esac
12480      ;;
12481    *)
12482      lt_prog_compiler_pic_CXX='-fPIC'
12483      ;;
12484    esac
12485  else
12486    case $host_os in
12487      aix4* | aix5*)
12488	# All AIX code is PIC.
12489	if test "$host_cpu" = ia64; then
12490	  # AIX 5 now supports IA64 processor
12491	  lt_prog_compiler_static_CXX='-Bstatic'
12492	else
12493	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12494	fi
12495	;;
12496      chorus*)
12497	case $cc_basename in
12498	cxch68*)
12499	  # Green Hills C++ Compiler
12500	  # _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"
12501	  ;;
12502	esac
12503	;;
12504       darwin*)
12505         # PIC is the default on this platform
12506         # Common symbols not allowed in MH_DYLIB files
12507         case $cc_basename in
12508           xlc*)
12509           lt_prog_compiler_pic_CXX='-qnocommon'
12510           lt_prog_compiler_wl_CXX='-Wl,'
12511           ;;
12512         esac
12513       ;;
12514      dgux*)
12515	case $cc_basename in
12516	  ec++*)
12517	    lt_prog_compiler_pic_CXX='-KPIC'
12518	    ;;
12519	  ghcx*)
12520	    # Green Hills C++ Compiler
12521	    lt_prog_compiler_pic_CXX='-pic'
12522	    ;;
12523	  *)
12524	    ;;
12525	esac
12526	;;
12527      freebsd* | kfreebsd*-gnu | dragonfly*)
12528	# FreeBSD uses GNU C++
12529	;;
12530      hpux9* | hpux10* | hpux11*)
12531	case $cc_basename in
12532	  CC*)
12533	    lt_prog_compiler_wl_CXX='-Wl,'
12534	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12535	    if test "$host_cpu" != ia64; then
12536	      lt_prog_compiler_pic_CXX='+Z'
12537	    fi
12538	    ;;
12539	  aCC*)
12540	    lt_prog_compiler_wl_CXX='-Wl,'
12541	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12542	    case $host_cpu in
12543	    hppa*64*|ia64*)
12544	      # +Z the default
12545	      ;;
12546	    *)
12547	      lt_prog_compiler_pic_CXX='+Z'
12548	      ;;
12549	    esac
12550	    ;;
12551	  *)
12552	    ;;
12553	esac
12554	;;
12555      interix*)
12556	# This is c89, which is MS Visual C++ (no shared libs)
12557	# Anyone wants to do a port?
12558	;;
12559      irix5* | irix6* | nonstopux*)
12560	case $cc_basename in
12561	  CC*)
12562	    lt_prog_compiler_wl_CXX='-Wl,'
12563	    lt_prog_compiler_static_CXX='-non_shared'
12564	    # CC pic flag -KPIC is the default.
12565	    ;;
12566	  *)
12567	    ;;
12568	esac
12569	;;
12570      linux*)
12571	case $cc_basename in
12572	  KCC*)
12573	    # KAI C++ Compiler
12574	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12575	    lt_prog_compiler_pic_CXX='-fPIC'
12576	    ;;
12577	  icpc* | ecpc*)
12578	    # Intel C++
12579	    lt_prog_compiler_wl_CXX='-Wl,'
12580	    lt_prog_compiler_pic_CXX='-KPIC'
12581	    lt_prog_compiler_static_CXX='-static'
12582	    ;;
12583	  pgCC*)
12584	    # Portland Group C++ compiler.
12585	    lt_prog_compiler_wl_CXX='-Wl,'
12586	    lt_prog_compiler_pic_CXX='-fpic'
12587	    lt_prog_compiler_static_CXX='-Bstatic'
12588	    ;;
12589	  cxx*)
12590	    # Compaq C++
12591	    # Make sure the PIC flag is empty.  It appears that all Alpha
12592	    # Linux and Compaq Tru64 Unix objects are PIC.
12593	    lt_prog_compiler_pic_CXX=
12594	    lt_prog_compiler_static_CXX='-non_shared'
12595	    ;;
12596	  *)
12597	    case `$CC -V 2>&1 | sed 5q` in
12598	    *Sun\ C*)
12599	      # Sun C++ 5.9
12600	      lt_prog_compiler_pic_CXX='-KPIC'
12601	      lt_prog_compiler_static_CXX='-Bstatic'
12602	      lt_prog_compiler_wl_CXX='-Qoption ld '
12603	      ;;
12604	    esac
12605	    ;;
12606	esac
12607	;;
12608      lynxos*)
12609	;;
12610      m88k*)
12611	;;
12612      mvs*)
12613	case $cc_basename in
12614	  cxx*)
12615	    lt_prog_compiler_pic_CXX='-W c,exportall'
12616	    ;;
12617	  *)
12618	    ;;
12619	esac
12620	;;
12621      netbsd*)
12622	;;
12623      osf3* | osf4* | osf5*)
12624	case $cc_basename in
12625	  KCC*)
12626	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12627	    ;;
12628	  RCC*)
12629	    # Rational C++ 2.4.1
12630	    lt_prog_compiler_pic_CXX='-pic'
12631	    ;;
12632	  cxx*)
12633	    # Digital/Compaq C++
12634	    lt_prog_compiler_wl_CXX='-Wl,'
12635	    # Make sure the PIC flag is empty.  It appears that all Alpha
12636	    # Linux and Compaq Tru64 Unix objects are PIC.
12637	    lt_prog_compiler_pic_CXX=
12638	    lt_prog_compiler_static_CXX='-non_shared'
12639	    ;;
12640	  *)
12641	    ;;
12642	esac
12643	;;
12644      psos*)
12645	;;
12646      solaris*)
12647	case $cc_basename in
12648	  CC*)
12649	    # Sun C++ 4.2, 5.x and Centerline C++
12650	    lt_prog_compiler_pic_CXX='-KPIC'
12651	    lt_prog_compiler_static_CXX='-Bstatic'
12652	    lt_prog_compiler_wl_CXX='-Qoption ld '
12653	    ;;
12654	  gcx*)
12655	    # Green Hills C++ Compiler
12656	    lt_prog_compiler_pic_CXX='-PIC'
12657	    ;;
12658	  *)
12659	    ;;
12660	esac
12661	;;
12662      sunos4*)
12663	case $cc_basename in
12664	  CC*)
12665	    # Sun C++ 4.x
12666	    lt_prog_compiler_pic_CXX='-pic'
12667	    lt_prog_compiler_static_CXX='-Bstatic'
12668	    ;;
12669	  lcc*)
12670	    # Lucid
12671	    lt_prog_compiler_pic_CXX='-pic'
12672	    ;;
12673	  *)
12674	    ;;
12675	esac
12676	;;
12677      tandem*)
12678	case $cc_basename in
12679	  NCC*)
12680	    # NonStop-UX NCC 3.20
12681	    lt_prog_compiler_pic_CXX='-KPIC'
12682	    ;;
12683	  *)
12684	    ;;
12685	esac
12686	;;
12687      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12688	case $cc_basename in
12689	  CC*)
12690	    lt_prog_compiler_wl_CXX='-Wl,'
12691	    lt_prog_compiler_pic_CXX='-KPIC'
12692	    lt_prog_compiler_static_CXX='-Bstatic'
12693	    ;;
12694	esac
12695	;;
12696      vxworks*)
12697	;;
12698      *)
12699	lt_prog_compiler_can_build_shared_CXX=no
12700	;;
12701    esac
12702  fi
12703
12704{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12705echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12706
12707#
12708# Check to make sure the PIC flag actually works.
12709#
12710if test -n "$lt_prog_compiler_pic_CXX"; then
12711
12712{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12713echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12714if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12715  echo $ECHO_N "(cached) $ECHO_C" >&6
12716else
12717  lt_prog_compiler_pic_works_CXX=no
12718  ac_outfile=conftest.$ac_objext
12719   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12720   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12721   # Insert the option either (1) after the last *FLAGS variable, or
12722   # (2) before a word containing "conftest.", or (3) at the end.
12723   # Note that $ac_compile itself does not contain backslashes and begins
12724   # with a dollar sign (not a hyphen), so the echo should work correctly.
12725   # The option is referenced via a variable to avoid confusing sed.
12726   lt_compile=`echo "$ac_compile" | $SED \
12727   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12728   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12729   -e 's:$: $lt_compiler_flag:'`
12730   (eval echo "\"\$as_me:12730: $lt_compile\"" >&5)
12731   (eval "$lt_compile" 2>conftest.err)
12732   ac_status=$?
12733   cat conftest.err >&5
12734   echo "$as_me:12734: \$? = $ac_status" >&5
12735   if (exit $ac_status) && test -s "$ac_outfile"; then
12736     # The compiler can only warn and ignore the option if not recognized
12737     # So say no if there are warnings other than the usual output.
12738     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12739     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12740     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12741       lt_prog_compiler_pic_works_CXX=yes
12742     fi
12743   fi
12744   $rm conftest*
12745
12746fi
12747{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12748echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12749
12750if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12751    case $lt_prog_compiler_pic_CXX in
12752     "" | " "*) ;;
12753     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12754     esac
12755else
12756    lt_prog_compiler_pic_CXX=
12757     lt_prog_compiler_can_build_shared_CXX=no
12758fi
12759
12760fi
12761case $host_os in
12762  # For platforms which do not support PIC, -DPIC is meaningless:
12763  *djgpp*)
12764    lt_prog_compiler_pic_CXX=
12765    ;;
12766  *)
12767    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12768    ;;
12769esac
12770
12771#
12772# Check to make sure the static flag actually works.
12773#
12774wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12775{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12776echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12777if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12778  echo $ECHO_N "(cached) $ECHO_C" >&6
12779else
12780  lt_prog_compiler_static_works_CXX=no
12781   save_LDFLAGS="$LDFLAGS"
12782   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12783   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12784   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12785     # The linker can only warn and ignore the option if not recognized
12786     # So say no if there are warnings
12787     if test -s conftest.err; then
12788       # Append any errors to the config.log.
12789       cat conftest.err 1>&5
12790       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12791       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12792       if diff conftest.exp conftest.er2 >/dev/null; then
12793         lt_prog_compiler_static_works_CXX=yes
12794       fi
12795     else
12796       lt_prog_compiler_static_works_CXX=yes
12797     fi
12798   fi
12799   $rm conftest*
12800   LDFLAGS="$save_LDFLAGS"
12801
12802fi
12803{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12804echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12805
12806if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12807    :
12808else
12809    lt_prog_compiler_static_CXX=
12810fi
12811
12812
12813{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12814echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12815if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12816  echo $ECHO_N "(cached) $ECHO_C" >&6
12817else
12818  lt_cv_prog_compiler_c_o_CXX=no
12819   $rm -r conftest 2>/dev/null
12820   mkdir conftest
12821   cd conftest
12822   mkdir out
12823   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12824
12825   lt_compiler_flag="-o out/conftest2.$ac_objext"
12826   # Insert the option either (1) after the last *FLAGS variable, or
12827   # (2) before a word containing "conftest.", or (3) at the end.
12828   # Note that $ac_compile itself does not contain backslashes and begins
12829   # with a dollar sign (not a hyphen), so the echo should work correctly.
12830   lt_compile=`echo "$ac_compile" | $SED \
12831   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12832   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12833   -e 's:$: $lt_compiler_flag:'`
12834   (eval echo "\"\$as_me:12834: $lt_compile\"" >&5)
12835   (eval "$lt_compile" 2>out/conftest.err)
12836   ac_status=$?
12837   cat out/conftest.err >&5
12838   echo "$as_me:12838: \$? = $ac_status" >&5
12839   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12840   then
12841     # The compiler can only warn and ignore the option if not recognized
12842     # So say no if there are warnings
12843     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12844     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12845     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12846       lt_cv_prog_compiler_c_o_CXX=yes
12847     fi
12848   fi
12849   chmod u+w . 2>&5
12850   $rm conftest*
12851   # SGI C++ compiler will create directory out/ii_files/ for
12852   # template instantiation
12853   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12854   $rm out/* && rmdir out
12855   cd ..
12856   rmdir conftest
12857   $rm conftest*
12858
12859fi
12860{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12861echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12862
12863
12864hard_links="nottested"
12865if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12866  # do not overwrite the value of need_locks provided by the user
12867  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12868echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12869  hard_links=yes
12870  $rm conftest*
12871  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12872  touch conftest.a
12873  ln conftest.a conftest.b 2>&5 || hard_links=no
12874  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12875  { echo "$as_me:$LINENO: result: $hard_links" >&5
12876echo "${ECHO_T}$hard_links" >&6; }
12877  if test "$hard_links" = no; then
12878    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12879echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12880    need_locks=warn
12881  fi
12882else
12883  need_locks=no
12884fi
12885
12886{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12887echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12888
12889  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12890  case $host_os in
12891  aix4* | aix5*)
12892    # If we're using GNU nm, then we don't want the "-C" option.
12893    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12894    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12895      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'
12896    else
12897      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'
12898    fi
12899    ;;
12900  pw32*)
12901    export_symbols_cmds_CXX="$ltdll_cmds"
12902  ;;
12903  cygwin* | mingw*)
12904    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'
12905  ;;
12906  *)
12907    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12908  ;;
12909  esac
12910
12911{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12912echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12913test "$ld_shlibs_CXX" = no && can_build_shared=no
12914
12915#
12916# Do we need to explicitly link libc?
12917#
12918case "x$archive_cmds_need_lc_CXX" in
12919x|xyes)
12920  # Assume -lc should be added
12921  archive_cmds_need_lc_CXX=yes
12922
12923  if test "$enable_shared" = yes && test "$GCC" = yes; then
12924    case $archive_cmds_CXX in
12925    *'~'*)
12926      # FIXME: we may have to deal with multi-command sequences.
12927      ;;
12928    '$CC '*)
12929      # Test whether the compiler implicitly links with -lc since on some
12930      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12931      # to ld, don't add -lc before -lgcc.
12932      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12933echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12934      $rm conftest*
12935      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12936
12937      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12938  (eval $ac_compile) 2>&5
12939  ac_status=$?
12940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941  (exit $ac_status); } 2>conftest.err; then
12942        soname=conftest
12943        lib=conftest
12944        libobjs=conftest.$ac_objext
12945        deplibs=
12946        wl=$lt_prog_compiler_wl_CXX
12947	pic_flag=$lt_prog_compiler_pic_CXX
12948        compiler_flags=-v
12949        linker_flags=-v
12950        verstring=
12951        output_objdir=.
12952        libname=conftest
12953        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12954        allow_undefined_flag_CXX=
12955        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12956  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12957  ac_status=$?
12958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959  (exit $ac_status); }
12960        then
12961	  archive_cmds_need_lc_CXX=no
12962        else
12963	  archive_cmds_need_lc_CXX=yes
12964        fi
12965        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12966      else
12967        cat conftest.err 1>&5
12968      fi
12969      $rm conftest*
12970      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12971echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12972      ;;
12973    esac
12974  fi
12975  ;;
12976esac
12977
12978{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12979echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12980library_names_spec=
12981libname_spec='lib$name'
12982soname_spec=
12983shrext_cmds=".so"
12984postinstall_cmds=
12985postuninstall_cmds=
12986finish_cmds=
12987finish_eval=
12988shlibpath_var=
12989shlibpath_overrides_runpath=unknown
12990version_type=none
12991dynamic_linker="$host_os ld.so"
12992sys_lib_dlsearch_path_spec="/lib /usr/lib"
12993if test "$GCC" = yes; then
12994  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12995  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12996    # if the path contains ";" then we assume it to be the separator
12997    # otherwise default to the standard path separator (i.e. ":") - it is
12998    # assumed that no part of a normal pathname contains ";" but that should
12999    # okay in the real world where ";" in dirpaths is itself problematic.
13000    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13001  else
13002    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13003  fi
13004else
13005  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13006fi
13007need_lib_prefix=unknown
13008hardcode_into_libs=no
13009
13010# when you set need_version to no, make sure it does not cause -set_version
13011# flags to be left without arguments
13012need_version=unknown
13013
13014case $host_os in
13015aix3*)
13016  version_type=linux
13017  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13018  shlibpath_var=LIBPATH
13019
13020  # AIX 3 has no versioning support, so we append a major version to the name.
13021  soname_spec='${libname}${release}${shared_ext}$major'
13022  ;;
13023
13024aix4* | aix5*)
13025  version_type=linux
13026  need_lib_prefix=no
13027  need_version=no
13028  hardcode_into_libs=yes
13029  if test "$host_cpu" = ia64; then
13030    # AIX 5 supports IA64
13031    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13032    shlibpath_var=LD_LIBRARY_PATH
13033  else
13034    # With GCC up to 2.95.x, collect2 would create an import file
13035    # for dependence libraries.  The import file would start with
13036    # the line `#! .'.  This would cause the generated library to
13037    # depend on `.', always an invalid library.  This was fixed in
13038    # development snapshots of GCC prior to 3.0.
13039    case $host_os in
13040      aix4 | aix4.[01] | aix4.[01].*)
13041      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13042	   echo ' yes '
13043	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13044	:
13045      else
13046	can_build_shared=no
13047      fi
13048      ;;
13049    esac
13050    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13051    # soname into executable. Probably we can add versioning support to
13052    # collect2, so additional links can be useful in future.
13053    if test "$aix_use_runtimelinking" = yes; then
13054      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13055      # instead of lib<name>.a to let people know that these are not
13056      # typical AIX shared libraries.
13057      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13058    else
13059      # We preserve .a as extension for shared libraries through AIX4.2
13060      # and later when we are not doing run time linking.
13061      library_names_spec='${libname}${release}.a $libname.a'
13062      soname_spec='${libname}${release}${shared_ext}$major'
13063    fi
13064    shlibpath_var=LIBPATH
13065  fi
13066  ;;
13067
13068amigaos*)
13069  library_names_spec='$libname.ixlibrary $libname.a'
13070  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13071  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'
13072  ;;
13073
13074beos*)
13075  library_names_spec='${libname}${shared_ext}'
13076  dynamic_linker="$host_os ld.so"
13077  shlibpath_var=LIBRARY_PATH
13078  ;;
13079
13080bsdi[45]*)
13081  version_type=linux
13082  need_version=no
13083  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13084  soname_spec='${libname}${release}${shared_ext}$major'
13085  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13086  shlibpath_var=LD_LIBRARY_PATH
13087  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13088  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13089  # the default ld.so.conf also contains /usr/contrib/lib and
13090  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13091  # libtool to hard-code these into programs
13092  ;;
13093
13094cygwin* | mingw* | pw32*)
13095  version_type=windows
13096  shrext_cmds=".dll"
13097  need_version=no
13098  need_lib_prefix=no
13099
13100  case $GCC,$host_os in
13101  yes,cygwin* | yes,mingw* | yes,pw32*)
13102    library_names_spec='$libname.dll.a'
13103    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13104    postinstall_cmds='base_file=`basename \${file}`~
13105      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13106      dldir=$destdir/`dirname \$dlpath`~
13107      test -d \$dldir || mkdir -p \$dldir~
13108      $install_prog $dir/$dlname \$dldir/$dlname~
13109      chmod a+x \$dldir/$dlname'
13110    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13111      dlpath=$dir/\$dldll~
13112       $rm \$dlpath'
13113    shlibpath_overrides_runpath=yes
13114
13115    case $host_os in
13116    cygwin*)
13117      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13118      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13119      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13120      ;;
13121    mingw*)
13122      # MinGW DLLs use traditional 'lib' prefix
13123      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13124      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13125      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13126        # It is most probably a Windows format PATH printed by
13127        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13128        # path with ; separators, and with drive letters. We can handle the
13129        # drive letters (cygwin fileutils understands them), so leave them,
13130        # especially as we might pass files found there to a mingw objdump,
13131        # which wouldn't understand a cygwinified path. Ahh.
13132        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13133      else
13134        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13135      fi
13136      ;;
13137    pw32*)
13138      # pw32 DLLs use 'pw' prefix rather than 'lib'
13139      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13140      ;;
13141    esac
13142    ;;
13143
13144  *)
13145    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13146    ;;
13147  esac
13148  dynamic_linker='Win32 ld.exe'
13149  # FIXME: first we should search . and the directory the executable is in
13150  shlibpath_var=PATH
13151  ;;
13152
13153darwin* | rhapsody*)
13154  dynamic_linker="$host_os dyld"
13155  version_type=darwin
13156  need_lib_prefix=no
13157  need_version=no
13158  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13159  soname_spec='${libname}${release}${major}$shared_ext'
13160  shlibpath_overrides_runpath=yes
13161  shlibpath_var=DYLD_LIBRARY_PATH
13162  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13163  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13164  if test "$GCC" = yes; then
13165    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"`
13166  else
13167    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13168  fi
13169  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13170  ;;
13171
13172dgux*)
13173  version_type=linux
13174  need_lib_prefix=no
13175  need_version=no
13176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13177  soname_spec='${libname}${release}${shared_ext}$major'
13178  shlibpath_var=LD_LIBRARY_PATH
13179  ;;
13180
13181freebsd1*)
13182  dynamic_linker=no
13183  ;;
13184
13185kfreebsd*-gnu)
13186  version_type=linux
13187  need_lib_prefix=no
13188  need_version=no
13189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13190  soname_spec='${libname}${release}${shared_ext}$major'
13191  shlibpath_var=LD_LIBRARY_PATH
13192  shlibpath_overrides_runpath=no
13193  hardcode_into_libs=yes
13194  dynamic_linker='GNU ld.so'
13195  ;;
13196
13197freebsd* | dragonfly*)
13198  # DragonFly does not have aout.  When/if they implement a new
13199  # versioning mechanism, adjust this.
13200  if test -x /usr/bin/objformat; then
13201    objformat=`/usr/bin/objformat`
13202  else
13203    case $host_os in
13204    freebsd[123]*) objformat=aout ;;
13205    *) objformat=elf ;;
13206    esac
13207  fi
13208  version_type=freebsd-$objformat
13209  case $version_type in
13210    freebsd-elf*)
13211      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13212      need_version=no
13213      need_lib_prefix=no
13214      ;;
13215    freebsd-*)
13216      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13217      need_version=yes
13218      ;;
13219  esac
13220  shlibpath_var=LD_LIBRARY_PATH
13221  case $host_os in
13222  freebsd2*)
13223    shlibpath_overrides_runpath=yes
13224    ;;
13225  freebsd3.[01]* | freebsdelf3.[01]*)
13226    shlibpath_overrides_runpath=yes
13227    hardcode_into_libs=yes
13228    ;;
13229  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13230  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13231    shlibpath_overrides_runpath=no
13232    hardcode_into_libs=yes
13233    ;;
13234  freebsd*) # from 4.6 on
13235    shlibpath_overrides_runpath=yes
13236    hardcode_into_libs=yes
13237    ;;
13238  esac
13239  ;;
13240
13241gnu*)
13242  version_type=linux
13243  need_lib_prefix=no
13244  need_version=no
13245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13246  soname_spec='${libname}${release}${shared_ext}$major'
13247  shlibpath_var=LD_LIBRARY_PATH
13248  hardcode_into_libs=yes
13249  ;;
13250
13251hpux9* | hpux10* | hpux11*)
13252  # Give a soname corresponding to the major version so that dld.sl refuses to
13253  # link against other versions.
13254  version_type=sunos
13255  need_lib_prefix=no
13256  need_version=no
13257  case $host_cpu in
13258  ia64*)
13259    shrext_cmds='.so'
13260    hardcode_into_libs=yes
13261    dynamic_linker="$host_os dld.so"
13262    shlibpath_var=LD_LIBRARY_PATH
13263    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13264    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13265    soname_spec='${libname}${release}${shared_ext}$major'
13266    if test "X$HPUX_IA64_MODE" = X32; then
13267      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13268    else
13269      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13270    fi
13271    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13272    ;;
13273   hppa*64*)
13274     shrext_cmds='.sl'
13275     hardcode_into_libs=yes
13276     dynamic_linker="$host_os dld.sl"
13277     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13278     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13279     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13280     soname_spec='${libname}${release}${shared_ext}$major'
13281     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13282     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13283     ;;
13284   *)
13285    shrext_cmds='.sl'
13286    dynamic_linker="$host_os dld.sl"
13287    shlibpath_var=SHLIB_PATH
13288    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13289    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13290    soname_spec='${libname}${release}${shared_ext}$major'
13291    ;;
13292  esac
13293  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13294  postinstall_cmds='chmod 555 $lib'
13295  ;;
13296
13297interix3*)
13298  version_type=linux
13299  need_lib_prefix=no
13300  need_version=no
13301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13302  soname_spec='${libname}${release}${shared_ext}$major'
13303  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13304  shlibpath_var=LD_LIBRARY_PATH
13305  shlibpath_overrides_runpath=no
13306  hardcode_into_libs=yes
13307  ;;
13308
13309irix5* | irix6* | nonstopux*)
13310  case $host_os in
13311    nonstopux*) version_type=nonstopux ;;
13312    *)
13313	if test "$lt_cv_prog_gnu_ld" = yes; then
13314		version_type=linux
13315	else
13316		version_type=irix
13317	fi ;;
13318  esac
13319  need_lib_prefix=no
13320  need_version=no
13321  soname_spec='${libname}${release}${shared_ext}$major'
13322  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13323  case $host_os in
13324  irix5* | nonstopux*)
13325    libsuff= shlibsuff=
13326    ;;
13327  *)
13328    case $LD in # libtool.m4 will add one of these switches to LD
13329    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13330      libsuff= shlibsuff= libmagic=32-bit;;
13331    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13332      libsuff=32 shlibsuff=N32 libmagic=N32;;
13333    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13334      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13335    *) libsuff= shlibsuff= libmagic=never-match;;
13336    esac
13337    ;;
13338  esac
13339  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13340  shlibpath_overrides_runpath=no
13341  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13342  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13343  hardcode_into_libs=yes
13344  ;;
13345
13346# No shared lib support for Linux oldld, aout, or coff.
13347linux*oldld* | linux*aout* | linux*coff*)
13348  dynamic_linker=no
13349  ;;
13350
13351# This must be Linux ELF.
13352linux*)
13353  version_type=linux
13354  need_lib_prefix=no
13355  need_version=no
13356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13357  soname_spec='${libname}${release}${shared_ext}$major'
13358  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13359  shlibpath_var=LD_LIBRARY_PATH
13360  shlibpath_overrides_runpath=no
13361  # This implies no fast_install, which is unacceptable.
13362  # Some rework will be needed to allow for fast_install
13363  # before this can be enabled.
13364  hardcode_into_libs=yes
13365
13366  # Append ld.so.conf contents to the search path
13367  if test -f /etc/ld.so.conf; then
13368    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13369    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13370  fi
13371
13372  # We used to test for /lib/ld.so.1 and disable shared libraries on
13373  # powerpc, because MkLinux only supported shared libraries with the
13374  # GNU dynamic linker.  Since this was broken with cross compilers,
13375  # most powerpc-linux boxes support dynamic linking these days and
13376  # people can always --disable-shared, the test was removed, and we
13377  # assume the GNU/Linux dynamic linker is in use.
13378  dynamic_linker='GNU/Linux ld.so'
13379  ;;
13380
13381knetbsd*-gnu)
13382  version_type=linux
13383  need_lib_prefix=no
13384  need_version=no
13385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13386  soname_spec='${libname}${release}${shared_ext}$major'
13387  shlibpath_var=LD_LIBRARY_PATH
13388  shlibpath_overrides_runpath=no
13389  hardcode_into_libs=yes
13390  dynamic_linker='GNU ld.so'
13391  ;;
13392
13393netbsd*)
13394  version_type=sunos
13395  need_lib_prefix=no
13396  need_version=no
13397  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13398    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13399    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13400    dynamic_linker='NetBSD (a.out) ld.so'
13401  else
13402    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13403    soname_spec='${libname}${release}${shared_ext}$major'
13404    dynamic_linker='NetBSD ld.elf_so'
13405  fi
13406  shlibpath_var=LD_LIBRARY_PATH
13407  shlibpath_overrides_runpath=yes
13408  hardcode_into_libs=yes
13409  ;;
13410
13411newsos6)
13412  version_type=linux
13413  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13414  shlibpath_var=LD_LIBRARY_PATH
13415  shlibpath_overrides_runpath=yes
13416  ;;
13417
13418nto-qnx*)
13419  version_type=linux
13420  need_lib_prefix=no
13421  need_version=no
13422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13423  soname_spec='${libname}${release}${shared_ext}$major'
13424  shlibpath_var=LD_LIBRARY_PATH
13425  shlibpath_overrides_runpath=yes
13426  ;;
13427
13428openbsd*)
13429  version_type=sunos
13430  sys_lib_dlsearch_path_spec="/usr/lib"
13431  need_lib_prefix=no
13432  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13433  case $host_os in
13434    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13435    *)                         need_version=no  ;;
13436  esac
13437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13438  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13439  shlibpath_var=LD_LIBRARY_PATH
13440  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13441    case $host_os in
13442      openbsd2.[89] | openbsd2.[89].*)
13443	shlibpath_overrides_runpath=no
13444	;;
13445      *)
13446	shlibpath_overrides_runpath=yes
13447	;;
13448      esac
13449  else
13450    shlibpath_overrides_runpath=yes
13451  fi
13452  ;;
13453
13454os2*)
13455  libname_spec='$name'
13456  shrext_cmds=".dll"
13457  need_lib_prefix=no
13458  library_names_spec='$libname${shared_ext} $libname.a'
13459  dynamic_linker='OS/2 ld.exe'
13460  shlibpath_var=LIBPATH
13461  ;;
13462
13463osf3* | osf4* | osf5*)
13464  version_type=osf
13465  need_lib_prefix=no
13466  need_version=no
13467  soname_spec='${libname}${release}${shared_ext}$major'
13468  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13469  shlibpath_var=LD_LIBRARY_PATH
13470  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13471  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13472  ;;
13473
13474solaris*)
13475  version_type=linux
13476  need_lib_prefix=no
13477  need_version=no
13478  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13479  soname_spec='${libname}${release}${shared_ext}$major'
13480  shlibpath_var=LD_LIBRARY_PATH
13481  shlibpath_overrides_runpath=yes
13482  hardcode_into_libs=yes
13483  # ldd complains unless libraries are executable
13484  postinstall_cmds='chmod +x $lib'
13485  ;;
13486
13487sunos4*)
13488  version_type=sunos
13489  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13490  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13491  shlibpath_var=LD_LIBRARY_PATH
13492  shlibpath_overrides_runpath=yes
13493  if test "$with_gnu_ld" = yes; then
13494    need_lib_prefix=no
13495  fi
13496  need_version=yes
13497  ;;
13498
13499sysv4 | sysv4.3*)
13500  version_type=linux
13501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13502  soname_spec='${libname}${release}${shared_ext}$major'
13503  shlibpath_var=LD_LIBRARY_PATH
13504  case $host_vendor in
13505    sni)
13506      shlibpath_overrides_runpath=no
13507      need_lib_prefix=no
13508      export_dynamic_flag_spec='${wl}-Blargedynsym'
13509      runpath_var=LD_RUN_PATH
13510      ;;
13511    siemens)
13512      need_lib_prefix=no
13513      ;;
13514    motorola)
13515      need_lib_prefix=no
13516      need_version=no
13517      shlibpath_overrides_runpath=no
13518      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13519      ;;
13520  esac
13521  ;;
13522
13523sysv4*MP*)
13524  if test -d /usr/nec ;then
13525    version_type=linux
13526    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13527    soname_spec='$libname${shared_ext}.$major'
13528    shlibpath_var=LD_LIBRARY_PATH
13529  fi
13530  ;;
13531
13532sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13533  version_type=freebsd-elf
13534  need_lib_prefix=no
13535  need_version=no
13536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13537  soname_spec='${libname}${release}${shared_ext}$major'
13538  shlibpath_var=LD_LIBRARY_PATH
13539  hardcode_into_libs=yes
13540  if test "$with_gnu_ld" = yes; then
13541    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13542    shlibpath_overrides_runpath=no
13543  else
13544    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13545    shlibpath_overrides_runpath=yes
13546    case $host_os in
13547      sco3.2v5*)
13548        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13549	;;
13550    esac
13551  fi
13552  sys_lib_dlsearch_path_spec='/usr/lib'
13553  ;;
13554
13555uts4*)
13556  version_type=linux
13557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13558  soname_spec='${libname}${release}${shared_ext}$major'
13559  shlibpath_var=LD_LIBRARY_PATH
13560  ;;
13561
13562*)
13563  dynamic_linker=no
13564  ;;
13565esac
13566{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13567echo "${ECHO_T}$dynamic_linker" >&6; }
13568test "$dynamic_linker" = no && can_build_shared=no
13569
13570variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13571if test "$GCC" = yes; then
13572  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13573fi
13574
13575{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13576echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13577hardcode_action_CXX=
13578if test -n "$hardcode_libdir_flag_spec_CXX" || \
13579   test -n "$runpath_var_CXX" || \
13580   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13581
13582  # We can hardcode non-existant directories.
13583  if test "$hardcode_direct_CXX" != no &&
13584     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13585     # have to relink, otherwise we might link with an installed library
13586     # when we should be linking with a yet-to-be-installed one
13587     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13588     test "$hardcode_minus_L_CXX" != no; then
13589    # Linking always hardcodes the temporary library directory.
13590    hardcode_action_CXX=relink
13591  else
13592    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13593    hardcode_action_CXX=immediate
13594  fi
13595else
13596  # We cannot hardcode anything, or else we can only hardcode existing
13597  # directories.
13598  hardcode_action_CXX=unsupported
13599fi
13600{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13601echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13602
13603if test "$hardcode_action_CXX" = relink; then
13604  # Fast installation is not supported
13605  enable_fast_install=no
13606elif test "$shlibpath_overrides_runpath" = yes ||
13607     test "$enable_shared" = no; then
13608  # Fast installation is not necessary
13609  enable_fast_install=needless
13610fi
13611
13612
13613# The else clause should only fire when bootstrapping the
13614# libtool distribution, otherwise you forgot to ship ltmain.sh
13615# with your package, and you will get complaints that there are
13616# no rules to generate ltmain.sh.
13617if test -f "$ltmain"; then
13618  # See if we are running on zsh, and set the options which allow our commands through
13619  # without removal of \ escapes.
13620  if test -n "${ZSH_VERSION+set}" ; then
13621    setopt NO_GLOB_SUBST
13622  fi
13623  # Now quote all the things that may contain metacharacters while being
13624  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13625  # variables and quote the copies for generation of the libtool script.
13626  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13627    SED SHELL STRIP \
13628    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13629    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13630    deplibs_check_method reload_flag reload_cmds need_locks \
13631    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13632    lt_cv_sys_global_symbol_to_c_name_address \
13633    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13634    old_postinstall_cmds old_postuninstall_cmds \
13635    compiler_CXX \
13636    CC_CXX \
13637    LD_CXX \
13638    lt_prog_compiler_wl_CXX \
13639    lt_prog_compiler_pic_CXX \
13640    lt_prog_compiler_static_CXX \
13641    lt_prog_compiler_no_builtin_flag_CXX \
13642    export_dynamic_flag_spec_CXX \
13643    thread_safe_flag_spec_CXX \
13644    whole_archive_flag_spec_CXX \
13645    enable_shared_with_static_runtimes_CXX \
13646    old_archive_cmds_CXX \
13647    old_archive_from_new_cmds_CXX \
13648    predep_objects_CXX \
13649    postdep_objects_CXX \
13650    predeps_CXX \
13651    postdeps_CXX \
13652    compiler_lib_search_path_CXX \
13653    archive_cmds_CXX \
13654    archive_expsym_cmds_CXX \
13655    postinstall_cmds_CXX \
13656    postuninstall_cmds_CXX \
13657    old_archive_from_expsyms_cmds_CXX \
13658    allow_undefined_flag_CXX \
13659    no_undefined_flag_CXX \
13660    export_symbols_cmds_CXX \
13661    hardcode_libdir_flag_spec_CXX \
13662    hardcode_libdir_flag_spec_ld_CXX \
13663    hardcode_libdir_separator_CXX \
13664    hardcode_automatic_CXX \
13665    module_cmds_CXX \
13666    module_expsym_cmds_CXX \
13667    lt_cv_prog_compiler_c_o_CXX \
13668    exclude_expsyms_CXX \
13669    include_expsyms_CXX; do
13670
13671    case $var in
13672    old_archive_cmds_CXX | \
13673    old_archive_from_new_cmds_CXX | \
13674    archive_cmds_CXX | \
13675    archive_expsym_cmds_CXX | \
13676    module_cmds_CXX | \
13677    module_expsym_cmds_CXX | \
13678    old_archive_from_expsyms_cmds_CXX | \
13679    export_symbols_cmds_CXX | \
13680    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13681    postinstall_cmds | postuninstall_cmds | \
13682    old_postinstall_cmds | old_postuninstall_cmds | \
13683    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13684      # Double-quote double-evaled strings.
13685      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13686      ;;
13687    *)
13688      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13689      ;;
13690    esac
13691  done
13692
13693  case $lt_echo in
13694  *'\$0 --fallback-echo"')
13695    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13696    ;;
13697  esac
13698
13699cfgfile="$ofile"
13700
13701  cat <<__EOF__ >> "$cfgfile"
13702# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13703
13704# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13705
13706# Shell to use when invoking shell scripts.
13707SHELL=$lt_SHELL
13708
13709# Whether or not to build shared libraries.
13710build_libtool_libs=$enable_shared
13711
13712# Whether or not to build static libraries.
13713build_old_libs=$enable_static
13714
13715# Whether or not to add -lc for building shared libraries.
13716build_libtool_need_lc=$archive_cmds_need_lc_CXX
13717
13718# Whether or not to disallow shared libs when runtime libs are static
13719allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13720
13721# Whether or not to optimize for fast installation.
13722fast_install=$enable_fast_install
13723
13724# The host system.
13725host_alias=$host_alias
13726host=$host
13727host_os=$host_os
13728
13729# The build system.
13730build_alias=$build_alias
13731build=$build
13732build_os=$build_os
13733
13734# An echo program that does not interpret backslashes.
13735echo=$lt_echo
13736
13737# The archiver.
13738AR=$lt_AR
13739AR_FLAGS=$lt_AR_FLAGS
13740
13741# A C compiler.
13742LTCC=$lt_LTCC
13743
13744# LTCC compiler flags.
13745LTCFLAGS=$lt_LTCFLAGS
13746
13747# A language-specific compiler.
13748CC=$lt_compiler_CXX
13749
13750# Is the compiler the GNU C compiler?
13751with_gcc=$GCC_CXX
13752
13753# An ERE matcher.
13754EGREP=$lt_EGREP
13755
13756# The linker used to build libraries.
13757LD=$lt_LD_CXX
13758
13759# Whether we need hard or soft links.
13760LN_S=$lt_LN_S
13761
13762# A BSD-compatible nm program.
13763NM=$lt_NM
13764
13765# A symbol stripping program
13766STRIP=$lt_STRIP
13767
13768# Used to examine libraries when file_magic_cmd begins "file"
13769MAGIC_CMD=$MAGIC_CMD
13770
13771# Used on cygwin: DLL creation program.
13772DLLTOOL="$DLLTOOL"
13773
13774# Used on cygwin: object dumper.
13775OBJDUMP="$OBJDUMP"
13776
13777# Used on cygwin: assembler.
13778AS="$AS"
13779
13780# The name of the directory that contains temporary libtool files.
13781objdir=$objdir
13782
13783# How to create reloadable object files.
13784reload_flag=$lt_reload_flag
13785reload_cmds=$lt_reload_cmds
13786
13787# How to pass a linker flag through the compiler.
13788wl=$lt_lt_prog_compiler_wl_CXX
13789
13790# Object file suffix (normally "o").
13791objext="$ac_objext"
13792
13793# Old archive suffix (normally "a").
13794libext="$libext"
13795
13796# Shared library suffix (normally ".so").
13797shrext_cmds='$shrext_cmds'
13798
13799# Executable file suffix (normally "").
13800exeext="$exeext"
13801
13802# Additional compiler flags for building library objects.
13803pic_flag=$lt_lt_prog_compiler_pic_CXX
13804pic_mode=$pic_mode
13805
13806# What is the maximum length of a command?
13807max_cmd_len=$lt_cv_sys_max_cmd_len
13808
13809# Does compiler simultaneously support -c and -o options?
13810compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13811
13812# Must we lock files when doing compilation?
13813need_locks=$lt_need_locks
13814
13815# Do we need the lib prefix for modules?
13816need_lib_prefix=$need_lib_prefix
13817
13818# Do we need a version for libraries?
13819need_version=$need_version
13820
13821# Whether dlopen is supported.
13822dlopen_support=$enable_dlopen
13823
13824# Whether dlopen of programs is supported.
13825dlopen_self=$enable_dlopen_self
13826
13827# Whether dlopen of statically linked programs is supported.
13828dlopen_self_static=$enable_dlopen_self_static
13829
13830# Compiler flag to prevent dynamic linking.
13831link_static_flag=$lt_lt_prog_compiler_static_CXX
13832
13833# Compiler flag to turn off builtin functions.
13834no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13835
13836# Compiler flag to allow reflexive dlopens.
13837export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13838
13839# Compiler flag to generate shared objects directly from archives.
13840whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13841
13842# Compiler flag to generate thread-safe objects.
13843thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13844
13845# Library versioning type.
13846version_type=$version_type
13847
13848# Format of library name prefix.
13849libname_spec=$lt_libname_spec
13850
13851# List of archive names.  First name is the real one, the rest are links.
13852# The last name is the one that the linker finds with -lNAME.
13853library_names_spec=$lt_library_names_spec
13854
13855# The coded name of the library, if different from the real name.
13856soname_spec=$lt_soname_spec
13857
13858# Commands used to build and install an old-style archive.
13859RANLIB=$lt_RANLIB
13860old_archive_cmds=$lt_old_archive_cmds_CXX
13861old_postinstall_cmds=$lt_old_postinstall_cmds
13862old_postuninstall_cmds=$lt_old_postuninstall_cmds
13863
13864# Create an old-style archive from a shared archive.
13865old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13866
13867# Create a temporary old-style archive to link instead of a shared archive.
13868old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13869
13870# Commands used to build and install a shared archive.
13871archive_cmds=$lt_archive_cmds_CXX
13872archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13873postinstall_cmds=$lt_postinstall_cmds
13874postuninstall_cmds=$lt_postuninstall_cmds
13875
13876# Commands used to build a loadable module (assumed same as above if empty)
13877module_cmds=$lt_module_cmds_CXX
13878module_expsym_cmds=$lt_module_expsym_cmds_CXX
13879
13880# Commands to strip libraries.
13881old_striplib=$lt_old_striplib
13882striplib=$lt_striplib
13883
13884# Dependencies to place before the objects being linked to create a
13885# shared library.
13886predep_objects=$lt_predep_objects_CXX
13887
13888# Dependencies to place after the objects being linked to create a
13889# shared library.
13890postdep_objects=$lt_postdep_objects_CXX
13891
13892# Dependencies to place before the objects being linked to create a
13893# shared library.
13894predeps=$lt_predeps_CXX
13895
13896# Dependencies to place after the objects being linked to create a
13897# shared library.
13898postdeps=$lt_postdeps_CXX
13899
13900# The library search path used internally by the compiler when linking
13901# a shared library.
13902compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13903
13904# Method to check whether dependent libraries are shared objects.
13905deplibs_check_method=$lt_deplibs_check_method
13906
13907# Command to use when deplibs_check_method == file_magic.
13908file_magic_cmd=$lt_file_magic_cmd
13909
13910# Flag that allows shared libraries with undefined symbols to be built.
13911allow_undefined_flag=$lt_allow_undefined_flag_CXX
13912
13913# Flag that forces no undefined symbols.
13914no_undefined_flag=$lt_no_undefined_flag_CXX
13915
13916# Commands used to finish a libtool library installation in a directory.
13917finish_cmds=$lt_finish_cmds
13918
13919# Same as above, but a single script fragment to be evaled but not shown.
13920finish_eval=$lt_finish_eval
13921
13922# Take the output of nm and produce a listing of raw symbols and C names.
13923global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13924
13925# Transform the output of nm in a proper C declaration
13926global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13927
13928# Transform the output of nm in a C name address pair
13929global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13930
13931# This is the shared library runtime path variable.
13932runpath_var=$runpath_var
13933
13934# This is the shared library path variable.
13935shlibpath_var=$shlibpath_var
13936
13937# Is shlibpath searched before the hard-coded library search path?
13938shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13939
13940# How to hardcode a shared library path into an executable.
13941hardcode_action=$hardcode_action_CXX
13942
13943# Whether we should hardcode library paths into libraries.
13944hardcode_into_libs=$hardcode_into_libs
13945
13946# Flag to hardcode \$libdir into a binary during linking.
13947# This must work even if \$libdir does not exist.
13948hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13949
13950# If ld is used when linking, flag to hardcode \$libdir into
13951# a binary during linking. This must work even if \$libdir does
13952# not exist.
13953hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13954
13955# Whether we need a single -rpath flag with a separated argument.
13956hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13957
13958# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13959# resulting binary.
13960hardcode_direct=$hardcode_direct_CXX
13961
13962# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13963# resulting binary.
13964hardcode_minus_L=$hardcode_minus_L_CXX
13965
13966# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13967# the resulting binary.
13968hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13969
13970# Set to yes if building a shared library automatically hardcodes DIR into the library
13971# and all subsequent libraries and executables linked against it.
13972hardcode_automatic=$hardcode_automatic_CXX
13973
13974# Variables whose values should be saved in libtool wrapper scripts and
13975# restored at relink time.
13976variables_saved_for_relink="$variables_saved_for_relink"
13977
13978# Whether libtool must link a program against all its dependency libraries.
13979link_all_deplibs=$link_all_deplibs_CXX
13980
13981# Compile-time system search path for libraries
13982sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13983
13984# Run-time system search path for libraries
13985sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13986
13987# Fix the shell variable \$srcfile for the compiler.
13988fix_srcfile_path="$fix_srcfile_path_CXX"
13989
13990# Set to yes if exported symbols are required.
13991always_export_symbols=$always_export_symbols_CXX
13992
13993# The commands to list exported symbols.
13994export_symbols_cmds=$lt_export_symbols_cmds_CXX
13995
13996# The commands to extract the exported symbol list from a shared archive.
13997extract_expsyms_cmds=$lt_extract_expsyms_cmds
13998
13999# Symbols that should not be listed in the preloaded symbols.
14000exclude_expsyms=$lt_exclude_expsyms_CXX
14001
14002# Symbols that must always be exported.
14003include_expsyms=$lt_include_expsyms_CXX
14004
14005# ### END LIBTOOL TAG CONFIG: $tagname
14006
14007__EOF__
14008
14009
14010else
14011  # If there is no Makefile yet, we rely on a make rule to execute
14012  # `config.status --recheck' to rerun these tests and create the
14013  # libtool script then.
14014  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14015  if test -f "$ltmain_in"; then
14016    test -f Makefile && make "$ltmain"
14017  fi
14018fi
14019
14020
14021ac_ext=c
14022ac_cpp='$CPP $CPPFLAGS'
14023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14025ac_compiler_gnu=$ac_cv_c_compiler_gnu
14026
14027CC=$lt_save_CC
14028LDCXX=$LD
14029LD=$lt_save_LD
14030GCC=$lt_save_GCC
14031with_gnu_ldcxx=$with_gnu_ld
14032with_gnu_ld=$lt_save_with_gnu_ld
14033lt_cv_path_LDCXX=$lt_cv_path_LD
14034lt_cv_path_LD=$lt_save_path_LD
14035lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14036lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14037
14038	else
14039	  tagname=""
14040	fi
14041	;;
14042
14043      F77)
14044	if test -n "$F77" && test "X$F77" != "Xno"; then
14045
14046ac_ext=f
14047ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14048ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14049ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14050
14051
14052archive_cmds_need_lc_F77=no
14053allow_undefined_flag_F77=
14054always_export_symbols_F77=no
14055archive_expsym_cmds_F77=
14056export_dynamic_flag_spec_F77=
14057hardcode_direct_F77=no
14058hardcode_libdir_flag_spec_F77=
14059hardcode_libdir_flag_spec_ld_F77=
14060hardcode_libdir_separator_F77=
14061hardcode_minus_L_F77=no
14062hardcode_automatic_F77=no
14063module_cmds_F77=
14064module_expsym_cmds_F77=
14065link_all_deplibs_F77=unknown
14066old_archive_cmds_F77=$old_archive_cmds
14067no_undefined_flag_F77=
14068whole_archive_flag_spec_F77=
14069enable_shared_with_static_runtimes_F77=no
14070
14071# Source file extension for f77 test sources.
14072ac_ext=f
14073
14074# Object file extension for compiled f77 test sources.
14075objext=o
14076objext_F77=$objext
14077
14078# Code to be used in simple compile tests
14079lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14080
14081# Code to be used in simple link tests
14082lt_simple_link_test_code="      program t\n      end\n"
14083
14084# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14085
14086# If no C compiler was specified, use CC.
14087LTCC=${LTCC-"$CC"}
14088
14089# If no C compiler flags were specified, use CFLAGS.
14090LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14091
14092# Allow CC to be a program name with arguments.
14093compiler=$CC
14094
14095
14096# save warnings/boilerplate of simple test code
14097ac_outfile=conftest.$ac_objext
14098printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14099eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14100_lt_compiler_boilerplate=`cat conftest.err`
14101$rm conftest*
14102
14103ac_outfile=conftest.$ac_objext
14104printf "$lt_simple_link_test_code" >conftest.$ac_ext
14105eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14106_lt_linker_boilerplate=`cat conftest.err`
14107$rm conftest*
14108
14109
14110# Allow CC to be a program name with arguments.
14111lt_save_CC="$CC"
14112CC=${F77-"f77"}
14113compiler=$CC
14114compiler_F77=$CC
14115for cc_temp in $compiler""; do
14116  case $cc_temp in
14117    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14118    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14119    \-*) ;;
14120    *) break;;
14121  esac
14122done
14123cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14124
14125
14126{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14127echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14128{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14129echo "${ECHO_T}$can_build_shared" >&6; }
14130
14131{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14132echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14133test "$can_build_shared" = "no" && enable_shared=no
14134
14135# On AIX, shared libraries and static libraries use the same namespace, and
14136# are all built from PIC.
14137case $host_os in
14138aix3*)
14139  test "$enable_shared" = yes && enable_static=no
14140  if test -n "$RANLIB"; then
14141    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14142    postinstall_cmds='$RANLIB $lib'
14143  fi
14144  ;;
14145aix4* | aix5*)
14146  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14147    test "$enable_shared" = yes && enable_static=no
14148  fi
14149  ;;
14150esac
14151{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14152echo "${ECHO_T}$enable_shared" >&6; }
14153
14154{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14155echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14156# Make sure either enable_shared or enable_static is yes.
14157test "$enable_shared" = yes || enable_static=yes
14158{ echo "$as_me:$LINENO: result: $enable_static" >&5
14159echo "${ECHO_T}$enable_static" >&6; }
14160
14161GCC_F77="$G77"
14162LD_F77="$LD"
14163
14164lt_prog_compiler_wl_F77=
14165lt_prog_compiler_pic_F77=
14166lt_prog_compiler_static_F77=
14167
14168{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14169echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14170
14171  if test "$GCC" = yes; then
14172    lt_prog_compiler_wl_F77='-Wl,'
14173    lt_prog_compiler_static_F77='-static'
14174
14175    case $host_os in
14176      aix*)
14177      # All AIX code is PIC.
14178      if test "$host_cpu" = ia64; then
14179	# AIX 5 now supports IA64 processor
14180	lt_prog_compiler_static_F77='-Bstatic'
14181      fi
14182      ;;
14183
14184    amigaos*)
14185      # FIXME: we need at least 68020 code to build shared libraries, but
14186      # adding the `-m68020' flag to GCC prevents building anything better,
14187      # like `-m68040'.
14188      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14189      ;;
14190
14191    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14192      # PIC is the default for these OSes.
14193      ;;
14194
14195    mingw* | cygwin* | pw32* | os2*)
14196      # This hack is so that the source file can tell whether it is being
14197      # built for inclusion in a dll (and should export symbols for example).
14198      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14199      # (--disable-auto-import) libraries
14200      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14201      ;;
14202
14203    darwin* | rhapsody*)
14204      # PIC is the default on this platform
14205      # Common symbols not allowed in MH_DYLIB files
14206      lt_prog_compiler_pic_F77='-fno-common'
14207      ;;
14208
14209    interix3*)
14210      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14211      # Instead, we relocate shared libraries at runtime.
14212      ;;
14213
14214    msdosdjgpp*)
14215      # Just because we use GCC doesn't mean we suddenly get shared libraries
14216      # on systems that don't support them.
14217      lt_prog_compiler_can_build_shared_F77=no
14218      enable_shared=no
14219      ;;
14220
14221    sysv4*MP*)
14222      if test -d /usr/nec; then
14223	lt_prog_compiler_pic_F77=-Kconform_pic
14224      fi
14225      ;;
14226
14227    hpux*)
14228      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14229      # not for PA HP-UX.
14230      case $host_cpu in
14231      hppa*64*|ia64*)
14232	# +Z the default
14233	;;
14234      *)
14235	lt_prog_compiler_pic_F77='-fPIC'
14236	;;
14237      esac
14238      ;;
14239
14240    *)
14241      lt_prog_compiler_pic_F77='-fPIC'
14242      ;;
14243    esac
14244  else
14245    # PORTME Check for flag to pass linker flags through the system compiler.
14246    case $host_os in
14247    aix*)
14248      lt_prog_compiler_wl_F77='-Wl,'
14249      if test "$host_cpu" = ia64; then
14250	# AIX 5 now supports IA64 processor
14251	lt_prog_compiler_static_F77='-Bstatic'
14252      else
14253	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14254      fi
14255      ;;
14256      darwin*)
14257        # PIC is the default on this platform
14258        # Common symbols not allowed in MH_DYLIB files
14259       case $cc_basename in
14260         xlc*)
14261         lt_prog_compiler_pic_F77='-qnocommon'
14262         lt_prog_compiler_wl_F77='-Wl,'
14263         ;;
14264       esac
14265       ;;
14266
14267    mingw* | cygwin* | pw32* | os2*)
14268      # This hack is so that the source file can tell whether it is being
14269      # built for inclusion in a dll (and should export symbols for example).
14270      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14271      # (--disable-auto-import) libraries
14272      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14273      ;;
14274
14275    hpux9* | hpux10* | hpux11*)
14276      lt_prog_compiler_wl_F77='-Wl,'
14277      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14278      # not for PA HP-UX.
14279      case $host_cpu in
14280      hppa*64*|ia64*)
14281	# +Z the default
14282	;;
14283      *)
14284	lt_prog_compiler_pic_F77='+Z'
14285	;;
14286      esac
14287      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14288      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14289      ;;
14290
14291    irix5* | irix6* | nonstopux*)
14292      lt_prog_compiler_wl_F77='-Wl,'
14293      # PIC (with -KPIC) is the default.
14294      lt_prog_compiler_static_F77='-non_shared'
14295      ;;
14296
14297    newsos6)
14298      lt_prog_compiler_pic_F77='-KPIC'
14299      lt_prog_compiler_static_F77='-Bstatic'
14300      ;;
14301
14302    linux*)
14303      case $cc_basename in
14304      icc* | ecc*)
14305	lt_prog_compiler_wl_F77='-Wl,'
14306	lt_prog_compiler_pic_F77='-KPIC'
14307	lt_prog_compiler_static_F77='-static'
14308        ;;
14309      pgcc* | pgf77* | pgf90* | pgf95*)
14310        # Portland Group compilers (*not* the Pentium gcc compiler,
14311	# which looks to be a dead project)
14312	lt_prog_compiler_wl_F77='-Wl,'
14313	lt_prog_compiler_pic_F77='-fpic'
14314	lt_prog_compiler_static_F77='-Bstatic'
14315        ;;
14316      ccc*)
14317        lt_prog_compiler_wl_F77='-Wl,'
14318        # All Alpha code is PIC.
14319        lt_prog_compiler_static_F77='-non_shared'
14320        ;;
14321      como)
14322        lt_prog_compiler_wl_F77='-lopt='
14323        ;;
14324      *)
14325        case `$CC -V 2>&1 | sed 5q` in
14326	*Sun\ C*)
14327	  # Sun C 5.9
14328	  lt_prog_compiler_pic_F77='-KPIC'
14329	  lt_prog_compiler_static_F77='-Bstatic'
14330	  lt_prog_compiler_wl_F77='-Wl,'
14331	  ;;
14332	*Sun\ F*)
14333	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14334	  lt_prog_compiler_pic_F77='-KPIC'
14335	  lt_prog_compiler_static_F77='-Bstatic'
14336	  lt_prog_compiler_wl_F77=''
14337	  ;;
14338	esac
14339	;;
14340      esac
14341      ;;
14342
14343    osf3* | osf4* | osf5*)
14344      lt_prog_compiler_wl_F77='-Wl,'
14345      # All OSF/1 code is PIC.
14346      lt_prog_compiler_static_F77='-non_shared'
14347      ;;
14348
14349    solaris*)
14350      lt_prog_compiler_pic_F77='-KPIC'
14351      lt_prog_compiler_static_F77='-Bstatic'
14352      case $cc_basename in
14353      f77* | f90* | f95*)
14354	lt_prog_compiler_wl_F77='-Qoption ld ';;
14355      *)
14356	lt_prog_compiler_wl_F77='-Wl,';;
14357      esac
14358      ;;
14359
14360    sunos4*)
14361      lt_prog_compiler_wl_F77='-Qoption ld '
14362      lt_prog_compiler_pic_F77='-PIC'
14363      lt_prog_compiler_static_F77='-Bstatic'
14364      ;;
14365
14366    sysv4 | sysv4.2uw2* | sysv4.3*)
14367      lt_prog_compiler_wl_F77='-Wl,'
14368      lt_prog_compiler_pic_F77='-KPIC'
14369      lt_prog_compiler_static_F77='-Bstatic'
14370      ;;
14371
14372    sysv4*MP*)
14373      if test -d /usr/nec ;then
14374	lt_prog_compiler_pic_F77='-Kconform_pic'
14375	lt_prog_compiler_static_F77='-Bstatic'
14376      fi
14377      ;;
14378
14379    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14380      lt_prog_compiler_wl_F77='-Wl,'
14381      lt_prog_compiler_pic_F77='-KPIC'
14382      lt_prog_compiler_static_F77='-Bstatic'
14383      ;;
14384
14385    unicos*)
14386      lt_prog_compiler_wl_F77='-Wl,'
14387      lt_prog_compiler_can_build_shared_F77=no
14388      ;;
14389
14390    uts4*)
14391      lt_prog_compiler_pic_F77='-pic'
14392      lt_prog_compiler_static_F77='-Bstatic'
14393      ;;
14394
14395    *)
14396      lt_prog_compiler_can_build_shared_F77=no
14397      ;;
14398    esac
14399  fi
14400
14401{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14402echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14403
14404#
14405# Check to make sure the PIC flag actually works.
14406#
14407if test -n "$lt_prog_compiler_pic_F77"; then
14408
14409{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14410echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14411if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14412  echo $ECHO_N "(cached) $ECHO_C" >&6
14413else
14414  lt_prog_compiler_pic_works_F77=no
14415  ac_outfile=conftest.$ac_objext
14416   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14417   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14418   # Insert the option either (1) after the last *FLAGS variable, or
14419   # (2) before a word containing "conftest.", or (3) at the end.
14420   # Note that $ac_compile itself does not contain backslashes and begins
14421   # with a dollar sign (not a hyphen), so the echo should work correctly.
14422   # The option is referenced via a variable to avoid confusing sed.
14423   lt_compile=`echo "$ac_compile" | $SED \
14424   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14425   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14426   -e 's:$: $lt_compiler_flag:'`
14427   (eval echo "\"\$as_me:14427: $lt_compile\"" >&5)
14428   (eval "$lt_compile" 2>conftest.err)
14429   ac_status=$?
14430   cat conftest.err >&5
14431   echo "$as_me:14431: \$? = $ac_status" >&5
14432   if (exit $ac_status) && test -s "$ac_outfile"; then
14433     # The compiler can only warn and ignore the option if not recognized
14434     # So say no if there are warnings other than the usual output.
14435     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14436     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14437     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14438       lt_prog_compiler_pic_works_F77=yes
14439     fi
14440   fi
14441   $rm conftest*
14442
14443fi
14444{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14445echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14446
14447if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14448    case $lt_prog_compiler_pic_F77 in
14449     "" | " "*) ;;
14450     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14451     esac
14452else
14453    lt_prog_compiler_pic_F77=
14454     lt_prog_compiler_can_build_shared_F77=no
14455fi
14456
14457fi
14458case $host_os in
14459  # For platforms which do not support PIC, -DPIC is meaningless:
14460  *djgpp*)
14461    lt_prog_compiler_pic_F77=
14462    ;;
14463  *)
14464    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14465    ;;
14466esac
14467
14468#
14469# Check to make sure the static flag actually works.
14470#
14471wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14472{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14473echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14474if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14475  echo $ECHO_N "(cached) $ECHO_C" >&6
14476else
14477  lt_prog_compiler_static_works_F77=no
14478   save_LDFLAGS="$LDFLAGS"
14479   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14480   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14481   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14482     # The linker can only warn and ignore the option if not recognized
14483     # So say no if there are warnings
14484     if test -s conftest.err; then
14485       # Append any errors to the config.log.
14486       cat conftest.err 1>&5
14487       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14488       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14489       if diff conftest.exp conftest.er2 >/dev/null; then
14490         lt_prog_compiler_static_works_F77=yes
14491       fi
14492     else
14493       lt_prog_compiler_static_works_F77=yes
14494     fi
14495   fi
14496   $rm conftest*
14497   LDFLAGS="$save_LDFLAGS"
14498
14499fi
14500{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14501echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14502
14503if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14504    :
14505else
14506    lt_prog_compiler_static_F77=
14507fi
14508
14509
14510{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14511echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14512if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14513  echo $ECHO_N "(cached) $ECHO_C" >&6
14514else
14515  lt_cv_prog_compiler_c_o_F77=no
14516   $rm -r conftest 2>/dev/null
14517   mkdir conftest
14518   cd conftest
14519   mkdir out
14520   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14521
14522   lt_compiler_flag="-o out/conftest2.$ac_objext"
14523   # Insert the option either (1) after the last *FLAGS variable, or
14524   # (2) before a word containing "conftest.", or (3) at the end.
14525   # Note that $ac_compile itself does not contain backslashes and begins
14526   # with a dollar sign (not a hyphen), so the echo should work correctly.
14527   lt_compile=`echo "$ac_compile" | $SED \
14528   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14529   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14530   -e 's:$: $lt_compiler_flag:'`
14531   (eval echo "\"\$as_me:14531: $lt_compile\"" >&5)
14532   (eval "$lt_compile" 2>out/conftest.err)
14533   ac_status=$?
14534   cat out/conftest.err >&5
14535   echo "$as_me:14535: \$? = $ac_status" >&5
14536   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14537   then
14538     # The compiler can only warn and ignore the option if not recognized
14539     # So say no if there are warnings
14540     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14541     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14542     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14543       lt_cv_prog_compiler_c_o_F77=yes
14544     fi
14545   fi
14546   chmod u+w . 2>&5
14547   $rm conftest*
14548   # SGI C++ compiler will create directory out/ii_files/ for
14549   # template instantiation
14550   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14551   $rm out/* && rmdir out
14552   cd ..
14553   rmdir conftest
14554   $rm conftest*
14555
14556fi
14557{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14558echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14559
14560
14561hard_links="nottested"
14562if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14563  # do not overwrite the value of need_locks provided by the user
14564  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14565echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14566  hard_links=yes
14567  $rm conftest*
14568  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14569  touch conftest.a
14570  ln conftest.a conftest.b 2>&5 || hard_links=no
14571  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14572  { echo "$as_me:$LINENO: result: $hard_links" >&5
14573echo "${ECHO_T}$hard_links" >&6; }
14574  if test "$hard_links" = no; then
14575    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14576echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14577    need_locks=warn
14578  fi
14579else
14580  need_locks=no
14581fi
14582
14583{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14584echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14585
14586  runpath_var=
14587  allow_undefined_flag_F77=
14588  enable_shared_with_static_runtimes_F77=no
14589  archive_cmds_F77=
14590  archive_expsym_cmds_F77=
14591  old_archive_From_new_cmds_F77=
14592  old_archive_from_expsyms_cmds_F77=
14593  export_dynamic_flag_spec_F77=
14594  whole_archive_flag_spec_F77=
14595  thread_safe_flag_spec_F77=
14596  hardcode_libdir_flag_spec_F77=
14597  hardcode_libdir_flag_spec_ld_F77=
14598  hardcode_libdir_separator_F77=
14599  hardcode_direct_F77=no
14600  hardcode_minus_L_F77=no
14601  hardcode_shlibpath_var_F77=unsupported
14602  link_all_deplibs_F77=unknown
14603  hardcode_automatic_F77=no
14604  module_cmds_F77=
14605  module_expsym_cmds_F77=
14606  always_export_symbols_F77=no
14607  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14608  # include_expsyms should be a list of space-separated symbols to be *always*
14609  # included in the symbol list
14610  include_expsyms_F77=
14611  # exclude_expsyms can be an extended regexp of symbols to exclude
14612  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14613  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14614  # as well as any symbol that contains `d'.
14615  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14616  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14617  # platforms (ab)use it in PIC code, but their linkers get confused if
14618  # the symbol is explicitly referenced.  Since portable code cannot
14619  # rely on this symbol name, it's probably fine to never include it in
14620  # preloaded symbol tables.
14621  extract_expsyms_cmds=
14622  # Just being paranoid about ensuring that cc_basename is set.
14623  for cc_temp in $compiler""; do
14624  case $cc_temp in
14625    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14626    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14627    \-*) ;;
14628    *) break;;
14629  esac
14630done
14631cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14632
14633  case $host_os in
14634  cygwin* | mingw* | pw32*)
14635    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14636    # When not using gcc, we currently assume that we are using
14637    # Microsoft Visual C++.
14638    if test "$GCC" != yes; then
14639      with_gnu_ld=no
14640    fi
14641    ;;
14642  interix*)
14643    # we just hope/assume this is gcc and not c89 (= MSVC++)
14644    with_gnu_ld=yes
14645    ;;
14646  openbsd*)
14647    with_gnu_ld=no
14648    ;;
14649  esac
14650
14651  ld_shlibs_F77=yes
14652  if test "$with_gnu_ld" = yes; then
14653    # If archive_cmds runs LD, not CC, wlarc should be empty
14654    wlarc='${wl}'
14655
14656    # Set some defaults for GNU ld with shared library support. These
14657    # are reset later if shared libraries are not supported. Putting them
14658    # here allows them to be overridden if necessary.
14659    runpath_var=LD_RUN_PATH
14660    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14661    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14662    # ancient GNU ld didn't support --whole-archive et. al.
14663    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14664	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14665      else
14666  	whole_archive_flag_spec_F77=
14667    fi
14668    supports_anon_versioning=no
14669    case `$LD -v 2>/dev/null` in
14670      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14671      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14672      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14673      *\ 2.11.*) ;; # other 2.11 versions
14674      *) supports_anon_versioning=yes ;;
14675    esac
14676
14677    # See if GNU ld supports shared libraries.
14678    case $host_os in
14679    aix3* | aix4* | aix5*)
14680      # On AIX/PPC, the GNU linker is very broken
14681      if test "$host_cpu" != ia64; then
14682	ld_shlibs_F77=no
14683	cat <<EOF 1>&2
14684
14685*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14686*** to be unable to reliably create shared libraries on AIX.
14687*** Therefore, libtool is disabling shared libraries support.  If you
14688*** really care for shared libraries, you may want to modify your PATH
14689*** so that a non-GNU linker is found, and then restart.
14690
14691EOF
14692      fi
14693      ;;
14694
14695    amigaos*)
14696      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)'
14697      hardcode_libdir_flag_spec_F77='-L$libdir'
14698      hardcode_minus_L_F77=yes
14699
14700      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14701      # that the semantics of dynamic libraries on AmigaOS, at least up
14702      # to version 4, is to share data among multiple programs linked
14703      # with the same dynamic library.  Since this doesn't match the
14704      # behavior of shared libraries on other platforms, we can't use
14705      # them.
14706      ld_shlibs_F77=no
14707      ;;
14708
14709    beos*)
14710      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14711	allow_undefined_flag_F77=unsupported
14712	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14713	# support --undefined.  This deserves some investigation.  FIXME
14714	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14715      else
14716	ld_shlibs_F77=no
14717      fi
14718      ;;
14719
14720    cygwin* | mingw* | pw32*)
14721      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14722      # as there is no search path for DLLs.
14723      hardcode_libdir_flag_spec_F77='-L$libdir'
14724      allow_undefined_flag_F77=unsupported
14725      always_export_symbols_F77=no
14726      enable_shared_with_static_runtimes_F77=yes
14727      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14728
14729      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14730        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14731	# If the export-symbols file already is a .def file (1st line
14732	# is EXPORTS), use it as is; otherwise, prepend...
14733	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14734	  cp $export_symbols $output_objdir/$soname.def;
14735	else
14736	  echo EXPORTS > $output_objdir/$soname.def;
14737	  cat $export_symbols >> $output_objdir/$soname.def;
14738	fi~
14739	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14740      else
14741	ld_shlibs_F77=no
14742      fi
14743      ;;
14744
14745    interix3*)
14746      hardcode_direct_F77=no
14747      hardcode_shlibpath_var_F77=no
14748      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14749      export_dynamic_flag_spec_F77='${wl}-E'
14750      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14751      # Instead, shared libraries are loaded at an image base (0x10000000 by
14752      # default) and relocated if they conflict, which is a slow very memory
14753      # consuming and fragmenting process.  To avoid this, we pick a random,
14754      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14755      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14756      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'
14757      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'
14758      ;;
14759
14760    linux*)
14761      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14762	tmp_addflag=
14763	case $cc_basename,$host_cpu in
14764	pgcc*)				# Portland Group C compiler
14765	  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'
14766	  tmp_addflag=' $pic_flag'
14767	  ;;
14768	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14769	  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'
14770	  tmp_addflag=' $pic_flag -Mnomain' ;;
14771	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14772	  tmp_addflag=' -i_dynamic' ;;
14773	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14774	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14775	ifc* | ifort*)			# Intel Fortran compiler
14776	  tmp_addflag=' -nofor_main' ;;
14777	esac
14778	case `$CC -V 2>&1 | sed 5q` in
14779	*Sun\ C*)			# Sun C 5.9
14780	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null'
14781	  tmp_sharedflag='-G' ;;
14782	*Sun\ F*)			# Sun Fortran 8.3
14783	  tmp_sharedflag='-G' ;;
14784	*)
14785	  tmp_sharedflag='-shared' ;;
14786	esac
14787	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14788
14789	if test $supports_anon_versioning = yes; then
14790	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14791  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14792  $echo "local: *; };" >> $output_objdir/$libname.ver~
14793	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14794	fi
14795      else
14796	ld_shlibs_F77=no
14797      fi
14798      ;;
14799
14800    netbsd*)
14801      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14802	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14803	wlarc=
14804      else
14805	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14806	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14807      fi
14808      ;;
14809
14810    solaris*)
14811      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14812	ld_shlibs_F77=no
14813	cat <<EOF 1>&2
14814
14815*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14816*** create shared libraries on Solaris systems.  Therefore, libtool
14817*** is disabling shared libraries support.  We urge you to upgrade GNU
14818*** binutils to release 2.9.1 or newer.  Another option is to modify
14819*** your PATH or compiler configuration so that the native linker is
14820*** used, and then restart.
14821
14822EOF
14823      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14824	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14825	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14826      else
14827	ld_shlibs_F77=no
14828      fi
14829      ;;
14830
14831    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14832      case `$LD -v 2>&1` in
14833        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14834	ld_shlibs_F77=no
14835	cat <<_LT_EOF 1>&2
14836
14837*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14838*** reliably create shared libraries on SCO systems.  Therefore, libtool
14839*** is disabling shared libraries support.  We urge you to upgrade GNU
14840*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14841*** your PATH or compiler configuration so that the native linker is
14842*** used, and then restart.
14843
14844_LT_EOF
14845	;;
14846	*)
14847	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14848	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14849	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14850	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14851	  else
14852	    ld_shlibs_F77=no
14853	  fi
14854	;;
14855      esac
14856      ;;
14857
14858    sunos4*)
14859      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14860      wlarc=
14861      hardcode_direct_F77=yes
14862      hardcode_shlibpath_var_F77=no
14863      ;;
14864
14865    *)
14866      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14867	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14868	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14869      else
14870	ld_shlibs_F77=no
14871      fi
14872      ;;
14873    esac
14874
14875    if test "$ld_shlibs_F77" = no; then
14876      runpath_var=
14877      hardcode_libdir_flag_spec_F77=
14878      export_dynamic_flag_spec_F77=
14879      whole_archive_flag_spec_F77=
14880    fi
14881  else
14882    # PORTME fill in a description of your system's linker (not GNU ld)
14883    case $host_os in
14884    aix3*)
14885      allow_undefined_flag_F77=unsupported
14886      always_export_symbols_F77=yes
14887      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'
14888      # Note: this linker hardcodes the directories in LIBPATH if there
14889      # are no directories specified by -L.
14890      hardcode_minus_L_F77=yes
14891      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14892	# Neither direct hardcoding nor static linking is supported with a
14893	# broken collect2.
14894	hardcode_direct_F77=unsupported
14895      fi
14896      ;;
14897
14898    aix4* | aix5*)
14899      if test "$host_cpu" = ia64; then
14900	# On IA64, the linker does run time linking by default, so we don't
14901	# have to do anything special.
14902	aix_use_runtimelinking=no
14903	exp_sym_flag='-Bexport'
14904	no_entry_flag=""
14905      else
14906	# If we're using GNU nm, then we don't want the "-C" option.
14907	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14908	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14909	  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'
14910	else
14911	  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'
14912	fi
14913	aix_use_runtimelinking=no
14914
14915	# Test if we are trying to use run time linking or normal
14916	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14917	# need to do runtime linking.
14918	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14919	  for ld_flag in $LDFLAGS; do
14920  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14921  	    aix_use_runtimelinking=yes
14922  	    break
14923  	  fi
14924	  done
14925	  ;;
14926	esac
14927
14928	exp_sym_flag='-bexport'
14929	no_entry_flag='-bnoentry'
14930      fi
14931
14932      # When large executables or shared objects are built, AIX ld can
14933      # have problems creating the table of contents.  If linking a library
14934      # or program results in "error TOC overflow" add -mminimal-toc to
14935      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14936      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14937
14938      archive_cmds_F77=''
14939      hardcode_direct_F77=yes
14940      hardcode_libdir_separator_F77=':'
14941      link_all_deplibs_F77=yes
14942
14943      if test "$GCC" = yes; then
14944	case $host_os in aix4.[012]|aix4.[012].*)
14945	# We only want to do this on AIX 4.2 and lower, the check
14946	# below for broken collect2 doesn't work under 4.3+
14947	  collect2name=`${CC} -print-prog-name=collect2`
14948	  if test -f "$collect2name" && \
14949  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14950	  then
14951  	  # We have reworked collect2
14952  	  hardcode_direct_F77=yes
14953	  else
14954  	  # We have old collect2
14955  	  hardcode_direct_F77=unsupported
14956  	  # It fails to find uninstalled libraries when the uninstalled
14957  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14958  	  # to unsupported forces relinking
14959  	  hardcode_minus_L_F77=yes
14960  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14961  	  hardcode_libdir_separator_F77=
14962	  fi
14963	  ;;
14964	esac
14965	shared_flag='-shared'
14966	if test "$aix_use_runtimelinking" = yes; then
14967	  shared_flag="$shared_flag "'${wl}-G'
14968	fi
14969      else
14970	# not using gcc
14971	if test "$host_cpu" = ia64; then
14972  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14973  	# chokes on -Wl,-G. The following line is correct:
14974	  shared_flag='-G'
14975	else
14976	  if test "$aix_use_runtimelinking" = yes; then
14977	    shared_flag='${wl}-G'
14978	  else
14979	    shared_flag='${wl}-bM:SRE'
14980	  fi
14981	fi
14982      fi
14983
14984      # It seems that -bexpall does not export symbols beginning with
14985      # underscore (_), so it is better to generate a list of symbols to export.
14986      always_export_symbols_F77=yes
14987      if test "$aix_use_runtimelinking" = yes; then
14988	# Warning - without using the other runtime loading flags (-brtl),
14989	# -berok will link without error, but may produce a broken library.
14990	allow_undefined_flag_F77='-berok'
14991       # Determine the default libpath from the value encoded in an empty executable.
14992       cat >conftest.$ac_ext <<_ACEOF
14993      program main
14994
14995      end
14996_ACEOF
14997rm -f conftest.$ac_objext conftest$ac_exeext
14998if { (ac_try="$ac_link"
14999case "(($ac_try" in
15000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15001  *) ac_try_echo=$ac_try;;
15002esac
15003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15004  (eval "$ac_link") 2>conftest.er1
15005  ac_status=$?
15006  grep -v '^ *+' conftest.er1 >conftest.err
15007  rm -f conftest.er1
15008  cat conftest.err >&5
15009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010  (exit $ac_status); } &&
15011	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15012  { (case "(($ac_try" in
15013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014  *) ac_try_echo=$ac_try;;
15015esac
15016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017  (eval "$ac_try") 2>&5
15018  ac_status=$?
15019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020  (exit $ac_status); }; } &&
15021	 { ac_try='test -s conftest$ac_exeext'
15022  { (case "(($ac_try" in
15023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024  *) ac_try_echo=$ac_try;;
15025esac
15026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15027  (eval "$ac_try") 2>&5
15028  ac_status=$?
15029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030  (exit $ac_status); }; }; then
15031
15032aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15033}'`
15034# Check for a 64-bit object if we didn't find anything.
15035if 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; }
15036}'`; fi
15037else
15038  echo "$as_me: failed program was:" >&5
15039sed 's/^/| /' conftest.$ac_ext >&5
15040
15041
15042fi
15043
15044rm -f core conftest.err conftest.$ac_objext \
15045      conftest$ac_exeext conftest.$ac_ext
15046if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15047
15048       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15049	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"
15050       else
15051	if test "$host_cpu" = ia64; then
15052	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15053	  allow_undefined_flag_F77="-z nodefs"
15054	  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"
15055	else
15056	 # Determine the default libpath from the value encoded in an empty executable.
15057	 cat >conftest.$ac_ext <<_ACEOF
15058      program main
15059
15060      end
15061_ACEOF
15062rm -f conftest.$ac_objext conftest$ac_exeext
15063if { (ac_try="$ac_link"
15064case "(($ac_try" in
15065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066  *) ac_try_echo=$ac_try;;
15067esac
15068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15069  (eval "$ac_link") 2>conftest.er1
15070  ac_status=$?
15071  grep -v '^ *+' conftest.er1 >conftest.err
15072  rm -f conftest.er1
15073  cat conftest.err >&5
15074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075  (exit $ac_status); } &&
15076	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15077  { (case "(($ac_try" in
15078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079  *) ac_try_echo=$ac_try;;
15080esac
15081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082  (eval "$ac_try") 2>&5
15083  ac_status=$?
15084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085  (exit $ac_status); }; } &&
15086	 { ac_try='test -s conftest$ac_exeext'
15087  { (case "(($ac_try" in
15088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089  *) ac_try_echo=$ac_try;;
15090esac
15091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092  (eval "$ac_try") 2>&5
15093  ac_status=$?
15094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095  (exit $ac_status); }; }; then
15096
15097aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15098}'`
15099# Check for a 64-bit object if we didn't find anything.
15100if 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; }
15101}'`; fi
15102else
15103  echo "$as_me: failed program was:" >&5
15104sed 's/^/| /' conftest.$ac_ext >&5
15105
15106
15107fi
15108
15109rm -f core conftest.err conftest.$ac_objext \
15110      conftest$ac_exeext conftest.$ac_ext
15111if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15112
15113	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15114	  # Warning - without using the other run time loading flags,
15115	  # -berok will link without error, but may produce a broken library.
15116	  no_undefined_flag_F77=' ${wl}-bernotok'
15117	  allow_undefined_flag_F77=' ${wl}-berok'
15118	  # Exported symbols can be pulled into shared objects from archives
15119	  whole_archive_flag_spec_F77='$convenience'
15120	  archive_cmds_need_lc_F77=yes
15121	  # This is similar to how AIX traditionally builds its shared libraries.
15122	  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'
15123	fi
15124      fi
15125      ;;
15126
15127    amigaos*)
15128      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)'
15129      hardcode_libdir_flag_spec_F77='-L$libdir'
15130      hardcode_minus_L_F77=yes
15131      # see comment about different semantics on the GNU ld section
15132      ld_shlibs_F77=no
15133      ;;
15134
15135    bsdi[45]*)
15136      export_dynamic_flag_spec_F77=-rdynamic
15137      ;;
15138
15139    cygwin* | mingw* | pw32*)
15140      # When not using gcc, we currently assume that we are using
15141      # Microsoft Visual C++.
15142      # hardcode_libdir_flag_spec is actually meaningless, as there is
15143      # no search path for DLLs.
15144      hardcode_libdir_flag_spec_F77=' '
15145      allow_undefined_flag_F77=unsupported
15146      # Tell ltmain to make .lib files, not .a files.
15147      libext=lib
15148      # Tell ltmain to make .dll files, not .so files.
15149      shrext_cmds=".dll"
15150      # FIXME: Setting linknames here is a bad hack.
15151      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15152      # The linker will automatically build a .lib file if we build a DLL.
15153      old_archive_From_new_cmds_F77='true'
15154      # FIXME: Should let the user specify the lib program.
15155      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15156      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15157      enable_shared_with_static_runtimes_F77=yes
15158      ;;
15159
15160    darwin* | rhapsody*)
15161      case $host_os in
15162        rhapsody* | darwin1.[012])
15163         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15164         ;;
15165       *) # Darwin 1.3 on
15166         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15167           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15168         else
15169           case ${MACOSX_DEPLOYMENT_TARGET} in
15170             10.[012])
15171               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15172               ;;
15173             10.*)
15174               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15175               ;;
15176           esac
15177         fi
15178         ;;
15179      esac
15180      archive_cmds_need_lc_F77=no
15181      hardcode_direct_F77=no
15182      hardcode_automatic_F77=yes
15183      hardcode_shlibpath_var_F77=unsupported
15184      whole_archive_flag_spec_F77=''
15185      link_all_deplibs_F77=yes
15186    if test "$GCC" = yes ; then
15187    	output_verbose_link_cmd='echo'
15188        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15189      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15190      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15191      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}'
15192      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}'
15193    else
15194      case $cc_basename in
15195        xlc*)
15196         output_verbose_link_cmd='echo'
15197         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15198         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15199          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15200         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}'
15201          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}'
15202          ;;
15203       *)
15204         ld_shlibs_F77=no
15205          ;;
15206      esac
15207    fi
15208      ;;
15209
15210    dgux*)
15211      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15212      hardcode_libdir_flag_spec_F77='-L$libdir'
15213      hardcode_shlibpath_var_F77=no
15214      ;;
15215
15216    freebsd1*)
15217      ld_shlibs_F77=no
15218      ;;
15219
15220    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15221    # support.  Future versions do this automatically, but an explicit c++rt0.o
15222    # does not break anything, and helps significantly (at the cost of a little
15223    # extra space).
15224    freebsd2.2*)
15225      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15226      hardcode_libdir_flag_spec_F77='-R$libdir'
15227      hardcode_direct_F77=yes
15228      hardcode_shlibpath_var_F77=no
15229      ;;
15230
15231    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15232    freebsd2*)
15233      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15234      hardcode_direct_F77=yes
15235      hardcode_minus_L_F77=yes
15236      hardcode_shlibpath_var_F77=no
15237      ;;
15238
15239    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15240    freebsd* | kfreebsd*-gnu | dragonfly*)
15241      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15242      hardcode_libdir_flag_spec_F77='-R$libdir'
15243      hardcode_direct_F77=yes
15244      hardcode_shlibpath_var_F77=no
15245      ;;
15246
15247    hpux9*)
15248      if test "$GCC" = yes; then
15249	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'
15250      else
15251	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'
15252      fi
15253      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15254      hardcode_libdir_separator_F77=:
15255      hardcode_direct_F77=yes
15256
15257      # hardcode_minus_L: Not really in the search PATH,
15258      # but as the default location of the library.
15259      hardcode_minus_L_F77=yes
15260      export_dynamic_flag_spec_F77='${wl}-E'
15261      ;;
15262
15263    hpux10*)
15264      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15265	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15266      else
15267	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15268      fi
15269      if test "$with_gnu_ld" = no; then
15270	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15271	hardcode_libdir_separator_F77=:
15272
15273	hardcode_direct_F77=yes
15274	export_dynamic_flag_spec_F77='${wl}-E'
15275
15276	# hardcode_minus_L: Not really in the search PATH,
15277	# but as the default location of the library.
15278	hardcode_minus_L_F77=yes
15279      fi
15280      ;;
15281
15282    hpux11*)
15283      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15284	case $host_cpu in
15285	hppa*64*)
15286	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15287	  ;;
15288	ia64*)
15289	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15290	  ;;
15291	*)
15292	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15293	  ;;
15294	esac
15295      else
15296	case $host_cpu in
15297	hppa*64*)
15298	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15299	  ;;
15300	ia64*)
15301	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15302	  ;;
15303	*)
15304	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15305	  ;;
15306	esac
15307      fi
15308      if test "$with_gnu_ld" = no; then
15309	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15310	hardcode_libdir_separator_F77=:
15311
15312	case $host_cpu in
15313	hppa*64*|ia64*)
15314	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15315	  hardcode_direct_F77=no
15316	  hardcode_shlibpath_var_F77=no
15317	  ;;
15318	*)
15319	  hardcode_direct_F77=yes
15320	  export_dynamic_flag_spec_F77='${wl}-E'
15321
15322	  # hardcode_minus_L: Not really in the search PATH,
15323	  # but as the default location of the library.
15324	  hardcode_minus_L_F77=yes
15325	  ;;
15326	esac
15327      fi
15328      ;;
15329
15330    irix5* | irix6* | nonstopux*)
15331      if test "$GCC" = yes; then
15332	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'
15333      else
15334	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'
15335	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15336      fi
15337      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15338      hardcode_libdir_separator_F77=:
15339      link_all_deplibs_F77=yes
15340      ;;
15341
15342    netbsd*)
15343      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15344	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15345      else
15346	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15347      fi
15348      hardcode_libdir_flag_spec_F77='-R$libdir'
15349      hardcode_direct_F77=yes
15350      hardcode_shlibpath_var_F77=no
15351      ;;
15352
15353    newsos6)
15354      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15355      hardcode_direct_F77=yes
15356      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15357      hardcode_libdir_separator_F77=:
15358      hardcode_shlibpath_var_F77=no
15359      ;;
15360
15361    openbsd*)
15362      hardcode_direct_F77=yes
15363      hardcode_shlibpath_var_F77=no
15364      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15365	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15366	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15367	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15368	export_dynamic_flag_spec_F77='${wl}-E'
15369      else
15370       case $host_os in
15371	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15372	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15373	   hardcode_libdir_flag_spec_F77='-R$libdir'
15374	   ;;
15375	 *)
15376	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15377	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15378	   ;;
15379       esac
15380      fi
15381      ;;
15382
15383    os2*)
15384      hardcode_libdir_flag_spec_F77='-L$libdir'
15385      hardcode_minus_L_F77=yes
15386      allow_undefined_flag_F77=unsupported
15387      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'
15388      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15389      ;;
15390
15391    osf3*)
15392      if test "$GCC" = yes; then
15393	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15394	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'
15395      else
15396	allow_undefined_flag_F77=' -expect_unresolved \*'
15397	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'
15398      fi
15399      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15400      hardcode_libdir_separator_F77=:
15401      ;;
15402
15403    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15404      if test "$GCC" = yes; then
15405	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15406	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'
15407	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15408      else
15409	allow_undefined_flag_F77=' -expect_unresolved \*'
15410	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'
15411	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~
15412	$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'
15413
15414	# Both c and cxx compiler support -rpath directly
15415	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15416      fi
15417      hardcode_libdir_separator_F77=:
15418      ;;
15419
15420    solaris*)
15421      no_undefined_flag_F77=' -z text'
15422      if test "$GCC" = yes; then
15423	wlarc='${wl}'
15424	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15425	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15426	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15427      else
15428	wlarc=''
15429	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15430	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15431  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15432      fi
15433      hardcode_libdir_flag_spec_F77='-R$libdir'
15434      hardcode_shlibpath_var_F77=no
15435      case $host_os in
15436      solaris2.[0-5] | solaris2.[0-5].*) ;;
15437      *)
15438 	# The compiler driver will combine linker options so we
15439 	# cannot just pass the convience library names through
15440 	# without $wl, iff we do not link with $LD.
15441 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15442 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15443 	case $wlarc in
15444 	'')
15445 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15446 	*)
15447 	  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' ;;
15448 	esac ;;
15449      esac
15450      link_all_deplibs_F77=yes
15451      ;;
15452
15453    sunos4*)
15454      if test "x$host_vendor" = xsequent; then
15455	# Use $CC to link under sequent, because it throws in some extra .o
15456	# files that make .init and .fini sections work.
15457	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15458      else
15459	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15460      fi
15461      hardcode_libdir_flag_spec_F77='-L$libdir'
15462      hardcode_direct_F77=yes
15463      hardcode_minus_L_F77=yes
15464      hardcode_shlibpath_var_F77=no
15465      ;;
15466
15467    sysv4)
15468      case $host_vendor in
15469	sni)
15470	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15471	  hardcode_direct_F77=yes # is this really true???
15472	;;
15473	siemens)
15474	  ## LD is ld it makes a PLAMLIB
15475	  ## CC just makes a GrossModule.
15476	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15477	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15478	  hardcode_direct_F77=no
15479        ;;
15480	motorola)
15481	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15482	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15483	;;
15484      esac
15485      runpath_var='LD_RUN_PATH'
15486      hardcode_shlibpath_var_F77=no
15487      ;;
15488
15489    sysv4.3*)
15490      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15491      hardcode_shlibpath_var_F77=no
15492      export_dynamic_flag_spec_F77='-Bexport'
15493      ;;
15494
15495    sysv4*MP*)
15496      if test -d /usr/nec; then
15497	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15498	hardcode_shlibpath_var_F77=no
15499	runpath_var=LD_RUN_PATH
15500	hardcode_runpath_var=yes
15501	ld_shlibs_F77=yes
15502      fi
15503      ;;
15504
15505    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15506      no_undefined_flag_F77='${wl}-z,text'
15507      archive_cmds_need_lc_F77=no
15508      hardcode_shlibpath_var_F77=no
15509      runpath_var='LD_RUN_PATH'
15510
15511      if test "$GCC" = yes; then
15512	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15513	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15514      else
15515	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15516	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15517      fi
15518      ;;
15519
15520    sysv5* | sco3.2v5* | sco5v6*)
15521      # Note: We can NOT use -z defs as we might desire, because we do not
15522      # link with -lc, and that would cause any symbols used from libc to
15523      # always be unresolved, which means just about no library would
15524      # ever link correctly.  If we're not using GNU ld we use -z text
15525      # though, which does catch some bad symbols but isn't as heavy-handed
15526      # as -z defs.
15527      no_undefined_flag_F77='${wl}-z,text'
15528      allow_undefined_flag_F77='${wl}-z,nodefs'
15529      archive_cmds_need_lc_F77=no
15530      hardcode_shlibpath_var_F77=no
15531      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15532      hardcode_libdir_separator_F77=':'
15533      link_all_deplibs_F77=yes
15534      export_dynamic_flag_spec_F77='${wl}-Bexport'
15535      runpath_var='LD_RUN_PATH'
15536
15537      if test "$GCC" = yes; then
15538	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15539	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15540      else
15541	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15542	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15543      fi
15544      ;;
15545
15546    uts4*)
15547      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15548      hardcode_libdir_flag_spec_F77='-L$libdir'
15549      hardcode_shlibpath_var_F77=no
15550      ;;
15551
15552    *)
15553      ld_shlibs_F77=no
15554      ;;
15555    esac
15556  fi
15557
15558{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15559echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15560test "$ld_shlibs_F77" = no && can_build_shared=no
15561
15562#
15563# Do we need to explicitly link libc?
15564#
15565case "x$archive_cmds_need_lc_F77" in
15566x|xyes)
15567  # Assume -lc should be added
15568  archive_cmds_need_lc_F77=yes
15569
15570  if test "$enable_shared" = yes && test "$GCC" = yes; then
15571    case $archive_cmds_F77 in
15572    *'~'*)
15573      # FIXME: we may have to deal with multi-command sequences.
15574      ;;
15575    '$CC '*)
15576      # Test whether the compiler implicitly links with -lc since on some
15577      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15578      # to ld, don't add -lc before -lgcc.
15579      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15580echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15581      $rm conftest*
15582      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15583
15584      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15585  (eval $ac_compile) 2>&5
15586  ac_status=$?
15587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588  (exit $ac_status); } 2>conftest.err; then
15589        soname=conftest
15590        lib=conftest
15591        libobjs=conftest.$ac_objext
15592        deplibs=
15593        wl=$lt_prog_compiler_wl_F77
15594	pic_flag=$lt_prog_compiler_pic_F77
15595        compiler_flags=-v
15596        linker_flags=-v
15597        verstring=
15598        output_objdir=.
15599        libname=conftest
15600        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15601        allow_undefined_flag_F77=
15602        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15603  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15604  ac_status=$?
15605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606  (exit $ac_status); }
15607        then
15608	  archive_cmds_need_lc_F77=no
15609        else
15610	  archive_cmds_need_lc_F77=yes
15611        fi
15612        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15613      else
15614        cat conftest.err 1>&5
15615      fi
15616      $rm conftest*
15617      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15618echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15619      ;;
15620    esac
15621  fi
15622  ;;
15623esac
15624
15625{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15626echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15627library_names_spec=
15628libname_spec='lib$name'
15629soname_spec=
15630shrext_cmds=".so"
15631postinstall_cmds=
15632postuninstall_cmds=
15633finish_cmds=
15634finish_eval=
15635shlibpath_var=
15636shlibpath_overrides_runpath=unknown
15637version_type=none
15638dynamic_linker="$host_os ld.so"
15639sys_lib_dlsearch_path_spec="/lib /usr/lib"
15640if test "$GCC" = yes; then
15641  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15642  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15643    # if the path contains ";" then we assume it to be the separator
15644    # otherwise default to the standard path separator (i.e. ":") - it is
15645    # assumed that no part of a normal pathname contains ";" but that should
15646    # okay in the real world where ";" in dirpaths is itself problematic.
15647    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15648  else
15649    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15650  fi
15651else
15652  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15653fi
15654need_lib_prefix=unknown
15655hardcode_into_libs=no
15656
15657# when you set need_version to no, make sure it does not cause -set_version
15658# flags to be left without arguments
15659need_version=unknown
15660
15661case $host_os in
15662aix3*)
15663  version_type=linux
15664  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15665  shlibpath_var=LIBPATH
15666
15667  # AIX 3 has no versioning support, so we append a major version to the name.
15668  soname_spec='${libname}${release}${shared_ext}$major'
15669  ;;
15670
15671aix4* | aix5*)
15672  version_type=linux
15673  need_lib_prefix=no
15674  need_version=no
15675  hardcode_into_libs=yes
15676  if test "$host_cpu" = ia64; then
15677    # AIX 5 supports IA64
15678    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15679    shlibpath_var=LD_LIBRARY_PATH
15680  else
15681    # With GCC up to 2.95.x, collect2 would create an import file
15682    # for dependence libraries.  The import file would start with
15683    # the line `#! .'.  This would cause the generated library to
15684    # depend on `.', always an invalid library.  This was fixed in
15685    # development snapshots of GCC prior to 3.0.
15686    case $host_os in
15687      aix4 | aix4.[01] | aix4.[01].*)
15688      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15689	   echo ' yes '
15690	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15691	:
15692      else
15693	can_build_shared=no
15694      fi
15695      ;;
15696    esac
15697    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15698    # soname into executable. Probably we can add versioning support to
15699    # collect2, so additional links can be useful in future.
15700    if test "$aix_use_runtimelinking" = yes; then
15701      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15702      # instead of lib<name>.a to let people know that these are not
15703      # typical AIX shared libraries.
15704      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15705    else
15706      # We preserve .a as extension for shared libraries through AIX4.2
15707      # and later when we are not doing run time linking.
15708      library_names_spec='${libname}${release}.a $libname.a'
15709      soname_spec='${libname}${release}${shared_ext}$major'
15710    fi
15711    shlibpath_var=LIBPATH
15712  fi
15713  ;;
15714
15715amigaos*)
15716  library_names_spec='$libname.ixlibrary $libname.a'
15717  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15718  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'
15719  ;;
15720
15721beos*)
15722  library_names_spec='${libname}${shared_ext}'
15723  dynamic_linker="$host_os ld.so"
15724  shlibpath_var=LIBRARY_PATH
15725  ;;
15726
15727bsdi[45]*)
15728  version_type=linux
15729  need_version=no
15730  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15731  soname_spec='${libname}${release}${shared_ext}$major'
15732  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15733  shlibpath_var=LD_LIBRARY_PATH
15734  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15735  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15736  # the default ld.so.conf also contains /usr/contrib/lib and
15737  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15738  # libtool to hard-code these into programs
15739  ;;
15740
15741cygwin* | mingw* | pw32*)
15742  version_type=windows
15743  shrext_cmds=".dll"
15744  need_version=no
15745  need_lib_prefix=no
15746
15747  case $GCC,$host_os in
15748  yes,cygwin* | yes,mingw* | yes,pw32*)
15749    library_names_spec='$libname.dll.a'
15750    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15751    postinstall_cmds='base_file=`basename \${file}`~
15752      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15753      dldir=$destdir/`dirname \$dlpath`~
15754      test -d \$dldir || mkdir -p \$dldir~
15755      $install_prog $dir/$dlname \$dldir/$dlname~
15756      chmod a+x \$dldir/$dlname'
15757    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15758      dlpath=$dir/\$dldll~
15759       $rm \$dlpath'
15760    shlibpath_overrides_runpath=yes
15761
15762    case $host_os in
15763    cygwin*)
15764      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15765      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15766      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15767      ;;
15768    mingw*)
15769      # MinGW DLLs use traditional 'lib' prefix
15770      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15771      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15772      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15773        # It is most probably a Windows format PATH printed by
15774        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15775        # path with ; separators, and with drive letters. We can handle the
15776        # drive letters (cygwin fileutils understands them), so leave them,
15777        # especially as we might pass files found there to a mingw objdump,
15778        # which wouldn't understand a cygwinified path. Ahh.
15779        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15780      else
15781        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15782      fi
15783      ;;
15784    pw32*)
15785      # pw32 DLLs use 'pw' prefix rather than 'lib'
15786      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15787      ;;
15788    esac
15789    ;;
15790
15791  *)
15792    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15793    ;;
15794  esac
15795  dynamic_linker='Win32 ld.exe'
15796  # FIXME: first we should search . and the directory the executable is in
15797  shlibpath_var=PATH
15798  ;;
15799
15800darwin* | rhapsody*)
15801  dynamic_linker="$host_os dyld"
15802  version_type=darwin
15803  need_lib_prefix=no
15804  need_version=no
15805  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15806  soname_spec='${libname}${release}${major}$shared_ext'
15807  shlibpath_overrides_runpath=yes
15808  shlibpath_var=DYLD_LIBRARY_PATH
15809  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15810  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15811  if test "$GCC" = yes; then
15812    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"`
15813  else
15814    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15815  fi
15816  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15817  ;;
15818
15819dgux*)
15820  version_type=linux
15821  need_lib_prefix=no
15822  need_version=no
15823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15824  soname_spec='${libname}${release}${shared_ext}$major'
15825  shlibpath_var=LD_LIBRARY_PATH
15826  ;;
15827
15828freebsd1*)
15829  dynamic_linker=no
15830  ;;
15831
15832kfreebsd*-gnu)
15833  version_type=linux
15834  need_lib_prefix=no
15835  need_version=no
15836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15837  soname_spec='${libname}${release}${shared_ext}$major'
15838  shlibpath_var=LD_LIBRARY_PATH
15839  shlibpath_overrides_runpath=no
15840  hardcode_into_libs=yes
15841  dynamic_linker='GNU ld.so'
15842  ;;
15843
15844freebsd* | dragonfly*)
15845  # DragonFly does not have aout.  When/if they implement a new
15846  # versioning mechanism, adjust this.
15847  if test -x /usr/bin/objformat; then
15848    objformat=`/usr/bin/objformat`
15849  else
15850    case $host_os in
15851    freebsd[123]*) objformat=aout ;;
15852    *) objformat=elf ;;
15853    esac
15854  fi
15855  version_type=freebsd-$objformat
15856  case $version_type in
15857    freebsd-elf*)
15858      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15859      need_version=no
15860      need_lib_prefix=no
15861      ;;
15862    freebsd-*)
15863      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15864      need_version=yes
15865      ;;
15866  esac
15867  shlibpath_var=LD_LIBRARY_PATH
15868  case $host_os in
15869  freebsd2*)
15870    shlibpath_overrides_runpath=yes
15871    ;;
15872  freebsd3.[01]* | freebsdelf3.[01]*)
15873    shlibpath_overrides_runpath=yes
15874    hardcode_into_libs=yes
15875    ;;
15876  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15877  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15878    shlibpath_overrides_runpath=no
15879    hardcode_into_libs=yes
15880    ;;
15881  freebsd*) # from 4.6 on
15882    shlibpath_overrides_runpath=yes
15883    hardcode_into_libs=yes
15884    ;;
15885  esac
15886  ;;
15887
15888gnu*)
15889  version_type=linux
15890  need_lib_prefix=no
15891  need_version=no
15892  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15893  soname_spec='${libname}${release}${shared_ext}$major'
15894  shlibpath_var=LD_LIBRARY_PATH
15895  hardcode_into_libs=yes
15896  ;;
15897
15898hpux9* | hpux10* | hpux11*)
15899  # Give a soname corresponding to the major version so that dld.sl refuses to
15900  # link against other versions.
15901  version_type=sunos
15902  need_lib_prefix=no
15903  need_version=no
15904  case $host_cpu in
15905  ia64*)
15906    shrext_cmds='.so'
15907    hardcode_into_libs=yes
15908    dynamic_linker="$host_os dld.so"
15909    shlibpath_var=LD_LIBRARY_PATH
15910    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15911    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15912    soname_spec='${libname}${release}${shared_ext}$major'
15913    if test "X$HPUX_IA64_MODE" = X32; then
15914      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15915    else
15916      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15917    fi
15918    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15919    ;;
15920   hppa*64*)
15921     shrext_cmds='.sl'
15922     hardcode_into_libs=yes
15923     dynamic_linker="$host_os dld.sl"
15924     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15925     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15926     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927     soname_spec='${libname}${release}${shared_ext}$major'
15928     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15929     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15930     ;;
15931   *)
15932    shrext_cmds='.sl'
15933    dynamic_linker="$host_os dld.sl"
15934    shlibpath_var=SHLIB_PATH
15935    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15936    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15937    soname_spec='${libname}${release}${shared_ext}$major'
15938    ;;
15939  esac
15940  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15941  postinstall_cmds='chmod 555 $lib'
15942  ;;
15943
15944interix3*)
15945  version_type=linux
15946  need_lib_prefix=no
15947  need_version=no
15948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15949  soname_spec='${libname}${release}${shared_ext}$major'
15950  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15951  shlibpath_var=LD_LIBRARY_PATH
15952  shlibpath_overrides_runpath=no
15953  hardcode_into_libs=yes
15954  ;;
15955
15956irix5* | irix6* | nonstopux*)
15957  case $host_os in
15958    nonstopux*) version_type=nonstopux ;;
15959    *)
15960	if test "$lt_cv_prog_gnu_ld" = yes; then
15961		version_type=linux
15962	else
15963		version_type=irix
15964	fi ;;
15965  esac
15966  need_lib_prefix=no
15967  need_version=no
15968  soname_spec='${libname}${release}${shared_ext}$major'
15969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15970  case $host_os in
15971  irix5* | nonstopux*)
15972    libsuff= shlibsuff=
15973    ;;
15974  *)
15975    case $LD in # libtool.m4 will add one of these switches to LD
15976    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15977      libsuff= shlibsuff= libmagic=32-bit;;
15978    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15979      libsuff=32 shlibsuff=N32 libmagic=N32;;
15980    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15981      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15982    *) libsuff= shlibsuff= libmagic=never-match;;
15983    esac
15984    ;;
15985  esac
15986  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15987  shlibpath_overrides_runpath=no
15988  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15989  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15990  hardcode_into_libs=yes
15991  ;;
15992
15993# No shared lib support for Linux oldld, aout, or coff.
15994linux*oldld* | linux*aout* | linux*coff*)
15995  dynamic_linker=no
15996  ;;
15997
15998# This must be Linux ELF.
15999linux*)
16000  version_type=linux
16001  need_lib_prefix=no
16002  need_version=no
16003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16004  soname_spec='${libname}${release}${shared_ext}$major'
16005  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16006  shlibpath_var=LD_LIBRARY_PATH
16007  shlibpath_overrides_runpath=no
16008  # This implies no fast_install, which is unacceptable.
16009  # Some rework will be needed to allow for fast_install
16010  # before this can be enabled.
16011  hardcode_into_libs=yes
16012
16013  # Append ld.so.conf contents to the search path
16014  if test -f /etc/ld.so.conf; then
16015    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16016    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16017  fi
16018
16019  # We used to test for /lib/ld.so.1 and disable shared libraries on
16020  # powerpc, because MkLinux only supported shared libraries with the
16021  # GNU dynamic linker.  Since this was broken with cross compilers,
16022  # most powerpc-linux boxes support dynamic linking these days and
16023  # people can always --disable-shared, the test was removed, and we
16024  # assume the GNU/Linux dynamic linker is in use.
16025  dynamic_linker='GNU/Linux ld.so'
16026  ;;
16027
16028knetbsd*-gnu)
16029  version_type=linux
16030  need_lib_prefix=no
16031  need_version=no
16032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16033  soname_spec='${libname}${release}${shared_ext}$major'
16034  shlibpath_var=LD_LIBRARY_PATH
16035  shlibpath_overrides_runpath=no
16036  hardcode_into_libs=yes
16037  dynamic_linker='GNU ld.so'
16038  ;;
16039
16040netbsd*)
16041  version_type=sunos
16042  need_lib_prefix=no
16043  need_version=no
16044  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16045    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16046    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16047    dynamic_linker='NetBSD (a.out) ld.so'
16048  else
16049    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16050    soname_spec='${libname}${release}${shared_ext}$major'
16051    dynamic_linker='NetBSD ld.elf_so'
16052  fi
16053  shlibpath_var=LD_LIBRARY_PATH
16054  shlibpath_overrides_runpath=yes
16055  hardcode_into_libs=yes
16056  ;;
16057
16058newsos6)
16059  version_type=linux
16060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061  shlibpath_var=LD_LIBRARY_PATH
16062  shlibpath_overrides_runpath=yes
16063  ;;
16064
16065nto-qnx*)
16066  version_type=linux
16067  need_lib_prefix=no
16068  need_version=no
16069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070  soname_spec='${libname}${release}${shared_ext}$major'
16071  shlibpath_var=LD_LIBRARY_PATH
16072  shlibpath_overrides_runpath=yes
16073  ;;
16074
16075openbsd*)
16076  version_type=sunos
16077  sys_lib_dlsearch_path_spec="/usr/lib"
16078  need_lib_prefix=no
16079  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16080  case $host_os in
16081    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16082    *)                         need_version=no  ;;
16083  esac
16084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16085  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16086  shlibpath_var=LD_LIBRARY_PATH
16087  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16088    case $host_os in
16089      openbsd2.[89] | openbsd2.[89].*)
16090	shlibpath_overrides_runpath=no
16091	;;
16092      *)
16093	shlibpath_overrides_runpath=yes
16094	;;
16095      esac
16096  else
16097    shlibpath_overrides_runpath=yes
16098  fi
16099  ;;
16100
16101os2*)
16102  libname_spec='$name'
16103  shrext_cmds=".dll"
16104  need_lib_prefix=no
16105  library_names_spec='$libname${shared_ext} $libname.a'
16106  dynamic_linker='OS/2 ld.exe'
16107  shlibpath_var=LIBPATH
16108  ;;
16109
16110osf3* | osf4* | osf5*)
16111  version_type=osf
16112  need_lib_prefix=no
16113  need_version=no
16114  soname_spec='${libname}${release}${shared_ext}$major'
16115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16116  shlibpath_var=LD_LIBRARY_PATH
16117  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16118  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16119  ;;
16120
16121solaris*)
16122  version_type=linux
16123  need_lib_prefix=no
16124  need_version=no
16125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16126  soname_spec='${libname}${release}${shared_ext}$major'
16127  shlibpath_var=LD_LIBRARY_PATH
16128  shlibpath_overrides_runpath=yes
16129  hardcode_into_libs=yes
16130  # ldd complains unless libraries are executable
16131  postinstall_cmds='chmod +x $lib'
16132  ;;
16133
16134sunos4*)
16135  version_type=sunos
16136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16137  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16138  shlibpath_var=LD_LIBRARY_PATH
16139  shlibpath_overrides_runpath=yes
16140  if test "$with_gnu_ld" = yes; then
16141    need_lib_prefix=no
16142  fi
16143  need_version=yes
16144  ;;
16145
16146sysv4 | sysv4.3*)
16147  version_type=linux
16148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16149  soname_spec='${libname}${release}${shared_ext}$major'
16150  shlibpath_var=LD_LIBRARY_PATH
16151  case $host_vendor in
16152    sni)
16153      shlibpath_overrides_runpath=no
16154      need_lib_prefix=no
16155      export_dynamic_flag_spec='${wl}-Blargedynsym'
16156      runpath_var=LD_RUN_PATH
16157      ;;
16158    siemens)
16159      need_lib_prefix=no
16160      ;;
16161    motorola)
16162      need_lib_prefix=no
16163      need_version=no
16164      shlibpath_overrides_runpath=no
16165      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16166      ;;
16167  esac
16168  ;;
16169
16170sysv4*MP*)
16171  if test -d /usr/nec ;then
16172    version_type=linux
16173    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16174    soname_spec='$libname${shared_ext}.$major'
16175    shlibpath_var=LD_LIBRARY_PATH
16176  fi
16177  ;;
16178
16179sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16180  version_type=freebsd-elf
16181  need_lib_prefix=no
16182  need_version=no
16183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16184  soname_spec='${libname}${release}${shared_ext}$major'
16185  shlibpath_var=LD_LIBRARY_PATH
16186  hardcode_into_libs=yes
16187  if test "$with_gnu_ld" = yes; then
16188    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16189    shlibpath_overrides_runpath=no
16190  else
16191    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16192    shlibpath_overrides_runpath=yes
16193    case $host_os in
16194      sco3.2v5*)
16195        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16196	;;
16197    esac
16198  fi
16199  sys_lib_dlsearch_path_spec='/usr/lib'
16200  ;;
16201
16202uts4*)
16203  version_type=linux
16204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16205  soname_spec='${libname}${release}${shared_ext}$major'
16206  shlibpath_var=LD_LIBRARY_PATH
16207  ;;
16208
16209*)
16210  dynamic_linker=no
16211  ;;
16212esac
16213{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16214echo "${ECHO_T}$dynamic_linker" >&6; }
16215test "$dynamic_linker" = no && can_build_shared=no
16216
16217variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16218if test "$GCC" = yes; then
16219  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16220fi
16221
16222{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16223echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16224hardcode_action_F77=
16225if test -n "$hardcode_libdir_flag_spec_F77" || \
16226   test -n "$runpath_var_F77" || \
16227   test "X$hardcode_automatic_F77" = "Xyes" ; then
16228
16229  # We can hardcode non-existant directories.
16230  if test "$hardcode_direct_F77" != no &&
16231     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16232     # have to relink, otherwise we might link with an installed library
16233     # when we should be linking with a yet-to-be-installed one
16234     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16235     test "$hardcode_minus_L_F77" != no; then
16236    # Linking always hardcodes the temporary library directory.
16237    hardcode_action_F77=relink
16238  else
16239    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16240    hardcode_action_F77=immediate
16241  fi
16242else
16243  # We cannot hardcode anything, or else we can only hardcode existing
16244  # directories.
16245  hardcode_action_F77=unsupported
16246fi
16247{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16248echo "${ECHO_T}$hardcode_action_F77" >&6; }
16249
16250if test "$hardcode_action_F77" = relink; then
16251  # Fast installation is not supported
16252  enable_fast_install=no
16253elif test "$shlibpath_overrides_runpath" = yes ||
16254     test "$enable_shared" = no; then
16255  # Fast installation is not necessary
16256  enable_fast_install=needless
16257fi
16258
16259
16260# The else clause should only fire when bootstrapping the
16261# libtool distribution, otherwise you forgot to ship ltmain.sh
16262# with your package, and you will get complaints that there are
16263# no rules to generate ltmain.sh.
16264if test -f "$ltmain"; then
16265  # See if we are running on zsh, and set the options which allow our commands through
16266  # without removal of \ escapes.
16267  if test -n "${ZSH_VERSION+set}" ; then
16268    setopt NO_GLOB_SUBST
16269  fi
16270  # Now quote all the things that may contain metacharacters while being
16271  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16272  # variables and quote the copies for generation of the libtool script.
16273  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16274    SED SHELL STRIP \
16275    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16276    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16277    deplibs_check_method reload_flag reload_cmds need_locks \
16278    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16279    lt_cv_sys_global_symbol_to_c_name_address \
16280    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16281    old_postinstall_cmds old_postuninstall_cmds \
16282    compiler_F77 \
16283    CC_F77 \
16284    LD_F77 \
16285    lt_prog_compiler_wl_F77 \
16286    lt_prog_compiler_pic_F77 \
16287    lt_prog_compiler_static_F77 \
16288    lt_prog_compiler_no_builtin_flag_F77 \
16289    export_dynamic_flag_spec_F77 \
16290    thread_safe_flag_spec_F77 \
16291    whole_archive_flag_spec_F77 \
16292    enable_shared_with_static_runtimes_F77 \
16293    old_archive_cmds_F77 \
16294    old_archive_from_new_cmds_F77 \
16295    predep_objects_F77 \
16296    postdep_objects_F77 \
16297    predeps_F77 \
16298    postdeps_F77 \
16299    compiler_lib_search_path_F77 \
16300    archive_cmds_F77 \
16301    archive_expsym_cmds_F77 \
16302    postinstall_cmds_F77 \
16303    postuninstall_cmds_F77 \
16304    old_archive_from_expsyms_cmds_F77 \
16305    allow_undefined_flag_F77 \
16306    no_undefined_flag_F77 \
16307    export_symbols_cmds_F77 \
16308    hardcode_libdir_flag_spec_F77 \
16309    hardcode_libdir_flag_spec_ld_F77 \
16310    hardcode_libdir_separator_F77 \
16311    hardcode_automatic_F77 \
16312    module_cmds_F77 \
16313    module_expsym_cmds_F77 \
16314    lt_cv_prog_compiler_c_o_F77 \
16315    exclude_expsyms_F77 \
16316    include_expsyms_F77; do
16317
16318    case $var in
16319    old_archive_cmds_F77 | \
16320    old_archive_from_new_cmds_F77 | \
16321    archive_cmds_F77 | \
16322    archive_expsym_cmds_F77 | \
16323    module_cmds_F77 | \
16324    module_expsym_cmds_F77 | \
16325    old_archive_from_expsyms_cmds_F77 | \
16326    export_symbols_cmds_F77 | \
16327    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16328    postinstall_cmds | postuninstall_cmds | \
16329    old_postinstall_cmds | old_postuninstall_cmds | \
16330    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16331      # Double-quote double-evaled strings.
16332      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16333      ;;
16334    *)
16335      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16336      ;;
16337    esac
16338  done
16339
16340  case $lt_echo in
16341  *'\$0 --fallback-echo"')
16342    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16343    ;;
16344  esac
16345
16346cfgfile="$ofile"
16347
16348  cat <<__EOF__ >> "$cfgfile"
16349# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16350
16351# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16352
16353# Shell to use when invoking shell scripts.
16354SHELL=$lt_SHELL
16355
16356# Whether or not to build shared libraries.
16357build_libtool_libs=$enable_shared
16358
16359# Whether or not to build static libraries.
16360build_old_libs=$enable_static
16361
16362# Whether or not to add -lc for building shared libraries.
16363build_libtool_need_lc=$archive_cmds_need_lc_F77
16364
16365# Whether or not to disallow shared libs when runtime libs are static
16366allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16367
16368# Whether or not to optimize for fast installation.
16369fast_install=$enable_fast_install
16370
16371# The host system.
16372host_alias=$host_alias
16373host=$host
16374host_os=$host_os
16375
16376# The build system.
16377build_alias=$build_alias
16378build=$build
16379build_os=$build_os
16380
16381# An echo program that does not interpret backslashes.
16382echo=$lt_echo
16383
16384# The archiver.
16385AR=$lt_AR
16386AR_FLAGS=$lt_AR_FLAGS
16387
16388# A C compiler.
16389LTCC=$lt_LTCC
16390
16391# LTCC compiler flags.
16392LTCFLAGS=$lt_LTCFLAGS
16393
16394# A language-specific compiler.
16395CC=$lt_compiler_F77
16396
16397# Is the compiler the GNU C compiler?
16398with_gcc=$GCC_F77
16399
16400# An ERE matcher.
16401EGREP=$lt_EGREP
16402
16403# The linker used to build libraries.
16404LD=$lt_LD_F77
16405
16406# Whether we need hard or soft links.
16407LN_S=$lt_LN_S
16408
16409# A BSD-compatible nm program.
16410NM=$lt_NM
16411
16412# A symbol stripping program
16413STRIP=$lt_STRIP
16414
16415# Used to examine libraries when file_magic_cmd begins "file"
16416MAGIC_CMD=$MAGIC_CMD
16417
16418# Used on cygwin: DLL creation program.
16419DLLTOOL="$DLLTOOL"
16420
16421# Used on cygwin: object dumper.
16422OBJDUMP="$OBJDUMP"
16423
16424# Used on cygwin: assembler.
16425AS="$AS"
16426
16427# The name of the directory that contains temporary libtool files.
16428objdir=$objdir
16429
16430# How to create reloadable object files.
16431reload_flag=$lt_reload_flag
16432reload_cmds=$lt_reload_cmds
16433
16434# How to pass a linker flag through the compiler.
16435wl=$lt_lt_prog_compiler_wl_F77
16436
16437# Object file suffix (normally "o").
16438objext="$ac_objext"
16439
16440# Old archive suffix (normally "a").
16441libext="$libext"
16442
16443# Shared library suffix (normally ".so").
16444shrext_cmds='$shrext_cmds'
16445
16446# Executable file suffix (normally "").
16447exeext="$exeext"
16448
16449# Additional compiler flags for building library objects.
16450pic_flag=$lt_lt_prog_compiler_pic_F77
16451pic_mode=$pic_mode
16452
16453# What is the maximum length of a command?
16454max_cmd_len=$lt_cv_sys_max_cmd_len
16455
16456# Does compiler simultaneously support -c and -o options?
16457compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16458
16459# Must we lock files when doing compilation?
16460need_locks=$lt_need_locks
16461
16462# Do we need the lib prefix for modules?
16463need_lib_prefix=$need_lib_prefix
16464
16465# Do we need a version for libraries?
16466need_version=$need_version
16467
16468# Whether dlopen is supported.
16469dlopen_support=$enable_dlopen
16470
16471# Whether dlopen of programs is supported.
16472dlopen_self=$enable_dlopen_self
16473
16474# Whether dlopen of statically linked programs is supported.
16475dlopen_self_static=$enable_dlopen_self_static
16476
16477# Compiler flag to prevent dynamic linking.
16478link_static_flag=$lt_lt_prog_compiler_static_F77
16479
16480# Compiler flag to turn off builtin functions.
16481no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16482
16483# Compiler flag to allow reflexive dlopens.
16484export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16485
16486# Compiler flag to generate shared objects directly from archives.
16487whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16488
16489# Compiler flag to generate thread-safe objects.
16490thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16491
16492# Library versioning type.
16493version_type=$version_type
16494
16495# Format of library name prefix.
16496libname_spec=$lt_libname_spec
16497
16498# List of archive names.  First name is the real one, the rest are links.
16499# The last name is the one that the linker finds with -lNAME.
16500library_names_spec=$lt_library_names_spec
16501
16502# The coded name of the library, if different from the real name.
16503soname_spec=$lt_soname_spec
16504
16505# Commands used to build and install an old-style archive.
16506RANLIB=$lt_RANLIB
16507old_archive_cmds=$lt_old_archive_cmds_F77
16508old_postinstall_cmds=$lt_old_postinstall_cmds
16509old_postuninstall_cmds=$lt_old_postuninstall_cmds
16510
16511# Create an old-style archive from a shared archive.
16512old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16513
16514# Create a temporary old-style archive to link instead of a shared archive.
16515old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16516
16517# Commands used to build and install a shared archive.
16518archive_cmds=$lt_archive_cmds_F77
16519archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16520postinstall_cmds=$lt_postinstall_cmds
16521postuninstall_cmds=$lt_postuninstall_cmds
16522
16523# Commands used to build a loadable module (assumed same as above if empty)
16524module_cmds=$lt_module_cmds_F77
16525module_expsym_cmds=$lt_module_expsym_cmds_F77
16526
16527# Commands to strip libraries.
16528old_striplib=$lt_old_striplib
16529striplib=$lt_striplib
16530
16531# Dependencies to place before the objects being linked to create a
16532# shared library.
16533predep_objects=$lt_predep_objects_F77
16534
16535# Dependencies to place after the objects being linked to create a
16536# shared library.
16537postdep_objects=$lt_postdep_objects_F77
16538
16539# Dependencies to place before the objects being linked to create a
16540# shared library.
16541predeps=$lt_predeps_F77
16542
16543# Dependencies to place after the objects being linked to create a
16544# shared library.
16545postdeps=$lt_postdeps_F77
16546
16547# The library search path used internally by the compiler when linking
16548# a shared library.
16549compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16550
16551# Method to check whether dependent libraries are shared objects.
16552deplibs_check_method=$lt_deplibs_check_method
16553
16554# Command to use when deplibs_check_method == file_magic.
16555file_magic_cmd=$lt_file_magic_cmd
16556
16557# Flag that allows shared libraries with undefined symbols to be built.
16558allow_undefined_flag=$lt_allow_undefined_flag_F77
16559
16560# Flag that forces no undefined symbols.
16561no_undefined_flag=$lt_no_undefined_flag_F77
16562
16563# Commands used to finish a libtool library installation in a directory.
16564finish_cmds=$lt_finish_cmds
16565
16566# Same as above, but a single script fragment to be evaled but not shown.
16567finish_eval=$lt_finish_eval
16568
16569# Take the output of nm and produce a listing of raw symbols and C names.
16570global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16571
16572# Transform the output of nm in a proper C declaration
16573global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16574
16575# Transform the output of nm in a C name address pair
16576global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16577
16578# This is the shared library runtime path variable.
16579runpath_var=$runpath_var
16580
16581# This is the shared library path variable.
16582shlibpath_var=$shlibpath_var
16583
16584# Is shlibpath searched before the hard-coded library search path?
16585shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16586
16587# How to hardcode a shared library path into an executable.
16588hardcode_action=$hardcode_action_F77
16589
16590# Whether we should hardcode library paths into libraries.
16591hardcode_into_libs=$hardcode_into_libs
16592
16593# Flag to hardcode \$libdir into a binary during linking.
16594# This must work even if \$libdir does not exist.
16595hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16596
16597# If ld is used when linking, flag to hardcode \$libdir into
16598# a binary during linking. This must work even if \$libdir does
16599# not exist.
16600hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16601
16602# Whether we need a single -rpath flag with a separated argument.
16603hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16604
16605# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16606# resulting binary.
16607hardcode_direct=$hardcode_direct_F77
16608
16609# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16610# resulting binary.
16611hardcode_minus_L=$hardcode_minus_L_F77
16612
16613# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16614# the resulting binary.
16615hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16616
16617# Set to yes if building a shared library automatically hardcodes DIR into the library
16618# and all subsequent libraries and executables linked against it.
16619hardcode_automatic=$hardcode_automatic_F77
16620
16621# Variables whose values should be saved in libtool wrapper scripts and
16622# restored at relink time.
16623variables_saved_for_relink="$variables_saved_for_relink"
16624
16625# Whether libtool must link a program against all its dependency libraries.
16626link_all_deplibs=$link_all_deplibs_F77
16627
16628# Compile-time system search path for libraries
16629sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16630
16631# Run-time system search path for libraries
16632sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16633
16634# Fix the shell variable \$srcfile for the compiler.
16635fix_srcfile_path="$fix_srcfile_path_F77"
16636
16637# Set to yes if exported symbols are required.
16638always_export_symbols=$always_export_symbols_F77
16639
16640# The commands to list exported symbols.
16641export_symbols_cmds=$lt_export_symbols_cmds_F77
16642
16643# The commands to extract the exported symbol list from a shared archive.
16644extract_expsyms_cmds=$lt_extract_expsyms_cmds
16645
16646# Symbols that should not be listed in the preloaded symbols.
16647exclude_expsyms=$lt_exclude_expsyms_F77
16648
16649# Symbols that must always be exported.
16650include_expsyms=$lt_include_expsyms_F77
16651
16652# ### END LIBTOOL TAG CONFIG: $tagname
16653
16654__EOF__
16655
16656
16657else
16658  # If there is no Makefile yet, we rely on a make rule to execute
16659  # `config.status --recheck' to rerun these tests and create the
16660  # libtool script then.
16661  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16662  if test -f "$ltmain_in"; then
16663    test -f Makefile && make "$ltmain"
16664  fi
16665fi
16666
16667
16668ac_ext=c
16669ac_cpp='$CPP $CPPFLAGS'
16670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16672ac_compiler_gnu=$ac_cv_c_compiler_gnu
16673
16674CC="$lt_save_CC"
16675
16676	else
16677	  tagname=""
16678	fi
16679	;;
16680
16681      GCJ)
16682	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16683
16684
16685# Source file extension for Java test sources.
16686ac_ext=java
16687
16688# Object file extension for compiled Java test sources.
16689objext=o
16690objext_GCJ=$objext
16691
16692# Code to be used in simple compile tests
16693lt_simple_compile_test_code="class foo {}\n"
16694
16695# Code to be used in simple link tests
16696lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16697
16698# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16699
16700# If no C compiler was specified, use CC.
16701LTCC=${LTCC-"$CC"}
16702
16703# If no C compiler flags were specified, use CFLAGS.
16704LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16705
16706# Allow CC to be a program name with arguments.
16707compiler=$CC
16708
16709
16710# save warnings/boilerplate of simple test code
16711ac_outfile=conftest.$ac_objext
16712printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16713eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16714_lt_compiler_boilerplate=`cat conftest.err`
16715$rm conftest*
16716
16717ac_outfile=conftest.$ac_objext
16718printf "$lt_simple_link_test_code" >conftest.$ac_ext
16719eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16720_lt_linker_boilerplate=`cat conftest.err`
16721$rm conftest*
16722
16723
16724# Allow CC to be a program name with arguments.
16725lt_save_CC="$CC"
16726CC=${GCJ-"gcj"}
16727compiler=$CC
16728compiler_GCJ=$CC
16729for cc_temp in $compiler""; do
16730  case $cc_temp in
16731    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16732    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16733    \-*) ;;
16734    *) break;;
16735  esac
16736done
16737cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16738
16739
16740# GCJ did not exist at the time GCC didn't implicitly link libc in.
16741archive_cmds_need_lc_GCJ=no
16742
16743old_archive_cmds_GCJ=$old_archive_cmds
16744
16745## CAVEAT EMPTOR:
16746## There is no encapsulation within the following macros, do not change
16747## the running order or otherwise move them around unless you know exactly
16748## what you are doing...
16749
16750lt_prog_compiler_no_builtin_flag_GCJ=
16751
16752if test "$GCC" = yes; then
16753  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16754
16755
16756{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16757echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16758if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16759  echo $ECHO_N "(cached) $ECHO_C" >&6
16760else
16761  lt_cv_prog_compiler_rtti_exceptions=no
16762  ac_outfile=conftest.$ac_objext
16763   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16764   lt_compiler_flag="-fno-rtti -fno-exceptions"
16765   # Insert the option either (1) after the last *FLAGS variable, or
16766   # (2) before a word containing "conftest.", or (3) at the end.
16767   # Note that $ac_compile itself does not contain backslashes and begins
16768   # with a dollar sign (not a hyphen), so the echo should work correctly.
16769   # The option is referenced via a variable to avoid confusing sed.
16770   lt_compile=`echo "$ac_compile" | $SED \
16771   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16772   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16773   -e 's:$: $lt_compiler_flag:'`
16774   (eval echo "\"\$as_me:16774: $lt_compile\"" >&5)
16775   (eval "$lt_compile" 2>conftest.err)
16776   ac_status=$?
16777   cat conftest.err >&5
16778   echo "$as_me:16778: \$? = $ac_status" >&5
16779   if (exit $ac_status) && test -s "$ac_outfile"; then
16780     # The compiler can only warn and ignore the option if not recognized
16781     # So say no if there are warnings other than the usual output.
16782     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16783     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16784     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16785       lt_cv_prog_compiler_rtti_exceptions=yes
16786     fi
16787   fi
16788   $rm conftest*
16789
16790fi
16791{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16792echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16793
16794if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16795    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16796else
16797    :
16798fi
16799
16800fi
16801
16802lt_prog_compiler_wl_GCJ=
16803lt_prog_compiler_pic_GCJ=
16804lt_prog_compiler_static_GCJ=
16805
16806{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16807echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16808
16809  if test "$GCC" = yes; then
16810    lt_prog_compiler_wl_GCJ='-Wl,'
16811    lt_prog_compiler_static_GCJ='-static'
16812
16813    case $host_os in
16814      aix*)
16815      # All AIX code is PIC.
16816      if test "$host_cpu" = ia64; then
16817	# AIX 5 now supports IA64 processor
16818	lt_prog_compiler_static_GCJ='-Bstatic'
16819      fi
16820      ;;
16821
16822    amigaos*)
16823      # FIXME: we need at least 68020 code to build shared libraries, but
16824      # adding the `-m68020' flag to GCC prevents building anything better,
16825      # like `-m68040'.
16826      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16827      ;;
16828
16829    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16830      # PIC is the default for these OSes.
16831      ;;
16832
16833    mingw* | cygwin* | pw32* | os2*)
16834      # This hack is so that the source file can tell whether it is being
16835      # built for inclusion in a dll (and should export symbols for example).
16836      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16837      # (--disable-auto-import) libraries
16838      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16839      ;;
16840
16841    darwin* | rhapsody*)
16842      # PIC is the default on this platform
16843      # Common symbols not allowed in MH_DYLIB files
16844      lt_prog_compiler_pic_GCJ='-fno-common'
16845      ;;
16846
16847    interix3*)
16848      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16849      # Instead, we relocate shared libraries at runtime.
16850      ;;
16851
16852    msdosdjgpp*)
16853      # Just because we use GCC doesn't mean we suddenly get shared libraries
16854      # on systems that don't support them.
16855      lt_prog_compiler_can_build_shared_GCJ=no
16856      enable_shared=no
16857      ;;
16858
16859    sysv4*MP*)
16860      if test -d /usr/nec; then
16861	lt_prog_compiler_pic_GCJ=-Kconform_pic
16862      fi
16863      ;;
16864
16865    hpux*)
16866      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16867      # not for PA HP-UX.
16868      case $host_cpu in
16869      hppa*64*|ia64*)
16870	# +Z the default
16871	;;
16872      *)
16873	lt_prog_compiler_pic_GCJ='-fPIC'
16874	;;
16875      esac
16876      ;;
16877
16878    *)
16879      lt_prog_compiler_pic_GCJ='-fPIC'
16880      ;;
16881    esac
16882  else
16883    # PORTME Check for flag to pass linker flags through the system compiler.
16884    case $host_os in
16885    aix*)
16886      lt_prog_compiler_wl_GCJ='-Wl,'
16887      if test "$host_cpu" = ia64; then
16888	# AIX 5 now supports IA64 processor
16889	lt_prog_compiler_static_GCJ='-Bstatic'
16890      else
16891	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16892      fi
16893      ;;
16894      darwin*)
16895        # PIC is the default on this platform
16896        # Common symbols not allowed in MH_DYLIB files
16897       case $cc_basename in
16898         xlc*)
16899         lt_prog_compiler_pic_GCJ='-qnocommon'
16900         lt_prog_compiler_wl_GCJ='-Wl,'
16901         ;;
16902       esac
16903       ;;
16904
16905    mingw* | cygwin* | pw32* | os2*)
16906      # This hack is so that the source file can tell whether it is being
16907      # built for inclusion in a dll (and should export symbols for example).
16908      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16909      # (--disable-auto-import) libraries
16910      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16911      ;;
16912
16913    hpux9* | hpux10* | hpux11*)
16914      lt_prog_compiler_wl_GCJ='-Wl,'
16915      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16916      # not for PA HP-UX.
16917      case $host_cpu in
16918      hppa*64*|ia64*)
16919	# +Z the default
16920	;;
16921      *)
16922	lt_prog_compiler_pic_GCJ='+Z'
16923	;;
16924      esac
16925      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16926      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16927      ;;
16928
16929    irix5* | irix6* | nonstopux*)
16930      lt_prog_compiler_wl_GCJ='-Wl,'
16931      # PIC (with -KPIC) is the default.
16932      lt_prog_compiler_static_GCJ='-non_shared'
16933      ;;
16934
16935    newsos6)
16936      lt_prog_compiler_pic_GCJ='-KPIC'
16937      lt_prog_compiler_static_GCJ='-Bstatic'
16938      ;;
16939
16940    linux*)
16941      case $cc_basename in
16942      icc* | ecc*)
16943	lt_prog_compiler_wl_GCJ='-Wl,'
16944	lt_prog_compiler_pic_GCJ='-KPIC'
16945	lt_prog_compiler_static_GCJ='-static'
16946        ;;
16947      pgcc* | pgf77* | pgf90* | pgf95*)
16948        # Portland Group compilers (*not* the Pentium gcc compiler,
16949	# which looks to be a dead project)
16950	lt_prog_compiler_wl_GCJ='-Wl,'
16951	lt_prog_compiler_pic_GCJ='-fpic'
16952	lt_prog_compiler_static_GCJ='-Bstatic'
16953        ;;
16954      ccc*)
16955        lt_prog_compiler_wl_GCJ='-Wl,'
16956        # All Alpha code is PIC.
16957        lt_prog_compiler_static_GCJ='-non_shared'
16958        ;;
16959      como)
16960        lt_prog_compiler_wl_GCJ='-lopt='
16961        ;;
16962      *)
16963        case `$CC -V 2>&1 | sed 5q` in
16964	*Sun\ C*)
16965	  # Sun C 5.9
16966	  lt_prog_compiler_pic_GCJ='-KPIC'
16967	  lt_prog_compiler_static_GCJ='-Bstatic'
16968	  lt_prog_compiler_wl_GCJ='-Wl,'
16969	  ;;
16970	*Sun\ F*)
16971	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16972	  lt_prog_compiler_pic_GCJ='-KPIC'
16973	  lt_prog_compiler_static_GCJ='-Bstatic'
16974	  lt_prog_compiler_wl_GCJ=''
16975	  ;;
16976	esac
16977	;;
16978      esac
16979      ;;
16980
16981    osf3* | osf4* | osf5*)
16982      lt_prog_compiler_wl_GCJ='-Wl,'
16983      # All OSF/1 code is PIC.
16984      lt_prog_compiler_static_GCJ='-non_shared'
16985      ;;
16986
16987    solaris*)
16988      lt_prog_compiler_pic_GCJ='-KPIC'
16989      lt_prog_compiler_static_GCJ='-Bstatic'
16990      case $cc_basename in
16991      f77* | f90* | f95*)
16992	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16993      *)
16994	lt_prog_compiler_wl_GCJ='-Wl,';;
16995      esac
16996      ;;
16997
16998    sunos4*)
16999      lt_prog_compiler_wl_GCJ='-Qoption ld '
17000      lt_prog_compiler_pic_GCJ='-PIC'
17001      lt_prog_compiler_static_GCJ='-Bstatic'
17002      ;;
17003
17004    sysv4 | sysv4.2uw2* | sysv4.3*)
17005      lt_prog_compiler_wl_GCJ='-Wl,'
17006      lt_prog_compiler_pic_GCJ='-KPIC'
17007      lt_prog_compiler_static_GCJ='-Bstatic'
17008      ;;
17009
17010    sysv4*MP*)
17011      if test -d /usr/nec ;then
17012	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17013	lt_prog_compiler_static_GCJ='-Bstatic'
17014      fi
17015      ;;
17016
17017    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17018      lt_prog_compiler_wl_GCJ='-Wl,'
17019      lt_prog_compiler_pic_GCJ='-KPIC'
17020      lt_prog_compiler_static_GCJ='-Bstatic'
17021      ;;
17022
17023    unicos*)
17024      lt_prog_compiler_wl_GCJ='-Wl,'
17025      lt_prog_compiler_can_build_shared_GCJ=no
17026      ;;
17027
17028    uts4*)
17029      lt_prog_compiler_pic_GCJ='-pic'
17030      lt_prog_compiler_static_GCJ='-Bstatic'
17031      ;;
17032
17033    *)
17034      lt_prog_compiler_can_build_shared_GCJ=no
17035      ;;
17036    esac
17037  fi
17038
17039{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17040echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17041
17042#
17043# Check to make sure the PIC flag actually works.
17044#
17045if test -n "$lt_prog_compiler_pic_GCJ"; then
17046
17047{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17048echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17049if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17050  echo $ECHO_N "(cached) $ECHO_C" >&6
17051else
17052  lt_prog_compiler_pic_works_GCJ=no
17053  ac_outfile=conftest.$ac_objext
17054   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17055   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17056   # Insert the option either (1) after the last *FLAGS variable, or
17057   # (2) before a word containing "conftest.", or (3) at the end.
17058   # Note that $ac_compile itself does not contain backslashes and begins
17059   # with a dollar sign (not a hyphen), so the echo should work correctly.
17060   # The option is referenced via a variable to avoid confusing sed.
17061   lt_compile=`echo "$ac_compile" | $SED \
17062   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17063   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17064   -e 's:$: $lt_compiler_flag:'`
17065   (eval echo "\"\$as_me:17065: $lt_compile\"" >&5)
17066   (eval "$lt_compile" 2>conftest.err)
17067   ac_status=$?
17068   cat conftest.err >&5
17069   echo "$as_me:17069: \$? = $ac_status" >&5
17070   if (exit $ac_status) && test -s "$ac_outfile"; then
17071     # The compiler can only warn and ignore the option if not recognized
17072     # So say no if there are warnings other than the usual output.
17073     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17074     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17075     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17076       lt_prog_compiler_pic_works_GCJ=yes
17077     fi
17078   fi
17079   $rm conftest*
17080
17081fi
17082{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17083echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17084
17085if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17086    case $lt_prog_compiler_pic_GCJ in
17087     "" | " "*) ;;
17088     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17089     esac
17090else
17091    lt_prog_compiler_pic_GCJ=
17092     lt_prog_compiler_can_build_shared_GCJ=no
17093fi
17094
17095fi
17096case $host_os in
17097  # For platforms which do not support PIC, -DPIC is meaningless:
17098  *djgpp*)
17099    lt_prog_compiler_pic_GCJ=
17100    ;;
17101  *)
17102    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17103    ;;
17104esac
17105
17106#
17107# Check to make sure the static flag actually works.
17108#
17109wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17110{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17111echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17112if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17113  echo $ECHO_N "(cached) $ECHO_C" >&6
17114else
17115  lt_prog_compiler_static_works_GCJ=no
17116   save_LDFLAGS="$LDFLAGS"
17117   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17118   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17119   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17120     # The linker can only warn and ignore the option if not recognized
17121     # So say no if there are warnings
17122     if test -s conftest.err; then
17123       # Append any errors to the config.log.
17124       cat conftest.err 1>&5
17125       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17126       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17127       if diff conftest.exp conftest.er2 >/dev/null; then
17128         lt_prog_compiler_static_works_GCJ=yes
17129       fi
17130     else
17131       lt_prog_compiler_static_works_GCJ=yes
17132     fi
17133   fi
17134   $rm conftest*
17135   LDFLAGS="$save_LDFLAGS"
17136
17137fi
17138{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17139echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17140
17141if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17142    :
17143else
17144    lt_prog_compiler_static_GCJ=
17145fi
17146
17147
17148{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17149echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17150if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17151  echo $ECHO_N "(cached) $ECHO_C" >&6
17152else
17153  lt_cv_prog_compiler_c_o_GCJ=no
17154   $rm -r conftest 2>/dev/null
17155   mkdir conftest
17156   cd conftest
17157   mkdir out
17158   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17159
17160   lt_compiler_flag="-o out/conftest2.$ac_objext"
17161   # Insert the option either (1) after the last *FLAGS variable, or
17162   # (2) before a word containing "conftest.", or (3) at the end.
17163   # Note that $ac_compile itself does not contain backslashes and begins
17164   # with a dollar sign (not a hyphen), so the echo should work correctly.
17165   lt_compile=`echo "$ac_compile" | $SED \
17166   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17167   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17168   -e 's:$: $lt_compiler_flag:'`
17169   (eval echo "\"\$as_me:17169: $lt_compile\"" >&5)
17170   (eval "$lt_compile" 2>out/conftest.err)
17171   ac_status=$?
17172   cat out/conftest.err >&5
17173   echo "$as_me:17173: \$? = $ac_status" >&5
17174   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17175   then
17176     # The compiler can only warn and ignore the option if not recognized
17177     # So say no if there are warnings
17178     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17179     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17180     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17181       lt_cv_prog_compiler_c_o_GCJ=yes
17182     fi
17183   fi
17184   chmod u+w . 2>&5
17185   $rm conftest*
17186   # SGI C++ compiler will create directory out/ii_files/ for
17187   # template instantiation
17188   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17189   $rm out/* && rmdir out
17190   cd ..
17191   rmdir conftest
17192   $rm conftest*
17193
17194fi
17195{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17196echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17197
17198
17199hard_links="nottested"
17200if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17201  # do not overwrite the value of need_locks provided by the user
17202  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17203echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17204  hard_links=yes
17205  $rm conftest*
17206  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17207  touch conftest.a
17208  ln conftest.a conftest.b 2>&5 || hard_links=no
17209  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17210  { echo "$as_me:$LINENO: result: $hard_links" >&5
17211echo "${ECHO_T}$hard_links" >&6; }
17212  if test "$hard_links" = no; then
17213    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17214echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17215    need_locks=warn
17216  fi
17217else
17218  need_locks=no
17219fi
17220
17221{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17222echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17223
17224  runpath_var=
17225  allow_undefined_flag_GCJ=
17226  enable_shared_with_static_runtimes_GCJ=no
17227  archive_cmds_GCJ=
17228  archive_expsym_cmds_GCJ=
17229  old_archive_From_new_cmds_GCJ=
17230  old_archive_from_expsyms_cmds_GCJ=
17231  export_dynamic_flag_spec_GCJ=
17232  whole_archive_flag_spec_GCJ=
17233  thread_safe_flag_spec_GCJ=
17234  hardcode_libdir_flag_spec_GCJ=
17235  hardcode_libdir_flag_spec_ld_GCJ=
17236  hardcode_libdir_separator_GCJ=
17237  hardcode_direct_GCJ=no
17238  hardcode_minus_L_GCJ=no
17239  hardcode_shlibpath_var_GCJ=unsupported
17240  link_all_deplibs_GCJ=unknown
17241  hardcode_automatic_GCJ=no
17242  module_cmds_GCJ=
17243  module_expsym_cmds_GCJ=
17244  always_export_symbols_GCJ=no
17245  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17246  # include_expsyms should be a list of space-separated symbols to be *always*
17247  # included in the symbol list
17248  include_expsyms_GCJ=
17249  # exclude_expsyms can be an extended regexp of symbols to exclude
17250  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17251  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17252  # as well as any symbol that contains `d'.
17253  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17254  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17255  # platforms (ab)use it in PIC code, but their linkers get confused if
17256  # the symbol is explicitly referenced.  Since portable code cannot
17257  # rely on this symbol name, it's probably fine to never include it in
17258  # preloaded symbol tables.
17259  extract_expsyms_cmds=
17260  # Just being paranoid about ensuring that cc_basename is set.
17261  for cc_temp in $compiler""; do
17262  case $cc_temp in
17263    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17264    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17265    \-*) ;;
17266    *) break;;
17267  esac
17268done
17269cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17270
17271  case $host_os in
17272  cygwin* | mingw* | pw32*)
17273    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17274    # When not using gcc, we currently assume that we are using
17275    # Microsoft Visual C++.
17276    if test "$GCC" != yes; then
17277      with_gnu_ld=no
17278    fi
17279    ;;
17280  interix*)
17281    # we just hope/assume this is gcc and not c89 (= MSVC++)
17282    with_gnu_ld=yes
17283    ;;
17284  openbsd*)
17285    with_gnu_ld=no
17286    ;;
17287  esac
17288
17289  ld_shlibs_GCJ=yes
17290  if test "$with_gnu_ld" = yes; then
17291    # If archive_cmds runs LD, not CC, wlarc should be empty
17292    wlarc='${wl}'
17293
17294    # Set some defaults for GNU ld with shared library support. These
17295    # are reset later if shared libraries are not supported. Putting them
17296    # here allows them to be overridden if necessary.
17297    runpath_var=LD_RUN_PATH
17298    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17299    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17300    # ancient GNU ld didn't support --whole-archive et. al.
17301    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17302	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17303      else
17304  	whole_archive_flag_spec_GCJ=
17305    fi
17306    supports_anon_versioning=no
17307    case `$LD -v 2>/dev/null` in
17308      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17309      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17310      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17311      *\ 2.11.*) ;; # other 2.11 versions
17312      *) supports_anon_versioning=yes ;;
17313    esac
17314
17315    # See if GNU ld supports shared libraries.
17316    case $host_os in
17317    aix3* | aix4* | aix5*)
17318      # On AIX/PPC, the GNU linker is very broken
17319      if test "$host_cpu" != ia64; then
17320	ld_shlibs_GCJ=no
17321	cat <<EOF 1>&2
17322
17323*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17324*** to be unable to reliably create shared libraries on AIX.
17325*** Therefore, libtool is disabling shared libraries support.  If you
17326*** really care for shared libraries, you may want to modify your PATH
17327*** so that a non-GNU linker is found, and then restart.
17328
17329EOF
17330      fi
17331      ;;
17332
17333    amigaos*)
17334      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)'
17335      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17336      hardcode_minus_L_GCJ=yes
17337
17338      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17339      # that the semantics of dynamic libraries on AmigaOS, at least up
17340      # to version 4, is to share data among multiple programs linked
17341      # with the same dynamic library.  Since this doesn't match the
17342      # behavior of shared libraries on other platforms, we can't use
17343      # them.
17344      ld_shlibs_GCJ=no
17345      ;;
17346
17347    beos*)
17348      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17349	allow_undefined_flag_GCJ=unsupported
17350	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17351	# support --undefined.  This deserves some investigation.  FIXME
17352	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17353      else
17354	ld_shlibs_GCJ=no
17355      fi
17356      ;;
17357
17358    cygwin* | mingw* | pw32*)
17359      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17360      # as there is no search path for DLLs.
17361      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17362      allow_undefined_flag_GCJ=unsupported
17363      always_export_symbols_GCJ=no
17364      enable_shared_with_static_runtimes_GCJ=yes
17365      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17366
17367      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17368        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17369	# If the export-symbols file already is a .def file (1st line
17370	# is EXPORTS), use it as is; otherwise, prepend...
17371	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17372	  cp $export_symbols $output_objdir/$soname.def;
17373	else
17374	  echo EXPORTS > $output_objdir/$soname.def;
17375	  cat $export_symbols >> $output_objdir/$soname.def;
17376	fi~
17377	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17378      else
17379	ld_shlibs_GCJ=no
17380      fi
17381      ;;
17382
17383    interix3*)
17384      hardcode_direct_GCJ=no
17385      hardcode_shlibpath_var_GCJ=no
17386      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17387      export_dynamic_flag_spec_GCJ='${wl}-E'
17388      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17389      # Instead, shared libraries are loaded at an image base (0x10000000 by
17390      # default) and relocated if they conflict, which is a slow very memory
17391      # consuming and fragmenting process.  To avoid this, we pick a random,
17392      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17393      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17394      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'
17395      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'
17396      ;;
17397
17398    linux*)
17399      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17400	tmp_addflag=
17401	case $cc_basename,$host_cpu in
17402	pgcc*)				# Portland Group C compiler
17403	  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'
17404	  tmp_addflag=' $pic_flag'
17405	  ;;
17406	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17407	  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'
17408	  tmp_addflag=' $pic_flag -Mnomain' ;;
17409	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17410	  tmp_addflag=' -i_dynamic' ;;
17411	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17412	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17413	ifc* | ifort*)			# Intel Fortran compiler
17414	  tmp_addflag=' -nofor_main' ;;
17415	esac
17416	case `$CC -V 2>&1 | sed 5q` in
17417	*Sun\ C*)			# Sun C 5.9
17418	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null'
17419	  tmp_sharedflag='-G' ;;
17420	*Sun\ F*)			# Sun Fortran 8.3
17421	  tmp_sharedflag='-G' ;;
17422	*)
17423	  tmp_sharedflag='-shared' ;;
17424	esac
17425	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17426
17427	if test $supports_anon_versioning = yes; then
17428	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17429  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17430  $echo "local: *; };" >> $output_objdir/$libname.ver~
17431	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17432	fi
17433      else
17434	ld_shlibs_GCJ=no
17435      fi
17436      ;;
17437
17438    netbsd*)
17439      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17440	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17441	wlarc=
17442      else
17443	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17444	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17445      fi
17446      ;;
17447
17448    solaris*)
17449      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17450	ld_shlibs_GCJ=no
17451	cat <<EOF 1>&2
17452
17453*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17454*** create shared libraries on Solaris systems.  Therefore, libtool
17455*** is disabling shared libraries support.  We urge you to upgrade GNU
17456*** binutils to release 2.9.1 or newer.  Another option is to modify
17457*** your PATH or compiler configuration so that the native linker is
17458*** used, and then restart.
17459
17460EOF
17461      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17462	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17463	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17464      else
17465	ld_shlibs_GCJ=no
17466      fi
17467      ;;
17468
17469    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17470      case `$LD -v 2>&1` in
17471        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17472	ld_shlibs_GCJ=no
17473	cat <<_LT_EOF 1>&2
17474
17475*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17476*** reliably create shared libraries on SCO systems.  Therefore, libtool
17477*** is disabling shared libraries support.  We urge you to upgrade GNU
17478*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17479*** your PATH or compiler configuration so that the native linker is
17480*** used, and then restart.
17481
17482_LT_EOF
17483	;;
17484	*)
17485	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17486	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17487	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17488	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17489	  else
17490	    ld_shlibs_GCJ=no
17491	  fi
17492	;;
17493      esac
17494      ;;
17495
17496    sunos4*)
17497      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17498      wlarc=
17499      hardcode_direct_GCJ=yes
17500      hardcode_shlibpath_var_GCJ=no
17501      ;;
17502
17503    *)
17504      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17505	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17506	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17507      else
17508	ld_shlibs_GCJ=no
17509      fi
17510      ;;
17511    esac
17512
17513    if test "$ld_shlibs_GCJ" = no; then
17514      runpath_var=
17515      hardcode_libdir_flag_spec_GCJ=
17516      export_dynamic_flag_spec_GCJ=
17517      whole_archive_flag_spec_GCJ=
17518    fi
17519  else
17520    # PORTME fill in a description of your system's linker (not GNU ld)
17521    case $host_os in
17522    aix3*)
17523      allow_undefined_flag_GCJ=unsupported
17524      always_export_symbols_GCJ=yes
17525      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'
17526      # Note: this linker hardcodes the directories in LIBPATH if there
17527      # are no directories specified by -L.
17528      hardcode_minus_L_GCJ=yes
17529      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17530	# Neither direct hardcoding nor static linking is supported with a
17531	# broken collect2.
17532	hardcode_direct_GCJ=unsupported
17533      fi
17534      ;;
17535
17536    aix4* | aix5*)
17537      if test "$host_cpu" = ia64; then
17538	# On IA64, the linker does run time linking by default, so we don't
17539	# have to do anything special.
17540	aix_use_runtimelinking=no
17541	exp_sym_flag='-Bexport'
17542	no_entry_flag=""
17543      else
17544	# If we're using GNU nm, then we don't want the "-C" option.
17545	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17546	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17547	  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'
17548	else
17549	  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'
17550	fi
17551	aix_use_runtimelinking=no
17552
17553	# Test if we are trying to use run time linking or normal
17554	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17555	# need to do runtime linking.
17556	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17557	  for ld_flag in $LDFLAGS; do
17558  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17559  	    aix_use_runtimelinking=yes
17560  	    break
17561  	  fi
17562	  done
17563	  ;;
17564	esac
17565
17566	exp_sym_flag='-bexport'
17567	no_entry_flag='-bnoentry'
17568      fi
17569
17570      # When large executables or shared objects are built, AIX ld can
17571      # have problems creating the table of contents.  If linking a library
17572      # or program results in "error TOC overflow" add -mminimal-toc to
17573      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17574      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17575
17576      archive_cmds_GCJ=''
17577      hardcode_direct_GCJ=yes
17578      hardcode_libdir_separator_GCJ=':'
17579      link_all_deplibs_GCJ=yes
17580
17581      if test "$GCC" = yes; then
17582	case $host_os in aix4.[012]|aix4.[012].*)
17583	# We only want to do this on AIX 4.2 and lower, the check
17584	# below for broken collect2 doesn't work under 4.3+
17585	  collect2name=`${CC} -print-prog-name=collect2`
17586	  if test -f "$collect2name" && \
17587  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17588	  then
17589  	  # We have reworked collect2
17590  	  hardcode_direct_GCJ=yes
17591	  else
17592  	  # We have old collect2
17593  	  hardcode_direct_GCJ=unsupported
17594  	  # It fails to find uninstalled libraries when the uninstalled
17595  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17596  	  # to unsupported forces relinking
17597  	  hardcode_minus_L_GCJ=yes
17598  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17599  	  hardcode_libdir_separator_GCJ=
17600	  fi
17601	  ;;
17602	esac
17603	shared_flag='-shared'
17604	if test "$aix_use_runtimelinking" = yes; then
17605	  shared_flag="$shared_flag "'${wl}-G'
17606	fi
17607      else
17608	# not using gcc
17609	if test "$host_cpu" = ia64; then
17610  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17611  	# chokes on -Wl,-G. The following line is correct:
17612	  shared_flag='-G'
17613	else
17614	  if test "$aix_use_runtimelinking" = yes; then
17615	    shared_flag='${wl}-G'
17616	  else
17617	    shared_flag='${wl}-bM:SRE'
17618	  fi
17619	fi
17620      fi
17621
17622      # It seems that -bexpall does not export symbols beginning with
17623      # underscore (_), so it is better to generate a list of symbols to export.
17624      always_export_symbols_GCJ=yes
17625      if test "$aix_use_runtimelinking" = yes; then
17626	# Warning - without using the other runtime loading flags (-brtl),
17627	# -berok will link without error, but may produce a broken library.
17628	allow_undefined_flag_GCJ='-berok'
17629       # Determine the default libpath from the value encoded in an empty executable.
17630       cat >conftest.$ac_ext <<_ACEOF
17631/* confdefs.h.  */
17632_ACEOF
17633cat confdefs.h >>conftest.$ac_ext
17634cat >>conftest.$ac_ext <<_ACEOF
17635/* end confdefs.h.  */
17636
17637int
17638main ()
17639{
17640
17641  ;
17642  return 0;
17643}
17644_ACEOF
17645rm -f conftest.$ac_objext conftest$ac_exeext
17646if { (ac_try="$ac_link"
17647case "(($ac_try" in
17648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649  *) ac_try_echo=$ac_try;;
17650esac
17651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652  (eval "$ac_link") 2>conftest.er1
17653  ac_status=$?
17654  grep -v '^ *+' conftest.er1 >conftest.err
17655  rm -f conftest.er1
17656  cat conftest.err >&5
17657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658  (exit $ac_status); } &&
17659	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17660  { (case "(($ac_try" in
17661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662  *) ac_try_echo=$ac_try;;
17663esac
17664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665  (eval "$ac_try") 2>&5
17666  ac_status=$?
17667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668  (exit $ac_status); }; } &&
17669	 { ac_try='test -s conftest$ac_exeext'
17670  { (case "(($ac_try" in
17671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672  *) ac_try_echo=$ac_try;;
17673esac
17674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675  (eval "$ac_try") 2>&5
17676  ac_status=$?
17677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678  (exit $ac_status); }; }; then
17679
17680aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17681}'`
17682# Check for a 64-bit object if we didn't find anything.
17683if 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; }
17684}'`; fi
17685else
17686  echo "$as_me: failed program was:" >&5
17687sed 's/^/| /' conftest.$ac_ext >&5
17688
17689
17690fi
17691
17692rm -f core conftest.err conftest.$ac_objext \
17693      conftest$ac_exeext conftest.$ac_ext
17694if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17695
17696       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17697	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"
17698       else
17699	if test "$host_cpu" = ia64; then
17700	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17701	  allow_undefined_flag_GCJ="-z nodefs"
17702	  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"
17703	else
17704	 # Determine the default libpath from the value encoded in an empty executable.
17705	 cat >conftest.$ac_ext <<_ACEOF
17706/* confdefs.h.  */
17707_ACEOF
17708cat confdefs.h >>conftest.$ac_ext
17709cat >>conftest.$ac_ext <<_ACEOF
17710/* end confdefs.h.  */
17711
17712int
17713main ()
17714{
17715
17716  ;
17717  return 0;
17718}
17719_ACEOF
17720rm -f conftest.$ac_objext conftest$ac_exeext
17721if { (ac_try="$ac_link"
17722case "(($ac_try" in
17723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724  *) ac_try_echo=$ac_try;;
17725esac
17726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727  (eval "$ac_link") 2>conftest.er1
17728  ac_status=$?
17729  grep -v '^ *+' conftest.er1 >conftest.err
17730  rm -f conftest.er1
17731  cat conftest.err >&5
17732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733  (exit $ac_status); } &&
17734	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17735  { (case "(($ac_try" in
17736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17737  *) ac_try_echo=$ac_try;;
17738esac
17739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17740  (eval "$ac_try") 2>&5
17741  ac_status=$?
17742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743  (exit $ac_status); }; } &&
17744	 { ac_try='test -s conftest$ac_exeext'
17745  { (case "(($ac_try" in
17746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747  *) ac_try_echo=$ac_try;;
17748esac
17749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750  (eval "$ac_try") 2>&5
17751  ac_status=$?
17752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753  (exit $ac_status); }; }; then
17754
17755aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17756}'`
17757# Check for a 64-bit object if we didn't find anything.
17758if 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; }
17759}'`; fi
17760else
17761  echo "$as_me: failed program was:" >&5
17762sed 's/^/| /' conftest.$ac_ext >&5
17763
17764
17765fi
17766
17767rm -f core conftest.err conftest.$ac_objext \
17768      conftest$ac_exeext conftest.$ac_ext
17769if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17770
17771	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17772	  # Warning - without using the other run time loading flags,
17773	  # -berok will link without error, but may produce a broken library.
17774	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17775	  allow_undefined_flag_GCJ=' ${wl}-berok'
17776	  # Exported symbols can be pulled into shared objects from archives
17777	  whole_archive_flag_spec_GCJ='$convenience'
17778	  archive_cmds_need_lc_GCJ=yes
17779	  # This is similar to how AIX traditionally builds its shared libraries.
17780	  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'
17781	fi
17782      fi
17783      ;;
17784
17785    amigaos*)
17786      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)'
17787      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17788      hardcode_minus_L_GCJ=yes
17789      # see comment about different semantics on the GNU ld section
17790      ld_shlibs_GCJ=no
17791      ;;
17792
17793    bsdi[45]*)
17794      export_dynamic_flag_spec_GCJ=-rdynamic
17795      ;;
17796
17797    cygwin* | mingw* | pw32*)
17798      # When not using gcc, we currently assume that we are using
17799      # Microsoft Visual C++.
17800      # hardcode_libdir_flag_spec is actually meaningless, as there is
17801      # no search path for DLLs.
17802      hardcode_libdir_flag_spec_GCJ=' '
17803      allow_undefined_flag_GCJ=unsupported
17804      # Tell ltmain to make .lib files, not .a files.
17805      libext=lib
17806      # Tell ltmain to make .dll files, not .so files.
17807      shrext_cmds=".dll"
17808      # FIXME: Setting linknames here is a bad hack.
17809      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17810      # The linker will automatically build a .lib file if we build a DLL.
17811      old_archive_From_new_cmds_GCJ='true'
17812      # FIXME: Should let the user specify the lib program.
17813      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17814      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17815      enable_shared_with_static_runtimes_GCJ=yes
17816      ;;
17817
17818    darwin* | rhapsody*)
17819      case $host_os in
17820        rhapsody* | darwin1.[012])
17821         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17822         ;;
17823       *) # Darwin 1.3 on
17824         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17825           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17826         else
17827           case ${MACOSX_DEPLOYMENT_TARGET} in
17828             10.[012])
17829               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17830               ;;
17831             10.*)
17832               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17833               ;;
17834           esac
17835         fi
17836         ;;
17837      esac
17838      archive_cmds_need_lc_GCJ=no
17839      hardcode_direct_GCJ=no
17840      hardcode_automatic_GCJ=yes
17841      hardcode_shlibpath_var_GCJ=unsupported
17842      whole_archive_flag_spec_GCJ=''
17843      link_all_deplibs_GCJ=yes
17844    if test "$GCC" = yes ; then
17845    	output_verbose_link_cmd='echo'
17846        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17847      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17848      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17849      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}'
17850      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}'
17851    else
17852      case $cc_basename in
17853        xlc*)
17854         output_verbose_link_cmd='echo'
17855         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17856         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17857          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17858         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}'
17859          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}'
17860          ;;
17861       *)
17862         ld_shlibs_GCJ=no
17863          ;;
17864      esac
17865    fi
17866      ;;
17867
17868    dgux*)
17869      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17870      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17871      hardcode_shlibpath_var_GCJ=no
17872      ;;
17873
17874    freebsd1*)
17875      ld_shlibs_GCJ=no
17876      ;;
17877
17878    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17879    # support.  Future versions do this automatically, but an explicit c++rt0.o
17880    # does not break anything, and helps significantly (at the cost of a little
17881    # extra space).
17882    freebsd2.2*)
17883      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17884      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17885      hardcode_direct_GCJ=yes
17886      hardcode_shlibpath_var_GCJ=no
17887      ;;
17888
17889    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17890    freebsd2*)
17891      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17892      hardcode_direct_GCJ=yes
17893      hardcode_minus_L_GCJ=yes
17894      hardcode_shlibpath_var_GCJ=no
17895      ;;
17896
17897    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17898    freebsd* | kfreebsd*-gnu | dragonfly*)
17899      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17900      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17901      hardcode_direct_GCJ=yes
17902      hardcode_shlibpath_var_GCJ=no
17903      ;;
17904
17905    hpux9*)
17906      if test "$GCC" = yes; then
17907	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'
17908      else
17909	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'
17910      fi
17911      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17912      hardcode_libdir_separator_GCJ=:
17913      hardcode_direct_GCJ=yes
17914
17915      # hardcode_minus_L: Not really in the search PATH,
17916      # but as the default location of the library.
17917      hardcode_minus_L_GCJ=yes
17918      export_dynamic_flag_spec_GCJ='${wl}-E'
17919      ;;
17920
17921    hpux10*)
17922      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17923	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17924      else
17925	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17926      fi
17927      if test "$with_gnu_ld" = no; then
17928	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17929	hardcode_libdir_separator_GCJ=:
17930
17931	hardcode_direct_GCJ=yes
17932	export_dynamic_flag_spec_GCJ='${wl}-E'
17933
17934	# hardcode_minus_L: Not really in the search PATH,
17935	# but as the default location of the library.
17936	hardcode_minus_L_GCJ=yes
17937      fi
17938      ;;
17939
17940    hpux11*)
17941      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17942	case $host_cpu in
17943	hppa*64*)
17944	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17945	  ;;
17946	ia64*)
17947	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17948	  ;;
17949	*)
17950	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17951	  ;;
17952	esac
17953      else
17954	case $host_cpu in
17955	hppa*64*)
17956	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17957	  ;;
17958	ia64*)
17959	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17960	  ;;
17961	*)
17962	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17963	  ;;
17964	esac
17965      fi
17966      if test "$with_gnu_ld" = no; then
17967	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17968	hardcode_libdir_separator_GCJ=:
17969
17970	case $host_cpu in
17971	hppa*64*|ia64*)
17972	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17973	  hardcode_direct_GCJ=no
17974	  hardcode_shlibpath_var_GCJ=no
17975	  ;;
17976	*)
17977	  hardcode_direct_GCJ=yes
17978	  export_dynamic_flag_spec_GCJ='${wl}-E'
17979
17980	  # hardcode_minus_L: Not really in the search PATH,
17981	  # but as the default location of the library.
17982	  hardcode_minus_L_GCJ=yes
17983	  ;;
17984	esac
17985      fi
17986      ;;
17987
17988    irix5* | irix6* | nonstopux*)
17989      if test "$GCC" = yes; then
17990	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'
17991      else
17992	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'
17993	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17994      fi
17995      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17996      hardcode_libdir_separator_GCJ=:
17997      link_all_deplibs_GCJ=yes
17998      ;;
17999
18000    netbsd*)
18001      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18002	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18003      else
18004	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18005      fi
18006      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18007      hardcode_direct_GCJ=yes
18008      hardcode_shlibpath_var_GCJ=no
18009      ;;
18010
18011    newsos6)
18012      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18013      hardcode_direct_GCJ=yes
18014      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18015      hardcode_libdir_separator_GCJ=:
18016      hardcode_shlibpath_var_GCJ=no
18017      ;;
18018
18019    openbsd*)
18020      hardcode_direct_GCJ=yes
18021      hardcode_shlibpath_var_GCJ=no
18022      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18023	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18024	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18025	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18026	export_dynamic_flag_spec_GCJ='${wl}-E'
18027      else
18028       case $host_os in
18029	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18030	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18031	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18032	   ;;
18033	 *)
18034	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18035	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18036	   ;;
18037       esac
18038      fi
18039      ;;
18040
18041    os2*)
18042      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18043      hardcode_minus_L_GCJ=yes
18044      allow_undefined_flag_GCJ=unsupported
18045      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'
18046      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18047      ;;
18048
18049    osf3*)
18050      if test "$GCC" = yes; then
18051	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18052	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'
18053      else
18054	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18055	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'
18056      fi
18057      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18058      hardcode_libdir_separator_GCJ=:
18059      ;;
18060
18061    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18062      if test "$GCC" = yes; then
18063	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18064	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'
18065	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18066      else
18067	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18068	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'
18069	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~
18070	$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'
18071
18072	# Both c and cxx compiler support -rpath directly
18073	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18074      fi
18075      hardcode_libdir_separator_GCJ=:
18076      ;;
18077
18078    solaris*)
18079      no_undefined_flag_GCJ=' -z text'
18080      if test "$GCC" = yes; then
18081	wlarc='${wl}'
18082	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18083	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18084	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18085      else
18086	wlarc=''
18087	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18088	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18089  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18090      fi
18091      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18092      hardcode_shlibpath_var_GCJ=no
18093      case $host_os in
18094      solaris2.[0-5] | solaris2.[0-5].*) ;;
18095      *)
18096 	# The compiler driver will combine linker options so we
18097 	# cannot just pass the convience library names through
18098 	# without $wl, iff we do not link with $LD.
18099 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18100 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18101 	case $wlarc in
18102 	'')
18103 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18104 	*)
18105 	  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' ;;
18106 	esac ;;
18107      esac
18108      link_all_deplibs_GCJ=yes
18109      ;;
18110
18111    sunos4*)
18112      if test "x$host_vendor" = xsequent; then
18113	# Use $CC to link under sequent, because it throws in some extra .o
18114	# files that make .init and .fini sections work.
18115	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18116      else
18117	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18118      fi
18119      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18120      hardcode_direct_GCJ=yes
18121      hardcode_minus_L_GCJ=yes
18122      hardcode_shlibpath_var_GCJ=no
18123      ;;
18124
18125    sysv4)
18126      case $host_vendor in
18127	sni)
18128	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18129	  hardcode_direct_GCJ=yes # is this really true???
18130	;;
18131	siemens)
18132	  ## LD is ld it makes a PLAMLIB
18133	  ## CC just makes a GrossModule.
18134	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18135	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18136	  hardcode_direct_GCJ=no
18137        ;;
18138	motorola)
18139	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18140	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18141	;;
18142      esac
18143      runpath_var='LD_RUN_PATH'
18144      hardcode_shlibpath_var_GCJ=no
18145      ;;
18146
18147    sysv4.3*)
18148      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18149      hardcode_shlibpath_var_GCJ=no
18150      export_dynamic_flag_spec_GCJ='-Bexport'
18151      ;;
18152
18153    sysv4*MP*)
18154      if test -d /usr/nec; then
18155	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18156	hardcode_shlibpath_var_GCJ=no
18157	runpath_var=LD_RUN_PATH
18158	hardcode_runpath_var=yes
18159	ld_shlibs_GCJ=yes
18160      fi
18161      ;;
18162
18163    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18164      no_undefined_flag_GCJ='${wl}-z,text'
18165      archive_cmds_need_lc_GCJ=no
18166      hardcode_shlibpath_var_GCJ=no
18167      runpath_var='LD_RUN_PATH'
18168
18169      if test "$GCC" = yes; then
18170	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18171	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18172      else
18173	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18174	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18175      fi
18176      ;;
18177
18178    sysv5* | sco3.2v5* | sco5v6*)
18179      # Note: We can NOT use -z defs as we might desire, because we do not
18180      # link with -lc, and that would cause any symbols used from libc to
18181      # always be unresolved, which means just about no library would
18182      # ever link correctly.  If we're not using GNU ld we use -z text
18183      # though, which does catch some bad symbols but isn't as heavy-handed
18184      # as -z defs.
18185      no_undefined_flag_GCJ='${wl}-z,text'
18186      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18187      archive_cmds_need_lc_GCJ=no
18188      hardcode_shlibpath_var_GCJ=no
18189      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18190      hardcode_libdir_separator_GCJ=':'
18191      link_all_deplibs_GCJ=yes
18192      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18193      runpath_var='LD_RUN_PATH'
18194
18195      if test "$GCC" = yes; then
18196	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18197	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18198      else
18199	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18200	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18201      fi
18202      ;;
18203
18204    uts4*)
18205      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18206      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18207      hardcode_shlibpath_var_GCJ=no
18208      ;;
18209
18210    *)
18211      ld_shlibs_GCJ=no
18212      ;;
18213    esac
18214  fi
18215
18216{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18217echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18218test "$ld_shlibs_GCJ" = no && can_build_shared=no
18219
18220#
18221# Do we need to explicitly link libc?
18222#
18223case "x$archive_cmds_need_lc_GCJ" in
18224x|xyes)
18225  # Assume -lc should be added
18226  archive_cmds_need_lc_GCJ=yes
18227
18228  if test "$enable_shared" = yes && test "$GCC" = yes; then
18229    case $archive_cmds_GCJ in
18230    *'~'*)
18231      # FIXME: we may have to deal with multi-command sequences.
18232      ;;
18233    '$CC '*)
18234      # Test whether the compiler implicitly links with -lc since on some
18235      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18236      # to ld, don't add -lc before -lgcc.
18237      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18238echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18239      $rm conftest*
18240      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18241
18242      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18243  (eval $ac_compile) 2>&5
18244  ac_status=$?
18245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246  (exit $ac_status); } 2>conftest.err; then
18247        soname=conftest
18248        lib=conftest
18249        libobjs=conftest.$ac_objext
18250        deplibs=
18251        wl=$lt_prog_compiler_wl_GCJ
18252	pic_flag=$lt_prog_compiler_pic_GCJ
18253        compiler_flags=-v
18254        linker_flags=-v
18255        verstring=
18256        output_objdir=.
18257        libname=conftest
18258        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18259        allow_undefined_flag_GCJ=
18260        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18261  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18262  ac_status=$?
18263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264  (exit $ac_status); }
18265        then
18266	  archive_cmds_need_lc_GCJ=no
18267        else
18268	  archive_cmds_need_lc_GCJ=yes
18269        fi
18270        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18271      else
18272        cat conftest.err 1>&5
18273      fi
18274      $rm conftest*
18275      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18276echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18277      ;;
18278    esac
18279  fi
18280  ;;
18281esac
18282
18283{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18284echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18285library_names_spec=
18286libname_spec='lib$name'
18287soname_spec=
18288shrext_cmds=".so"
18289postinstall_cmds=
18290postuninstall_cmds=
18291finish_cmds=
18292finish_eval=
18293shlibpath_var=
18294shlibpath_overrides_runpath=unknown
18295version_type=none
18296dynamic_linker="$host_os ld.so"
18297sys_lib_dlsearch_path_spec="/lib /usr/lib"
18298if test "$GCC" = yes; then
18299  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18300  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18301    # if the path contains ";" then we assume it to be the separator
18302    # otherwise default to the standard path separator (i.e. ":") - it is
18303    # assumed that no part of a normal pathname contains ";" but that should
18304    # okay in the real world where ";" in dirpaths is itself problematic.
18305    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18306  else
18307    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18308  fi
18309else
18310  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18311fi
18312need_lib_prefix=unknown
18313hardcode_into_libs=no
18314
18315# when you set need_version to no, make sure it does not cause -set_version
18316# flags to be left without arguments
18317need_version=unknown
18318
18319case $host_os in
18320aix3*)
18321  version_type=linux
18322  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18323  shlibpath_var=LIBPATH
18324
18325  # AIX 3 has no versioning support, so we append a major version to the name.
18326  soname_spec='${libname}${release}${shared_ext}$major'
18327  ;;
18328
18329aix4* | aix5*)
18330  version_type=linux
18331  need_lib_prefix=no
18332  need_version=no
18333  hardcode_into_libs=yes
18334  if test "$host_cpu" = ia64; then
18335    # AIX 5 supports IA64
18336    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18337    shlibpath_var=LD_LIBRARY_PATH
18338  else
18339    # With GCC up to 2.95.x, collect2 would create an import file
18340    # for dependence libraries.  The import file would start with
18341    # the line `#! .'.  This would cause the generated library to
18342    # depend on `.', always an invalid library.  This was fixed in
18343    # development snapshots of GCC prior to 3.0.
18344    case $host_os in
18345      aix4 | aix4.[01] | aix4.[01].*)
18346      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18347	   echo ' yes '
18348	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18349	:
18350      else
18351	can_build_shared=no
18352      fi
18353      ;;
18354    esac
18355    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18356    # soname into executable. Probably we can add versioning support to
18357    # collect2, so additional links can be useful in future.
18358    if test "$aix_use_runtimelinking" = yes; then
18359      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18360      # instead of lib<name>.a to let people know that these are not
18361      # typical AIX shared libraries.
18362      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18363    else
18364      # We preserve .a as extension for shared libraries through AIX4.2
18365      # and later when we are not doing run time linking.
18366      library_names_spec='${libname}${release}.a $libname.a'
18367      soname_spec='${libname}${release}${shared_ext}$major'
18368    fi
18369    shlibpath_var=LIBPATH
18370  fi
18371  ;;
18372
18373amigaos*)
18374  library_names_spec='$libname.ixlibrary $libname.a'
18375  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18376  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'
18377  ;;
18378
18379beos*)
18380  library_names_spec='${libname}${shared_ext}'
18381  dynamic_linker="$host_os ld.so"
18382  shlibpath_var=LIBRARY_PATH
18383  ;;
18384
18385bsdi[45]*)
18386  version_type=linux
18387  need_version=no
18388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18389  soname_spec='${libname}${release}${shared_ext}$major'
18390  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18391  shlibpath_var=LD_LIBRARY_PATH
18392  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18393  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18394  # the default ld.so.conf also contains /usr/contrib/lib and
18395  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18396  # libtool to hard-code these into programs
18397  ;;
18398
18399cygwin* | mingw* | pw32*)
18400  version_type=windows
18401  shrext_cmds=".dll"
18402  need_version=no
18403  need_lib_prefix=no
18404
18405  case $GCC,$host_os in
18406  yes,cygwin* | yes,mingw* | yes,pw32*)
18407    library_names_spec='$libname.dll.a'
18408    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18409    postinstall_cmds='base_file=`basename \${file}`~
18410      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18411      dldir=$destdir/`dirname \$dlpath`~
18412      test -d \$dldir || mkdir -p \$dldir~
18413      $install_prog $dir/$dlname \$dldir/$dlname~
18414      chmod a+x \$dldir/$dlname'
18415    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18416      dlpath=$dir/\$dldll~
18417       $rm \$dlpath'
18418    shlibpath_overrides_runpath=yes
18419
18420    case $host_os in
18421    cygwin*)
18422      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18423      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18424      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18425      ;;
18426    mingw*)
18427      # MinGW DLLs use traditional 'lib' prefix
18428      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18429      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18430      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18431        # It is most probably a Windows format PATH printed by
18432        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18433        # path with ; separators, and with drive letters. We can handle the
18434        # drive letters (cygwin fileutils understands them), so leave them,
18435        # especially as we might pass files found there to a mingw objdump,
18436        # which wouldn't understand a cygwinified path. Ahh.
18437        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18438      else
18439        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18440      fi
18441      ;;
18442    pw32*)
18443      # pw32 DLLs use 'pw' prefix rather than 'lib'
18444      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18445      ;;
18446    esac
18447    ;;
18448
18449  *)
18450    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18451    ;;
18452  esac
18453  dynamic_linker='Win32 ld.exe'
18454  # FIXME: first we should search . and the directory the executable is in
18455  shlibpath_var=PATH
18456  ;;
18457
18458darwin* | rhapsody*)
18459  dynamic_linker="$host_os dyld"
18460  version_type=darwin
18461  need_lib_prefix=no
18462  need_version=no
18463  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18464  soname_spec='${libname}${release}${major}$shared_ext'
18465  shlibpath_overrides_runpath=yes
18466  shlibpath_var=DYLD_LIBRARY_PATH
18467  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18468  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18469  if test "$GCC" = yes; then
18470    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"`
18471  else
18472    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18473  fi
18474  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18475  ;;
18476
18477dgux*)
18478  version_type=linux
18479  need_lib_prefix=no
18480  need_version=no
18481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18482  soname_spec='${libname}${release}${shared_ext}$major'
18483  shlibpath_var=LD_LIBRARY_PATH
18484  ;;
18485
18486freebsd1*)
18487  dynamic_linker=no
18488  ;;
18489
18490kfreebsd*-gnu)
18491  version_type=linux
18492  need_lib_prefix=no
18493  need_version=no
18494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18495  soname_spec='${libname}${release}${shared_ext}$major'
18496  shlibpath_var=LD_LIBRARY_PATH
18497  shlibpath_overrides_runpath=no
18498  hardcode_into_libs=yes
18499  dynamic_linker='GNU ld.so'
18500  ;;
18501
18502freebsd* | dragonfly*)
18503  # DragonFly does not have aout.  When/if they implement a new
18504  # versioning mechanism, adjust this.
18505  if test -x /usr/bin/objformat; then
18506    objformat=`/usr/bin/objformat`
18507  else
18508    case $host_os in
18509    freebsd[123]*) objformat=aout ;;
18510    *) objformat=elf ;;
18511    esac
18512  fi
18513  version_type=freebsd-$objformat
18514  case $version_type in
18515    freebsd-elf*)
18516      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18517      need_version=no
18518      need_lib_prefix=no
18519      ;;
18520    freebsd-*)
18521      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18522      need_version=yes
18523      ;;
18524  esac
18525  shlibpath_var=LD_LIBRARY_PATH
18526  case $host_os in
18527  freebsd2*)
18528    shlibpath_overrides_runpath=yes
18529    ;;
18530  freebsd3.[01]* | freebsdelf3.[01]*)
18531    shlibpath_overrides_runpath=yes
18532    hardcode_into_libs=yes
18533    ;;
18534  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18535  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18536    shlibpath_overrides_runpath=no
18537    hardcode_into_libs=yes
18538    ;;
18539  freebsd*) # from 4.6 on
18540    shlibpath_overrides_runpath=yes
18541    hardcode_into_libs=yes
18542    ;;
18543  esac
18544  ;;
18545
18546gnu*)
18547  version_type=linux
18548  need_lib_prefix=no
18549  need_version=no
18550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18551  soname_spec='${libname}${release}${shared_ext}$major'
18552  shlibpath_var=LD_LIBRARY_PATH
18553  hardcode_into_libs=yes
18554  ;;
18555
18556hpux9* | hpux10* | hpux11*)
18557  # Give a soname corresponding to the major version so that dld.sl refuses to
18558  # link against other versions.
18559  version_type=sunos
18560  need_lib_prefix=no
18561  need_version=no
18562  case $host_cpu in
18563  ia64*)
18564    shrext_cmds='.so'
18565    hardcode_into_libs=yes
18566    dynamic_linker="$host_os dld.so"
18567    shlibpath_var=LD_LIBRARY_PATH
18568    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18569    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18570    soname_spec='${libname}${release}${shared_ext}$major'
18571    if test "X$HPUX_IA64_MODE" = X32; then
18572      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18573    else
18574      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18575    fi
18576    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18577    ;;
18578   hppa*64*)
18579     shrext_cmds='.sl'
18580     hardcode_into_libs=yes
18581     dynamic_linker="$host_os dld.sl"
18582     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18583     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18584     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18585     soname_spec='${libname}${release}${shared_ext}$major'
18586     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18587     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18588     ;;
18589   *)
18590    shrext_cmds='.sl'
18591    dynamic_linker="$host_os dld.sl"
18592    shlibpath_var=SHLIB_PATH
18593    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18594    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18595    soname_spec='${libname}${release}${shared_ext}$major'
18596    ;;
18597  esac
18598  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18599  postinstall_cmds='chmod 555 $lib'
18600  ;;
18601
18602interix3*)
18603  version_type=linux
18604  need_lib_prefix=no
18605  need_version=no
18606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18607  soname_spec='${libname}${release}${shared_ext}$major'
18608  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18609  shlibpath_var=LD_LIBRARY_PATH
18610  shlibpath_overrides_runpath=no
18611  hardcode_into_libs=yes
18612  ;;
18613
18614irix5* | irix6* | nonstopux*)
18615  case $host_os in
18616    nonstopux*) version_type=nonstopux ;;
18617    *)
18618	if test "$lt_cv_prog_gnu_ld" = yes; then
18619		version_type=linux
18620	else
18621		version_type=irix
18622	fi ;;
18623  esac
18624  need_lib_prefix=no
18625  need_version=no
18626  soname_spec='${libname}${release}${shared_ext}$major'
18627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18628  case $host_os in
18629  irix5* | nonstopux*)
18630    libsuff= shlibsuff=
18631    ;;
18632  *)
18633    case $LD in # libtool.m4 will add one of these switches to LD
18634    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18635      libsuff= shlibsuff= libmagic=32-bit;;
18636    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18637      libsuff=32 shlibsuff=N32 libmagic=N32;;
18638    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18639      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18640    *) libsuff= shlibsuff= libmagic=never-match;;
18641    esac
18642    ;;
18643  esac
18644  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18645  shlibpath_overrides_runpath=no
18646  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18647  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18648  hardcode_into_libs=yes
18649  ;;
18650
18651# No shared lib support for Linux oldld, aout, or coff.
18652linux*oldld* | linux*aout* | linux*coff*)
18653  dynamic_linker=no
18654  ;;
18655
18656# This must be Linux ELF.
18657linux*)
18658  version_type=linux
18659  need_lib_prefix=no
18660  need_version=no
18661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18662  soname_spec='${libname}${release}${shared_ext}$major'
18663  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18664  shlibpath_var=LD_LIBRARY_PATH
18665  shlibpath_overrides_runpath=no
18666  # This implies no fast_install, which is unacceptable.
18667  # Some rework will be needed to allow for fast_install
18668  # before this can be enabled.
18669  hardcode_into_libs=yes
18670
18671  # Append ld.so.conf contents to the search path
18672  if test -f /etc/ld.so.conf; then
18673    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18674    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18675  fi
18676
18677  # We used to test for /lib/ld.so.1 and disable shared libraries on
18678  # powerpc, because MkLinux only supported shared libraries with the
18679  # GNU dynamic linker.  Since this was broken with cross compilers,
18680  # most powerpc-linux boxes support dynamic linking these days and
18681  # people can always --disable-shared, the test was removed, and we
18682  # assume the GNU/Linux dynamic linker is in use.
18683  dynamic_linker='GNU/Linux ld.so'
18684  ;;
18685
18686knetbsd*-gnu)
18687  version_type=linux
18688  need_lib_prefix=no
18689  need_version=no
18690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18691  soname_spec='${libname}${release}${shared_ext}$major'
18692  shlibpath_var=LD_LIBRARY_PATH
18693  shlibpath_overrides_runpath=no
18694  hardcode_into_libs=yes
18695  dynamic_linker='GNU ld.so'
18696  ;;
18697
18698netbsd*)
18699  version_type=sunos
18700  need_lib_prefix=no
18701  need_version=no
18702  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18703    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18704    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18705    dynamic_linker='NetBSD (a.out) ld.so'
18706  else
18707    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18708    soname_spec='${libname}${release}${shared_ext}$major'
18709    dynamic_linker='NetBSD ld.elf_so'
18710  fi
18711  shlibpath_var=LD_LIBRARY_PATH
18712  shlibpath_overrides_runpath=yes
18713  hardcode_into_libs=yes
18714  ;;
18715
18716newsos6)
18717  version_type=linux
18718  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18719  shlibpath_var=LD_LIBRARY_PATH
18720  shlibpath_overrides_runpath=yes
18721  ;;
18722
18723nto-qnx*)
18724  version_type=linux
18725  need_lib_prefix=no
18726  need_version=no
18727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18728  soname_spec='${libname}${release}${shared_ext}$major'
18729  shlibpath_var=LD_LIBRARY_PATH
18730  shlibpath_overrides_runpath=yes
18731  ;;
18732
18733openbsd*)
18734  version_type=sunos
18735  sys_lib_dlsearch_path_spec="/usr/lib"
18736  need_lib_prefix=no
18737  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18738  case $host_os in
18739    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18740    *)                         need_version=no  ;;
18741  esac
18742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18743  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18744  shlibpath_var=LD_LIBRARY_PATH
18745  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18746    case $host_os in
18747      openbsd2.[89] | openbsd2.[89].*)
18748	shlibpath_overrides_runpath=no
18749	;;
18750      *)
18751	shlibpath_overrides_runpath=yes
18752	;;
18753      esac
18754  else
18755    shlibpath_overrides_runpath=yes
18756  fi
18757  ;;
18758
18759os2*)
18760  libname_spec='$name'
18761  shrext_cmds=".dll"
18762  need_lib_prefix=no
18763  library_names_spec='$libname${shared_ext} $libname.a'
18764  dynamic_linker='OS/2 ld.exe'
18765  shlibpath_var=LIBPATH
18766  ;;
18767
18768osf3* | osf4* | osf5*)
18769  version_type=osf
18770  need_lib_prefix=no
18771  need_version=no
18772  soname_spec='${libname}${release}${shared_ext}$major'
18773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18774  shlibpath_var=LD_LIBRARY_PATH
18775  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18776  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18777  ;;
18778
18779solaris*)
18780  version_type=linux
18781  need_lib_prefix=no
18782  need_version=no
18783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18784  soname_spec='${libname}${release}${shared_ext}$major'
18785  shlibpath_var=LD_LIBRARY_PATH
18786  shlibpath_overrides_runpath=yes
18787  hardcode_into_libs=yes
18788  # ldd complains unless libraries are executable
18789  postinstall_cmds='chmod +x $lib'
18790  ;;
18791
18792sunos4*)
18793  version_type=sunos
18794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18795  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18796  shlibpath_var=LD_LIBRARY_PATH
18797  shlibpath_overrides_runpath=yes
18798  if test "$with_gnu_ld" = yes; then
18799    need_lib_prefix=no
18800  fi
18801  need_version=yes
18802  ;;
18803
18804sysv4 | sysv4.3*)
18805  version_type=linux
18806  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18807  soname_spec='${libname}${release}${shared_ext}$major'
18808  shlibpath_var=LD_LIBRARY_PATH
18809  case $host_vendor in
18810    sni)
18811      shlibpath_overrides_runpath=no
18812      need_lib_prefix=no
18813      export_dynamic_flag_spec='${wl}-Blargedynsym'
18814      runpath_var=LD_RUN_PATH
18815      ;;
18816    siemens)
18817      need_lib_prefix=no
18818      ;;
18819    motorola)
18820      need_lib_prefix=no
18821      need_version=no
18822      shlibpath_overrides_runpath=no
18823      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18824      ;;
18825  esac
18826  ;;
18827
18828sysv4*MP*)
18829  if test -d /usr/nec ;then
18830    version_type=linux
18831    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18832    soname_spec='$libname${shared_ext}.$major'
18833    shlibpath_var=LD_LIBRARY_PATH
18834  fi
18835  ;;
18836
18837sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18838  version_type=freebsd-elf
18839  need_lib_prefix=no
18840  need_version=no
18841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18842  soname_spec='${libname}${release}${shared_ext}$major'
18843  shlibpath_var=LD_LIBRARY_PATH
18844  hardcode_into_libs=yes
18845  if test "$with_gnu_ld" = yes; then
18846    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18847    shlibpath_overrides_runpath=no
18848  else
18849    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18850    shlibpath_overrides_runpath=yes
18851    case $host_os in
18852      sco3.2v5*)
18853        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18854	;;
18855    esac
18856  fi
18857  sys_lib_dlsearch_path_spec='/usr/lib'
18858  ;;
18859
18860uts4*)
18861  version_type=linux
18862  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18863  soname_spec='${libname}${release}${shared_ext}$major'
18864  shlibpath_var=LD_LIBRARY_PATH
18865  ;;
18866
18867*)
18868  dynamic_linker=no
18869  ;;
18870esac
18871{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18872echo "${ECHO_T}$dynamic_linker" >&6; }
18873test "$dynamic_linker" = no && can_build_shared=no
18874
18875variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18876if test "$GCC" = yes; then
18877  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18878fi
18879
18880{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18881echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18882hardcode_action_GCJ=
18883if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18884   test -n "$runpath_var_GCJ" || \
18885   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18886
18887  # We can hardcode non-existant directories.
18888  if test "$hardcode_direct_GCJ" != no &&
18889     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18890     # have to relink, otherwise we might link with an installed library
18891     # when we should be linking with a yet-to-be-installed one
18892     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18893     test "$hardcode_minus_L_GCJ" != no; then
18894    # Linking always hardcodes the temporary library directory.
18895    hardcode_action_GCJ=relink
18896  else
18897    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18898    hardcode_action_GCJ=immediate
18899  fi
18900else
18901  # We cannot hardcode anything, or else we can only hardcode existing
18902  # directories.
18903  hardcode_action_GCJ=unsupported
18904fi
18905{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18906echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18907
18908if test "$hardcode_action_GCJ" = relink; then
18909  # Fast installation is not supported
18910  enable_fast_install=no
18911elif test "$shlibpath_overrides_runpath" = yes ||
18912     test "$enable_shared" = no; then
18913  # Fast installation is not necessary
18914  enable_fast_install=needless
18915fi
18916
18917
18918# The else clause should only fire when bootstrapping the
18919# libtool distribution, otherwise you forgot to ship ltmain.sh
18920# with your package, and you will get complaints that there are
18921# no rules to generate ltmain.sh.
18922if test -f "$ltmain"; then
18923  # See if we are running on zsh, and set the options which allow our commands through
18924  # without removal of \ escapes.
18925  if test -n "${ZSH_VERSION+set}" ; then
18926    setopt NO_GLOB_SUBST
18927  fi
18928  # Now quote all the things that may contain metacharacters while being
18929  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18930  # variables and quote the copies for generation of the libtool script.
18931  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18932    SED SHELL STRIP \
18933    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18934    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18935    deplibs_check_method reload_flag reload_cmds need_locks \
18936    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18937    lt_cv_sys_global_symbol_to_c_name_address \
18938    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18939    old_postinstall_cmds old_postuninstall_cmds \
18940    compiler_GCJ \
18941    CC_GCJ \
18942    LD_GCJ \
18943    lt_prog_compiler_wl_GCJ \
18944    lt_prog_compiler_pic_GCJ \
18945    lt_prog_compiler_static_GCJ \
18946    lt_prog_compiler_no_builtin_flag_GCJ \
18947    export_dynamic_flag_spec_GCJ \
18948    thread_safe_flag_spec_GCJ \
18949    whole_archive_flag_spec_GCJ \
18950    enable_shared_with_static_runtimes_GCJ \
18951    old_archive_cmds_GCJ \
18952    old_archive_from_new_cmds_GCJ \
18953    predep_objects_GCJ \
18954    postdep_objects_GCJ \
18955    predeps_GCJ \
18956    postdeps_GCJ \
18957    compiler_lib_search_path_GCJ \
18958    archive_cmds_GCJ \
18959    archive_expsym_cmds_GCJ \
18960    postinstall_cmds_GCJ \
18961    postuninstall_cmds_GCJ \
18962    old_archive_from_expsyms_cmds_GCJ \
18963    allow_undefined_flag_GCJ \
18964    no_undefined_flag_GCJ \
18965    export_symbols_cmds_GCJ \
18966    hardcode_libdir_flag_spec_GCJ \
18967    hardcode_libdir_flag_spec_ld_GCJ \
18968    hardcode_libdir_separator_GCJ \
18969    hardcode_automatic_GCJ \
18970    module_cmds_GCJ \
18971    module_expsym_cmds_GCJ \
18972    lt_cv_prog_compiler_c_o_GCJ \
18973    exclude_expsyms_GCJ \
18974    include_expsyms_GCJ; do
18975
18976    case $var in
18977    old_archive_cmds_GCJ | \
18978    old_archive_from_new_cmds_GCJ | \
18979    archive_cmds_GCJ | \
18980    archive_expsym_cmds_GCJ | \
18981    module_cmds_GCJ | \
18982    module_expsym_cmds_GCJ | \
18983    old_archive_from_expsyms_cmds_GCJ | \
18984    export_symbols_cmds_GCJ | \
18985    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18986    postinstall_cmds | postuninstall_cmds | \
18987    old_postinstall_cmds | old_postuninstall_cmds | \
18988    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18989      # Double-quote double-evaled strings.
18990      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18991      ;;
18992    *)
18993      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18994      ;;
18995    esac
18996  done
18997
18998  case $lt_echo in
18999  *'\$0 --fallback-echo"')
19000    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19001    ;;
19002  esac
19003
19004cfgfile="$ofile"
19005
19006  cat <<__EOF__ >> "$cfgfile"
19007# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19008
19009# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19010
19011# Shell to use when invoking shell scripts.
19012SHELL=$lt_SHELL
19013
19014# Whether or not to build shared libraries.
19015build_libtool_libs=$enable_shared
19016
19017# Whether or not to build static libraries.
19018build_old_libs=$enable_static
19019
19020# Whether or not to add -lc for building shared libraries.
19021build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19022
19023# Whether or not to disallow shared libs when runtime libs are static
19024allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19025
19026# Whether or not to optimize for fast installation.
19027fast_install=$enable_fast_install
19028
19029# The host system.
19030host_alias=$host_alias
19031host=$host
19032host_os=$host_os
19033
19034# The build system.
19035build_alias=$build_alias
19036build=$build
19037build_os=$build_os
19038
19039# An echo program that does not interpret backslashes.
19040echo=$lt_echo
19041
19042# The archiver.
19043AR=$lt_AR
19044AR_FLAGS=$lt_AR_FLAGS
19045
19046# A C compiler.
19047LTCC=$lt_LTCC
19048
19049# LTCC compiler flags.
19050LTCFLAGS=$lt_LTCFLAGS
19051
19052# A language-specific compiler.
19053CC=$lt_compiler_GCJ
19054
19055# Is the compiler the GNU C compiler?
19056with_gcc=$GCC_GCJ
19057
19058# An ERE matcher.
19059EGREP=$lt_EGREP
19060
19061# The linker used to build libraries.
19062LD=$lt_LD_GCJ
19063
19064# Whether we need hard or soft links.
19065LN_S=$lt_LN_S
19066
19067# A BSD-compatible nm program.
19068NM=$lt_NM
19069
19070# A symbol stripping program
19071STRIP=$lt_STRIP
19072
19073# Used to examine libraries when file_magic_cmd begins "file"
19074MAGIC_CMD=$MAGIC_CMD
19075
19076# Used on cygwin: DLL creation program.
19077DLLTOOL="$DLLTOOL"
19078
19079# Used on cygwin: object dumper.
19080OBJDUMP="$OBJDUMP"
19081
19082# Used on cygwin: assembler.
19083AS="$AS"
19084
19085# The name of the directory that contains temporary libtool files.
19086objdir=$objdir
19087
19088# How to create reloadable object files.
19089reload_flag=$lt_reload_flag
19090reload_cmds=$lt_reload_cmds
19091
19092# How to pass a linker flag through the compiler.
19093wl=$lt_lt_prog_compiler_wl_GCJ
19094
19095# Object file suffix (normally "o").
19096objext="$ac_objext"
19097
19098# Old archive suffix (normally "a").
19099libext="$libext"
19100
19101# Shared library suffix (normally ".so").
19102shrext_cmds='$shrext_cmds'
19103
19104# Executable file suffix (normally "").
19105exeext="$exeext"
19106
19107# Additional compiler flags for building library objects.
19108pic_flag=$lt_lt_prog_compiler_pic_GCJ
19109pic_mode=$pic_mode
19110
19111# What is the maximum length of a command?
19112max_cmd_len=$lt_cv_sys_max_cmd_len
19113
19114# Does compiler simultaneously support -c and -o options?
19115compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19116
19117# Must we lock files when doing compilation?
19118need_locks=$lt_need_locks
19119
19120# Do we need the lib prefix for modules?
19121need_lib_prefix=$need_lib_prefix
19122
19123# Do we need a version for libraries?
19124need_version=$need_version
19125
19126# Whether dlopen is supported.
19127dlopen_support=$enable_dlopen
19128
19129# Whether dlopen of programs is supported.
19130dlopen_self=$enable_dlopen_self
19131
19132# Whether dlopen of statically linked programs is supported.
19133dlopen_self_static=$enable_dlopen_self_static
19134
19135# Compiler flag to prevent dynamic linking.
19136link_static_flag=$lt_lt_prog_compiler_static_GCJ
19137
19138# Compiler flag to turn off builtin functions.
19139no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19140
19141# Compiler flag to allow reflexive dlopens.
19142export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19143
19144# Compiler flag to generate shared objects directly from archives.
19145whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19146
19147# Compiler flag to generate thread-safe objects.
19148thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19149
19150# Library versioning type.
19151version_type=$version_type
19152
19153# Format of library name prefix.
19154libname_spec=$lt_libname_spec
19155
19156# List of archive names.  First name is the real one, the rest are links.
19157# The last name is the one that the linker finds with -lNAME.
19158library_names_spec=$lt_library_names_spec
19159
19160# The coded name of the library, if different from the real name.
19161soname_spec=$lt_soname_spec
19162
19163# Commands used to build and install an old-style archive.
19164RANLIB=$lt_RANLIB
19165old_archive_cmds=$lt_old_archive_cmds_GCJ
19166old_postinstall_cmds=$lt_old_postinstall_cmds
19167old_postuninstall_cmds=$lt_old_postuninstall_cmds
19168
19169# Create an old-style archive from a shared archive.
19170old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19171
19172# Create a temporary old-style archive to link instead of a shared archive.
19173old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19174
19175# Commands used to build and install a shared archive.
19176archive_cmds=$lt_archive_cmds_GCJ
19177archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19178postinstall_cmds=$lt_postinstall_cmds
19179postuninstall_cmds=$lt_postuninstall_cmds
19180
19181# Commands used to build a loadable module (assumed same as above if empty)
19182module_cmds=$lt_module_cmds_GCJ
19183module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19184
19185# Commands to strip libraries.
19186old_striplib=$lt_old_striplib
19187striplib=$lt_striplib
19188
19189# Dependencies to place before the objects being linked to create a
19190# shared library.
19191predep_objects=$lt_predep_objects_GCJ
19192
19193# Dependencies to place after the objects being linked to create a
19194# shared library.
19195postdep_objects=$lt_postdep_objects_GCJ
19196
19197# Dependencies to place before the objects being linked to create a
19198# shared library.
19199predeps=$lt_predeps_GCJ
19200
19201# Dependencies to place after the objects being linked to create a
19202# shared library.
19203postdeps=$lt_postdeps_GCJ
19204
19205# The library search path used internally by the compiler when linking
19206# a shared library.
19207compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19208
19209# Method to check whether dependent libraries are shared objects.
19210deplibs_check_method=$lt_deplibs_check_method
19211
19212# Command to use when deplibs_check_method == file_magic.
19213file_magic_cmd=$lt_file_magic_cmd
19214
19215# Flag that allows shared libraries with undefined symbols to be built.
19216allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19217
19218# Flag that forces no undefined symbols.
19219no_undefined_flag=$lt_no_undefined_flag_GCJ
19220
19221# Commands used to finish a libtool library installation in a directory.
19222finish_cmds=$lt_finish_cmds
19223
19224# Same as above, but a single script fragment to be evaled but not shown.
19225finish_eval=$lt_finish_eval
19226
19227# Take the output of nm and produce a listing of raw symbols and C names.
19228global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19229
19230# Transform the output of nm in a proper C declaration
19231global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19232
19233# Transform the output of nm in a C name address pair
19234global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19235
19236# This is the shared library runtime path variable.
19237runpath_var=$runpath_var
19238
19239# This is the shared library path variable.
19240shlibpath_var=$shlibpath_var
19241
19242# Is shlibpath searched before the hard-coded library search path?
19243shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19244
19245# How to hardcode a shared library path into an executable.
19246hardcode_action=$hardcode_action_GCJ
19247
19248# Whether we should hardcode library paths into libraries.
19249hardcode_into_libs=$hardcode_into_libs
19250
19251# Flag to hardcode \$libdir into a binary during linking.
19252# This must work even if \$libdir does not exist.
19253hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19254
19255# If ld is used when linking, flag to hardcode \$libdir into
19256# a binary during linking. This must work even if \$libdir does
19257# not exist.
19258hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19259
19260# Whether we need a single -rpath flag with a separated argument.
19261hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19262
19263# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19264# resulting binary.
19265hardcode_direct=$hardcode_direct_GCJ
19266
19267# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19268# resulting binary.
19269hardcode_minus_L=$hardcode_minus_L_GCJ
19270
19271# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19272# the resulting binary.
19273hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19274
19275# Set to yes if building a shared library automatically hardcodes DIR into the library
19276# and all subsequent libraries and executables linked against it.
19277hardcode_automatic=$hardcode_automatic_GCJ
19278
19279# Variables whose values should be saved in libtool wrapper scripts and
19280# restored at relink time.
19281variables_saved_for_relink="$variables_saved_for_relink"
19282
19283# Whether libtool must link a program against all its dependency libraries.
19284link_all_deplibs=$link_all_deplibs_GCJ
19285
19286# Compile-time system search path for libraries
19287sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19288
19289# Run-time system search path for libraries
19290sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19291
19292# Fix the shell variable \$srcfile for the compiler.
19293fix_srcfile_path="$fix_srcfile_path_GCJ"
19294
19295# Set to yes if exported symbols are required.
19296always_export_symbols=$always_export_symbols_GCJ
19297
19298# The commands to list exported symbols.
19299export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19300
19301# The commands to extract the exported symbol list from a shared archive.
19302extract_expsyms_cmds=$lt_extract_expsyms_cmds
19303
19304# Symbols that should not be listed in the preloaded symbols.
19305exclude_expsyms=$lt_exclude_expsyms_GCJ
19306
19307# Symbols that must always be exported.
19308include_expsyms=$lt_include_expsyms_GCJ
19309
19310# ### END LIBTOOL TAG CONFIG: $tagname
19311
19312__EOF__
19313
19314
19315else
19316  # If there is no Makefile yet, we rely on a make rule to execute
19317  # `config.status --recheck' to rerun these tests and create the
19318  # libtool script then.
19319  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19320  if test -f "$ltmain_in"; then
19321    test -f Makefile && make "$ltmain"
19322  fi
19323fi
19324
19325
19326ac_ext=c
19327ac_cpp='$CPP $CPPFLAGS'
19328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19330ac_compiler_gnu=$ac_cv_c_compiler_gnu
19331
19332CC="$lt_save_CC"
19333
19334	else
19335	  tagname=""
19336	fi
19337	;;
19338
19339      RC)
19340
19341
19342# Source file extension for RC test sources.
19343ac_ext=rc
19344
19345# Object file extension for compiled RC test sources.
19346objext=o
19347objext_RC=$objext
19348
19349# Code to be used in simple compile tests
19350lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19351
19352# Code to be used in simple link tests
19353lt_simple_link_test_code="$lt_simple_compile_test_code"
19354
19355# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19356
19357# If no C compiler was specified, use CC.
19358LTCC=${LTCC-"$CC"}
19359
19360# If no C compiler flags were specified, use CFLAGS.
19361LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19362
19363# Allow CC to be a program name with arguments.
19364compiler=$CC
19365
19366
19367# save warnings/boilerplate of simple test code
19368ac_outfile=conftest.$ac_objext
19369printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19370eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19371_lt_compiler_boilerplate=`cat conftest.err`
19372$rm conftest*
19373
19374ac_outfile=conftest.$ac_objext
19375printf "$lt_simple_link_test_code" >conftest.$ac_ext
19376eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19377_lt_linker_boilerplate=`cat conftest.err`
19378$rm conftest*
19379
19380
19381# Allow CC to be a program name with arguments.
19382lt_save_CC="$CC"
19383CC=${RC-"windres"}
19384compiler=$CC
19385compiler_RC=$CC
19386for cc_temp in $compiler""; do
19387  case $cc_temp in
19388    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19389    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19390    \-*) ;;
19391    *) break;;
19392  esac
19393done
19394cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19395
19396lt_cv_prog_compiler_c_o_RC=yes
19397
19398# The else clause should only fire when bootstrapping the
19399# libtool distribution, otherwise you forgot to ship ltmain.sh
19400# with your package, and you will get complaints that there are
19401# no rules to generate ltmain.sh.
19402if test -f "$ltmain"; then
19403  # See if we are running on zsh, and set the options which allow our commands through
19404  # without removal of \ escapes.
19405  if test -n "${ZSH_VERSION+set}" ; then
19406    setopt NO_GLOB_SUBST
19407  fi
19408  # Now quote all the things that may contain metacharacters while being
19409  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19410  # variables and quote the copies for generation of the libtool script.
19411  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19412    SED SHELL STRIP \
19413    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19414    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19415    deplibs_check_method reload_flag reload_cmds need_locks \
19416    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19417    lt_cv_sys_global_symbol_to_c_name_address \
19418    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19419    old_postinstall_cmds old_postuninstall_cmds \
19420    compiler_RC \
19421    CC_RC \
19422    LD_RC \
19423    lt_prog_compiler_wl_RC \
19424    lt_prog_compiler_pic_RC \
19425    lt_prog_compiler_static_RC \
19426    lt_prog_compiler_no_builtin_flag_RC \
19427    export_dynamic_flag_spec_RC \
19428    thread_safe_flag_spec_RC \
19429    whole_archive_flag_spec_RC \
19430    enable_shared_with_static_runtimes_RC \
19431    old_archive_cmds_RC \
19432    old_archive_from_new_cmds_RC \
19433    predep_objects_RC \
19434    postdep_objects_RC \
19435    predeps_RC \
19436    postdeps_RC \
19437    compiler_lib_search_path_RC \
19438    archive_cmds_RC \
19439    archive_expsym_cmds_RC \
19440    postinstall_cmds_RC \
19441    postuninstall_cmds_RC \
19442    old_archive_from_expsyms_cmds_RC \
19443    allow_undefined_flag_RC \
19444    no_undefined_flag_RC \
19445    export_symbols_cmds_RC \
19446    hardcode_libdir_flag_spec_RC \
19447    hardcode_libdir_flag_spec_ld_RC \
19448    hardcode_libdir_separator_RC \
19449    hardcode_automatic_RC \
19450    module_cmds_RC \
19451    module_expsym_cmds_RC \
19452    lt_cv_prog_compiler_c_o_RC \
19453    exclude_expsyms_RC \
19454    include_expsyms_RC; do
19455
19456    case $var in
19457    old_archive_cmds_RC | \
19458    old_archive_from_new_cmds_RC | \
19459    archive_cmds_RC | \
19460    archive_expsym_cmds_RC | \
19461    module_cmds_RC | \
19462    module_expsym_cmds_RC | \
19463    old_archive_from_expsyms_cmds_RC | \
19464    export_symbols_cmds_RC | \
19465    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19466    postinstall_cmds | postuninstall_cmds | \
19467    old_postinstall_cmds | old_postuninstall_cmds | \
19468    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19469      # Double-quote double-evaled strings.
19470      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19471      ;;
19472    *)
19473      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19474      ;;
19475    esac
19476  done
19477
19478  case $lt_echo in
19479  *'\$0 --fallback-echo"')
19480    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19481    ;;
19482  esac
19483
19484cfgfile="$ofile"
19485
19486  cat <<__EOF__ >> "$cfgfile"
19487# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19488
19489# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19490
19491# Shell to use when invoking shell scripts.
19492SHELL=$lt_SHELL
19493
19494# Whether or not to build shared libraries.
19495build_libtool_libs=$enable_shared
19496
19497# Whether or not to build static libraries.
19498build_old_libs=$enable_static
19499
19500# Whether or not to add -lc for building shared libraries.
19501build_libtool_need_lc=$archive_cmds_need_lc_RC
19502
19503# Whether or not to disallow shared libs when runtime libs are static
19504allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19505
19506# Whether or not to optimize for fast installation.
19507fast_install=$enable_fast_install
19508
19509# The host system.
19510host_alias=$host_alias
19511host=$host
19512host_os=$host_os
19513
19514# The build system.
19515build_alias=$build_alias
19516build=$build
19517build_os=$build_os
19518
19519# An echo program that does not interpret backslashes.
19520echo=$lt_echo
19521
19522# The archiver.
19523AR=$lt_AR
19524AR_FLAGS=$lt_AR_FLAGS
19525
19526# A C compiler.
19527LTCC=$lt_LTCC
19528
19529# LTCC compiler flags.
19530LTCFLAGS=$lt_LTCFLAGS
19531
19532# A language-specific compiler.
19533CC=$lt_compiler_RC
19534
19535# Is the compiler the GNU C compiler?
19536with_gcc=$GCC_RC
19537
19538# An ERE matcher.
19539EGREP=$lt_EGREP
19540
19541# The linker used to build libraries.
19542LD=$lt_LD_RC
19543
19544# Whether we need hard or soft links.
19545LN_S=$lt_LN_S
19546
19547# A BSD-compatible nm program.
19548NM=$lt_NM
19549
19550# A symbol stripping program
19551STRIP=$lt_STRIP
19552
19553# Used to examine libraries when file_magic_cmd begins "file"
19554MAGIC_CMD=$MAGIC_CMD
19555
19556# Used on cygwin: DLL creation program.
19557DLLTOOL="$DLLTOOL"
19558
19559# Used on cygwin: object dumper.
19560OBJDUMP="$OBJDUMP"
19561
19562# Used on cygwin: assembler.
19563AS="$AS"
19564
19565# The name of the directory that contains temporary libtool files.
19566objdir=$objdir
19567
19568# How to create reloadable object files.
19569reload_flag=$lt_reload_flag
19570reload_cmds=$lt_reload_cmds
19571
19572# How to pass a linker flag through the compiler.
19573wl=$lt_lt_prog_compiler_wl_RC
19574
19575# Object file suffix (normally "o").
19576objext="$ac_objext"
19577
19578# Old archive suffix (normally "a").
19579libext="$libext"
19580
19581# Shared library suffix (normally ".so").
19582shrext_cmds='$shrext_cmds'
19583
19584# Executable file suffix (normally "").
19585exeext="$exeext"
19586
19587# Additional compiler flags for building library objects.
19588pic_flag=$lt_lt_prog_compiler_pic_RC
19589pic_mode=$pic_mode
19590
19591# What is the maximum length of a command?
19592max_cmd_len=$lt_cv_sys_max_cmd_len
19593
19594# Does compiler simultaneously support -c and -o options?
19595compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19596
19597# Must we lock files when doing compilation?
19598need_locks=$lt_need_locks
19599
19600# Do we need the lib prefix for modules?
19601need_lib_prefix=$need_lib_prefix
19602
19603# Do we need a version for libraries?
19604need_version=$need_version
19605
19606# Whether dlopen is supported.
19607dlopen_support=$enable_dlopen
19608
19609# Whether dlopen of programs is supported.
19610dlopen_self=$enable_dlopen_self
19611
19612# Whether dlopen of statically linked programs is supported.
19613dlopen_self_static=$enable_dlopen_self_static
19614
19615# Compiler flag to prevent dynamic linking.
19616link_static_flag=$lt_lt_prog_compiler_static_RC
19617
19618# Compiler flag to turn off builtin functions.
19619no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19620
19621# Compiler flag to allow reflexive dlopens.
19622export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19623
19624# Compiler flag to generate shared objects directly from archives.
19625whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19626
19627# Compiler flag to generate thread-safe objects.
19628thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19629
19630# Library versioning type.
19631version_type=$version_type
19632
19633# Format of library name prefix.
19634libname_spec=$lt_libname_spec
19635
19636# List of archive names.  First name is the real one, the rest are links.
19637# The last name is the one that the linker finds with -lNAME.
19638library_names_spec=$lt_library_names_spec
19639
19640# The coded name of the library, if different from the real name.
19641soname_spec=$lt_soname_spec
19642
19643# Commands used to build and install an old-style archive.
19644RANLIB=$lt_RANLIB
19645old_archive_cmds=$lt_old_archive_cmds_RC
19646old_postinstall_cmds=$lt_old_postinstall_cmds
19647old_postuninstall_cmds=$lt_old_postuninstall_cmds
19648
19649# Create an old-style archive from a shared archive.
19650old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19651
19652# Create a temporary old-style archive to link instead of a shared archive.
19653old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19654
19655# Commands used to build and install a shared archive.
19656archive_cmds=$lt_archive_cmds_RC
19657archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19658postinstall_cmds=$lt_postinstall_cmds
19659postuninstall_cmds=$lt_postuninstall_cmds
19660
19661# Commands used to build a loadable module (assumed same as above if empty)
19662module_cmds=$lt_module_cmds_RC
19663module_expsym_cmds=$lt_module_expsym_cmds_RC
19664
19665# Commands to strip libraries.
19666old_striplib=$lt_old_striplib
19667striplib=$lt_striplib
19668
19669# Dependencies to place before the objects being linked to create a
19670# shared library.
19671predep_objects=$lt_predep_objects_RC
19672
19673# Dependencies to place after the objects being linked to create a
19674# shared library.
19675postdep_objects=$lt_postdep_objects_RC
19676
19677# Dependencies to place before the objects being linked to create a
19678# shared library.
19679predeps=$lt_predeps_RC
19680
19681# Dependencies to place after the objects being linked to create a
19682# shared library.
19683postdeps=$lt_postdeps_RC
19684
19685# The library search path used internally by the compiler when linking
19686# a shared library.
19687compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19688
19689# Method to check whether dependent libraries are shared objects.
19690deplibs_check_method=$lt_deplibs_check_method
19691
19692# Command to use when deplibs_check_method == file_magic.
19693file_magic_cmd=$lt_file_magic_cmd
19694
19695# Flag that allows shared libraries with undefined symbols to be built.
19696allow_undefined_flag=$lt_allow_undefined_flag_RC
19697
19698# Flag that forces no undefined symbols.
19699no_undefined_flag=$lt_no_undefined_flag_RC
19700
19701# Commands used to finish a libtool library installation in a directory.
19702finish_cmds=$lt_finish_cmds
19703
19704# Same as above, but a single script fragment to be evaled but not shown.
19705finish_eval=$lt_finish_eval
19706
19707# Take the output of nm and produce a listing of raw symbols and C names.
19708global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19709
19710# Transform the output of nm in a proper C declaration
19711global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19712
19713# Transform the output of nm in a C name address pair
19714global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19715
19716# This is the shared library runtime path variable.
19717runpath_var=$runpath_var
19718
19719# This is the shared library path variable.
19720shlibpath_var=$shlibpath_var
19721
19722# Is shlibpath searched before the hard-coded library search path?
19723shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19724
19725# How to hardcode a shared library path into an executable.
19726hardcode_action=$hardcode_action_RC
19727
19728# Whether we should hardcode library paths into libraries.
19729hardcode_into_libs=$hardcode_into_libs
19730
19731# Flag to hardcode \$libdir into a binary during linking.
19732# This must work even if \$libdir does not exist.
19733hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19734
19735# If ld is used when linking, flag to hardcode \$libdir into
19736# a binary during linking. This must work even if \$libdir does
19737# not exist.
19738hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19739
19740# Whether we need a single -rpath flag with a separated argument.
19741hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19742
19743# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19744# resulting binary.
19745hardcode_direct=$hardcode_direct_RC
19746
19747# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19748# resulting binary.
19749hardcode_minus_L=$hardcode_minus_L_RC
19750
19751# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19752# the resulting binary.
19753hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19754
19755# Set to yes if building a shared library automatically hardcodes DIR into the library
19756# and all subsequent libraries and executables linked against it.
19757hardcode_automatic=$hardcode_automatic_RC
19758
19759# Variables whose values should be saved in libtool wrapper scripts and
19760# restored at relink time.
19761variables_saved_for_relink="$variables_saved_for_relink"
19762
19763# Whether libtool must link a program against all its dependency libraries.
19764link_all_deplibs=$link_all_deplibs_RC
19765
19766# Compile-time system search path for libraries
19767sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19768
19769# Run-time system search path for libraries
19770sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19771
19772# Fix the shell variable \$srcfile for the compiler.
19773fix_srcfile_path="$fix_srcfile_path_RC"
19774
19775# Set to yes if exported symbols are required.
19776always_export_symbols=$always_export_symbols_RC
19777
19778# The commands to list exported symbols.
19779export_symbols_cmds=$lt_export_symbols_cmds_RC
19780
19781# The commands to extract the exported symbol list from a shared archive.
19782extract_expsyms_cmds=$lt_extract_expsyms_cmds
19783
19784# Symbols that should not be listed in the preloaded symbols.
19785exclude_expsyms=$lt_exclude_expsyms_RC
19786
19787# Symbols that must always be exported.
19788include_expsyms=$lt_include_expsyms_RC
19789
19790# ### END LIBTOOL TAG CONFIG: $tagname
19791
19792__EOF__
19793
19794
19795else
19796  # If there is no Makefile yet, we rely on a make rule to execute
19797  # `config.status --recheck' to rerun these tests and create the
19798  # libtool script then.
19799  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19800  if test -f "$ltmain_in"; then
19801    test -f Makefile && make "$ltmain"
19802  fi
19803fi
19804
19805
19806ac_ext=c
19807ac_cpp='$CPP $CPPFLAGS'
19808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19810ac_compiler_gnu=$ac_cv_c_compiler_gnu
19811
19812CC="$lt_save_CC"
19813
19814	;;
19815
19816      *)
19817	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19818echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19819   { (exit 1); exit 1; }; }
19820	;;
19821      esac
19822
19823      # Append the new tag name to the list of available tags.
19824      if test -n "$tagname" ; then
19825      available_tags="$available_tags $tagname"
19826    fi
19827    fi
19828  done
19829  IFS="$lt_save_ifs"
19830
19831  # Now substitute the updated list of available tags.
19832  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19833    mv "${ofile}T" "$ofile"
19834    chmod +x "$ofile"
19835  else
19836    rm -f "${ofile}T"
19837    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19838echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19839   { (exit 1); exit 1; }; }
19840  fi
19841fi
19842
19843
19844
19845# This can be used to rebuild libtool when needed
19846LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19847
19848# Always use our own libtool.
19849LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19850
19851# Prevent multiple expansion
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874  CFLAG_VISIBILITY=
19875  HAVE_VISIBILITY=0
19876  if test -n "$GCC"; then
19877    { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
19878echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
19879    if test "${gl_cv_cc_visibility+set}" = set; then
19880  echo $ECHO_N "(cached) $ECHO_C" >&6
19881else
19882
19883      gl_save_CFLAGS="$CFLAGS"
19884      CFLAGS="$CFLAGS -fvisibility=hidden"
19885      cat >conftest.$ac_ext <<_ACEOF
19886/* confdefs.h.  */
19887_ACEOF
19888cat confdefs.h >>conftest.$ac_ext
19889cat >>conftest.$ac_ext <<_ACEOF
19890/* end confdefs.h.  */
19891extern __attribute__((__visibility__("hidden"))) int hiddenvar;
19892         extern __attribute__((__visibility__("default"))) int exportedvar;
19893         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
19894         extern __attribute__((__visibility__("default"))) int exportedfunc (void);
19895int
19896main ()
19897{
19898
19899  ;
19900  return 0;
19901}
19902_ACEOF
19903rm -f conftest.$ac_objext
19904if { (ac_try="$ac_compile"
19905case "(($ac_try" in
19906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907  *) ac_try_echo=$ac_try;;
19908esac
19909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910  (eval "$ac_compile") 2>conftest.er1
19911  ac_status=$?
19912  grep -v '^ *+' conftest.er1 >conftest.err
19913  rm -f conftest.er1
19914  cat conftest.err >&5
19915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916  (exit $ac_status); } &&
19917	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19918  { (case "(($ac_try" in
19919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920  *) ac_try_echo=$ac_try;;
19921esac
19922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923  (eval "$ac_try") 2>&5
19924  ac_status=$?
19925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926  (exit $ac_status); }; } &&
19927	 { ac_try='test -s conftest.$ac_objext'
19928  { (case "(($ac_try" in
19929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930  *) ac_try_echo=$ac_try;;
19931esac
19932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933  (eval "$ac_try") 2>&5
19934  ac_status=$?
19935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936  (exit $ac_status); }; }; then
19937  gl_cv_cc_visibility=yes
19938else
19939  echo "$as_me: failed program was:" >&5
19940sed 's/^/| /' conftest.$ac_ext >&5
19941
19942	gl_cv_cc_visibility=no
19943fi
19944
19945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19946      CFLAGS="$gl_save_CFLAGS"
19947fi
19948
19949    { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
19950echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
19951    if test $gl_cv_cc_visibility = yes; then
19952      CFLAG_VISIBILITY="-fvisibility=hidden"
19953      HAVE_VISIBILITY=1
19954    fi
19955  fi
19956
19957
19958
19959cat >>confdefs.h <<_ACEOF
19960#define HAVE_VISIBILITY $HAVE_VISIBILITY
19961_ACEOF
19962
19963
19964
19965
19966
19967  { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
19968echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
19969if test "${am_cv_langinfo_codeset+set}" = set; then
19970  echo $ECHO_N "(cached) $ECHO_C" >&6
19971else
19972  cat >conftest.$ac_ext <<_ACEOF
19973/* confdefs.h.  */
19974_ACEOF
19975cat confdefs.h >>conftest.$ac_ext
19976cat >>conftest.$ac_ext <<_ACEOF
19977/* end confdefs.h.  */
19978#include <langinfo.h>
19979int
19980main ()
19981{
19982char* cs = nl_langinfo(CODESET);
19983  ;
19984  return 0;
19985}
19986_ACEOF
19987rm -f conftest.$ac_objext conftest$ac_exeext
19988if { (ac_try="$ac_link"
19989case "(($ac_try" in
19990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19991  *) ac_try_echo=$ac_try;;
19992esac
19993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19994  (eval "$ac_link") 2>conftest.er1
19995  ac_status=$?
19996  grep -v '^ *+' conftest.er1 >conftest.err
19997  rm -f conftest.er1
19998  cat conftest.err >&5
19999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000  (exit $ac_status); } &&
20001	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20002  { (case "(($ac_try" in
20003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004  *) ac_try_echo=$ac_try;;
20005esac
20006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007  (eval "$ac_try") 2>&5
20008  ac_status=$?
20009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010  (exit $ac_status); }; } &&
20011	 { ac_try='test -s conftest$ac_exeext'
20012  { (case "(($ac_try" in
20013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014  *) ac_try_echo=$ac_try;;
20015esac
20016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017  (eval "$ac_try") 2>&5
20018  ac_status=$?
20019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020  (exit $ac_status); }; }; then
20021  am_cv_langinfo_codeset=yes
20022else
20023  echo "$as_me: failed program was:" >&5
20024sed 's/^/| /' conftest.$ac_ext >&5
20025
20026	am_cv_langinfo_codeset=no
20027fi
20028
20029rm -f core conftest.err conftest.$ac_objext \
20030      conftest$ac_exeext conftest.$ac_ext
20031
20032fi
20033{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
20034echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
20035  if test $am_cv_langinfo_codeset = yes; then
20036
20037cat >>confdefs.h <<\_ACEOF
20038#define HAVE_LANGINFO_CODESET 1
20039_ACEOF
20040
20041  fi
20042
20043
20044    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20045echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20046if test "${ac_cv_gnu_library_2_1+set}" = set; then
20047  echo $ECHO_N "(cached) $ECHO_C" >&6
20048else
20049  cat >conftest.$ac_ext <<_ACEOF
20050/* confdefs.h.  */
20051_ACEOF
20052cat confdefs.h >>conftest.$ac_ext
20053cat >>conftest.$ac_ext <<_ACEOF
20054/* end confdefs.h.  */
20055
20056#include <features.h>
20057#ifdef __GNU_LIBRARY__
20058 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20059  Lucky GNU user
20060 #endif
20061#endif
20062
20063_ACEOF
20064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20065  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20066  ac_cv_gnu_library_2_1=yes
20067else
20068  ac_cv_gnu_library_2_1=no
20069fi
20070rm -f conftest*
20071
20072
20073
20074fi
20075{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20076echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20077
20078    GLIBC21="$ac_cv_gnu_library_2_1"
20079
20080
20081
20082
20083
20084for ac_header in stddef.h stdlib.h string.h
20085do
20086as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20088  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20091  echo $ECHO_N "(cached) $ECHO_C" >&6
20092fi
20093ac_res=`eval echo '${'$as_ac_Header'}'`
20094	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20095echo "${ECHO_T}$ac_res" >&6; }
20096else
20097  # Is the header compilable?
20098{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20099echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20100cat >conftest.$ac_ext <<_ACEOF
20101/* confdefs.h.  */
20102_ACEOF
20103cat confdefs.h >>conftest.$ac_ext
20104cat >>conftest.$ac_ext <<_ACEOF
20105/* end confdefs.h.  */
20106$ac_includes_default
20107#include <$ac_header>
20108_ACEOF
20109rm -f conftest.$ac_objext
20110if { (ac_try="$ac_compile"
20111case "(($ac_try" in
20112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113  *) ac_try_echo=$ac_try;;
20114esac
20115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20116  (eval "$ac_compile") 2>conftest.er1
20117  ac_status=$?
20118  grep -v '^ *+' conftest.er1 >conftest.err
20119  rm -f conftest.er1
20120  cat conftest.err >&5
20121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122  (exit $ac_status); } &&
20123	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20124  { (case "(($ac_try" in
20125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20126  *) ac_try_echo=$ac_try;;
20127esac
20128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20129  (eval "$ac_try") 2>&5
20130  ac_status=$?
20131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132  (exit $ac_status); }; } &&
20133	 { ac_try='test -s conftest.$ac_objext'
20134  { (case "(($ac_try" in
20135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136  *) ac_try_echo=$ac_try;;
20137esac
20138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139  (eval "$ac_try") 2>&5
20140  ac_status=$?
20141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142  (exit $ac_status); }; }; then
20143  ac_header_compiler=yes
20144else
20145  echo "$as_me: failed program was:" >&5
20146sed 's/^/| /' conftest.$ac_ext >&5
20147
20148	ac_header_compiler=no
20149fi
20150
20151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20152{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20153echo "${ECHO_T}$ac_header_compiler" >&6; }
20154
20155# Is the header present?
20156{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20157echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20158cat >conftest.$ac_ext <<_ACEOF
20159/* confdefs.h.  */
20160_ACEOF
20161cat confdefs.h >>conftest.$ac_ext
20162cat >>conftest.$ac_ext <<_ACEOF
20163/* end confdefs.h.  */
20164#include <$ac_header>
20165_ACEOF
20166if { (ac_try="$ac_cpp conftest.$ac_ext"
20167case "(($ac_try" in
20168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169  *) ac_try_echo=$ac_try;;
20170esac
20171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20172  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20173  ac_status=$?
20174  grep -v '^ *+' conftest.er1 >conftest.err
20175  rm -f conftest.er1
20176  cat conftest.err >&5
20177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178  (exit $ac_status); } >/dev/null; then
20179  if test -s conftest.err; then
20180    ac_cpp_err=$ac_c_preproc_warn_flag
20181    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20182  else
20183    ac_cpp_err=
20184  fi
20185else
20186  ac_cpp_err=yes
20187fi
20188if test -z "$ac_cpp_err"; then
20189  ac_header_preproc=yes
20190else
20191  echo "$as_me: failed program was:" >&5
20192sed 's/^/| /' conftest.$ac_ext >&5
20193
20194  ac_header_preproc=no
20195fi
20196
20197rm -f conftest.err conftest.$ac_ext
20198{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20199echo "${ECHO_T}$ac_header_preproc" >&6; }
20200
20201# So?  What about this header?
20202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20203  yes:no: )
20204    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20205echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20206    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20207echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20208    ac_header_preproc=yes
20209    ;;
20210  no:yes:* )
20211    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20212echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20213    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20214echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20215    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20216echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20217    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20218echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20219    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20220echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20221    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20222echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20223
20224    ;;
20225esac
20226{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20229  echo $ECHO_N "(cached) $ECHO_C" >&6
20230else
20231  eval "$as_ac_Header=\$ac_header_preproc"
20232fi
20233ac_res=`eval echo '${'$as_ac_Header'}'`
20234	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20235echo "${ECHO_T}$ac_res" >&6; }
20236
20237fi
20238if test `eval echo '${'$as_ac_Header'}'` = yes; then
20239  cat >>confdefs.h <<_ACEOF
20240#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20241_ACEOF
20242
20243fi
20244
20245done
20246
20247
20248for ac_func in setlocale
20249do
20250as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20251{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20252echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20253if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20254  echo $ECHO_N "(cached) $ECHO_C" >&6
20255else
20256  cat >conftest.$ac_ext <<_ACEOF
20257/* confdefs.h.  */
20258_ACEOF
20259cat confdefs.h >>conftest.$ac_ext
20260cat >>conftest.$ac_ext <<_ACEOF
20261/* end confdefs.h.  */
20262/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20263   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20264#define $ac_func innocuous_$ac_func
20265
20266/* System header to define __stub macros and hopefully few prototypes,
20267    which can conflict with char $ac_func (); below.
20268    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20269    <limits.h> exists even on freestanding compilers.  */
20270
20271#ifdef __STDC__
20272# include <limits.h>
20273#else
20274# include <assert.h>
20275#endif
20276
20277#undef $ac_func
20278
20279/* Override any GCC internal prototype to avoid an error.
20280   Use char because int might match the return type of a GCC
20281   builtin and then its argument prototype would still apply.  */
20282#ifdef __cplusplus
20283extern "C"
20284#endif
20285char $ac_func ();
20286/* The GNU C library defines this for functions which it implements
20287    to always fail with ENOSYS.  Some functions are actually named
20288    something starting with __ and the normal name is an alias.  */
20289#if defined __stub_$ac_func || defined __stub___$ac_func
20290choke me
20291#endif
20292
20293int
20294main ()
20295{
20296return $ac_func ();
20297  ;
20298  return 0;
20299}
20300_ACEOF
20301rm -f conftest.$ac_objext conftest$ac_exeext
20302if { (ac_try="$ac_link"
20303case "(($ac_try" in
20304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305  *) ac_try_echo=$ac_try;;
20306esac
20307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308  (eval "$ac_link") 2>conftest.er1
20309  ac_status=$?
20310  grep -v '^ *+' conftest.er1 >conftest.err
20311  rm -f conftest.er1
20312  cat conftest.err >&5
20313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314  (exit $ac_status); } &&
20315	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20316  { (case "(($ac_try" in
20317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318  *) ac_try_echo=$ac_try;;
20319esac
20320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321  (eval "$ac_try") 2>&5
20322  ac_status=$?
20323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324  (exit $ac_status); }; } &&
20325	 { ac_try='test -s conftest$ac_exeext'
20326  { (case "(($ac_try" in
20327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328  *) ac_try_echo=$ac_try;;
20329esac
20330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331  (eval "$ac_try") 2>&5
20332  ac_status=$?
20333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334  (exit $ac_status); }; }; then
20335  eval "$as_ac_var=yes"
20336else
20337  echo "$as_me: failed program was:" >&5
20338sed 's/^/| /' conftest.$ac_ext >&5
20339
20340	eval "$as_ac_var=no"
20341fi
20342
20343rm -f core conftest.err conftest.$ac_objext \
20344      conftest$ac_exeext conftest.$ac_ext
20345fi
20346ac_res=`eval echo '${'$as_ac_var'}'`
20347	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20348echo "${ECHO_T}$ac_res" >&6; }
20349if test `eval echo '${'$as_ac_var'}'` = yes; then
20350  cat >>confdefs.h <<_ACEOF
20351#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20352_ACEOF
20353
20354fi
20355done
20356
20357
20358ac_config_files="$ac_config_files Makefile"
20359
20360ac_config_files="$ac_config_files lib/Makefile"
20361
20362ac_config_files="$ac_config_files include/localcharset.h:include/localcharset.h.build.in"
20363
20364ac_config_files="$ac_config_files include/localcharset.h.inst:include/localcharset.h.in"
20365
20366cat >confcache <<\_ACEOF
20367# This file is a shell script that caches the results of configure
20368# tests run on this system so they can be shared between configure
20369# scripts and configure runs, see configure's option --config-cache.
20370# It is not useful on other systems.  If it contains results you don't
20371# want to keep, you may remove or edit it.
20372#
20373# config.status only pays attention to the cache file if you give it
20374# the --recheck option to rerun configure.
20375#
20376# `ac_cv_env_foo' variables (set or unset) will be overridden when
20377# loading this file, other *unset* `ac_cv_foo' will be assigned the
20378# following values.
20379
20380_ACEOF
20381
20382# The following way of writing the cache mishandles newlines in values,
20383# but we know of no workaround that is simple, portable, and efficient.
20384# So, we kill variables containing newlines.
20385# Ultrix sh set writes to stderr and can't be redirected directly,
20386# and sets the high bit in the cache file unless we assign to the vars.
20387(
20388  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20389    eval ac_val=\$$ac_var
20390    case $ac_val in #(
20391    *${as_nl}*)
20392      case $ac_var in #(
20393      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20394echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20395      esac
20396      case $ac_var in #(
20397      _ | IFS | as_nl) ;; #(
20398      *) $as_unset $ac_var ;;
20399      esac ;;
20400    esac
20401  done
20402
20403  (set) 2>&1 |
20404    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20405    *${as_nl}ac_space=\ *)
20406      # `set' does not quote correctly, so add quotes (double-quote
20407      # substitution turns \\\\ into \\, and sed turns \\ into \).
20408      sed -n \
20409	"s/'/'\\\\''/g;
20410	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20411      ;; #(
20412    *)
20413      # `set' quotes correctly as required by POSIX, so do not add quotes.
20414      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20415      ;;
20416    esac |
20417    sort
20418) |
20419  sed '
20420     /^ac_cv_env_/b end
20421     t clear
20422     :clear
20423     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20424     t end
20425     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20426     :end' >>confcache
20427if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20428  if test -w "$cache_file"; then
20429    test "x$cache_file" != "x/dev/null" &&
20430      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20431echo "$as_me: updating cache $cache_file" >&6;}
20432    cat confcache >$cache_file
20433  else
20434    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20435echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20436  fi
20437fi
20438rm -f confcache
20439
20440test "x$prefix" = xNONE && prefix=$ac_default_prefix
20441# Let make expand exec_prefix.
20442test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20443
20444DEFS=-DHAVE_CONFIG_H
20445
20446ac_libobjs=
20447ac_ltlibobjs=
20448for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20449  # 1. Remove the extension, and $U if already installed.
20450  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20451  ac_i=`echo "$ac_i" | sed "$ac_script"`
20452  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20453  #    will be set to the directory where LIBOBJS objects are built.
20454  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20455  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20456done
20457LIBOBJS=$ac_libobjs
20458
20459LTLIBOBJS=$ac_ltlibobjs
20460
20461
20462
20463: ${CONFIG_STATUS=./config.status}
20464ac_clean_files_save=$ac_clean_files
20465ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20466{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20467echo "$as_me: creating $CONFIG_STATUS" >&6;}
20468cat >$CONFIG_STATUS <<_ACEOF
20469#! $SHELL
20470# Generated by $as_me.
20471# Run this file to recreate the current configuration.
20472# Compiler output produced by configure, useful for debugging
20473# configure, is in config.log if it exists.
20474
20475debug=false
20476ac_cs_recheck=false
20477ac_cs_silent=false
20478SHELL=\${CONFIG_SHELL-$SHELL}
20479_ACEOF
20480
20481cat >>$CONFIG_STATUS <<\_ACEOF
20482## --------------------- ##
20483## M4sh Initialization.  ##
20484## --------------------- ##
20485
20486# Be Bourne compatible
20487if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20488  emulate sh
20489  NULLCMD=:
20490  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20491  # is contrary to our usage.  Disable this feature.
20492  alias -g '${1+"$@"}'='"$@"'
20493  setopt NO_GLOB_SUBST
20494else
20495  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20496fi
20497BIN_SH=xpg4; export BIN_SH # for Tru64
20498DUALCASE=1; export DUALCASE # for MKS sh
20499
20500
20501# PATH needs CR
20502# Avoid depending upon Character Ranges.
20503as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20504as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20505as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20506as_cr_digits='0123456789'
20507as_cr_alnum=$as_cr_Letters$as_cr_digits
20508
20509# The user is always right.
20510if test "${PATH_SEPARATOR+set}" != set; then
20511  echo "#! /bin/sh" >conf$$.sh
20512  echo  "exit 0"   >>conf$$.sh
20513  chmod +x conf$$.sh
20514  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20515    PATH_SEPARATOR=';'
20516  else
20517    PATH_SEPARATOR=:
20518  fi
20519  rm -f conf$$.sh
20520fi
20521
20522# Support unset when possible.
20523if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20524  as_unset=unset
20525else
20526  as_unset=false
20527fi
20528
20529
20530# IFS
20531# We need space, tab and new line, in precisely that order.  Quoting is
20532# there to prevent editors from complaining about space-tab.
20533# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20534# splitting by setting IFS to empty value.)
20535as_nl='
20536'
20537IFS=" ""	$as_nl"
20538
20539# Find who we are.  Look in the path if we contain no directory separator.
20540case $0 in
20541  *[\\/]* ) as_myself=$0 ;;
20542  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20543for as_dir in $PATH
20544do
20545  IFS=$as_save_IFS
20546  test -z "$as_dir" && as_dir=.
20547  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20548done
20549IFS=$as_save_IFS
20550
20551     ;;
20552esac
20553# We did not find ourselves, most probably we were run as `sh COMMAND'
20554# in which case we are not to be found in the path.
20555if test "x$as_myself" = x; then
20556  as_myself=$0
20557fi
20558if test ! -f "$as_myself"; then
20559  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20560  { (exit 1); exit 1; }
20561fi
20562
20563# Work around bugs in pre-3.0 UWIN ksh.
20564for as_var in ENV MAIL MAILPATH
20565do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20566done
20567PS1='$ '
20568PS2='> '
20569PS4='+ '
20570
20571# NLS nuisances.
20572for as_var in \
20573  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20574  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20575  LC_TELEPHONE LC_TIME
20576do
20577  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20578    eval $as_var=C; export $as_var
20579  else
20580    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20581  fi
20582done
20583
20584# Required to use basename.
20585if expr a : '\(a\)' >/dev/null 2>&1 &&
20586   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20587  as_expr=expr
20588else
20589  as_expr=false
20590fi
20591
20592if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20593  as_basename=basename
20594else
20595  as_basename=false
20596fi
20597
20598
20599# Name of the executable.
20600as_me=`$as_basename -- "$0" ||
20601$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20602	 X"$0" : 'X\(//\)$' \| \
20603	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20604echo X/"$0" |
20605    sed '/^.*\/\([^/][^/]*\)\/*$/{
20606	    s//\1/
20607	    q
20608	  }
20609	  /^X\/\(\/\/\)$/{
20610	    s//\1/
20611	    q
20612	  }
20613	  /^X\/\(\/\).*/{
20614	    s//\1/
20615	    q
20616	  }
20617	  s/.*/./; q'`
20618
20619# CDPATH.
20620$as_unset CDPATH
20621
20622
20623
20624  as_lineno_1=$LINENO
20625  as_lineno_2=$LINENO
20626  test "x$as_lineno_1" != "x$as_lineno_2" &&
20627  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20628
20629  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20630  # uniformly replaced by the line number.  The first 'sed' inserts a
20631  # line-number line after each line using $LINENO; the second 'sed'
20632  # does the real work.  The second script uses 'N' to pair each
20633  # line-number line with the line containing $LINENO, and appends
20634  # trailing '-' during substitution so that $LINENO is not a special
20635  # case at line end.
20636  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20637  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20638  # E. McMahon (1931-1989) for sed's syntax.  :-)
20639  sed -n '
20640    p
20641    /[$]LINENO/=
20642  ' <$as_myself |
20643    sed '
20644      s/[$]LINENO.*/&-/
20645      t lineno
20646      b
20647      :lineno
20648      N
20649      :loop
20650      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20651      t loop
20652      s/-\n.*//
20653    ' >$as_me.lineno &&
20654  chmod +x "$as_me.lineno" ||
20655    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20656   { (exit 1); exit 1; }; }
20657
20658  # Don't try to exec as it changes $[0], causing all sort of problems
20659  # (the dirname of $[0] is not the place where we might find the
20660  # original and so on.  Autoconf is especially sensitive to this).
20661  . "./$as_me.lineno"
20662  # Exit status is that of the last command.
20663  exit
20664}
20665
20666
20667if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20668  as_dirname=dirname
20669else
20670  as_dirname=false
20671fi
20672
20673ECHO_C= ECHO_N= ECHO_T=
20674case `echo -n x` in
20675-n*)
20676  case `echo 'x\c'` in
20677  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20678  *)   ECHO_C='\c';;
20679  esac;;
20680*)
20681  ECHO_N='-n';;
20682esac
20683
20684if expr a : '\(a\)' >/dev/null 2>&1 &&
20685   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20686  as_expr=expr
20687else
20688  as_expr=false
20689fi
20690
20691rm -f conf$$ conf$$.exe conf$$.file
20692if test -d conf$$.dir; then
20693  rm -f conf$$.dir/conf$$.file
20694else
20695  rm -f conf$$.dir
20696  mkdir conf$$.dir
20697fi
20698echo >conf$$.file
20699if ln -s conf$$.file conf$$ 2>/dev/null; then
20700  as_ln_s='ln -s'
20701  # ... but there are two gotchas:
20702  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20703  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20704  # In both cases, we have to default to `cp -p'.
20705  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20706    as_ln_s='cp -p'
20707elif ln conf$$.file conf$$ 2>/dev/null; then
20708  as_ln_s=ln
20709else
20710  as_ln_s='cp -p'
20711fi
20712rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20713rmdir conf$$.dir 2>/dev/null
20714
20715if mkdir -p . 2>/dev/null; then
20716  as_mkdir_p=:
20717else
20718  test -d ./-p && rmdir ./-p
20719  as_mkdir_p=false
20720fi
20721
20722# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
20723# systems may use methods other than mode bits to determine executability.
20724cat >conf$$.file <<_ASEOF
20725#! /bin/sh
20726exit 0
20727_ASEOF
20728chmod +x conf$$.file
20729if test -x conf$$.file >/dev/null 2>&1; then
20730  as_executable_p="test -x"
20731else
20732  as_executable_p=:
20733fi
20734rm -f conf$$.file
20735
20736# Sed expression to map a string onto a valid CPP name.
20737as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20738
20739# Sed expression to map a string onto a valid variable name.
20740as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20741
20742
20743exec 6>&1
20744
20745# Save the log message, to keep $[0] and so on meaningful, and to
20746# report actual input values of CONFIG_FILES etc. instead of their
20747# values after options handling.
20748ac_log="
20749This file was extended by $as_me, which was
20750generated by GNU Autoconf 2.60.  Invocation command line was
20751
20752  CONFIG_FILES    = $CONFIG_FILES
20753  CONFIG_HEADERS  = $CONFIG_HEADERS
20754  CONFIG_LINKS    = $CONFIG_LINKS
20755  CONFIG_COMMANDS = $CONFIG_COMMANDS
20756  $ $0 $@
20757
20758on `(hostname || uname -n) 2>/dev/null | sed 1q`
20759"
20760
20761_ACEOF
20762
20763cat >>$CONFIG_STATUS <<_ACEOF
20764# Files that config.status was made for.
20765config_files="$ac_config_files"
20766config_headers="$ac_config_headers"
20767
20768_ACEOF
20769
20770cat >>$CONFIG_STATUS <<\_ACEOF
20771ac_cs_usage="\
20772\`$as_me' instantiates files from templates according to the
20773current configuration.
20774
20775Usage: $0 [OPTIONS] [FILE]...
20776
20777  -h, --help       print this help, then exit
20778  -V, --version    print version number, then exit
20779  -q, --quiet      do not print progress messages
20780  -d, --debug      don't remove temporary files
20781      --recheck    update $as_me by reconfiguring in the same conditions
20782  --file=FILE[:TEMPLATE]
20783		   instantiate the configuration file FILE
20784  --header=FILE[:TEMPLATE]
20785		   instantiate the configuration header FILE
20786
20787Configuration files:
20788$config_files
20789
20790Configuration headers:
20791$config_headers
20792
20793Report bugs to <bug-autoconf@gnu.org>."
20794
20795_ACEOF
20796cat >>$CONFIG_STATUS <<_ACEOF
20797ac_cs_version="\\
20798config.status
20799configured by $0, generated by GNU Autoconf 2.60,
20800  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20801
20802Copyright (C) 2006 Free Software Foundation, Inc.
20803This config.status script is free software; the Free Software Foundation
20804gives unlimited permission to copy, distribute and modify it."
20805
20806ac_pwd='$ac_pwd'
20807srcdir='$srcdir'
20808INSTALL='$INSTALL'
20809_ACEOF
20810
20811cat >>$CONFIG_STATUS <<\_ACEOF
20812# If no file are specified by the user, then we need to provide default
20813# value.  By we need to know if files were specified by the user.
20814ac_need_defaults=:
20815while test $# != 0
20816do
20817  case $1 in
20818  --*=*)
20819    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20820    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20821    ac_shift=:
20822    ;;
20823  *)
20824    ac_option=$1
20825    ac_optarg=$2
20826    ac_shift=shift
20827    ;;
20828  esac
20829
20830  case $ac_option in
20831  # Handling of the options.
20832  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20833    ac_cs_recheck=: ;;
20834  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20835    echo "$ac_cs_version"; exit ;;
20836  --debug | --debu | --deb | --de | --d | -d )
20837    debug=: ;;
20838  --file | --fil | --fi | --f )
20839    $ac_shift
20840    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20841    ac_need_defaults=false;;
20842  --header | --heade | --head | --hea )
20843    $ac_shift
20844    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20845    ac_need_defaults=false;;
20846  --he | --h)
20847    # Conflict between --help and --header
20848    { echo "$as_me: error: ambiguous option: $1
20849Try \`$0 --help' for more information." >&2
20850   { (exit 1); exit 1; }; };;
20851  --help | --hel | -h )
20852    echo "$ac_cs_usage"; exit ;;
20853  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20854  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20855    ac_cs_silent=: ;;
20856
20857  # This is an error.
20858  -*) { echo "$as_me: error: unrecognized option: $1
20859Try \`$0 --help' for more information." >&2
20860   { (exit 1); exit 1; }; } ;;
20861
20862  *) ac_config_targets="$ac_config_targets $1"
20863     ac_need_defaults=false ;;
20864
20865  esac
20866  shift
20867done
20868
20869ac_configure_extra_args=
20870
20871if $ac_cs_silent; then
20872  exec 6>/dev/null
20873  ac_configure_extra_args="$ac_configure_extra_args --silent"
20874fi
20875
20876_ACEOF
20877cat >>$CONFIG_STATUS <<_ACEOF
20878if \$ac_cs_recheck; then
20879  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20880  CONFIG_SHELL=$SHELL
20881  export CONFIG_SHELL
20882  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20883fi
20884
20885_ACEOF
20886cat >>$CONFIG_STATUS <<\_ACEOF
20887exec 5>>config.log
20888{
20889  echo
20890  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20891## Running $as_me. ##
20892_ASBOX
20893  echo "$ac_log"
20894} >&5
20895
20896_ACEOF
20897cat >>$CONFIG_STATUS <<_ACEOF
20898_ACEOF
20899
20900cat >>$CONFIG_STATUS <<\_ACEOF
20901
20902# Handling of arguments.
20903for ac_config_target in $ac_config_targets
20904do
20905  case $ac_config_target in
20906    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20907    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20908    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20909    "include/localcharset.h") CONFIG_FILES="$CONFIG_FILES include/localcharset.h:include/localcharset.h.build.in" ;;
20910    "include/localcharset.h.inst") CONFIG_FILES="$CONFIG_FILES include/localcharset.h.inst:include/localcharset.h.in" ;;
20911
20912  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20913echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20914   { (exit 1); exit 1; }; };;
20915  esac
20916done
20917
20918
20919# If the user did not use the arguments to specify the items to instantiate,
20920# then the envvar interface is used.  Set only those that are not.
20921# We use the long form for the default assignment because of an extremely
20922# bizarre bug on SunOS 4.1.3.
20923if $ac_need_defaults; then
20924  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20925  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20926fi
20927
20928# Have a temporary directory for convenience.  Make it in the build tree
20929# simply because there is no reason against having it here, and in addition,
20930# creating and moving files from /tmp can sometimes cause problems.
20931# Hook for its removal unless debugging.
20932# Note that there is a small window in which the directory will not be cleaned:
20933# after its creation but before its name has been assigned to `$tmp'.
20934$debug ||
20935{
20936  tmp=
20937  trap 'exit_status=$?
20938  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20939' 0
20940  trap '{ (exit 1); exit 1; }' 1 2 13 15
20941}
20942# Create a (secure) tmp directory for tmp files.
20943
20944{
20945  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20946  test -n "$tmp" && test -d "$tmp"
20947}  ||
20948{
20949  tmp=./conf$$-$RANDOM
20950  (umask 077 && mkdir "$tmp")
20951} ||
20952{
20953   echo "$me: cannot create a temporary directory in ." >&2
20954   { (exit 1); exit 1; }
20955}
20956
20957#
20958# Set up the sed scripts for CONFIG_FILES section.
20959#
20960
20961# No need to generate the scripts if there are no CONFIG_FILES.
20962# This happens for instance when ./config.status config.h
20963if test -n "$CONFIG_FILES"; then
20964
20965_ACEOF
20966
20967
20968
20969ac_delim='%!_!# '
20970for ac_last_try in false false false false false :; do
20971  cat >conf$$subs.sed <<_ACEOF
20972SHELL!$SHELL$ac_delim
20973PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20974PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20975PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20976PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20977PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20978PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20979exec_prefix!$exec_prefix$ac_delim
20980prefix!$prefix$ac_delim
20981program_transform_name!$program_transform_name$ac_delim
20982bindir!$bindir$ac_delim
20983sbindir!$sbindir$ac_delim
20984libexecdir!$libexecdir$ac_delim
20985datarootdir!$datarootdir$ac_delim
20986datadir!$datadir$ac_delim
20987sysconfdir!$sysconfdir$ac_delim
20988sharedstatedir!$sharedstatedir$ac_delim
20989localstatedir!$localstatedir$ac_delim
20990includedir!$includedir$ac_delim
20991oldincludedir!$oldincludedir$ac_delim
20992docdir!$docdir$ac_delim
20993infodir!$infodir$ac_delim
20994htmldir!$htmldir$ac_delim
20995dvidir!$dvidir$ac_delim
20996pdfdir!$pdfdir$ac_delim
20997psdir!$psdir$ac_delim
20998libdir!$libdir$ac_delim
20999localedir!$localedir$ac_delim
21000mandir!$mandir$ac_delim
21001DEFS!$DEFS$ac_delim
21002ECHO_C!$ECHO_C$ac_delim
21003ECHO_N!$ECHO_N$ac_delim
21004ECHO_T!$ECHO_T$ac_delim
21005LIBS!$LIBS$ac_delim
21006build_alias!$build_alias$ac_delim
21007host_alias!$host_alias$ac_delim
21008target_alias!$target_alias$ac_delim
21009SET_MAKE!$SET_MAKE$ac_delim
21010PACKAGE!$PACKAGE$ac_delim
21011VERSION!$VERSION$ac_delim
21012CC!$CC$ac_delim
21013CFLAGS!$CFLAGS$ac_delim
21014LDFLAGS!$LDFLAGS$ac_delim
21015CPPFLAGS!$CPPFLAGS$ac_delim
21016ac_ct_CC!$ac_ct_CC$ac_delim
21017EXEEXT!$EXEEXT$ac_delim
21018OBJEXT!$OBJEXT$ac_delim
21019CPP!$CPP$ac_delim
21020GREP!$GREP$ac_delim
21021EGREP!$EGREP$ac_delim
21022INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21023INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21024INSTALL_DATA!$INSTALL_DATA$ac_delim
21025build!$build$ac_delim
21026build_cpu!$build_cpu$ac_delim
21027build_vendor!$build_vendor$ac_delim
21028build_os!$build_os$ac_delim
21029host!$host$ac_delim
21030host_cpu!$host_cpu$ac_delim
21031host_vendor!$host_vendor$ac_delim
21032host_os!$host_os$ac_delim
21033RELOCATABLE!$RELOCATABLE$ac_delim
21034LN_S!$LN_S$ac_delim
21035ECHO!$ECHO$ac_delim
21036AR!$AR$ac_delim
21037RANLIB!$RANLIB$ac_delim
21038STRIP!$STRIP$ac_delim
21039DLLTOOL!$DLLTOOL$ac_delim
21040AS!$AS$ac_delim
21041OBJDUMP!$OBJDUMP$ac_delim
21042CXX!$CXX$ac_delim
21043CXXFLAGS!$CXXFLAGS$ac_delim
21044ac_ct_CXX!$ac_ct_CXX$ac_delim
21045CXXCPP!$CXXCPP$ac_delim
21046F77!$F77$ac_delim
21047FFLAGS!$FFLAGS$ac_delim
21048ac_ct_F77!$ac_ct_F77$ac_delim
21049LIBTOOL!$LIBTOOL$ac_delim
21050CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
21051HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
21052GLIBC21!$GLIBC21$ac_delim
21053LIBOBJS!$LIBOBJS$ac_delim
21054LTLIBOBJS!$LTLIBOBJS$ac_delim
21055_ACEOF
21056
21057  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
21058    break
21059  elif $ac_last_try; then
21060    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21061echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21062   { (exit 1); exit 1; }; }
21063  else
21064    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21065  fi
21066done
21067
21068ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21069if test -n "$ac_eof"; then
21070  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21071  ac_eof=`expr $ac_eof + 1`
21072fi
21073
21074cat >>$CONFIG_STATUS <<_ACEOF
21075cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21076/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21077_ACEOF
21078sed '
21079s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21080s/^/s,@/; s/!/@,|#_!!_#|/
21081:n
21082t n
21083s/'"$ac_delim"'$/,g/; t
21084s/$/\\/; p
21085N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21086' >>$CONFIG_STATUS <conf$$subs.sed
21087rm -f conf$$subs.sed
21088cat >>$CONFIG_STATUS <<_ACEOF
21089:end
21090s/|#_!!_#|//g
21091CEOF$ac_eof
21092_ACEOF
21093
21094
21095# VPATH may cause trouble with some makes, so we remove $(srcdir),
21096# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21097# trailing colons and then remove the whole line if VPATH becomes empty
21098# (actually we leave an empty line to preserve line numbers).
21099if test "x$srcdir" = x.; then
21100  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21101s/:*\$(srcdir):*/:/
21102s/:*\${srcdir}:*/:/
21103s/:*@srcdir@:*/:/
21104s/^\([^=]*=[	 ]*\):*/\1/
21105s/:*$//
21106s/^[^=]*=[	 ]*$//
21107}'
21108fi
21109
21110cat >>$CONFIG_STATUS <<\_ACEOF
21111fi # test -n "$CONFIG_FILES"
21112
21113
21114for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
21115do
21116  case $ac_tag in
21117  :[FHLC]) ac_mode=$ac_tag; continue;;
21118  esac
21119  case $ac_mode$ac_tag in
21120  :[FHL]*:*);;
21121  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21122echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21123   { (exit 1); exit 1; }; };;
21124  :[FH]-) ac_tag=-:-;;
21125  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21126  esac
21127  ac_save_IFS=$IFS
21128  IFS=:
21129  set x $ac_tag
21130  IFS=$ac_save_IFS
21131  shift
21132  ac_file=$1
21133  shift
21134
21135  case $ac_mode in
21136  :L) ac_source=$1;;
21137  :[FH])
21138    ac_file_inputs=
21139    for ac_f
21140    do
21141      case $ac_f in
21142      -) ac_f="$tmp/stdin";;
21143      *) # Look for the file first in the build tree, then in the source tree
21144	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21145	 # because $ac_f cannot contain `:'.
21146	 test -f "$ac_f" ||
21147	   case $ac_f in
21148	   [\\/$]*) false;;
21149	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21150	   esac ||
21151	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21152echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21153   { (exit 1); exit 1; }; };;
21154      esac
21155      ac_file_inputs="$ac_file_inputs $ac_f"
21156    done
21157
21158    # Let's still pretend it is `configure' which instantiates (i.e., don't
21159    # use $as_me), people would be surprised to read:
21160    #    /* config.h.  Generated by config.status.  */
21161    configure_input="Generated from "`IFS=:
21162	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21163    if test x"$ac_file" != x-; then
21164      configure_input="$ac_file.  $configure_input"
21165      { echo "$as_me:$LINENO: creating $ac_file" >&5
21166echo "$as_me: creating $ac_file" >&6;}
21167    fi
21168
21169    case $ac_tag in
21170    *:-:* | *:-) cat >"$tmp/stdin";;
21171    esac
21172    ;;
21173  esac
21174
21175  ac_dir=`$as_dirname -- "$ac_file" ||
21176$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21177	 X"$ac_file" : 'X\(//\)[^/]' \| \
21178	 X"$ac_file" : 'X\(//\)$' \| \
21179	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21180echo X"$ac_file" |
21181    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21182	    s//\1/
21183	    q
21184	  }
21185	  /^X\(\/\/\)[^/].*/{
21186	    s//\1/
21187	    q
21188	  }
21189	  /^X\(\/\/\)$/{
21190	    s//\1/
21191	    q
21192	  }
21193	  /^X\(\/\).*/{
21194	    s//\1/
21195	    q
21196	  }
21197	  s/.*/./; q'`
21198  { as_dir="$ac_dir"
21199  case $as_dir in #(
21200  -*) as_dir=./$as_dir;;
21201  esac
21202  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21203    as_dirs=
21204    while :; do
21205      case $as_dir in #(
21206      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21207      *) as_qdir=$as_dir;;
21208      esac
21209      as_dirs="'$as_qdir' $as_dirs"
21210      as_dir=`$as_dirname -- "$as_dir" ||
21211$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21212	 X"$as_dir" : 'X\(//\)[^/]' \| \
21213	 X"$as_dir" : 'X\(//\)$' \| \
21214	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21215echo X"$as_dir" |
21216    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21217	    s//\1/
21218	    q
21219	  }
21220	  /^X\(\/\/\)[^/].*/{
21221	    s//\1/
21222	    q
21223	  }
21224	  /^X\(\/\/\)$/{
21225	    s//\1/
21226	    q
21227	  }
21228	  /^X\(\/\).*/{
21229	    s//\1/
21230	    q
21231	  }
21232	  s/.*/./; q'`
21233      test -d "$as_dir" && break
21234    done
21235    test -z "$as_dirs" || eval "mkdir $as_dirs"
21236  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21237echo "$as_me: error: cannot create directory $as_dir" >&2;}
21238   { (exit 1); exit 1; }; }; }
21239  ac_builddir=.
21240
21241case "$ac_dir" in
21242.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21243*)
21244  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21245  # A ".." for each directory in $ac_dir_suffix.
21246  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21247  case $ac_top_builddir_sub in
21248  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21249  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21250  esac ;;
21251esac
21252ac_abs_top_builddir=$ac_pwd
21253ac_abs_builddir=$ac_pwd$ac_dir_suffix
21254# for backward compatibility:
21255ac_top_builddir=$ac_top_build_prefix
21256
21257case $srcdir in
21258  .)  # We are building in place.
21259    ac_srcdir=.
21260    ac_top_srcdir=$ac_top_builddir_sub
21261    ac_abs_top_srcdir=$ac_pwd ;;
21262  [\\/]* | ?:[\\/]* )  # Absolute name.
21263    ac_srcdir=$srcdir$ac_dir_suffix;
21264    ac_top_srcdir=$srcdir
21265    ac_abs_top_srcdir=$srcdir ;;
21266  *) # Relative name.
21267    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21268    ac_top_srcdir=$ac_top_build_prefix$srcdir
21269    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21270esac
21271ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21272
21273
21274  case $ac_mode in
21275  :F)
21276  #
21277  # CONFIG_FILE
21278  #
21279
21280  case $INSTALL in
21281  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21282  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21283  esac
21284_ACEOF
21285
21286cat >>$CONFIG_STATUS <<\_ACEOF
21287# If the template does not know about datarootdir, expand it.
21288# FIXME: This hack should be removed a few years after 2.60.
21289ac_datarootdir_hack=; ac_datarootdir_seen=
21290
21291case `sed -n '/datarootdir/ {
21292  p
21293  q
21294}
21295/@datadir@/p
21296/@docdir@/p
21297/@infodir@/p
21298/@localedir@/p
21299/@mandir@/p
21300' $ac_file_inputs` in
21301*datarootdir*) ac_datarootdir_seen=yes;;
21302*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21303  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21304echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21305_ACEOF
21306cat >>$CONFIG_STATUS <<_ACEOF
21307  ac_datarootdir_hack='
21308  s&@datadir@&$datadir&g
21309  s&@docdir@&$docdir&g
21310  s&@infodir@&$infodir&g
21311  s&@localedir@&$localedir&g
21312  s&@mandir@&$mandir&g
21313    s&\\\${datarootdir}&$datarootdir&g' ;;
21314esac
21315_ACEOF
21316
21317# Neutralize VPATH when `$srcdir' = `.'.
21318# Shell code in configure.ac might set extrasub.
21319# FIXME: do we really want to maintain this feature?
21320cat >>$CONFIG_STATUS <<_ACEOF
21321  sed "$ac_vpsub
21322$extrasub
21323_ACEOF
21324cat >>$CONFIG_STATUS <<\_ACEOF
21325:t
21326/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21327s&@configure_input@&$configure_input&;t t
21328s&@top_builddir@&$ac_top_builddir_sub&;t t
21329s&@srcdir@&$ac_srcdir&;t t
21330s&@abs_srcdir@&$ac_abs_srcdir&;t t
21331s&@top_srcdir@&$ac_top_srcdir&;t t
21332s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21333s&@builddir@&$ac_builddir&;t t
21334s&@abs_builddir@&$ac_abs_builddir&;t t
21335s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21336s&@INSTALL@&$ac_INSTALL&;t t
21337$ac_datarootdir_hack
21338" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
21339
21340test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21341  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21342  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21343  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21344which seems to be undefined.  Please make sure it is defined." >&5
21345echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21346which seems to be undefined.  Please make sure it is defined." >&2;}
21347
21348  rm -f "$tmp/stdin"
21349  case $ac_file in
21350  -) cat "$tmp/out"; rm -f "$tmp/out";;
21351  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21352  esac
21353 ;;
21354  :H)
21355  #
21356  # CONFIG_HEADER
21357  #
21358_ACEOF
21359
21360# Transform confdefs.h into a sed script `conftest.defines', that
21361# substitutes the proper values into config.h.in to produce config.h.
21362rm -f conftest.defines conftest.tail
21363# First, append a space to every undef/define line, to ease matching.
21364echo 's/$/ /' >conftest.defines
21365# Then, protect against being on the right side of a sed subst, or in
21366# an unquoted here document, in config.status.  If some macros were
21367# called several times there might be several #defines for the same
21368# symbol, which is useless.  But do not sort them, since the last
21369# AC_DEFINE must be honored.
21370ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21371# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21372# NAME is the cpp macro being defined, VALUE is the value it is being given.
21373# PARAMS is the parameter list in the macro definition--in most cases, it's
21374# just an empty string.
21375ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
21376ac_dB='\\)[	 (].*,\\1define\\2'
21377ac_dC=' '
21378ac_dD=' ,'
21379
21380uniq confdefs.h |
21381  sed -n '
21382	t rset
21383	:rset
21384	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
21385	t ok
21386	d
21387	:ok
21388	s/[\\&,]/\\&/g
21389	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21390	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21391  ' >>conftest.defines
21392
21393# Remove the space that was appended to ease matching.
21394# Then replace #undef with comments.  This is necessary, for
21395# example, in the case of _POSIX_SOURCE, which is predefined and required
21396# on some systems where configure will not decide to define it.
21397# (The regexp can be short, since the line contains either #define or #undef.)
21398echo 's/ $//
21399s,^[	 #]*u.*,/* & */,' >>conftest.defines
21400
21401# Break up conftest.defines:
21402ac_max_sed_lines=50
21403
21404# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21405# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21406# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21407# et cetera.
21408ac_in='$ac_file_inputs'
21409ac_out='"$tmp/out1"'
21410ac_nxt='"$tmp/out2"'
21411
21412while :
21413do
21414  # Write a here document:
21415    cat >>$CONFIG_STATUS <<_ACEOF
21416    # First, check the format of the line:
21417    cat >"\$tmp/defines.sed" <<\\CEOF
21418/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
21419/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
21420b
21421:def
21422_ACEOF
21423  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21424  echo 'CEOF
21425    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21426  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21427  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21428  grep . conftest.tail >/dev/null || break
21429  rm -f conftest.defines
21430  mv conftest.tail conftest.defines
21431done
21432rm -f conftest.defines conftest.tail
21433
21434echo "ac_result=$ac_in" >>$CONFIG_STATUS
21435cat >>$CONFIG_STATUS <<\_ACEOF
21436  if test x"$ac_file" != x-; then
21437    echo "/* $configure_input  */" >"$tmp/config.h"
21438    cat "$ac_result" >>"$tmp/config.h"
21439    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21440      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21441echo "$as_me: $ac_file is unchanged" >&6;}
21442    else
21443      rm -f $ac_file
21444      mv "$tmp/config.h" $ac_file
21445    fi
21446  else
21447    echo "/* $configure_input  */"
21448    cat "$ac_result"
21449  fi
21450  rm -f "$tmp/out12"
21451 ;;
21452
21453
21454  esac
21455
21456done # for ac_tag
21457
21458
21459{ (exit 0); exit 0; }
21460_ACEOF
21461chmod +x $CONFIG_STATUS
21462ac_clean_files=$ac_clean_files_save
21463
21464
21465# configure is writing to config.log, and then calls config.status.
21466# config.status does its own redirection, appending to config.log.
21467# Unfortunately, on DOS this fails, as config.log is still kept open
21468# by configure, so config.status won't be able to write to it; its
21469# output is simply discarded.  So we exec the FD to /dev/null,
21470# effectively closing config.log, so it can be properly (re)opened and
21471# appended to by config.status.  When coming back to configure, we
21472# need to make the FD available again.
21473if test "$no_create" != yes; then
21474  ac_cs_success=:
21475  ac_config_status_args=
21476  test "$silent" = yes &&
21477    ac_config_status_args="$ac_config_status_args --quiet"
21478  exec 5>/dev/null
21479  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21480  exec 5>>config.log
21481  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21482  # would make configure fail if this is the last instruction.
21483  $ac_cs_success || { (exit 1); exit 1; }
21484fi
21485
21486