1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
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 more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259	       as_have_required=yes
260	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534	case $1 in
535        -*)set "./$1";;
536	esac;
537	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538	???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$ECHO in
557X*--fallback-echo)
558  # Remove one level of quotation (which was required for Make).
559  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560  ;;
561esac
562
563echo=${ECHO-echo}
564if test "X$1" = X--no-reexec; then
565  # Discard the --no-reexec flag, and continue.
566  shift
567elif test "X$1" = X--fallback-echo; then
568  # Avoid inline document here, it may be left over
569  :
570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571  # Yippee, $echo works!
572  :
573else
574  # Restart under the correct shell.
575  exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579  # used as fallback echo
580  shift
581  cat <<EOF
582$*
583EOF
584  exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591if test -z "$ECHO"; then
592if test "X${echo_test_string+set}" != Xset; then
593# find a string as large as possible, as long as the shell can cope with it
594  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597       echo_test_string=`eval $cmd` &&
598       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599    then
600      break
601    fi
602  done
603fi
604
605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607   test "X$echo_testing_string" = "X$echo_test_string"; then
608  :
609else
610  # The Solaris, AIX, and Digital Unix default echo programs unquote
611  # backslashes.  This makes it impossible to quote backslashes using
612  #   echo "$something" | sed 's/\\/\\\\/g'
613  #
614  # So, first we look for a working echo in the user's PATH.
615
616  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617  for dir in $PATH /usr/ucb; do
618    IFS="$lt_save_ifs"
619    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622       test "X$echo_testing_string" = "X$echo_test_string"; then
623      echo="$dir/echo"
624      break
625    fi
626  done
627  IFS="$lt_save_ifs"
628
629  if test "X$echo" = Xecho; then
630    # We didn't find a better echo, so look for alternatives.
631    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633       test "X$echo_testing_string" = "X$echo_test_string"; then
634      # This shell has a builtin print -r that does the trick.
635      echo='print -r'
636    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637	 test "X$CONFIG_SHELL" != X/bin/ksh; then
638      # If we have ksh, try running configure again with it.
639      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640      export ORIGINAL_CONFIG_SHELL
641      CONFIG_SHELL=/bin/ksh
642      export CONFIG_SHELL
643      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644    else
645      # Try using printf.
646      echo='printf %s\n'
647      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649	 test "X$echo_testing_string" = "X$echo_test_string"; then
650	# Cool, printf works
651	:
652      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653	   test "X$echo_testing_string" = 'X\t' &&
654	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655	   test "X$echo_testing_string" = "X$echo_test_string"; then
656	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657	export CONFIG_SHELL
658	SHELL="$CONFIG_SHELL"
659	export SHELL
660	echo="$CONFIG_SHELL $0 --fallback-echo"
661      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662	   test "X$echo_testing_string" = 'X\t' &&
663	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664	   test "X$echo_testing_string" = "X$echo_test_string"; then
665	echo="$CONFIG_SHELL $0 --fallback-echo"
666      else
667	# maybe with a smaller string...
668	prev=:
669
670	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672	  then
673	    break
674	  fi
675	  prev="$cmd"
676	done
677
678	if test "$prev" != 'sed 50q "$0"'; then
679	  echo_test_string=`eval $prev`
680	  export echo_test_string
681	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682	else
683	  # Oops.  We lost completely, so just stick with echo.
684	  echo=echo
685	fi
686      fi
687    fi
688  fi
689fi
690fi
691
692# Copy echo and quote the copy suitably for passing to libtool from
693# the Makefile, instead of quoting the original, which is used later.
694ECHO=$echo
695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697fi
698
699
700
701
702tagnames=${tagnames+${tagnames},}CXX
703
704tagnames=${tagnames+${tagnames},}F77
705
706exec 7<&0 </dev/null 6>&1
707
708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713#
714# Initializations.
715#
716ac_default_prefix=/usr/local
717ac_clean_files=
718ac_config_libobj_dir=.
719LIBOBJS=
720cross_compiling=no
721subdirs=
722MFLAGS=
723MAKEFLAGS=
724SHELL=${CONFIG_SHELL-/bin/sh}
725
726# Identity of this package.
727PACKAGE_NAME=
728PACKAGE_TARNAME=
729PACKAGE_VERSION=
730PACKAGE_STRING=
731PACKAGE_BUGREPORT=
732
733ac_unique_file="cgi.c"
734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
737#ifdef HAVE_SYS_TYPES_H
738# include <sys/types.h>
739#endif
740#ifdef HAVE_SYS_STAT_H
741# include <sys/stat.h>
742#endif
743#ifdef STDC_HEADERS
744# include <stdlib.h>
745# include <stddef.h>
746#else
747# ifdef HAVE_STDLIB_H
748#  include <stdlib.h>
749# endif
750#endif
751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753#  include <memory.h>
754# endif
755# include <string.h>
756#endif
757#ifdef HAVE_STRINGS_H
758# include <strings.h>
759#endif
760#ifdef HAVE_INTTYPES_H
761# include <inttypes.h>
762#endif
763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
767# include <unistd.h>
768#endif"
769
770ac_subst_vars='SHELL
771PATH_SEPARATOR
772PACKAGE_NAME
773PACKAGE_TARNAME
774PACKAGE_VERSION
775PACKAGE_STRING
776PACKAGE_BUGREPORT
777exec_prefix
778prefix
779program_transform_name
780bindir
781sbindir
782libexecdir
783datarootdir
784datadir
785sysconfdir
786sharedstatedir
787localstatedir
788includedir
789oldincludedir
790docdir
791infodir
792htmldir
793dvidir
794pdfdir
795psdir
796libdir
797localedir
798mandir
799DEFS
800ECHO_C
801ECHO_N
802ECHO_T
803LIBS
804build_alias
805host_alias
806target_alias
807INSTALL_PROGRAM
808INSTALL_SCRIPT
809INSTALL_DATA
810am__isrc
811CYGPATH_W
812PACKAGE
813VERSION
814ACLOCAL
815AUTOCONF
816AUTOMAKE
817AUTOHEADER
818MAKEINFO
819install_sh
820STRIP
821INSTALL_STRIP_PROGRAM
822mkdir_p
823AWK
824SET_MAKE
825am__leading_dot
826AMTAR
827am__tar
828am__untar
829CC
830CFLAGS
831LDFLAGS
832CPPFLAGS
833ac_ct_CC
834EXEEXT
835OBJEXT
836DEPDIR
837am__include
838am__quote
839AMDEP_TRUE
840AMDEP_FALSE
841AMDEPBACKSLASH
842CCDEPMODE
843am__fastdepCC_TRUE
844am__fastdepCC_FALSE
845build
846build_cpu
847build_vendor
848build_os
849host
850host_cpu
851host_vendor
852host_os
853SED
854GREP
855EGREP
856LN_S
857ECHO
858AR
859RANLIB
860DSYMUTIL
861NMEDIT
862CPP
863CXX
864CXXFLAGS
865ac_ct_CXX
866CXXDEPMODE
867am__fastdepCXX_TRUE
868am__fastdepCXX_FALSE
869CXXCPP
870F77
871FFLAGS
872ac_ct_F77
873LIBTOOL
874SO_VERSION
875LIBOBJS
876LTLIBOBJS'
877ac_subst_files=''
878      ac_precious_vars='build_alias
879host_alias
880target_alias
881CC
882CFLAGS
883LDFLAGS
884LIBS
885CPPFLAGS
886CPP
887CXX
888CXXFLAGS
889CCC
890CXXCPP
891F77
892FFLAGS'
893
894
895# Initialize some variables set by options.
896ac_init_help=
897ac_init_version=false
898# The variables have the same names as the options, with
899# dashes changed to underlines.
900cache_file=/dev/null
901exec_prefix=NONE
902no_create=
903no_recursion=
904prefix=NONE
905program_prefix=NONE
906program_suffix=NONE
907program_transform_name=s,x,x,
908silent=
909site=
910srcdir=
911verbose=
912x_includes=NONE
913x_libraries=NONE
914
915# Installation directory options.
916# These are left unexpanded so users can "make install exec_prefix=/foo"
917# and all the variables that are supposed to be based on exec_prefix
918# by default will actually change.
919# Use braces instead of parens because sh, perl, etc. also accept them.
920# (The list follows the same order as the GNU Coding Standards.)
921bindir='${exec_prefix}/bin'
922sbindir='${exec_prefix}/sbin'
923libexecdir='${exec_prefix}/libexec'
924datarootdir='${prefix}/share'
925datadir='${datarootdir}'
926sysconfdir='${prefix}/etc'
927sharedstatedir='${prefix}/com'
928localstatedir='${prefix}/var'
929includedir='${prefix}/include'
930oldincludedir='/usr/include'
931docdir='${datarootdir}/doc/${PACKAGE}'
932infodir='${datarootdir}/info'
933htmldir='${docdir}'
934dvidir='${docdir}'
935pdfdir='${docdir}'
936psdir='${docdir}'
937libdir='${exec_prefix}/lib'
938localedir='${datarootdir}/locale'
939mandir='${datarootdir}/man'
940
941ac_prev=
942ac_dashdash=
943for ac_option
944do
945  # If the previous option needs an argument, assign it.
946  if test -n "$ac_prev"; then
947    eval $ac_prev=\$ac_option
948    ac_prev=
949    continue
950  fi
951
952  case $ac_option in
953  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954  *)	ac_optarg=yes ;;
955  esac
956
957  # Accept the important Cygnus configure options, so we can diagnose typos.
958
959  case $ac_dashdash$ac_option in
960  --)
961    ac_dashdash=yes ;;
962
963  -bindir | --bindir | --bindi | --bind | --bin | --bi)
964    ac_prev=bindir ;;
965  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966    bindir=$ac_optarg ;;
967
968  -build | --build | --buil | --bui | --bu)
969    ac_prev=build_alias ;;
970  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971    build_alias=$ac_optarg ;;
972
973  -cache-file | --cache-file | --cache-fil | --cache-fi \
974  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975    ac_prev=cache_file ;;
976  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978    cache_file=$ac_optarg ;;
979
980  --config-cache | -C)
981    cache_file=config.cache ;;
982
983  -datadir | --datadir | --datadi | --datad)
984    ac_prev=datadir ;;
985  -datadir=* | --datadir=* | --datadi=* | --datad=*)
986    datadir=$ac_optarg ;;
987
988  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989  | --dataroo | --dataro | --datar)
990    ac_prev=datarootdir ;;
991  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993    datarootdir=$ac_optarg ;;
994
995  -disable-* | --disable-*)
996    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997    # Reject names that are not valid shell variable names.
998    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
999      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1000   { (exit 1); exit 1; }; }
1001    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1002    eval enable_$ac_feature=no ;;
1003
1004  -docdir | --docdir | --docdi | --doc | --do)
1005    ac_prev=docdir ;;
1006  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007    docdir=$ac_optarg ;;
1008
1009  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010    ac_prev=dvidir ;;
1011  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012    dvidir=$ac_optarg ;;
1013
1014  -enable-* | --enable-*)
1015    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016    # Reject names that are not valid shell variable names.
1017    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019   { (exit 1); exit 1; }; }
1020    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021    eval enable_$ac_feature=\$ac_optarg ;;
1022
1023  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025  | --exec | --exe | --ex)
1026    ac_prev=exec_prefix ;;
1027  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029  | --exec=* | --exe=* | --ex=*)
1030    exec_prefix=$ac_optarg ;;
1031
1032  -gas | --gas | --ga | --g)
1033    # Obsolete; use --with-gas.
1034    with_gas=yes ;;
1035
1036  -help | --help | --hel | --he | -h)
1037    ac_init_help=long ;;
1038  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039    ac_init_help=recursive ;;
1040  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041    ac_init_help=short ;;
1042
1043  -host | --host | --hos | --ho)
1044    ac_prev=host_alias ;;
1045  -host=* | --host=* | --hos=* | --ho=*)
1046    host_alias=$ac_optarg ;;
1047
1048  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049    ac_prev=htmldir ;;
1050  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051  | --ht=*)
1052    htmldir=$ac_optarg ;;
1053
1054  -includedir | --includedir | --includedi | --included | --include \
1055  | --includ | --inclu | --incl | --inc)
1056    ac_prev=includedir ;;
1057  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058  | --includ=* | --inclu=* | --incl=* | --inc=*)
1059    includedir=$ac_optarg ;;
1060
1061  -infodir | --infodir | --infodi | --infod | --info | --inf)
1062    ac_prev=infodir ;;
1063  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064    infodir=$ac_optarg ;;
1065
1066  -libdir | --libdir | --libdi | --libd)
1067    ac_prev=libdir ;;
1068  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069    libdir=$ac_optarg ;;
1070
1071  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072  | --libexe | --libex | --libe)
1073    ac_prev=libexecdir ;;
1074  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075  | --libexe=* | --libex=* | --libe=*)
1076    libexecdir=$ac_optarg ;;
1077
1078  -localedir | --localedir | --localedi | --localed | --locale)
1079    ac_prev=localedir ;;
1080  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081    localedir=$ac_optarg ;;
1082
1083  -localstatedir | --localstatedir | --localstatedi | --localstated \
1084  | --localstate | --localstat | --localsta | --localst | --locals)
1085    ac_prev=localstatedir ;;
1086  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088    localstatedir=$ac_optarg ;;
1089
1090  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091    ac_prev=mandir ;;
1092  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093    mandir=$ac_optarg ;;
1094
1095  -nfp | --nfp | --nf)
1096    # Obsolete; use --without-fp.
1097    with_fp=no ;;
1098
1099  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100  | --no-cr | --no-c | -n)
1101    no_create=yes ;;
1102
1103  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105    no_recursion=yes ;;
1106
1107  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109  | --oldin | --oldi | --old | --ol | --o)
1110    ac_prev=oldincludedir ;;
1111  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114    oldincludedir=$ac_optarg ;;
1115
1116  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117    ac_prev=prefix ;;
1118  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119    prefix=$ac_optarg ;;
1120
1121  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122  | --program-pre | --program-pr | --program-p)
1123    ac_prev=program_prefix ;;
1124  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126    program_prefix=$ac_optarg ;;
1127
1128  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129  | --program-suf | --program-su | --program-s)
1130    ac_prev=program_suffix ;;
1131  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133    program_suffix=$ac_optarg ;;
1134
1135  -program-transform-name | --program-transform-name \
1136  | --program-transform-nam | --program-transform-na \
1137  | --program-transform-n | --program-transform- \
1138  | --program-transform | --program-transfor \
1139  | --program-transfo | --program-transf \
1140  | --program-trans | --program-tran \
1141  | --progr-tra | --program-tr | --program-t)
1142    ac_prev=program_transform_name ;;
1143  -program-transform-name=* | --program-transform-name=* \
1144  | --program-transform-nam=* | --program-transform-na=* \
1145  | --program-transform-n=* | --program-transform-=* \
1146  | --program-transform=* | --program-transfor=* \
1147  | --program-transfo=* | --program-transf=* \
1148  | --program-trans=* | --program-tran=* \
1149  | --progr-tra=* | --program-tr=* | --program-t=*)
1150    program_transform_name=$ac_optarg ;;
1151
1152  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153    ac_prev=pdfdir ;;
1154  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155    pdfdir=$ac_optarg ;;
1156
1157  -psdir | --psdir | --psdi | --psd | --ps)
1158    ac_prev=psdir ;;
1159  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160    psdir=$ac_optarg ;;
1161
1162  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163  | -silent | --silent | --silen | --sile | --sil)
1164    silent=yes ;;
1165
1166  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167    ac_prev=sbindir ;;
1168  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169  | --sbi=* | --sb=*)
1170    sbindir=$ac_optarg ;;
1171
1172  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174  | --sharedst | --shareds | --shared | --share | --shar \
1175  | --sha | --sh)
1176    ac_prev=sharedstatedir ;;
1177  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180  | --sha=* | --sh=*)
1181    sharedstatedir=$ac_optarg ;;
1182
1183  -site | --site | --sit)
1184    ac_prev=site ;;
1185  -site=* | --site=* | --sit=*)
1186    site=$ac_optarg ;;
1187
1188  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189    ac_prev=srcdir ;;
1190  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191    srcdir=$ac_optarg ;;
1192
1193  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194  | --syscon | --sysco | --sysc | --sys | --sy)
1195    ac_prev=sysconfdir ;;
1196  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198    sysconfdir=$ac_optarg ;;
1199
1200  -target | --target | --targe | --targ | --tar | --ta | --t)
1201    ac_prev=target_alias ;;
1202  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203    target_alias=$ac_optarg ;;
1204
1205  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206    verbose=yes ;;
1207
1208  -version | --version | --versio | --versi | --vers | -V)
1209    ac_init_version=: ;;
1210
1211  -with-* | --with-*)
1212    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213    # Reject names that are not valid shell variable names.
1214    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215      { echo "$as_me: error: invalid package name: $ac_package" >&2
1216   { (exit 1); exit 1; }; }
1217    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1218    eval with_$ac_package=\$ac_optarg ;;
1219
1220  -without-* | --without-*)
1221    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222    # Reject names that are not valid shell variable names.
1223    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224      { echo "$as_me: error: invalid package name: $ac_package" >&2
1225   { (exit 1); exit 1; }; }
1226    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227    eval with_$ac_package=no ;;
1228
1229  --x)
1230    # Obsolete; use --with-x.
1231    with_x=yes ;;
1232
1233  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234  | --x-incl | --x-inc | --x-in | --x-i)
1235    ac_prev=x_includes ;;
1236  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238    x_includes=$ac_optarg ;;
1239
1240  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242    ac_prev=x_libraries ;;
1243  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245    x_libraries=$ac_optarg ;;
1246
1247  -*) { echo "$as_me: error: unrecognized option: $ac_option
1248Try \`$0 --help' for more information." >&2
1249   { (exit 1); exit 1; }; }
1250    ;;
1251
1252  *=*)
1253    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254    # Reject names that are not valid shell variable names.
1255    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1256      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257   { (exit 1); exit 1; }; }
1258    eval $ac_envvar=\$ac_optarg
1259    export $ac_envvar ;;
1260
1261  *)
1262    # FIXME: should be removed in autoconf 3.0.
1263    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267    ;;
1268
1269  esac
1270done
1271
1272if test -n "$ac_prev"; then
1273  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274  { echo "$as_me: error: missing argument to $ac_option" >&2
1275   { (exit 1); exit 1; }; }
1276fi
1277
1278# Be sure to have absolute directory names.
1279for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280		datadir sysconfdir sharedstatedir localstatedir includedir \
1281		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282		libdir localedir mandir
1283do
1284  eval ac_val=\$$ac_var
1285  case $ac_val in
1286    [\\/$]* | ?:[\\/]* )  continue;;
1287    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288  esac
1289  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1290   { (exit 1); exit 1; }; }
1291done
1292
1293# There might be people who depend on the old broken behavior: `$host'
1294# used to hold the argument of --host etc.
1295# FIXME: To remove some day.
1296build=$build_alias
1297host=$host_alias
1298target=$target_alias
1299
1300# FIXME: To remove some day.
1301if test "x$host_alias" != x; then
1302  if test "x$build_alias" = x; then
1303    cross_compiling=maybe
1304    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305    If a cross compiler is detected then cross compile mode will be used." >&2
1306  elif test "x$build_alias" != "x$host_alias"; then
1307    cross_compiling=yes
1308  fi
1309fi
1310
1311ac_tool_prefix=
1312test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314test "$silent" = yes && exec 6>/dev/null
1315
1316
1317ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318ac_ls_di=`ls -di .` &&
1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320  { echo "$as_me: error: Working directory cannot be determined" >&2
1321   { (exit 1); exit 1; }; }
1322test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323  { echo "$as_me: error: pwd does not report name of working directory" >&2
1324   { (exit 1); exit 1; }; }
1325
1326
1327# Find the source files, if location was not specified.
1328if test -z "$srcdir"; then
1329  ac_srcdir_defaulted=yes
1330  # Try the directory containing this script, then the parent directory.
1331  ac_confdir=`$as_dirname -- "$0" ||
1332$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333	 X"$0" : 'X\(//\)[^/]' \| \
1334	 X"$0" : 'X\(//\)$' \| \
1335	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1336echo X"$0" |
1337    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338	    s//\1/
1339	    q
1340	  }
1341	  /^X\(\/\/\)[^/].*/{
1342	    s//\1/
1343	    q
1344	  }
1345	  /^X\(\/\/\)$/{
1346	    s//\1/
1347	    q
1348	  }
1349	  /^X\(\/\).*/{
1350	    s//\1/
1351	    q
1352	  }
1353	  s/.*/./; q'`
1354  srcdir=$ac_confdir
1355  if test ! -r "$srcdir/$ac_unique_file"; then
1356    srcdir=..
1357  fi
1358else
1359  ac_srcdir_defaulted=no
1360fi
1361if test ! -r "$srcdir/$ac_unique_file"; then
1362  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1364   { (exit 1); exit 1; }; }
1365fi
1366ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367ac_abs_confdir=`(
1368	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1369   { (exit 1); exit 1; }; }
1370	pwd)`
1371# When building in place, set srcdir=.
1372if test "$ac_abs_confdir" = "$ac_pwd"; then
1373  srcdir=.
1374fi
1375# Remove unnecessary trailing slashes from srcdir.
1376# Double slashes in file names in object file debugging info
1377# mess up M-x gdb in Emacs.
1378case $srcdir in
1379*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380esac
1381for ac_var in $ac_precious_vars; do
1382  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383  eval ac_env_${ac_var}_value=\$${ac_var}
1384  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386done
1387
1388#
1389# Report the --help message.
1390#
1391if test "$ac_init_help" = "long"; then
1392  # Omit some internal or obsolete options to make the list less imposing.
1393  # This message is too long to be a string in the A/UX 3.1 sh.
1394  cat <<_ACEOF
1395\`configure' configures this package to adapt to many kinds of systems.
1396
1397Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400VAR=VALUE.  See below for descriptions of some of the useful variables.
1401
1402Defaults for the options are specified in brackets.
1403
1404Configuration:
1405  -h, --help              display this help and exit
1406      --help=short        display options specific to this package
1407      --help=recursive    display the short help of all the included packages
1408  -V, --version           display version information and exit
1409  -q, --quiet, --silent   do not print \`checking...' messages
1410      --cache-file=FILE   cache test results in FILE [disabled]
1411  -C, --config-cache      alias for \`--cache-file=config.cache'
1412  -n, --no-create         do not create output files
1413      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1414
1415Installation directories:
1416  --prefix=PREFIX         install architecture-independent files in PREFIX
1417			  [$ac_default_prefix]
1418  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1419			  [PREFIX]
1420
1421By default, \`make install' will install all the files in
1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1423an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424for instance \`--prefix=\$HOME'.
1425
1426For better control, use the options below.
1427
1428Fine tuning of the installation directories:
1429  --bindir=DIR           user executables [EPREFIX/bin]
1430  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1431  --libexecdir=DIR       program executables [EPREFIX/libexec]
1432  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1433  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1434  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1435  --libdir=DIR           object code libraries [EPREFIX/lib]
1436  --includedir=DIR       C header files [PREFIX/include]
1437  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1438  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1439  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1440  --infodir=DIR          info documentation [DATAROOTDIR/info]
1441  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1442  --mandir=DIR           man documentation [DATAROOTDIR/man]
1443  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1444  --htmldir=DIR          html documentation [DOCDIR]
1445  --dvidir=DIR           dvi documentation [DOCDIR]
1446  --pdfdir=DIR           pdf documentation [DOCDIR]
1447  --psdir=DIR            ps documentation [DOCDIR]
1448_ACEOF
1449
1450  cat <<\_ACEOF
1451
1452Program names:
1453  --program-prefix=PREFIX            prepend PREFIX to installed program names
1454  --program-suffix=SUFFIX            append SUFFIX to installed program names
1455  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1456
1457System types:
1458  --build=BUILD     configure for building on BUILD [guessed]
1459  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1460_ACEOF
1461fi
1462
1463if test -n "$ac_init_help"; then
1464
1465  cat <<\_ACEOF
1466
1467Optional Features:
1468  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1469  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1470  --disable-dependency-tracking  speeds up one-time build
1471  --enable-dependency-tracking   do not reject slow dependency extractors
1472  --enable-shared[=PKGS]  build shared libraries [default=yes]
1473  --enable-static[=PKGS]  build static libraries [default=yes]
1474  --enable-fast-install[=PKGS]
1475                          optimize for fast installation [default=yes]
1476  --disable-libtool-lock  avoid locking (might break parallel builds)
1477
1478Optional Packages:
1479  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1480  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1481  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1482  --with-pic              try to use only PIC/non-PIC objects [default=use
1483                          both]
1484  --with-tags[=TAGS]      include additional configurations [automatic]
1485
1486Some influential environment variables:
1487  CC          C compiler command
1488  CFLAGS      C compiler flags
1489  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1490              nonstandard directory <lib dir>
1491  LIBS        libraries to pass to the linker, e.g. -l<library>
1492  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1493              you have headers in a nonstandard directory <include dir>
1494  CPP         C preprocessor
1495  CXX         C++ compiler command
1496  CXXFLAGS    C++ compiler flags
1497  CXXCPP      C++ preprocessor
1498  F77         Fortran 77 compiler command
1499  FFLAGS      Fortran 77 compiler flags
1500
1501Use these variables to override the choices made by `configure' or to help
1502it to find libraries and programs with nonstandard names/locations.
1503
1504_ACEOF
1505ac_status=$?
1506fi
1507
1508if test "$ac_init_help" = "recursive"; then
1509  # If there are subdirs, report their specific --help.
1510  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511    test -d "$ac_dir" || continue
1512    ac_builddir=.
1513
1514case "$ac_dir" in
1515.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516*)
1517  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518  # A ".." for each directory in $ac_dir_suffix.
1519  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520  case $ac_top_builddir_sub in
1521  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523  esac ;;
1524esac
1525ac_abs_top_builddir=$ac_pwd
1526ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527# for backward compatibility:
1528ac_top_builddir=$ac_top_build_prefix
1529
1530case $srcdir in
1531  .)  # We are building in place.
1532    ac_srcdir=.
1533    ac_top_srcdir=$ac_top_builddir_sub
1534    ac_abs_top_srcdir=$ac_pwd ;;
1535  [\\/]* | ?:[\\/]* )  # Absolute name.
1536    ac_srcdir=$srcdir$ac_dir_suffix;
1537    ac_top_srcdir=$srcdir
1538    ac_abs_top_srcdir=$srcdir ;;
1539  *) # Relative name.
1540    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541    ac_top_srcdir=$ac_top_build_prefix$srcdir
1542    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543esac
1544ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545
1546    cd "$ac_dir" || { ac_status=$?; continue; }
1547    # Check for guested configure.
1548    if test -f "$ac_srcdir/configure.gnu"; then
1549      echo &&
1550      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551    elif test -f "$ac_srcdir/configure"; then
1552      echo &&
1553      $SHELL "$ac_srcdir/configure" --help=recursive
1554    else
1555      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556    fi || ac_status=$?
1557    cd "$ac_pwd" || { ac_status=$?; break; }
1558  done
1559fi
1560
1561test -n "$ac_init_help" && exit $ac_status
1562if $ac_init_version; then
1563  cat <<\_ACEOF
1564configure
1565generated by GNU Autoconf 2.61
1566
1567Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15682002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569This configure script is free software; the Free Software Foundation
1570gives unlimited permission to copy, distribute and modify it.
1571_ACEOF
1572  exit
1573fi
1574cat >config.log <<_ACEOF
1575This file contains any messages produced by compilers while
1576running configure, to aid debugging if configure makes a mistake.
1577
1578It was created by $as_me, which was
1579generated by GNU Autoconf 2.61.  Invocation command line was
1580
1581  $ $0 $@
1582
1583_ACEOF
1584exec 5>>config.log
1585{
1586cat <<_ASUNAME
1587## --------- ##
1588## Platform. ##
1589## --------- ##
1590
1591hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595uname -v = `(uname -v) 2>/dev/null || echo unknown`
1596
1597/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1599
1600/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1601/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1602/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1604/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1605/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1606/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1607
1608_ASUNAME
1609
1610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611for as_dir in $PATH
1612do
1613  IFS=$as_save_IFS
1614  test -z "$as_dir" && as_dir=.
1615  echo "PATH: $as_dir"
1616done
1617IFS=$as_save_IFS
1618
1619} >&5
1620
1621cat >&5 <<_ACEOF
1622
1623
1624## ----------- ##
1625## Core tests. ##
1626## ----------- ##
1627
1628_ACEOF
1629
1630
1631# Keep a trace of the command line.
1632# Strip out --no-create and --no-recursion so they do not pile up.
1633# Strip out --silent because we don't want to record it for future runs.
1634# Also quote any args containing shell meta-characters.
1635# Make two passes to allow for proper duplicate-argument suppression.
1636ac_configure_args=
1637ac_configure_args0=
1638ac_configure_args1=
1639ac_must_keep_next=false
1640for ac_pass in 1 2
1641do
1642  for ac_arg
1643  do
1644    case $ac_arg in
1645    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647    | -silent | --silent | --silen | --sile | --sil)
1648      continue ;;
1649    *\'*)
1650      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651    esac
1652    case $ac_pass in
1653    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1654    2)
1655      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656      if test $ac_must_keep_next = true; then
1657	ac_must_keep_next=false # Got value, back to normal.
1658      else
1659	case $ac_arg in
1660	  *=* | --config-cache | -C | -disable-* | --disable-* \
1661	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663	  | -with-* | --with-* | -without-* | --without-* | --x)
1664	    case "$ac_configure_args0 " in
1665	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666	    esac
1667	    ;;
1668	  -* ) ac_must_keep_next=true ;;
1669	esac
1670      fi
1671      ac_configure_args="$ac_configure_args '$ac_arg'"
1672      ;;
1673    esac
1674  done
1675done
1676$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1678
1679# When interrupted or exit'd, cleanup temporary files, and complete
1680# config.log.  We remove comments because anyway the quotes in there
1681# would cause problems or look ugly.
1682# WARNING: Use '\'' to represent an apostrophe within the trap.
1683# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684trap 'exit_status=$?
1685  # Save into config.log some information that might help in debugging.
1686  {
1687    echo
1688
1689    cat <<\_ASBOX
1690## ---------------- ##
1691## Cache variables. ##
1692## ---------------- ##
1693_ASBOX
1694    echo
1695    # The following way of writing the cache mishandles newlines in values,
1696(
1697  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698    eval ac_val=\$$ac_var
1699    case $ac_val in #(
1700    *${as_nl}*)
1701      case $ac_var in #(
1702      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704      esac
1705      case $ac_var in #(
1706      _ | IFS | as_nl) ;; #(
1707      *) $as_unset $ac_var ;;
1708      esac ;;
1709    esac
1710  done
1711  (set) 2>&1 |
1712    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713    *${as_nl}ac_space=\ *)
1714      sed -n \
1715	"s/'\''/'\''\\\\'\'''\''/g;
1716	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717      ;; #(
1718    *)
1719      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720      ;;
1721    esac |
1722    sort
1723)
1724    echo
1725
1726    cat <<\_ASBOX
1727## ----------------- ##
1728## Output variables. ##
1729## ----------------- ##
1730_ASBOX
1731    echo
1732    for ac_var in $ac_subst_vars
1733    do
1734      eval ac_val=\$$ac_var
1735      case $ac_val in
1736      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737      esac
1738      echo "$ac_var='\''$ac_val'\''"
1739    done | sort
1740    echo
1741
1742    if test -n "$ac_subst_files"; then
1743      cat <<\_ASBOX
1744## ------------------- ##
1745## File substitutions. ##
1746## ------------------- ##
1747_ASBOX
1748      echo
1749      for ac_var in $ac_subst_files
1750      do
1751	eval ac_val=\$$ac_var
1752	case $ac_val in
1753	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754	esac
1755	echo "$ac_var='\''$ac_val'\''"
1756      done | sort
1757      echo
1758    fi
1759
1760    if test -s confdefs.h; then
1761      cat <<\_ASBOX
1762## ----------- ##
1763## confdefs.h. ##
1764## ----------- ##
1765_ASBOX
1766      echo
1767      cat confdefs.h
1768      echo
1769    fi
1770    test "$ac_signal" != 0 &&
1771      echo "$as_me: caught signal $ac_signal"
1772    echo "$as_me: exit $exit_status"
1773  } >&5
1774  rm -f core *.core core.conftest.* &&
1775    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776    exit $exit_status
1777' 0
1778for ac_signal in 1 2 13 15; do
1779  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1780done
1781ac_signal=0
1782
1783# confdefs.h avoids OS command line length limits that DEFS can exceed.
1784rm -f -r conftest* confdefs.h
1785
1786# Predefined preprocessor variables.
1787
1788cat >>confdefs.h <<_ACEOF
1789#define PACKAGE_NAME "$PACKAGE_NAME"
1790_ACEOF
1791
1792
1793cat >>confdefs.h <<_ACEOF
1794#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795_ACEOF
1796
1797
1798cat >>confdefs.h <<_ACEOF
1799#define PACKAGE_VERSION "$PACKAGE_VERSION"
1800_ACEOF
1801
1802
1803cat >>confdefs.h <<_ACEOF
1804#define PACKAGE_STRING "$PACKAGE_STRING"
1805_ACEOF
1806
1807
1808cat >>confdefs.h <<_ACEOF
1809#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810_ACEOF
1811
1812
1813# Let the site file select an alternate cache file if it wants to.
1814# Prefer explicitly selected file to automatically selected ones.
1815if test -n "$CONFIG_SITE"; then
1816  set x "$CONFIG_SITE"
1817elif test "x$prefix" != xNONE; then
1818  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1819else
1820  set x "$ac_default_prefix/share/config.site" \
1821	"$ac_default_prefix/etc/config.site"
1822fi
1823shift
1824for ac_site_file
1825do
1826  if test -r "$ac_site_file"; then
1827    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828echo "$as_me: loading site script $ac_site_file" >&6;}
1829    sed 's/^/| /' "$ac_site_file" >&5
1830    . "$ac_site_file"
1831  fi
1832done
1833
1834if test -r "$cache_file"; then
1835  # Some versions of bash will fail to source /dev/null (special
1836  # files actually), so we avoid doing that.
1837  if test -f "$cache_file"; then
1838    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839echo "$as_me: loading cache $cache_file" >&6;}
1840    case $cache_file in
1841      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842      *)                      . "./$cache_file";;
1843    esac
1844  fi
1845else
1846  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847echo "$as_me: creating cache $cache_file" >&6;}
1848  >$cache_file
1849fi
1850
1851# Check that the precious variables saved in the cache have kept the same
1852# value.
1853ac_cache_corrupted=false
1854for ac_var in $ac_precious_vars; do
1855  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856  eval ac_new_set=\$ac_env_${ac_var}_set
1857  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858  eval ac_new_val=\$ac_env_${ac_var}_value
1859  case $ac_old_set,$ac_new_set in
1860    set,)
1861      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863      ac_cache_corrupted=: ;;
1864    ,set)
1865      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867      ac_cache_corrupted=: ;;
1868    ,);;
1869    *)
1870      if test "x$ac_old_val" != "x$ac_new_val"; then
1871	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1874echo "$as_me:   former value:  $ac_old_val" >&2;}
1875	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1876echo "$as_me:   current value: $ac_new_val" >&2;}
1877	ac_cache_corrupted=:
1878      fi;;
1879  esac
1880  # Pass precious variables to config.status.
1881  if test "$ac_new_set" = set; then
1882    case $ac_new_val in
1883    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884    *) ac_arg=$ac_var=$ac_new_val ;;
1885    esac
1886    case " $ac_configure_args " in
1887      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1888      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889    esac
1890  fi
1891done
1892if $ac_cache_corrupted; then
1893  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897   { (exit 1); exit 1; }; }
1898fi
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916ac_ext=c
1917ac_cpp='$CPP $CPPFLAGS'
1918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921
1922
1923
1924am__api_version='1.10'
1925
1926ac_aux_dir=
1927for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1928  if test -f "$ac_dir/install-sh"; then
1929    ac_aux_dir=$ac_dir
1930    ac_install_sh="$ac_aux_dir/install-sh -c"
1931    break
1932  elif test -f "$ac_dir/install.sh"; then
1933    ac_aux_dir=$ac_dir
1934    ac_install_sh="$ac_aux_dir/install.sh -c"
1935    break
1936  elif test -f "$ac_dir/shtool"; then
1937    ac_aux_dir=$ac_dir
1938    ac_install_sh="$ac_aux_dir/shtool install -c"
1939    break
1940  fi
1941done
1942if test -z "$ac_aux_dir"; then
1943  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1944echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1945   { (exit 1); exit 1; }; }
1946fi
1947
1948# These three variables are undocumented and unsupported,
1949# and are intended to be withdrawn in a future Autoconf release.
1950# They can cause serious problems if a builder's source tree is in a directory
1951# whose full name contains unusual characters.
1952ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1953ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1954ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1955
1956
1957# Find a good install program.  We prefer a C program (faster),
1958# so one script is as good as another.  But avoid the broken or
1959# incompatible versions:
1960# SysV /etc/install, /usr/sbin/install
1961# SunOS /usr/etc/install
1962# IRIX /sbin/install
1963# AIX /bin/install
1964# AmigaOS /C/install, which installs bootblocks on floppy discs
1965# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1966# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1967# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1968# OS/2's system install, which has a completely different semantic
1969# ./install, which can be erroneously created by make from ./install.sh.
1970{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1971echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1972if test -z "$INSTALL"; then
1973if test "${ac_cv_path_install+set}" = set; then
1974  echo $ECHO_N "(cached) $ECHO_C" >&6
1975else
1976  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979  IFS=$as_save_IFS
1980  test -z "$as_dir" && as_dir=.
1981  # Account for people who put trailing slashes in PATH elements.
1982case $as_dir/ in
1983  ./ | .// | /cC/* | \
1984  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1985  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1986  /usr/ucb/* ) ;;
1987  *)
1988    # OSF1 and SCO ODT 3.0 have their own names for install.
1989    # Don't use installbsd from OSF since it installs stuff as root
1990    # by default.
1991    for ac_prog in ginstall scoinst install; do
1992      for ac_exec_ext in '' $ac_executable_extensions; do
1993	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1994	  if test $ac_prog = install &&
1995	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1996	    # AIX install.  It has an incompatible calling convention.
1997	    :
1998	  elif test $ac_prog = install &&
1999	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2000	    # program-specific install script used by HP pwplus--don't use.
2001	    :
2002	  else
2003	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2004	    break 3
2005	  fi
2006	fi
2007      done
2008    done
2009    ;;
2010esac
2011done
2012IFS=$as_save_IFS
2013
2014
2015fi
2016  if test "${ac_cv_path_install+set}" = set; then
2017    INSTALL=$ac_cv_path_install
2018  else
2019    # As a last resort, use the slow shell script.  Don't cache a
2020    # value for INSTALL within a source directory, because that will
2021    # break other packages using the cache if that directory is
2022    # removed, or if the value is a relative name.
2023    INSTALL=$ac_install_sh
2024  fi
2025fi
2026{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2027echo "${ECHO_T}$INSTALL" >&6; }
2028
2029# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2030# It thinks the first close brace ends the variable substitution.
2031test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2032
2033test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2034
2035test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2036
2037{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2038echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2039# Just in case
2040sleep 1
2041echo timestamp > conftest.file
2042# Do `set' in a subshell so we don't clobber the current shell's
2043# arguments.  Must try -L first in case configure is actually a
2044# symlink; some systems play weird games with the mod time of symlinks
2045# (eg FreeBSD returns the mod time of the symlink's containing
2046# directory).
2047if (
2048   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2049   if test "$*" = "X"; then
2050      # -L didn't work.
2051      set X `ls -t $srcdir/configure conftest.file`
2052   fi
2053   rm -f conftest.file
2054   if test "$*" != "X $srcdir/configure conftest.file" \
2055      && test "$*" != "X conftest.file $srcdir/configure"; then
2056
2057      # If neither matched, then we have a broken ls.  This can happen
2058      # if, for instance, CONFIG_SHELL is bash and it inherits a
2059      # broken ls alias from the environment.  This has actually
2060      # happened.  Such a system could not be considered "sane".
2061      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2062alias in your environment" >&5
2063echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2064alias in your environment" >&2;}
2065   { (exit 1); exit 1; }; }
2066   fi
2067
2068   test "$2" = conftest.file
2069   )
2070then
2071   # Ok.
2072   :
2073else
2074   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2075Check your system clock" >&5
2076echo "$as_me: error: newly created file is older than distributed files!
2077Check your system clock" >&2;}
2078   { (exit 1); exit 1; }; }
2079fi
2080{ echo "$as_me:$LINENO: result: yes" >&5
2081echo "${ECHO_T}yes" >&6; }
2082test "$program_prefix" != NONE &&
2083  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2084# Use a double $ so make ignores it.
2085test "$program_suffix" != NONE &&
2086  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2087# Double any \ or $.  echo might interpret backslashes.
2088# By default was `s,x,x', remove it if useless.
2089cat <<\_ACEOF >conftest.sed
2090s/[\\$]/&&/g;s/;s,x,x,$//
2091_ACEOF
2092program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2093rm -f conftest.sed
2094
2095# expand $ac_aux_dir to an absolute path
2096am_aux_dir=`cd $ac_aux_dir && pwd`
2097
2098test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2099# Use eval to expand $SHELL
2100if eval "$MISSING --run true"; then
2101  am_missing_run="$MISSING --run "
2102else
2103  am_missing_run=
2104  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2105echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2106fi
2107
2108{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2109echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2110if test -z "$MKDIR_P"; then
2111  if test "${ac_cv_path_mkdir+set}" = set; then
2112  echo $ECHO_N "(cached) $ECHO_C" >&6
2113else
2114  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2116do
2117  IFS=$as_save_IFS
2118  test -z "$as_dir" && as_dir=.
2119  for ac_prog in mkdir gmkdir; do
2120	 for ac_exec_ext in '' $ac_executable_extensions; do
2121	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2122	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2123	     'mkdir (GNU coreutils) '* | \
2124	     'mkdir (coreutils) '* | \
2125	     'mkdir (fileutils) '4.1*)
2126	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2127	       break 3;;
2128	   esac
2129	 done
2130       done
2131done
2132IFS=$as_save_IFS
2133
2134fi
2135
2136  if test "${ac_cv_path_mkdir+set}" = set; then
2137    MKDIR_P="$ac_cv_path_mkdir -p"
2138  else
2139    # As a last resort, use the slow shell script.  Don't cache a
2140    # value for MKDIR_P within a source directory, because that will
2141    # break other packages using the cache if that directory is
2142    # removed, or if the value is a relative name.
2143    test -d ./--version && rmdir ./--version
2144    MKDIR_P="$ac_install_sh -d"
2145  fi
2146fi
2147{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2148echo "${ECHO_T}$MKDIR_P" >&6; }
2149
2150mkdir_p="$MKDIR_P"
2151case $mkdir_p in
2152  [\\/$]* | ?:[\\/]*) ;;
2153  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2154esac
2155
2156for ac_prog in gawk mawk nawk awk
2157do
2158  # Extract the first word of "$ac_prog", so it can be a program name with args.
2159set dummy $ac_prog; ac_word=$2
2160{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2162if test "${ac_cv_prog_AWK+set}" = set; then
2163  echo $ECHO_N "(cached) $ECHO_C" >&6
2164else
2165  if test -n "$AWK"; then
2166  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2167else
2168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169for as_dir in $PATH
2170do
2171  IFS=$as_save_IFS
2172  test -z "$as_dir" && as_dir=.
2173  for ac_exec_ext in '' $ac_executable_extensions; do
2174  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2175    ac_cv_prog_AWK="$ac_prog"
2176    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177    break 2
2178  fi
2179done
2180done
2181IFS=$as_save_IFS
2182
2183fi
2184fi
2185AWK=$ac_cv_prog_AWK
2186if test -n "$AWK"; then
2187  { echo "$as_me:$LINENO: result: $AWK" >&5
2188echo "${ECHO_T}$AWK" >&6; }
2189else
2190  { echo "$as_me:$LINENO: result: no" >&5
2191echo "${ECHO_T}no" >&6; }
2192fi
2193
2194
2195  test -n "$AWK" && break
2196done
2197
2198{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2199echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2200set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2201if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2202  echo $ECHO_N "(cached) $ECHO_C" >&6
2203else
2204  cat >conftest.make <<\_ACEOF
2205SHELL = /bin/sh
2206all:
2207	@echo '@@@%%%=$(MAKE)=@@@%%%'
2208_ACEOF
2209# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2210case `${MAKE-make} -f conftest.make 2>/dev/null` in
2211  *@@@%%%=?*=@@@%%%*)
2212    eval ac_cv_prog_make_${ac_make}_set=yes;;
2213  *)
2214    eval ac_cv_prog_make_${ac_make}_set=no;;
2215esac
2216rm -f conftest.make
2217fi
2218if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2219  { echo "$as_me:$LINENO: result: yes" >&5
2220echo "${ECHO_T}yes" >&6; }
2221  SET_MAKE=
2222else
2223  { echo "$as_me:$LINENO: result: no" >&5
2224echo "${ECHO_T}no" >&6; }
2225  SET_MAKE="MAKE=${MAKE-make}"
2226fi
2227
2228rm -rf .tst 2>/dev/null
2229mkdir .tst 2>/dev/null
2230if test -d .tst; then
2231  am__leading_dot=.
2232else
2233  am__leading_dot=_
2234fi
2235rmdir .tst 2>/dev/null
2236
2237if test "`cd $srcdir && pwd`" != "`pwd`"; then
2238  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2239  # is not polluted with repeated "-I."
2240  am__isrc=' -I$(srcdir)'
2241  # test to see if srcdir already configured
2242  if test -f $srcdir/config.status; then
2243    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2244echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2245   { (exit 1); exit 1; }; }
2246  fi
2247fi
2248
2249# test whether we have cygpath
2250if test -z "$CYGPATH_W"; then
2251  if (cygpath --version) >/dev/null 2>/dev/null; then
2252    CYGPATH_W='cygpath -w'
2253  else
2254    CYGPATH_W=echo
2255  fi
2256fi
2257
2258
2259# Define the identity of the package.
2260 PACKAGE=cgilib
2261 VERSION=0.7
2262
2263
2264cat >>confdefs.h <<_ACEOF
2265#define PACKAGE "$PACKAGE"
2266_ACEOF
2267
2268
2269cat >>confdefs.h <<_ACEOF
2270#define VERSION "$VERSION"
2271_ACEOF
2272
2273# Some tools Automake needs.
2274
2275ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2276
2277
2278AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2279
2280
2281AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2282
2283
2284AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2285
2286
2287MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2288
2289install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2290
2291# Installed binaries are usually stripped using `strip' when the user
2292# run `make install-strip'.  However `strip' might not be the right
2293# tool to use in cross-compilation environments, therefore Automake
2294# will honor the `STRIP' environment variable to overrule this program.
2295if test "$cross_compiling" != no; then
2296  if test -n "$ac_tool_prefix"; then
2297  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2298set dummy ${ac_tool_prefix}strip; ac_word=$2
2299{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2301if test "${ac_cv_prog_STRIP+set}" = set; then
2302  echo $ECHO_N "(cached) $ECHO_C" >&6
2303else
2304  if test -n "$STRIP"; then
2305  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2306else
2307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308for as_dir in $PATH
2309do
2310  IFS=$as_save_IFS
2311  test -z "$as_dir" && as_dir=.
2312  for ac_exec_ext in '' $ac_executable_extensions; do
2313  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2314    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2315    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316    break 2
2317  fi
2318done
2319done
2320IFS=$as_save_IFS
2321
2322fi
2323fi
2324STRIP=$ac_cv_prog_STRIP
2325if test -n "$STRIP"; then
2326  { echo "$as_me:$LINENO: result: $STRIP" >&5
2327echo "${ECHO_T}$STRIP" >&6; }
2328else
2329  { echo "$as_me:$LINENO: result: no" >&5
2330echo "${ECHO_T}no" >&6; }
2331fi
2332
2333
2334fi
2335if test -z "$ac_cv_prog_STRIP"; then
2336  ac_ct_STRIP=$STRIP
2337  # Extract the first word of "strip", so it can be a program name with args.
2338set dummy strip; ac_word=$2
2339{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2342  echo $ECHO_N "(cached) $ECHO_C" >&6
2343else
2344  if test -n "$ac_ct_STRIP"; then
2345  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2346else
2347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348for as_dir in $PATH
2349do
2350  IFS=$as_save_IFS
2351  test -z "$as_dir" && as_dir=.
2352  for ac_exec_ext in '' $ac_executable_extensions; do
2353  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354    ac_cv_prog_ac_ct_STRIP="strip"
2355    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356    break 2
2357  fi
2358done
2359done
2360IFS=$as_save_IFS
2361
2362fi
2363fi
2364ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2365if test -n "$ac_ct_STRIP"; then
2366  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2367echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2368else
2369  { echo "$as_me:$LINENO: result: no" >&5
2370echo "${ECHO_T}no" >&6; }
2371fi
2372
2373  if test "x$ac_ct_STRIP" = x; then
2374    STRIP=":"
2375  else
2376    case $cross_compiling:$ac_tool_warned in
2377yes:)
2378{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2379whose name does not start with the host triplet.  If you think this
2380configuration is useful to you, please write to autoconf@gnu.org." >&5
2381echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2382whose name does not start with the host triplet.  If you think this
2383configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2384ac_tool_warned=yes ;;
2385esac
2386    STRIP=$ac_ct_STRIP
2387  fi
2388else
2389  STRIP="$ac_cv_prog_STRIP"
2390fi
2391
2392fi
2393INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2394
2395# We need awk for the "check" target.  The system "awk" is bad on
2396# some platforms.
2397# Always define AMTAR for backward compatibility.
2398
2399AMTAR=${AMTAR-"${am_missing_run}tar"}
2400
2401am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2402
2403
2404
2405
2406
2407SO_VERSION=1:0:0
2408
2409ac_ext=c
2410ac_cpp='$CPP $CPPFLAGS'
2411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414if test -n "$ac_tool_prefix"; then
2415  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2416set dummy ${ac_tool_prefix}gcc; ac_word=$2
2417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2419if test "${ac_cv_prog_CC+set}" = set; then
2420  echo $ECHO_N "(cached) $ECHO_C" >&6
2421else
2422  if test -n "$CC"; then
2423  ac_cv_prog_CC="$CC" # Let the user override the test.
2424else
2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426for as_dir in $PATH
2427do
2428  IFS=$as_save_IFS
2429  test -z "$as_dir" && as_dir=.
2430  for ac_exec_ext in '' $ac_executable_extensions; do
2431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2432    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2433    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434    break 2
2435  fi
2436done
2437done
2438IFS=$as_save_IFS
2439
2440fi
2441fi
2442CC=$ac_cv_prog_CC
2443if test -n "$CC"; then
2444  { echo "$as_me:$LINENO: result: $CC" >&5
2445echo "${ECHO_T}$CC" >&6; }
2446else
2447  { echo "$as_me:$LINENO: result: no" >&5
2448echo "${ECHO_T}no" >&6; }
2449fi
2450
2451
2452fi
2453if test -z "$ac_cv_prog_CC"; then
2454  ac_ct_CC=$CC
2455  # Extract the first word of "gcc", so it can be a program name with args.
2456set dummy gcc; ac_word=$2
2457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2459if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2460  echo $ECHO_N "(cached) $ECHO_C" >&6
2461else
2462  if test -n "$ac_ct_CC"; then
2463  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2464else
2465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466for as_dir in $PATH
2467do
2468  IFS=$as_save_IFS
2469  test -z "$as_dir" && as_dir=.
2470  for ac_exec_ext in '' $ac_executable_extensions; do
2471  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2472    ac_cv_prog_ac_ct_CC="gcc"
2473    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474    break 2
2475  fi
2476done
2477done
2478IFS=$as_save_IFS
2479
2480fi
2481fi
2482ac_ct_CC=$ac_cv_prog_ac_ct_CC
2483if test -n "$ac_ct_CC"; then
2484  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2485echo "${ECHO_T}$ac_ct_CC" >&6; }
2486else
2487  { echo "$as_me:$LINENO: result: no" >&5
2488echo "${ECHO_T}no" >&6; }
2489fi
2490
2491  if test "x$ac_ct_CC" = x; then
2492    CC=""
2493  else
2494    case $cross_compiling:$ac_tool_warned in
2495yes:)
2496{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2497whose name does not start with the host triplet.  If you think this
2498configuration is useful to you, please write to autoconf@gnu.org." >&5
2499echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2500whose name does not start with the host triplet.  If you think this
2501configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2502ac_tool_warned=yes ;;
2503esac
2504    CC=$ac_ct_CC
2505  fi
2506else
2507  CC="$ac_cv_prog_CC"
2508fi
2509
2510if test -z "$CC"; then
2511          if test -n "$ac_tool_prefix"; then
2512    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2513set dummy ${ac_tool_prefix}cc; ac_word=$2
2514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516if test "${ac_cv_prog_CC+set}" = set; then
2517  echo $ECHO_N "(cached) $ECHO_C" >&6
2518else
2519  if test -n "$CC"; then
2520  ac_cv_prog_CC="$CC" # Let the user override the test.
2521else
2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523for as_dir in $PATH
2524do
2525  IFS=$as_save_IFS
2526  test -z "$as_dir" && as_dir=.
2527  for ac_exec_ext in '' $ac_executable_extensions; do
2528  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529    ac_cv_prog_CC="${ac_tool_prefix}cc"
2530    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531    break 2
2532  fi
2533done
2534done
2535IFS=$as_save_IFS
2536
2537fi
2538fi
2539CC=$ac_cv_prog_CC
2540if test -n "$CC"; then
2541  { echo "$as_me:$LINENO: result: $CC" >&5
2542echo "${ECHO_T}$CC" >&6; }
2543else
2544  { echo "$as_me:$LINENO: result: no" >&5
2545echo "${ECHO_T}no" >&6; }
2546fi
2547
2548
2549  fi
2550fi
2551if test -z "$CC"; then
2552  # Extract the first word of "cc", so it can be a program name with args.
2553set dummy cc; ac_word=$2
2554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2556if test "${ac_cv_prog_CC+set}" = set; then
2557  echo $ECHO_N "(cached) $ECHO_C" >&6
2558else
2559  if test -n "$CC"; then
2560  ac_cv_prog_CC="$CC" # Let the user override the test.
2561else
2562  ac_prog_rejected=no
2563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564for as_dir in $PATH
2565do
2566  IFS=$as_save_IFS
2567  test -z "$as_dir" && as_dir=.
2568  for ac_exec_ext in '' $ac_executable_extensions; do
2569  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2571       ac_prog_rejected=yes
2572       continue
2573     fi
2574    ac_cv_prog_CC="cc"
2575    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576    break 2
2577  fi
2578done
2579done
2580IFS=$as_save_IFS
2581
2582if test $ac_prog_rejected = yes; then
2583  # We found a bogon in the path, so make sure we never use it.
2584  set dummy $ac_cv_prog_CC
2585  shift
2586  if test $# != 0; then
2587    # We chose a different compiler from the bogus one.
2588    # However, it has the same basename, so the bogon will be chosen
2589    # first if we set CC to just the basename; use the full file name.
2590    shift
2591    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2592  fi
2593fi
2594fi
2595fi
2596CC=$ac_cv_prog_CC
2597if test -n "$CC"; then
2598  { echo "$as_me:$LINENO: result: $CC" >&5
2599echo "${ECHO_T}$CC" >&6; }
2600else
2601  { echo "$as_me:$LINENO: result: no" >&5
2602echo "${ECHO_T}no" >&6; }
2603fi
2604
2605
2606fi
2607if test -z "$CC"; then
2608  if test -n "$ac_tool_prefix"; then
2609  for ac_prog in cl.exe
2610  do
2611    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2612set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2613{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2615if test "${ac_cv_prog_CC+set}" = set; then
2616  echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
2618  if test -n "$CC"; then
2619  ac_cv_prog_CC="$CC" # Let the user override the test.
2620else
2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622for as_dir in $PATH
2623do
2624  IFS=$as_save_IFS
2625  test -z "$as_dir" && as_dir=.
2626  for ac_exec_ext in '' $ac_executable_extensions; do
2627  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2629    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630    break 2
2631  fi
2632done
2633done
2634IFS=$as_save_IFS
2635
2636fi
2637fi
2638CC=$ac_cv_prog_CC
2639if test -n "$CC"; then
2640  { echo "$as_me:$LINENO: result: $CC" >&5
2641echo "${ECHO_T}$CC" >&6; }
2642else
2643  { echo "$as_me:$LINENO: result: no" >&5
2644echo "${ECHO_T}no" >&6; }
2645fi
2646
2647
2648    test -n "$CC" && break
2649  done
2650fi
2651if test -z "$CC"; then
2652  ac_ct_CC=$CC
2653  for ac_prog in cl.exe
2654do
2655  # Extract the first word of "$ac_prog", so it can be a program name with args.
2656set dummy $ac_prog; ac_word=$2
2657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2659if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2660  echo $ECHO_N "(cached) $ECHO_C" >&6
2661else
2662  if test -n "$ac_ct_CC"; then
2663  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2664else
2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH
2667do
2668  IFS=$as_save_IFS
2669  test -z "$as_dir" && as_dir=.
2670  for ac_exec_ext in '' $ac_executable_extensions; do
2671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672    ac_cv_prog_ac_ct_CC="$ac_prog"
2673    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674    break 2
2675  fi
2676done
2677done
2678IFS=$as_save_IFS
2679
2680fi
2681fi
2682ac_ct_CC=$ac_cv_prog_ac_ct_CC
2683if test -n "$ac_ct_CC"; then
2684  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2685echo "${ECHO_T}$ac_ct_CC" >&6; }
2686else
2687  { echo "$as_me:$LINENO: result: no" >&5
2688echo "${ECHO_T}no" >&6; }
2689fi
2690
2691
2692  test -n "$ac_ct_CC" && break
2693done
2694
2695  if test "x$ac_ct_CC" = x; then
2696    CC=""
2697  else
2698    case $cross_compiling:$ac_tool_warned in
2699yes:)
2700{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2701whose name does not start with the host triplet.  If you think this
2702configuration is useful to you, please write to autoconf@gnu.org." >&5
2703echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2704whose name does not start with the host triplet.  If you think this
2705configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2706ac_tool_warned=yes ;;
2707esac
2708    CC=$ac_ct_CC
2709  fi
2710fi
2711
2712fi
2713
2714
2715test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2716See \`config.log' for more details." >&5
2717echo "$as_me: error: no acceptable C compiler found in \$PATH
2718See \`config.log' for more details." >&2;}
2719   { (exit 1); exit 1; }; }
2720
2721# Provide some information about the compiler.
2722echo "$as_me:$LINENO: checking for C compiler version" >&5
2723ac_compiler=`set X $ac_compile; echo $2`
2724{ (ac_try="$ac_compiler --version >&5"
2725case "(($ac_try" in
2726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727  *) ac_try_echo=$ac_try;;
2728esac
2729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730  (eval "$ac_compiler --version >&5") 2>&5
2731  ac_status=$?
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); }
2734{ (ac_try="$ac_compiler -v >&5"
2735case "(($ac_try" in
2736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737  *) ac_try_echo=$ac_try;;
2738esac
2739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740  (eval "$ac_compiler -v >&5") 2>&5
2741  ac_status=$?
2742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743  (exit $ac_status); }
2744{ (ac_try="$ac_compiler -V >&5"
2745case "(($ac_try" in
2746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747  *) ac_try_echo=$ac_try;;
2748esac
2749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750  (eval "$ac_compiler -V >&5") 2>&5
2751  ac_status=$?
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); }
2754
2755cat >conftest.$ac_ext <<_ACEOF
2756/* confdefs.h.  */
2757_ACEOF
2758cat confdefs.h >>conftest.$ac_ext
2759cat >>conftest.$ac_ext <<_ACEOF
2760/* end confdefs.h.  */
2761
2762int
2763main ()
2764{
2765
2766  ;
2767  return 0;
2768}
2769_ACEOF
2770ac_clean_files_save=$ac_clean_files
2771ac_clean_files="$ac_clean_files a.out a.exe b.out"
2772# Try to create an executable without -o first, disregard a.out.
2773# It will help us diagnose broken compilers, and finding out an intuition
2774# of exeext.
2775{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2776echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2777ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2778#
2779# List of possible output files, starting from the most likely.
2780# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2781# only as a last resort.  b.out is created by i960 compilers.
2782ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2783#
2784# The IRIX 6 linker writes into existing files which may not be
2785# executable, retaining their permissions.  Remove them first so a
2786# subsequent execution test works.
2787ac_rmfiles=
2788for ac_file in $ac_files
2789do
2790  case $ac_file in
2791    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2792    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2793  esac
2794done
2795rm -f $ac_rmfiles
2796
2797if { (ac_try="$ac_link_default"
2798case "(($ac_try" in
2799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800  *) ac_try_echo=$ac_try;;
2801esac
2802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803  (eval "$ac_link_default") 2>&5
2804  ac_status=$?
2805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806  (exit $ac_status); }; then
2807  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2808# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2809# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2810# so that the user can short-circuit this test for compilers unknown to
2811# Autoconf.
2812for ac_file in $ac_files ''
2813do
2814  test -f "$ac_file" || continue
2815  case $ac_file in
2816    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2817	;;
2818    [ab].out )
2819	# We found the default executable, but exeext='' is most
2820	# certainly right.
2821	break;;
2822    *.* )
2823        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2824	then :; else
2825	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2826	fi
2827	# We set ac_cv_exeext here because the later test for it is not
2828	# safe: cross compilers may not add the suffix if given an `-o'
2829	# argument, so we may need to know it at that point already.
2830	# Even if this section looks crufty: it has the advantage of
2831	# actually working.
2832	break;;
2833    * )
2834	break;;
2835  esac
2836done
2837test "$ac_cv_exeext" = no && ac_cv_exeext=
2838
2839else
2840  ac_file=''
2841fi
2842
2843{ echo "$as_me:$LINENO: result: $ac_file" >&5
2844echo "${ECHO_T}$ac_file" >&6; }
2845if test -z "$ac_file"; then
2846  echo "$as_me: failed program was:" >&5
2847sed 's/^/| /' conftest.$ac_ext >&5
2848
2849{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2850See \`config.log' for more details." >&5
2851echo "$as_me: error: C compiler cannot create executables
2852See \`config.log' for more details." >&2;}
2853   { (exit 77); exit 77; }; }
2854fi
2855
2856ac_exeext=$ac_cv_exeext
2857
2858# Check that the compiler produces executables we can run.  If not, either
2859# the compiler is broken, or we cross compile.
2860{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2861echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2862# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2863# If not cross compiling, check that we can run a simple program.
2864if test "$cross_compiling" != yes; then
2865  if { ac_try='./$ac_file'
2866  { (case "(($ac_try" in
2867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868  *) ac_try_echo=$ac_try;;
2869esac
2870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871  (eval "$ac_try") 2>&5
2872  ac_status=$?
2873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874  (exit $ac_status); }; }; then
2875    cross_compiling=no
2876  else
2877    if test "$cross_compiling" = maybe; then
2878	cross_compiling=yes
2879    else
2880	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2881If you meant to cross compile, use \`--host'.
2882See \`config.log' for more details." >&5
2883echo "$as_me: error: cannot run C compiled programs.
2884If you meant to cross compile, use \`--host'.
2885See \`config.log' for more details." >&2;}
2886   { (exit 1); exit 1; }; }
2887    fi
2888  fi
2889fi
2890{ echo "$as_me:$LINENO: result: yes" >&5
2891echo "${ECHO_T}yes" >&6; }
2892
2893rm -f a.out a.exe conftest$ac_cv_exeext b.out
2894ac_clean_files=$ac_clean_files_save
2895# Check that the compiler produces executables we can run.  If not, either
2896# the compiler is broken, or we cross compile.
2897{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2898echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2899{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2900echo "${ECHO_T}$cross_compiling" >&6; }
2901
2902{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2903echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2904if { (ac_try="$ac_link"
2905case "(($ac_try" in
2906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907  *) ac_try_echo=$ac_try;;
2908esac
2909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910  (eval "$ac_link") 2>&5
2911  ac_status=$?
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); }; then
2914  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2915# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2916# work properly (i.e., refer to `conftest.exe'), while it won't with
2917# `rm'.
2918for ac_file in conftest.exe conftest conftest.*; do
2919  test -f "$ac_file" || continue
2920  case $ac_file in
2921    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2922    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2923	  break;;
2924    * ) break;;
2925  esac
2926done
2927else
2928  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2929See \`config.log' for more details." >&5
2930echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2931See \`config.log' for more details." >&2;}
2932   { (exit 1); exit 1; }; }
2933fi
2934
2935rm -f conftest$ac_cv_exeext
2936{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2937echo "${ECHO_T}$ac_cv_exeext" >&6; }
2938
2939rm -f conftest.$ac_ext
2940EXEEXT=$ac_cv_exeext
2941ac_exeext=$EXEEXT
2942{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2943echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2944if test "${ac_cv_objext+set}" = set; then
2945  echo $ECHO_N "(cached) $ECHO_C" >&6
2946else
2947  cat >conftest.$ac_ext <<_ACEOF
2948/* confdefs.h.  */
2949_ACEOF
2950cat confdefs.h >>conftest.$ac_ext
2951cat >>conftest.$ac_ext <<_ACEOF
2952/* end confdefs.h.  */
2953
2954int
2955main ()
2956{
2957
2958  ;
2959  return 0;
2960}
2961_ACEOF
2962rm -f conftest.o conftest.obj
2963if { (ac_try="$ac_compile"
2964case "(($ac_try" in
2965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966  *) ac_try_echo=$ac_try;;
2967esac
2968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969  (eval "$ac_compile") 2>&5
2970  ac_status=$?
2971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); }; then
2973  for ac_file in conftest.o conftest.obj conftest.*; do
2974  test -f "$ac_file" || continue;
2975  case $ac_file in
2976    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2977    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2978       break;;
2979  esac
2980done
2981else
2982  echo "$as_me: failed program was:" >&5
2983sed 's/^/| /' conftest.$ac_ext >&5
2984
2985{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2986See \`config.log' for more details." >&5
2987echo "$as_me: error: cannot compute suffix of object files: cannot compile
2988See \`config.log' for more details." >&2;}
2989   { (exit 1); exit 1; }; }
2990fi
2991
2992rm -f conftest.$ac_cv_objext conftest.$ac_ext
2993fi
2994{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2995echo "${ECHO_T}$ac_cv_objext" >&6; }
2996OBJEXT=$ac_cv_objext
2997ac_objext=$OBJEXT
2998{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2999echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3000if test "${ac_cv_c_compiler_gnu+set}" = set; then
3001  echo $ECHO_N "(cached) $ECHO_C" >&6
3002else
3003  cat >conftest.$ac_ext <<_ACEOF
3004/* confdefs.h.  */
3005_ACEOF
3006cat confdefs.h >>conftest.$ac_ext
3007cat >>conftest.$ac_ext <<_ACEOF
3008/* end confdefs.h.  */
3009
3010int
3011main ()
3012{
3013#ifndef __GNUC__
3014       choke me
3015#endif
3016
3017  ;
3018  return 0;
3019}
3020_ACEOF
3021rm -f conftest.$ac_objext
3022if { (ac_try="$ac_compile"
3023case "(($ac_try" in
3024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025  *) ac_try_echo=$ac_try;;
3026esac
3027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028  (eval "$ac_compile") 2>conftest.er1
3029  ac_status=$?
3030  grep -v '^ *+' conftest.er1 >conftest.err
3031  rm -f conftest.er1
3032  cat conftest.err >&5
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); } && {
3035	 test -z "$ac_c_werror_flag" ||
3036	 test ! -s conftest.err
3037       } && test -s conftest.$ac_objext; then
3038  ac_compiler_gnu=yes
3039else
3040  echo "$as_me: failed program was:" >&5
3041sed 's/^/| /' conftest.$ac_ext >&5
3042
3043	ac_compiler_gnu=no
3044fi
3045
3046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047ac_cv_c_compiler_gnu=$ac_compiler_gnu
3048
3049fi
3050{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3051echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3052GCC=`test $ac_compiler_gnu = yes && echo yes`
3053ac_test_CFLAGS=${CFLAGS+set}
3054ac_save_CFLAGS=$CFLAGS
3055{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3056echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3057if test "${ac_cv_prog_cc_g+set}" = set; then
3058  echo $ECHO_N "(cached) $ECHO_C" >&6
3059else
3060  ac_save_c_werror_flag=$ac_c_werror_flag
3061   ac_c_werror_flag=yes
3062   ac_cv_prog_cc_g=no
3063   CFLAGS="-g"
3064   cat >conftest.$ac_ext <<_ACEOF
3065/* confdefs.h.  */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
3069/* end confdefs.h.  */
3070
3071int
3072main ()
3073{
3074
3075  ;
3076  return 0;
3077}
3078_ACEOF
3079rm -f conftest.$ac_objext
3080if { (ac_try="$ac_compile"
3081case "(($ac_try" in
3082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083  *) ac_try_echo=$ac_try;;
3084esac
3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086  (eval "$ac_compile") 2>conftest.er1
3087  ac_status=$?
3088  grep -v '^ *+' conftest.er1 >conftest.err
3089  rm -f conftest.er1
3090  cat conftest.err >&5
3091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092  (exit $ac_status); } && {
3093	 test -z "$ac_c_werror_flag" ||
3094	 test ! -s conftest.err
3095       } && test -s conftest.$ac_objext; then
3096  ac_cv_prog_cc_g=yes
3097else
3098  echo "$as_me: failed program was:" >&5
3099sed 's/^/| /' conftest.$ac_ext >&5
3100
3101	CFLAGS=""
3102      cat >conftest.$ac_ext <<_ACEOF
3103/* confdefs.h.  */
3104_ACEOF
3105cat confdefs.h >>conftest.$ac_ext
3106cat >>conftest.$ac_ext <<_ACEOF
3107/* end confdefs.h.  */
3108
3109int
3110main ()
3111{
3112
3113  ;
3114  return 0;
3115}
3116_ACEOF
3117rm -f conftest.$ac_objext
3118if { (ac_try="$ac_compile"
3119case "(($ac_try" in
3120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121  *) ac_try_echo=$ac_try;;
3122esac
3123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124  (eval "$ac_compile") 2>conftest.er1
3125  ac_status=$?
3126  grep -v '^ *+' conftest.er1 >conftest.err
3127  rm -f conftest.er1
3128  cat conftest.err >&5
3129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130  (exit $ac_status); } && {
3131	 test -z "$ac_c_werror_flag" ||
3132	 test ! -s conftest.err
3133       } && test -s conftest.$ac_objext; then
3134  :
3135else
3136  echo "$as_me: failed program was:" >&5
3137sed 's/^/| /' conftest.$ac_ext >&5
3138
3139	ac_c_werror_flag=$ac_save_c_werror_flag
3140	 CFLAGS="-g"
3141	 cat >conftest.$ac_ext <<_ACEOF
3142/* confdefs.h.  */
3143_ACEOF
3144cat confdefs.h >>conftest.$ac_ext
3145cat >>conftest.$ac_ext <<_ACEOF
3146/* end confdefs.h.  */
3147
3148int
3149main ()
3150{
3151
3152  ;
3153  return 0;
3154}
3155_ACEOF
3156rm -f conftest.$ac_objext
3157if { (ac_try="$ac_compile"
3158case "(($ac_try" in
3159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160  *) ac_try_echo=$ac_try;;
3161esac
3162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163  (eval "$ac_compile") 2>conftest.er1
3164  ac_status=$?
3165  grep -v '^ *+' conftest.er1 >conftest.err
3166  rm -f conftest.er1
3167  cat conftest.err >&5
3168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169  (exit $ac_status); } && {
3170	 test -z "$ac_c_werror_flag" ||
3171	 test ! -s conftest.err
3172       } && test -s conftest.$ac_objext; then
3173  ac_cv_prog_cc_g=yes
3174else
3175  echo "$as_me: failed program was:" >&5
3176sed 's/^/| /' conftest.$ac_ext >&5
3177
3178
3179fi
3180
3181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182fi
3183
3184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185fi
3186
3187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3188   ac_c_werror_flag=$ac_save_c_werror_flag
3189fi
3190{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3191echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3192if test "$ac_test_CFLAGS" = set; then
3193  CFLAGS=$ac_save_CFLAGS
3194elif test $ac_cv_prog_cc_g = yes; then
3195  if test "$GCC" = yes; then
3196    CFLAGS="-g -O2"
3197  else
3198    CFLAGS="-g"
3199  fi
3200else
3201  if test "$GCC" = yes; then
3202    CFLAGS="-O2"
3203  else
3204    CFLAGS=
3205  fi
3206fi
3207{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3208echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3209if test "${ac_cv_prog_cc_c89+set}" = set; then
3210  echo $ECHO_N "(cached) $ECHO_C" >&6
3211else
3212  ac_cv_prog_cc_c89=no
3213ac_save_CC=$CC
3214cat >conftest.$ac_ext <<_ACEOF
3215/* confdefs.h.  */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
3219/* end confdefs.h.  */
3220#include <stdarg.h>
3221#include <stdio.h>
3222#include <sys/types.h>
3223#include <sys/stat.h>
3224/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3225struct buf { int x; };
3226FILE * (*rcsopen) (struct buf *, struct stat *, int);
3227static char *e (p, i)
3228     char **p;
3229     int i;
3230{
3231  return p[i];
3232}
3233static char *f (char * (*g) (char **, int), char **p, ...)
3234{
3235  char *s;
3236  va_list v;
3237  va_start (v,p);
3238  s = g (p, va_arg (v,int));
3239  va_end (v);
3240  return s;
3241}
3242
3243/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3244   function prototypes and stuff, but not '\xHH' hex character constants.
3245   These don't provoke an error unfortunately, instead are silently treated
3246   as 'x'.  The following induces an error, until -std is added to get
3247   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3248   array size at least.  It's necessary to write '\x00'==0 to get something
3249   that's true only with -std.  */
3250int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3251
3252/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3253   inside strings and character constants.  */
3254#define FOO(x) 'x'
3255int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3256
3257int test (int i, double x);
3258struct s1 {int (*f) (int a);};
3259struct s2 {int (*f) (double a);};
3260int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3261int argc;
3262char **argv;
3263int
3264main ()
3265{
3266return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3267  ;
3268  return 0;
3269}
3270_ACEOF
3271for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3272	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3273do
3274  CC="$ac_save_CC $ac_arg"
3275  rm -f conftest.$ac_objext
3276if { (ac_try="$ac_compile"
3277case "(($ac_try" in
3278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279  *) ac_try_echo=$ac_try;;
3280esac
3281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282  (eval "$ac_compile") 2>conftest.er1
3283  ac_status=$?
3284  grep -v '^ *+' conftest.er1 >conftest.err
3285  rm -f conftest.er1
3286  cat conftest.err >&5
3287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288  (exit $ac_status); } && {
3289	 test -z "$ac_c_werror_flag" ||
3290	 test ! -s conftest.err
3291       } && test -s conftest.$ac_objext; then
3292  ac_cv_prog_cc_c89=$ac_arg
3293else
3294  echo "$as_me: failed program was:" >&5
3295sed 's/^/| /' conftest.$ac_ext >&5
3296
3297
3298fi
3299
3300rm -f core conftest.err conftest.$ac_objext
3301  test "x$ac_cv_prog_cc_c89" != "xno" && break
3302done
3303rm -f conftest.$ac_ext
3304CC=$ac_save_CC
3305
3306fi
3307# AC_CACHE_VAL
3308case "x$ac_cv_prog_cc_c89" in
3309  x)
3310    { echo "$as_me:$LINENO: result: none needed" >&5
3311echo "${ECHO_T}none needed" >&6; } ;;
3312  xno)
3313    { echo "$as_me:$LINENO: result: unsupported" >&5
3314echo "${ECHO_T}unsupported" >&6; } ;;
3315  *)
3316    CC="$CC $ac_cv_prog_cc_c89"
3317    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3318echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3319esac
3320
3321
3322ac_ext=c
3323ac_cpp='$CPP $CPPFLAGS'
3324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327DEPDIR="${am__leading_dot}deps"
3328
3329ac_config_commands="$ac_config_commands depfiles"
3330
3331
3332am_make=${MAKE-make}
3333cat > confinc << 'END'
3334am__doit:
3335	@echo done
3336.PHONY: am__doit
3337END
3338# If we don't find an include directive, just comment out the code.
3339{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3340echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3341am__include="#"
3342am__quote=
3343_am_result=none
3344# First try GNU make style include.
3345echo "include confinc" > confmf
3346# We grep out `Entering directory' and `Leaving directory'
3347# messages which can occur if `w' ends up in MAKEFLAGS.
3348# In particular we don't look at `^make:' because GNU make might
3349# be invoked under some other name (usually "gmake"), in which
3350# case it prints its new name instead of `make'.
3351if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3352   am__include=include
3353   am__quote=
3354   _am_result=GNU
3355fi
3356# Now try BSD make style include.
3357if test "$am__include" = "#"; then
3358   echo '.include "confinc"' > confmf
3359   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3360      am__include=.include
3361      am__quote="\""
3362      _am_result=BSD
3363   fi
3364fi
3365
3366
3367{ echo "$as_me:$LINENO: result: $_am_result" >&5
3368echo "${ECHO_T}$_am_result" >&6; }
3369rm -f confinc confmf
3370
3371# Check whether --enable-dependency-tracking was given.
3372if test "${enable_dependency_tracking+set}" = set; then
3373  enableval=$enable_dependency_tracking;
3374fi
3375
3376if test "x$enable_dependency_tracking" != xno; then
3377  am_depcomp="$ac_aux_dir/depcomp"
3378  AMDEPBACKSLASH='\'
3379fi
3380 if test "x$enable_dependency_tracking" != xno; then
3381  AMDEP_TRUE=
3382  AMDEP_FALSE='#'
3383else
3384  AMDEP_TRUE='#'
3385  AMDEP_FALSE=
3386fi
3387
3388
3389
3390depcc="$CC"   am_compiler_list=
3391
3392{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3393echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3394if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3395  echo $ECHO_N "(cached) $ECHO_C" >&6
3396else
3397  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3398  # We make a subdir and do the tests there.  Otherwise we can end up
3399  # making bogus files that we don't know about and never remove.  For
3400  # instance it was reported that on HP-UX the gcc test will end up
3401  # making a dummy file named `D' -- because `-MD' means `put the output
3402  # in D'.
3403  mkdir conftest.dir
3404  # Copy depcomp to subdir because otherwise we won't find it if we're
3405  # using a relative directory.
3406  cp "$am_depcomp" conftest.dir
3407  cd conftest.dir
3408  # We will build objects and dependencies in a subdirectory because
3409  # it helps to detect inapplicable dependency modes.  For instance
3410  # both Tru64's cc and ICC support -MD to output dependencies as a
3411  # side effect of compilation, but ICC will put the dependencies in
3412  # the current directory while Tru64 will put them in the object
3413  # directory.
3414  mkdir sub
3415
3416  am_cv_CC_dependencies_compiler_type=none
3417  if test "$am_compiler_list" = ""; then
3418     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3419  fi
3420  for depmode in $am_compiler_list; do
3421    # Setup a source with many dependencies, because some compilers
3422    # like to wrap large dependency lists on column 80 (with \), and
3423    # we should not choose a depcomp mode which is confused by this.
3424    #
3425    # We need to recreate these files for each test, as the compiler may
3426    # overwrite some of them when testing with obscure command lines.
3427    # This happens at least with the AIX C compiler.
3428    : > sub/conftest.c
3429    for i in 1 2 3 4 5 6; do
3430      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3431      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3432      # Solaris 8's {/usr,}/bin/sh.
3433      touch sub/conftst$i.h
3434    done
3435    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3436
3437    case $depmode in
3438    nosideeffect)
3439      # after this tag, mechanisms are not by side-effect, so they'll
3440      # only be used when explicitly requested
3441      if test "x$enable_dependency_tracking" = xyes; then
3442	continue
3443      else
3444	break
3445      fi
3446      ;;
3447    none) break ;;
3448    esac
3449    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3450    # mode.  It turns out that the SunPro C++ compiler does not properly
3451    # handle `-M -o', and we need to detect this.
3452    if depmode=$depmode \
3453       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3454       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3455       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3456         >/dev/null 2>conftest.err &&
3457       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3458       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3459       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3460       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3461      # icc doesn't choke on unknown options, it will just issue warnings
3462      # or remarks (even with -Werror).  So we grep stderr for any message
3463      # that says an option was ignored or not supported.
3464      # When given -MP, icc 7.0 and 7.1 complain thusly:
3465      #   icc: Command line warning: ignoring option '-M'; no argument required
3466      # The diagnosis changed in icc 8.0:
3467      #   icc: Command line remark: option '-MP' not supported
3468      if (grep 'ignoring option' conftest.err ||
3469          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3470        am_cv_CC_dependencies_compiler_type=$depmode
3471        break
3472      fi
3473    fi
3474  done
3475
3476  cd ..
3477  rm -rf conftest.dir
3478else
3479  am_cv_CC_dependencies_compiler_type=none
3480fi
3481
3482fi
3483{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3484echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3485CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3486
3487 if
3488  test "x$enable_dependency_tracking" != xno \
3489  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3490  am__fastdepCC_TRUE=
3491  am__fastdepCC_FALSE='#'
3492else
3493  am__fastdepCC_TRUE='#'
3494  am__fastdepCC_FALSE=
3495fi
3496
3497
3498# Find a good install program.  We prefer a C program (faster),
3499# so one script is as good as another.  But avoid the broken or
3500# incompatible versions:
3501# SysV /etc/install, /usr/sbin/install
3502# SunOS /usr/etc/install
3503# IRIX /sbin/install
3504# AIX /bin/install
3505# AmigaOS /C/install, which installs bootblocks on floppy discs
3506# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3507# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3508# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3509# OS/2's system install, which has a completely different semantic
3510# ./install, which can be erroneously created by make from ./install.sh.
3511{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3512echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3513if test -z "$INSTALL"; then
3514if test "${ac_cv_path_install+set}" = set; then
3515  echo $ECHO_N "(cached) $ECHO_C" >&6
3516else
3517  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518for as_dir in $PATH
3519do
3520  IFS=$as_save_IFS
3521  test -z "$as_dir" && as_dir=.
3522  # Account for people who put trailing slashes in PATH elements.
3523case $as_dir/ in
3524  ./ | .// | /cC/* | \
3525  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3526  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3527  /usr/ucb/* ) ;;
3528  *)
3529    # OSF1 and SCO ODT 3.0 have their own names for install.
3530    # Don't use installbsd from OSF since it installs stuff as root
3531    # by default.
3532    for ac_prog in ginstall scoinst install; do
3533      for ac_exec_ext in '' $ac_executable_extensions; do
3534	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3535	  if test $ac_prog = install &&
3536	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3537	    # AIX install.  It has an incompatible calling convention.
3538	    :
3539	  elif test $ac_prog = install &&
3540	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3541	    # program-specific install script used by HP pwplus--don't use.
3542	    :
3543	  else
3544	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3545	    break 3
3546	  fi
3547	fi
3548      done
3549    done
3550    ;;
3551esac
3552done
3553IFS=$as_save_IFS
3554
3555
3556fi
3557  if test "${ac_cv_path_install+set}" = set; then
3558    INSTALL=$ac_cv_path_install
3559  else
3560    # As a last resort, use the slow shell script.  Don't cache a
3561    # value for INSTALL within a source directory, because that will
3562    # break other packages using the cache if that directory is
3563    # removed, or if the value is a relative name.
3564    INSTALL=$ac_install_sh
3565  fi
3566fi
3567{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3568echo "${ECHO_T}$INSTALL" >&6; }
3569
3570# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3571# It thinks the first close brace ends the variable substitution.
3572test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3573
3574test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3575
3576test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3577
3578# Check whether --enable-shared was given.
3579if test "${enable_shared+set}" = set; then
3580  enableval=$enable_shared; p=${PACKAGE-default}
3581    case $enableval in
3582    yes) enable_shared=yes ;;
3583    no) enable_shared=no ;;
3584    *)
3585      enable_shared=no
3586      # Look at the argument we got.  We use all the common list separators.
3587      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3588      for pkg in $enableval; do
3589	IFS="$lt_save_ifs"
3590	if test "X$pkg" = "X$p"; then
3591	  enable_shared=yes
3592	fi
3593      done
3594      IFS="$lt_save_ifs"
3595      ;;
3596    esac
3597else
3598  enable_shared=yes
3599fi
3600
3601
3602# Check whether --enable-static was given.
3603if test "${enable_static+set}" = set; then
3604  enableval=$enable_static; p=${PACKAGE-default}
3605    case $enableval in
3606    yes) enable_static=yes ;;
3607    no) enable_static=no ;;
3608    *)
3609     enable_static=no
3610      # Look at the argument we got.  We use all the common list separators.
3611      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3612      for pkg in $enableval; do
3613	IFS="$lt_save_ifs"
3614	if test "X$pkg" = "X$p"; then
3615	  enable_static=yes
3616	fi
3617      done
3618      IFS="$lt_save_ifs"
3619      ;;
3620    esac
3621else
3622  enable_static=yes
3623fi
3624
3625
3626# Check whether --enable-fast-install was given.
3627if test "${enable_fast_install+set}" = set; then
3628  enableval=$enable_fast_install; p=${PACKAGE-default}
3629    case $enableval in
3630    yes) enable_fast_install=yes ;;
3631    no) enable_fast_install=no ;;
3632    *)
3633      enable_fast_install=no
3634      # Look at the argument we got.  We use all the common list separators.
3635      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3636      for pkg in $enableval; do
3637	IFS="$lt_save_ifs"
3638	if test "X$pkg" = "X$p"; then
3639	  enable_fast_install=yes
3640	fi
3641      done
3642      IFS="$lt_save_ifs"
3643      ;;
3644    esac
3645else
3646  enable_fast_install=yes
3647fi
3648
3649
3650# Make sure we can run config.sub.
3651$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3652  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3653echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3654   { (exit 1); exit 1; }; }
3655
3656{ echo "$as_me:$LINENO: checking build system type" >&5
3657echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3658if test "${ac_cv_build+set}" = set; then
3659  echo $ECHO_N "(cached) $ECHO_C" >&6
3660else
3661  ac_build_alias=$build_alias
3662test "x$ac_build_alias" = x &&
3663  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3664test "x$ac_build_alias" = x &&
3665  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3666echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3667   { (exit 1); exit 1; }; }
3668ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3669  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3670echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3671   { (exit 1); exit 1; }; }
3672
3673fi
3674{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3675echo "${ECHO_T}$ac_cv_build" >&6; }
3676case $ac_cv_build in
3677*-*-*) ;;
3678*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3679echo "$as_me: error: invalid value of canonical build" >&2;}
3680   { (exit 1); exit 1; }; };;
3681esac
3682build=$ac_cv_build
3683ac_save_IFS=$IFS; IFS='-'
3684set x $ac_cv_build
3685shift
3686build_cpu=$1
3687build_vendor=$2
3688shift; shift
3689# Remember, the first character of IFS is used to create $*,
3690# except with old shells:
3691build_os=$*
3692IFS=$ac_save_IFS
3693case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3694
3695
3696{ echo "$as_me:$LINENO: checking host system type" >&5
3697echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3698if test "${ac_cv_host+set}" = set; then
3699  echo $ECHO_N "(cached) $ECHO_C" >&6
3700else
3701  if test "x$host_alias" = x; then
3702  ac_cv_host=$ac_cv_build
3703else
3704  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3705    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3706echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3707   { (exit 1); exit 1; }; }
3708fi
3709
3710fi
3711{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3712echo "${ECHO_T}$ac_cv_host" >&6; }
3713case $ac_cv_host in
3714*-*-*) ;;
3715*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3716echo "$as_me: error: invalid value of canonical host" >&2;}
3717   { (exit 1); exit 1; }; };;
3718esac
3719host=$ac_cv_host
3720ac_save_IFS=$IFS; IFS='-'
3721set x $ac_cv_host
3722shift
3723host_cpu=$1
3724host_vendor=$2
3725shift; shift
3726# Remember, the first character of IFS is used to create $*,
3727# except with old shells:
3728host_os=$*
3729IFS=$ac_save_IFS
3730case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3731
3732
3733{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3734echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3735if test "${lt_cv_path_SED+set}" = set; then
3736  echo $ECHO_N "(cached) $ECHO_C" >&6
3737else
3738  # Loop through the user's path and test for sed and gsed.
3739# Then use that list of sed's as ones to test for truncation.
3740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741for as_dir in $PATH
3742do
3743  IFS=$as_save_IFS
3744  test -z "$as_dir" && as_dir=.
3745  for lt_ac_prog in sed gsed; do
3746    for ac_exec_ext in '' $ac_executable_extensions; do
3747      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3748        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3749      fi
3750    done
3751  done
3752done
3753IFS=$as_save_IFS
3754lt_ac_max=0
3755lt_ac_count=0
3756# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3757# along with /bin/sed that truncates output.
3758for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3759  test ! -f $lt_ac_sed && continue
3760  cat /dev/null > conftest.in
3761  lt_ac_count=0
3762  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3763  # Check for GNU sed and select it if it is found.
3764  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3765    lt_cv_path_SED=$lt_ac_sed
3766    break
3767  fi
3768  while true; do
3769    cat conftest.in conftest.in >conftest.tmp
3770    mv conftest.tmp conftest.in
3771    cp conftest.in conftest.nl
3772    echo >>conftest.nl
3773    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3774    cmp -s conftest.out conftest.nl || break
3775    # 10000 chars as input seems more than enough
3776    test $lt_ac_count -gt 10 && break
3777    lt_ac_count=`expr $lt_ac_count + 1`
3778    if test $lt_ac_count -gt $lt_ac_max; then
3779      lt_ac_max=$lt_ac_count
3780      lt_cv_path_SED=$lt_ac_sed
3781    fi
3782  done
3783done
3784
3785fi
3786
3787SED=$lt_cv_path_SED
3788
3789{ echo "$as_me:$LINENO: result: $SED" >&5
3790echo "${ECHO_T}$SED" >&6; }
3791
3792{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3793echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3794if test "${ac_cv_path_GREP+set}" = set; then
3795  echo $ECHO_N "(cached) $ECHO_C" >&6
3796else
3797  # Extract the first word of "grep ggrep" to use in msg output
3798if test -z "$GREP"; then
3799set dummy grep ggrep; ac_prog_name=$2
3800if test "${ac_cv_path_GREP+set}" = set; then
3801  echo $ECHO_N "(cached) $ECHO_C" >&6
3802else
3803  ac_path_GREP_found=false
3804# Loop through the user's path and test for each of PROGNAME-LIST
3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3807do
3808  IFS=$as_save_IFS
3809  test -z "$as_dir" && as_dir=.
3810  for ac_prog in grep ggrep; do
3811  for ac_exec_ext in '' $ac_executable_extensions; do
3812    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3813    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3814    # Check for GNU ac_path_GREP and select it if it is found.
3815  # Check for GNU $ac_path_GREP
3816case `"$ac_path_GREP" --version 2>&1` in
3817*GNU*)
3818  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3819*)
3820  ac_count=0
3821  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3822  while :
3823  do
3824    cat "conftest.in" "conftest.in" >"conftest.tmp"
3825    mv "conftest.tmp" "conftest.in"
3826    cp "conftest.in" "conftest.nl"
3827    echo 'GREP' >> "conftest.nl"
3828    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3829    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3830    ac_count=`expr $ac_count + 1`
3831    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3832      # Best one so far, save it but keep looking for a better one
3833      ac_cv_path_GREP="$ac_path_GREP"
3834      ac_path_GREP_max=$ac_count
3835    fi
3836    # 10*(2^10) chars as input seems more than enough
3837    test $ac_count -gt 10 && break
3838  done
3839  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3840esac
3841
3842
3843    $ac_path_GREP_found && break 3
3844  done
3845done
3846
3847done
3848IFS=$as_save_IFS
3849
3850
3851fi
3852
3853GREP="$ac_cv_path_GREP"
3854if test -z "$GREP"; then
3855  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3856echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3857   { (exit 1); exit 1; }; }
3858fi
3859
3860else
3861  ac_cv_path_GREP=$GREP
3862fi
3863
3864
3865fi
3866{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3867echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3868 GREP="$ac_cv_path_GREP"
3869
3870
3871{ echo "$as_me:$LINENO: checking for egrep" >&5
3872echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3873if test "${ac_cv_path_EGREP+set}" = set; then
3874  echo $ECHO_N "(cached) $ECHO_C" >&6
3875else
3876  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3877   then ac_cv_path_EGREP="$GREP -E"
3878   else
3879     # Extract the first word of "egrep" to use in msg output
3880if test -z "$EGREP"; then
3881set dummy egrep; ac_prog_name=$2
3882if test "${ac_cv_path_EGREP+set}" = set; then
3883  echo $ECHO_N "(cached) $ECHO_C" >&6
3884else
3885  ac_path_EGREP_found=false
3886# Loop through the user's path and test for each of PROGNAME-LIST
3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3889do
3890  IFS=$as_save_IFS
3891  test -z "$as_dir" && as_dir=.
3892  for ac_prog in egrep; do
3893  for ac_exec_ext in '' $ac_executable_extensions; do
3894    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3895    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3896    # Check for GNU ac_path_EGREP and select it if it is found.
3897  # Check for GNU $ac_path_EGREP
3898case `"$ac_path_EGREP" --version 2>&1` in
3899*GNU*)
3900  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3901*)
3902  ac_count=0
3903  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3904  while :
3905  do
3906    cat "conftest.in" "conftest.in" >"conftest.tmp"
3907    mv "conftest.tmp" "conftest.in"
3908    cp "conftest.in" "conftest.nl"
3909    echo 'EGREP' >> "conftest.nl"
3910    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3911    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3912    ac_count=`expr $ac_count + 1`
3913    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3914      # Best one so far, save it but keep looking for a better one
3915      ac_cv_path_EGREP="$ac_path_EGREP"
3916      ac_path_EGREP_max=$ac_count
3917    fi
3918    # 10*(2^10) chars as input seems more than enough
3919    test $ac_count -gt 10 && break
3920  done
3921  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3922esac
3923
3924
3925    $ac_path_EGREP_found && break 3
3926  done
3927done
3928
3929done
3930IFS=$as_save_IFS
3931
3932
3933fi
3934
3935EGREP="$ac_cv_path_EGREP"
3936if test -z "$EGREP"; then
3937  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3938echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3939   { (exit 1); exit 1; }; }
3940fi
3941
3942else
3943  ac_cv_path_EGREP=$EGREP
3944fi
3945
3946
3947   fi
3948fi
3949{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3950echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3951 EGREP="$ac_cv_path_EGREP"
3952
3953
3954
3955# Check whether --with-gnu-ld was given.
3956if test "${with_gnu_ld+set}" = set; then
3957  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3958else
3959  with_gnu_ld=no
3960fi
3961
3962ac_prog=ld
3963if test "$GCC" = yes; then
3964  # Check if gcc -print-prog-name=ld gives a path.
3965  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3966echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3967  case $host in
3968  *-*-mingw*)
3969    # gcc leaves a trailing carriage return which upsets mingw
3970    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3971  *)
3972    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3973  esac
3974  case $ac_prog in
3975    # Accept absolute paths.
3976    [\\/]* | ?:[\\/]*)
3977      re_direlt='/[^/][^/]*/\.\./'
3978      # Canonicalize the pathname of ld
3979      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3980      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3981	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3982      done
3983      test -z "$LD" && LD="$ac_prog"
3984      ;;
3985  "")
3986    # If it fails, then pretend we aren't using GCC.
3987    ac_prog=ld
3988    ;;
3989  *)
3990    # If it is relative, then search for the first ld in PATH.
3991    with_gnu_ld=unknown
3992    ;;
3993  esac
3994elif test "$with_gnu_ld" = yes; then
3995  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3996echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3997else
3998  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3999echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4000fi
4001if test "${lt_cv_path_LD+set}" = set; then
4002  echo $ECHO_N "(cached) $ECHO_C" >&6
4003else
4004  if test -z "$LD"; then
4005  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4006  for ac_dir in $PATH; do
4007    IFS="$lt_save_ifs"
4008    test -z "$ac_dir" && ac_dir=.
4009    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4010      lt_cv_path_LD="$ac_dir/$ac_prog"
4011      # Check to see if the program is GNU ld.  I'd rather use --version,
4012      # but apparently some variants of GNU ld only accept -v.
4013      # Break only if it was the GNU/non-GNU ld that we prefer.
4014      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4015      *GNU* | *'with BFD'*)
4016	test "$with_gnu_ld" != no && break
4017	;;
4018      *)
4019	test "$with_gnu_ld" != yes && break
4020	;;
4021      esac
4022    fi
4023  done
4024  IFS="$lt_save_ifs"
4025else
4026  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4027fi
4028fi
4029
4030LD="$lt_cv_path_LD"
4031if test -n "$LD"; then
4032  { echo "$as_me:$LINENO: result: $LD" >&5
4033echo "${ECHO_T}$LD" >&6; }
4034else
4035  { echo "$as_me:$LINENO: result: no" >&5
4036echo "${ECHO_T}no" >&6; }
4037fi
4038test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4039echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4040   { (exit 1); exit 1; }; }
4041{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4042echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4043if test "${lt_cv_prog_gnu_ld+set}" = set; then
4044  echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
4046  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4047case `$LD -v 2>&1 </dev/null` in
4048*GNU* | *'with BFD'*)
4049  lt_cv_prog_gnu_ld=yes
4050  ;;
4051*)
4052  lt_cv_prog_gnu_ld=no
4053  ;;
4054esac
4055fi
4056{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4057echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4058with_gnu_ld=$lt_cv_prog_gnu_ld
4059
4060
4061{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4062echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4063if test "${lt_cv_ld_reload_flag+set}" = set; then
4064  echo $ECHO_N "(cached) $ECHO_C" >&6
4065else
4066  lt_cv_ld_reload_flag='-r'
4067fi
4068{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4069echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4070reload_flag=$lt_cv_ld_reload_flag
4071case $reload_flag in
4072"" | " "*) ;;
4073*) reload_flag=" $reload_flag" ;;
4074esac
4075reload_cmds='$LD$reload_flag -o $output$reload_objs'
4076case $host_os in
4077  darwin*)
4078    if test "$GCC" = yes; then
4079      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4080    else
4081      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4082    fi
4083    ;;
4084esac
4085
4086{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4087echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4088if test "${lt_cv_path_NM+set}" = set; then
4089  echo $ECHO_N "(cached) $ECHO_C" >&6
4090else
4091  if test -n "$NM"; then
4092  # Let the user override the test.
4093  lt_cv_path_NM="$NM"
4094else
4095  lt_nm_to_check="${ac_tool_prefix}nm"
4096  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4097    lt_nm_to_check="$lt_nm_to_check nm"
4098  fi
4099  for lt_tmp_nm in $lt_nm_to_check; do
4100    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4101    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4102      IFS="$lt_save_ifs"
4103      test -z "$ac_dir" && ac_dir=.
4104      tmp_nm="$ac_dir/$lt_tmp_nm"
4105      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4106	# Check to see if the nm accepts a BSD-compat flag.
4107	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4108	#   nm: unknown option "B" ignored
4109	# Tru64's nm complains that /dev/null is an invalid object file
4110	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4111	*/dev/null* | *'Invalid file or object type'*)
4112	  lt_cv_path_NM="$tmp_nm -B"
4113	  break
4114	  ;;
4115	*)
4116	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4117	  */dev/null*)
4118	    lt_cv_path_NM="$tmp_nm -p"
4119	    break
4120	    ;;
4121	  *)
4122	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4123	    continue # so that we can try to find one that supports BSD flags
4124	    ;;
4125	  esac
4126	  ;;
4127	esac
4128      fi
4129    done
4130    IFS="$lt_save_ifs"
4131  done
4132  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4133fi
4134fi
4135{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4136echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4137NM="$lt_cv_path_NM"
4138
4139{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4140echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4141LN_S=$as_ln_s
4142if test "$LN_S" = "ln -s"; then
4143  { echo "$as_me:$LINENO: result: yes" >&5
4144echo "${ECHO_T}yes" >&6; }
4145else
4146  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4147echo "${ECHO_T}no, using $LN_S" >&6; }
4148fi
4149
4150{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4151echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4152if test "${lt_cv_deplibs_check_method+set}" = set; then
4153  echo $ECHO_N "(cached) $ECHO_C" >&6
4154else
4155  lt_cv_file_magic_cmd='$MAGIC_CMD'
4156lt_cv_file_magic_test_file=
4157lt_cv_deplibs_check_method='unknown'
4158# Need to set the preceding variable on all platforms that support
4159# interlibrary dependencies.
4160# 'none' -- dependencies not supported.
4161# `unknown' -- same as none, but documents that we really don't know.
4162# 'pass_all' -- all dependencies passed with no checks.
4163# 'test_compile' -- check by making test program.
4164# 'file_magic [[regex]]' -- check by looking for files in library path
4165# which responds to the $file_magic_cmd with a given extended regex.
4166# If you have `file' or equivalent on your system and you're not sure
4167# whether `pass_all' will *always* work, you probably want this one.
4168
4169case $host_os in
4170aix[4-9]*)
4171  lt_cv_deplibs_check_method=pass_all
4172  ;;
4173
4174beos*)
4175  lt_cv_deplibs_check_method=pass_all
4176  ;;
4177
4178bsdi[45]*)
4179  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4180  lt_cv_file_magic_cmd='/usr/bin/file -L'
4181  lt_cv_file_magic_test_file=/shlib/libc.so
4182  ;;
4183
4184cygwin*)
4185  # func_win32_libid is a shell function defined in ltmain.sh
4186  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4187  lt_cv_file_magic_cmd='func_win32_libid'
4188  ;;
4189
4190mingw* | pw32*)
4191  # Base MSYS/MinGW do not provide the 'file' command needed by
4192  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4193  # unless we find 'file', for example because we are cross-compiling.
4194  if ( file / ) >/dev/null 2>&1; then
4195    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4196    lt_cv_file_magic_cmd='func_win32_libid'
4197  else
4198    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4199    lt_cv_file_magic_cmd='$OBJDUMP -f'
4200  fi
4201  ;;
4202
4203darwin* | rhapsody*)
4204  lt_cv_deplibs_check_method=pass_all
4205  ;;
4206
4207freebsd* | dragonfly*)
4208  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4209    case $host_cpu in
4210    i*86 )
4211      # Not sure whether the presence of OpenBSD here was a mistake.
4212      # Let's accept both of them until this is cleared up.
4213      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4214      lt_cv_file_magic_cmd=/usr/bin/file
4215      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4216      ;;
4217    esac
4218  else
4219    lt_cv_deplibs_check_method=pass_all
4220  fi
4221  ;;
4222
4223gnu*)
4224  lt_cv_deplibs_check_method=pass_all
4225  ;;
4226
4227hpux10.20* | hpux11*)
4228  lt_cv_file_magic_cmd=/usr/bin/file
4229  case $host_cpu in
4230  ia64*)
4231    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4232    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4233    ;;
4234  hppa*64*)
4235    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]'
4236    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4237    ;;
4238  *)
4239    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4240    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4241    ;;
4242  esac
4243  ;;
4244
4245interix[3-9]*)
4246  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4247  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4248  ;;
4249
4250irix5* | irix6* | nonstopux*)
4251  case $LD in
4252  *-32|*"-32 ") libmagic=32-bit;;
4253  *-n32|*"-n32 ") libmagic=N32;;
4254  *-64|*"-64 ") libmagic=64-bit;;
4255  *) libmagic=never-match;;
4256  esac
4257  lt_cv_deplibs_check_method=pass_all
4258  ;;
4259
4260# This must be Linux ELF.
4261linux* | k*bsd*-gnu)
4262  lt_cv_deplibs_check_method=pass_all
4263  ;;
4264
4265netbsd* | netbsdelf*-gnu)
4266  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4267    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4268  else
4269    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4270  fi
4271  ;;
4272
4273newos6*)
4274  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4275  lt_cv_file_magic_cmd=/usr/bin/file
4276  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4277  ;;
4278
4279nto-qnx*)
4280  lt_cv_deplibs_check_method=unknown
4281  ;;
4282
4283openbsd*)
4284  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4285    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4286  else
4287    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4288  fi
4289  ;;
4290
4291osf3* | osf4* | osf5*)
4292  lt_cv_deplibs_check_method=pass_all
4293  ;;
4294
4295rdos*)
4296  lt_cv_deplibs_check_method=pass_all
4297  ;;
4298
4299solaris*)
4300  lt_cv_deplibs_check_method=pass_all
4301  ;;
4302
4303sysv4 | sysv4.3*)
4304  case $host_vendor in
4305  motorola)
4306    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]'
4307    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4308    ;;
4309  ncr)
4310    lt_cv_deplibs_check_method=pass_all
4311    ;;
4312  sequent)
4313    lt_cv_file_magic_cmd='/bin/file'
4314    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4315    ;;
4316  sni)
4317    lt_cv_file_magic_cmd='/bin/file'
4318    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4319    lt_cv_file_magic_test_file=/lib/libc.so
4320    ;;
4321  siemens)
4322    lt_cv_deplibs_check_method=pass_all
4323    ;;
4324  pc)
4325    lt_cv_deplibs_check_method=pass_all
4326    ;;
4327  esac
4328  ;;
4329
4330sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4331  lt_cv_deplibs_check_method=pass_all
4332  ;;
4333esac
4334
4335fi
4336{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4337echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4338file_magic_cmd=$lt_cv_file_magic_cmd
4339deplibs_check_method=$lt_cv_deplibs_check_method
4340test -z "$deplibs_check_method" && deplibs_check_method=unknown
4341
4342
4343
4344
4345# If no C compiler was specified, use CC.
4346LTCC=${LTCC-"$CC"}
4347
4348# If no C compiler flags were specified, use CFLAGS.
4349LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4350
4351# Allow CC to be a program name with arguments.
4352compiler=$CC
4353
4354
4355# Check whether --enable-libtool-lock was given.
4356if test "${enable_libtool_lock+set}" = set; then
4357  enableval=$enable_libtool_lock;
4358fi
4359
4360test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4361
4362# Some flags need to be propagated to the compiler or linker for good
4363# libtool support.
4364case $host in
4365ia64-*-hpux*)
4366  # Find out which ABI we are using.
4367  echo 'int i;' > conftest.$ac_ext
4368  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4369  (eval $ac_compile) 2>&5
4370  ac_status=$?
4371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372  (exit $ac_status); }; then
4373    case `/usr/bin/file conftest.$ac_objext` in
4374    *ELF-32*)
4375      HPUX_IA64_MODE="32"
4376      ;;
4377    *ELF-64*)
4378      HPUX_IA64_MODE="64"
4379      ;;
4380    esac
4381  fi
4382  rm -rf conftest*
4383  ;;
4384*-*-irix6*)
4385  # Find out which ABI we are using.
4386  echo '#line 4386 "configure"' > conftest.$ac_ext
4387  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388  (eval $ac_compile) 2>&5
4389  ac_status=$?
4390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391  (exit $ac_status); }; then
4392   if test "$lt_cv_prog_gnu_ld" = yes; then
4393    case `/usr/bin/file conftest.$ac_objext` in
4394    *32-bit*)
4395      LD="${LD-ld} -melf32bsmip"
4396      ;;
4397    *N32*)
4398      LD="${LD-ld} -melf32bmipn32"
4399      ;;
4400    *64-bit*)
4401      LD="${LD-ld} -melf64bmip"
4402      ;;
4403    esac
4404   else
4405    case `/usr/bin/file conftest.$ac_objext` in
4406    *32-bit*)
4407      LD="${LD-ld} -32"
4408      ;;
4409    *N32*)
4410      LD="${LD-ld} -n32"
4411      ;;
4412    *64-bit*)
4413      LD="${LD-ld} -64"
4414      ;;
4415    esac
4416   fi
4417  fi
4418  rm -rf conftest*
4419  ;;
4420
4421x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4422s390*-*linux*|sparc*-*linux*)
4423  # Find out which ABI we are using.
4424  echo 'int i;' > conftest.$ac_ext
4425  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4426  (eval $ac_compile) 2>&5
4427  ac_status=$?
4428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429  (exit $ac_status); }; then
4430    case `/usr/bin/file conftest.o` in
4431    *32-bit*)
4432      case $host in
4433        x86_64-*kfreebsd*-gnu)
4434          LD="${LD-ld} -m elf_i386_fbsd"
4435          ;;
4436        x86_64-*linux*)
4437          LD="${LD-ld} -m elf_i386"
4438          ;;
4439        ppc64-*linux*|powerpc64-*linux*)
4440          LD="${LD-ld} -m elf32ppclinux"
4441          ;;
4442        s390x-*linux*)
4443          LD="${LD-ld} -m elf_s390"
4444          ;;
4445        sparc64-*linux*)
4446          LD="${LD-ld} -m elf32_sparc"
4447          ;;
4448      esac
4449      ;;
4450    *64-bit*)
4451      case $host in
4452        x86_64-*kfreebsd*-gnu)
4453          LD="${LD-ld} -m elf_x86_64_fbsd"
4454          ;;
4455        x86_64-*linux*)
4456          LD="${LD-ld} -m elf_x86_64"
4457          ;;
4458        ppc*-*linux*|powerpc*-*linux*)
4459          LD="${LD-ld} -m elf64ppc"
4460          ;;
4461        s390*-*linux*)
4462          LD="${LD-ld} -m elf64_s390"
4463          ;;
4464        sparc*-*linux*)
4465          LD="${LD-ld} -m elf64_sparc"
4466          ;;
4467      esac
4468      ;;
4469    esac
4470  fi
4471  rm -rf conftest*
4472  ;;
4473
4474*-*-sco3.2v5*)
4475  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4476  SAVE_CFLAGS="$CFLAGS"
4477  CFLAGS="$CFLAGS -belf"
4478  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4479echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4480if test "${lt_cv_cc_needs_belf+set}" = set; then
4481  echo $ECHO_N "(cached) $ECHO_C" >&6
4482else
4483  ac_ext=c
4484ac_cpp='$CPP $CPPFLAGS'
4485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488
4489     cat >conftest.$ac_ext <<_ACEOF
4490/* confdefs.h.  */
4491_ACEOF
4492cat confdefs.h >>conftest.$ac_ext
4493cat >>conftest.$ac_ext <<_ACEOF
4494/* end confdefs.h.  */
4495
4496int
4497main ()
4498{
4499
4500  ;
4501  return 0;
4502}
4503_ACEOF
4504rm -f conftest.$ac_objext conftest$ac_exeext
4505if { (ac_try="$ac_link"
4506case "(($ac_try" in
4507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508  *) ac_try_echo=$ac_try;;
4509esac
4510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511  (eval "$ac_link") 2>conftest.er1
4512  ac_status=$?
4513  grep -v '^ *+' conftest.er1 >conftest.err
4514  rm -f conftest.er1
4515  cat conftest.err >&5
4516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517  (exit $ac_status); } && {
4518	 test -z "$ac_c_werror_flag" ||
4519	 test ! -s conftest.err
4520       } && test -s conftest$ac_exeext &&
4521       $as_test_x conftest$ac_exeext; then
4522  lt_cv_cc_needs_belf=yes
4523else
4524  echo "$as_me: failed program was:" >&5
4525sed 's/^/| /' conftest.$ac_ext >&5
4526
4527	lt_cv_cc_needs_belf=no
4528fi
4529
4530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4531      conftest$ac_exeext conftest.$ac_ext
4532     ac_ext=c
4533ac_cpp='$CPP $CPPFLAGS'
4534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537
4538fi
4539{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4540echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4541  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4542    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4543    CFLAGS="$SAVE_CFLAGS"
4544  fi
4545  ;;
4546sparc*-*solaris*)
4547  # Find out which ABI we are using.
4548  echo 'int i;' > conftest.$ac_ext
4549  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550  (eval $ac_compile) 2>&5
4551  ac_status=$?
4552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553  (exit $ac_status); }; then
4554    case `/usr/bin/file conftest.o` in
4555    *64-bit*)
4556      case $lt_cv_prog_gnu_ld in
4557      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4558      *)
4559        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4560	  LD="${LD-ld} -64"
4561	fi
4562	;;
4563      esac
4564      ;;
4565    esac
4566  fi
4567  rm -rf conftest*
4568  ;;
4569
4570
4571esac
4572
4573need_locks="$enable_libtool_lock"
4574
4575
4576ac_ext=c
4577ac_cpp='$CPP $CPPFLAGS'
4578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4582echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4583# On Suns, sometimes $CPP names a directory.
4584if test -n "$CPP" && test -d "$CPP"; then
4585  CPP=
4586fi
4587if test -z "$CPP"; then
4588  if test "${ac_cv_prog_CPP+set}" = set; then
4589  echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591      # Double quotes because CPP needs to be expanded
4592    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4593    do
4594      ac_preproc_ok=false
4595for ac_c_preproc_warn_flag in '' yes
4596do
4597  # Use a header file that comes with gcc, so configuring glibc
4598  # with a fresh cross-compiler works.
4599  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4600  # <limits.h> exists even on freestanding compilers.
4601  # On the NeXT, cc -E runs the code through the compiler's parser,
4602  # not just through cpp. "Syntax error" is here to catch this case.
4603  cat >conftest.$ac_ext <<_ACEOF
4604/* confdefs.h.  */
4605_ACEOF
4606cat confdefs.h >>conftest.$ac_ext
4607cat >>conftest.$ac_ext <<_ACEOF
4608/* end confdefs.h.  */
4609#ifdef __STDC__
4610# include <limits.h>
4611#else
4612# include <assert.h>
4613#endif
4614		     Syntax error
4615_ACEOF
4616if { (ac_try="$ac_cpp conftest.$ac_ext"
4617case "(($ac_try" in
4618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619  *) ac_try_echo=$ac_try;;
4620esac
4621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4623  ac_status=$?
4624  grep -v '^ *+' conftest.er1 >conftest.err
4625  rm -f conftest.er1
4626  cat conftest.err >&5
4627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628  (exit $ac_status); } >/dev/null && {
4629	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4630	 test ! -s conftest.err
4631       }; then
4632  :
4633else
4634  echo "$as_me: failed program was:" >&5
4635sed 's/^/| /' conftest.$ac_ext >&5
4636
4637  # Broken: fails on valid input.
4638continue
4639fi
4640
4641rm -f conftest.err conftest.$ac_ext
4642
4643  # OK, works on sane cases.  Now check whether nonexistent headers
4644  # can be detected and how.
4645  cat >conftest.$ac_ext <<_ACEOF
4646/* confdefs.h.  */
4647_ACEOF
4648cat confdefs.h >>conftest.$ac_ext
4649cat >>conftest.$ac_ext <<_ACEOF
4650/* end confdefs.h.  */
4651#include <ac_nonexistent.h>
4652_ACEOF
4653if { (ac_try="$ac_cpp conftest.$ac_ext"
4654case "(($ac_try" in
4655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656  *) ac_try_echo=$ac_try;;
4657esac
4658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4660  ac_status=$?
4661  grep -v '^ *+' conftest.er1 >conftest.err
4662  rm -f conftest.er1
4663  cat conftest.err >&5
4664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665  (exit $ac_status); } >/dev/null && {
4666	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4667	 test ! -s conftest.err
4668       }; then
4669  # Broken: success on invalid input.
4670continue
4671else
4672  echo "$as_me: failed program was:" >&5
4673sed 's/^/| /' conftest.$ac_ext >&5
4674
4675  # Passes both tests.
4676ac_preproc_ok=:
4677break
4678fi
4679
4680rm -f conftest.err conftest.$ac_ext
4681
4682done
4683# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4684rm -f conftest.err conftest.$ac_ext
4685if $ac_preproc_ok; then
4686  break
4687fi
4688
4689    done
4690    ac_cv_prog_CPP=$CPP
4691
4692fi
4693  CPP=$ac_cv_prog_CPP
4694else
4695  ac_cv_prog_CPP=$CPP
4696fi
4697{ echo "$as_me:$LINENO: result: $CPP" >&5
4698echo "${ECHO_T}$CPP" >&6; }
4699ac_preproc_ok=false
4700for ac_c_preproc_warn_flag in '' yes
4701do
4702  # Use a header file that comes with gcc, so configuring glibc
4703  # with a fresh cross-compiler works.
4704  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4705  # <limits.h> exists even on freestanding compilers.
4706  # On the NeXT, cc -E runs the code through the compiler's parser,
4707  # not just through cpp. "Syntax error" is here to catch this case.
4708  cat >conftest.$ac_ext <<_ACEOF
4709/* confdefs.h.  */
4710_ACEOF
4711cat confdefs.h >>conftest.$ac_ext
4712cat >>conftest.$ac_ext <<_ACEOF
4713/* end confdefs.h.  */
4714#ifdef __STDC__
4715# include <limits.h>
4716#else
4717# include <assert.h>
4718#endif
4719		     Syntax error
4720_ACEOF
4721if { (ac_try="$ac_cpp conftest.$ac_ext"
4722case "(($ac_try" in
4723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724  *) ac_try_echo=$ac_try;;
4725esac
4726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4728  ac_status=$?
4729  grep -v '^ *+' conftest.er1 >conftest.err
4730  rm -f conftest.er1
4731  cat conftest.err >&5
4732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733  (exit $ac_status); } >/dev/null && {
4734	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4735	 test ! -s conftest.err
4736       }; then
4737  :
4738else
4739  echo "$as_me: failed program was:" >&5
4740sed 's/^/| /' conftest.$ac_ext >&5
4741
4742  # Broken: fails on valid input.
4743continue
4744fi
4745
4746rm -f conftest.err conftest.$ac_ext
4747
4748  # OK, works on sane cases.  Now check whether nonexistent headers
4749  # can be detected and how.
4750  cat >conftest.$ac_ext <<_ACEOF
4751/* confdefs.h.  */
4752_ACEOF
4753cat confdefs.h >>conftest.$ac_ext
4754cat >>conftest.$ac_ext <<_ACEOF
4755/* end confdefs.h.  */
4756#include <ac_nonexistent.h>
4757_ACEOF
4758if { (ac_try="$ac_cpp conftest.$ac_ext"
4759case "(($ac_try" in
4760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761  *) ac_try_echo=$ac_try;;
4762esac
4763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4765  ac_status=$?
4766  grep -v '^ *+' conftest.er1 >conftest.err
4767  rm -f conftest.er1
4768  cat conftest.err >&5
4769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770  (exit $ac_status); } >/dev/null && {
4771	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4772	 test ! -s conftest.err
4773       }; then
4774  # Broken: success on invalid input.
4775continue
4776else
4777  echo "$as_me: failed program was:" >&5
4778sed 's/^/| /' conftest.$ac_ext >&5
4779
4780  # Passes both tests.
4781ac_preproc_ok=:
4782break
4783fi
4784
4785rm -f conftest.err conftest.$ac_ext
4786
4787done
4788# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4789rm -f conftest.err conftest.$ac_ext
4790if $ac_preproc_ok; then
4791  :
4792else
4793  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4794See \`config.log' for more details." >&5
4795echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4796See \`config.log' for more details." >&2;}
4797   { (exit 1); exit 1; }; }
4798fi
4799
4800ac_ext=c
4801ac_cpp='$CPP $CPPFLAGS'
4802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805
4806
4807{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4808echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4809if test "${ac_cv_header_stdc+set}" = set; then
4810  echo $ECHO_N "(cached) $ECHO_C" >&6
4811else
4812  cat >conftest.$ac_ext <<_ACEOF
4813/* confdefs.h.  */
4814_ACEOF
4815cat confdefs.h >>conftest.$ac_ext
4816cat >>conftest.$ac_ext <<_ACEOF
4817/* end confdefs.h.  */
4818#include <stdlib.h>
4819#include <stdarg.h>
4820#include <string.h>
4821#include <float.h>
4822
4823int
4824main ()
4825{
4826
4827  ;
4828  return 0;
4829}
4830_ACEOF
4831rm -f conftest.$ac_objext
4832if { (ac_try="$ac_compile"
4833case "(($ac_try" in
4834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835  *) ac_try_echo=$ac_try;;
4836esac
4837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4838  (eval "$ac_compile") 2>conftest.er1
4839  ac_status=$?
4840  grep -v '^ *+' conftest.er1 >conftest.err
4841  rm -f conftest.er1
4842  cat conftest.err >&5
4843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844  (exit $ac_status); } && {
4845	 test -z "$ac_c_werror_flag" ||
4846	 test ! -s conftest.err
4847       } && test -s conftest.$ac_objext; then
4848  ac_cv_header_stdc=yes
4849else
4850  echo "$as_me: failed program was:" >&5
4851sed 's/^/| /' conftest.$ac_ext >&5
4852
4853	ac_cv_header_stdc=no
4854fi
4855
4856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857
4858if test $ac_cv_header_stdc = yes; then
4859  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4860  cat >conftest.$ac_ext <<_ACEOF
4861/* confdefs.h.  */
4862_ACEOF
4863cat confdefs.h >>conftest.$ac_ext
4864cat >>conftest.$ac_ext <<_ACEOF
4865/* end confdefs.h.  */
4866#include <string.h>
4867
4868_ACEOF
4869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4870  $EGREP "memchr" >/dev/null 2>&1; then
4871  :
4872else
4873  ac_cv_header_stdc=no
4874fi
4875rm -f conftest*
4876
4877fi
4878
4879if test $ac_cv_header_stdc = yes; then
4880  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4881  cat >conftest.$ac_ext <<_ACEOF
4882/* confdefs.h.  */
4883_ACEOF
4884cat confdefs.h >>conftest.$ac_ext
4885cat >>conftest.$ac_ext <<_ACEOF
4886/* end confdefs.h.  */
4887#include <stdlib.h>
4888
4889_ACEOF
4890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891  $EGREP "free" >/dev/null 2>&1; then
4892  :
4893else
4894  ac_cv_header_stdc=no
4895fi
4896rm -f conftest*
4897
4898fi
4899
4900if test $ac_cv_header_stdc = yes; then
4901  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4902  if test "$cross_compiling" = yes; then
4903  :
4904else
4905  cat >conftest.$ac_ext <<_ACEOF
4906/* confdefs.h.  */
4907_ACEOF
4908cat confdefs.h >>conftest.$ac_ext
4909cat >>conftest.$ac_ext <<_ACEOF
4910/* end confdefs.h.  */
4911#include <ctype.h>
4912#include <stdlib.h>
4913#if ((' ' & 0x0FF) == 0x020)
4914# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4915# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4916#else
4917# define ISLOWER(c) \
4918		   (('a' <= (c) && (c) <= 'i') \
4919		     || ('j' <= (c) && (c) <= 'r') \
4920		     || ('s' <= (c) && (c) <= 'z'))
4921# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4922#endif
4923
4924#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4925int
4926main ()
4927{
4928  int i;
4929  for (i = 0; i < 256; i++)
4930    if (XOR (islower (i), ISLOWER (i))
4931	|| toupper (i) != TOUPPER (i))
4932      return 2;
4933  return 0;
4934}
4935_ACEOF
4936rm -f conftest$ac_exeext
4937if { (ac_try="$ac_link"
4938case "(($ac_try" in
4939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940  *) ac_try_echo=$ac_try;;
4941esac
4942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943  (eval "$ac_link") 2>&5
4944  ac_status=$?
4945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4947  { (case "(($ac_try" in
4948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949  *) ac_try_echo=$ac_try;;
4950esac
4951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4952  (eval "$ac_try") 2>&5
4953  ac_status=$?
4954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955  (exit $ac_status); }; }; then
4956  :
4957else
4958  echo "$as_me: program exited with status $ac_status" >&5
4959echo "$as_me: failed program was:" >&5
4960sed 's/^/| /' conftest.$ac_ext >&5
4961
4962( exit $ac_status )
4963ac_cv_header_stdc=no
4964fi
4965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4966fi
4967
4968
4969fi
4970fi
4971{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4972echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4973if test $ac_cv_header_stdc = yes; then
4974
4975cat >>confdefs.h <<\_ACEOF
4976#define STDC_HEADERS 1
4977_ACEOF
4978
4979fi
4980
4981# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4992		  inttypes.h stdint.h unistd.h
4993do
4994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4995{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4997if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4998  echo $ECHO_N "(cached) $ECHO_C" >&6
4999else
5000  cat >conftest.$ac_ext <<_ACEOF
5001/* confdefs.h.  */
5002_ACEOF
5003cat confdefs.h >>conftest.$ac_ext
5004cat >>conftest.$ac_ext <<_ACEOF
5005/* end confdefs.h.  */
5006$ac_includes_default
5007
5008#include <$ac_header>
5009_ACEOF
5010rm -f conftest.$ac_objext
5011if { (ac_try="$ac_compile"
5012case "(($ac_try" in
5013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014  *) ac_try_echo=$ac_try;;
5015esac
5016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017  (eval "$ac_compile") 2>conftest.er1
5018  ac_status=$?
5019  grep -v '^ *+' conftest.er1 >conftest.err
5020  rm -f conftest.er1
5021  cat conftest.err >&5
5022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023  (exit $ac_status); } && {
5024	 test -z "$ac_c_werror_flag" ||
5025	 test ! -s conftest.err
5026       } && test -s conftest.$ac_objext; then
5027  eval "$as_ac_Header=yes"
5028else
5029  echo "$as_me: failed program was:" >&5
5030sed 's/^/| /' conftest.$ac_ext >&5
5031
5032	eval "$as_ac_Header=no"
5033fi
5034
5035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036fi
5037ac_res=`eval echo '${'$as_ac_Header'}'`
5038	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5039echo "${ECHO_T}$ac_res" >&6; }
5040if test `eval echo '${'$as_ac_Header'}'` = yes; then
5041  cat >>confdefs.h <<_ACEOF
5042#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5043_ACEOF
5044
5045fi
5046
5047done
5048
5049
5050
5051for ac_header in dlfcn.h
5052do
5053as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5055  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5058  echo $ECHO_N "(cached) $ECHO_C" >&6
5059fi
5060ac_res=`eval echo '${'$as_ac_Header'}'`
5061	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5062echo "${ECHO_T}$ac_res" >&6; }
5063else
5064  # Is the header compilable?
5065{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5067cat >conftest.$ac_ext <<_ACEOF
5068/* confdefs.h.  */
5069_ACEOF
5070cat confdefs.h >>conftest.$ac_ext
5071cat >>conftest.$ac_ext <<_ACEOF
5072/* end confdefs.h.  */
5073$ac_includes_default
5074#include <$ac_header>
5075_ACEOF
5076rm -f conftest.$ac_objext
5077if { (ac_try="$ac_compile"
5078case "(($ac_try" in
5079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080  *) ac_try_echo=$ac_try;;
5081esac
5082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083  (eval "$ac_compile") 2>conftest.er1
5084  ac_status=$?
5085  grep -v '^ *+' conftest.er1 >conftest.err
5086  rm -f conftest.er1
5087  cat conftest.err >&5
5088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089  (exit $ac_status); } && {
5090	 test -z "$ac_c_werror_flag" ||
5091	 test ! -s conftest.err
5092       } && test -s conftest.$ac_objext; then
5093  ac_header_compiler=yes
5094else
5095  echo "$as_me: failed program was:" >&5
5096sed 's/^/| /' conftest.$ac_ext >&5
5097
5098	ac_header_compiler=no
5099fi
5100
5101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5103echo "${ECHO_T}$ac_header_compiler" >&6; }
5104
5105# Is the header present?
5106{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5107echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5108cat >conftest.$ac_ext <<_ACEOF
5109/* confdefs.h.  */
5110_ACEOF
5111cat confdefs.h >>conftest.$ac_ext
5112cat >>conftest.$ac_ext <<_ACEOF
5113/* end confdefs.h.  */
5114#include <$ac_header>
5115_ACEOF
5116if { (ac_try="$ac_cpp conftest.$ac_ext"
5117case "(($ac_try" in
5118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119  *) ac_try_echo=$ac_try;;
5120esac
5121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5122  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5123  ac_status=$?
5124  grep -v '^ *+' conftest.er1 >conftest.err
5125  rm -f conftest.er1
5126  cat conftest.err >&5
5127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128  (exit $ac_status); } >/dev/null && {
5129	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5130	 test ! -s conftest.err
5131       }; then
5132  ac_header_preproc=yes
5133else
5134  echo "$as_me: failed program was:" >&5
5135sed 's/^/| /' conftest.$ac_ext >&5
5136
5137  ac_header_preproc=no
5138fi
5139
5140rm -f conftest.err conftest.$ac_ext
5141{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5142echo "${ECHO_T}$ac_header_preproc" >&6; }
5143
5144# So?  What about this header?
5145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5146  yes:no: )
5147    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5148echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5149    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5150echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5151    ac_header_preproc=yes
5152    ;;
5153  no:yes:* )
5154    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5155echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5156    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5157echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5158    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5159echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5160    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5161echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5162    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5163echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5164    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5165echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5166
5167    ;;
5168esac
5169{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5172  echo $ECHO_N "(cached) $ECHO_C" >&6
5173else
5174  eval "$as_ac_Header=\$ac_header_preproc"
5175fi
5176ac_res=`eval echo '${'$as_ac_Header'}'`
5177	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5178echo "${ECHO_T}$ac_res" >&6; }
5179
5180fi
5181if test `eval echo '${'$as_ac_Header'}'` = yes; then
5182  cat >>confdefs.h <<_ACEOF
5183#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5184_ACEOF
5185
5186fi
5187
5188done
5189
5190ac_ext=cpp
5191ac_cpp='$CXXCPP $CPPFLAGS'
5192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5195if test -z "$CXX"; then
5196  if test -n "$CCC"; then
5197    CXX=$CCC
5198  else
5199    if test -n "$ac_tool_prefix"; then
5200  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5201  do
5202    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5203set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5206if test "${ac_cv_prog_CXX+set}" = set; then
5207  echo $ECHO_N "(cached) $ECHO_C" >&6
5208else
5209  if test -n "$CXX"; then
5210  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5211else
5212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213for as_dir in $PATH
5214do
5215  IFS=$as_save_IFS
5216  test -z "$as_dir" && as_dir=.
5217  for ac_exec_ext in '' $ac_executable_extensions; do
5218  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5220    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5221    break 2
5222  fi
5223done
5224done
5225IFS=$as_save_IFS
5226
5227fi
5228fi
5229CXX=$ac_cv_prog_CXX
5230if test -n "$CXX"; then
5231  { echo "$as_me:$LINENO: result: $CXX" >&5
5232echo "${ECHO_T}$CXX" >&6; }
5233else
5234  { echo "$as_me:$LINENO: result: no" >&5
5235echo "${ECHO_T}no" >&6; }
5236fi
5237
5238
5239    test -n "$CXX" && break
5240  done
5241fi
5242if test -z "$CXX"; then
5243  ac_ct_CXX=$CXX
5244  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5245do
5246  # Extract the first word of "$ac_prog", so it can be a program name with args.
5247set dummy $ac_prog; ac_word=$2
5248{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5250if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5251  echo $ECHO_N "(cached) $ECHO_C" >&6
5252else
5253  if test -n "$ac_ct_CXX"; then
5254  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5255else
5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257for as_dir in $PATH
5258do
5259  IFS=$as_save_IFS
5260  test -z "$as_dir" && as_dir=.
5261  for ac_exec_ext in '' $ac_executable_extensions; do
5262  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263    ac_cv_prog_ac_ct_CXX="$ac_prog"
5264    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265    break 2
5266  fi
5267done
5268done
5269IFS=$as_save_IFS
5270
5271fi
5272fi
5273ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5274if test -n "$ac_ct_CXX"; then
5275  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5276echo "${ECHO_T}$ac_ct_CXX" >&6; }
5277else
5278  { echo "$as_me:$LINENO: result: no" >&5
5279echo "${ECHO_T}no" >&6; }
5280fi
5281
5282
5283  test -n "$ac_ct_CXX" && break
5284done
5285
5286  if test "x$ac_ct_CXX" = x; then
5287    CXX="g++"
5288  else
5289    case $cross_compiling:$ac_tool_warned in
5290yes:)
5291{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5292whose name does not start with the host triplet.  If you think this
5293configuration is useful to you, please write to autoconf@gnu.org." >&5
5294echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5295whose name does not start with the host triplet.  If you think this
5296configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5297ac_tool_warned=yes ;;
5298esac
5299    CXX=$ac_ct_CXX
5300  fi
5301fi
5302
5303  fi
5304fi
5305# Provide some information about the compiler.
5306echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5307ac_compiler=`set X $ac_compile; echo $2`
5308{ (ac_try="$ac_compiler --version >&5"
5309case "(($ac_try" in
5310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311  *) ac_try_echo=$ac_try;;
5312esac
5313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5314  (eval "$ac_compiler --version >&5") 2>&5
5315  ac_status=$?
5316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317  (exit $ac_status); }
5318{ (ac_try="$ac_compiler -v >&5"
5319case "(($ac_try" in
5320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321  *) ac_try_echo=$ac_try;;
5322esac
5323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324  (eval "$ac_compiler -v >&5") 2>&5
5325  ac_status=$?
5326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327  (exit $ac_status); }
5328{ (ac_try="$ac_compiler -V >&5"
5329case "(($ac_try" in
5330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331  *) ac_try_echo=$ac_try;;
5332esac
5333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334  (eval "$ac_compiler -V >&5") 2>&5
5335  ac_status=$?
5336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337  (exit $ac_status); }
5338
5339{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5340echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5341if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5342  echo $ECHO_N "(cached) $ECHO_C" >&6
5343else
5344  cat >conftest.$ac_ext <<_ACEOF
5345/* confdefs.h.  */
5346_ACEOF
5347cat confdefs.h >>conftest.$ac_ext
5348cat >>conftest.$ac_ext <<_ACEOF
5349/* end confdefs.h.  */
5350
5351int
5352main ()
5353{
5354#ifndef __GNUC__
5355       choke me
5356#endif
5357
5358  ;
5359  return 0;
5360}
5361_ACEOF
5362rm -f conftest.$ac_objext
5363if { (ac_try="$ac_compile"
5364case "(($ac_try" in
5365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366  *) ac_try_echo=$ac_try;;
5367esac
5368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369  (eval "$ac_compile") 2>conftest.er1
5370  ac_status=$?
5371  grep -v '^ *+' conftest.er1 >conftest.err
5372  rm -f conftest.er1
5373  cat conftest.err >&5
5374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375  (exit $ac_status); } && {
5376	 test -z "$ac_cxx_werror_flag" ||
5377	 test ! -s conftest.err
5378       } && test -s conftest.$ac_objext; then
5379  ac_compiler_gnu=yes
5380else
5381  echo "$as_me: failed program was:" >&5
5382sed 's/^/| /' conftest.$ac_ext >&5
5383
5384	ac_compiler_gnu=no
5385fi
5386
5387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5389
5390fi
5391{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5392echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5393GXX=`test $ac_compiler_gnu = yes && echo yes`
5394ac_test_CXXFLAGS=${CXXFLAGS+set}
5395ac_save_CXXFLAGS=$CXXFLAGS
5396{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5397echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5398if test "${ac_cv_prog_cxx_g+set}" = set; then
5399  echo $ECHO_N "(cached) $ECHO_C" >&6
5400else
5401  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5402   ac_cxx_werror_flag=yes
5403   ac_cv_prog_cxx_g=no
5404   CXXFLAGS="-g"
5405   cat >conftest.$ac_ext <<_ACEOF
5406/* confdefs.h.  */
5407_ACEOF
5408cat confdefs.h >>conftest.$ac_ext
5409cat >>conftest.$ac_ext <<_ACEOF
5410/* end confdefs.h.  */
5411
5412int
5413main ()
5414{
5415
5416  ;
5417  return 0;
5418}
5419_ACEOF
5420rm -f conftest.$ac_objext
5421if { (ac_try="$ac_compile"
5422case "(($ac_try" in
5423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424  *) ac_try_echo=$ac_try;;
5425esac
5426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427  (eval "$ac_compile") 2>conftest.er1
5428  ac_status=$?
5429  grep -v '^ *+' conftest.er1 >conftest.err
5430  rm -f conftest.er1
5431  cat conftest.err >&5
5432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433  (exit $ac_status); } && {
5434	 test -z "$ac_cxx_werror_flag" ||
5435	 test ! -s conftest.err
5436       } && test -s conftest.$ac_objext; then
5437  ac_cv_prog_cxx_g=yes
5438else
5439  echo "$as_me: failed program was:" >&5
5440sed 's/^/| /' conftest.$ac_ext >&5
5441
5442	CXXFLAGS=""
5443      cat >conftest.$ac_ext <<_ACEOF
5444/* confdefs.h.  */
5445_ACEOF
5446cat confdefs.h >>conftest.$ac_ext
5447cat >>conftest.$ac_ext <<_ACEOF
5448/* end confdefs.h.  */
5449
5450int
5451main ()
5452{
5453
5454  ;
5455  return 0;
5456}
5457_ACEOF
5458rm -f conftest.$ac_objext
5459if { (ac_try="$ac_compile"
5460case "(($ac_try" in
5461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462  *) ac_try_echo=$ac_try;;
5463esac
5464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465  (eval "$ac_compile") 2>conftest.er1
5466  ac_status=$?
5467  grep -v '^ *+' conftest.er1 >conftest.err
5468  rm -f conftest.er1
5469  cat conftest.err >&5
5470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471  (exit $ac_status); } && {
5472	 test -z "$ac_cxx_werror_flag" ||
5473	 test ! -s conftest.err
5474       } && test -s conftest.$ac_objext; then
5475  :
5476else
5477  echo "$as_me: failed program was:" >&5
5478sed 's/^/| /' conftest.$ac_ext >&5
5479
5480	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5481	 CXXFLAGS="-g"
5482	 cat >conftest.$ac_ext <<_ACEOF
5483/* confdefs.h.  */
5484_ACEOF
5485cat confdefs.h >>conftest.$ac_ext
5486cat >>conftest.$ac_ext <<_ACEOF
5487/* end confdefs.h.  */
5488
5489int
5490main ()
5491{
5492
5493  ;
5494  return 0;
5495}
5496_ACEOF
5497rm -f conftest.$ac_objext
5498if { (ac_try="$ac_compile"
5499case "(($ac_try" in
5500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501  *) ac_try_echo=$ac_try;;
5502esac
5503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504  (eval "$ac_compile") 2>conftest.er1
5505  ac_status=$?
5506  grep -v '^ *+' conftest.er1 >conftest.err
5507  rm -f conftest.er1
5508  cat conftest.err >&5
5509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510  (exit $ac_status); } && {
5511	 test -z "$ac_cxx_werror_flag" ||
5512	 test ! -s conftest.err
5513       } && test -s conftest.$ac_objext; then
5514  ac_cv_prog_cxx_g=yes
5515else
5516  echo "$as_me: failed program was:" >&5
5517sed 's/^/| /' conftest.$ac_ext >&5
5518
5519
5520fi
5521
5522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523fi
5524
5525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526fi
5527
5528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5530fi
5531{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5532echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5533if test "$ac_test_CXXFLAGS" = set; then
5534  CXXFLAGS=$ac_save_CXXFLAGS
5535elif test $ac_cv_prog_cxx_g = yes; then
5536  if test "$GXX" = yes; then
5537    CXXFLAGS="-g -O2"
5538  else
5539    CXXFLAGS="-g"
5540  fi
5541else
5542  if test "$GXX" = yes; then
5543    CXXFLAGS="-O2"
5544  else
5545    CXXFLAGS=
5546  fi
5547fi
5548ac_ext=cpp
5549ac_cpp='$CXXCPP $CPPFLAGS'
5550ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5551ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5552ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5553
5554depcc="$CXX"  am_compiler_list=
5555
5556{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5557echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5558if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5559  echo $ECHO_N "(cached) $ECHO_C" >&6
5560else
5561  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5562  # We make a subdir and do the tests there.  Otherwise we can end up
5563  # making bogus files that we don't know about and never remove.  For
5564  # instance it was reported that on HP-UX the gcc test will end up
5565  # making a dummy file named `D' -- because `-MD' means `put the output
5566  # in D'.
5567  mkdir conftest.dir
5568  # Copy depcomp to subdir because otherwise we won't find it if we're
5569  # using a relative directory.
5570  cp "$am_depcomp" conftest.dir
5571  cd conftest.dir
5572  # We will build objects and dependencies in a subdirectory because
5573  # it helps to detect inapplicable dependency modes.  For instance
5574  # both Tru64's cc and ICC support -MD to output dependencies as a
5575  # side effect of compilation, but ICC will put the dependencies in
5576  # the current directory while Tru64 will put them in the object
5577  # directory.
5578  mkdir sub
5579
5580  am_cv_CXX_dependencies_compiler_type=none
5581  if test "$am_compiler_list" = ""; then
5582     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5583  fi
5584  for depmode in $am_compiler_list; do
5585    # Setup a source with many dependencies, because some compilers
5586    # like to wrap large dependency lists on column 80 (with \), and
5587    # we should not choose a depcomp mode which is confused by this.
5588    #
5589    # We need to recreate these files for each test, as the compiler may
5590    # overwrite some of them when testing with obscure command lines.
5591    # This happens at least with the AIX C compiler.
5592    : > sub/conftest.c
5593    for i in 1 2 3 4 5 6; do
5594      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5595      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5596      # Solaris 8's {/usr,}/bin/sh.
5597      touch sub/conftst$i.h
5598    done
5599    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5600
5601    case $depmode in
5602    nosideeffect)
5603      # after this tag, mechanisms are not by side-effect, so they'll
5604      # only be used when explicitly requested
5605      if test "x$enable_dependency_tracking" = xyes; then
5606	continue
5607      else
5608	break
5609      fi
5610      ;;
5611    none) break ;;
5612    esac
5613    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5614    # mode.  It turns out that the SunPro C++ compiler does not properly
5615    # handle `-M -o', and we need to detect this.
5616    if depmode=$depmode \
5617       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5618       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5619       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5620         >/dev/null 2>conftest.err &&
5621       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5622       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5623       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5624       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5625      # icc doesn't choke on unknown options, it will just issue warnings
5626      # or remarks (even with -Werror).  So we grep stderr for any message
5627      # that says an option was ignored or not supported.
5628      # When given -MP, icc 7.0 and 7.1 complain thusly:
5629      #   icc: Command line warning: ignoring option '-M'; no argument required
5630      # The diagnosis changed in icc 8.0:
5631      #   icc: Command line remark: option '-MP' not supported
5632      if (grep 'ignoring option' conftest.err ||
5633          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5634        am_cv_CXX_dependencies_compiler_type=$depmode
5635        break
5636      fi
5637    fi
5638  done
5639
5640  cd ..
5641  rm -rf conftest.dir
5642else
5643  am_cv_CXX_dependencies_compiler_type=none
5644fi
5645
5646fi
5647{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5648echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5649CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5650
5651 if
5652  test "x$enable_dependency_tracking" != xno \
5653  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5654  am__fastdepCXX_TRUE=
5655  am__fastdepCXX_FALSE='#'
5656else
5657  am__fastdepCXX_TRUE='#'
5658  am__fastdepCXX_FALSE=
5659fi
5660
5661
5662
5663
5664if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5665    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5666    (test "X$CXX" != "Xg++"))) ; then
5667  ac_ext=cpp
5668ac_cpp='$CXXCPP $CPPFLAGS'
5669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5672{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5673echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5674if test -z "$CXXCPP"; then
5675  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5676  echo $ECHO_N "(cached) $ECHO_C" >&6
5677else
5678      # Double quotes because CXXCPP needs to be expanded
5679    for CXXCPP in "$CXX -E" "/lib/cpp"
5680    do
5681      ac_preproc_ok=false
5682for ac_cxx_preproc_warn_flag in '' yes
5683do
5684  # Use a header file that comes with gcc, so configuring glibc
5685  # with a fresh cross-compiler works.
5686  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5687  # <limits.h> exists even on freestanding compilers.
5688  # On the NeXT, cc -E runs the code through the compiler's parser,
5689  # not just through cpp. "Syntax error" is here to catch this case.
5690  cat >conftest.$ac_ext <<_ACEOF
5691/* confdefs.h.  */
5692_ACEOF
5693cat confdefs.h >>conftest.$ac_ext
5694cat >>conftest.$ac_ext <<_ACEOF
5695/* end confdefs.h.  */
5696#ifdef __STDC__
5697# include <limits.h>
5698#else
5699# include <assert.h>
5700#endif
5701		     Syntax error
5702_ACEOF
5703if { (ac_try="$ac_cpp conftest.$ac_ext"
5704case "(($ac_try" in
5705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706  *) ac_try_echo=$ac_try;;
5707esac
5708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5710  ac_status=$?
5711  grep -v '^ *+' conftest.er1 >conftest.err
5712  rm -f conftest.er1
5713  cat conftest.err >&5
5714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715  (exit $ac_status); } >/dev/null && {
5716	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5717	 test ! -s conftest.err
5718       }; then
5719  :
5720else
5721  echo "$as_me: failed program was:" >&5
5722sed 's/^/| /' conftest.$ac_ext >&5
5723
5724  # Broken: fails on valid input.
5725continue
5726fi
5727
5728rm -f conftest.err conftest.$ac_ext
5729
5730  # OK, works on sane cases.  Now check whether nonexistent headers
5731  # can be detected and how.
5732  cat >conftest.$ac_ext <<_ACEOF
5733/* confdefs.h.  */
5734_ACEOF
5735cat confdefs.h >>conftest.$ac_ext
5736cat >>conftest.$ac_ext <<_ACEOF
5737/* end confdefs.h.  */
5738#include <ac_nonexistent.h>
5739_ACEOF
5740if { (ac_try="$ac_cpp conftest.$ac_ext"
5741case "(($ac_try" in
5742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743  *) ac_try_echo=$ac_try;;
5744esac
5745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5747  ac_status=$?
5748  grep -v '^ *+' conftest.er1 >conftest.err
5749  rm -f conftest.er1
5750  cat conftest.err >&5
5751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752  (exit $ac_status); } >/dev/null && {
5753	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5754	 test ! -s conftest.err
5755       }; then
5756  # Broken: success on invalid input.
5757continue
5758else
5759  echo "$as_me: failed program was:" >&5
5760sed 's/^/| /' conftest.$ac_ext >&5
5761
5762  # Passes both tests.
5763ac_preproc_ok=:
5764break
5765fi
5766
5767rm -f conftest.err conftest.$ac_ext
5768
5769done
5770# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5771rm -f conftest.err conftest.$ac_ext
5772if $ac_preproc_ok; then
5773  break
5774fi
5775
5776    done
5777    ac_cv_prog_CXXCPP=$CXXCPP
5778
5779fi
5780  CXXCPP=$ac_cv_prog_CXXCPP
5781else
5782  ac_cv_prog_CXXCPP=$CXXCPP
5783fi
5784{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5785echo "${ECHO_T}$CXXCPP" >&6; }
5786ac_preproc_ok=false
5787for ac_cxx_preproc_warn_flag in '' yes
5788do
5789  # Use a header file that comes with gcc, so configuring glibc
5790  # with a fresh cross-compiler works.
5791  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5792  # <limits.h> exists even on freestanding compilers.
5793  # On the NeXT, cc -E runs the code through the compiler's parser,
5794  # not just through cpp. "Syntax error" is here to catch this case.
5795  cat >conftest.$ac_ext <<_ACEOF
5796/* confdefs.h.  */
5797_ACEOF
5798cat confdefs.h >>conftest.$ac_ext
5799cat >>conftest.$ac_ext <<_ACEOF
5800/* end confdefs.h.  */
5801#ifdef __STDC__
5802# include <limits.h>
5803#else
5804# include <assert.h>
5805#endif
5806		     Syntax error
5807_ACEOF
5808if { (ac_try="$ac_cpp conftest.$ac_ext"
5809case "(($ac_try" in
5810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811  *) ac_try_echo=$ac_try;;
5812esac
5813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5815  ac_status=$?
5816  grep -v '^ *+' conftest.er1 >conftest.err
5817  rm -f conftest.er1
5818  cat conftest.err >&5
5819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820  (exit $ac_status); } >/dev/null && {
5821	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5822	 test ! -s conftest.err
5823       }; then
5824  :
5825else
5826  echo "$as_me: failed program was:" >&5
5827sed 's/^/| /' conftest.$ac_ext >&5
5828
5829  # Broken: fails on valid input.
5830continue
5831fi
5832
5833rm -f conftest.err conftest.$ac_ext
5834
5835  # OK, works on sane cases.  Now check whether nonexistent headers
5836  # can be detected and how.
5837  cat >conftest.$ac_ext <<_ACEOF
5838/* confdefs.h.  */
5839_ACEOF
5840cat confdefs.h >>conftest.$ac_ext
5841cat >>conftest.$ac_ext <<_ACEOF
5842/* end confdefs.h.  */
5843#include <ac_nonexistent.h>
5844_ACEOF
5845if { (ac_try="$ac_cpp conftest.$ac_ext"
5846case "(($ac_try" in
5847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848  *) ac_try_echo=$ac_try;;
5849esac
5850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5852  ac_status=$?
5853  grep -v '^ *+' conftest.er1 >conftest.err
5854  rm -f conftest.er1
5855  cat conftest.err >&5
5856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857  (exit $ac_status); } >/dev/null && {
5858	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5859	 test ! -s conftest.err
5860       }; then
5861  # Broken: success on invalid input.
5862continue
5863else
5864  echo "$as_me: failed program was:" >&5
5865sed 's/^/| /' conftest.$ac_ext >&5
5866
5867  # Passes both tests.
5868ac_preproc_ok=:
5869break
5870fi
5871
5872rm -f conftest.err conftest.$ac_ext
5873
5874done
5875# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5876rm -f conftest.err conftest.$ac_ext
5877if $ac_preproc_ok; then
5878  :
5879else
5880  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5881See \`config.log' for more details." >&5
5882echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5883See \`config.log' for more details." >&2;}
5884   { (exit 1); exit 1; }; }
5885fi
5886
5887ac_ext=cpp
5888ac_cpp='$CXXCPP $CPPFLAGS'
5889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5892
5893fi
5894
5895
5896ac_ext=f
5897ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5898ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5899ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5900if test -n "$ac_tool_prefix"; then
5901  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5902  do
5903    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5904set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5905{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5907if test "${ac_cv_prog_F77+set}" = set; then
5908  echo $ECHO_N "(cached) $ECHO_C" >&6
5909else
5910  if test -n "$F77"; then
5911  ac_cv_prog_F77="$F77" # Let the user override the test.
5912else
5913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914for as_dir in $PATH
5915do
5916  IFS=$as_save_IFS
5917  test -z "$as_dir" && as_dir=.
5918  for ac_exec_ext in '' $ac_executable_extensions; do
5919  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5920    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5921    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922    break 2
5923  fi
5924done
5925done
5926IFS=$as_save_IFS
5927
5928fi
5929fi
5930F77=$ac_cv_prog_F77
5931if test -n "$F77"; then
5932  { echo "$as_me:$LINENO: result: $F77" >&5
5933echo "${ECHO_T}$F77" >&6; }
5934else
5935  { echo "$as_me:$LINENO: result: no" >&5
5936echo "${ECHO_T}no" >&6; }
5937fi
5938
5939
5940    test -n "$F77" && break
5941  done
5942fi
5943if test -z "$F77"; then
5944  ac_ct_F77=$F77
5945  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5946do
5947  # Extract the first word of "$ac_prog", so it can be a program name with args.
5948set dummy $ac_prog; ac_word=$2
5949{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5951if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5952  echo $ECHO_N "(cached) $ECHO_C" >&6
5953else
5954  if test -n "$ac_ct_F77"; then
5955  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5956else
5957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958for as_dir in $PATH
5959do
5960  IFS=$as_save_IFS
5961  test -z "$as_dir" && as_dir=.
5962  for ac_exec_ext in '' $ac_executable_extensions; do
5963  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5964    ac_cv_prog_ac_ct_F77="$ac_prog"
5965    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966    break 2
5967  fi
5968done
5969done
5970IFS=$as_save_IFS
5971
5972fi
5973fi
5974ac_ct_F77=$ac_cv_prog_ac_ct_F77
5975if test -n "$ac_ct_F77"; then
5976  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5977echo "${ECHO_T}$ac_ct_F77" >&6; }
5978else
5979  { echo "$as_me:$LINENO: result: no" >&5
5980echo "${ECHO_T}no" >&6; }
5981fi
5982
5983
5984  test -n "$ac_ct_F77" && break
5985done
5986
5987  if test "x$ac_ct_F77" = x; then
5988    F77=""
5989  else
5990    case $cross_compiling:$ac_tool_warned in
5991yes:)
5992{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5993whose name does not start with the host triplet.  If you think this
5994configuration is useful to you, please write to autoconf@gnu.org." >&5
5995echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5996whose name does not start with the host triplet.  If you think this
5997configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5998ac_tool_warned=yes ;;
5999esac
6000    F77=$ac_ct_F77
6001  fi
6002fi
6003
6004
6005# Provide some information about the compiler.
6006echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6007ac_compiler=`set X $ac_compile; echo $2`
6008{ (ac_try="$ac_compiler --version >&5"
6009case "(($ac_try" in
6010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011  *) ac_try_echo=$ac_try;;
6012esac
6013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6014  (eval "$ac_compiler --version >&5") 2>&5
6015  ac_status=$?
6016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017  (exit $ac_status); }
6018{ (ac_try="$ac_compiler -v >&5"
6019case "(($ac_try" in
6020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021  *) ac_try_echo=$ac_try;;
6022esac
6023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024  (eval "$ac_compiler -v >&5") 2>&5
6025  ac_status=$?
6026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027  (exit $ac_status); }
6028{ (ac_try="$ac_compiler -V >&5"
6029case "(($ac_try" in
6030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031  *) ac_try_echo=$ac_try;;
6032esac
6033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034  (eval "$ac_compiler -V >&5") 2>&5
6035  ac_status=$?
6036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037  (exit $ac_status); }
6038rm -f a.out
6039
6040# If we don't use `.F' as extension, the preprocessor is not run on the
6041# input file.  (Note that this only needs to work for GNU compilers.)
6042ac_save_ext=$ac_ext
6043ac_ext=F
6044{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6045echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6046if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6047  echo $ECHO_N "(cached) $ECHO_C" >&6
6048else
6049  cat >conftest.$ac_ext <<_ACEOF
6050      program main
6051#ifndef __GNUC__
6052       choke me
6053#endif
6054
6055      end
6056_ACEOF
6057rm -f conftest.$ac_objext
6058if { (ac_try="$ac_compile"
6059case "(($ac_try" in
6060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061  *) ac_try_echo=$ac_try;;
6062esac
6063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064  (eval "$ac_compile") 2>conftest.er1
6065  ac_status=$?
6066  grep -v '^ *+' conftest.er1 >conftest.err
6067  rm -f conftest.er1
6068  cat conftest.err >&5
6069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070  (exit $ac_status); } && {
6071	 test -z "$ac_f77_werror_flag" ||
6072	 test ! -s conftest.err
6073       } && test -s conftest.$ac_objext; then
6074  ac_compiler_gnu=yes
6075else
6076  echo "$as_me: failed program was:" >&5
6077sed 's/^/| /' conftest.$ac_ext >&5
6078
6079	ac_compiler_gnu=no
6080fi
6081
6082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6083ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6084
6085fi
6086{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6087echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6088ac_ext=$ac_save_ext
6089ac_test_FFLAGS=${FFLAGS+set}
6090ac_save_FFLAGS=$FFLAGS
6091FFLAGS=
6092{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6093echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6094if test "${ac_cv_prog_f77_g+set}" = set; then
6095  echo $ECHO_N "(cached) $ECHO_C" >&6
6096else
6097  FFLAGS=-g
6098cat >conftest.$ac_ext <<_ACEOF
6099      program main
6100
6101      end
6102_ACEOF
6103rm -f conftest.$ac_objext
6104if { (ac_try="$ac_compile"
6105case "(($ac_try" in
6106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107  *) ac_try_echo=$ac_try;;
6108esac
6109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110  (eval "$ac_compile") 2>conftest.er1
6111  ac_status=$?
6112  grep -v '^ *+' conftest.er1 >conftest.err
6113  rm -f conftest.er1
6114  cat conftest.err >&5
6115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116  (exit $ac_status); } && {
6117	 test -z "$ac_f77_werror_flag" ||
6118	 test ! -s conftest.err
6119       } && test -s conftest.$ac_objext; then
6120  ac_cv_prog_f77_g=yes
6121else
6122  echo "$as_me: failed program was:" >&5
6123sed 's/^/| /' conftest.$ac_ext >&5
6124
6125	ac_cv_prog_f77_g=no
6126fi
6127
6128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129
6130fi
6131{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6132echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6133if test "$ac_test_FFLAGS" = set; then
6134  FFLAGS=$ac_save_FFLAGS
6135elif test $ac_cv_prog_f77_g = yes; then
6136  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6137    FFLAGS="-g -O2"
6138  else
6139    FFLAGS="-g"
6140  fi
6141else
6142  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6143    FFLAGS="-O2"
6144  else
6145    FFLAGS=
6146  fi
6147fi
6148
6149G77=`test $ac_compiler_gnu = yes && echo yes`
6150ac_ext=c
6151ac_cpp='$CPP $CPPFLAGS'
6152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154ac_compiler_gnu=$ac_cv_c_compiler_gnu
6155
6156
6157
6158# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6159# find the maximum length of command line arguments
6160{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6161echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6162if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6163  echo $ECHO_N "(cached) $ECHO_C" >&6
6164else
6165    i=0
6166  teststring="ABCD"
6167
6168  case $build_os in
6169  msdosdjgpp*)
6170    # On DJGPP, this test can blow up pretty badly due to problems in libc
6171    # (any single argument exceeding 2000 bytes causes a buffer overrun
6172    # during glob expansion).  Even if it were fixed, the result of this
6173    # check would be larger than it should be.
6174    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6175    ;;
6176
6177  gnu*)
6178    # Under GNU Hurd, this test is not required because there is
6179    # no limit to the length of command line arguments.
6180    # Libtool will interpret -1 as no limit whatsoever
6181    lt_cv_sys_max_cmd_len=-1;
6182    ;;
6183
6184  cygwin* | mingw*)
6185    # On Win9x/ME, this test blows up -- it succeeds, but takes
6186    # about 5 minutes as the teststring grows exponentially.
6187    # Worse, since 9x/ME are not pre-emptively multitasking,
6188    # you end up with a "frozen" computer, even though with patience
6189    # the test eventually succeeds (with a max line length of 256k).
6190    # Instead, let's just punt: use the minimum linelength reported by
6191    # all of the supported platforms: 8192 (on NT/2K/XP).
6192    lt_cv_sys_max_cmd_len=8192;
6193    ;;
6194
6195  amigaos*)
6196    # On AmigaOS with pdksh, this test takes hours, literally.
6197    # So we just punt and use a minimum line length of 8192.
6198    lt_cv_sys_max_cmd_len=8192;
6199    ;;
6200
6201  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6202    # This has been around since 386BSD, at least.  Likely further.
6203    if test -x /sbin/sysctl; then
6204      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6205    elif test -x /usr/sbin/sysctl; then
6206      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6207    else
6208      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6209    fi
6210    # And add a safety zone
6211    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6212    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6213    ;;
6214
6215  interix*)
6216    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6217    lt_cv_sys_max_cmd_len=196608
6218    ;;
6219
6220  osf*)
6221    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6222    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6223    # nice to cause kernel panics so lets avoid the loop below.
6224    # First set a reasonable default.
6225    lt_cv_sys_max_cmd_len=16384
6226    #
6227    if test -x /sbin/sysconfig; then
6228      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6229        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6230      esac
6231    fi
6232    ;;
6233  sco3.2v5*)
6234    lt_cv_sys_max_cmd_len=102400
6235    ;;
6236  sysv5* | sco5v6* | sysv4.2uw2*)
6237    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6238    if test -n "$kargmax"; then
6239      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6240    else
6241      lt_cv_sys_max_cmd_len=32768
6242    fi
6243    ;;
6244  *)
6245    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6246    if test -n "$lt_cv_sys_max_cmd_len"; then
6247      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6248      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6249    else
6250      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6251      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6252	       = "XX$teststring") >/dev/null 2>&1 &&
6253	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6254	      lt_cv_sys_max_cmd_len=$new_result &&
6255	      test $i != 17 # 1/2 MB should be enough
6256      do
6257        i=`expr $i + 1`
6258        teststring=$teststring$teststring
6259      done
6260      teststring=
6261      # Add a significant safety factor because C++ compilers can tack on massive
6262      # amounts of additional arguments before passing them to the linker.
6263      # It appears as though 1/2 is a usable value.
6264      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6265    fi
6266    ;;
6267  esac
6268
6269fi
6270
6271if test -n $lt_cv_sys_max_cmd_len ; then
6272  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6273echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6274else
6275  { echo "$as_me:$LINENO: result: none" >&5
6276echo "${ECHO_T}none" >&6; }
6277fi
6278
6279
6280
6281
6282
6283# Check for command to grab the raw symbol name followed by C symbol from nm.
6284{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6285echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6286if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6287  echo $ECHO_N "(cached) $ECHO_C" >&6
6288else
6289
6290# These are sane defaults that work on at least a few old systems.
6291# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6292
6293# Character class describing NM global symbol codes.
6294symcode='[BCDEGRST]'
6295
6296# Regexp to match symbols that can be accessed directly from C.
6297sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6298
6299# Transform an extracted symbol line into a proper C declaration
6300lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6301
6302# Transform an extracted symbol line into symbol name and symbol address
6303lt_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'"
6304
6305# Define system-specific variables.
6306case $host_os in
6307aix*)
6308  symcode='[BCDT]'
6309  ;;
6310cygwin* | mingw* | pw32*)
6311  symcode='[ABCDGISTW]'
6312  ;;
6313hpux*) # Its linker distinguishes data from code symbols
6314  if test "$host_cpu" = ia64; then
6315    symcode='[ABCDEGRST]'
6316  fi
6317  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6318  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'"
6319  ;;
6320linux* | k*bsd*-gnu)
6321  if test "$host_cpu" = ia64; then
6322    symcode='[ABCDGIRSTW]'
6323    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6324    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'"
6325  fi
6326  ;;
6327irix* | nonstopux*)
6328  symcode='[BCDEGRST]'
6329  ;;
6330osf*)
6331  symcode='[BCDEGQRST]'
6332  ;;
6333solaris*)
6334  symcode='[BDRT]'
6335  ;;
6336sco3.2v5*)
6337  symcode='[DT]'
6338  ;;
6339sysv4.2uw2*)
6340  symcode='[DT]'
6341  ;;
6342sysv5* | sco5v6* | unixware* | OpenUNIX*)
6343  symcode='[ABDT]'
6344  ;;
6345sysv4)
6346  symcode='[DFNSTU]'
6347  ;;
6348esac
6349
6350# Handle CRLF in mingw tool chain
6351opt_cr=
6352case $build_os in
6353mingw*)
6354  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6355  ;;
6356esac
6357
6358# If we're using GNU nm, then use its standard symbol codes.
6359case `$NM -V 2>&1` in
6360*GNU* | *'with BFD'*)
6361  symcode='[ABCDGIRSTW]' ;;
6362esac
6363
6364# Try without a prefix undercore, then with it.
6365for ac_symprfx in "" "_"; do
6366
6367  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6368  symxfrm="\\1 $ac_symprfx\\2 \\2"
6369
6370  # Write the raw and C identifiers.
6371  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6372
6373  # Check to see that the pipe works correctly.
6374  pipe_works=no
6375
6376  rm -f conftest*
6377  cat > conftest.$ac_ext <<EOF
6378#ifdef __cplusplus
6379extern "C" {
6380#endif
6381char nm_test_var;
6382void nm_test_func(){}
6383#ifdef __cplusplus
6384}
6385#endif
6386int main(){nm_test_var='a';nm_test_func();return(0);}
6387EOF
6388
6389  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6390  (eval $ac_compile) 2>&5
6391  ac_status=$?
6392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393  (exit $ac_status); }; then
6394    # Now try to grab the symbols.
6395    nlist=conftest.nm
6396    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6397  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6398  ac_status=$?
6399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400  (exit $ac_status); } && test -s "$nlist"; then
6401      # Try sorting and uniquifying the output.
6402      if sort "$nlist" | uniq > "$nlist"T; then
6403	mv -f "$nlist"T "$nlist"
6404      else
6405	rm -f "$nlist"T
6406      fi
6407
6408      # Make sure that we snagged all the symbols we need.
6409      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6410	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6411	  cat <<EOF > conftest.$ac_ext
6412#ifdef __cplusplus
6413extern "C" {
6414#endif
6415
6416EOF
6417	  # Now generate the symbol file.
6418	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6419
6420	  cat <<EOF >> conftest.$ac_ext
6421#if defined (__STDC__) && __STDC__
6422# define lt_ptr_t void *
6423#else
6424# define lt_ptr_t char *
6425# define const
6426#endif
6427
6428/* The mapping between symbol names and symbols. */
6429const struct {
6430  const char *name;
6431  lt_ptr_t address;
6432}
6433lt_preloaded_symbols[] =
6434{
6435EOF
6436	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6437	  cat <<\EOF >> conftest.$ac_ext
6438  {0, (lt_ptr_t) 0}
6439};
6440
6441#ifdef __cplusplus
6442}
6443#endif
6444EOF
6445	  # Now try linking the two files.
6446	  mv conftest.$ac_objext conftstm.$ac_objext
6447	  lt_save_LIBS="$LIBS"
6448	  lt_save_CFLAGS="$CFLAGS"
6449	  LIBS="conftstm.$ac_objext"
6450	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6451	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6452  (eval $ac_link) 2>&5
6453  ac_status=$?
6454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6456	    pipe_works=yes
6457	  fi
6458	  LIBS="$lt_save_LIBS"
6459	  CFLAGS="$lt_save_CFLAGS"
6460	else
6461	  echo "cannot find nm_test_func in $nlist" >&5
6462	fi
6463      else
6464	echo "cannot find nm_test_var in $nlist" >&5
6465      fi
6466    else
6467      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6468    fi
6469  else
6470    echo "$progname: failed program was:" >&5
6471    cat conftest.$ac_ext >&5
6472  fi
6473  rm -rf conftest* conftst*
6474
6475  # Do not use the global_symbol_pipe unless it works.
6476  if test "$pipe_works" = yes; then
6477    break
6478  else
6479    lt_cv_sys_global_symbol_pipe=
6480  fi
6481done
6482
6483fi
6484
6485if test -z "$lt_cv_sys_global_symbol_pipe"; then
6486  lt_cv_sys_global_symbol_to_cdecl=
6487fi
6488if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6489  { echo "$as_me:$LINENO: result: failed" >&5
6490echo "${ECHO_T}failed" >&6; }
6491else
6492  { echo "$as_me:$LINENO: result: ok" >&5
6493echo "${ECHO_T}ok" >&6; }
6494fi
6495
6496{ echo "$as_me:$LINENO: checking for objdir" >&5
6497echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6498if test "${lt_cv_objdir+set}" = set; then
6499  echo $ECHO_N "(cached) $ECHO_C" >&6
6500else
6501  rm -f .libs 2>/dev/null
6502mkdir .libs 2>/dev/null
6503if test -d .libs; then
6504  lt_cv_objdir=.libs
6505else
6506  # MS-DOS does not allow filenames that begin with a dot.
6507  lt_cv_objdir=_libs
6508fi
6509rmdir .libs 2>/dev/null
6510fi
6511{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6512echo "${ECHO_T}$lt_cv_objdir" >&6; }
6513objdir=$lt_cv_objdir
6514
6515
6516
6517
6518
6519case $host_os in
6520aix3*)
6521  # AIX sometimes has problems with the GCC collect2 program.  For some
6522  # reason, if we set the COLLECT_NAMES environment variable, the problems
6523  # vanish in a puff of smoke.
6524  if test "X${COLLECT_NAMES+set}" != Xset; then
6525    COLLECT_NAMES=
6526    export COLLECT_NAMES
6527  fi
6528  ;;
6529esac
6530
6531# Sed substitution that helps us do robust quoting.  It backslashifies
6532# metacharacters that are still active within double-quoted strings.
6533Xsed='sed -e 1s/^X//'
6534sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6535
6536# Same as above, but do not quote variable references.
6537double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6538
6539# Sed substitution to delay expansion of an escaped shell variable in a
6540# double_quote_subst'ed string.
6541delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6542
6543# Sed substitution to avoid accidental globbing in evaled expressions
6544no_glob_subst='s/\*/\\\*/g'
6545
6546# Constants:
6547rm="rm -f"
6548
6549# Global variables:
6550default_ofile=libtool
6551can_build_shared=yes
6552
6553# All known linkers require a `.a' archive for static linking (except MSVC,
6554# which needs '.lib').
6555libext=a
6556ltmain="$ac_aux_dir/ltmain.sh"
6557ofile="$default_ofile"
6558with_gnu_ld="$lt_cv_prog_gnu_ld"
6559
6560if test -n "$ac_tool_prefix"; then
6561  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6562set dummy ${ac_tool_prefix}ar; ac_word=$2
6563{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6565if test "${ac_cv_prog_AR+set}" = set; then
6566  echo $ECHO_N "(cached) $ECHO_C" >&6
6567else
6568  if test -n "$AR"; then
6569  ac_cv_prog_AR="$AR" # Let the user override the test.
6570else
6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572for as_dir in $PATH
6573do
6574  IFS=$as_save_IFS
6575  test -z "$as_dir" && as_dir=.
6576  for ac_exec_ext in '' $ac_executable_extensions; do
6577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578    ac_cv_prog_AR="${ac_tool_prefix}ar"
6579    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580    break 2
6581  fi
6582done
6583done
6584IFS=$as_save_IFS
6585
6586fi
6587fi
6588AR=$ac_cv_prog_AR
6589if test -n "$AR"; then
6590  { echo "$as_me:$LINENO: result: $AR" >&5
6591echo "${ECHO_T}$AR" >&6; }
6592else
6593  { echo "$as_me:$LINENO: result: no" >&5
6594echo "${ECHO_T}no" >&6; }
6595fi
6596
6597
6598fi
6599if test -z "$ac_cv_prog_AR"; then
6600  ac_ct_AR=$AR
6601  # Extract the first word of "ar", so it can be a program name with args.
6602set dummy ar; ac_word=$2
6603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6605if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6606  echo $ECHO_N "(cached) $ECHO_C" >&6
6607else
6608  if test -n "$ac_ct_AR"; then
6609  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6610else
6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614  IFS=$as_save_IFS
6615  test -z "$as_dir" && as_dir=.
6616  for ac_exec_ext in '' $ac_executable_extensions; do
6617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618    ac_cv_prog_ac_ct_AR="ar"
6619    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620    break 2
6621  fi
6622done
6623done
6624IFS=$as_save_IFS
6625
6626fi
6627fi
6628ac_ct_AR=$ac_cv_prog_ac_ct_AR
6629if test -n "$ac_ct_AR"; then
6630  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6631echo "${ECHO_T}$ac_ct_AR" >&6; }
6632else
6633  { echo "$as_me:$LINENO: result: no" >&5
6634echo "${ECHO_T}no" >&6; }
6635fi
6636
6637  if test "x$ac_ct_AR" = x; then
6638    AR="false"
6639  else
6640    case $cross_compiling:$ac_tool_warned in
6641yes:)
6642{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6643whose name does not start with the host triplet.  If you think this
6644configuration is useful to you, please write to autoconf@gnu.org." >&5
6645echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6646whose name does not start with the host triplet.  If you think this
6647configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6648ac_tool_warned=yes ;;
6649esac
6650    AR=$ac_ct_AR
6651  fi
6652else
6653  AR="$ac_cv_prog_AR"
6654fi
6655
6656if test -n "$ac_tool_prefix"; then
6657  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6658set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6659{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6661if test "${ac_cv_prog_RANLIB+set}" = set; then
6662  echo $ECHO_N "(cached) $ECHO_C" >&6
6663else
6664  if test -n "$RANLIB"; then
6665  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6666else
6667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in $PATH
6669do
6670  IFS=$as_save_IFS
6671  test -z "$as_dir" && as_dir=.
6672  for ac_exec_ext in '' $ac_executable_extensions; do
6673  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6674    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6675    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676    break 2
6677  fi
6678done
6679done
6680IFS=$as_save_IFS
6681
6682fi
6683fi
6684RANLIB=$ac_cv_prog_RANLIB
6685if test -n "$RANLIB"; then
6686  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6687echo "${ECHO_T}$RANLIB" >&6; }
6688else
6689  { echo "$as_me:$LINENO: result: no" >&5
6690echo "${ECHO_T}no" >&6; }
6691fi
6692
6693
6694fi
6695if test -z "$ac_cv_prog_RANLIB"; then
6696  ac_ct_RANLIB=$RANLIB
6697  # Extract the first word of "ranlib", so it can be a program name with args.
6698set dummy ranlib; ac_word=$2
6699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6702  echo $ECHO_N "(cached) $ECHO_C" >&6
6703else
6704  if test -n "$ac_ct_RANLIB"; then
6705  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6706else
6707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in $PATH
6709do
6710  IFS=$as_save_IFS
6711  test -z "$as_dir" && as_dir=.
6712  for ac_exec_ext in '' $ac_executable_extensions; do
6713  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6714    ac_cv_prog_ac_ct_RANLIB="ranlib"
6715    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716    break 2
6717  fi
6718done
6719done
6720IFS=$as_save_IFS
6721
6722fi
6723fi
6724ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6725if test -n "$ac_ct_RANLIB"; then
6726  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6727echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6728else
6729  { echo "$as_me:$LINENO: result: no" >&5
6730echo "${ECHO_T}no" >&6; }
6731fi
6732
6733  if test "x$ac_ct_RANLIB" = x; then
6734    RANLIB=":"
6735  else
6736    case $cross_compiling:$ac_tool_warned in
6737yes:)
6738{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6739whose name does not start with the host triplet.  If you think this
6740configuration is useful to you, please write to autoconf@gnu.org." >&5
6741echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6742whose name does not start with the host triplet.  If you think this
6743configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6744ac_tool_warned=yes ;;
6745esac
6746    RANLIB=$ac_ct_RANLIB
6747  fi
6748else
6749  RANLIB="$ac_cv_prog_RANLIB"
6750fi
6751
6752if test -n "$ac_tool_prefix"; then
6753  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6754set dummy ${ac_tool_prefix}strip; ac_word=$2
6755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6757if test "${ac_cv_prog_STRIP+set}" = set; then
6758  echo $ECHO_N "(cached) $ECHO_C" >&6
6759else
6760  if test -n "$STRIP"; then
6761  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6762else
6763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764for as_dir in $PATH
6765do
6766  IFS=$as_save_IFS
6767  test -z "$as_dir" && as_dir=.
6768  for ac_exec_ext in '' $ac_executable_extensions; do
6769  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6771    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772    break 2
6773  fi
6774done
6775done
6776IFS=$as_save_IFS
6777
6778fi
6779fi
6780STRIP=$ac_cv_prog_STRIP
6781if test -n "$STRIP"; then
6782  { echo "$as_me:$LINENO: result: $STRIP" >&5
6783echo "${ECHO_T}$STRIP" >&6; }
6784else
6785  { echo "$as_me:$LINENO: result: no" >&5
6786echo "${ECHO_T}no" >&6; }
6787fi
6788
6789
6790fi
6791if test -z "$ac_cv_prog_STRIP"; then
6792  ac_ct_STRIP=$STRIP
6793  # Extract the first word of "strip", so it can be a program name with args.
6794set dummy strip; ac_word=$2
6795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6798  echo $ECHO_N "(cached) $ECHO_C" >&6
6799else
6800  if test -n "$ac_ct_STRIP"; then
6801  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6802else
6803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804for as_dir in $PATH
6805do
6806  IFS=$as_save_IFS
6807  test -z "$as_dir" && as_dir=.
6808  for ac_exec_ext in '' $ac_executable_extensions; do
6809  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6810    ac_cv_prog_ac_ct_STRIP="strip"
6811    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812    break 2
6813  fi
6814done
6815done
6816IFS=$as_save_IFS
6817
6818fi
6819fi
6820ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6821if test -n "$ac_ct_STRIP"; then
6822  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6823echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6824else
6825  { echo "$as_me:$LINENO: result: no" >&5
6826echo "${ECHO_T}no" >&6; }
6827fi
6828
6829  if test "x$ac_ct_STRIP" = x; then
6830    STRIP=":"
6831  else
6832    case $cross_compiling:$ac_tool_warned in
6833yes:)
6834{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6835whose name does not start with the host triplet.  If you think this
6836configuration is useful to you, please write to autoconf@gnu.org." >&5
6837echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6838whose name does not start with the host triplet.  If you think this
6839configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6840ac_tool_warned=yes ;;
6841esac
6842    STRIP=$ac_ct_STRIP
6843  fi
6844else
6845  STRIP="$ac_cv_prog_STRIP"
6846fi
6847
6848
6849old_CC="$CC"
6850old_CFLAGS="$CFLAGS"
6851
6852# Set sane defaults for various variables
6853test -z "$AR" && AR=ar
6854test -z "$AR_FLAGS" && AR_FLAGS=cru
6855test -z "$AS" && AS=as
6856test -z "$CC" && CC=cc
6857test -z "$LTCC" && LTCC=$CC
6858test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6859test -z "$DLLTOOL" && DLLTOOL=dlltool
6860test -z "$LD" && LD=ld
6861test -z "$LN_S" && LN_S="ln -s"
6862test -z "$MAGIC_CMD" && MAGIC_CMD=file
6863test -z "$NM" && NM=nm
6864test -z "$SED" && SED=sed
6865test -z "$OBJDUMP" && OBJDUMP=objdump
6866test -z "$RANLIB" && RANLIB=:
6867test -z "$STRIP" && STRIP=:
6868test -z "$ac_objext" && ac_objext=o
6869
6870# Determine commands to create old-style static archives.
6871old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6872old_postinstall_cmds='chmod 644 $oldlib'
6873old_postuninstall_cmds=
6874
6875if test -n "$RANLIB"; then
6876  case $host_os in
6877  openbsd*)
6878    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6879    ;;
6880  *)
6881    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6882    ;;
6883  esac
6884  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6885fi
6886
6887for cc_temp in $compiler""; do
6888  case $cc_temp in
6889    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6890    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6891    \-*) ;;
6892    *) break;;
6893  esac
6894done
6895cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6896
6897
6898# Only perform the check for file, if the check method requires it
6899case $deplibs_check_method in
6900file_magic*)
6901  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6902    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6903echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6904if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6905  echo $ECHO_N "(cached) $ECHO_C" >&6
6906else
6907  case $MAGIC_CMD in
6908[\\/*] |  ?:[\\/]*)
6909  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6910  ;;
6911*)
6912  lt_save_MAGIC_CMD="$MAGIC_CMD"
6913  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6914  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6915  for ac_dir in $ac_dummy; do
6916    IFS="$lt_save_ifs"
6917    test -z "$ac_dir" && ac_dir=.
6918    if test -f $ac_dir/${ac_tool_prefix}file; then
6919      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6920      if test -n "$file_magic_test_file"; then
6921	case $deplibs_check_method in
6922	"file_magic "*)
6923	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6924	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6925	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6926	    $EGREP "$file_magic_regex" > /dev/null; then
6927	    :
6928	  else
6929	    cat <<EOF 1>&2
6930
6931*** Warning: the command libtool uses to detect shared libraries,
6932*** $file_magic_cmd, produces output that libtool cannot recognize.
6933*** The result is that libtool may fail to recognize shared libraries
6934*** as such.  This will affect the creation of libtool libraries that
6935*** depend on shared libraries, but programs linked with such libtool
6936*** libraries will work regardless of this problem.  Nevertheless, you
6937*** may want to report the problem to your system manager and/or to
6938*** bug-libtool@gnu.org
6939
6940EOF
6941	  fi ;;
6942	esac
6943      fi
6944      break
6945    fi
6946  done
6947  IFS="$lt_save_ifs"
6948  MAGIC_CMD="$lt_save_MAGIC_CMD"
6949  ;;
6950esac
6951fi
6952
6953MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6954if test -n "$MAGIC_CMD"; then
6955  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6956echo "${ECHO_T}$MAGIC_CMD" >&6; }
6957else
6958  { echo "$as_me:$LINENO: result: no" >&5
6959echo "${ECHO_T}no" >&6; }
6960fi
6961
6962if test -z "$lt_cv_path_MAGIC_CMD"; then
6963  if test -n "$ac_tool_prefix"; then
6964    { echo "$as_me:$LINENO: checking for file" >&5
6965echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6966if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6967  echo $ECHO_N "(cached) $ECHO_C" >&6
6968else
6969  case $MAGIC_CMD in
6970[\\/*] |  ?:[\\/]*)
6971  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6972  ;;
6973*)
6974  lt_save_MAGIC_CMD="$MAGIC_CMD"
6975  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6976  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6977  for ac_dir in $ac_dummy; do
6978    IFS="$lt_save_ifs"
6979    test -z "$ac_dir" && ac_dir=.
6980    if test -f $ac_dir/file; then
6981      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6982      if test -n "$file_magic_test_file"; then
6983	case $deplibs_check_method in
6984	"file_magic "*)
6985	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6986	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6987	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6988	    $EGREP "$file_magic_regex" > /dev/null; then
6989	    :
6990	  else
6991	    cat <<EOF 1>&2
6992
6993*** Warning: the command libtool uses to detect shared libraries,
6994*** $file_magic_cmd, produces output that libtool cannot recognize.
6995*** The result is that libtool may fail to recognize shared libraries
6996*** as such.  This will affect the creation of libtool libraries that
6997*** depend on shared libraries, but programs linked with such libtool
6998*** libraries will work regardless of this problem.  Nevertheless, you
6999*** may want to report the problem to your system manager and/or to
7000*** bug-libtool@gnu.org
7001
7002EOF
7003	  fi ;;
7004	esac
7005      fi
7006      break
7007    fi
7008  done
7009  IFS="$lt_save_ifs"
7010  MAGIC_CMD="$lt_save_MAGIC_CMD"
7011  ;;
7012esac
7013fi
7014
7015MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7016if test -n "$MAGIC_CMD"; then
7017  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7018echo "${ECHO_T}$MAGIC_CMD" >&6; }
7019else
7020  { echo "$as_me:$LINENO: result: no" >&5
7021echo "${ECHO_T}no" >&6; }
7022fi
7023
7024  else
7025    MAGIC_CMD=:
7026  fi
7027fi
7028
7029  fi
7030  ;;
7031esac
7032
7033
7034  case $host_os in
7035    rhapsody* | darwin*)
7036    if test -n "$ac_tool_prefix"; then
7037  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7038set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7042  echo $ECHO_N "(cached) $ECHO_C" >&6
7043else
7044  if test -n "$DSYMUTIL"; then
7045  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7046else
7047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048for as_dir in $PATH
7049do
7050  IFS=$as_save_IFS
7051  test -z "$as_dir" && as_dir=.
7052  for ac_exec_ext in '' $ac_executable_extensions; do
7053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7054    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7055    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056    break 2
7057  fi
7058done
7059done
7060IFS=$as_save_IFS
7061
7062fi
7063fi
7064DSYMUTIL=$ac_cv_prog_DSYMUTIL
7065if test -n "$DSYMUTIL"; then
7066  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7067echo "${ECHO_T}$DSYMUTIL" >&6; }
7068else
7069  { echo "$as_me:$LINENO: result: no" >&5
7070echo "${ECHO_T}no" >&6; }
7071fi
7072
7073
7074fi
7075if test -z "$ac_cv_prog_DSYMUTIL"; then
7076  ac_ct_DSYMUTIL=$DSYMUTIL
7077  # Extract the first word of "dsymutil", so it can be a program name with args.
7078set dummy dsymutil; ac_word=$2
7079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7082  echo $ECHO_N "(cached) $ECHO_C" >&6
7083else
7084  if test -n "$ac_ct_DSYMUTIL"; then
7085  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7086else
7087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088for as_dir in $PATH
7089do
7090  IFS=$as_save_IFS
7091  test -z "$as_dir" && as_dir=.
7092  for ac_exec_ext in '' $ac_executable_extensions; do
7093  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7094    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7095    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096    break 2
7097  fi
7098done
7099done
7100IFS=$as_save_IFS
7101
7102fi
7103fi
7104ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7105if test -n "$ac_ct_DSYMUTIL"; then
7106  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7107echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7108else
7109  { echo "$as_me:$LINENO: result: no" >&5
7110echo "${ECHO_T}no" >&6; }
7111fi
7112
7113  if test "x$ac_ct_DSYMUTIL" = x; then
7114    DSYMUTIL=":"
7115  else
7116    case $cross_compiling:$ac_tool_warned in
7117yes:)
7118{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7119whose name does not start with the host triplet.  If you think this
7120configuration is useful to you, please write to autoconf@gnu.org." >&5
7121echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7122whose name does not start with the host triplet.  If you think this
7123configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7124ac_tool_warned=yes ;;
7125esac
7126    DSYMUTIL=$ac_ct_DSYMUTIL
7127  fi
7128else
7129  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7130fi
7131
7132    if test -n "$ac_tool_prefix"; then
7133  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7134set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7137if test "${ac_cv_prog_NMEDIT+set}" = set; then
7138  echo $ECHO_N "(cached) $ECHO_C" >&6
7139else
7140  if test -n "$NMEDIT"; then
7141  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7142else
7143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146  IFS=$as_save_IFS
7147  test -z "$as_dir" && as_dir=.
7148  for ac_exec_ext in '' $ac_executable_extensions; do
7149  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7150    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7151    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152    break 2
7153  fi
7154done
7155done
7156IFS=$as_save_IFS
7157
7158fi
7159fi
7160NMEDIT=$ac_cv_prog_NMEDIT
7161if test -n "$NMEDIT"; then
7162  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7163echo "${ECHO_T}$NMEDIT" >&6; }
7164else
7165  { echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6; }
7167fi
7168
7169
7170fi
7171if test -z "$ac_cv_prog_NMEDIT"; then
7172  ac_ct_NMEDIT=$NMEDIT
7173  # Extract the first word of "nmedit", so it can be a program name with args.
7174set dummy nmedit; ac_word=$2
7175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7177if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7178  echo $ECHO_N "(cached) $ECHO_C" >&6
7179else
7180  if test -n "$ac_ct_NMEDIT"; then
7181  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7182else
7183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186  IFS=$as_save_IFS
7187  test -z "$as_dir" && as_dir=.
7188  for ac_exec_ext in '' $ac_executable_extensions; do
7189  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7191    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192    break 2
7193  fi
7194done
7195done
7196IFS=$as_save_IFS
7197
7198fi
7199fi
7200ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7201if test -n "$ac_ct_NMEDIT"; then
7202  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7203echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7204else
7205  { echo "$as_me:$LINENO: result: no" >&5
7206echo "${ECHO_T}no" >&6; }
7207fi
7208
7209  if test "x$ac_ct_NMEDIT" = x; then
7210    NMEDIT=":"
7211  else
7212    case $cross_compiling:$ac_tool_warned in
7213yes:)
7214{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7215whose name does not start with the host triplet.  If you think this
7216configuration is useful to you, please write to autoconf@gnu.org." >&5
7217echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7218whose name does not start with the host triplet.  If you think this
7219configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7220ac_tool_warned=yes ;;
7221esac
7222    NMEDIT=$ac_ct_NMEDIT
7223  fi
7224else
7225  NMEDIT="$ac_cv_prog_NMEDIT"
7226fi
7227
7228
7229    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7230echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7231if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7232  echo $ECHO_N "(cached) $ECHO_C" >&6
7233else
7234  lt_cv_apple_cc_single_mod=no
7235      if test -z "${LT_MULTI_MODULE}"; then
7236   # By default we will add the -single_module flag. You can override
7237   # by either setting the environment variable LT_MULTI_MODULE
7238   # non-empty at configure time, or by adding -multi_module to the
7239   # link flags.
7240   echo "int foo(void){return 1;}" > conftest.c
7241   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7242     -dynamiclib ${wl}-single_module conftest.c
7243   if test -f libconftest.dylib; then
7244     lt_cv_apple_cc_single_mod=yes
7245     rm -rf libconftest.dylib*
7246   fi
7247   rm conftest.c
7248      fi
7249fi
7250{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7251echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7252    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7253echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7254if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7255  echo $ECHO_N "(cached) $ECHO_C" >&6
7256else
7257  lt_cv_ld_exported_symbols_list=no
7258      save_LDFLAGS=$LDFLAGS
7259      echo "_main" > conftest.sym
7260      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7261      cat >conftest.$ac_ext <<_ACEOF
7262/* confdefs.h.  */
7263_ACEOF
7264cat confdefs.h >>conftest.$ac_ext
7265cat >>conftest.$ac_ext <<_ACEOF
7266/* end confdefs.h.  */
7267
7268int
7269main ()
7270{
7271
7272  ;
7273  return 0;
7274}
7275_ACEOF
7276rm -f conftest.$ac_objext conftest$ac_exeext
7277if { (ac_try="$ac_link"
7278case "(($ac_try" in
7279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280  *) ac_try_echo=$ac_try;;
7281esac
7282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283  (eval "$ac_link") 2>conftest.er1
7284  ac_status=$?
7285  grep -v '^ *+' conftest.er1 >conftest.err
7286  rm -f conftest.er1
7287  cat conftest.err >&5
7288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289  (exit $ac_status); } && {
7290	 test -z "$ac_c_werror_flag" ||
7291	 test ! -s conftest.err
7292       } && test -s conftest$ac_exeext &&
7293       $as_test_x conftest$ac_exeext; then
7294  lt_cv_ld_exported_symbols_list=yes
7295else
7296  echo "$as_me: failed program was:" >&5
7297sed 's/^/| /' conftest.$ac_ext >&5
7298
7299	lt_cv_ld_exported_symbols_list=no
7300fi
7301
7302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7303      conftest$ac_exeext conftest.$ac_ext
7304   LDFLAGS="$save_LDFLAGS"
7305
7306fi
7307{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7308echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7309    case $host_os in
7310    rhapsody* | darwin1.[0123])
7311      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7312    darwin1.*)
7313     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7314    darwin*)
7315      # if running on 10.5 or later, the deployment target defaults
7316      # to the OS version, if on x86, and 10.4, the deployment
7317      # target defaults to 10.4. Don't you love it?
7318      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7319   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7320     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7321   10.[012]*)
7322     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7323   10.*)
7324     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7325      esac
7326    ;;
7327  esac
7328    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7329      _lt_dar_single_mod='$single_module'
7330    fi
7331    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7332      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7333    else
7334      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7335    fi
7336    if test "$DSYMUTIL" != ":"; then
7337      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7338    else
7339      _lt_dsymutil=
7340    fi
7341    ;;
7342  esac
7343
7344
7345enable_dlopen=no
7346enable_win32_dll=no
7347
7348# Check whether --enable-libtool-lock was given.
7349if test "${enable_libtool_lock+set}" = set; then
7350  enableval=$enable_libtool_lock;
7351fi
7352
7353test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7354
7355
7356# Check whether --with-pic was given.
7357if test "${with_pic+set}" = set; then
7358  withval=$with_pic; pic_mode="$withval"
7359else
7360  pic_mode=default
7361fi
7362
7363test -z "$pic_mode" && pic_mode=default
7364
7365# Use C for the default configuration in the libtool script
7366tagname=
7367lt_save_CC="$CC"
7368ac_ext=c
7369ac_cpp='$CPP $CPPFLAGS'
7370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7372ac_compiler_gnu=$ac_cv_c_compiler_gnu
7373
7374
7375# Source file extension for C test sources.
7376ac_ext=c
7377
7378# Object file extension for compiled C test sources.
7379objext=o
7380objext=$objext
7381
7382# Code to be used in simple compile tests
7383lt_simple_compile_test_code="int some_variable = 0;"
7384
7385# Code to be used in simple link tests
7386lt_simple_link_test_code='int main(){return(0);}'
7387
7388
7389# If no C compiler was specified, use CC.
7390LTCC=${LTCC-"$CC"}
7391
7392# If no C compiler flags were specified, use CFLAGS.
7393LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7394
7395# Allow CC to be a program name with arguments.
7396compiler=$CC
7397
7398
7399# save warnings/boilerplate of simple test code
7400ac_outfile=conftest.$ac_objext
7401echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7402eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7403_lt_compiler_boilerplate=`cat conftest.err`
7404$rm conftest*
7405
7406ac_outfile=conftest.$ac_objext
7407echo "$lt_simple_link_test_code" >conftest.$ac_ext
7408eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7409_lt_linker_boilerplate=`cat conftest.err`
7410$rm -r conftest*
7411
7412
7413
7414lt_prog_compiler_no_builtin_flag=
7415
7416if test "$GCC" = yes; then
7417  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7418
7419
7420{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7421echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7422if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7423  echo $ECHO_N "(cached) $ECHO_C" >&6
7424else
7425  lt_cv_prog_compiler_rtti_exceptions=no
7426  ac_outfile=conftest.$ac_objext
7427   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7428   lt_compiler_flag="-fno-rtti -fno-exceptions"
7429   # Insert the option either (1) after the last *FLAGS variable, or
7430   # (2) before a word containing "conftest.", or (3) at the end.
7431   # Note that $ac_compile itself does not contain backslashes and begins
7432   # with a dollar sign (not a hyphen), so the echo should work correctly.
7433   # The option is referenced via a variable to avoid confusing sed.
7434   lt_compile=`echo "$ac_compile" | $SED \
7435   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7436   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7437   -e 's:$: $lt_compiler_flag:'`
7438   (eval echo "\"\$as_me:7438: $lt_compile\"" >&5)
7439   (eval "$lt_compile" 2>conftest.err)
7440   ac_status=$?
7441   cat conftest.err >&5
7442   echo "$as_me:7442: \$? = $ac_status" >&5
7443   if (exit $ac_status) && test -s "$ac_outfile"; then
7444     # The compiler can only warn and ignore the option if not recognized
7445     # So say no if there are warnings other than the usual output.
7446     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7447     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7448     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7449       lt_cv_prog_compiler_rtti_exceptions=yes
7450     fi
7451   fi
7452   $rm conftest*
7453
7454fi
7455{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7456echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7457
7458if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7459    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7460else
7461    :
7462fi
7463
7464fi
7465
7466lt_prog_compiler_wl=
7467lt_prog_compiler_pic=
7468lt_prog_compiler_static=
7469
7470{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7471echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7472
7473  if test "$GCC" = yes; then
7474    lt_prog_compiler_wl='-Wl,'
7475    lt_prog_compiler_static='-static'
7476
7477    case $host_os in
7478      aix*)
7479      # All AIX code is PIC.
7480      if test "$host_cpu" = ia64; then
7481	# AIX 5 now supports IA64 processor
7482	lt_prog_compiler_static='-Bstatic'
7483      fi
7484      ;;
7485
7486    amigaos*)
7487      # FIXME: we need at least 68020 code to build shared libraries, but
7488      # adding the `-m68020' flag to GCC prevents building anything better,
7489      # like `-m68040'.
7490      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7491      ;;
7492
7493    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7494      # PIC is the default for these OSes.
7495      ;;
7496
7497    mingw* | cygwin* | pw32* | os2*)
7498      # This hack is so that the source file can tell whether it is being
7499      # built for inclusion in a dll (and should export symbols for example).
7500      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7501      # (--disable-auto-import) libraries
7502      lt_prog_compiler_pic='-DDLL_EXPORT'
7503      ;;
7504
7505    darwin* | rhapsody*)
7506      # PIC is the default on this platform
7507      # Common symbols not allowed in MH_DYLIB files
7508      lt_prog_compiler_pic='-fno-common'
7509      ;;
7510
7511    interix[3-9]*)
7512      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7513      # Instead, we relocate shared libraries at runtime.
7514      ;;
7515
7516    msdosdjgpp*)
7517      # Just because we use GCC doesn't mean we suddenly get shared libraries
7518      # on systems that don't support them.
7519      lt_prog_compiler_can_build_shared=no
7520      enable_shared=no
7521      ;;
7522
7523    sysv4*MP*)
7524      if test -d /usr/nec; then
7525	lt_prog_compiler_pic=-Kconform_pic
7526      fi
7527      ;;
7528
7529    hpux*)
7530      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7531      # not for PA HP-UX.
7532      case $host_cpu in
7533      hppa*64*|ia64*)
7534	# +Z the default
7535	;;
7536      *)
7537	lt_prog_compiler_pic='-fPIC'
7538	;;
7539      esac
7540      ;;
7541
7542    *)
7543      lt_prog_compiler_pic='-fPIC'
7544      ;;
7545    esac
7546  else
7547    # PORTME Check for flag to pass linker flags through the system compiler.
7548    case $host_os in
7549    aix*)
7550      lt_prog_compiler_wl='-Wl,'
7551      if test "$host_cpu" = ia64; then
7552	# AIX 5 now supports IA64 processor
7553	lt_prog_compiler_static='-Bstatic'
7554      else
7555	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7556      fi
7557      ;;
7558      darwin*)
7559        # PIC is the default on this platform
7560        # Common symbols not allowed in MH_DYLIB files
7561       case $cc_basename in
7562         xlc*)
7563         lt_prog_compiler_pic='-qnocommon'
7564         lt_prog_compiler_wl='-Wl,'
7565         ;;
7566       esac
7567       ;;
7568
7569    mingw* | cygwin* | pw32* | os2*)
7570      # This hack is so that the source file can tell whether it is being
7571      # built for inclusion in a dll (and should export symbols for example).
7572      lt_prog_compiler_pic='-DDLL_EXPORT'
7573      ;;
7574
7575    hpux9* | hpux10* | hpux11*)
7576      lt_prog_compiler_wl='-Wl,'
7577      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7578      # not for PA HP-UX.
7579      case $host_cpu in
7580      hppa*64*|ia64*)
7581	# +Z the default
7582	;;
7583      *)
7584	lt_prog_compiler_pic='+Z'
7585	;;
7586      esac
7587      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7588      lt_prog_compiler_static='${wl}-a ${wl}archive'
7589      ;;
7590
7591    irix5* | irix6* | nonstopux*)
7592      lt_prog_compiler_wl='-Wl,'
7593      # PIC (with -KPIC) is the default.
7594      lt_prog_compiler_static='-non_shared'
7595      ;;
7596
7597    newsos6)
7598      lt_prog_compiler_pic='-KPIC'
7599      lt_prog_compiler_static='-Bstatic'
7600      ;;
7601
7602    linux* | k*bsd*-gnu)
7603      case $cc_basename in
7604      icc* | ecc*)
7605	lt_prog_compiler_wl='-Wl,'
7606	lt_prog_compiler_pic='-KPIC'
7607	lt_prog_compiler_static='-static'
7608        ;;
7609      pgcc* | pgf77* | pgf90* | pgf95*)
7610        # Portland Group compilers (*not* the Pentium gcc compiler,
7611	# which looks to be a dead project)
7612	lt_prog_compiler_wl='-Wl,'
7613	lt_prog_compiler_pic='-fpic'
7614	lt_prog_compiler_static='-Bstatic'
7615        ;;
7616      ccc*)
7617        lt_prog_compiler_wl='-Wl,'
7618        # All Alpha code is PIC.
7619        lt_prog_compiler_static='-non_shared'
7620        ;;
7621      *)
7622        case `$CC -V 2>&1 | sed 5q` in
7623	*Sun\ C*)
7624	  # Sun C 5.9
7625	  lt_prog_compiler_pic='-KPIC'
7626	  lt_prog_compiler_static='-Bstatic'
7627	  lt_prog_compiler_wl='-Wl,'
7628	  ;;
7629	*Sun\ F*)
7630	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7631	  lt_prog_compiler_pic='-KPIC'
7632	  lt_prog_compiler_static='-Bstatic'
7633	  lt_prog_compiler_wl=''
7634	  ;;
7635	esac
7636	;;
7637      esac
7638      ;;
7639
7640    osf3* | osf4* | osf5*)
7641      lt_prog_compiler_wl='-Wl,'
7642      # All OSF/1 code is PIC.
7643      lt_prog_compiler_static='-non_shared'
7644      ;;
7645
7646    rdos*)
7647      lt_prog_compiler_static='-non_shared'
7648      ;;
7649
7650    solaris*)
7651      lt_prog_compiler_pic='-KPIC'
7652      lt_prog_compiler_static='-Bstatic'
7653      case $cc_basename in
7654      f77* | f90* | f95*)
7655	lt_prog_compiler_wl='-Qoption ld ';;
7656      *)
7657	lt_prog_compiler_wl='-Wl,';;
7658      esac
7659      ;;
7660
7661    sunos4*)
7662      lt_prog_compiler_wl='-Qoption ld '
7663      lt_prog_compiler_pic='-PIC'
7664      lt_prog_compiler_static='-Bstatic'
7665      ;;
7666
7667    sysv4 | sysv4.2uw2* | sysv4.3*)
7668      lt_prog_compiler_wl='-Wl,'
7669      lt_prog_compiler_pic='-KPIC'
7670      lt_prog_compiler_static='-Bstatic'
7671      ;;
7672
7673    sysv4*MP*)
7674      if test -d /usr/nec ;then
7675	lt_prog_compiler_pic='-Kconform_pic'
7676	lt_prog_compiler_static='-Bstatic'
7677      fi
7678      ;;
7679
7680    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7681      lt_prog_compiler_wl='-Wl,'
7682      lt_prog_compiler_pic='-KPIC'
7683      lt_prog_compiler_static='-Bstatic'
7684      ;;
7685
7686    unicos*)
7687      lt_prog_compiler_wl='-Wl,'
7688      lt_prog_compiler_can_build_shared=no
7689      ;;
7690
7691    uts4*)
7692      lt_prog_compiler_pic='-pic'
7693      lt_prog_compiler_static='-Bstatic'
7694      ;;
7695
7696    *)
7697      lt_prog_compiler_can_build_shared=no
7698      ;;
7699    esac
7700  fi
7701
7702{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7703echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7704
7705#
7706# Check to make sure the PIC flag actually works.
7707#
7708if test -n "$lt_prog_compiler_pic"; then
7709
7710{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7711echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7712if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7713  echo $ECHO_N "(cached) $ECHO_C" >&6
7714else
7715  lt_cv_prog_compiler_pic_works=no
7716  ac_outfile=conftest.$ac_objext
7717   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7718   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7719   # Insert the option either (1) after the last *FLAGS variable, or
7720   # (2) before a word containing "conftest.", or (3) at the end.
7721   # Note that $ac_compile itself does not contain backslashes and begins
7722   # with a dollar sign (not a hyphen), so the echo should work correctly.
7723   # The option is referenced via a variable to avoid confusing sed.
7724   lt_compile=`echo "$ac_compile" | $SED \
7725   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7726   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7727   -e 's:$: $lt_compiler_flag:'`
7728   (eval echo "\"\$as_me:7728: $lt_compile\"" >&5)
7729   (eval "$lt_compile" 2>conftest.err)
7730   ac_status=$?
7731   cat conftest.err >&5
7732   echo "$as_me:7732: \$? = $ac_status" >&5
7733   if (exit $ac_status) && test -s "$ac_outfile"; then
7734     # The compiler can only warn and ignore the option if not recognized
7735     # So say no if there are warnings other than the usual output.
7736     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7737     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7738     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7739       lt_cv_prog_compiler_pic_works=yes
7740     fi
7741   fi
7742   $rm conftest*
7743
7744fi
7745{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7746echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7747
7748if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7749    case $lt_prog_compiler_pic in
7750     "" | " "*) ;;
7751     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7752     esac
7753else
7754    lt_prog_compiler_pic=
7755     lt_prog_compiler_can_build_shared=no
7756fi
7757
7758fi
7759case $host_os in
7760  # For platforms which do not support PIC, -DPIC is meaningless:
7761  *djgpp*)
7762    lt_prog_compiler_pic=
7763    ;;
7764  *)
7765    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7766    ;;
7767esac
7768
7769#
7770# Check to make sure the static flag actually works.
7771#
7772wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7773{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7774echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7775if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7776  echo $ECHO_N "(cached) $ECHO_C" >&6
7777else
7778  lt_cv_prog_compiler_static_works=no
7779   save_LDFLAGS="$LDFLAGS"
7780   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7781   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7782   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7783     # The linker can only warn and ignore the option if not recognized
7784     # So say no if there are warnings
7785     if test -s conftest.err; then
7786       # Append any errors to the config.log.
7787       cat conftest.err 1>&5
7788       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7789       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7790       if diff conftest.exp conftest.er2 >/dev/null; then
7791         lt_cv_prog_compiler_static_works=yes
7792       fi
7793     else
7794       lt_cv_prog_compiler_static_works=yes
7795     fi
7796   fi
7797   $rm -r conftest*
7798   LDFLAGS="$save_LDFLAGS"
7799
7800fi
7801{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7802echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7803
7804if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7805    :
7806else
7807    lt_prog_compiler_static=
7808fi
7809
7810
7811{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7812echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7813if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7814  echo $ECHO_N "(cached) $ECHO_C" >&6
7815else
7816  lt_cv_prog_compiler_c_o=no
7817   $rm -r conftest 2>/dev/null
7818   mkdir conftest
7819   cd conftest
7820   mkdir out
7821   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7822
7823   lt_compiler_flag="-o out/conftest2.$ac_objext"
7824   # Insert the option either (1) after the last *FLAGS variable, or
7825   # (2) before a word containing "conftest.", or (3) at the end.
7826   # Note that $ac_compile itself does not contain backslashes and begins
7827   # with a dollar sign (not a hyphen), so the echo should work correctly.
7828   lt_compile=`echo "$ac_compile" | $SED \
7829   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7830   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7831   -e 's:$: $lt_compiler_flag:'`
7832   (eval echo "\"\$as_me:7832: $lt_compile\"" >&5)
7833   (eval "$lt_compile" 2>out/conftest.err)
7834   ac_status=$?
7835   cat out/conftest.err >&5
7836   echo "$as_me:7836: \$? = $ac_status" >&5
7837   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7838   then
7839     # The compiler can only warn and ignore the option if not recognized
7840     # So say no if there are warnings
7841     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7842     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7843     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7844       lt_cv_prog_compiler_c_o=yes
7845     fi
7846   fi
7847   chmod u+w . 2>&5
7848   $rm conftest*
7849   # SGI C++ compiler will create directory out/ii_files/ for
7850   # template instantiation
7851   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7852   $rm out/* && rmdir out
7853   cd ..
7854   rmdir conftest
7855   $rm conftest*
7856
7857fi
7858{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7859echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7860
7861
7862hard_links="nottested"
7863if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7864  # do not overwrite the value of need_locks provided by the user
7865  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7866echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7867  hard_links=yes
7868  $rm conftest*
7869  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7870  touch conftest.a
7871  ln conftest.a conftest.b 2>&5 || hard_links=no
7872  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7873  { echo "$as_me:$LINENO: result: $hard_links" >&5
7874echo "${ECHO_T}$hard_links" >&6; }
7875  if test "$hard_links" = no; then
7876    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7877echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7878    need_locks=warn
7879  fi
7880else
7881  need_locks=no
7882fi
7883
7884{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7885echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7886
7887  runpath_var=
7888  allow_undefined_flag=
7889  enable_shared_with_static_runtimes=no
7890  archive_cmds=
7891  archive_expsym_cmds=
7892  old_archive_From_new_cmds=
7893  old_archive_from_expsyms_cmds=
7894  export_dynamic_flag_spec=
7895  whole_archive_flag_spec=
7896  thread_safe_flag_spec=
7897  hardcode_libdir_flag_spec=
7898  hardcode_libdir_flag_spec_ld=
7899  hardcode_libdir_separator=
7900  hardcode_direct=no
7901  hardcode_minus_L=no
7902  hardcode_shlibpath_var=unsupported
7903  link_all_deplibs=unknown
7904  hardcode_automatic=no
7905  module_cmds=
7906  module_expsym_cmds=
7907  always_export_symbols=no
7908  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7909  # include_expsyms should be a list of space-separated symbols to be *always*
7910  # included in the symbol list
7911  include_expsyms=
7912  # exclude_expsyms can be an extended regexp of symbols to exclude
7913  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7914  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7915  # as well as any symbol that contains `d'.
7916  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7917  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7918  # platforms (ab)use it in PIC code, but their linkers get confused if
7919  # the symbol is explicitly referenced.  Since portable code cannot
7920  # rely on this symbol name, it's probably fine to never include it in
7921  # preloaded symbol tables.
7922  # Exclude shared library initialization/finalization symbols.
7923  extract_expsyms_cmds=
7924  # Just being paranoid about ensuring that cc_basename is set.
7925  for cc_temp in $compiler""; do
7926  case $cc_temp in
7927    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7928    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7929    \-*) ;;
7930    *) break;;
7931  esac
7932done
7933cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7934
7935  case $host_os in
7936  cygwin* | mingw* | pw32*)
7937    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7938    # When not using gcc, we currently assume that we are using
7939    # Microsoft Visual C++.
7940    if test "$GCC" != yes; then
7941      with_gnu_ld=no
7942    fi
7943    ;;
7944  interix*)
7945    # we just hope/assume this is gcc and not c89 (= MSVC++)
7946    with_gnu_ld=yes
7947    ;;
7948  openbsd*)
7949    with_gnu_ld=no
7950    ;;
7951  esac
7952
7953  ld_shlibs=yes
7954  if test "$with_gnu_ld" = yes; then
7955    # If archive_cmds runs LD, not CC, wlarc should be empty
7956    wlarc='${wl}'
7957
7958    # Set some defaults for GNU ld with shared library support. These
7959    # are reset later if shared libraries are not supported. Putting them
7960    # here allows them to be overridden if necessary.
7961    runpath_var=LD_RUN_PATH
7962    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7963    export_dynamic_flag_spec='${wl}--export-dynamic'
7964    # ancient GNU ld didn't support --whole-archive et. al.
7965    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7966	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7967      else
7968  	whole_archive_flag_spec=
7969    fi
7970    supports_anon_versioning=no
7971    case `$LD -v 2>/dev/null` in
7972      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7973      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7974      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7975      *\ 2.11.*) ;; # other 2.11 versions
7976      *) supports_anon_versioning=yes ;;
7977    esac
7978
7979    # See if GNU ld supports shared libraries.
7980    case $host_os in
7981    aix[3-9]*)
7982      # On AIX/PPC, the GNU linker is very broken
7983      if test "$host_cpu" != ia64; then
7984	ld_shlibs=no
7985	cat <<EOF 1>&2
7986
7987*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7988*** to be unable to reliably create shared libraries on AIX.
7989*** Therefore, libtool is disabling shared libraries support.  If you
7990*** really care for shared libraries, you may want to modify your PATH
7991*** so that a non-GNU linker is found, and then restart.
7992
7993EOF
7994      fi
7995      ;;
7996
7997    amigaos*)
7998      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)'
7999      hardcode_libdir_flag_spec='-L$libdir'
8000      hardcode_minus_L=yes
8001
8002      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8003      # that the semantics of dynamic libraries on AmigaOS, at least up
8004      # to version 4, is to share data among multiple programs linked
8005      # with the same dynamic library.  Since this doesn't match the
8006      # behavior of shared libraries on other platforms, we can't use
8007      # them.
8008      ld_shlibs=no
8009      ;;
8010
8011    beos*)
8012      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8013	allow_undefined_flag=unsupported
8014	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8015	# support --undefined.  This deserves some investigation.  FIXME
8016	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8017      else
8018	ld_shlibs=no
8019      fi
8020      ;;
8021
8022    cygwin* | mingw* | pw32*)
8023      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8024      # as there is no search path for DLLs.
8025      hardcode_libdir_flag_spec='-L$libdir'
8026      allow_undefined_flag=unsupported
8027      always_export_symbols=no
8028      enable_shared_with_static_runtimes=yes
8029      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8030
8031      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8032        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8033	# If the export-symbols file already is a .def file (1st line
8034	# is EXPORTS), use it as is; otherwise, prepend...
8035	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8036	  cp $export_symbols $output_objdir/$soname.def;
8037	else
8038	  echo EXPORTS > $output_objdir/$soname.def;
8039	  cat $export_symbols >> $output_objdir/$soname.def;
8040	fi~
8041	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8042      else
8043	ld_shlibs=no
8044      fi
8045      ;;
8046
8047    interix[3-9]*)
8048      hardcode_direct=no
8049      hardcode_shlibpath_var=no
8050      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8051      export_dynamic_flag_spec='${wl}-E'
8052      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8053      # Instead, shared libraries are loaded at an image base (0x10000000 by
8054      # default) and relocated if they conflict, which is a slow very memory
8055      # consuming and fragmenting process.  To avoid this, we pick a random,
8056      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8057      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8058      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8059      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'
8060      ;;
8061
8062    gnu* | linux* | k*bsd*-gnu)
8063      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8064	tmp_addflag=
8065	case $cc_basename,$host_cpu in
8066	pgcc*)				# Portland Group C compiler
8067	  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'
8068	  tmp_addflag=' $pic_flag'
8069	  ;;
8070	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8071	  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'
8072	  tmp_addflag=' $pic_flag -Mnomain' ;;
8073	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8074	  tmp_addflag=' -i_dynamic' ;;
8075	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8076	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8077	ifc* | ifort*)			# Intel Fortran compiler
8078	  tmp_addflag=' -nofor_main' ;;
8079	esac
8080	case `$CC -V 2>&1 | sed 5q` in
8081	*Sun\ C*)			# Sun C 5.9
8082	  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'
8083	  tmp_sharedflag='-G' ;;
8084	*Sun\ F*)			# Sun Fortran 8.3
8085	  tmp_sharedflag='-G' ;;
8086	*)
8087	  tmp_sharedflag='-shared' ;;
8088	esac
8089	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8090
8091	if test $supports_anon_versioning = yes; then
8092	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8093  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8094  $echo "local: *; };" >> $output_objdir/$libname.ver~
8095	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8096	fi
8097	link_all_deplibs=no
8098      else
8099	ld_shlibs=no
8100      fi
8101      ;;
8102
8103    netbsd* | netbsdelf*-gnu)
8104      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8105	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8106	wlarc=
8107      else
8108	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8109	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8110      fi
8111      ;;
8112
8113    solaris*)
8114      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8115	ld_shlibs=no
8116	cat <<EOF 1>&2
8117
8118*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8119*** create shared libraries on Solaris systems.  Therefore, libtool
8120*** is disabling shared libraries support.  We urge you to upgrade GNU
8121*** binutils to release 2.9.1 or newer.  Another option is to modify
8122*** your PATH or compiler configuration so that the native linker is
8123*** used, and then restart.
8124
8125EOF
8126      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8127	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8128	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8129      else
8130	ld_shlibs=no
8131      fi
8132      ;;
8133
8134    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8135      case `$LD -v 2>&1` in
8136        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8137	ld_shlibs=no
8138	cat <<_LT_EOF 1>&2
8139
8140*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8141*** reliably create shared libraries on SCO systems.  Therefore, libtool
8142*** is disabling shared libraries support.  We urge you to upgrade GNU
8143*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8144*** your PATH or compiler configuration so that the native linker is
8145*** used, and then restart.
8146
8147_LT_EOF
8148	;;
8149	*)
8150	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8151	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8152	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8153	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8154	  else
8155	    ld_shlibs=no
8156	  fi
8157	;;
8158      esac
8159      ;;
8160
8161    sunos4*)
8162      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8163      wlarc=
8164      hardcode_direct=yes
8165      hardcode_shlibpath_var=no
8166      ;;
8167
8168    *)
8169      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8170	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8171	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8172      else
8173	ld_shlibs=no
8174      fi
8175      ;;
8176    esac
8177
8178    if test "$ld_shlibs" = no; then
8179      runpath_var=
8180      hardcode_libdir_flag_spec=
8181      export_dynamic_flag_spec=
8182      whole_archive_flag_spec=
8183    fi
8184  else
8185    # PORTME fill in a description of your system's linker (not GNU ld)
8186    case $host_os in
8187    aix3*)
8188      allow_undefined_flag=unsupported
8189      always_export_symbols=yes
8190      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'
8191      # Note: this linker hardcodes the directories in LIBPATH if there
8192      # are no directories specified by -L.
8193      hardcode_minus_L=yes
8194      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8195	# Neither direct hardcoding nor static linking is supported with a
8196	# broken collect2.
8197	hardcode_direct=unsupported
8198      fi
8199      ;;
8200
8201    aix[4-9]*)
8202      if test "$host_cpu" = ia64; then
8203	# On IA64, the linker does run time linking by default, so we don't
8204	# have to do anything special.
8205	aix_use_runtimelinking=no
8206	exp_sym_flag='-Bexport'
8207	no_entry_flag=""
8208      else
8209	# If we're using GNU nm, then we don't want the "-C" option.
8210	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8211	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8212	  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'
8213	else
8214	  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'
8215	fi
8216	aix_use_runtimelinking=no
8217
8218	# Test if we are trying to use run time linking or normal
8219	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8220	# need to do runtime linking.
8221	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8222	  for ld_flag in $LDFLAGS; do
8223  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8224  	    aix_use_runtimelinking=yes
8225  	    break
8226  	  fi
8227	  done
8228	  ;;
8229	esac
8230
8231	exp_sym_flag='-bexport'
8232	no_entry_flag='-bnoentry'
8233      fi
8234
8235      # When large executables or shared objects are built, AIX ld can
8236      # have problems creating the table of contents.  If linking a library
8237      # or program results in "error TOC overflow" add -mminimal-toc to
8238      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8239      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8240
8241      archive_cmds=''
8242      hardcode_direct=yes
8243      hardcode_libdir_separator=':'
8244      link_all_deplibs=yes
8245
8246      if test "$GCC" = yes; then
8247	case $host_os in aix4.[012]|aix4.[012].*)
8248	# We only want to do this on AIX 4.2 and lower, the check
8249	# below for broken collect2 doesn't work under 4.3+
8250	  collect2name=`${CC} -print-prog-name=collect2`
8251	  if test -f "$collect2name" && \
8252  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8253	  then
8254  	  # We have reworked collect2
8255  	  :
8256	  else
8257  	  # We have old collect2
8258  	  hardcode_direct=unsupported
8259  	  # It fails to find uninstalled libraries when the uninstalled
8260  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8261  	  # to unsupported forces relinking
8262  	  hardcode_minus_L=yes
8263  	  hardcode_libdir_flag_spec='-L$libdir'
8264  	  hardcode_libdir_separator=
8265	  fi
8266	  ;;
8267	esac
8268	shared_flag='-shared'
8269	if test "$aix_use_runtimelinking" = yes; then
8270	  shared_flag="$shared_flag "'${wl}-G'
8271	fi
8272      else
8273	# not using gcc
8274	if test "$host_cpu" = ia64; then
8275  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8276  	# chokes on -Wl,-G. The following line is correct:
8277	  shared_flag='-G'
8278	else
8279	  if test "$aix_use_runtimelinking" = yes; then
8280	    shared_flag='${wl}-G'
8281	  else
8282	    shared_flag='${wl}-bM:SRE'
8283	  fi
8284	fi
8285      fi
8286
8287      # It seems that -bexpall does not export symbols beginning with
8288      # underscore (_), so it is better to generate a list of symbols to export.
8289      always_export_symbols=yes
8290      if test "$aix_use_runtimelinking" = yes; then
8291	# Warning - without using the other runtime loading flags (-brtl),
8292	# -berok will link without error, but may produce a broken library.
8293	allow_undefined_flag='-berok'
8294       # Determine the default libpath from the value encoded in an empty executable.
8295       cat >conftest.$ac_ext <<_ACEOF
8296/* confdefs.h.  */
8297_ACEOF
8298cat confdefs.h >>conftest.$ac_ext
8299cat >>conftest.$ac_ext <<_ACEOF
8300/* end confdefs.h.  */
8301
8302int
8303main ()
8304{
8305
8306  ;
8307  return 0;
8308}
8309_ACEOF
8310rm -f conftest.$ac_objext conftest$ac_exeext
8311if { (ac_try="$ac_link"
8312case "(($ac_try" in
8313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314  *) ac_try_echo=$ac_try;;
8315esac
8316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317  (eval "$ac_link") 2>conftest.er1
8318  ac_status=$?
8319  grep -v '^ *+' conftest.er1 >conftest.err
8320  rm -f conftest.er1
8321  cat conftest.err >&5
8322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323  (exit $ac_status); } && {
8324	 test -z "$ac_c_werror_flag" ||
8325	 test ! -s conftest.err
8326       } && test -s conftest$ac_exeext &&
8327       $as_test_x conftest$ac_exeext; then
8328
8329lt_aix_libpath_sed='
8330    /Import File Strings/,/^$/ {
8331	/^0/ {
8332	    s/^0  *\(.*\)$/\1/
8333	    p
8334	}
8335    }'
8336aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8337# Check for a 64-bit object if we didn't find anything.
8338if test -z "$aix_libpath"; then
8339  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8340fi
8341else
8342  echo "$as_me: failed program was:" >&5
8343sed 's/^/| /' conftest.$ac_ext >&5
8344
8345
8346fi
8347
8348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8349      conftest$ac_exeext conftest.$ac_ext
8350if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8351
8352       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8353	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"
8354       else
8355	if test "$host_cpu" = ia64; then
8356	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8357	  allow_undefined_flag="-z nodefs"
8358	  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"
8359	else
8360	 # Determine the default libpath from the value encoded in an empty executable.
8361	 cat >conftest.$ac_ext <<_ACEOF
8362/* confdefs.h.  */
8363_ACEOF
8364cat confdefs.h >>conftest.$ac_ext
8365cat >>conftest.$ac_ext <<_ACEOF
8366/* end confdefs.h.  */
8367
8368int
8369main ()
8370{
8371
8372  ;
8373  return 0;
8374}
8375_ACEOF
8376rm -f conftest.$ac_objext conftest$ac_exeext
8377if { (ac_try="$ac_link"
8378case "(($ac_try" in
8379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380  *) ac_try_echo=$ac_try;;
8381esac
8382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383  (eval "$ac_link") 2>conftest.er1
8384  ac_status=$?
8385  grep -v '^ *+' conftest.er1 >conftest.err
8386  rm -f conftest.er1
8387  cat conftest.err >&5
8388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389  (exit $ac_status); } && {
8390	 test -z "$ac_c_werror_flag" ||
8391	 test ! -s conftest.err
8392       } && test -s conftest$ac_exeext &&
8393       $as_test_x conftest$ac_exeext; then
8394
8395lt_aix_libpath_sed='
8396    /Import File Strings/,/^$/ {
8397	/^0/ {
8398	    s/^0  *\(.*\)$/\1/
8399	    p
8400	}
8401    }'
8402aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8403# Check for a 64-bit object if we didn't find anything.
8404if test -z "$aix_libpath"; then
8405  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8406fi
8407else
8408  echo "$as_me: failed program was:" >&5
8409sed 's/^/| /' conftest.$ac_ext >&5
8410
8411
8412fi
8413
8414rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8415      conftest$ac_exeext conftest.$ac_ext
8416if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8417
8418	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8419	  # Warning - without using the other run time loading flags,
8420	  # -berok will link without error, but may produce a broken library.
8421	  no_undefined_flag=' ${wl}-bernotok'
8422	  allow_undefined_flag=' ${wl}-berok'
8423	  # Exported symbols can be pulled into shared objects from archives
8424	  whole_archive_flag_spec='$convenience'
8425	  archive_cmds_need_lc=yes
8426	  # This is similar to how AIX traditionally builds its shared libraries.
8427	  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'
8428	fi
8429      fi
8430      ;;
8431
8432    amigaos*)
8433      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)'
8434      hardcode_libdir_flag_spec='-L$libdir'
8435      hardcode_minus_L=yes
8436      # see comment about different semantics on the GNU ld section
8437      ld_shlibs=no
8438      ;;
8439
8440    bsdi[45]*)
8441      export_dynamic_flag_spec=-rdynamic
8442      ;;
8443
8444    cygwin* | mingw* | pw32*)
8445      # When not using gcc, we currently assume that we are using
8446      # Microsoft Visual C++.
8447      # hardcode_libdir_flag_spec is actually meaningless, as there is
8448      # no search path for DLLs.
8449      hardcode_libdir_flag_spec=' '
8450      allow_undefined_flag=unsupported
8451      # Tell ltmain to make .lib files, not .a files.
8452      libext=lib
8453      # Tell ltmain to make .dll files, not .so files.
8454      shrext_cmds=".dll"
8455      # FIXME: Setting linknames here is a bad hack.
8456      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8457      # The linker will automatically build a .lib file if we build a DLL.
8458      old_archive_From_new_cmds='true'
8459      # FIXME: Should let the user specify the lib program.
8460      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8461      fix_srcfile_path='`cygpath -w "$srcfile"`'
8462      enable_shared_with_static_runtimes=yes
8463      ;;
8464
8465    darwin* | rhapsody*)
8466      case $host_os in
8467        rhapsody* | darwin1.[012])
8468         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8469         ;;
8470       *) # Darwin 1.3 on
8471         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8472           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8473         else
8474           case ${MACOSX_DEPLOYMENT_TARGET} in
8475             10.[012])
8476               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8477               ;;
8478             10.*)
8479               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8480               ;;
8481           esac
8482         fi
8483         ;;
8484      esac
8485      archive_cmds_need_lc=no
8486      hardcode_direct=no
8487      hardcode_automatic=yes
8488      hardcode_shlibpath_var=unsupported
8489      whole_archive_flag_spec=''
8490      link_all_deplibs=yes
8491    if test "$GCC" = yes ; then
8492    	output_verbose_link_cmd='echo'
8493        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8494        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8495        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8496        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8497    else
8498      case $cc_basename in
8499        xlc*)
8500         output_verbose_link_cmd='echo'
8501         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8502         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8503          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8504         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8505          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}'
8506          ;;
8507       *)
8508         ld_shlibs=no
8509          ;;
8510      esac
8511    fi
8512      ;;
8513
8514    dgux*)
8515      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8516      hardcode_libdir_flag_spec='-L$libdir'
8517      hardcode_shlibpath_var=no
8518      ;;
8519
8520    freebsd1*)
8521      ld_shlibs=no
8522      ;;
8523
8524    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8525    # support.  Future versions do this automatically, but an explicit c++rt0.o
8526    # does not break anything, and helps significantly (at the cost of a little
8527    # extra space).
8528    freebsd2.2*)
8529      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8530      hardcode_libdir_flag_spec='-R$libdir'
8531      hardcode_direct=yes
8532      hardcode_shlibpath_var=no
8533      ;;
8534
8535    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8536    freebsd2*)
8537      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8538      hardcode_direct=yes
8539      hardcode_minus_L=yes
8540      hardcode_shlibpath_var=no
8541      ;;
8542
8543    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8544    freebsd* | dragonfly*)
8545      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8546      hardcode_libdir_flag_spec='-R$libdir'
8547      hardcode_direct=yes
8548      hardcode_shlibpath_var=no
8549      ;;
8550
8551    hpux9*)
8552      if test "$GCC" = yes; then
8553	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'
8554      else
8555	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'
8556      fi
8557      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8558      hardcode_libdir_separator=:
8559      hardcode_direct=yes
8560
8561      # hardcode_minus_L: Not really in the search PATH,
8562      # but as the default location of the library.
8563      hardcode_minus_L=yes
8564      export_dynamic_flag_spec='${wl}-E'
8565      ;;
8566
8567    hpux10*)
8568      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8569	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8570      else
8571	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8572      fi
8573      if test "$with_gnu_ld" = no; then
8574	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8575	hardcode_libdir_separator=:
8576
8577	hardcode_direct=yes
8578	export_dynamic_flag_spec='${wl}-E'
8579
8580	# hardcode_minus_L: Not really in the search PATH,
8581	# but as the default location of the library.
8582	hardcode_minus_L=yes
8583      fi
8584      ;;
8585
8586    hpux11*)
8587      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8588	case $host_cpu in
8589	hppa*64*)
8590	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8591	  ;;
8592	ia64*)
8593	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8594	  ;;
8595	*)
8596	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8597	  ;;
8598	esac
8599      else
8600	case $host_cpu in
8601	hppa*64*)
8602	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8603	  ;;
8604	ia64*)
8605	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8606	  ;;
8607	*)
8608	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8609	  ;;
8610	esac
8611      fi
8612      if test "$with_gnu_ld" = no; then
8613	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8614	hardcode_libdir_separator=:
8615
8616	case $host_cpu in
8617	hppa*64*|ia64*)
8618	  hardcode_libdir_flag_spec_ld='+b $libdir'
8619	  hardcode_direct=no
8620	  hardcode_shlibpath_var=no
8621	  ;;
8622	*)
8623	  hardcode_direct=yes
8624	  export_dynamic_flag_spec='${wl}-E'
8625
8626	  # hardcode_minus_L: Not really in the search PATH,
8627	  # but as the default location of the library.
8628	  hardcode_minus_L=yes
8629	  ;;
8630	esac
8631      fi
8632      ;;
8633
8634    irix5* | irix6* | nonstopux*)
8635      if test "$GCC" = yes; then
8636	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'
8637      else
8638	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'
8639	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8640      fi
8641      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8642      hardcode_libdir_separator=:
8643      link_all_deplibs=yes
8644      ;;
8645
8646    netbsd* | netbsdelf*-gnu)
8647      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8648	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8649      else
8650	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8651      fi
8652      hardcode_libdir_flag_spec='-R$libdir'
8653      hardcode_direct=yes
8654      hardcode_shlibpath_var=no
8655      ;;
8656
8657    newsos6)
8658      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8659      hardcode_direct=yes
8660      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8661      hardcode_libdir_separator=:
8662      hardcode_shlibpath_var=no
8663      ;;
8664
8665    openbsd*)
8666      if test -f /usr/libexec/ld.so; then
8667	hardcode_direct=yes
8668	hardcode_shlibpath_var=no
8669	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8670	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8671	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8672	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8673	  export_dynamic_flag_spec='${wl}-E'
8674	else
8675	  case $host_os in
8676	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8677	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8678	     hardcode_libdir_flag_spec='-R$libdir'
8679	     ;;
8680	   *)
8681	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8682	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8683	     ;;
8684	  esac
8685        fi
8686      else
8687	ld_shlibs=no
8688      fi
8689      ;;
8690
8691    os2*)
8692      hardcode_libdir_flag_spec='-L$libdir'
8693      hardcode_minus_L=yes
8694      allow_undefined_flag=unsupported
8695      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'
8696      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8697      ;;
8698
8699    osf3*)
8700      if test "$GCC" = yes; then
8701	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8702	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'
8703      else
8704	allow_undefined_flag=' -expect_unresolved \*'
8705	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'
8706      fi
8707      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8708      hardcode_libdir_separator=:
8709      ;;
8710
8711    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8712      if test "$GCC" = yes; then
8713	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8714	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'
8715	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8716      else
8717	allow_undefined_flag=' -expect_unresolved \*'
8718	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'
8719	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8720	$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'
8721
8722	# Both c and cxx compiler support -rpath directly
8723	hardcode_libdir_flag_spec='-rpath $libdir'
8724      fi
8725      hardcode_libdir_separator=:
8726      ;;
8727
8728    solaris*)
8729      no_undefined_flag=' -z text'
8730      if test "$GCC" = yes; then
8731	wlarc='${wl}'
8732	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8733	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8734	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8735      else
8736	wlarc=''
8737	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8738	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8739  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8740      fi
8741      hardcode_libdir_flag_spec='-R$libdir'
8742      hardcode_shlibpath_var=no
8743      case $host_os in
8744      solaris2.[0-5] | solaris2.[0-5].*) ;;
8745      *)
8746	# The compiler driver will combine and reorder linker options,
8747	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8748	# but is careful enough not to reorder.
8749 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8750	if test "$GCC" = yes; then
8751	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8752	else
8753	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8754	fi
8755	;;
8756      esac
8757      link_all_deplibs=yes
8758      ;;
8759
8760    sunos4*)
8761      if test "x$host_vendor" = xsequent; then
8762	# Use $CC to link under sequent, because it throws in some extra .o
8763	# files that make .init and .fini sections work.
8764	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8765      else
8766	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8767      fi
8768      hardcode_libdir_flag_spec='-L$libdir'
8769      hardcode_direct=yes
8770      hardcode_minus_L=yes
8771      hardcode_shlibpath_var=no
8772      ;;
8773
8774    sysv4)
8775      case $host_vendor in
8776	sni)
8777	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8778	  hardcode_direct=yes # is this really true???
8779	;;
8780	siemens)
8781	  ## LD is ld it makes a PLAMLIB
8782	  ## CC just makes a GrossModule.
8783	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8784	  reload_cmds='$CC -r -o $output$reload_objs'
8785	  hardcode_direct=no
8786        ;;
8787	motorola)
8788	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8789	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8790	;;
8791      esac
8792      runpath_var='LD_RUN_PATH'
8793      hardcode_shlibpath_var=no
8794      ;;
8795
8796    sysv4.3*)
8797      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8798      hardcode_shlibpath_var=no
8799      export_dynamic_flag_spec='-Bexport'
8800      ;;
8801
8802    sysv4*MP*)
8803      if test -d /usr/nec; then
8804	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8805	hardcode_shlibpath_var=no
8806	runpath_var=LD_RUN_PATH
8807	hardcode_runpath_var=yes
8808	ld_shlibs=yes
8809      fi
8810      ;;
8811
8812    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8813      no_undefined_flag='${wl}-z,text'
8814      archive_cmds_need_lc=no
8815      hardcode_shlibpath_var=no
8816      runpath_var='LD_RUN_PATH'
8817
8818      if test "$GCC" = yes; then
8819	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8820	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8821      else
8822	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8823	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8824      fi
8825      ;;
8826
8827    sysv5* | sco3.2v5* | sco5v6*)
8828      # Note: We can NOT use -z defs as we might desire, because we do not
8829      # link with -lc, and that would cause any symbols used from libc to
8830      # always be unresolved, which means just about no library would
8831      # ever link correctly.  If we're not using GNU ld we use -z text
8832      # though, which does catch some bad symbols but isn't as heavy-handed
8833      # as -z defs.
8834      no_undefined_flag='${wl}-z,text'
8835      allow_undefined_flag='${wl}-z,nodefs'
8836      archive_cmds_need_lc=no
8837      hardcode_shlibpath_var=no
8838      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8839      hardcode_libdir_separator=':'
8840      link_all_deplibs=yes
8841      export_dynamic_flag_spec='${wl}-Bexport'
8842      runpath_var='LD_RUN_PATH'
8843
8844      if test "$GCC" = yes; then
8845	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8846	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8847      else
8848	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8849	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8850      fi
8851      ;;
8852
8853    uts4*)
8854      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8855      hardcode_libdir_flag_spec='-L$libdir'
8856      hardcode_shlibpath_var=no
8857      ;;
8858
8859    *)
8860      ld_shlibs=no
8861      ;;
8862    esac
8863  fi
8864
8865{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8866echo "${ECHO_T}$ld_shlibs" >&6; }
8867test "$ld_shlibs" = no && can_build_shared=no
8868
8869#
8870# Do we need to explicitly link libc?
8871#
8872case "x$archive_cmds_need_lc" in
8873x|xyes)
8874  # Assume -lc should be added
8875  archive_cmds_need_lc=yes
8876
8877  if test "$enable_shared" = yes && test "$GCC" = yes; then
8878    case $archive_cmds in
8879    *'~'*)
8880      # FIXME: we may have to deal with multi-command sequences.
8881      ;;
8882    '$CC '*)
8883      # Test whether the compiler implicitly links with -lc since on some
8884      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8885      # to ld, don't add -lc before -lgcc.
8886      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8887echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8888      $rm conftest*
8889      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8890
8891      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8892  (eval $ac_compile) 2>&5
8893  ac_status=$?
8894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895  (exit $ac_status); } 2>conftest.err; then
8896        soname=conftest
8897        lib=conftest
8898        libobjs=conftest.$ac_objext
8899        deplibs=
8900        wl=$lt_prog_compiler_wl
8901	pic_flag=$lt_prog_compiler_pic
8902        compiler_flags=-v
8903        linker_flags=-v
8904        verstring=
8905        output_objdir=.
8906        libname=conftest
8907        lt_save_allow_undefined_flag=$allow_undefined_flag
8908        allow_undefined_flag=
8909        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8910  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8911  ac_status=$?
8912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913  (exit $ac_status); }
8914        then
8915	  archive_cmds_need_lc=no
8916        else
8917	  archive_cmds_need_lc=yes
8918        fi
8919        allow_undefined_flag=$lt_save_allow_undefined_flag
8920      else
8921        cat conftest.err 1>&5
8922      fi
8923      $rm conftest*
8924      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8925echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8926      ;;
8927    esac
8928  fi
8929  ;;
8930esac
8931
8932{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8933echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8934library_names_spec=
8935libname_spec='lib$name'
8936soname_spec=
8937shrext_cmds=".so"
8938postinstall_cmds=
8939postuninstall_cmds=
8940finish_cmds=
8941finish_eval=
8942shlibpath_var=
8943shlibpath_overrides_runpath=unknown
8944version_type=none
8945dynamic_linker="$host_os ld.so"
8946sys_lib_dlsearch_path_spec="/lib /usr/lib"
8947
8948if test "$GCC" = yes; then
8949  case $host_os in
8950    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8951    *) lt_awk_arg="/^libraries:/" ;;
8952  esac
8953  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8954  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8955    # if the path contains ";" then we assume it to be the separator
8956    # otherwise default to the standard path separator (i.e. ":") - it is
8957    # assumed that no part of a normal pathname contains ";" but that should
8958    # okay in the real world where ";" in dirpaths is itself problematic.
8959    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8960  else
8961    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8962  fi
8963  # Ok, now we have the path, separated by spaces, we can step through it
8964  # and add multilib dir if necessary.
8965  lt_tmp_lt_search_path_spec=
8966  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8967  for lt_sys_path in $lt_search_path_spec; do
8968    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8969      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8970    else
8971      test -d "$lt_sys_path" && \
8972	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8973    fi
8974  done
8975  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8976BEGIN {RS=" "; FS="/|\n";} {
8977  lt_foo="";
8978  lt_count=0;
8979  for (lt_i = NF; lt_i > 0; lt_i--) {
8980    if ($lt_i != "" && $lt_i != ".") {
8981      if ($lt_i == "..") {
8982        lt_count++;
8983      } else {
8984        if (lt_count == 0) {
8985          lt_foo="/" $lt_i lt_foo;
8986        } else {
8987          lt_count--;
8988        }
8989      }
8990    }
8991  }
8992  if (lt_foo != "") { lt_freq[lt_foo]++; }
8993  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8994}'`
8995  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8996else
8997  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8998fi
8999need_lib_prefix=unknown
9000hardcode_into_libs=no
9001
9002# when you set need_version to no, make sure it does not cause -set_version
9003# flags to be left without arguments
9004need_version=unknown
9005
9006case $host_os in
9007aix3*)
9008  version_type=linux
9009  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9010  shlibpath_var=LIBPATH
9011
9012  # AIX 3 has no versioning support, so we append a major version to the name.
9013  soname_spec='${libname}${release}${shared_ext}$major'
9014  ;;
9015
9016aix[4-9]*)
9017  version_type=linux
9018  need_lib_prefix=no
9019  need_version=no
9020  hardcode_into_libs=yes
9021  if test "$host_cpu" = ia64; then
9022    # AIX 5 supports IA64
9023    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9024    shlibpath_var=LD_LIBRARY_PATH
9025  else
9026    # With GCC up to 2.95.x, collect2 would create an import file
9027    # for dependence libraries.  The import file would start with
9028    # the line `#! .'.  This would cause the generated library to
9029    # depend on `.', always an invalid library.  This was fixed in
9030    # development snapshots of GCC prior to 3.0.
9031    case $host_os in
9032      aix4 | aix4.[01] | aix4.[01].*)
9033      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9034	   echo ' yes '
9035	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9036	:
9037      else
9038	can_build_shared=no
9039      fi
9040      ;;
9041    esac
9042    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9043    # soname into executable. Probably we can add versioning support to
9044    # collect2, so additional links can be useful in future.
9045    if test "$aix_use_runtimelinking" = yes; then
9046      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9047      # instead of lib<name>.a to let people know that these are not
9048      # typical AIX shared libraries.
9049      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9050    else
9051      # We preserve .a as extension for shared libraries through AIX4.2
9052      # and later when we are not doing run time linking.
9053      library_names_spec='${libname}${release}.a $libname.a'
9054      soname_spec='${libname}${release}${shared_ext}$major'
9055    fi
9056    shlibpath_var=LIBPATH
9057  fi
9058  ;;
9059
9060amigaos*)
9061  library_names_spec='$libname.ixlibrary $libname.a'
9062  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9063  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'
9064  ;;
9065
9066beos*)
9067  library_names_spec='${libname}${shared_ext}'
9068  dynamic_linker="$host_os ld.so"
9069  shlibpath_var=LIBRARY_PATH
9070  ;;
9071
9072bsdi[45]*)
9073  version_type=linux
9074  need_version=no
9075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076  soname_spec='${libname}${release}${shared_ext}$major'
9077  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9078  shlibpath_var=LD_LIBRARY_PATH
9079  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9080  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9081  # the default ld.so.conf also contains /usr/contrib/lib and
9082  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9083  # libtool to hard-code these into programs
9084  ;;
9085
9086cygwin* | mingw* | pw32*)
9087  version_type=windows
9088  shrext_cmds=".dll"
9089  need_version=no
9090  need_lib_prefix=no
9091
9092  case $GCC,$host_os in
9093  yes,cygwin* | yes,mingw* | yes,pw32*)
9094    library_names_spec='$libname.dll.a'
9095    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9096    postinstall_cmds='base_file=`basename \${file}`~
9097      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9098      dldir=$destdir/`dirname \$dlpath`~
9099      test -d \$dldir || mkdir -p \$dldir~
9100      $install_prog $dir/$dlname \$dldir/$dlname~
9101      chmod a+x \$dldir/$dlname'
9102    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9103      dlpath=$dir/\$dldll~
9104       $rm \$dlpath'
9105    shlibpath_overrides_runpath=yes
9106
9107    case $host_os in
9108    cygwin*)
9109      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9110      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9111      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9112      ;;
9113    mingw*)
9114      # MinGW DLLs use traditional 'lib' prefix
9115      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9116      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9117      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9118        # It is most probably a Windows format PATH printed by
9119        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9120        # path with ; separators, and with drive letters. We can handle the
9121        # drive letters (cygwin fileutils understands them), so leave them,
9122        # especially as we might pass files found there to a mingw objdump,
9123        # which wouldn't understand a cygwinified path. Ahh.
9124        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9125      else
9126        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9127      fi
9128      ;;
9129    pw32*)
9130      # pw32 DLLs use 'pw' prefix rather than 'lib'
9131      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9132      ;;
9133    esac
9134    ;;
9135
9136  *)
9137    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9138    ;;
9139  esac
9140  dynamic_linker='Win32 ld.exe'
9141  # FIXME: first we should search . and the directory the executable is in
9142  shlibpath_var=PATH
9143  ;;
9144
9145darwin* | rhapsody*)
9146  dynamic_linker="$host_os dyld"
9147  version_type=darwin
9148  need_lib_prefix=no
9149  need_version=no
9150  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9151  soname_spec='${libname}${release}${major}$shared_ext'
9152  shlibpath_overrides_runpath=yes
9153  shlibpath_var=DYLD_LIBRARY_PATH
9154  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9155
9156  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9157  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9158  ;;
9159
9160dgux*)
9161  version_type=linux
9162  need_lib_prefix=no
9163  need_version=no
9164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9165  soname_spec='${libname}${release}${shared_ext}$major'
9166  shlibpath_var=LD_LIBRARY_PATH
9167  ;;
9168
9169freebsd1*)
9170  dynamic_linker=no
9171  ;;
9172
9173freebsd* | dragonfly*)
9174  # DragonFly does not have aout.  When/if they implement a new
9175  # versioning mechanism, adjust this.
9176  if test -x /usr/bin/objformat; then
9177    objformat=`/usr/bin/objformat`
9178  else
9179    case $host_os in
9180    freebsd[123]*) objformat=aout ;;
9181    *) objformat=elf ;;
9182    esac
9183  fi
9184  version_type=freebsd-$objformat
9185  case $version_type in
9186    freebsd-elf*)
9187      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9188      need_version=no
9189      need_lib_prefix=no
9190      ;;
9191    freebsd-*)
9192      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9193      need_version=yes
9194      ;;
9195  esac
9196  shlibpath_var=LD_LIBRARY_PATH
9197  case $host_os in
9198  freebsd2*)
9199    shlibpath_overrides_runpath=yes
9200    ;;
9201  freebsd3.[01]* | freebsdelf3.[01]*)
9202    shlibpath_overrides_runpath=yes
9203    hardcode_into_libs=yes
9204    ;;
9205  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9206  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9207    shlibpath_overrides_runpath=no
9208    hardcode_into_libs=yes
9209    ;;
9210  *) # from 4.6 on, and DragonFly
9211    shlibpath_overrides_runpath=yes
9212    hardcode_into_libs=yes
9213    ;;
9214  esac
9215  ;;
9216
9217gnu*)
9218  version_type=linux
9219  need_lib_prefix=no
9220  need_version=no
9221  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9222  soname_spec='${libname}${release}${shared_ext}$major'
9223  shlibpath_var=LD_LIBRARY_PATH
9224  hardcode_into_libs=yes
9225  ;;
9226
9227hpux9* | hpux10* | hpux11*)
9228  # Give a soname corresponding to the major version so that dld.sl refuses to
9229  # link against other versions.
9230  version_type=sunos
9231  need_lib_prefix=no
9232  need_version=no
9233  case $host_cpu in
9234  ia64*)
9235    shrext_cmds='.so'
9236    hardcode_into_libs=yes
9237    dynamic_linker="$host_os dld.so"
9238    shlibpath_var=LD_LIBRARY_PATH
9239    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9240    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241    soname_spec='${libname}${release}${shared_ext}$major'
9242    if test "X$HPUX_IA64_MODE" = X32; then
9243      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9244    else
9245      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9246    fi
9247    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9248    ;;
9249   hppa*64*)
9250     shrext_cmds='.sl'
9251     hardcode_into_libs=yes
9252     dynamic_linker="$host_os dld.sl"
9253     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9254     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9256     soname_spec='${libname}${release}${shared_ext}$major'
9257     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9258     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9259     ;;
9260   *)
9261    shrext_cmds='.sl'
9262    dynamic_linker="$host_os dld.sl"
9263    shlibpath_var=SHLIB_PATH
9264    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9265    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266    soname_spec='${libname}${release}${shared_ext}$major'
9267    ;;
9268  esac
9269  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9270  postinstall_cmds='chmod 555 $lib'
9271  ;;
9272
9273interix[3-9]*)
9274  version_type=linux
9275  need_lib_prefix=no
9276  need_version=no
9277  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9278  soname_spec='${libname}${release}${shared_ext}$major'
9279  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9280  shlibpath_var=LD_LIBRARY_PATH
9281  shlibpath_overrides_runpath=no
9282  hardcode_into_libs=yes
9283  ;;
9284
9285irix5* | irix6* | nonstopux*)
9286  case $host_os in
9287    nonstopux*) version_type=nonstopux ;;
9288    *)
9289	if test "$lt_cv_prog_gnu_ld" = yes; then
9290		version_type=linux
9291	else
9292		version_type=irix
9293	fi ;;
9294  esac
9295  need_lib_prefix=no
9296  need_version=no
9297  soname_spec='${libname}${release}${shared_ext}$major'
9298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9299  case $host_os in
9300  irix5* | nonstopux*)
9301    libsuff= shlibsuff=
9302    ;;
9303  *)
9304    case $LD in # libtool.m4 will add one of these switches to LD
9305    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9306      libsuff= shlibsuff= libmagic=32-bit;;
9307    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9308      libsuff=32 shlibsuff=N32 libmagic=N32;;
9309    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9310      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9311    *) libsuff= shlibsuff= libmagic=never-match;;
9312    esac
9313    ;;
9314  esac
9315  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9316  shlibpath_overrides_runpath=no
9317  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9318  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9319  hardcode_into_libs=yes
9320  ;;
9321
9322# No shared lib support for Linux oldld, aout, or coff.
9323linux*oldld* | linux*aout* | linux*coff*)
9324  dynamic_linker=no
9325  ;;
9326
9327# This must be Linux ELF.
9328linux* | k*bsd*-gnu)
9329  version_type=linux
9330  need_lib_prefix=no
9331  need_version=no
9332  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9333  soname_spec='${libname}${release}${shared_ext}$major'
9334  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9335  shlibpath_var=LD_LIBRARY_PATH
9336  shlibpath_overrides_runpath=no
9337  # This implies no fast_install, which is unacceptable.
9338  # Some rework will be needed to allow for fast_install
9339  # before this can be enabled.
9340  hardcode_into_libs=yes
9341
9342  # Append ld.so.conf contents to the search path
9343  if test -f /etc/ld.so.conf; then
9344    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9345    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9346  fi
9347
9348  # We used to test for /lib/ld.so.1 and disable shared libraries on
9349  # powerpc, because MkLinux only supported shared libraries with the
9350  # GNU dynamic linker.  Since this was broken with cross compilers,
9351  # most powerpc-linux boxes support dynamic linking these days and
9352  # people can always --disable-shared, the test was removed, and we
9353  # assume the GNU/Linux dynamic linker is in use.
9354  dynamic_linker='GNU/Linux ld.so'
9355  ;;
9356
9357netbsdelf*-gnu)
9358  version_type=linux
9359  need_lib_prefix=no
9360  need_version=no
9361  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9362  soname_spec='${libname}${release}${shared_ext}$major'
9363  shlibpath_var=LD_LIBRARY_PATH
9364  shlibpath_overrides_runpath=no
9365  hardcode_into_libs=yes
9366  dynamic_linker='NetBSD ld.elf_so'
9367  ;;
9368
9369netbsd*)
9370  version_type=sunos
9371  need_lib_prefix=no
9372  need_version=no
9373  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9374    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9375    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9376    dynamic_linker='NetBSD (a.out) ld.so'
9377  else
9378    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9379    soname_spec='${libname}${release}${shared_ext}$major'
9380    dynamic_linker='NetBSD ld.elf_so'
9381  fi
9382  shlibpath_var=LD_LIBRARY_PATH
9383  shlibpath_overrides_runpath=yes
9384  hardcode_into_libs=yes
9385  ;;
9386
9387newsos6)
9388  version_type=linux
9389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9390  shlibpath_var=LD_LIBRARY_PATH
9391  shlibpath_overrides_runpath=yes
9392  ;;
9393
9394nto-qnx*)
9395  version_type=linux
9396  need_lib_prefix=no
9397  need_version=no
9398  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399  soname_spec='${libname}${release}${shared_ext}$major'
9400  shlibpath_var=LD_LIBRARY_PATH
9401  shlibpath_overrides_runpath=yes
9402  ;;
9403
9404openbsd*)
9405  version_type=sunos
9406  sys_lib_dlsearch_path_spec="/usr/lib"
9407  need_lib_prefix=no
9408  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9409  case $host_os in
9410    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9411    *)                         need_version=no  ;;
9412  esac
9413  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9414  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9415  shlibpath_var=LD_LIBRARY_PATH
9416  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9417    case $host_os in
9418      openbsd2.[89] | openbsd2.[89].*)
9419	shlibpath_overrides_runpath=no
9420	;;
9421      *)
9422	shlibpath_overrides_runpath=yes
9423	;;
9424      esac
9425  else
9426    shlibpath_overrides_runpath=yes
9427  fi
9428  ;;
9429
9430os2*)
9431  libname_spec='$name'
9432  shrext_cmds=".dll"
9433  need_lib_prefix=no
9434  library_names_spec='$libname${shared_ext} $libname.a'
9435  dynamic_linker='OS/2 ld.exe'
9436  shlibpath_var=LIBPATH
9437  ;;
9438
9439osf3* | osf4* | osf5*)
9440  version_type=osf
9441  need_lib_prefix=no
9442  need_version=no
9443  soname_spec='${libname}${release}${shared_ext}$major'
9444  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445  shlibpath_var=LD_LIBRARY_PATH
9446  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9447  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9448  ;;
9449
9450rdos*)
9451  dynamic_linker=no
9452  ;;
9453
9454solaris*)
9455  version_type=linux
9456  need_lib_prefix=no
9457  need_version=no
9458  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459  soname_spec='${libname}${release}${shared_ext}$major'
9460  shlibpath_var=LD_LIBRARY_PATH
9461  shlibpath_overrides_runpath=yes
9462  hardcode_into_libs=yes
9463  # ldd complains unless libraries are executable
9464  postinstall_cmds='chmod +x $lib'
9465  ;;
9466
9467sunos4*)
9468  version_type=sunos
9469  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9470  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9471  shlibpath_var=LD_LIBRARY_PATH
9472  shlibpath_overrides_runpath=yes
9473  if test "$with_gnu_ld" = yes; then
9474    need_lib_prefix=no
9475  fi
9476  need_version=yes
9477  ;;
9478
9479sysv4 | sysv4.3*)
9480  version_type=linux
9481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9482  soname_spec='${libname}${release}${shared_ext}$major'
9483  shlibpath_var=LD_LIBRARY_PATH
9484  case $host_vendor in
9485    sni)
9486      shlibpath_overrides_runpath=no
9487      need_lib_prefix=no
9488      export_dynamic_flag_spec='${wl}-Blargedynsym'
9489      runpath_var=LD_RUN_PATH
9490      ;;
9491    siemens)
9492      need_lib_prefix=no
9493      ;;
9494    motorola)
9495      need_lib_prefix=no
9496      need_version=no
9497      shlibpath_overrides_runpath=no
9498      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9499      ;;
9500  esac
9501  ;;
9502
9503sysv4*MP*)
9504  if test -d /usr/nec ;then
9505    version_type=linux
9506    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9507    soname_spec='$libname${shared_ext}.$major'
9508    shlibpath_var=LD_LIBRARY_PATH
9509  fi
9510  ;;
9511
9512sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9513  version_type=freebsd-elf
9514  need_lib_prefix=no
9515  need_version=no
9516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9517  soname_spec='${libname}${release}${shared_ext}$major'
9518  shlibpath_var=LD_LIBRARY_PATH
9519  hardcode_into_libs=yes
9520  if test "$with_gnu_ld" = yes; then
9521    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9522    shlibpath_overrides_runpath=no
9523  else
9524    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9525    shlibpath_overrides_runpath=yes
9526    case $host_os in
9527      sco3.2v5*)
9528        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9529	;;
9530    esac
9531  fi
9532  sys_lib_dlsearch_path_spec='/usr/lib'
9533  ;;
9534
9535uts4*)
9536  version_type=linux
9537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9538  soname_spec='${libname}${release}${shared_ext}$major'
9539  shlibpath_var=LD_LIBRARY_PATH
9540  ;;
9541
9542*)
9543  dynamic_linker=no
9544  ;;
9545esac
9546{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9547echo "${ECHO_T}$dynamic_linker" >&6; }
9548test "$dynamic_linker" = no && can_build_shared=no
9549
9550if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9551  echo $ECHO_N "(cached) $ECHO_C" >&6
9552else
9553  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9554fi
9555
9556sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9557if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9558  echo $ECHO_N "(cached) $ECHO_C" >&6
9559else
9560  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9561fi
9562
9563sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9564
9565variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9566if test "$GCC" = yes; then
9567  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9568fi
9569
9570{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9571echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9572hardcode_action=
9573if test -n "$hardcode_libdir_flag_spec" || \
9574   test -n "$runpath_var" || \
9575   test "X$hardcode_automatic" = "Xyes" ; then
9576
9577  # We can hardcode non-existant directories.
9578  if test "$hardcode_direct" != no &&
9579     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9580     # have to relink, otherwise we might link with an installed library
9581     # when we should be linking with a yet-to-be-installed one
9582     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9583     test "$hardcode_minus_L" != no; then
9584    # Linking always hardcodes the temporary library directory.
9585    hardcode_action=relink
9586  else
9587    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9588    hardcode_action=immediate
9589  fi
9590else
9591  # We cannot hardcode anything, or else we can only hardcode existing
9592  # directories.
9593  hardcode_action=unsupported
9594fi
9595{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9596echo "${ECHO_T}$hardcode_action" >&6; }
9597
9598if test "$hardcode_action" = relink; then
9599  # Fast installation is not supported
9600  enable_fast_install=no
9601elif test "$shlibpath_overrides_runpath" = yes ||
9602     test "$enable_shared" = no; then
9603  # Fast installation is not necessary
9604  enable_fast_install=needless
9605fi
9606
9607striplib=
9608old_striplib=
9609{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9610echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9611if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9612  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9613  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9614  { echo "$as_me:$LINENO: result: yes" >&5
9615echo "${ECHO_T}yes" >&6; }
9616else
9617# FIXME - insert some real tests, host_os isn't really good enough
9618  case $host_os in
9619   darwin*)
9620       if test -n "$STRIP" ; then
9621         striplib="$STRIP -x"
9622         old_striplib="$STRIP -S"
9623         { echo "$as_me:$LINENO: result: yes" >&5
9624echo "${ECHO_T}yes" >&6; }
9625       else
9626  { echo "$as_me:$LINENO: result: no" >&5
9627echo "${ECHO_T}no" >&6; }
9628fi
9629       ;;
9630   *)
9631  { echo "$as_me:$LINENO: result: no" >&5
9632echo "${ECHO_T}no" >&6; }
9633    ;;
9634  esac
9635fi
9636
9637if test "x$enable_dlopen" != xyes; then
9638  enable_dlopen=unknown
9639  enable_dlopen_self=unknown
9640  enable_dlopen_self_static=unknown
9641else
9642  lt_cv_dlopen=no
9643  lt_cv_dlopen_libs=
9644
9645  case $host_os in
9646  beos*)
9647    lt_cv_dlopen="load_add_on"
9648    lt_cv_dlopen_libs=
9649    lt_cv_dlopen_self=yes
9650    ;;
9651
9652  mingw* | pw32*)
9653    lt_cv_dlopen="LoadLibrary"
9654    lt_cv_dlopen_libs=
9655   ;;
9656
9657  cygwin*)
9658    lt_cv_dlopen="dlopen"
9659    lt_cv_dlopen_libs=
9660   ;;
9661
9662  darwin*)
9663  # if libdl is installed we need to link against it
9664    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9665echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9666if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9667  echo $ECHO_N "(cached) $ECHO_C" >&6
9668else
9669  ac_check_lib_save_LIBS=$LIBS
9670LIBS="-ldl  $LIBS"
9671cat >conftest.$ac_ext <<_ACEOF
9672/* confdefs.h.  */
9673_ACEOF
9674cat confdefs.h >>conftest.$ac_ext
9675cat >>conftest.$ac_ext <<_ACEOF
9676/* end confdefs.h.  */
9677
9678/* Override any GCC internal prototype to avoid an error.
9679   Use char because int might match the return type of a GCC
9680   builtin and then its argument prototype would still apply.  */
9681#ifdef __cplusplus
9682extern "C"
9683#endif
9684char dlopen ();
9685int
9686main ()
9687{
9688return dlopen ();
9689  ;
9690  return 0;
9691}
9692_ACEOF
9693rm -f conftest.$ac_objext conftest$ac_exeext
9694if { (ac_try="$ac_link"
9695case "(($ac_try" in
9696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697  *) ac_try_echo=$ac_try;;
9698esac
9699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700  (eval "$ac_link") 2>conftest.er1
9701  ac_status=$?
9702  grep -v '^ *+' conftest.er1 >conftest.err
9703  rm -f conftest.er1
9704  cat conftest.err >&5
9705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706  (exit $ac_status); } && {
9707	 test -z "$ac_c_werror_flag" ||
9708	 test ! -s conftest.err
9709       } && test -s conftest$ac_exeext &&
9710       $as_test_x conftest$ac_exeext; then
9711  ac_cv_lib_dl_dlopen=yes
9712else
9713  echo "$as_me: failed program was:" >&5
9714sed 's/^/| /' conftest.$ac_ext >&5
9715
9716	ac_cv_lib_dl_dlopen=no
9717fi
9718
9719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9720      conftest$ac_exeext conftest.$ac_ext
9721LIBS=$ac_check_lib_save_LIBS
9722fi
9723{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9724echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9725if test $ac_cv_lib_dl_dlopen = yes; then
9726  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9727else
9728
9729    lt_cv_dlopen="dyld"
9730    lt_cv_dlopen_libs=
9731    lt_cv_dlopen_self=yes
9732
9733fi
9734
9735   ;;
9736
9737  *)
9738    { echo "$as_me:$LINENO: checking for shl_load" >&5
9739echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9740if test "${ac_cv_func_shl_load+set}" = set; then
9741  echo $ECHO_N "(cached) $ECHO_C" >&6
9742else
9743  cat >conftest.$ac_ext <<_ACEOF
9744/* confdefs.h.  */
9745_ACEOF
9746cat confdefs.h >>conftest.$ac_ext
9747cat >>conftest.$ac_ext <<_ACEOF
9748/* end confdefs.h.  */
9749/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9750   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9751#define shl_load innocuous_shl_load
9752
9753/* System header to define __stub macros and hopefully few prototypes,
9754    which can conflict with char shl_load (); below.
9755    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9756    <limits.h> exists even on freestanding compilers.  */
9757
9758#ifdef __STDC__
9759# include <limits.h>
9760#else
9761# include <assert.h>
9762#endif
9763
9764#undef shl_load
9765
9766/* Override any GCC internal prototype to avoid an error.
9767   Use char because int might match the return type of a GCC
9768   builtin and then its argument prototype would still apply.  */
9769#ifdef __cplusplus
9770extern "C"
9771#endif
9772char shl_load ();
9773/* The GNU C library defines this for functions which it implements
9774    to always fail with ENOSYS.  Some functions are actually named
9775    something starting with __ and the normal name is an alias.  */
9776#if defined __stub_shl_load || defined __stub___shl_load
9777choke me
9778#endif
9779
9780int
9781main ()
9782{
9783return shl_load ();
9784  ;
9785  return 0;
9786}
9787_ACEOF
9788rm -f conftest.$ac_objext conftest$ac_exeext
9789if { (ac_try="$ac_link"
9790case "(($ac_try" in
9791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792  *) ac_try_echo=$ac_try;;
9793esac
9794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795  (eval "$ac_link") 2>conftest.er1
9796  ac_status=$?
9797  grep -v '^ *+' conftest.er1 >conftest.err
9798  rm -f conftest.er1
9799  cat conftest.err >&5
9800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801  (exit $ac_status); } && {
9802	 test -z "$ac_c_werror_flag" ||
9803	 test ! -s conftest.err
9804       } && test -s conftest$ac_exeext &&
9805       $as_test_x conftest$ac_exeext; then
9806  ac_cv_func_shl_load=yes
9807else
9808  echo "$as_me: failed program was:" >&5
9809sed 's/^/| /' conftest.$ac_ext >&5
9810
9811	ac_cv_func_shl_load=no
9812fi
9813
9814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9815      conftest$ac_exeext conftest.$ac_ext
9816fi
9817{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9818echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9819if test $ac_cv_func_shl_load = yes; then
9820  lt_cv_dlopen="shl_load"
9821else
9822  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9823echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9824if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9825  echo $ECHO_N "(cached) $ECHO_C" >&6
9826else
9827  ac_check_lib_save_LIBS=$LIBS
9828LIBS="-ldld  $LIBS"
9829cat >conftest.$ac_ext <<_ACEOF
9830/* confdefs.h.  */
9831_ACEOF
9832cat confdefs.h >>conftest.$ac_ext
9833cat >>conftest.$ac_ext <<_ACEOF
9834/* end confdefs.h.  */
9835
9836/* Override any GCC internal prototype to avoid an error.
9837   Use char because int might match the return type of a GCC
9838   builtin and then its argument prototype would still apply.  */
9839#ifdef __cplusplus
9840extern "C"
9841#endif
9842char shl_load ();
9843int
9844main ()
9845{
9846return shl_load ();
9847  ;
9848  return 0;
9849}
9850_ACEOF
9851rm -f conftest.$ac_objext conftest$ac_exeext
9852if { (ac_try="$ac_link"
9853case "(($ac_try" in
9854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855  *) ac_try_echo=$ac_try;;
9856esac
9857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858  (eval "$ac_link") 2>conftest.er1
9859  ac_status=$?
9860  grep -v '^ *+' conftest.er1 >conftest.err
9861  rm -f conftest.er1
9862  cat conftest.err >&5
9863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864  (exit $ac_status); } && {
9865	 test -z "$ac_c_werror_flag" ||
9866	 test ! -s conftest.err
9867       } && test -s conftest$ac_exeext &&
9868       $as_test_x conftest$ac_exeext; then
9869  ac_cv_lib_dld_shl_load=yes
9870else
9871  echo "$as_me: failed program was:" >&5
9872sed 's/^/| /' conftest.$ac_ext >&5
9873
9874	ac_cv_lib_dld_shl_load=no
9875fi
9876
9877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9878      conftest$ac_exeext conftest.$ac_ext
9879LIBS=$ac_check_lib_save_LIBS
9880fi
9881{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9882echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9883if test $ac_cv_lib_dld_shl_load = yes; then
9884  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9885else
9886  { echo "$as_me:$LINENO: checking for dlopen" >&5
9887echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9888if test "${ac_cv_func_dlopen+set}" = set; then
9889  echo $ECHO_N "(cached) $ECHO_C" >&6
9890else
9891  cat >conftest.$ac_ext <<_ACEOF
9892/* confdefs.h.  */
9893_ACEOF
9894cat confdefs.h >>conftest.$ac_ext
9895cat >>conftest.$ac_ext <<_ACEOF
9896/* end confdefs.h.  */
9897/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9898   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9899#define dlopen innocuous_dlopen
9900
9901/* System header to define __stub macros and hopefully few prototypes,
9902    which can conflict with char dlopen (); below.
9903    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9904    <limits.h> exists even on freestanding compilers.  */
9905
9906#ifdef __STDC__
9907# include <limits.h>
9908#else
9909# include <assert.h>
9910#endif
9911
9912#undef dlopen
9913
9914/* Override any GCC internal prototype to avoid an error.
9915   Use char because int might match the return type of a GCC
9916   builtin and then its argument prototype would still apply.  */
9917#ifdef __cplusplus
9918extern "C"
9919#endif
9920char dlopen ();
9921/* The GNU C library defines this for functions which it implements
9922    to always fail with ENOSYS.  Some functions are actually named
9923    something starting with __ and the normal name is an alias.  */
9924#if defined __stub_dlopen || defined __stub___dlopen
9925choke me
9926#endif
9927
9928int
9929main ()
9930{
9931return dlopen ();
9932  ;
9933  return 0;
9934}
9935_ACEOF
9936rm -f conftest.$ac_objext conftest$ac_exeext
9937if { (ac_try="$ac_link"
9938case "(($ac_try" in
9939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940  *) ac_try_echo=$ac_try;;
9941esac
9942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943  (eval "$ac_link") 2>conftest.er1
9944  ac_status=$?
9945  grep -v '^ *+' conftest.er1 >conftest.err
9946  rm -f conftest.er1
9947  cat conftest.err >&5
9948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949  (exit $ac_status); } && {
9950	 test -z "$ac_c_werror_flag" ||
9951	 test ! -s conftest.err
9952       } && test -s conftest$ac_exeext &&
9953       $as_test_x conftest$ac_exeext; then
9954  ac_cv_func_dlopen=yes
9955else
9956  echo "$as_me: failed program was:" >&5
9957sed 's/^/| /' conftest.$ac_ext >&5
9958
9959	ac_cv_func_dlopen=no
9960fi
9961
9962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9963      conftest$ac_exeext conftest.$ac_ext
9964fi
9965{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9966echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9967if test $ac_cv_func_dlopen = yes; then
9968  lt_cv_dlopen="dlopen"
9969else
9970  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9971echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9972if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9973  echo $ECHO_N "(cached) $ECHO_C" >&6
9974else
9975  ac_check_lib_save_LIBS=$LIBS
9976LIBS="-ldl  $LIBS"
9977cat >conftest.$ac_ext <<_ACEOF
9978/* confdefs.h.  */
9979_ACEOF
9980cat confdefs.h >>conftest.$ac_ext
9981cat >>conftest.$ac_ext <<_ACEOF
9982/* end confdefs.h.  */
9983
9984/* Override any GCC internal prototype to avoid an error.
9985   Use char because int might match the return type of a GCC
9986   builtin and then its argument prototype would still apply.  */
9987#ifdef __cplusplus
9988extern "C"
9989#endif
9990char dlopen ();
9991int
9992main ()
9993{
9994return dlopen ();
9995  ;
9996  return 0;
9997}
9998_ACEOF
9999rm -f conftest.$ac_objext conftest$ac_exeext
10000if { (ac_try="$ac_link"
10001case "(($ac_try" in
10002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003  *) ac_try_echo=$ac_try;;
10004esac
10005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006  (eval "$ac_link") 2>conftest.er1
10007  ac_status=$?
10008  grep -v '^ *+' conftest.er1 >conftest.err
10009  rm -f conftest.er1
10010  cat conftest.err >&5
10011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012  (exit $ac_status); } && {
10013	 test -z "$ac_c_werror_flag" ||
10014	 test ! -s conftest.err
10015       } && test -s conftest$ac_exeext &&
10016       $as_test_x conftest$ac_exeext; then
10017  ac_cv_lib_dl_dlopen=yes
10018else
10019  echo "$as_me: failed program was:" >&5
10020sed 's/^/| /' conftest.$ac_ext >&5
10021
10022	ac_cv_lib_dl_dlopen=no
10023fi
10024
10025rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10026      conftest$ac_exeext conftest.$ac_ext
10027LIBS=$ac_check_lib_save_LIBS
10028fi
10029{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10030echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10031if test $ac_cv_lib_dl_dlopen = yes; then
10032  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10033else
10034  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10035echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10036if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10037  echo $ECHO_N "(cached) $ECHO_C" >&6
10038else
10039  ac_check_lib_save_LIBS=$LIBS
10040LIBS="-lsvld  $LIBS"
10041cat >conftest.$ac_ext <<_ACEOF
10042/* confdefs.h.  */
10043_ACEOF
10044cat confdefs.h >>conftest.$ac_ext
10045cat >>conftest.$ac_ext <<_ACEOF
10046/* end confdefs.h.  */
10047
10048/* Override any GCC internal prototype to avoid an error.
10049   Use char because int might match the return type of a GCC
10050   builtin and then its argument prototype would still apply.  */
10051#ifdef __cplusplus
10052extern "C"
10053#endif
10054char dlopen ();
10055int
10056main ()
10057{
10058return dlopen ();
10059  ;
10060  return 0;
10061}
10062_ACEOF
10063rm -f conftest.$ac_objext conftest$ac_exeext
10064if { (ac_try="$ac_link"
10065case "(($ac_try" in
10066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067  *) ac_try_echo=$ac_try;;
10068esac
10069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070  (eval "$ac_link") 2>conftest.er1
10071  ac_status=$?
10072  grep -v '^ *+' conftest.er1 >conftest.err
10073  rm -f conftest.er1
10074  cat conftest.err >&5
10075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076  (exit $ac_status); } && {
10077	 test -z "$ac_c_werror_flag" ||
10078	 test ! -s conftest.err
10079       } && test -s conftest$ac_exeext &&
10080       $as_test_x conftest$ac_exeext; then
10081  ac_cv_lib_svld_dlopen=yes
10082else
10083  echo "$as_me: failed program was:" >&5
10084sed 's/^/| /' conftest.$ac_ext >&5
10085
10086	ac_cv_lib_svld_dlopen=no
10087fi
10088
10089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10090      conftest$ac_exeext conftest.$ac_ext
10091LIBS=$ac_check_lib_save_LIBS
10092fi
10093{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10094echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10095if test $ac_cv_lib_svld_dlopen = yes; then
10096  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10097else
10098  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10099echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10100if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10101  echo $ECHO_N "(cached) $ECHO_C" >&6
10102else
10103  ac_check_lib_save_LIBS=$LIBS
10104LIBS="-ldld  $LIBS"
10105cat >conftest.$ac_ext <<_ACEOF
10106/* confdefs.h.  */
10107_ACEOF
10108cat confdefs.h >>conftest.$ac_ext
10109cat >>conftest.$ac_ext <<_ACEOF
10110/* end confdefs.h.  */
10111
10112/* Override any GCC internal prototype to avoid an error.
10113   Use char because int might match the return type of a GCC
10114   builtin and then its argument prototype would still apply.  */
10115#ifdef __cplusplus
10116extern "C"
10117#endif
10118char dld_link ();
10119int
10120main ()
10121{
10122return dld_link ();
10123  ;
10124  return 0;
10125}
10126_ACEOF
10127rm -f conftest.$ac_objext conftest$ac_exeext
10128if { (ac_try="$ac_link"
10129case "(($ac_try" in
10130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131  *) ac_try_echo=$ac_try;;
10132esac
10133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134  (eval "$ac_link") 2>conftest.er1
10135  ac_status=$?
10136  grep -v '^ *+' conftest.er1 >conftest.err
10137  rm -f conftest.er1
10138  cat conftest.err >&5
10139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140  (exit $ac_status); } && {
10141	 test -z "$ac_c_werror_flag" ||
10142	 test ! -s conftest.err
10143       } && test -s conftest$ac_exeext &&
10144       $as_test_x conftest$ac_exeext; then
10145  ac_cv_lib_dld_dld_link=yes
10146else
10147  echo "$as_me: failed program was:" >&5
10148sed 's/^/| /' conftest.$ac_ext >&5
10149
10150	ac_cv_lib_dld_dld_link=no
10151fi
10152
10153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10154      conftest$ac_exeext conftest.$ac_ext
10155LIBS=$ac_check_lib_save_LIBS
10156fi
10157{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10158echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10159if test $ac_cv_lib_dld_dld_link = yes; then
10160  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10161fi
10162
10163
10164fi
10165
10166
10167fi
10168
10169
10170fi
10171
10172
10173fi
10174
10175
10176fi
10177
10178    ;;
10179  esac
10180
10181  if test "x$lt_cv_dlopen" != xno; then
10182    enable_dlopen=yes
10183  else
10184    enable_dlopen=no
10185  fi
10186
10187  case $lt_cv_dlopen in
10188  dlopen)
10189    save_CPPFLAGS="$CPPFLAGS"
10190    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10191
10192    save_LDFLAGS="$LDFLAGS"
10193    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10194
10195    save_LIBS="$LIBS"
10196    LIBS="$lt_cv_dlopen_libs $LIBS"
10197
10198    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10199echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10200if test "${lt_cv_dlopen_self+set}" = set; then
10201  echo $ECHO_N "(cached) $ECHO_C" >&6
10202else
10203  	  if test "$cross_compiling" = yes; then :
10204  lt_cv_dlopen_self=cross
10205else
10206  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10207  lt_status=$lt_dlunknown
10208  cat > conftest.$ac_ext <<EOF
10209#line 10209 "configure"
10210#include "confdefs.h"
10211
10212#if HAVE_DLFCN_H
10213#include <dlfcn.h>
10214#endif
10215
10216#include <stdio.h>
10217
10218#ifdef RTLD_GLOBAL
10219#  define LT_DLGLOBAL		RTLD_GLOBAL
10220#else
10221#  ifdef DL_GLOBAL
10222#    define LT_DLGLOBAL		DL_GLOBAL
10223#  else
10224#    define LT_DLGLOBAL		0
10225#  endif
10226#endif
10227
10228/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10229   find out it does not work in some platform. */
10230#ifndef LT_DLLAZY_OR_NOW
10231#  ifdef RTLD_LAZY
10232#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10233#  else
10234#    ifdef DL_LAZY
10235#      define LT_DLLAZY_OR_NOW		DL_LAZY
10236#    else
10237#      ifdef RTLD_NOW
10238#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10239#      else
10240#        ifdef DL_NOW
10241#          define LT_DLLAZY_OR_NOW	DL_NOW
10242#        else
10243#          define LT_DLLAZY_OR_NOW	0
10244#        endif
10245#      endif
10246#    endif
10247#  endif
10248#endif
10249
10250#ifdef __cplusplus
10251extern "C" void exit (int);
10252#endif
10253
10254void fnord() { int i=42;}
10255int main ()
10256{
10257  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10258  int status = $lt_dlunknown;
10259
10260  if (self)
10261    {
10262      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10263      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10264      /* dlclose (self); */
10265    }
10266  else
10267    puts (dlerror ());
10268
10269    exit (status);
10270}
10271EOF
10272  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10273  (eval $ac_link) 2>&5
10274  ac_status=$?
10275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10277    (./conftest; exit; ) >&5 2>/dev/null
10278    lt_status=$?
10279    case x$lt_status in
10280      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10281      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10282      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10283    esac
10284  else :
10285    # compilation failed
10286    lt_cv_dlopen_self=no
10287  fi
10288fi
10289rm -fr conftest*
10290
10291
10292fi
10293{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10294echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10295
10296    if test "x$lt_cv_dlopen_self" = xyes; then
10297      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10298      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10299echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10300if test "${lt_cv_dlopen_self_static+set}" = set; then
10301  echo $ECHO_N "(cached) $ECHO_C" >&6
10302else
10303  	  if test "$cross_compiling" = yes; then :
10304  lt_cv_dlopen_self_static=cross
10305else
10306  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10307  lt_status=$lt_dlunknown
10308  cat > conftest.$ac_ext <<EOF
10309#line 10309 "configure"
10310#include "confdefs.h"
10311
10312#if HAVE_DLFCN_H
10313#include <dlfcn.h>
10314#endif
10315
10316#include <stdio.h>
10317
10318#ifdef RTLD_GLOBAL
10319#  define LT_DLGLOBAL		RTLD_GLOBAL
10320#else
10321#  ifdef DL_GLOBAL
10322#    define LT_DLGLOBAL		DL_GLOBAL
10323#  else
10324#    define LT_DLGLOBAL		0
10325#  endif
10326#endif
10327
10328/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10329   find out it does not work in some platform. */
10330#ifndef LT_DLLAZY_OR_NOW
10331#  ifdef RTLD_LAZY
10332#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10333#  else
10334#    ifdef DL_LAZY
10335#      define LT_DLLAZY_OR_NOW		DL_LAZY
10336#    else
10337#      ifdef RTLD_NOW
10338#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10339#      else
10340#        ifdef DL_NOW
10341#          define LT_DLLAZY_OR_NOW	DL_NOW
10342#        else
10343#          define LT_DLLAZY_OR_NOW	0
10344#        endif
10345#      endif
10346#    endif
10347#  endif
10348#endif
10349
10350#ifdef __cplusplus
10351extern "C" void exit (int);
10352#endif
10353
10354void fnord() { int i=42;}
10355int main ()
10356{
10357  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10358  int status = $lt_dlunknown;
10359
10360  if (self)
10361    {
10362      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10363      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10364      /* dlclose (self); */
10365    }
10366  else
10367    puts (dlerror ());
10368
10369    exit (status);
10370}
10371EOF
10372  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10373  (eval $ac_link) 2>&5
10374  ac_status=$?
10375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10377    (./conftest; exit; ) >&5 2>/dev/null
10378    lt_status=$?
10379    case x$lt_status in
10380      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10381      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10382      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10383    esac
10384  else :
10385    # compilation failed
10386    lt_cv_dlopen_self_static=no
10387  fi
10388fi
10389rm -fr conftest*
10390
10391
10392fi
10393{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10394echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10395    fi
10396
10397    CPPFLAGS="$save_CPPFLAGS"
10398    LDFLAGS="$save_LDFLAGS"
10399    LIBS="$save_LIBS"
10400    ;;
10401  esac
10402
10403  case $lt_cv_dlopen_self in
10404  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10405  *) enable_dlopen_self=unknown ;;
10406  esac
10407
10408  case $lt_cv_dlopen_self_static in
10409  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10410  *) enable_dlopen_self_static=unknown ;;
10411  esac
10412fi
10413
10414
10415# Report which library types will actually be built
10416{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10417echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10418{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10419echo "${ECHO_T}$can_build_shared" >&6; }
10420
10421{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10422echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10423test "$can_build_shared" = "no" && enable_shared=no
10424
10425# On AIX, shared libraries and static libraries use the same namespace, and
10426# are all built from PIC.
10427case $host_os in
10428aix3*)
10429  test "$enable_shared" = yes && enable_static=no
10430  if test -n "$RANLIB"; then
10431    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10432    postinstall_cmds='$RANLIB $lib'
10433  fi
10434  ;;
10435
10436aix[4-9]*)
10437  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10438    test "$enable_shared" = yes && enable_static=no
10439  fi
10440    ;;
10441esac
10442{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10443echo "${ECHO_T}$enable_shared" >&6; }
10444
10445{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10446echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10447# Make sure either enable_shared or enable_static is yes.
10448test "$enable_shared" = yes || enable_static=yes
10449{ echo "$as_me:$LINENO: result: $enable_static" >&5
10450echo "${ECHO_T}$enable_static" >&6; }
10451
10452# The else clause should only fire when bootstrapping the
10453# libtool distribution, otherwise you forgot to ship ltmain.sh
10454# with your package, and you will get complaints that there are
10455# no rules to generate ltmain.sh.
10456if test -f "$ltmain"; then
10457  # See if we are running on zsh, and set the options which allow our commands through
10458  # without removal of \ escapes.
10459  if test -n "${ZSH_VERSION+set}" ; then
10460    setopt NO_GLOB_SUBST
10461  fi
10462  # Now quote all the things that may contain metacharacters while being
10463  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10464  # variables and quote the copies for generation of the libtool script.
10465  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10466    SED SHELL STRIP \
10467    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10468    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10469    deplibs_check_method reload_flag reload_cmds need_locks \
10470    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10471    lt_cv_sys_global_symbol_to_c_name_address \
10472    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10473    old_postinstall_cmds old_postuninstall_cmds \
10474    compiler \
10475    CC \
10476    LD \
10477    lt_prog_compiler_wl \
10478    lt_prog_compiler_pic \
10479    lt_prog_compiler_static \
10480    lt_prog_compiler_no_builtin_flag \
10481    export_dynamic_flag_spec \
10482    thread_safe_flag_spec \
10483    whole_archive_flag_spec \
10484    enable_shared_with_static_runtimes \
10485    old_archive_cmds \
10486    old_archive_from_new_cmds \
10487    predep_objects \
10488    postdep_objects \
10489    predeps \
10490    postdeps \
10491    compiler_lib_search_path \
10492    compiler_lib_search_dirs \
10493    archive_cmds \
10494    archive_expsym_cmds \
10495    postinstall_cmds \
10496    postuninstall_cmds \
10497    old_archive_from_expsyms_cmds \
10498    allow_undefined_flag \
10499    no_undefined_flag \
10500    export_symbols_cmds \
10501    hardcode_libdir_flag_spec \
10502    hardcode_libdir_flag_spec_ld \
10503    hardcode_libdir_separator \
10504    hardcode_automatic \
10505    module_cmds \
10506    module_expsym_cmds \
10507    lt_cv_prog_compiler_c_o \
10508    fix_srcfile_path \
10509    exclude_expsyms \
10510    include_expsyms; do
10511
10512    case $var in
10513    old_archive_cmds | \
10514    old_archive_from_new_cmds | \
10515    archive_cmds | \
10516    archive_expsym_cmds | \
10517    module_cmds | \
10518    module_expsym_cmds | \
10519    old_archive_from_expsyms_cmds | \
10520    export_symbols_cmds | \
10521    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10522    postinstall_cmds | postuninstall_cmds | \
10523    old_postinstall_cmds | old_postuninstall_cmds | \
10524    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10525      # Double-quote double-evaled strings.
10526      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10527      ;;
10528    *)
10529      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10530      ;;
10531    esac
10532  done
10533
10534  case $lt_echo in
10535  *'\$0 --fallback-echo"')
10536    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10537    ;;
10538  esac
10539
10540cfgfile="${ofile}T"
10541  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10542  $rm -f "$cfgfile"
10543  { echo "$as_me:$LINENO: creating $ofile" >&5
10544echo "$as_me: creating $ofile" >&6;}
10545
10546  cat <<__EOF__ >> "$cfgfile"
10547#! $SHELL
10548
10549# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10550# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10551# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10552#
10553# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10554# Free Software Foundation, Inc.
10555#
10556# This file is part of GNU Libtool:
10557# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10558#
10559# This program is free software; you can redistribute it and/or modify
10560# it under the terms of the GNU General Public License as published by
10561# the Free Software Foundation; either version 2 of the License, or
10562# (at your option) any later version.
10563#
10564# This program is distributed in the hope that it will be useful, but
10565# WITHOUT ANY WARRANTY; without even the implied warranty of
10566# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10567# General Public License for more details.
10568#
10569# You should have received a copy of the GNU General Public License
10570# along with this program; if not, write to the Free Software
10571# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10572#
10573# As a special exception to the GNU General Public License, if you
10574# distribute this file as part of a program that contains a
10575# configuration script generated by Autoconf, you may include it under
10576# the same distribution terms that you use for the rest of that program.
10577
10578# A sed program that does not truncate output.
10579SED=$lt_SED
10580
10581# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10582Xsed="$SED -e 1s/^X//"
10583
10584# The HP-UX ksh and POSIX shell print the target directory to stdout
10585# if CDPATH is set.
10586(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10587
10588# The names of the tagged configurations supported by this script.
10589available_tags=
10590
10591# ### BEGIN LIBTOOL CONFIG
10592
10593# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10594
10595# Shell to use when invoking shell scripts.
10596SHELL=$lt_SHELL
10597
10598# Whether or not to build shared libraries.
10599build_libtool_libs=$enable_shared
10600
10601# Whether or not to build static libraries.
10602build_old_libs=$enable_static
10603
10604# Whether or not to add -lc for building shared libraries.
10605build_libtool_need_lc=$archive_cmds_need_lc
10606
10607# Whether or not to disallow shared libs when runtime libs are static
10608allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10609
10610# Whether or not to optimize for fast installation.
10611fast_install=$enable_fast_install
10612
10613# The host system.
10614host_alias=$host_alias
10615host=$host
10616host_os=$host_os
10617
10618# The build system.
10619build_alias=$build_alias
10620build=$build
10621build_os=$build_os
10622
10623# An echo program that does not interpret backslashes.
10624echo=$lt_echo
10625
10626# The archiver.
10627AR=$lt_AR
10628AR_FLAGS=$lt_AR_FLAGS
10629
10630# A C compiler.
10631LTCC=$lt_LTCC
10632
10633# LTCC compiler flags.
10634LTCFLAGS=$lt_LTCFLAGS
10635
10636# A language-specific compiler.
10637CC=$lt_compiler
10638
10639# Is the compiler the GNU C compiler?
10640with_gcc=$GCC
10641
10642# An ERE matcher.
10643EGREP=$lt_EGREP
10644
10645# The linker used to build libraries.
10646LD=$lt_LD
10647
10648# Whether we need hard or soft links.
10649LN_S=$lt_LN_S
10650
10651# A BSD-compatible nm program.
10652NM=$lt_NM
10653
10654# A symbol stripping program
10655STRIP=$lt_STRIP
10656
10657# Used to examine libraries when file_magic_cmd begins "file"
10658MAGIC_CMD=$MAGIC_CMD
10659
10660# Used on cygwin: DLL creation program.
10661DLLTOOL="$DLLTOOL"
10662
10663# Used on cygwin: object dumper.
10664OBJDUMP="$OBJDUMP"
10665
10666# Used on cygwin: assembler.
10667AS="$AS"
10668
10669# The name of the directory that contains temporary libtool files.
10670objdir=$objdir
10671
10672# How to create reloadable object files.
10673reload_flag=$lt_reload_flag
10674reload_cmds=$lt_reload_cmds
10675
10676# How to pass a linker flag through the compiler.
10677wl=$lt_lt_prog_compiler_wl
10678
10679# Object file suffix (normally "o").
10680objext="$ac_objext"
10681
10682# Old archive suffix (normally "a").
10683libext="$libext"
10684
10685# Shared library suffix (normally ".so").
10686shrext_cmds='$shrext_cmds'
10687
10688# Executable file suffix (normally "").
10689exeext="$exeext"
10690
10691# Additional compiler flags for building library objects.
10692pic_flag=$lt_lt_prog_compiler_pic
10693pic_mode=$pic_mode
10694
10695# What is the maximum length of a command?
10696max_cmd_len=$lt_cv_sys_max_cmd_len
10697
10698# Does compiler simultaneously support -c and -o options?
10699compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10700
10701# Must we lock files when doing compilation?
10702need_locks=$lt_need_locks
10703
10704# Do we need the lib prefix for modules?
10705need_lib_prefix=$need_lib_prefix
10706
10707# Do we need a version for libraries?
10708need_version=$need_version
10709
10710# Whether dlopen is supported.
10711dlopen_support=$enable_dlopen
10712
10713# Whether dlopen of programs is supported.
10714dlopen_self=$enable_dlopen_self
10715
10716# Whether dlopen of statically linked programs is supported.
10717dlopen_self_static=$enable_dlopen_self_static
10718
10719# Compiler flag to prevent dynamic linking.
10720link_static_flag=$lt_lt_prog_compiler_static
10721
10722# Compiler flag to turn off builtin functions.
10723no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10724
10725# Compiler flag to allow reflexive dlopens.
10726export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10727
10728# Compiler flag to generate shared objects directly from archives.
10729whole_archive_flag_spec=$lt_whole_archive_flag_spec
10730
10731# Compiler flag to generate thread-safe objects.
10732thread_safe_flag_spec=$lt_thread_safe_flag_spec
10733
10734# Library versioning type.
10735version_type=$version_type
10736
10737# Format of library name prefix.
10738libname_spec=$lt_libname_spec
10739
10740# List of archive names.  First name is the real one, the rest are links.
10741# The last name is the one that the linker finds with -lNAME.
10742library_names_spec=$lt_library_names_spec
10743
10744# The coded name of the library, if different from the real name.
10745soname_spec=$lt_soname_spec
10746
10747# Commands used to build and install an old-style archive.
10748RANLIB=$lt_RANLIB
10749old_archive_cmds=$lt_old_archive_cmds
10750old_postinstall_cmds=$lt_old_postinstall_cmds
10751old_postuninstall_cmds=$lt_old_postuninstall_cmds
10752
10753# Create an old-style archive from a shared archive.
10754old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10755
10756# Create a temporary old-style archive to link instead of a shared archive.
10757old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10758
10759# Commands used to build and install a shared archive.
10760archive_cmds=$lt_archive_cmds
10761archive_expsym_cmds=$lt_archive_expsym_cmds
10762postinstall_cmds=$lt_postinstall_cmds
10763postuninstall_cmds=$lt_postuninstall_cmds
10764
10765# Commands used to build a loadable module (assumed same as above if empty)
10766module_cmds=$lt_module_cmds
10767module_expsym_cmds=$lt_module_expsym_cmds
10768
10769# Commands to strip libraries.
10770old_striplib=$lt_old_striplib
10771striplib=$lt_striplib
10772
10773# Dependencies to place before the objects being linked to create a
10774# shared library.
10775predep_objects=$lt_predep_objects
10776
10777# Dependencies to place after the objects being linked to create a
10778# shared library.
10779postdep_objects=$lt_postdep_objects
10780
10781# Dependencies to place before the objects being linked to create a
10782# shared library.
10783predeps=$lt_predeps
10784
10785# Dependencies to place after the objects being linked to create a
10786# shared library.
10787postdeps=$lt_postdeps
10788
10789# The directories searched by this compiler when creating a shared
10790# library
10791compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10792
10793# The library search path used internally by the compiler when linking
10794# a shared library.
10795compiler_lib_search_path=$lt_compiler_lib_search_path
10796
10797# Method to check whether dependent libraries are shared objects.
10798deplibs_check_method=$lt_deplibs_check_method
10799
10800# Command to use when deplibs_check_method == file_magic.
10801file_magic_cmd=$lt_file_magic_cmd
10802
10803# Flag that allows shared libraries with undefined symbols to be built.
10804allow_undefined_flag=$lt_allow_undefined_flag
10805
10806# Flag that forces no undefined symbols.
10807no_undefined_flag=$lt_no_undefined_flag
10808
10809# Commands used to finish a libtool library installation in a directory.
10810finish_cmds=$lt_finish_cmds
10811
10812# Same as above, but a single script fragment to be evaled but not shown.
10813finish_eval=$lt_finish_eval
10814
10815# Take the output of nm and produce a listing of raw symbols and C names.
10816global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10817
10818# Transform the output of nm in a proper C declaration
10819global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10820
10821# Transform the output of nm in a C name address pair
10822global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10823
10824# This is the shared library runtime path variable.
10825runpath_var=$runpath_var
10826
10827# This is the shared library path variable.
10828shlibpath_var=$shlibpath_var
10829
10830# Is shlibpath searched before the hard-coded library search path?
10831shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10832
10833# How to hardcode a shared library path into an executable.
10834hardcode_action=$hardcode_action
10835
10836# Whether we should hardcode library paths into libraries.
10837hardcode_into_libs=$hardcode_into_libs
10838
10839# Flag to hardcode \$libdir into a binary during linking.
10840# This must work even if \$libdir does not exist.
10841hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10842
10843# If ld is used when linking, flag to hardcode \$libdir into
10844# a binary during linking. This must work even if \$libdir does
10845# not exist.
10846hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10847
10848# Whether we need a single -rpath flag with a separated argument.
10849hardcode_libdir_separator=$lt_hardcode_libdir_separator
10850
10851# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10852# resulting binary.
10853hardcode_direct=$hardcode_direct
10854
10855# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10856# resulting binary.
10857hardcode_minus_L=$hardcode_minus_L
10858
10859# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10860# the resulting binary.
10861hardcode_shlibpath_var=$hardcode_shlibpath_var
10862
10863# Set to yes if building a shared library automatically hardcodes DIR into the library
10864# and all subsequent libraries and executables linked against it.
10865hardcode_automatic=$hardcode_automatic
10866
10867# Variables whose values should be saved in libtool wrapper scripts and
10868# restored at relink time.
10869variables_saved_for_relink="$variables_saved_for_relink"
10870
10871# Whether libtool must link a program against all its dependency libraries.
10872link_all_deplibs=$link_all_deplibs
10873
10874# Compile-time system search path for libraries
10875sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10876
10877# Run-time system search path for libraries
10878sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10879
10880# Fix the shell variable \$srcfile for the compiler.
10881fix_srcfile_path=$lt_fix_srcfile_path
10882
10883# Set to yes if exported symbols are required.
10884always_export_symbols=$always_export_symbols
10885
10886# The commands to list exported symbols.
10887export_symbols_cmds=$lt_export_symbols_cmds
10888
10889# The commands to extract the exported symbol list from a shared archive.
10890extract_expsyms_cmds=$lt_extract_expsyms_cmds
10891
10892# Symbols that should not be listed in the preloaded symbols.
10893exclude_expsyms=$lt_exclude_expsyms
10894
10895# Symbols that must always be exported.
10896include_expsyms=$lt_include_expsyms
10897
10898# ### END LIBTOOL CONFIG
10899
10900__EOF__
10901
10902
10903  case $host_os in
10904  aix3*)
10905    cat <<\EOF >> "$cfgfile"
10906
10907# AIX sometimes has problems with the GCC collect2 program.  For some
10908# reason, if we set the COLLECT_NAMES environment variable, the problems
10909# vanish in a puff of smoke.
10910if test "X${COLLECT_NAMES+set}" != Xset; then
10911  COLLECT_NAMES=
10912  export COLLECT_NAMES
10913fi
10914EOF
10915    ;;
10916  esac
10917
10918  # We use sed instead of cat because bash on DJGPP gets confused if
10919  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10920  # text mode, it properly converts lines to CR/LF.  This bash problem
10921  # is reportedly fixed, but why not run on old versions too?
10922  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10923
10924  mv -f "$cfgfile" "$ofile" || \
10925    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10926  chmod +x "$ofile"
10927
10928else
10929  # If there is no Makefile yet, we rely on a make rule to execute
10930  # `config.status --recheck' to rerun these tests and create the
10931  # libtool script then.
10932  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10933  if test -f "$ltmain_in"; then
10934    test -f Makefile && make "$ltmain"
10935  fi
10936fi
10937
10938
10939ac_ext=c
10940ac_cpp='$CPP $CPPFLAGS'
10941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10943ac_compiler_gnu=$ac_cv_c_compiler_gnu
10944
10945CC="$lt_save_CC"
10946
10947
10948# Check whether --with-tags was given.
10949if test "${with_tags+set}" = set; then
10950  withval=$with_tags; tagnames="$withval"
10951fi
10952
10953
10954if test -f "$ltmain" && test -n "$tagnames"; then
10955  if test ! -f "${ofile}"; then
10956    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10957echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10958  fi
10959
10960  if test -z "$LTCC"; then
10961    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10962    if test -z "$LTCC"; then
10963      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10964echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10965    else
10966      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10967echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10968    fi
10969  fi
10970  if test -z "$LTCFLAGS"; then
10971    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10972  fi
10973
10974  # Extract list of available tagged configurations in $ofile.
10975  # Note that this assumes the entire list is on one line.
10976  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10977
10978  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10979  for tagname in $tagnames; do
10980    IFS="$lt_save_ifs"
10981    # Check whether tagname contains only valid characters
10982    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10983    "") ;;
10984    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10985echo "$as_me: error: invalid tag name: $tagname" >&2;}
10986   { (exit 1); exit 1; }; }
10987	;;
10988    esac
10989
10990    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10991    then
10992      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10993echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10994   { (exit 1); exit 1; }; }
10995    fi
10996
10997    # Update the list of available tags.
10998    if test -n "$tagname"; then
10999      echo appending configuration tag \"$tagname\" to $ofile
11000
11001      case $tagname in
11002      CXX)
11003	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11004	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11005	    (test "X$CXX" != "Xg++"))) ; then
11006	  ac_ext=cpp
11007ac_cpp='$CXXCPP $CPPFLAGS'
11008ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11009ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11010ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11011
11012
11013
11014
11015archive_cmds_need_lc_CXX=no
11016allow_undefined_flag_CXX=
11017always_export_symbols_CXX=no
11018archive_expsym_cmds_CXX=
11019export_dynamic_flag_spec_CXX=
11020hardcode_direct_CXX=no
11021hardcode_libdir_flag_spec_CXX=
11022hardcode_libdir_flag_spec_ld_CXX=
11023hardcode_libdir_separator_CXX=
11024hardcode_minus_L_CXX=no
11025hardcode_shlibpath_var_CXX=unsupported
11026hardcode_automatic_CXX=no
11027module_cmds_CXX=
11028module_expsym_cmds_CXX=
11029link_all_deplibs_CXX=unknown
11030old_archive_cmds_CXX=$old_archive_cmds
11031no_undefined_flag_CXX=
11032whole_archive_flag_spec_CXX=
11033enable_shared_with_static_runtimes_CXX=no
11034
11035# Dependencies to place before and after the object being linked:
11036predep_objects_CXX=
11037postdep_objects_CXX=
11038predeps_CXX=
11039postdeps_CXX=
11040compiler_lib_search_path_CXX=
11041compiler_lib_search_dirs_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;"
11052
11053# Code to be used in simple link tests
11054lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
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
11070echo "$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
11076echo "$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 -r 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  aix[4-9]*)
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].*|aix[5-9]*)
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	  :
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	 test -z "$ac_cxx_werror_flag" ||
11405	 test ! -s conftest.err
11406       } && test -s conftest$ac_exeext &&
11407       $as_test_x conftest$ac_exeext; then
11408
11409lt_aix_libpath_sed='
11410    /Import File Strings/,/^$/ {
11411	/^0/ {
11412	    s/^0  *\(.*\)$/\1/
11413	    p
11414	}
11415    }'
11416aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11417# Check for a 64-bit object if we didn't find anything.
11418if test -z "$aix_libpath"; then
11419  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11420fi
11421else
11422  echo "$as_me: failed program was:" >&5
11423sed 's/^/| /' conftest.$ac_ext >&5
11424
11425
11426fi
11427
11428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11429      conftest$ac_exeext conftest.$ac_ext
11430if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11431
11432      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11433
11434      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"
11435     else
11436      if test "$host_cpu" = ia64; then
11437	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11438	allow_undefined_flag_CXX="-z nodefs"
11439	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"
11440      else
11441	# Determine the default libpath from the value encoded in an empty executable.
11442	cat >conftest.$ac_ext <<_ACEOF
11443/* confdefs.h.  */
11444_ACEOF
11445cat confdefs.h >>conftest.$ac_ext
11446cat >>conftest.$ac_ext <<_ACEOF
11447/* end confdefs.h.  */
11448
11449int
11450main ()
11451{
11452
11453  ;
11454  return 0;
11455}
11456_ACEOF
11457rm -f conftest.$ac_objext conftest$ac_exeext
11458if { (ac_try="$ac_link"
11459case "(($ac_try" in
11460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461  *) ac_try_echo=$ac_try;;
11462esac
11463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464  (eval "$ac_link") 2>conftest.er1
11465  ac_status=$?
11466  grep -v '^ *+' conftest.er1 >conftest.err
11467  rm -f conftest.er1
11468  cat conftest.err >&5
11469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470  (exit $ac_status); } && {
11471	 test -z "$ac_cxx_werror_flag" ||
11472	 test ! -s conftest.err
11473       } && test -s conftest$ac_exeext &&
11474       $as_test_x conftest$ac_exeext; then
11475
11476lt_aix_libpath_sed='
11477    /Import File Strings/,/^$/ {
11478	/^0/ {
11479	    s/^0  *\(.*\)$/\1/
11480	    p
11481	}
11482    }'
11483aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11484# Check for a 64-bit object if we didn't find anything.
11485if test -z "$aix_libpath"; then
11486  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11487fi
11488else
11489  echo "$as_me: failed program was:" >&5
11490sed 's/^/| /' conftest.$ac_ext >&5
11491
11492
11493fi
11494
11495rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11496      conftest$ac_exeext conftest.$ac_ext
11497if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11498
11499	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11500	# Warning - without using the other run time loading flags,
11501	# -berok will link without error, but may produce a broken library.
11502	no_undefined_flag_CXX=' ${wl}-bernotok'
11503	allow_undefined_flag_CXX=' ${wl}-berok'
11504	# Exported symbols can be pulled into shared objects from archives
11505	whole_archive_flag_spec_CXX='$convenience'
11506	archive_cmds_need_lc_CXX=yes
11507	# This is similar to how AIX traditionally builds its shared libraries.
11508	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'
11509      fi
11510    fi
11511    ;;
11512
11513  beos*)
11514    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11515      allow_undefined_flag_CXX=unsupported
11516      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11517      # support --undefined.  This deserves some investigation.  FIXME
11518      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11519    else
11520      ld_shlibs_CXX=no
11521    fi
11522    ;;
11523
11524  chorus*)
11525    case $cc_basename in
11526      *)
11527	# FIXME: insert proper C++ library support
11528	ld_shlibs_CXX=no
11529	;;
11530    esac
11531    ;;
11532
11533  cygwin* | mingw* | pw32*)
11534    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11535    # as there is no search path for DLLs.
11536    hardcode_libdir_flag_spec_CXX='-L$libdir'
11537    allow_undefined_flag_CXX=unsupported
11538    always_export_symbols_CXX=no
11539    enable_shared_with_static_runtimes_CXX=yes
11540
11541    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11542      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'
11543      # If the export-symbols file already is a .def file (1st line
11544      # is EXPORTS), use it as is; otherwise, prepend...
11545      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11546	cp $export_symbols $output_objdir/$soname.def;
11547      else
11548	echo EXPORTS > $output_objdir/$soname.def;
11549	cat $export_symbols >> $output_objdir/$soname.def;
11550      fi~
11551      $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'
11552    else
11553      ld_shlibs_CXX=no
11554    fi
11555  ;;
11556      darwin* | rhapsody*)
11557      archive_cmds_need_lc_CXX=no
11558      hardcode_direct_CXX=no
11559      hardcode_automatic_CXX=yes
11560      hardcode_shlibpath_var_CXX=unsupported
11561      whole_archive_flag_spec_CXX=''
11562      link_all_deplibs_CXX=yes
11563      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11564      if test "$GXX" = yes ; then
11565      output_verbose_link_cmd='echo'
11566      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11567      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11568      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11569      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11570      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11571        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${_lt_dsymutil}"
11572        archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11573      fi
11574      else
11575      case $cc_basename in
11576        xlc*)
11577         output_verbose_link_cmd='echo'
11578          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11579          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11580          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11581          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11582          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}'
11583          ;;
11584       *)
11585         ld_shlibs_CXX=no
11586          ;;
11587      esac
11588      fi
11589        ;;
11590
11591  dgux*)
11592    case $cc_basename in
11593      ec++*)
11594	# FIXME: insert proper C++ library support
11595	ld_shlibs_CXX=no
11596	;;
11597      ghcx*)
11598	# Green Hills C++ Compiler
11599	# FIXME: insert proper C++ library support
11600	ld_shlibs_CXX=no
11601	;;
11602      *)
11603	# FIXME: insert proper C++ library support
11604	ld_shlibs_CXX=no
11605	;;
11606    esac
11607    ;;
11608  freebsd[12]*)
11609    # C++ shared libraries reported to be fairly broken before switch to ELF
11610    ld_shlibs_CXX=no
11611    ;;
11612  freebsd-elf*)
11613    archive_cmds_need_lc_CXX=no
11614    ;;
11615  freebsd* | dragonfly*)
11616    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11617    # conventions
11618    ld_shlibs_CXX=yes
11619    ;;
11620  gnu*)
11621    ;;
11622  hpux9*)
11623    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11624    hardcode_libdir_separator_CXX=:
11625    export_dynamic_flag_spec_CXX='${wl}-E'
11626    hardcode_direct_CXX=yes
11627    hardcode_minus_L_CXX=yes # Not in the search PATH,
11628				# but as the default
11629				# location of the library.
11630
11631    case $cc_basename in
11632    CC*)
11633      # FIXME: insert proper C++ library support
11634      ld_shlibs_CXX=no
11635      ;;
11636    aCC*)
11637      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'
11638      # Commands to make compiler produce verbose output that lists
11639      # what "hidden" libraries, object files and flags are used when
11640      # linking a shared library.
11641      #
11642      # There doesn't appear to be a way to prevent this compiler from
11643      # explicitly linking system object files so we need to strip them
11644      # from the output so that they don't get included in the library
11645      # dependencies.
11646      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'
11647      ;;
11648    *)
11649      if test "$GXX" = yes; then
11650        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'
11651      else
11652        # FIXME: insert proper C++ library support
11653        ld_shlibs_CXX=no
11654      fi
11655      ;;
11656    esac
11657    ;;
11658  hpux10*|hpux11*)
11659    if test $with_gnu_ld = no; then
11660      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11661      hardcode_libdir_separator_CXX=:
11662
11663      case $host_cpu in
11664      hppa*64*|ia64*) ;;
11665      *)
11666	export_dynamic_flag_spec_CXX='${wl}-E'
11667        ;;
11668      esac
11669    fi
11670    case $host_cpu in
11671    hppa*64*|ia64*)
11672      hardcode_direct_CXX=no
11673      hardcode_shlibpath_var_CXX=no
11674      ;;
11675    *)
11676      hardcode_direct_CXX=yes
11677      hardcode_minus_L_CXX=yes # Not in the search PATH,
11678					      # but as the default
11679					      # location of the library.
11680      ;;
11681    esac
11682
11683    case $cc_basename in
11684      CC*)
11685	# FIXME: insert proper C++ library support
11686	ld_shlibs_CXX=no
11687	;;
11688      aCC*)
11689	case $host_cpu in
11690	hppa*64*)
11691	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11692	  ;;
11693	ia64*)
11694	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11695	  ;;
11696	*)
11697	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11698	  ;;
11699	esac
11700	# Commands to make compiler produce verbose output that lists
11701	# what "hidden" libraries, object files and flags are used when
11702	# linking a shared library.
11703	#
11704	# There doesn't appear to be a way to prevent this compiler from
11705	# explicitly linking system object files so we need to strip them
11706	# from the output so that they don't get included in the library
11707	# dependencies.
11708	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'
11709	;;
11710      *)
11711	if test "$GXX" = yes; then
11712	  if test $with_gnu_ld = no; then
11713	    case $host_cpu in
11714	    hppa*64*)
11715	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11716	      ;;
11717	    ia64*)
11718	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11719	      ;;
11720	    *)
11721	      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'
11722	      ;;
11723	    esac
11724	  fi
11725	else
11726	  # FIXME: insert proper C++ library support
11727	  ld_shlibs_CXX=no
11728	fi
11729	;;
11730    esac
11731    ;;
11732  interix[3-9]*)
11733    hardcode_direct_CXX=no
11734    hardcode_shlibpath_var_CXX=no
11735    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11736    export_dynamic_flag_spec_CXX='${wl}-E'
11737    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11738    # Instead, shared libraries are loaded at an image base (0x10000000 by
11739    # default) and relocated if they conflict, which is a slow very memory
11740    # consuming and fragmenting process.  To avoid this, we pick a random,
11741    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11742    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11743    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'
11744    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'
11745    ;;
11746  irix5* | irix6*)
11747    case $cc_basename in
11748      CC*)
11749	# SGI C++
11750	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'
11751
11752	# Archives containing C++ object files must be created using
11753	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11754	# necessary to make sure instantiated templates are included
11755	# in the archive.
11756	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11757	;;
11758      *)
11759	if test "$GXX" = yes; then
11760	  if test "$with_gnu_ld" = no; then
11761	    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'
11762	  else
11763	    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'
11764	  fi
11765	fi
11766	link_all_deplibs_CXX=yes
11767	;;
11768    esac
11769    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11770    hardcode_libdir_separator_CXX=:
11771    ;;
11772  linux* | k*bsd*-gnu)
11773    case $cc_basename in
11774      KCC*)
11775	# Kuck and Associates, Inc. (KAI) C++ Compiler
11776
11777	# KCC will only create a shared library if the output file
11778	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11779	# to its proper name (with version) after linking.
11780	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'
11781	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'
11782	# Commands to make compiler produce verbose output that lists
11783	# what "hidden" libraries, object files and flags are used when
11784	# linking a shared library.
11785	#
11786	# There doesn't appear to be a way to prevent this compiler from
11787	# explicitly linking system object files so we need to strip them
11788	# from the output so that they don't get included in the library
11789	# dependencies.
11790	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'
11791
11792	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11793	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11794
11795	# Archives containing C++ object files must be created using
11796	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11797	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11798	;;
11799      icpc*)
11800	# Intel C++
11801	with_gnu_ld=yes
11802	# version 8.0 and above of icpc choke on multiply defined symbols
11803	# if we add $predep_objects and $postdep_objects, however 7.1 and
11804	# earlier do not add the objects themselves.
11805	case `$CC -V 2>&1` in
11806	*"Version 7."*)
11807  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11808  	  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'
11809	  ;;
11810	*)  # Version 8.0 or newer
11811	  tmp_idyn=
11812	  case $host_cpu in
11813	    ia64*) tmp_idyn=' -i_dynamic';;
11814	  esac
11815  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11816	  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'
11817	  ;;
11818	esac
11819	archive_cmds_need_lc_CXX=no
11820	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11821	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11822	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11823	;;
11824      pgCC* | pgcpp*)
11825        # Portland Group C++ compiler
11826	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11827  	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'
11828
11829	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11830	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11831	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'
11832        ;;
11833      cxx*)
11834	# Compaq C++
11835	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11836	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'
11837
11838	runpath_var=LD_RUN_PATH
11839	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11840	hardcode_libdir_separator_CXX=:
11841
11842	# Commands to make compiler produce verbose output that lists
11843	# what "hidden" libraries, object files and flags are used when
11844	# linking a shared library.
11845	#
11846	# There doesn't appear to be a way to prevent this compiler from
11847	# explicitly linking system object files so we need to strip them
11848	# from the output so that they don't get included in the library
11849	# dependencies.
11850	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'
11851	;;
11852      *)
11853	case `$CC -V 2>&1 | sed 5q` in
11854	*Sun\ C*)
11855	  # Sun C++ 5.9
11856	  no_undefined_flag_CXX=' -zdefs'
11857	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11858	  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'
11859	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11860	  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'
11861
11862	  # Not sure whether something based on
11863	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11864	  # would be better.
11865	  output_verbose_link_cmd='echo'
11866
11867	  # Archives containing C++ object files must be created using
11868	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11869	  # necessary to make sure instantiated templates are included
11870	  # in the archive.
11871	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11872	  ;;
11873	esac
11874	;;
11875    esac
11876    ;;
11877  lynxos*)
11878    # FIXME: insert proper C++ library support
11879    ld_shlibs_CXX=no
11880    ;;
11881  m88k*)
11882    # FIXME: insert proper C++ library support
11883    ld_shlibs_CXX=no
11884    ;;
11885  mvs*)
11886    case $cc_basename in
11887      cxx*)
11888	# FIXME: insert proper C++ library support
11889	ld_shlibs_CXX=no
11890	;;
11891      *)
11892	# FIXME: insert proper C++ library support
11893	ld_shlibs_CXX=no
11894	;;
11895    esac
11896    ;;
11897  netbsd* | netbsdelf*-gnu)
11898    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11899      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11900      wlarc=
11901      hardcode_libdir_flag_spec_CXX='-R$libdir'
11902      hardcode_direct_CXX=yes
11903      hardcode_shlibpath_var_CXX=no
11904    fi
11905    # Workaround some broken pre-1.5 toolchains
11906    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11907    ;;
11908  openbsd2*)
11909    # C++ shared libraries are fairly broken
11910    ld_shlibs_CXX=no
11911    ;;
11912  openbsd*)
11913    if test -f /usr/libexec/ld.so; then
11914      hardcode_direct_CXX=yes
11915      hardcode_shlibpath_var_CXX=no
11916      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11917      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11918      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11919	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11920	export_dynamic_flag_spec_CXX='${wl}-E'
11921	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11922      fi
11923      output_verbose_link_cmd='echo'
11924    else
11925      ld_shlibs_CXX=no
11926    fi
11927    ;;
11928  osf3*)
11929    case $cc_basename in
11930      KCC*)
11931	# Kuck and Associates, Inc. (KAI) C++ Compiler
11932
11933	# KCC will only create a shared library if the output file
11934	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11935	# to its proper name (with version) after linking.
11936	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'
11937
11938	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11939	hardcode_libdir_separator_CXX=:
11940
11941	# Archives containing C++ object files must be created using
11942	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11943	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11944
11945	;;
11946      RCC*)
11947	# Rational C++ 2.4.1
11948	# FIXME: insert proper C++ library support
11949	ld_shlibs_CXX=no
11950	;;
11951      cxx*)
11952	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11953	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'
11954
11955	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11956	hardcode_libdir_separator_CXX=:
11957
11958	# Commands to make compiler produce verbose output that lists
11959	# what "hidden" libraries, object files and flags are used when
11960	# linking a shared library.
11961	#
11962	# There doesn't appear to be a way to prevent this compiler from
11963	# explicitly linking system object files so we need to strip them
11964	# from the output so that they don't get included in the library
11965	# dependencies.
11966	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'
11967	;;
11968      *)
11969	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11970	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11971	  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'
11972
11973	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11974	  hardcode_libdir_separator_CXX=:
11975
11976	  # Commands to make compiler produce verbose output that lists
11977	  # what "hidden" libraries, object files and flags are used when
11978	  # linking a shared library.
11979	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11980
11981	else
11982	  # FIXME: insert proper C++ library support
11983	  ld_shlibs_CXX=no
11984	fi
11985	;;
11986    esac
11987    ;;
11988  osf4* | osf5*)
11989    case $cc_basename in
11990      KCC*)
11991	# Kuck and Associates, Inc. (KAI) C++ Compiler
11992
11993	# KCC will only create a shared library if the output file
11994	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11995	# to its proper name (with version) after linking.
11996	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'
11997
11998	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11999	hardcode_libdir_separator_CXX=:
12000
12001	# Archives containing C++ object files must be created using
12002	# the KAI C++ compiler.
12003	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12004	;;
12005      RCC*)
12006	# Rational C++ 2.4.1
12007	# FIXME: insert proper C++ library support
12008	ld_shlibs_CXX=no
12009	;;
12010      cxx*)
12011	allow_undefined_flag_CXX=' -expect_unresolved \*'
12012	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'
12013	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12014	  echo "-hidden">> $lib.exp~
12015	  $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~
12016	  $rm $lib.exp'
12017
12018	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12019	hardcode_libdir_separator_CXX=:
12020
12021	# Commands to make compiler produce verbose output that lists
12022	# what "hidden" libraries, object files and flags are used when
12023	# linking a shared library.
12024	#
12025	# There doesn't appear to be a way to prevent this compiler from
12026	# explicitly linking system object files so we need to strip them
12027	# from the output so that they don't get included in the library
12028	# dependencies.
12029	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'
12030	;;
12031      *)
12032	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12033	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12034	 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'
12035
12036	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12037	  hardcode_libdir_separator_CXX=:
12038
12039	  # Commands to make compiler produce verbose output that lists
12040	  # what "hidden" libraries, object files and flags are used when
12041	  # linking a shared library.
12042	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12043
12044	else
12045	  # FIXME: insert proper C++ library support
12046	  ld_shlibs_CXX=no
12047	fi
12048	;;
12049    esac
12050    ;;
12051  psos*)
12052    # FIXME: insert proper C++ library support
12053    ld_shlibs_CXX=no
12054    ;;
12055  sunos4*)
12056    case $cc_basename in
12057      CC*)
12058	# Sun C++ 4.x
12059	# FIXME: insert proper C++ library support
12060	ld_shlibs_CXX=no
12061	;;
12062      lcc*)
12063	# Lucid
12064	# FIXME: insert proper C++ library support
12065	ld_shlibs_CXX=no
12066	;;
12067      *)
12068	# FIXME: insert proper C++ library support
12069	ld_shlibs_CXX=no
12070	;;
12071    esac
12072    ;;
12073  solaris*)
12074    case $cc_basename in
12075      CC*)
12076	# Sun C++ 4.2, 5.x and Centerline C++
12077        archive_cmds_need_lc_CXX=yes
12078	no_undefined_flag_CXX=' -zdefs'
12079	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12080	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12081	$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'
12082
12083	hardcode_libdir_flag_spec_CXX='-R$libdir'
12084	hardcode_shlibpath_var_CXX=no
12085	case $host_os in
12086	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12087	  *)
12088	    # The compiler driver will combine and reorder linker options,
12089	    # but understands `-z linker_flag'.
12090	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12091	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12092	    ;;
12093	esac
12094	link_all_deplibs_CXX=yes
12095
12096	output_verbose_link_cmd='echo'
12097
12098	# Archives containing C++ object files must be created using
12099	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12100	# necessary to make sure instantiated templates are included
12101	# in the archive.
12102	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12103	;;
12104      gcx*)
12105	# Green Hills C++ Compiler
12106	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12107
12108	# The C++ compiler must be used to create the archive.
12109	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12110	;;
12111      *)
12112	# GNU C++ compiler with Solaris linker
12113	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12114	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12115	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12116	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12117	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12118		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12119
12120	    # Commands to make compiler produce verbose output that lists
12121	    # what "hidden" libraries, object files and flags are used when
12122	    # linking a shared library.
12123	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12124	  else
12125	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12126	    # platform.
12127	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12128	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12129		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12130
12131	    # Commands to make compiler produce verbose output that lists
12132	    # what "hidden" libraries, object files and flags are used when
12133	    # linking a shared library.
12134	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12135	  fi
12136
12137	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12138	  case $host_os in
12139	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12140	  *)
12141	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12142	    ;;
12143	  esac
12144	fi
12145	;;
12146    esac
12147    ;;
12148  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12149    no_undefined_flag_CXX='${wl}-z,text'
12150    archive_cmds_need_lc_CXX=no
12151    hardcode_shlibpath_var_CXX=no
12152    runpath_var='LD_RUN_PATH'
12153
12154    case $cc_basename in
12155      CC*)
12156	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12157	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12158	;;
12159      *)
12160	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12161	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12162	;;
12163    esac
12164    ;;
12165  sysv5* | sco3.2v5* | sco5v6*)
12166    # Note: We can NOT use -z defs as we might desire, because we do not
12167    # link with -lc, and that would cause any symbols used from libc to
12168    # always be unresolved, which means just about no library would
12169    # ever link correctly.  If we're not using GNU ld we use -z text
12170    # though, which does catch some bad symbols but isn't as heavy-handed
12171    # as -z defs.
12172    # For security reasons, it is highly recommended that you always
12173    # use absolute paths for naming shared libraries, and exclude the
12174    # DT_RUNPATH tag from executables and libraries.  But doing so
12175    # requires that you compile everything twice, which is a pain.
12176    # So that behaviour is only enabled if SCOABSPATH is set to a
12177    # non-empty value in the environment.  Most likely only useful for
12178    # creating official distributions of packages.
12179    # This is a hack until libtool officially supports absolute path
12180    # names for shared libraries.
12181    no_undefined_flag_CXX='${wl}-z,text'
12182    allow_undefined_flag_CXX='${wl}-z,nodefs'
12183    archive_cmds_need_lc_CXX=no
12184    hardcode_shlibpath_var_CXX=no
12185    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12186    hardcode_libdir_separator_CXX=':'
12187    link_all_deplibs_CXX=yes
12188    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12189    runpath_var='LD_RUN_PATH'
12190
12191    case $cc_basename in
12192      CC*)
12193	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12194	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12195	;;
12196      *)
12197	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12198	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12199	;;
12200    esac
12201    ;;
12202  tandem*)
12203    case $cc_basename in
12204      NCC*)
12205	# NonStop-UX NCC 3.20
12206	# FIXME: insert proper C++ library support
12207	ld_shlibs_CXX=no
12208	;;
12209      *)
12210	# FIXME: insert proper C++ library support
12211	ld_shlibs_CXX=no
12212	;;
12213    esac
12214    ;;
12215  vxworks*)
12216    # FIXME: insert proper C++ library support
12217    ld_shlibs_CXX=no
12218    ;;
12219  *)
12220    # FIXME: insert proper C++ library support
12221    ld_shlibs_CXX=no
12222    ;;
12223esac
12224{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12225echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12226test "$ld_shlibs_CXX" = no && can_build_shared=no
12227
12228GCC_CXX="$GXX"
12229LD_CXX="$LD"
12230
12231cat > conftest.$ac_ext <<EOF
12232class Foo
12233{
12234public:
12235  Foo (void) { a = 0; }
12236private:
12237  int a;
12238};
12239EOF
12240
12241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12242  (eval $ac_compile) 2>&5
12243  ac_status=$?
12244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245  (exit $ac_status); }; then
12246  # Parse the compiler output and extract the necessary
12247  # objects, libraries and library flags.
12248
12249  # Sentinel used to keep track of whether or not we are before
12250  # the conftest object file.
12251  pre_test_object_deps_done=no
12252
12253  # The `*' in the case matches for architectures that use `case' in
12254  # $output_verbose_cmd can trigger glob expansion during the loop
12255  # eval without this substitution.
12256  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12257
12258  for p in `eval $output_verbose_link_cmd`; do
12259    case $p in
12260
12261    -L* | -R* | -l*)
12262       # Some compilers place space between "-{L,R}" and the path.
12263       # Remove the space.
12264       if test $p = "-L" \
12265	  || test $p = "-R"; then
12266	 prev=$p
12267	 continue
12268       else
12269	 prev=
12270       fi
12271
12272       if test "$pre_test_object_deps_done" = no; then
12273	 case $p in
12274	 -L* | -R*)
12275	   # Internal compiler library paths should come after those
12276	   # provided the user.  The postdeps already come after the
12277	   # user supplied libs so there is no need to process them.
12278	   if test -z "$compiler_lib_search_path_CXX"; then
12279	     compiler_lib_search_path_CXX="${prev}${p}"
12280	   else
12281	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12282	   fi
12283	   ;;
12284	 # The "-l" case would never come before the object being
12285	 # linked, so don't bother handling this case.
12286	 esac
12287       else
12288	 if test -z "$postdeps_CXX"; then
12289	   postdeps_CXX="${prev}${p}"
12290	 else
12291	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12292	 fi
12293       fi
12294       ;;
12295
12296    *.$objext)
12297       # This assumes that the test object file only shows up
12298       # once in the compiler output.
12299       if test "$p" = "conftest.$objext"; then
12300	 pre_test_object_deps_done=yes
12301	 continue
12302       fi
12303
12304       if test "$pre_test_object_deps_done" = no; then
12305	 if test -z "$predep_objects_CXX"; then
12306	   predep_objects_CXX="$p"
12307	 else
12308	   predep_objects_CXX="$predep_objects_CXX $p"
12309	 fi
12310       else
12311	 if test -z "$postdep_objects_CXX"; then
12312	   postdep_objects_CXX="$p"
12313	 else
12314	   postdep_objects_CXX="$postdep_objects_CXX $p"
12315	 fi
12316       fi
12317       ;;
12318
12319    *) ;; # Ignore the rest.
12320
12321    esac
12322  done
12323
12324  # Clean up.
12325  rm -f a.out a.exe
12326else
12327  echo "libtool.m4: error: problem compiling CXX test program"
12328fi
12329
12330$rm -f confest.$objext
12331
12332compiler_lib_search_dirs_CXX=
12333if test -n "$compiler_lib_search_path_CXX"; then
12334  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12335fi
12336
12337# PORTME: override above test on systems where it is broken
12338case $host_os in
12339interix[3-9]*)
12340  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12341  # hack all around it, let's just trust "g++" to DTRT.
12342  predep_objects_CXX=
12343  postdep_objects_CXX=
12344  postdeps_CXX=
12345  ;;
12346
12347linux*)
12348  case `$CC -V 2>&1 | sed 5q` in
12349  *Sun\ C*)
12350    # Sun C++ 5.9
12351    #
12352    # The more standards-conforming stlport4 library is
12353    # incompatible with the Cstd library. Avoid specifying
12354    # it if it's in CXXFLAGS. Ignore libCrun as
12355    # -library=stlport4 depends on it.
12356    case " $CXX $CXXFLAGS " in
12357    *" -library=stlport4 "*)
12358      solaris_use_stlport4=yes
12359      ;;
12360    esac
12361    if test "$solaris_use_stlport4" != yes; then
12362      postdeps_CXX='-library=Cstd -library=Crun'
12363    fi
12364    ;;
12365  esac
12366  ;;
12367
12368solaris*)
12369  case $cc_basename in
12370  CC*)
12371    # The more standards-conforming stlport4 library is
12372    # incompatible with the Cstd library. Avoid specifying
12373    # it if it's in CXXFLAGS. Ignore libCrun as
12374    # -library=stlport4 depends on it.
12375    case " $CXX $CXXFLAGS " in
12376    *" -library=stlport4 "*)
12377      solaris_use_stlport4=yes
12378      ;;
12379    esac
12380
12381    # Adding this requires a known-good setup of shared libraries for
12382    # Sun compiler versions before 5.6, else PIC objects from an old
12383    # archive will be linked into the output, leading to subtle bugs.
12384    if test "$solaris_use_stlport4" != yes; then
12385      postdeps_CXX='-library=Cstd -library=Crun'
12386    fi
12387    ;;
12388  esac
12389  ;;
12390esac
12391
12392case " $postdeps_CXX " in
12393*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12394esac
12395
12396lt_prog_compiler_wl_CXX=
12397lt_prog_compiler_pic_CXX=
12398lt_prog_compiler_static_CXX=
12399
12400{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12401echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12402
12403  # C++ specific cases for pic, static, wl, etc.
12404  if test "$GXX" = yes; then
12405    lt_prog_compiler_wl_CXX='-Wl,'
12406    lt_prog_compiler_static_CXX='-static'
12407
12408    case $host_os in
12409    aix*)
12410      # All AIX code is PIC.
12411      if test "$host_cpu" = ia64; then
12412	# AIX 5 now supports IA64 processor
12413	lt_prog_compiler_static_CXX='-Bstatic'
12414      fi
12415      ;;
12416    amigaos*)
12417      # FIXME: we need at least 68020 code to build shared libraries, but
12418      # adding the `-m68020' flag to GCC prevents building anything better,
12419      # like `-m68040'.
12420      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12421      ;;
12422    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12423      # PIC is the default for these OSes.
12424      ;;
12425    mingw* | cygwin* | os2* | pw32*)
12426      # This hack is so that the source file can tell whether it is being
12427      # built for inclusion in a dll (and should export symbols for example).
12428      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12429      # (--disable-auto-import) libraries
12430      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12431      ;;
12432    darwin* | rhapsody*)
12433      # PIC is the default on this platform
12434      # Common symbols not allowed in MH_DYLIB files
12435      lt_prog_compiler_pic_CXX='-fno-common'
12436      ;;
12437    *djgpp*)
12438      # DJGPP does not support shared libraries at all
12439      lt_prog_compiler_pic_CXX=
12440      ;;
12441    interix[3-9]*)
12442      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12443      # Instead, we relocate shared libraries at runtime.
12444      ;;
12445    sysv4*MP*)
12446      if test -d /usr/nec; then
12447	lt_prog_compiler_pic_CXX=-Kconform_pic
12448      fi
12449      ;;
12450    hpux*)
12451      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12452      # not for PA HP-UX.
12453      case $host_cpu in
12454      hppa*64*|ia64*)
12455	;;
12456      *)
12457	lt_prog_compiler_pic_CXX='-fPIC'
12458	;;
12459      esac
12460      ;;
12461    *)
12462      lt_prog_compiler_pic_CXX='-fPIC'
12463      ;;
12464    esac
12465  else
12466    case $host_os in
12467      aix[4-9]*)
12468	# All AIX code is PIC.
12469	if test "$host_cpu" = ia64; then
12470	  # AIX 5 now supports IA64 processor
12471	  lt_prog_compiler_static_CXX='-Bstatic'
12472	else
12473	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12474	fi
12475	;;
12476      chorus*)
12477	case $cc_basename in
12478	cxch68*)
12479	  # Green Hills C++ Compiler
12480	  # _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"
12481	  ;;
12482	esac
12483	;;
12484       darwin*)
12485         # PIC is the default on this platform
12486         # Common symbols not allowed in MH_DYLIB files
12487         case $cc_basename in
12488           xlc*)
12489           lt_prog_compiler_pic_CXX='-qnocommon'
12490           lt_prog_compiler_wl_CXX='-Wl,'
12491           ;;
12492         esac
12493       ;;
12494      dgux*)
12495	case $cc_basename in
12496	  ec++*)
12497	    lt_prog_compiler_pic_CXX='-KPIC'
12498	    ;;
12499	  ghcx*)
12500	    # Green Hills C++ Compiler
12501	    lt_prog_compiler_pic_CXX='-pic'
12502	    ;;
12503	  *)
12504	    ;;
12505	esac
12506	;;
12507      freebsd* | dragonfly*)
12508	# FreeBSD uses GNU C++
12509	;;
12510      hpux9* | hpux10* | hpux11*)
12511	case $cc_basename in
12512	  CC*)
12513	    lt_prog_compiler_wl_CXX='-Wl,'
12514	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12515	    if test "$host_cpu" != ia64; then
12516	      lt_prog_compiler_pic_CXX='+Z'
12517	    fi
12518	    ;;
12519	  aCC*)
12520	    lt_prog_compiler_wl_CXX='-Wl,'
12521	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12522	    case $host_cpu in
12523	    hppa*64*|ia64*)
12524	      # +Z the default
12525	      ;;
12526	    *)
12527	      lt_prog_compiler_pic_CXX='+Z'
12528	      ;;
12529	    esac
12530	    ;;
12531	  *)
12532	    ;;
12533	esac
12534	;;
12535      interix*)
12536	# This is c89, which is MS Visual C++ (no shared libs)
12537	# Anyone wants to do a port?
12538	;;
12539      irix5* | irix6* | nonstopux*)
12540	case $cc_basename in
12541	  CC*)
12542	    lt_prog_compiler_wl_CXX='-Wl,'
12543	    lt_prog_compiler_static_CXX='-non_shared'
12544	    # CC pic flag -KPIC is the default.
12545	    ;;
12546	  *)
12547	    ;;
12548	esac
12549	;;
12550      linux* | k*bsd*-gnu)
12551	case $cc_basename in
12552	  KCC*)
12553	    # KAI C++ Compiler
12554	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12555	    lt_prog_compiler_pic_CXX='-fPIC'
12556	    ;;
12557	  icpc* | ecpc*)
12558	    # Intel C++
12559	    lt_prog_compiler_wl_CXX='-Wl,'
12560	    lt_prog_compiler_pic_CXX='-KPIC'
12561	    lt_prog_compiler_static_CXX='-static'
12562	    ;;
12563	  pgCC* | pgcpp*)
12564	    # Portland Group C++ compiler.
12565	    lt_prog_compiler_wl_CXX='-Wl,'
12566	    lt_prog_compiler_pic_CXX='-fpic'
12567	    lt_prog_compiler_static_CXX='-Bstatic'
12568	    ;;
12569	  cxx*)
12570	    # Compaq C++
12571	    # Make sure the PIC flag is empty.  It appears that all Alpha
12572	    # Linux and Compaq Tru64 Unix objects are PIC.
12573	    lt_prog_compiler_pic_CXX=
12574	    lt_prog_compiler_static_CXX='-non_shared'
12575	    ;;
12576	  *)
12577	    case `$CC -V 2>&1 | sed 5q` in
12578	    *Sun\ C*)
12579	      # Sun C++ 5.9
12580	      lt_prog_compiler_pic_CXX='-KPIC'
12581	      lt_prog_compiler_static_CXX='-Bstatic'
12582	      lt_prog_compiler_wl_CXX='-Qoption ld '
12583	      ;;
12584	    esac
12585	    ;;
12586	esac
12587	;;
12588      lynxos*)
12589	;;
12590      m88k*)
12591	;;
12592      mvs*)
12593	case $cc_basename in
12594	  cxx*)
12595	    lt_prog_compiler_pic_CXX='-W c,exportall'
12596	    ;;
12597	  *)
12598	    ;;
12599	esac
12600	;;
12601      netbsd* | netbsdelf*-gnu)
12602	;;
12603      osf3* | osf4* | osf5*)
12604	case $cc_basename in
12605	  KCC*)
12606	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12607	    ;;
12608	  RCC*)
12609	    # Rational C++ 2.4.1
12610	    lt_prog_compiler_pic_CXX='-pic'
12611	    ;;
12612	  cxx*)
12613	    # Digital/Compaq C++
12614	    lt_prog_compiler_wl_CXX='-Wl,'
12615	    # Make sure the PIC flag is empty.  It appears that all Alpha
12616	    # Linux and Compaq Tru64 Unix objects are PIC.
12617	    lt_prog_compiler_pic_CXX=
12618	    lt_prog_compiler_static_CXX='-non_shared'
12619	    ;;
12620	  *)
12621	    ;;
12622	esac
12623	;;
12624      psos*)
12625	;;
12626      solaris*)
12627	case $cc_basename in
12628	  CC*)
12629	    # Sun C++ 4.2, 5.x and Centerline C++
12630	    lt_prog_compiler_pic_CXX='-KPIC'
12631	    lt_prog_compiler_static_CXX='-Bstatic'
12632	    lt_prog_compiler_wl_CXX='-Qoption ld '
12633	    ;;
12634	  gcx*)
12635	    # Green Hills C++ Compiler
12636	    lt_prog_compiler_pic_CXX='-PIC'
12637	    ;;
12638	  *)
12639	    ;;
12640	esac
12641	;;
12642      sunos4*)
12643	case $cc_basename in
12644	  CC*)
12645	    # Sun C++ 4.x
12646	    lt_prog_compiler_pic_CXX='-pic'
12647	    lt_prog_compiler_static_CXX='-Bstatic'
12648	    ;;
12649	  lcc*)
12650	    # Lucid
12651	    lt_prog_compiler_pic_CXX='-pic'
12652	    ;;
12653	  *)
12654	    ;;
12655	esac
12656	;;
12657      tandem*)
12658	case $cc_basename in
12659	  NCC*)
12660	    # NonStop-UX NCC 3.20
12661	    lt_prog_compiler_pic_CXX='-KPIC'
12662	    ;;
12663	  *)
12664	    ;;
12665	esac
12666	;;
12667      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12668	case $cc_basename in
12669	  CC*)
12670	    lt_prog_compiler_wl_CXX='-Wl,'
12671	    lt_prog_compiler_pic_CXX='-KPIC'
12672	    lt_prog_compiler_static_CXX='-Bstatic'
12673	    ;;
12674	esac
12675	;;
12676      vxworks*)
12677	;;
12678      *)
12679	lt_prog_compiler_can_build_shared_CXX=no
12680	;;
12681    esac
12682  fi
12683
12684{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12685echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12686
12687#
12688# Check to make sure the PIC flag actually works.
12689#
12690if test -n "$lt_prog_compiler_pic_CXX"; then
12691
12692{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12693echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12694if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12695  echo $ECHO_N "(cached) $ECHO_C" >&6
12696else
12697  lt_cv_prog_compiler_pic_works_CXX=no
12698  ac_outfile=conftest.$ac_objext
12699   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12700   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12701   # Insert the option either (1) after the last *FLAGS variable, or
12702   # (2) before a word containing "conftest.", or (3) at the end.
12703   # Note that $ac_compile itself does not contain backslashes and begins
12704   # with a dollar sign (not a hyphen), so the echo should work correctly.
12705   # The option is referenced via a variable to avoid confusing sed.
12706   lt_compile=`echo "$ac_compile" | $SED \
12707   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12708   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12709   -e 's:$: $lt_compiler_flag:'`
12710   (eval echo "\"\$as_me:12710: $lt_compile\"" >&5)
12711   (eval "$lt_compile" 2>conftest.err)
12712   ac_status=$?
12713   cat conftest.err >&5
12714   echo "$as_me:12714: \$? = $ac_status" >&5
12715   if (exit $ac_status) && test -s "$ac_outfile"; then
12716     # The compiler can only warn and ignore the option if not recognized
12717     # So say no if there are warnings other than the usual output.
12718     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12719     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12720     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12721       lt_cv_prog_compiler_pic_works_CXX=yes
12722     fi
12723   fi
12724   $rm conftest*
12725
12726fi
12727{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12728echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12729
12730if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12731    case $lt_prog_compiler_pic_CXX in
12732     "" | " "*) ;;
12733     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12734     esac
12735else
12736    lt_prog_compiler_pic_CXX=
12737     lt_prog_compiler_can_build_shared_CXX=no
12738fi
12739
12740fi
12741case $host_os in
12742  # For platforms which do not support PIC, -DPIC is meaningless:
12743  *djgpp*)
12744    lt_prog_compiler_pic_CXX=
12745    ;;
12746  *)
12747    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12748    ;;
12749esac
12750
12751#
12752# Check to make sure the static flag actually works.
12753#
12754wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12755{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12756echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12757if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12758  echo $ECHO_N "(cached) $ECHO_C" >&6
12759else
12760  lt_cv_prog_compiler_static_works_CXX=no
12761   save_LDFLAGS="$LDFLAGS"
12762   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12763   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12764   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12765     # The linker can only warn and ignore the option if not recognized
12766     # So say no if there are warnings
12767     if test -s conftest.err; then
12768       # Append any errors to the config.log.
12769       cat conftest.err 1>&5
12770       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12771       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12772       if diff conftest.exp conftest.er2 >/dev/null; then
12773         lt_cv_prog_compiler_static_works_CXX=yes
12774       fi
12775     else
12776       lt_cv_prog_compiler_static_works_CXX=yes
12777     fi
12778   fi
12779   $rm -r conftest*
12780   LDFLAGS="$save_LDFLAGS"
12781
12782fi
12783{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12784echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12785
12786if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12787    :
12788else
12789    lt_prog_compiler_static_CXX=
12790fi
12791
12792
12793{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12794echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12795if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12796  echo $ECHO_N "(cached) $ECHO_C" >&6
12797else
12798  lt_cv_prog_compiler_c_o_CXX=no
12799   $rm -r conftest 2>/dev/null
12800   mkdir conftest
12801   cd conftest
12802   mkdir out
12803   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12804
12805   lt_compiler_flag="-o out/conftest2.$ac_objext"
12806   # Insert the option either (1) after the last *FLAGS variable, or
12807   # (2) before a word containing "conftest.", or (3) at the end.
12808   # Note that $ac_compile itself does not contain backslashes and begins
12809   # with a dollar sign (not a hyphen), so the echo should work correctly.
12810   lt_compile=`echo "$ac_compile" | $SED \
12811   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12812   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12813   -e 's:$: $lt_compiler_flag:'`
12814   (eval echo "\"\$as_me:12814: $lt_compile\"" >&5)
12815   (eval "$lt_compile" 2>out/conftest.err)
12816   ac_status=$?
12817   cat out/conftest.err >&5
12818   echo "$as_me:12818: \$? = $ac_status" >&5
12819   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12820   then
12821     # The compiler can only warn and ignore the option if not recognized
12822     # So say no if there are warnings
12823     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12824     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12825     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12826       lt_cv_prog_compiler_c_o_CXX=yes
12827     fi
12828   fi
12829   chmod u+w . 2>&5
12830   $rm conftest*
12831   # SGI C++ compiler will create directory out/ii_files/ for
12832   # template instantiation
12833   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12834   $rm out/* && rmdir out
12835   cd ..
12836   rmdir conftest
12837   $rm conftest*
12838
12839fi
12840{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12841echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12842
12843
12844hard_links="nottested"
12845if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12846  # do not overwrite the value of need_locks provided by the user
12847  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12848echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12849  hard_links=yes
12850  $rm conftest*
12851  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12852  touch conftest.a
12853  ln conftest.a conftest.b 2>&5 || hard_links=no
12854  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12855  { echo "$as_me:$LINENO: result: $hard_links" >&5
12856echo "${ECHO_T}$hard_links" >&6; }
12857  if test "$hard_links" = no; then
12858    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12859echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12860    need_locks=warn
12861  fi
12862else
12863  need_locks=no
12864fi
12865
12866{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12867echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12868
12869  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12870  case $host_os in
12871  aix[4-9]*)
12872    # If we're using GNU nm, then we don't want the "-C" option.
12873    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12874    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12875      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'
12876    else
12877      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'
12878    fi
12879    ;;
12880  pw32*)
12881    export_symbols_cmds_CXX="$ltdll_cmds"
12882  ;;
12883  cygwin* | mingw*)
12884    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'
12885  ;;
12886  linux* | k*bsd*-gnu)
12887    link_all_deplibs_CXX=no
12888  ;;
12889  *)
12890    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12891  ;;
12892  esac
12893  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12894
12895{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12896echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12897test "$ld_shlibs_CXX" = no && can_build_shared=no
12898
12899#
12900# Do we need to explicitly link libc?
12901#
12902case "x$archive_cmds_need_lc_CXX" in
12903x|xyes)
12904  # Assume -lc should be added
12905  archive_cmds_need_lc_CXX=yes
12906
12907  if test "$enable_shared" = yes && test "$GCC" = yes; then
12908    case $archive_cmds_CXX in
12909    *'~'*)
12910      # FIXME: we may have to deal with multi-command sequences.
12911      ;;
12912    '$CC '*)
12913      # Test whether the compiler implicitly links with -lc since on some
12914      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12915      # to ld, don't add -lc before -lgcc.
12916      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12917echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12918      $rm conftest*
12919      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12920
12921      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12922  (eval $ac_compile) 2>&5
12923  ac_status=$?
12924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925  (exit $ac_status); } 2>conftest.err; then
12926        soname=conftest
12927        lib=conftest
12928        libobjs=conftest.$ac_objext
12929        deplibs=
12930        wl=$lt_prog_compiler_wl_CXX
12931	pic_flag=$lt_prog_compiler_pic_CXX
12932        compiler_flags=-v
12933        linker_flags=-v
12934        verstring=
12935        output_objdir=.
12936        libname=conftest
12937        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12938        allow_undefined_flag_CXX=
12939        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12940  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12941  ac_status=$?
12942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943  (exit $ac_status); }
12944        then
12945	  archive_cmds_need_lc_CXX=no
12946        else
12947	  archive_cmds_need_lc_CXX=yes
12948        fi
12949        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12950      else
12951        cat conftest.err 1>&5
12952      fi
12953      $rm conftest*
12954      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12955echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12956      ;;
12957    esac
12958  fi
12959  ;;
12960esac
12961
12962{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12963echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12964library_names_spec=
12965libname_spec='lib$name'
12966soname_spec=
12967shrext_cmds=".so"
12968postinstall_cmds=
12969postuninstall_cmds=
12970finish_cmds=
12971finish_eval=
12972shlibpath_var=
12973shlibpath_overrides_runpath=unknown
12974version_type=none
12975dynamic_linker="$host_os ld.so"
12976sys_lib_dlsearch_path_spec="/lib /usr/lib"
12977
12978need_lib_prefix=unknown
12979hardcode_into_libs=no
12980
12981# when you set need_version to no, make sure it does not cause -set_version
12982# flags to be left without arguments
12983need_version=unknown
12984
12985case $host_os in
12986aix3*)
12987  version_type=linux
12988  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12989  shlibpath_var=LIBPATH
12990
12991  # AIX 3 has no versioning support, so we append a major version to the name.
12992  soname_spec='${libname}${release}${shared_ext}$major'
12993  ;;
12994
12995aix[4-9]*)
12996  version_type=linux
12997  need_lib_prefix=no
12998  need_version=no
12999  hardcode_into_libs=yes
13000  if test "$host_cpu" = ia64; then
13001    # AIX 5 supports IA64
13002    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13003    shlibpath_var=LD_LIBRARY_PATH
13004  else
13005    # With GCC up to 2.95.x, collect2 would create an import file
13006    # for dependence libraries.  The import file would start with
13007    # the line `#! .'.  This would cause the generated library to
13008    # depend on `.', always an invalid library.  This was fixed in
13009    # development snapshots of GCC prior to 3.0.
13010    case $host_os in
13011      aix4 | aix4.[01] | aix4.[01].*)
13012      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13013	   echo ' yes '
13014	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13015	:
13016      else
13017	can_build_shared=no
13018      fi
13019      ;;
13020    esac
13021    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13022    # soname into executable. Probably we can add versioning support to
13023    # collect2, so additional links can be useful in future.
13024    if test "$aix_use_runtimelinking" = yes; then
13025      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13026      # instead of lib<name>.a to let people know that these are not
13027      # typical AIX shared libraries.
13028      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13029    else
13030      # We preserve .a as extension for shared libraries through AIX4.2
13031      # and later when we are not doing run time linking.
13032      library_names_spec='${libname}${release}.a $libname.a'
13033      soname_spec='${libname}${release}${shared_ext}$major'
13034    fi
13035    shlibpath_var=LIBPATH
13036  fi
13037  ;;
13038
13039amigaos*)
13040  library_names_spec='$libname.ixlibrary $libname.a'
13041  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13042  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'
13043  ;;
13044
13045beos*)
13046  library_names_spec='${libname}${shared_ext}'
13047  dynamic_linker="$host_os ld.so"
13048  shlibpath_var=LIBRARY_PATH
13049  ;;
13050
13051bsdi[45]*)
13052  version_type=linux
13053  need_version=no
13054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13055  soname_spec='${libname}${release}${shared_ext}$major'
13056  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13057  shlibpath_var=LD_LIBRARY_PATH
13058  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13059  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13060  # the default ld.so.conf also contains /usr/contrib/lib and
13061  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13062  # libtool to hard-code these into programs
13063  ;;
13064
13065cygwin* | mingw* | pw32*)
13066  version_type=windows
13067  shrext_cmds=".dll"
13068  need_version=no
13069  need_lib_prefix=no
13070
13071  case $GCC,$host_os in
13072  yes,cygwin* | yes,mingw* | yes,pw32*)
13073    library_names_spec='$libname.dll.a'
13074    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13075    postinstall_cmds='base_file=`basename \${file}`~
13076      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13077      dldir=$destdir/`dirname \$dlpath`~
13078      test -d \$dldir || mkdir -p \$dldir~
13079      $install_prog $dir/$dlname \$dldir/$dlname~
13080      chmod a+x \$dldir/$dlname'
13081    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13082      dlpath=$dir/\$dldll~
13083       $rm \$dlpath'
13084    shlibpath_overrides_runpath=yes
13085
13086    case $host_os in
13087    cygwin*)
13088      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13089      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13090      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13091      ;;
13092    mingw*)
13093      # MinGW DLLs use traditional 'lib' prefix
13094      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13095      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13096      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13097        # It is most probably a Windows format PATH printed by
13098        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13099        # path with ; separators, and with drive letters. We can handle the
13100        # drive letters (cygwin fileutils understands them), so leave them,
13101        # especially as we might pass files found there to a mingw objdump,
13102        # which wouldn't understand a cygwinified path. Ahh.
13103        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13104      else
13105        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13106      fi
13107      ;;
13108    pw32*)
13109      # pw32 DLLs use 'pw' prefix rather than 'lib'
13110      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13111      ;;
13112    esac
13113    ;;
13114
13115  *)
13116    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13117    ;;
13118  esac
13119  dynamic_linker='Win32 ld.exe'
13120  # FIXME: first we should search . and the directory the executable is in
13121  shlibpath_var=PATH
13122  ;;
13123
13124darwin* | rhapsody*)
13125  dynamic_linker="$host_os dyld"
13126  version_type=darwin
13127  need_lib_prefix=no
13128  need_version=no
13129  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13130  soname_spec='${libname}${release}${major}$shared_ext'
13131  shlibpath_overrides_runpath=yes
13132  shlibpath_var=DYLD_LIBRARY_PATH
13133  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13134
13135  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13136  ;;
13137
13138dgux*)
13139  version_type=linux
13140  need_lib_prefix=no
13141  need_version=no
13142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13143  soname_spec='${libname}${release}${shared_ext}$major'
13144  shlibpath_var=LD_LIBRARY_PATH
13145  ;;
13146
13147freebsd1*)
13148  dynamic_linker=no
13149  ;;
13150
13151freebsd* | dragonfly*)
13152  # DragonFly does not have aout.  When/if they implement a new
13153  # versioning mechanism, adjust this.
13154  if test -x /usr/bin/objformat; then
13155    objformat=`/usr/bin/objformat`
13156  else
13157    case $host_os in
13158    freebsd[123]*) objformat=aout ;;
13159    *) objformat=elf ;;
13160    esac
13161  fi
13162  version_type=freebsd-$objformat
13163  case $version_type in
13164    freebsd-elf*)
13165      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13166      need_version=no
13167      need_lib_prefix=no
13168      ;;
13169    freebsd-*)
13170      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13171      need_version=yes
13172      ;;
13173  esac
13174  shlibpath_var=LD_LIBRARY_PATH
13175  case $host_os in
13176  freebsd2*)
13177    shlibpath_overrides_runpath=yes
13178    ;;
13179  freebsd3.[01]* | freebsdelf3.[01]*)
13180    shlibpath_overrides_runpath=yes
13181    hardcode_into_libs=yes
13182    ;;
13183  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13184  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13185    shlibpath_overrides_runpath=no
13186    hardcode_into_libs=yes
13187    ;;
13188  *) # from 4.6 on, and DragonFly
13189    shlibpath_overrides_runpath=yes
13190    hardcode_into_libs=yes
13191    ;;
13192  esac
13193  ;;
13194
13195gnu*)
13196  version_type=linux
13197  need_lib_prefix=no
13198  need_version=no
13199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13200  soname_spec='${libname}${release}${shared_ext}$major'
13201  shlibpath_var=LD_LIBRARY_PATH
13202  hardcode_into_libs=yes
13203  ;;
13204
13205hpux9* | hpux10* | hpux11*)
13206  # Give a soname corresponding to the major version so that dld.sl refuses to
13207  # link against other versions.
13208  version_type=sunos
13209  need_lib_prefix=no
13210  need_version=no
13211  case $host_cpu in
13212  ia64*)
13213    shrext_cmds='.so'
13214    hardcode_into_libs=yes
13215    dynamic_linker="$host_os dld.so"
13216    shlibpath_var=LD_LIBRARY_PATH
13217    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13218    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13219    soname_spec='${libname}${release}${shared_ext}$major'
13220    if test "X$HPUX_IA64_MODE" = X32; then
13221      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13222    else
13223      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13224    fi
13225    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13226    ;;
13227   hppa*64*)
13228     shrext_cmds='.sl'
13229     hardcode_into_libs=yes
13230     dynamic_linker="$host_os dld.sl"
13231     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13232     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13234     soname_spec='${libname}${release}${shared_ext}$major'
13235     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13236     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13237     ;;
13238   *)
13239    shrext_cmds='.sl'
13240    dynamic_linker="$host_os dld.sl"
13241    shlibpath_var=SHLIB_PATH
13242    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13243    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13244    soname_spec='${libname}${release}${shared_ext}$major'
13245    ;;
13246  esac
13247  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13248  postinstall_cmds='chmod 555 $lib'
13249  ;;
13250
13251interix[3-9]*)
13252  version_type=linux
13253  need_lib_prefix=no
13254  need_version=no
13255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13256  soname_spec='${libname}${release}${shared_ext}$major'
13257  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13258  shlibpath_var=LD_LIBRARY_PATH
13259  shlibpath_overrides_runpath=no
13260  hardcode_into_libs=yes
13261  ;;
13262
13263irix5* | irix6* | nonstopux*)
13264  case $host_os in
13265    nonstopux*) version_type=nonstopux ;;
13266    *)
13267	if test "$lt_cv_prog_gnu_ld" = yes; then
13268		version_type=linux
13269	else
13270		version_type=irix
13271	fi ;;
13272  esac
13273  need_lib_prefix=no
13274  need_version=no
13275  soname_spec='${libname}${release}${shared_ext}$major'
13276  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13277  case $host_os in
13278  irix5* | nonstopux*)
13279    libsuff= shlibsuff=
13280    ;;
13281  *)
13282    case $LD in # libtool.m4 will add one of these switches to LD
13283    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13284      libsuff= shlibsuff= libmagic=32-bit;;
13285    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13286      libsuff=32 shlibsuff=N32 libmagic=N32;;
13287    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13288      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13289    *) libsuff= shlibsuff= libmagic=never-match;;
13290    esac
13291    ;;
13292  esac
13293  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13294  shlibpath_overrides_runpath=no
13295  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13296  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13297  hardcode_into_libs=yes
13298  ;;
13299
13300# No shared lib support for Linux oldld, aout, or coff.
13301linux*oldld* | linux*aout* | linux*coff*)
13302  dynamic_linker=no
13303  ;;
13304
13305# This must be Linux ELF.
13306linux* | k*bsd*-gnu)
13307  version_type=linux
13308  need_lib_prefix=no
13309  need_version=no
13310  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13311  soname_spec='${libname}${release}${shared_ext}$major'
13312  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13313  shlibpath_var=LD_LIBRARY_PATH
13314  shlibpath_overrides_runpath=no
13315  # This implies no fast_install, which is unacceptable.
13316  # Some rework will be needed to allow for fast_install
13317  # before this can be enabled.
13318  hardcode_into_libs=yes
13319
13320  # Append ld.so.conf contents to the search path
13321  if test -f /etc/ld.so.conf; then
13322    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13323    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13324  fi
13325
13326  # We used to test for /lib/ld.so.1 and disable shared libraries on
13327  # powerpc, because MkLinux only supported shared libraries with the
13328  # GNU dynamic linker.  Since this was broken with cross compilers,
13329  # most powerpc-linux boxes support dynamic linking these days and
13330  # people can always --disable-shared, the test was removed, and we
13331  # assume the GNU/Linux dynamic linker is in use.
13332  dynamic_linker='GNU/Linux ld.so'
13333  ;;
13334
13335netbsdelf*-gnu)
13336  version_type=linux
13337  need_lib_prefix=no
13338  need_version=no
13339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13340  soname_spec='${libname}${release}${shared_ext}$major'
13341  shlibpath_var=LD_LIBRARY_PATH
13342  shlibpath_overrides_runpath=no
13343  hardcode_into_libs=yes
13344  dynamic_linker='NetBSD ld.elf_so'
13345  ;;
13346
13347netbsd*)
13348  version_type=sunos
13349  need_lib_prefix=no
13350  need_version=no
13351  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13352    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13353    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13354    dynamic_linker='NetBSD (a.out) ld.so'
13355  else
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    dynamic_linker='NetBSD ld.elf_so'
13359  fi
13360  shlibpath_var=LD_LIBRARY_PATH
13361  shlibpath_overrides_runpath=yes
13362  hardcode_into_libs=yes
13363  ;;
13364
13365newsos6)
13366  version_type=linux
13367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13368  shlibpath_var=LD_LIBRARY_PATH
13369  shlibpath_overrides_runpath=yes
13370  ;;
13371
13372nto-qnx*)
13373  version_type=linux
13374  need_lib_prefix=no
13375  need_version=no
13376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13377  soname_spec='${libname}${release}${shared_ext}$major'
13378  shlibpath_var=LD_LIBRARY_PATH
13379  shlibpath_overrides_runpath=yes
13380  ;;
13381
13382openbsd*)
13383  version_type=sunos
13384  sys_lib_dlsearch_path_spec="/usr/lib"
13385  need_lib_prefix=no
13386  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13387  case $host_os in
13388    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13389    *)                         need_version=no  ;;
13390  esac
13391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13392  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13393  shlibpath_var=LD_LIBRARY_PATH
13394  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13395    case $host_os in
13396      openbsd2.[89] | openbsd2.[89].*)
13397	shlibpath_overrides_runpath=no
13398	;;
13399      *)
13400	shlibpath_overrides_runpath=yes
13401	;;
13402      esac
13403  else
13404    shlibpath_overrides_runpath=yes
13405  fi
13406  ;;
13407
13408os2*)
13409  libname_spec='$name'
13410  shrext_cmds=".dll"
13411  need_lib_prefix=no
13412  library_names_spec='$libname${shared_ext} $libname.a'
13413  dynamic_linker='OS/2 ld.exe'
13414  shlibpath_var=LIBPATH
13415  ;;
13416
13417osf3* | osf4* | osf5*)
13418  version_type=osf
13419  need_lib_prefix=no
13420  need_version=no
13421  soname_spec='${libname}${release}${shared_ext}$major'
13422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13423  shlibpath_var=LD_LIBRARY_PATH
13424  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13425  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13426  ;;
13427
13428rdos*)
13429  dynamic_linker=no
13430  ;;
13431
13432solaris*)
13433  version_type=linux
13434  need_lib_prefix=no
13435  need_version=no
13436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13437  soname_spec='${libname}${release}${shared_ext}$major'
13438  shlibpath_var=LD_LIBRARY_PATH
13439  shlibpath_overrides_runpath=yes
13440  hardcode_into_libs=yes
13441  # ldd complains unless libraries are executable
13442  postinstall_cmds='chmod +x $lib'
13443  ;;
13444
13445sunos4*)
13446  version_type=sunos
13447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13448  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13449  shlibpath_var=LD_LIBRARY_PATH
13450  shlibpath_overrides_runpath=yes
13451  if test "$with_gnu_ld" = yes; then
13452    need_lib_prefix=no
13453  fi
13454  need_version=yes
13455  ;;
13456
13457sysv4 | sysv4.3*)
13458  version_type=linux
13459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13460  soname_spec='${libname}${release}${shared_ext}$major'
13461  shlibpath_var=LD_LIBRARY_PATH
13462  case $host_vendor in
13463    sni)
13464      shlibpath_overrides_runpath=no
13465      need_lib_prefix=no
13466      export_dynamic_flag_spec='${wl}-Blargedynsym'
13467      runpath_var=LD_RUN_PATH
13468      ;;
13469    siemens)
13470      need_lib_prefix=no
13471      ;;
13472    motorola)
13473      need_lib_prefix=no
13474      need_version=no
13475      shlibpath_overrides_runpath=no
13476      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13477      ;;
13478  esac
13479  ;;
13480
13481sysv4*MP*)
13482  if test -d /usr/nec ;then
13483    version_type=linux
13484    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13485    soname_spec='$libname${shared_ext}.$major'
13486    shlibpath_var=LD_LIBRARY_PATH
13487  fi
13488  ;;
13489
13490sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13491  version_type=freebsd-elf
13492  need_lib_prefix=no
13493  need_version=no
13494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13495  soname_spec='${libname}${release}${shared_ext}$major'
13496  shlibpath_var=LD_LIBRARY_PATH
13497  hardcode_into_libs=yes
13498  if test "$with_gnu_ld" = yes; then
13499    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13500    shlibpath_overrides_runpath=no
13501  else
13502    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13503    shlibpath_overrides_runpath=yes
13504    case $host_os in
13505      sco3.2v5*)
13506        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13507	;;
13508    esac
13509  fi
13510  sys_lib_dlsearch_path_spec='/usr/lib'
13511  ;;
13512
13513uts4*)
13514  version_type=linux
13515  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13516  soname_spec='${libname}${release}${shared_ext}$major'
13517  shlibpath_var=LD_LIBRARY_PATH
13518  ;;
13519
13520*)
13521  dynamic_linker=no
13522  ;;
13523esac
13524{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13525echo "${ECHO_T}$dynamic_linker" >&6; }
13526test "$dynamic_linker" = no && can_build_shared=no
13527
13528if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13529  echo $ECHO_N "(cached) $ECHO_C" >&6
13530else
13531  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13532fi
13533
13534sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13535if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13536  echo $ECHO_N "(cached) $ECHO_C" >&6
13537else
13538  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13539fi
13540
13541sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13542
13543variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13544if test "$GCC" = yes; then
13545  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13546fi
13547
13548{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13549echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13550hardcode_action_CXX=
13551if test -n "$hardcode_libdir_flag_spec_CXX" || \
13552   test -n "$runpath_var_CXX" || \
13553   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13554
13555  # We can hardcode non-existant directories.
13556  if test "$hardcode_direct_CXX" != no &&
13557     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13558     # have to relink, otherwise we might link with an installed library
13559     # when we should be linking with a yet-to-be-installed one
13560     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13561     test "$hardcode_minus_L_CXX" != no; then
13562    # Linking always hardcodes the temporary library directory.
13563    hardcode_action_CXX=relink
13564  else
13565    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13566    hardcode_action_CXX=immediate
13567  fi
13568else
13569  # We cannot hardcode anything, or else we can only hardcode existing
13570  # directories.
13571  hardcode_action_CXX=unsupported
13572fi
13573{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13574echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13575
13576if test "$hardcode_action_CXX" = relink; then
13577  # Fast installation is not supported
13578  enable_fast_install=no
13579elif test "$shlibpath_overrides_runpath" = yes ||
13580     test "$enable_shared" = no; then
13581  # Fast installation is not necessary
13582  enable_fast_install=needless
13583fi
13584
13585
13586# The else clause should only fire when bootstrapping the
13587# libtool distribution, otherwise you forgot to ship ltmain.sh
13588# with your package, and you will get complaints that there are
13589# no rules to generate ltmain.sh.
13590if test -f "$ltmain"; then
13591  # See if we are running on zsh, and set the options which allow our commands through
13592  # without removal of \ escapes.
13593  if test -n "${ZSH_VERSION+set}" ; then
13594    setopt NO_GLOB_SUBST
13595  fi
13596  # Now quote all the things that may contain metacharacters while being
13597  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13598  # variables and quote the copies for generation of the libtool script.
13599  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13600    SED SHELL STRIP \
13601    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13602    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13603    deplibs_check_method reload_flag reload_cmds need_locks \
13604    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13605    lt_cv_sys_global_symbol_to_c_name_address \
13606    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13607    old_postinstall_cmds old_postuninstall_cmds \
13608    compiler_CXX \
13609    CC_CXX \
13610    LD_CXX \
13611    lt_prog_compiler_wl_CXX \
13612    lt_prog_compiler_pic_CXX \
13613    lt_prog_compiler_static_CXX \
13614    lt_prog_compiler_no_builtin_flag_CXX \
13615    export_dynamic_flag_spec_CXX \
13616    thread_safe_flag_spec_CXX \
13617    whole_archive_flag_spec_CXX \
13618    enable_shared_with_static_runtimes_CXX \
13619    old_archive_cmds_CXX \
13620    old_archive_from_new_cmds_CXX \
13621    predep_objects_CXX \
13622    postdep_objects_CXX \
13623    predeps_CXX \
13624    postdeps_CXX \
13625    compiler_lib_search_path_CXX \
13626    compiler_lib_search_dirs_CXX \
13627    archive_cmds_CXX \
13628    archive_expsym_cmds_CXX \
13629    postinstall_cmds_CXX \
13630    postuninstall_cmds_CXX \
13631    old_archive_from_expsyms_cmds_CXX \
13632    allow_undefined_flag_CXX \
13633    no_undefined_flag_CXX \
13634    export_symbols_cmds_CXX \
13635    hardcode_libdir_flag_spec_CXX \
13636    hardcode_libdir_flag_spec_ld_CXX \
13637    hardcode_libdir_separator_CXX \
13638    hardcode_automatic_CXX \
13639    module_cmds_CXX \
13640    module_expsym_cmds_CXX \
13641    lt_cv_prog_compiler_c_o_CXX \
13642    fix_srcfile_path_CXX \
13643    exclude_expsyms_CXX \
13644    include_expsyms_CXX; do
13645
13646    case $var in
13647    old_archive_cmds_CXX | \
13648    old_archive_from_new_cmds_CXX | \
13649    archive_cmds_CXX | \
13650    archive_expsym_cmds_CXX | \
13651    module_cmds_CXX | \
13652    module_expsym_cmds_CXX | \
13653    old_archive_from_expsyms_cmds_CXX | \
13654    export_symbols_cmds_CXX | \
13655    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13656    postinstall_cmds | postuninstall_cmds | \
13657    old_postinstall_cmds | old_postuninstall_cmds | \
13658    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13659      # Double-quote double-evaled strings.
13660      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13661      ;;
13662    *)
13663      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13664      ;;
13665    esac
13666  done
13667
13668  case $lt_echo in
13669  *'\$0 --fallback-echo"')
13670    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13671    ;;
13672  esac
13673
13674cfgfile="$ofile"
13675
13676  cat <<__EOF__ >> "$cfgfile"
13677# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13678
13679# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13680
13681# Shell to use when invoking shell scripts.
13682SHELL=$lt_SHELL
13683
13684# Whether or not to build shared libraries.
13685build_libtool_libs=$enable_shared
13686
13687# Whether or not to build static libraries.
13688build_old_libs=$enable_static
13689
13690# Whether or not to add -lc for building shared libraries.
13691build_libtool_need_lc=$archive_cmds_need_lc_CXX
13692
13693# Whether or not to disallow shared libs when runtime libs are static
13694allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13695
13696# Whether or not to optimize for fast installation.
13697fast_install=$enable_fast_install
13698
13699# The host system.
13700host_alias=$host_alias
13701host=$host
13702host_os=$host_os
13703
13704# The build system.
13705build_alias=$build_alias
13706build=$build
13707build_os=$build_os
13708
13709# An echo program that does not interpret backslashes.
13710echo=$lt_echo
13711
13712# The archiver.
13713AR=$lt_AR
13714AR_FLAGS=$lt_AR_FLAGS
13715
13716# A C compiler.
13717LTCC=$lt_LTCC
13718
13719# LTCC compiler flags.
13720LTCFLAGS=$lt_LTCFLAGS
13721
13722# A language-specific compiler.
13723CC=$lt_compiler_CXX
13724
13725# Is the compiler the GNU C compiler?
13726with_gcc=$GCC_CXX
13727
13728# An ERE matcher.
13729EGREP=$lt_EGREP
13730
13731# The linker used to build libraries.
13732LD=$lt_LD_CXX
13733
13734# Whether we need hard or soft links.
13735LN_S=$lt_LN_S
13736
13737# A BSD-compatible nm program.
13738NM=$lt_NM
13739
13740# A symbol stripping program
13741STRIP=$lt_STRIP
13742
13743# Used to examine libraries when file_magic_cmd begins "file"
13744MAGIC_CMD=$MAGIC_CMD
13745
13746# Used on cygwin: DLL creation program.
13747DLLTOOL="$DLLTOOL"
13748
13749# Used on cygwin: object dumper.
13750OBJDUMP="$OBJDUMP"
13751
13752# Used on cygwin: assembler.
13753AS="$AS"
13754
13755# The name of the directory that contains temporary libtool files.
13756objdir=$objdir
13757
13758# How to create reloadable object files.
13759reload_flag=$lt_reload_flag
13760reload_cmds=$lt_reload_cmds
13761
13762# How to pass a linker flag through the compiler.
13763wl=$lt_lt_prog_compiler_wl_CXX
13764
13765# Object file suffix (normally "o").
13766objext="$ac_objext"
13767
13768# Old archive suffix (normally "a").
13769libext="$libext"
13770
13771# Shared library suffix (normally ".so").
13772shrext_cmds='$shrext_cmds'
13773
13774# Executable file suffix (normally "").
13775exeext="$exeext"
13776
13777# Additional compiler flags for building library objects.
13778pic_flag=$lt_lt_prog_compiler_pic_CXX
13779pic_mode=$pic_mode
13780
13781# What is the maximum length of a command?
13782max_cmd_len=$lt_cv_sys_max_cmd_len
13783
13784# Does compiler simultaneously support -c and -o options?
13785compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13786
13787# Must we lock files when doing compilation?
13788need_locks=$lt_need_locks
13789
13790# Do we need the lib prefix for modules?
13791need_lib_prefix=$need_lib_prefix
13792
13793# Do we need a version for libraries?
13794need_version=$need_version
13795
13796# Whether dlopen is supported.
13797dlopen_support=$enable_dlopen
13798
13799# Whether dlopen of programs is supported.
13800dlopen_self=$enable_dlopen_self
13801
13802# Whether dlopen of statically linked programs is supported.
13803dlopen_self_static=$enable_dlopen_self_static
13804
13805# Compiler flag to prevent dynamic linking.
13806link_static_flag=$lt_lt_prog_compiler_static_CXX
13807
13808# Compiler flag to turn off builtin functions.
13809no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13810
13811# Compiler flag to allow reflexive dlopens.
13812export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13813
13814# Compiler flag to generate shared objects directly from archives.
13815whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13816
13817# Compiler flag to generate thread-safe objects.
13818thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13819
13820# Library versioning type.
13821version_type=$version_type
13822
13823# Format of library name prefix.
13824libname_spec=$lt_libname_spec
13825
13826# List of archive names.  First name is the real one, the rest are links.
13827# The last name is the one that the linker finds with -lNAME.
13828library_names_spec=$lt_library_names_spec
13829
13830# The coded name of the library, if different from the real name.
13831soname_spec=$lt_soname_spec
13832
13833# Commands used to build and install an old-style archive.
13834RANLIB=$lt_RANLIB
13835old_archive_cmds=$lt_old_archive_cmds_CXX
13836old_postinstall_cmds=$lt_old_postinstall_cmds
13837old_postuninstall_cmds=$lt_old_postuninstall_cmds
13838
13839# Create an old-style archive from a shared archive.
13840old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13841
13842# Create a temporary old-style archive to link instead of a shared archive.
13843old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13844
13845# Commands used to build and install a shared archive.
13846archive_cmds=$lt_archive_cmds_CXX
13847archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13848postinstall_cmds=$lt_postinstall_cmds
13849postuninstall_cmds=$lt_postuninstall_cmds
13850
13851# Commands used to build a loadable module (assumed same as above if empty)
13852module_cmds=$lt_module_cmds_CXX
13853module_expsym_cmds=$lt_module_expsym_cmds_CXX
13854
13855# Commands to strip libraries.
13856old_striplib=$lt_old_striplib
13857striplib=$lt_striplib
13858
13859# Dependencies to place before the objects being linked to create a
13860# shared library.
13861predep_objects=$lt_predep_objects_CXX
13862
13863# Dependencies to place after the objects being linked to create a
13864# shared library.
13865postdep_objects=$lt_postdep_objects_CXX
13866
13867# Dependencies to place before the objects being linked to create a
13868# shared library.
13869predeps=$lt_predeps_CXX
13870
13871# Dependencies to place after the objects being linked to create a
13872# shared library.
13873postdeps=$lt_postdeps_CXX
13874
13875# The directories searched by this compiler when creating a shared
13876# library
13877compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13878
13879# The library search path used internally by the compiler when linking
13880# a shared library.
13881compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13882
13883# Method to check whether dependent libraries are shared objects.
13884deplibs_check_method=$lt_deplibs_check_method
13885
13886# Command to use when deplibs_check_method == file_magic.
13887file_magic_cmd=$lt_file_magic_cmd
13888
13889# Flag that allows shared libraries with undefined symbols to be built.
13890allow_undefined_flag=$lt_allow_undefined_flag_CXX
13891
13892# Flag that forces no undefined symbols.
13893no_undefined_flag=$lt_no_undefined_flag_CXX
13894
13895# Commands used to finish a libtool library installation in a directory.
13896finish_cmds=$lt_finish_cmds
13897
13898# Same as above, but a single script fragment to be evaled but not shown.
13899finish_eval=$lt_finish_eval
13900
13901# Take the output of nm and produce a listing of raw symbols and C names.
13902global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13903
13904# Transform the output of nm in a proper C declaration
13905global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13906
13907# Transform the output of nm in a C name address pair
13908global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13909
13910# This is the shared library runtime path variable.
13911runpath_var=$runpath_var
13912
13913# This is the shared library path variable.
13914shlibpath_var=$shlibpath_var
13915
13916# Is shlibpath searched before the hard-coded library search path?
13917shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13918
13919# How to hardcode a shared library path into an executable.
13920hardcode_action=$hardcode_action_CXX
13921
13922# Whether we should hardcode library paths into libraries.
13923hardcode_into_libs=$hardcode_into_libs
13924
13925# Flag to hardcode \$libdir into a binary during linking.
13926# This must work even if \$libdir does not exist.
13927hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13928
13929# If ld is used when linking, flag to hardcode \$libdir into
13930# a binary during linking. This must work even if \$libdir does
13931# not exist.
13932hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13933
13934# Whether we need a single -rpath flag with a separated argument.
13935hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13936
13937# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13938# resulting binary.
13939hardcode_direct=$hardcode_direct_CXX
13940
13941# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13942# resulting binary.
13943hardcode_minus_L=$hardcode_minus_L_CXX
13944
13945# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13946# the resulting binary.
13947hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13948
13949# Set to yes if building a shared library automatically hardcodes DIR into the library
13950# and all subsequent libraries and executables linked against it.
13951hardcode_automatic=$hardcode_automatic_CXX
13952
13953# Variables whose values should be saved in libtool wrapper scripts and
13954# restored at relink time.
13955variables_saved_for_relink="$variables_saved_for_relink"
13956
13957# Whether libtool must link a program against all its dependency libraries.
13958link_all_deplibs=$link_all_deplibs_CXX
13959
13960# Compile-time system search path for libraries
13961sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13962
13963# Run-time system search path for libraries
13964sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13965
13966# Fix the shell variable \$srcfile for the compiler.
13967fix_srcfile_path=$lt_fix_srcfile_path
13968
13969# Set to yes if exported symbols are required.
13970always_export_symbols=$always_export_symbols_CXX
13971
13972# The commands to list exported symbols.
13973export_symbols_cmds=$lt_export_symbols_cmds_CXX
13974
13975# The commands to extract the exported symbol list from a shared archive.
13976extract_expsyms_cmds=$lt_extract_expsyms_cmds
13977
13978# Symbols that should not be listed in the preloaded symbols.
13979exclude_expsyms=$lt_exclude_expsyms_CXX
13980
13981# Symbols that must always be exported.
13982include_expsyms=$lt_include_expsyms_CXX
13983
13984# ### END LIBTOOL TAG CONFIG: $tagname
13985
13986__EOF__
13987
13988
13989else
13990  # If there is no Makefile yet, we rely on a make rule to execute
13991  # `config.status --recheck' to rerun these tests and create the
13992  # libtool script then.
13993  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13994  if test -f "$ltmain_in"; then
13995    test -f Makefile && make "$ltmain"
13996  fi
13997fi
13998
13999
14000ac_ext=c
14001ac_cpp='$CPP $CPPFLAGS'
14002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14004ac_compiler_gnu=$ac_cv_c_compiler_gnu
14005
14006CC=$lt_save_CC
14007LDCXX=$LD
14008LD=$lt_save_LD
14009GCC=$lt_save_GCC
14010with_gnu_ldcxx=$with_gnu_ld
14011with_gnu_ld=$lt_save_with_gnu_ld
14012lt_cv_path_LDCXX=$lt_cv_path_LD
14013lt_cv_path_LD=$lt_save_path_LD
14014lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14015lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14016
14017	else
14018	  tagname=""
14019	fi
14020	;;
14021
14022      F77)
14023	if test -n "$F77" && test "X$F77" != "Xno"; then
14024
14025ac_ext=f
14026ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14027ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14028ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14029
14030
14031archive_cmds_need_lc_F77=no
14032allow_undefined_flag_F77=
14033always_export_symbols_F77=no
14034archive_expsym_cmds_F77=
14035export_dynamic_flag_spec_F77=
14036hardcode_direct_F77=no
14037hardcode_libdir_flag_spec_F77=
14038hardcode_libdir_flag_spec_ld_F77=
14039hardcode_libdir_separator_F77=
14040hardcode_minus_L_F77=no
14041hardcode_automatic_F77=no
14042module_cmds_F77=
14043module_expsym_cmds_F77=
14044link_all_deplibs_F77=unknown
14045old_archive_cmds_F77=$old_archive_cmds
14046no_undefined_flag_F77=
14047whole_archive_flag_spec_F77=
14048enable_shared_with_static_runtimes_F77=no
14049
14050# Source file extension for f77 test sources.
14051ac_ext=f
14052
14053# Object file extension for compiled f77 test sources.
14054objext=o
14055objext_F77=$objext
14056
14057# Code to be used in simple compile tests
14058lt_simple_compile_test_code="\
14059      subroutine t
14060      return
14061      end
14062"
14063
14064# Code to be used in simple link tests
14065lt_simple_link_test_code="\
14066      program t
14067      end
14068"
14069
14070# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14071
14072# If no C compiler was specified, use CC.
14073LTCC=${LTCC-"$CC"}
14074
14075# If no C compiler flags were specified, use CFLAGS.
14076LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14077
14078# Allow CC to be a program name with arguments.
14079compiler=$CC
14080
14081
14082# save warnings/boilerplate of simple test code
14083ac_outfile=conftest.$ac_objext
14084echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14085eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14086_lt_compiler_boilerplate=`cat conftest.err`
14087$rm conftest*
14088
14089ac_outfile=conftest.$ac_objext
14090echo "$lt_simple_link_test_code" >conftest.$ac_ext
14091eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14092_lt_linker_boilerplate=`cat conftest.err`
14093$rm -r conftest*
14094
14095
14096# Allow CC to be a program name with arguments.
14097lt_save_CC="$CC"
14098CC=${F77-"f77"}
14099compiler=$CC
14100compiler_F77=$CC
14101for cc_temp in $compiler""; do
14102  case $cc_temp in
14103    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14104    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14105    \-*) ;;
14106    *) break;;
14107  esac
14108done
14109cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14110
14111
14112{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14113echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14114{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14115echo "${ECHO_T}$can_build_shared" >&6; }
14116
14117{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14118echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14119test "$can_build_shared" = "no" && enable_shared=no
14120
14121# On AIX, shared libraries and static libraries use the same namespace, and
14122# are all built from PIC.
14123case $host_os in
14124aix3*)
14125  test "$enable_shared" = yes && enable_static=no
14126  if test -n "$RANLIB"; then
14127    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14128    postinstall_cmds='$RANLIB $lib'
14129  fi
14130  ;;
14131aix[4-9]*)
14132  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14133    test "$enable_shared" = yes && enable_static=no
14134  fi
14135  ;;
14136esac
14137{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14138echo "${ECHO_T}$enable_shared" >&6; }
14139
14140{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14141echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14142# Make sure either enable_shared or enable_static is yes.
14143test "$enable_shared" = yes || enable_static=yes
14144{ echo "$as_me:$LINENO: result: $enable_static" >&5
14145echo "${ECHO_T}$enable_static" >&6; }
14146
14147GCC_F77="$G77"
14148LD_F77="$LD"
14149
14150lt_prog_compiler_wl_F77=
14151lt_prog_compiler_pic_F77=
14152lt_prog_compiler_static_F77=
14153
14154{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14155echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14156
14157  if test "$GCC" = yes; then
14158    lt_prog_compiler_wl_F77='-Wl,'
14159    lt_prog_compiler_static_F77='-static'
14160
14161    case $host_os in
14162      aix*)
14163      # All AIX code is PIC.
14164      if test "$host_cpu" = ia64; then
14165	# AIX 5 now supports IA64 processor
14166	lt_prog_compiler_static_F77='-Bstatic'
14167      fi
14168      ;;
14169
14170    amigaos*)
14171      # FIXME: we need at least 68020 code to build shared libraries, but
14172      # adding the `-m68020' flag to GCC prevents building anything better,
14173      # like `-m68040'.
14174      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14175      ;;
14176
14177    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14178      # PIC is the default for these OSes.
14179      ;;
14180
14181    mingw* | cygwin* | pw32* | os2*)
14182      # This hack is so that the source file can tell whether it is being
14183      # built for inclusion in a dll (and should export symbols for example).
14184      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14185      # (--disable-auto-import) libraries
14186      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14187      ;;
14188
14189    darwin* | rhapsody*)
14190      # PIC is the default on this platform
14191      # Common symbols not allowed in MH_DYLIB files
14192      lt_prog_compiler_pic_F77='-fno-common'
14193      ;;
14194
14195    interix[3-9]*)
14196      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14197      # Instead, we relocate shared libraries at runtime.
14198      ;;
14199
14200    msdosdjgpp*)
14201      # Just because we use GCC doesn't mean we suddenly get shared libraries
14202      # on systems that don't support them.
14203      lt_prog_compiler_can_build_shared_F77=no
14204      enable_shared=no
14205      ;;
14206
14207    sysv4*MP*)
14208      if test -d /usr/nec; then
14209	lt_prog_compiler_pic_F77=-Kconform_pic
14210      fi
14211      ;;
14212
14213    hpux*)
14214      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14215      # not for PA HP-UX.
14216      case $host_cpu in
14217      hppa*64*|ia64*)
14218	# +Z the default
14219	;;
14220      *)
14221	lt_prog_compiler_pic_F77='-fPIC'
14222	;;
14223      esac
14224      ;;
14225
14226    *)
14227      lt_prog_compiler_pic_F77='-fPIC'
14228      ;;
14229    esac
14230  else
14231    # PORTME Check for flag to pass linker flags through the system compiler.
14232    case $host_os in
14233    aix*)
14234      lt_prog_compiler_wl_F77='-Wl,'
14235      if test "$host_cpu" = ia64; then
14236	# AIX 5 now supports IA64 processor
14237	lt_prog_compiler_static_F77='-Bstatic'
14238      else
14239	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14240      fi
14241      ;;
14242      darwin*)
14243        # PIC is the default on this platform
14244        # Common symbols not allowed in MH_DYLIB files
14245       case $cc_basename in
14246         xlc*)
14247         lt_prog_compiler_pic_F77='-qnocommon'
14248         lt_prog_compiler_wl_F77='-Wl,'
14249         ;;
14250       esac
14251       ;;
14252
14253    mingw* | cygwin* | pw32* | os2*)
14254      # This hack is so that the source file can tell whether it is being
14255      # built for inclusion in a dll (and should export symbols for example).
14256      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14257      ;;
14258
14259    hpux9* | hpux10* | hpux11*)
14260      lt_prog_compiler_wl_F77='-Wl,'
14261      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14262      # not for PA HP-UX.
14263      case $host_cpu in
14264      hppa*64*|ia64*)
14265	# +Z the default
14266	;;
14267      *)
14268	lt_prog_compiler_pic_F77='+Z'
14269	;;
14270      esac
14271      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14272      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14273      ;;
14274
14275    irix5* | irix6* | nonstopux*)
14276      lt_prog_compiler_wl_F77='-Wl,'
14277      # PIC (with -KPIC) is the default.
14278      lt_prog_compiler_static_F77='-non_shared'
14279      ;;
14280
14281    newsos6)
14282      lt_prog_compiler_pic_F77='-KPIC'
14283      lt_prog_compiler_static_F77='-Bstatic'
14284      ;;
14285
14286    linux* | k*bsd*-gnu)
14287      case $cc_basename in
14288      icc* | ecc*)
14289	lt_prog_compiler_wl_F77='-Wl,'
14290	lt_prog_compiler_pic_F77='-KPIC'
14291	lt_prog_compiler_static_F77='-static'
14292        ;;
14293      pgcc* | pgf77* | pgf90* | pgf95*)
14294        # Portland Group compilers (*not* the Pentium gcc compiler,
14295	# which looks to be a dead project)
14296	lt_prog_compiler_wl_F77='-Wl,'
14297	lt_prog_compiler_pic_F77='-fpic'
14298	lt_prog_compiler_static_F77='-Bstatic'
14299        ;;
14300      ccc*)
14301        lt_prog_compiler_wl_F77='-Wl,'
14302        # All Alpha code is PIC.
14303        lt_prog_compiler_static_F77='-non_shared'
14304        ;;
14305      *)
14306        case `$CC -V 2>&1 | sed 5q` in
14307	*Sun\ C*)
14308	  # Sun C 5.9
14309	  lt_prog_compiler_pic_F77='-KPIC'
14310	  lt_prog_compiler_static_F77='-Bstatic'
14311	  lt_prog_compiler_wl_F77='-Wl,'
14312	  ;;
14313	*Sun\ F*)
14314	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14315	  lt_prog_compiler_pic_F77='-KPIC'
14316	  lt_prog_compiler_static_F77='-Bstatic'
14317	  lt_prog_compiler_wl_F77=''
14318	  ;;
14319	esac
14320	;;
14321      esac
14322      ;;
14323
14324    osf3* | osf4* | osf5*)
14325      lt_prog_compiler_wl_F77='-Wl,'
14326      # All OSF/1 code is PIC.
14327      lt_prog_compiler_static_F77='-non_shared'
14328      ;;
14329
14330    rdos*)
14331      lt_prog_compiler_static_F77='-non_shared'
14332      ;;
14333
14334    solaris*)
14335      lt_prog_compiler_pic_F77='-KPIC'
14336      lt_prog_compiler_static_F77='-Bstatic'
14337      case $cc_basename in
14338      f77* | f90* | f95*)
14339	lt_prog_compiler_wl_F77='-Qoption ld ';;
14340      *)
14341	lt_prog_compiler_wl_F77='-Wl,';;
14342      esac
14343      ;;
14344
14345    sunos4*)
14346      lt_prog_compiler_wl_F77='-Qoption ld '
14347      lt_prog_compiler_pic_F77='-PIC'
14348      lt_prog_compiler_static_F77='-Bstatic'
14349      ;;
14350
14351    sysv4 | sysv4.2uw2* | sysv4.3*)
14352      lt_prog_compiler_wl_F77='-Wl,'
14353      lt_prog_compiler_pic_F77='-KPIC'
14354      lt_prog_compiler_static_F77='-Bstatic'
14355      ;;
14356
14357    sysv4*MP*)
14358      if test -d /usr/nec ;then
14359	lt_prog_compiler_pic_F77='-Kconform_pic'
14360	lt_prog_compiler_static_F77='-Bstatic'
14361      fi
14362      ;;
14363
14364    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14365      lt_prog_compiler_wl_F77='-Wl,'
14366      lt_prog_compiler_pic_F77='-KPIC'
14367      lt_prog_compiler_static_F77='-Bstatic'
14368      ;;
14369
14370    unicos*)
14371      lt_prog_compiler_wl_F77='-Wl,'
14372      lt_prog_compiler_can_build_shared_F77=no
14373      ;;
14374
14375    uts4*)
14376      lt_prog_compiler_pic_F77='-pic'
14377      lt_prog_compiler_static_F77='-Bstatic'
14378      ;;
14379
14380    *)
14381      lt_prog_compiler_can_build_shared_F77=no
14382      ;;
14383    esac
14384  fi
14385
14386{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14387echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14388
14389#
14390# Check to make sure the PIC flag actually works.
14391#
14392if test -n "$lt_prog_compiler_pic_F77"; then
14393
14394{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14395echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14396if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14397  echo $ECHO_N "(cached) $ECHO_C" >&6
14398else
14399  lt_cv_prog_compiler_pic_works_F77=no
14400  ac_outfile=conftest.$ac_objext
14401   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14402   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14403   # Insert the option either (1) after the last *FLAGS variable, or
14404   # (2) before a word containing "conftest.", or (3) at the end.
14405   # Note that $ac_compile itself does not contain backslashes and begins
14406   # with a dollar sign (not a hyphen), so the echo should work correctly.
14407   # The option is referenced via a variable to avoid confusing sed.
14408   lt_compile=`echo "$ac_compile" | $SED \
14409   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14410   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14411   -e 's:$: $lt_compiler_flag:'`
14412   (eval echo "\"\$as_me:14412: $lt_compile\"" >&5)
14413   (eval "$lt_compile" 2>conftest.err)
14414   ac_status=$?
14415   cat conftest.err >&5
14416   echo "$as_me:14416: \$? = $ac_status" >&5
14417   if (exit $ac_status) && test -s "$ac_outfile"; then
14418     # The compiler can only warn and ignore the option if not recognized
14419     # So say no if there are warnings other than the usual output.
14420     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14421     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14422     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14423       lt_cv_prog_compiler_pic_works_F77=yes
14424     fi
14425   fi
14426   $rm conftest*
14427
14428fi
14429{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14430echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14431
14432if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14433    case $lt_prog_compiler_pic_F77 in
14434     "" | " "*) ;;
14435     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14436     esac
14437else
14438    lt_prog_compiler_pic_F77=
14439     lt_prog_compiler_can_build_shared_F77=no
14440fi
14441
14442fi
14443case $host_os in
14444  # For platforms which do not support PIC, -DPIC is meaningless:
14445  *djgpp*)
14446    lt_prog_compiler_pic_F77=
14447    ;;
14448  *)
14449    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14450    ;;
14451esac
14452
14453#
14454# Check to make sure the static flag actually works.
14455#
14456wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14457{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14458echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14459if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14460  echo $ECHO_N "(cached) $ECHO_C" >&6
14461else
14462  lt_cv_prog_compiler_static_works_F77=no
14463   save_LDFLAGS="$LDFLAGS"
14464   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14465   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14466   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14467     # The linker can only warn and ignore the option if not recognized
14468     # So say no if there are warnings
14469     if test -s conftest.err; then
14470       # Append any errors to the config.log.
14471       cat conftest.err 1>&5
14472       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14473       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14474       if diff conftest.exp conftest.er2 >/dev/null; then
14475         lt_cv_prog_compiler_static_works_F77=yes
14476       fi
14477     else
14478       lt_cv_prog_compiler_static_works_F77=yes
14479     fi
14480   fi
14481   $rm -r conftest*
14482   LDFLAGS="$save_LDFLAGS"
14483
14484fi
14485{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14486echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14487
14488if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14489    :
14490else
14491    lt_prog_compiler_static_F77=
14492fi
14493
14494
14495{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14496echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14497if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14498  echo $ECHO_N "(cached) $ECHO_C" >&6
14499else
14500  lt_cv_prog_compiler_c_o_F77=no
14501   $rm -r conftest 2>/dev/null
14502   mkdir conftest
14503   cd conftest
14504   mkdir out
14505   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14506
14507   lt_compiler_flag="-o out/conftest2.$ac_objext"
14508   # Insert the option either (1) after the last *FLAGS variable, or
14509   # (2) before a word containing "conftest.", or (3) at the end.
14510   # Note that $ac_compile itself does not contain backslashes and begins
14511   # with a dollar sign (not a hyphen), so the echo should work correctly.
14512   lt_compile=`echo "$ac_compile" | $SED \
14513   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14514   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14515   -e 's:$: $lt_compiler_flag:'`
14516   (eval echo "\"\$as_me:14516: $lt_compile\"" >&5)
14517   (eval "$lt_compile" 2>out/conftest.err)
14518   ac_status=$?
14519   cat out/conftest.err >&5
14520   echo "$as_me:14520: \$? = $ac_status" >&5
14521   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14522   then
14523     # The compiler can only warn and ignore the option if not recognized
14524     # So say no if there are warnings
14525     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14526     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14527     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14528       lt_cv_prog_compiler_c_o_F77=yes
14529     fi
14530   fi
14531   chmod u+w . 2>&5
14532   $rm conftest*
14533   # SGI C++ compiler will create directory out/ii_files/ for
14534   # template instantiation
14535   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14536   $rm out/* && rmdir out
14537   cd ..
14538   rmdir conftest
14539   $rm conftest*
14540
14541fi
14542{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14543echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14544
14545
14546hard_links="nottested"
14547if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14548  # do not overwrite the value of need_locks provided by the user
14549  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14550echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14551  hard_links=yes
14552  $rm conftest*
14553  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14554  touch conftest.a
14555  ln conftest.a conftest.b 2>&5 || hard_links=no
14556  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14557  { echo "$as_me:$LINENO: result: $hard_links" >&5
14558echo "${ECHO_T}$hard_links" >&6; }
14559  if test "$hard_links" = no; then
14560    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14561echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14562    need_locks=warn
14563  fi
14564else
14565  need_locks=no
14566fi
14567
14568{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14569echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14570
14571  runpath_var=
14572  allow_undefined_flag_F77=
14573  enable_shared_with_static_runtimes_F77=no
14574  archive_cmds_F77=
14575  archive_expsym_cmds_F77=
14576  old_archive_From_new_cmds_F77=
14577  old_archive_from_expsyms_cmds_F77=
14578  export_dynamic_flag_spec_F77=
14579  whole_archive_flag_spec_F77=
14580  thread_safe_flag_spec_F77=
14581  hardcode_libdir_flag_spec_F77=
14582  hardcode_libdir_flag_spec_ld_F77=
14583  hardcode_libdir_separator_F77=
14584  hardcode_direct_F77=no
14585  hardcode_minus_L_F77=no
14586  hardcode_shlibpath_var_F77=unsupported
14587  link_all_deplibs_F77=unknown
14588  hardcode_automatic_F77=no
14589  module_cmds_F77=
14590  module_expsym_cmds_F77=
14591  always_export_symbols_F77=no
14592  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14593  # include_expsyms should be a list of space-separated symbols to be *always*
14594  # included in the symbol list
14595  include_expsyms_F77=
14596  # exclude_expsyms can be an extended regexp of symbols to exclude
14597  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14598  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14599  # as well as any symbol that contains `d'.
14600  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14601  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14602  # platforms (ab)use it in PIC code, but their linkers get confused if
14603  # the symbol is explicitly referenced.  Since portable code cannot
14604  # rely on this symbol name, it's probably fine to never include it in
14605  # preloaded symbol tables.
14606  # Exclude shared library initialization/finalization symbols.
14607  extract_expsyms_cmds=
14608  # Just being paranoid about ensuring that cc_basename is set.
14609  for cc_temp in $compiler""; do
14610  case $cc_temp in
14611    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14612    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14613    \-*) ;;
14614    *) break;;
14615  esac
14616done
14617cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14618
14619  case $host_os in
14620  cygwin* | mingw* | pw32*)
14621    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14622    # When not using gcc, we currently assume that we are using
14623    # Microsoft Visual C++.
14624    if test "$GCC" != yes; then
14625      with_gnu_ld=no
14626    fi
14627    ;;
14628  interix*)
14629    # we just hope/assume this is gcc and not c89 (= MSVC++)
14630    with_gnu_ld=yes
14631    ;;
14632  openbsd*)
14633    with_gnu_ld=no
14634    ;;
14635  esac
14636
14637  ld_shlibs_F77=yes
14638  if test "$with_gnu_ld" = yes; then
14639    # If archive_cmds runs LD, not CC, wlarc should be empty
14640    wlarc='${wl}'
14641
14642    # Set some defaults for GNU ld with shared library support. These
14643    # are reset later if shared libraries are not supported. Putting them
14644    # here allows them to be overridden if necessary.
14645    runpath_var=LD_RUN_PATH
14646    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14647    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14648    # ancient GNU ld didn't support --whole-archive et. al.
14649    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14650	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14651      else
14652  	whole_archive_flag_spec_F77=
14653    fi
14654    supports_anon_versioning=no
14655    case `$LD -v 2>/dev/null` in
14656      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14657      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14658      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14659      *\ 2.11.*) ;; # other 2.11 versions
14660      *) supports_anon_versioning=yes ;;
14661    esac
14662
14663    # See if GNU ld supports shared libraries.
14664    case $host_os in
14665    aix[3-9]*)
14666      # On AIX/PPC, the GNU linker is very broken
14667      if test "$host_cpu" != ia64; then
14668	ld_shlibs_F77=no
14669	cat <<EOF 1>&2
14670
14671*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14672*** to be unable to reliably create shared libraries on AIX.
14673*** Therefore, libtool is disabling shared libraries support.  If you
14674*** really care for shared libraries, you may want to modify your PATH
14675*** so that a non-GNU linker is found, and then restart.
14676
14677EOF
14678      fi
14679      ;;
14680
14681    amigaos*)
14682      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)'
14683      hardcode_libdir_flag_spec_F77='-L$libdir'
14684      hardcode_minus_L_F77=yes
14685
14686      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14687      # that the semantics of dynamic libraries on AmigaOS, at least up
14688      # to version 4, is to share data among multiple programs linked
14689      # with the same dynamic library.  Since this doesn't match the
14690      # behavior of shared libraries on other platforms, we can't use
14691      # them.
14692      ld_shlibs_F77=no
14693      ;;
14694
14695    beos*)
14696      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14697	allow_undefined_flag_F77=unsupported
14698	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14699	# support --undefined.  This deserves some investigation.  FIXME
14700	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14701      else
14702	ld_shlibs_F77=no
14703      fi
14704      ;;
14705
14706    cygwin* | mingw* | pw32*)
14707      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14708      # as there is no search path for DLLs.
14709      hardcode_libdir_flag_spec_F77='-L$libdir'
14710      allow_undefined_flag_F77=unsupported
14711      always_export_symbols_F77=no
14712      enable_shared_with_static_runtimes_F77=yes
14713      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14714
14715      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14716        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14717	# If the export-symbols file already is a .def file (1st line
14718	# is EXPORTS), use it as is; otherwise, prepend...
14719	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14720	  cp $export_symbols $output_objdir/$soname.def;
14721	else
14722	  echo EXPORTS > $output_objdir/$soname.def;
14723	  cat $export_symbols >> $output_objdir/$soname.def;
14724	fi~
14725	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14726      else
14727	ld_shlibs_F77=no
14728      fi
14729      ;;
14730
14731    interix[3-9]*)
14732      hardcode_direct_F77=no
14733      hardcode_shlibpath_var_F77=no
14734      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14735      export_dynamic_flag_spec_F77='${wl}-E'
14736      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14737      # Instead, shared libraries are loaded at an image base (0x10000000 by
14738      # default) and relocated if they conflict, which is a slow very memory
14739      # consuming and fragmenting process.  To avoid this, we pick a random,
14740      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14741      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14742      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'
14743      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'
14744      ;;
14745
14746    gnu* | linux* | k*bsd*-gnu)
14747      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14748	tmp_addflag=
14749	case $cc_basename,$host_cpu in
14750	pgcc*)				# Portland Group C compiler
14751	  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'
14752	  tmp_addflag=' $pic_flag'
14753	  ;;
14754	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14755	  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'
14756	  tmp_addflag=' $pic_flag -Mnomain' ;;
14757	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14758	  tmp_addflag=' -i_dynamic' ;;
14759	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14760	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14761	ifc* | ifort*)			# Intel Fortran compiler
14762	  tmp_addflag=' -nofor_main' ;;
14763	esac
14764	case `$CC -V 2>&1 | sed 5q` in
14765	*Sun\ C*)			# Sun C 5.9
14766	  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'
14767	  tmp_sharedflag='-G' ;;
14768	*Sun\ F*)			# Sun Fortran 8.3
14769	  tmp_sharedflag='-G' ;;
14770	*)
14771	  tmp_sharedflag='-shared' ;;
14772	esac
14773	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14774
14775	if test $supports_anon_versioning = yes; then
14776	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14777  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14778  $echo "local: *; };" >> $output_objdir/$libname.ver~
14779	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14780	fi
14781	link_all_deplibs_F77=no
14782      else
14783	ld_shlibs_F77=no
14784      fi
14785      ;;
14786
14787    netbsd* | netbsdelf*-gnu)
14788      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14789	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14790	wlarc=
14791      else
14792	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14793	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14794      fi
14795      ;;
14796
14797    solaris*)
14798      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14799	ld_shlibs_F77=no
14800	cat <<EOF 1>&2
14801
14802*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14803*** create shared libraries on Solaris systems.  Therefore, libtool
14804*** is disabling shared libraries support.  We urge you to upgrade GNU
14805*** binutils to release 2.9.1 or newer.  Another option is to modify
14806*** your PATH or compiler configuration so that the native linker is
14807*** used, and then restart.
14808
14809EOF
14810      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14811	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14812	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14813      else
14814	ld_shlibs_F77=no
14815      fi
14816      ;;
14817
14818    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14819      case `$LD -v 2>&1` in
14820        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14821	ld_shlibs_F77=no
14822	cat <<_LT_EOF 1>&2
14823
14824*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14825*** reliably create shared libraries on SCO systems.  Therefore, libtool
14826*** is disabling shared libraries support.  We urge you to upgrade GNU
14827*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14828*** your PATH or compiler configuration so that the native linker is
14829*** used, and then restart.
14830
14831_LT_EOF
14832	;;
14833	*)
14834	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14835	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14836	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14837	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14838	  else
14839	    ld_shlibs_F77=no
14840	  fi
14841	;;
14842      esac
14843      ;;
14844
14845    sunos4*)
14846      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14847      wlarc=
14848      hardcode_direct_F77=yes
14849      hardcode_shlibpath_var_F77=no
14850      ;;
14851
14852    *)
14853      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14854	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14855	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14856      else
14857	ld_shlibs_F77=no
14858      fi
14859      ;;
14860    esac
14861
14862    if test "$ld_shlibs_F77" = no; then
14863      runpath_var=
14864      hardcode_libdir_flag_spec_F77=
14865      export_dynamic_flag_spec_F77=
14866      whole_archive_flag_spec_F77=
14867    fi
14868  else
14869    # PORTME fill in a description of your system's linker (not GNU ld)
14870    case $host_os in
14871    aix3*)
14872      allow_undefined_flag_F77=unsupported
14873      always_export_symbols_F77=yes
14874      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'
14875      # Note: this linker hardcodes the directories in LIBPATH if there
14876      # are no directories specified by -L.
14877      hardcode_minus_L_F77=yes
14878      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14879	# Neither direct hardcoding nor static linking is supported with a
14880	# broken collect2.
14881	hardcode_direct_F77=unsupported
14882      fi
14883      ;;
14884
14885    aix[4-9]*)
14886      if test "$host_cpu" = ia64; then
14887	# On IA64, the linker does run time linking by default, so we don't
14888	# have to do anything special.
14889	aix_use_runtimelinking=no
14890	exp_sym_flag='-Bexport'
14891	no_entry_flag=""
14892      else
14893	# If we're using GNU nm, then we don't want the "-C" option.
14894	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14895	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14896	  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'
14897	else
14898	  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'
14899	fi
14900	aix_use_runtimelinking=no
14901
14902	# Test if we are trying to use run time linking or normal
14903	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14904	# need to do runtime linking.
14905	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14906	  for ld_flag in $LDFLAGS; do
14907  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14908  	    aix_use_runtimelinking=yes
14909  	    break
14910  	  fi
14911	  done
14912	  ;;
14913	esac
14914
14915	exp_sym_flag='-bexport'
14916	no_entry_flag='-bnoentry'
14917      fi
14918
14919      # When large executables or shared objects are built, AIX ld can
14920      # have problems creating the table of contents.  If linking a library
14921      # or program results in "error TOC overflow" add -mminimal-toc to
14922      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14923      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14924
14925      archive_cmds_F77=''
14926      hardcode_direct_F77=yes
14927      hardcode_libdir_separator_F77=':'
14928      link_all_deplibs_F77=yes
14929
14930      if test "$GCC" = yes; then
14931	case $host_os in aix4.[012]|aix4.[012].*)
14932	# We only want to do this on AIX 4.2 and lower, the check
14933	# below for broken collect2 doesn't work under 4.3+
14934	  collect2name=`${CC} -print-prog-name=collect2`
14935	  if test -f "$collect2name" && \
14936  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14937	  then
14938  	  # We have reworked collect2
14939  	  :
14940	  else
14941  	  # We have old collect2
14942  	  hardcode_direct_F77=unsupported
14943  	  # It fails to find uninstalled libraries when the uninstalled
14944  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14945  	  # to unsupported forces relinking
14946  	  hardcode_minus_L_F77=yes
14947  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14948  	  hardcode_libdir_separator_F77=
14949	  fi
14950	  ;;
14951	esac
14952	shared_flag='-shared'
14953	if test "$aix_use_runtimelinking" = yes; then
14954	  shared_flag="$shared_flag "'${wl}-G'
14955	fi
14956      else
14957	# not using gcc
14958	if test "$host_cpu" = ia64; then
14959  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14960  	# chokes on -Wl,-G. The following line is correct:
14961	  shared_flag='-G'
14962	else
14963	  if test "$aix_use_runtimelinking" = yes; then
14964	    shared_flag='${wl}-G'
14965	  else
14966	    shared_flag='${wl}-bM:SRE'
14967	  fi
14968	fi
14969      fi
14970
14971      # It seems that -bexpall does not export symbols beginning with
14972      # underscore (_), so it is better to generate a list of symbols to export.
14973      always_export_symbols_F77=yes
14974      if test "$aix_use_runtimelinking" = yes; then
14975	# Warning - without using the other runtime loading flags (-brtl),
14976	# -berok will link without error, but may produce a broken library.
14977	allow_undefined_flag_F77='-berok'
14978       # Determine the default libpath from the value encoded in an empty executable.
14979       cat >conftest.$ac_ext <<_ACEOF
14980      program main
14981
14982      end
14983_ACEOF
14984rm -f conftest.$ac_objext conftest$ac_exeext
14985if { (ac_try="$ac_link"
14986case "(($ac_try" in
14987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988  *) ac_try_echo=$ac_try;;
14989esac
14990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991  (eval "$ac_link") 2>conftest.er1
14992  ac_status=$?
14993  grep -v '^ *+' conftest.er1 >conftest.err
14994  rm -f conftest.er1
14995  cat conftest.err >&5
14996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997  (exit $ac_status); } && {
14998	 test -z "$ac_f77_werror_flag" ||
14999	 test ! -s conftest.err
15000       } && test -s conftest$ac_exeext &&
15001       $as_test_x conftest$ac_exeext; then
15002
15003lt_aix_libpath_sed='
15004    /Import File Strings/,/^$/ {
15005	/^0/ {
15006	    s/^0  *\(.*\)$/\1/
15007	    p
15008	}
15009    }'
15010aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15011# Check for a 64-bit object if we didn't find anything.
15012if test -z "$aix_libpath"; then
15013  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15014fi
15015else
15016  echo "$as_me: failed program was:" >&5
15017sed 's/^/| /' conftest.$ac_ext >&5
15018
15019
15020fi
15021
15022rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15023      conftest$ac_exeext conftest.$ac_ext
15024if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15025
15026       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15027	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"
15028       else
15029	if test "$host_cpu" = ia64; then
15030	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15031	  allow_undefined_flag_F77="-z nodefs"
15032	  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"
15033	else
15034	 # Determine the default libpath from the value encoded in an empty executable.
15035	 cat >conftest.$ac_ext <<_ACEOF
15036      program main
15037
15038      end
15039_ACEOF
15040rm -f conftest.$ac_objext conftest$ac_exeext
15041if { (ac_try="$ac_link"
15042case "(($ac_try" in
15043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15044  *) ac_try_echo=$ac_try;;
15045esac
15046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15047  (eval "$ac_link") 2>conftest.er1
15048  ac_status=$?
15049  grep -v '^ *+' conftest.er1 >conftest.err
15050  rm -f conftest.er1
15051  cat conftest.err >&5
15052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053  (exit $ac_status); } && {
15054	 test -z "$ac_f77_werror_flag" ||
15055	 test ! -s conftest.err
15056       } && test -s conftest$ac_exeext &&
15057       $as_test_x conftest$ac_exeext; then
15058
15059lt_aix_libpath_sed='
15060    /Import File Strings/,/^$/ {
15061	/^0/ {
15062	    s/^0  *\(.*\)$/\1/
15063	    p
15064	}
15065    }'
15066aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15067# Check for a 64-bit object if we didn't find anything.
15068if test -z "$aix_libpath"; then
15069  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15070fi
15071else
15072  echo "$as_me: failed program was:" >&5
15073sed 's/^/| /' conftest.$ac_ext >&5
15074
15075
15076fi
15077
15078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15079      conftest$ac_exeext conftest.$ac_ext
15080if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15081
15082	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15083	  # Warning - without using the other run time loading flags,
15084	  # -berok will link without error, but may produce a broken library.
15085	  no_undefined_flag_F77=' ${wl}-bernotok'
15086	  allow_undefined_flag_F77=' ${wl}-berok'
15087	  # Exported symbols can be pulled into shared objects from archives
15088	  whole_archive_flag_spec_F77='$convenience'
15089	  archive_cmds_need_lc_F77=yes
15090	  # This is similar to how AIX traditionally builds its shared libraries.
15091	  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'
15092	fi
15093      fi
15094      ;;
15095
15096    amigaos*)
15097      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)'
15098      hardcode_libdir_flag_spec_F77='-L$libdir'
15099      hardcode_minus_L_F77=yes
15100      # see comment about different semantics on the GNU ld section
15101      ld_shlibs_F77=no
15102      ;;
15103
15104    bsdi[45]*)
15105      export_dynamic_flag_spec_F77=-rdynamic
15106      ;;
15107
15108    cygwin* | mingw* | pw32*)
15109      # When not using gcc, we currently assume that we are using
15110      # Microsoft Visual C++.
15111      # hardcode_libdir_flag_spec is actually meaningless, as there is
15112      # no search path for DLLs.
15113      hardcode_libdir_flag_spec_F77=' '
15114      allow_undefined_flag_F77=unsupported
15115      # Tell ltmain to make .lib files, not .a files.
15116      libext=lib
15117      # Tell ltmain to make .dll files, not .so files.
15118      shrext_cmds=".dll"
15119      # FIXME: Setting linknames here is a bad hack.
15120      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15121      # The linker will automatically build a .lib file if we build a DLL.
15122      old_archive_From_new_cmds_F77='true'
15123      # FIXME: Should let the user specify the lib program.
15124      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15125      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15126      enable_shared_with_static_runtimes_F77=yes
15127      ;;
15128
15129    darwin* | rhapsody*)
15130      case $host_os in
15131        rhapsody* | darwin1.[012])
15132         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15133         ;;
15134       *) # Darwin 1.3 on
15135         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15136           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15137         else
15138           case ${MACOSX_DEPLOYMENT_TARGET} in
15139             10.[012])
15140               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15141               ;;
15142             10.*)
15143               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15144               ;;
15145           esac
15146         fi
15147         ;;
15148      esac
15149      archive_cmds_need_lc_F77=no
15150      hardcode_direct_F77=no
15151      hardcode_automatic_F77=yes
15152      hardcode_shlibpath_var_F77=unsupported
15153      whole_archive_flag_spec_F77=''
15154      link_all_deplibs_F77=yes
15155    if test "$GCC" = yes ; then
15156    	output_verbose_link_cmd='echo'
15157        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15158        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15159        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15160        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15161    else
15162      case $cc_basename in
15163        xlc*)
15164         output_verbose_link_cmd='echo'
15165         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15166         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15167          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15168         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15169          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}'
15170          ;;
15171       *)
15172         ld_shlibs_F77=no
15173          ;;
15174      esac
15175    fi
15176      ;;
15177
15178    dgux*)
15179      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15180      hardcode_libdir_flag_spec_F77='-L$libdir'
15181      hardcode_shlibpath_var_F77=no
15182      ;;
15183
15184    freebsd1*)
15185      ld_shlibs_F77=no
15186      ;;
15187
15188    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15189    # support.  Future versions do this automatically, but an explicit c++rt0.o
15190    # does not break anything, and helps significantly (at the cost of a little
15191    # extra space).
15192    freebsd2.2*)
15193      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15194      hardcode_libdir_flag_spec_F77='-R$libdir'
15195      hardcode_direct_F77=yes
15196      hardcode_shlibpath_var_F77=no
15197      ;;
15198
15199    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15200    freebsd2*)
15201      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15202      hardcode_direct_F77=yes
15203      hardcode_minus_L_F77=yes
15204      hardcode_shlibpath_var_F77=no
15205      ;;
15206
15207    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15208    freebsd* | dragonfly*)
15209      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15210      hardcode_libdir_flag_spec_F77='-R$libdir'
15211      hardcode_direct_F77=yes
15212      hardcode_shlibpath_var_F77=no
15213      ;;
15214
15215    hpux9*)
15216      if test "$GCC" = yes; then
15217	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'
15218      else
15219	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'
15220      fi
15221      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15222      hardcode_libdir_separator_F77=:
15223      hardcode_direct_F77=yes
15224
15225      # hardcode_minus_L: Not really in the search PATH,
15226      # but as the default location of the library.
15227      hardcode_minus_L_F77=yes
15228      export_dynamic_flag_spec_F77='${wl}-E'
15229      ;;
15230
15231    hpux10*)
15232      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15233	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15234      else
15235	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15236      fi
15237      if test "$with_gnu_ld" = no; then
15238	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15239	hardcode_libdir_separator_F77=:
15240
15241	hardcode_direct_F77=yes
15242	export_dynamic_flag_spec_F77='${wl}-E'
15243
15244	# hardcode_minus_L: Not really in the search PATH,
15245	# but as the default location of the library.
15246	hardcode_minus_L_F77=yes
15247      fi
15248      ;;
15249
15250    hpux11*)
15251      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15252	case $host_cpu in
15253	hppa*64*)
15254	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15255	  ;;
15256	ia64*)
15257	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15258	  ;;
15259	*)
15260	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15261	  ;;
15262	esac
15263      else
15264	case $host_cpu in
15265	hppa*64*)
15266	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15267	  ;;
15268	ia64*)
15269	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15270	  ;;
15271	*)
15272	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15273	  ;;
15274	esac
15275      fi
15276      if test "$with_gnu_ld" = no; then
15277	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15278	hardcode_libdir_separator_F77=:
15279
15280	case $host_cpu in
15281	hppa*64*|ia64*)
15282	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15283	  hardcode_direct_F77=no
15284	  hardcode_shlibpath_var_F77=no
15285	  ;;
15286	*)
15287	  hardcode_direct_F77=yes
15288	  export_dynamic_flag_spec_F77='${wl}-E'
15289
15290	  # hardcode_minus_L: Not really in the search PATH,
15291	  # but as the default location of the library.
15292	  hardcode_minus_L_F77=yes
15293	  ;;
15294	esac
15295      fi
15296      ;;
15297
15298    irix5* | irix6* | nonstopux*)
15299      if test "$GCC" = yes; then
15300	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'
15301      else
15302	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'
15303	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15304      fi
15305      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15306      hardcode_libdir_separator_F77=:
15307      link_all_deplibs_F77=yes
15308      ;;
15309
15310    netbsd* | netbsdelf*-gnu)
15311      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15312	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15313      else
15314	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15315      fi
15316      hardcode_libdir_flag_spec_F77='-R$libdir'
15317      hardcode_direct_F77=yes
15318      hardcode_shlibpath_var_F77=no
15319      ;;
15320
15321    newsos6)
15322      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15323      hardcode_direct_F77=yes
15324      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15325      hardcode_libdir_separator_F77=:
15326      hardcode_shlibpath_var_F77=no
15327      ;;
15328
15329    openbsd*)
15330      if test -f /usr/libexec/ld.so; then
15331	hardcode_direct_F77=yes
15332	hardcode_shlibpath_var_F77=no
15333	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15334	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15335	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15336	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15337	  export_dynamic_flag_spec_F77='${wl}-E'
15338	else
15339	  case $host_os in
15340	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15341	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15342	     hardcode_libdir_flag_spec_F77='-R$libdir'
15343	     ;;
15344	   *)
15345	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15346	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15347	     ;;
15348	  esac
15349        fi
15350      else
15351	ld_shlibs_F77=no
15352      fi
15353      ;;
15354
15355    os2*)
15356      hardcode_libdir_flag_spec_F77='-L$libdir'
15357      hardcode_minus_L_F77=yes
15358      allow_undefined_flag_F77=unsupported
15359      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'
15360      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15361      ;;
15362
15363    osf3*)
15364      if test "$GCC" = yes; then
15365	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15366	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'
15367      else
15368	allow_undefined_flag_F77=' -expect_unresolved \*'
15369	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'
15370      fi
15371      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15372      hardcode_libdir_separator_F77=:
15373      ;;
15374
15375    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15376      if test "$GCC" = yes; then
15377	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15378	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'
15379	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15380      else
15381	allow_undefined_flag_F77=' -expect_unresolved \*'
15382	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'
15383	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~
15384	$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'
15385
15386	# Both c and cxx compiler support -rpath directly
15387	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15388      fi
15389      hardcode_libdir_separator_F77=:
15390      ;;
15391
15392    solaris*)
15393      no_undefined_flag_F77=' -z text'
15394      if test "$GCC" = yes; then
15395	wlarc='${wl}'
15396	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15397	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15398	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15399      else
15400	wlarc=''
15401	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15402	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15403  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15404      fi
15405      hardcode_libdir_flag_spec_F77='-R$libdir'
15406      hardcode_shlibpath_var_F77=no
15407      case $host_os in
15408      solaris2.[0-5] | solaris2.[0-5].*) ;;
15409      *)
15410	# The compiler driver will combine and reorder linker options,
15411	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15412	# but is careful enough not to reorder.
15413 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15414	if test "$GCC" = yes; then
15415	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15416	else
15417	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15418	fi
15419	;;
15420      esac
15421      link_all_deplibs_F77=yes
15422      ;;
15423
15424    sunos4*)
15425      if test "x$host_vendor" = xsequent; then
15426	# Use $CC to link under sequent, because it throws in some extra .o
15427	# files that make .init and .fini sections work.
15428	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15429      else
15430	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15431      fi
15432      hardcode_libdir_flag_spec_F77='-L$libdir'
15433      hardcode_direct_F77=yes
15434      hardcode_minus_L_F77=yes
15435      hardcode_shlibpath_var_F77=no
15436      ;;
15437
15438    sysv4)
15439      case $host_vendor in
15440	sni)
15441	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15442	  hardcode_direct_F77=yes # is this really true???
15443	;;
15444	siemens)
15445	  ## LD is ld it makes a PLAMLIB
15446	  ## CC just makes a GrossModule.
15447	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15448	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15449	  hardcode_direct_F77=no
15450        ;;
15451	motorola)
15452	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15453	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15454	;;
15455      esac
15456      runpath_var='LD_RUN_PATH'
15457      hardcode_shlibpath_var_F77=no
15458      ;;
15459
15460    sysv4.3*)
15461      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15462      hardcode_shlibpath_var_F77=no
15463      export_dynamic_flag_spec_F77='-Bexport'
15464      ;;
15465
15466    sysv4*MP*)
15467      if test -d /usr/nec; then
15468	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15469	hardcode_shlibpath_var_F77=no
15470	runpath_var=LD_RUN_PATH
15471	hardcode_runpath_var=yes
15472	ld_shlibs_F77=yes
15473      fi
15474      ;;
15475
15476    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15477      no_undefined_flag_F77='${wl}-z,text'
15478      archive_cmds_need_lc_F77=no
15479      hardcode_shlibpath_var_F77=no
15480      runpath_var='LD_RUN_PATH'
15481
15482      if test "$GCC" = yes; then
15483	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15484	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15485      else
15486	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15487	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15488      fi
15489      ;;
15490
15491    sysv5* | sco3.2v5* | sco5v6*)
15492      # Note: We can NOT use -z defs as we might desire, because we do not
15493      # link with -lc, and that would cause any symbols used from libc to
15494      # always be unresolved, which means just about no library would
15495      # ever link correctly.  If we're not using GNU ld we use -z text
15496      # though, which does catch some bad symbols but isn't as heavy-handed
15497      # as -z defs.
15498      no_undefined_flag_F77='${wl}-z,text'
15499      allow_undefined_flag_F77='${wl}-z,nodefs'
15500      archive_cmds_need_lc_F77=no
15501      hardcode_shlibpath_var_F77=no
15502      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15503      hardcode_libdir_separator_F77=':'
15504      link_all_deplibs_F77=yes
15505      export_dynamic_flag_spec_F77='${wl}-Bexport'
15506      runpath_var='LD_RUN_PATH'
15507
15508      if test "$GCC" = yes; then
15509	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15510	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15511      else
15512	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15513	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15514      fi
15515      ;;
15516
15517    uts4*)
15518      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15519      hardcode_libdir_flag_spec_F77='-L$libdir'
15520      hardcode_shlibpath_var_F77=no
15521      ;;
15522
15523    *)
15524      ld_shlibs_F77=no
15525      ;;
15526    esac
15527  fi
15528
15529{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15530echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15531test "$ld_shlibs_F77" = no && can_build_shared=no
15532
15533#
15534# Do we need to explicitly link libc?
15535#
15536case "x$archive_cmds_need_lc_F77" in
15537x|xyes)
15538  # Assume -lc should be added
15539  archive_cmds_need_lc_F77=yes
15540
15541  if test "$enable_shared" = yes && test "$GCC" = yes; then
15542    case $archive_cmds_F77 in
15543    *'~'*)
15544      # FIXME: we may have to deal with multi-command sequences.
15545      ;;
15546    '$CC '*)
15547      # Test whether the compiler implicitly links with -lc since on some
15548      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15549      # to ld, don't add -lc before -lgcc.
15550      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15551echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15552      $rm conftest*
15553      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15554
15555      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15556  (eval $ac_compile) 2>&5
15557  ac_status=$?
15558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559  (exit $ac_status); } 2>conftest.err; then
15560        soname=conftest
15561        lib=conftest
15562        libobjs=conftest.$ac_objext
15563        deplibs=
15564        wl=$lt_prog_compiler_wl_F77
15565	pic_flag=$lt_prog_compiler_pic_F77
15566        compiler_flags=-v
15567        linker_flags=-v
15568        verstring=
15569        output_objdir=.
15570        libname=conftest
15571        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15572        allow_undefined_flag_F77=
15573        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15574  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15575  ac_status=$?
15576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577  (exit $ac_status); }
15578        then
15579	  archive_cmds_need_lc_F77=no
15580        else
15581	  archive_cmds_need_lc_F77=yes
15582        fi
15583        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15584      else
15585        cat conftest.err 1>&5
15586      fi
15587      $rm conftest*
15588      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15589echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15590      ;;
15591    esac
15592  fi
15593  ;;
15594esac
15595
15596{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15597echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15598library_names_spec=
15599libname_spec='lib$name'
15600soname_spec=
15601shrext_cmds=".so"
15602postinstall_cmds=
15603postuninstall_cmds=
15604finish_cmds=
15605finish_eval=
15606shlibpath_var=
15607shlibpath_overrides_runpath=unknown
15608version_type=none
15609dynamic_linker="$host_os ld.so"
15610sys_lib_dlsearch_path_spec="/lib /usr/lib"
15611
15612need_lib_prefix=unknown
15613hardcode_into_libs=no
15614
15615# when you set need_version to no, make sure it does not cause -set_version
15616# flags to be left without arguments
15617need_version=unknown
15618
15619case $host_os in
15620aix3*)
15621  version_type=linux
15622  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15623  shlibpath_var=LIBPATH
15624
15625  # AIX 3 has no versioning support, so we append a major version to the name.
15626  soname_spec='${libname}${release}${shared_ext}$major'
15627  ;;
15628
15629aix[4-9]*)
15630  version_type=linux
15631  need_lib_prefix=no
15632  need_version=no
15633  hardcode_into_libs=yes
15634  if test "$host_cpu" = ia64; then
15635    # AIX 5 supports IA64
15636    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15637    shlibpath_var=LD_LIBRARY_PATH
15638  else
15639    # With GCC up to 2.95.x, collect2 would create an import file
15640    # for dependence libraries.  The import file would start with
15641    # the line `#! .'.  This would cause the generated library to
15642    # depend on `.', always an invalid library.  This was fixed in
15643    # development snapshots of GCC prior to 3.0.
15644    case $host_os in
15645      aix4 | aix4.[01] | aix4.[01].*)
15646      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15647	   echo ' yes '
15648	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15649	:
15650      else
15651	can_build_shared=no
15652      fi
15653      ;;
15654    esac
15655    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15656    # soname into executable. Probably we can add versioning support to
15657    # collect2, so additional links can be useful in future.
15658    if test "$aix_use_runtimelinking" = yes; then
15659      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15660      # instead of lib<name>.a to let people know that these are not
15661      # typical AIX shared libraries.
15662      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15663    else
15664      # We preserve .a as extension for shared libraries through AIX4.2
15665      # and later when we are not doing run time linking.
15666      library_names_spec='${libname}${release}.a $libname.a'
15667      soname_spec='${libname}${release}${shared_ext}$major'
15668    fi
15669    shlibpath_var=LIBPATH
15670  fi
15671  ;;
15672
15673amigaos*)
15674  library_names_spec='$libname.ixlibrary $libname.a'
15675  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15676  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'
15677  ;;
15678
15679beos*)
15680  library_names_spec='${libname}${shared_ext}'
15681  dynamic_linker="$host_os ld.so"
15682  shlibpath_var=LIBRARY_PATH
15683  ;;
15684
15685bsdi[45]*)
15686  version_type=linux
15687  need_version=no
15688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15689  soname_spec='${libname}${release}${shared_ext}$major'
15690  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15691  shlibpath_var=LD_LIBRARY_PATH
15692  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15693  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15694  # the default ld.so.conf also contains /usr/contrib/lib and
15695  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15696  # libtool to hard-code these into programs
15697  ;;
15698
15699cygwin* | mingw* | pw32*)
15700  version_type=windows
15701  shrext_cmds=".dll"
15702  need_version=no
15703  need_lib_prefix=no
15704
15705  case $GCC,$host_os in
15706  yes,cygwin* | yes,mingw* | yes,pw32*)
15707    library_names_spec='$libname.dll.a'
15708    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15709    postinstall_cmds='base_file=`basename \${file}`~
15710      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15711      dldir=$destdir/`dirname \$dlpath`~
15712      test -d \$dldir || mkdir -p \$dldir~
15713      $install_prog $dir/$dlname \$dldir/$dlname~
15714      chmod a+x \$dldir/$dlname'
15715    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15716      dlpath=$dir/\$dldll~
15717       $rm \$dlpath'
15718    shlibpath_overrides_runpath=yes
15719
15720    case $host_os in
15721    cygwin*)
15722      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15723      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15724      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15725      ;;
15726    mingw*)
15727      # MinGW DLLs use traditional 'lib' prefix
15728      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15729      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15730      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15731        # It is most probably a Windows format PATH printed by
15732        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15733        # path with ; separators, and with drive letters. We can handle the
15734        # drive letters (cygwin fileutils understands them), so leave them,
15735        # especially as we might pass files found there to a mingw objdump,
15736        # which wouldn't understand a cygwinified path. Ahh.
15737        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15738      else
15739        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15740      fi
15741      ;;
15742    pw32*)
15743      # pw32 DLLs use 'pw' prefix rather than 'lib'
15744      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15745      ;;
15746    esac
15747    ;;
15748
15749  *)
15750    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15751    ;;
15752  esac
15753  dynamic_linker='Win32 ld.exe'
15754  # FIXME: first we should search . and the directory the executable is in
15755  shlibpath_var=PATH
15756  ;;
15757
15758darwin* | rhapsody*)
15759  dynamic_linker="$host_os dyld"
15760  version_type=darwin
15761  need_lib_prefix=no
15762  need_version=no
15763  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15764  soname_spec='${libname}${release}${major}$shared_ext'
15765  shlibpath_overrides_runpath=yes
15766  shlibpath_var=DYLD_LIBRARY_PATH
15767  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15768
15769  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15770  ;;
15771
15772dgux*)
15773  version_type=linux
15774  need_lib_prefix=no
15775  need_version=no
15776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15777  soname_spec='${libname}${release}${shared_ext}$major'
15778  shlibpath_var=LD_LIBRARY_PATH
15779  ;;
15780
15781freebsd1*)
15782  dynamic_linker=no
15783  ;;
15784
15785freebsd* | dragonfly*)
15786  # DragonFly does not have aout.  When/if they implement a new
15787  # versioning mechanism, adjust this.
15788  if test -x /usr/bin/objformat; then
15789    objformat=`/usr/bin/objformat`
15790  else
15791    case $host_os in
15792    freebsd[123]*) objformat=aout ;;
15793    *) objformat=elf ;;
15794    esac
15795  fi
15796  version_type=freebsd-$objformat
15797  case $version_type in
15798    freebsd-elf*)
15799      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15800      need_version=no
15801      need_lib_prefix=no
15802      ;;
15803    freebsd-*)
15804      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15805      need_version=yes
15806      ;;
15807  esac
15808  shlibpath_var=LD_LIBRARY_PATH
15809  case $host_os in
15810  freebsd2*)
15811    shlibpath_overrides_runpath=yes
15812    ;;
15813  freebsd3.[01]* | freebsdelf3.[01]*)
15814    shlibpath_overrides_runpath=yes
15815    hardcode_into_libs=yes
15816    ;;
15817  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15818  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15819    shlibpath_overrides_runpath=no
15820    hardcode_into_libs=yes
15821    ;;
15822  *) # from 4.6 on, and DragonFly
15823    shlibpath_overrides_runpath=yes
15824    hardcode_into_libs=yes
15825    ;;
15826  esac
15827  ;;
15828
15829gnu*)
15830  version_type=linux
15831  need_lib_prefix=no
15832  need_version=no
15833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15834  soname_spec='${libname}${release}${shared_ext}$major'
15835  shlibpath_var=LD_LIBRARY_PATH
15836  hardcode_into_libs=yes
15837  ;;
15838
15839hpux9* | hpux10* | hpux11*)
15840  # Give a soname corresponding to the major version so that dld.sl refuses to
15841  # link against other versions.
15842  version_type=sunos
15843  need_lib_prefix=no
15844  need_version=no
15845  case $host_cpu in
15846  ia64*)
15847    shrext_cmds='.so'
15848    hardcode_into_libs=yes
15849    dynamic_linker="$host_os dld.so"
15850    shlibpath_var=LD_LIBRARY_PATH
15851    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15852    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15853    soname_spec='${libname}${release}${shared_ext}$major'
15854    if test "X$HPUX_IA64_MODE" = X32; then
15855      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15856    else
15857      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15858    fi
15859    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15860    ;;
15861   hppa*64*)
15862     shrext_cmds='.sl'
15863     hardcode_into_libs=yes
15864     dynamic_linker="$host_os dld.sl"
15865     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15866     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15867     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15868     soname_spec='${libname}${release}${shared_ext}$major'
15869     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15870     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15871     ;;
15872   *)
15873    shrext_cmds='.sl'
15874    dynamic_linker="$host_os dld.sl"
15875    shlibpath_var=SHLIB_PATH
15876    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15877    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15878    soname_spec='${libname}${release}${shared_ext}$major'
15879    ;;
15880  esac
15881  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15882  postinstall_cmds='chmod 555 $lib'
15883  ;;
15884
15885interix[3-9]*)
15886  version_type=linux
15887  need_lib_prefix=no
15888  need_version=no
15889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15890  soname_spec='${libname}${release}${shared_ext}$major'
15891  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15892  shlibpath_var=LD_LIBRARY_PATH
15893  shlibpath_overrides_runpath=no
15894  hardcode_into_libs=yes
15895  ;;
15896
15897irix5* | irix6* | nonstopux*)
15898  case $host_os in
15899    nonstopux*) version_type=nonstopux ;;
15900    *)
15901	if test "$lt_cv_prog_gnu_ld" = yes; then
15902		version_type=linux
15903	else
15904		version_type=irix
15905	fi ;;
15906  esac
15907  need_lib_prefix=no
15908  need_version=no
15909  soname_spec='${libname}${release}${shared_ext}$major'
15910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15911  case $host_os in
15912  irix5* | nonstopux*)
15913    libsuff= shlibsuff=
15914    ;;
15915  *)
15916    case $LD in # libtool.m4 will add one of these switches to LD
15917    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15918      libsuff= shlibsuff= libmagic=32-bit;;
15919    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15920      libsuff=32 shlibsuff=N32 libmagic=N32;;
15921    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15922      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15923    *) libsuff= shlibsuff= libmagic=never-match;;
15924    esac
15925    ;;
15926  esac
15927  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15928  shlibpath_overrides_runpath=no
15929  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15930  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15931  hardcode_into_libs=yes
15932  ;;
15933
15934# No shared lib support for Linux oldld, aout, or coff.
15935linux*oldld* | linux*aout* | linux*coff*)
15936  dynamic_linker=no
15937  ;;
15938
15939# This must be Linux ELF.
15940linux* | k*bsd*-gnu)
15941  version_type=linux
15942  need_lib_prefix=no
15943  need_version=no
15944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15945  soname_spec='${libname}${release}${shared_ext}$major'
15946  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15947  shlibpath_var=LD_LIBRARY_PATH
15948  shlibpath_overrides_runpath=no
15949  # This implies no fast_install, which is unacceptable.
15950  # Some rework will be needed to allow for fast_install
15951  # before this can be enabled.
15952  hardcode_into_libs=yes
15953
15954  # Append ld.so.conf contents to the search path
15955  if test -f /etc/ld.so.conf; then
15956    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15957    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15958  fi
15959
15960  # We used to test for /lib/ld.so.1 and disable shared libraries on
15961  # powerpc, because MkLinux only supported shared libraries with the
15962  # GNU dynamic linker.  Since this was broken with cross compilers,
15963  # most powerpc-linux boxes support dynamic linking these days and
15964  # people can always --disable-shared, the test was removed, and we
15965  # assume the GNU/Linux dynamic linker is in use.
15966  dynamic_linker='GNU/Linux ld.so'
15967  ;;
15968
15969netbsdelf*-gnu)
15970  version_type=linux
15971  need_lib_prefix=no
15972  need_version=no
15973  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15974  soname_spec='${libname}${release}${shared_ext}$major'
15975  shlibpath_var=LD_LIBRARY_PATH
15976  shlibpath_overrides_runpath=no
15977  hardcode_into_libs=yes
15978  dynamic_linker='NetBSD ld.elf_so'
15979  ;;
15980
15981netbsd*)
15982  version_type=sunos
15983  need_lib_prefix=no
15984  need_version=no
15985  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15986    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15987    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15988    dynamic_linker='NetBSD (a.out) ld.so'
15989  else
15990    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15991    soname_spec='${libname}${release}${shared_ext}$major'
15992    dynamic_linker='NetBSD ld.elf_so'
15993  fi
15994  shlibpath_var=LD_LIBRARY_PATH
15995  shlibpath_overrides_runpath=yes
15996  hardcode_into_libs=yes
15997  ;;
15998
15999newsos6)
16000  version_type=linux
16001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16002  shlibpath_var=LD_LIBRARY_PATH
16003  shlibpath_overrides_runpath=yes
16004  ;;
16005
16006nto-qnx*)
16007  version_type=linux
16008  need_lib_prefix=no
16009  need_version=no
16010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16011  soname_spec='${libname}${release}${shared_ext}$major'
16012  shlibpath_var=LD_LIBRARY_PATH
16013  shlibpath_overrides_runpath=yes
16014  ;;
16015
16016openbsd*)
16017  version_type=sunos
16018  sys_lib_dlsearch_path_spec="/usr/lib"
16019  need_lib_prefix=no
16020  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16021  case $host_os in
16022    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16023    *)                         need_version=no  ;;
16024  esac
16025  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16026  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16027  shlibpath_var=LD_LIBRARY_PATH
16028  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16029    case $host_os in
16030      openbsd2.[89] | openbsd2.[89].*)
16031	shlibpath_overrides_runpath=no
16032	;;
16033      *)
16034	shlibpath_overrides_runpath=yes
16035	;;
16036      esac
16037  else
16038    shlibpath_overrides_runpath=yes
16039  fi
16040  ;;
16041
16042os2*)
16043  libname_spec='$name'
16044  shrext_cmds=".dll"
16045  need_lib_prefix=no
16046  library_names_spec='$libname${shared_ext} $libname.a'
16047  dynamic_linker='OS/2 ld.exe'
16048  shlibpath_var=LIBPATH
16049  ;;
16050
16051osf3* | osf4* | osf5*)
16052  version_type=osf
16053  need_lib_prefix=no
16054  need_version=no
16055  soname_spec='${libname}${release}${shared_ext}$major'
16056  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16057  shlibpath_var=LD_LIBRARY_PATH
16058  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16059  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16060  ;;
16061
16062rdos*)
16063  dynamic_linker=no
16064  ;;
16065
16066solaris*)
16067  version_type=linux
16068  need_lib_prefix=no
16069  need_version=no
16070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16071  soname_spec='${libname}${release}${shared_ext}$major'
16072  shlibpath_var=LD_LIBRARY_PATH
16073  shlibpath_overrides_runpath=yes
16074  hardcode_into_libs=yes
16075  # ldd complains unless libraries are executable
16076  postinstall_cmds='chmod +x $lib'
16077  ;;
16078
16079sunos4*)
16080  version_type=sunos
16081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16082  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16083  shlibpath_var=LD_LIBRARY_PATH
16084  shlibpath_overrides_runpath=yes
16085  if test "$with_gnu_ld" = yes; then
16086    need_lib_prefix=no
16087  fi
16088  need_version=yes
16089  ;;
16090
16091sysv4 | sysv4.3*)
16092  version_type=linux
16093  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16094  soname_spec='${libname}${release}${shared_ext}$major'
16095  shlibpath_var=LD_LIBRARY_PATH
16096  case $host_vendor in
16097    sni)
16098      shlibpath_overrides_runpath=no
16099      need_lib_prefix=no
16100      export_dynamic_flag_spec='${wl}-Blargedynsym'
16101      runpath_var=LD_RUN_PATH
16102      ;;
16103    siemens)
16104      need_lib_prefix=no
16105      ;;
16106    motorola)
16107      need_lib_prefix=no
16108      need_version=no
16109      shlibpath_overrides_runpath=no
16110      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16111      ;;
16112  esac
16113  ;;
16114
16115sysv4*MP*)
16116  if test -d /usr/nec ;then
16117    version_type=linux
16118    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16119    soname_spec='$libname${shared_ext}.$major'
16120    shlibpath_var=LD_LIBRARY_PATH
16121  fi
16122  ;;
16123
16124sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16125  version_type=freebsd-elf
16126  need_lib_prefix=no
16127  need_version=no
16128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16129  soname_spec='${libname}${release}${shared_ext}$major'
16130  shlibpath_var=LD_LIBRARY_PATH
16131  hardcode_into_libs=yes
16132  if test "$with_gnu_ld" = yes; then
16133    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16134    shlibpath_overrides_runpath=no
16135  else
16136    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16137    shlibpath_overrides_runpath=yes
16138    case $host_os in
16139      sco3.2v5*)
16140        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16141	;;
16142    esac
16143  fi
16144  sys_lib_dlsearch_path_spec='/usr/lib'
16145  ;;
16146
16147uts4*)
16148  version_type=linux
16149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16150  soname_spec='${libname}${release}${shared_ext}$major'
16151  shlibpath_var=LD_LIBRARY_PATH
16152  ;;
16153
16154*)
16155  dynamic_linker=no
16156  ;;
16157esac
16158{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16159echo "${ECHO_T}$dynamic_linker" >&6; }
16160test "$dynamic_linker" = no && can_build_shared=no
16161
16162if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16163  echo $ECHO_N "(cached) $ECHO_C" >&6
16164else
16165  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16166fi
16167
16168sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16169if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16170  echo $ECHO_N "(cached) $ECHO_C" >&6
16171else
16172  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16173fi
16174
16175sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16176
16177variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16178if test "$GCC" = yes; then
16179  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16180fi
16181
16182{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16183echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16184hardcode_action_F77=
16185if test -n "$hardcode_libdir_flag_spec_F77" || \
16186   test -n "$runpath_var_F77" || \
16187   test "X$hardcode_automatic_F77" = "Xyes" ; then
16188
16189  # We can hardcode non-existant directories.
16190  if test "$hardcode_direct_F77" != no &&
16191     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16192     # have to relink, otherwise we might link with an installed library
16193     # when we should be linking with a yet-to-be-installed one
16194     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16195     test "$hardcode_minus_L_F77" != no; then
16196    # Linking always hardcodes the temporary library directory.
16197    hardcode_action_F77=relink
16198  else
16199    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16200    hardcode_action_F77=immediate
16201  fi
16202else
16203  # We cannot hardcode anything, or else we can only hardcode existing
16204  # directories.
16205  hardcode_action_F77=unsupported
16206fi
16207{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16208echo "${ECHO_T}$hardcode_action_F77" >&6; }
16209
16210if test "$hardcode_action_F77" = relink; then
16211  # Fast installation is not supported
16212  enable_fast_install=no
16213elif test "$shlibpath_overrides_runpath" = yes ||
16214     test "$enable_shared" = no; then
16215  # Fast installation is not necessary
16216  enable_fast_install=needless
16217fi
16218
16219
16220# The else clause should only fire when bootstrapping the
16221# libtool distribution, otherwise you forgot to ship ltmain.sh
16222# with your package, and you will get complaints that there are
16223# no rules to generate ltmain.sh.
16224if test -f "$ltmain"; then
16225  # See if we are running on zsh, and set the options which allow our commands through
16226  # without removal of \ escapes.
16227  if test -n "${ZSH_VERSION+set}" ; then
16228    setopt NO_GLOB_SUBST
16229  fi
16230  # Now quote all the things that may contain metacharacters while being
16231  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16232  # variables and quote the copies for generation of the libtool script.
16233  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16234    SED SHELL STRIP \
16235    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16236    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16237    deplibs_check_method reload_flag reload_cmds need_locks \
16238    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16239    lt_cv_sys_global_symbol_to_c_name_address \
16240    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16241    old_postinstall_cmds old_postuninstall_cmds \
16242    compiler_F77 \
16243    CC_F77 \
16244    LD_F77 \
16245    lt_prog_compiler_wl_F77 \
16246    lt_prog_compiler_pic_F77 \
16247    lt_prog_compiler_static_F77 \
16248    lt_prog_compiler_no_builtin_flag_F77 \
16249    export_dynamic_flag_spec_F77 \
16250    thread_safe_flag_spec_F77 \
16251    whole_archive_flag_spec_F77 \
16252    enable_shared_with_static_runtimes_F77 \
16253    old_archive_cmds_F77 \
16254    old_archive_from_new_cmds_F77 \
16255    predep_objects_F77 \
16256    postdep_objects_F77 \
16257    predeps_F77 \
16258    postdeps_F77 \
16259    compiler_lib_search_path_F77 \
16260    compiler_lib_search_dirs_F77 \
16261    archive_cmds_F77 \
16262    archive_expsym_cmds_F77 \
16263    postinstall_cmds_F77 \
16264    postuninstall_cmds_F77 \
16265    old_archive_from_expsyms_cmds_F77 \
16266    allow_undefined_flag_F77 \
16267    no_undefined_flag_F77 \
16268    export_symbols_cmds_F77 \
16269    hardcode_libdir_flag_spec_F77 \
16270    hardcode_libdir_flag_spec_ld_F77 \
16271    hardcode_libdir_separator_F77 \
16272    hardcode_automatic_F77 \
16273    module_cmds_F77 \
16274    module_expsym_cmds_F77 \
16275    lt_cv_prog_compiler_c_o_F77 \
16276    fix_srcfile_path_F77 \
16277    exclude_expsyms_F77 \
16278    include_expsyms_F77; do
16279
16280    case $var in
16281    old_archive_cmds_F77 | \
16282    old_archive_from_new_cmds_F77 | \
16283    archive_cmds_F77 | \
16284    archive_expsym_cmds_F77 | \
16285    module_cmds_F77 | \
16286    module_expsym_cmds_F77 | \
16287    old_archive_from_expsyms_cmds_F77 | \
16288    export_symbols_cmds_F77 | \
16289    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16290    postinstall_cmds | postuninstall_cmds | \
16291    old_postinstall_cmds | old_postuninstall_cmds | \
16292    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16293      # Double-quote double-evaled strings.
16294      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16295      ;;
16296    *)
16297      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16298      ;;
16299    esac
16300  done
16301
16302  case $lt_echo in
16303  *'\$0 --fallback-echo"')
16304    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16305    ;;
16306  esac
16307
16308cfgfile="$ofile"
16309
16310  cat <<__EOF__ >> "$cfgfile"
16311# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16312
16313# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16314
16315# Shell to use when invoking shell scripts.
16316SHELL=$lt_SHELL
16317
16318# Whether or not to build shared libraries.
16319build_libtool_libs=$enable_shared
16320
16321# Whether or not to build static libraries.
16322build_old_libs=$enable_static
16323
16324# Whether or not to add -lc for building shared libraries.
16325build_libtool_need_lc=$archive_cmds_need_lc_F77
16326
16327# Whether or not to disallow shared libs when runtime libs are static
16328allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16329
16330# Whether or not to optimize for fast installation.
16331fast_install=$enable_fast_install
16332
16333# The host system.
16334host_alias=$host_alias
16335host=$host
16336host_os=$host_os
16337
16338# The build system.
16339build_alias=$build_alias
16340build=$build
16341build_os=$build_os
16342
16343# An echo program that does not interpret backslashes.
16344echo=$lt_echo
16345
16346# The archiver.
16347AR=$lt_AR
16348AR_FLAGS=$lt_AR_FLAGS
16349
16350# A C compiler.
16351LTCC=$lt_LTCC
16352
16353# LTCC compiler flags.
16354LTCFLAGS=$lt_LTCFLAGS
16355
16356# A language-specific compiler.
16357CC=$lt_compiler_F77
16358
16359# Is the compiler the GNU C compiler?
16360with_gcc=$GCC_F77
16361
16362# An ERE matcher.
16363EGREP=$lt_EGREP
16364
16365# The linker used to build libraries.
16366LD=$lt_LD_F77
16367
16368# Whether we need hard or soft links.
16369LN_S=$lt_LN_S
16370
16371# A BSD-compatible nm program.
16372NM=$lt_NM
16373
16374# A symbol stripping program
16375STRIP=$lt_STRIP
16376
16377# Used to examine libraries when file_magic_cmd begins "file"
16378MAGIC_CMD=$MAGIC_CMD
16379
16380# Used on cygwin: DLL creation program.
16381DLLTOOL="$DLLTOOL"
16382
16383# Used on cygwin: object dumper.
16384OBJDUMP="$OBJDUMP"
16385
16386# Used on cygwin: assembler.
16387AS="$AS"
16388
16389# The name of the directory that contains temporary libtool files.
16390objdir=$objdir
16391
16392# How to create reloadable object files.
16393reload_flag=$lt_reload_flag
16394reload_cmds=$lt_reload_cmds
16395
16396# How to pass a linker flag through the compiler.
16397wl=$lt_lt_prog_compiler_wl_F77
16398
16399# Object file suffix (normally "o").
16400objext="$ac_objext"
16401
16402# Old archive suffix (normally "a").
16403libext="$libext"
16404
16405# Shared library suffix (normally ".so").
16406shrext_cmds='$shrext_cmds'
16407
16408# Executable file suffix (normally "").
16409exeext="$exeext"
16410
16411# Additional compiler flags for building library objects.
16412pic_flag=$lt_lt_prog_compiler_pic_F77
16413pic_mode=$pic_mode
16414
16415# What is the maximum length of a command?
16416max_cmd_len=$lt_cv_sys_max_cmd_len
16417
16418# Does compiler simultaneously support -c and -o options?
16419compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16420
16421# Must we lock files when doing compilation?
16422need_locks=$lt_need_locks
16423
16424# Do we need the lib prefix for modules?
16425need_lib_prefix=$need_lib_prefix
16426
16427# Do we need a version for libraries?
16428need_version=$need_version
16429
16430# Whether dlopen is supported.
16431dlopen_support=$enable_dlopen
16432
16433# Whether dlopen of programs is supported.
16434dlopen_self=$enable_dlopen_self
16435
16436# Whether dlopen of statically linked programs is supported.
16437dlopen_self_static=$enable_dlopen_self_static
16438
16439# Compiler flag to prevent dynamic linking.
16440link_static_flag=$lt_lt_prog_compiler_static_F77
16441
16442# Compiler flag to turn off builtin functions.
16443no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16444
16445# Compiler flag to allow reflexive dlopens.
16446export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16447
16448# Compiler flag to generate shared objects directly from archives.
16449whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16450
16451# Compiler flag to generate thread-safe objects.
16452thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16453
16454# Library versioning type.
16455version_type=$version_type
16456
16457# Format of library name prefix.
16458libname_spec=$lt_libname_spec
16459
16460# List of archive names.  First name is the real one, the rest are links.
16461# The last name is the one that the linker finds with -lNAME.
16462library_names_spec=$lt_library_names_spec
16463
16464# The coded name of the library, if different from the real name.
16465soname_spec=$lt_soname_spec
16466
16467# Commands used to build and install an old-style archive.
16468RANLIB=$lt_RANLIB
16469old_archive_cmds=$lt_old_archive_cmds_F77
16470old_postinstall_cmds=$lt_old_postinstall_cmds
16471old_postuninstall_cmds=$lt_old_postuninstall_cmds
16472
16473# Create an old-style archive from a shared archive.
16474old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16475
16476# Create a temporary old-style archive to link instead of a shared archive.
16477old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16478
16479# Commands used to build and install a shared archive.
16480archive_cmds=$lt_archive_cmds_F77
16481archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16482postinstall_cmds=$lt_postinstall_cmds
16483postuninstall_cmds=$lt_postuninstall_cmds
16484
16485# Commands used to build a loadable module (assumed same as above if empty)
16486module_cmds=$lt_module_cmds_F77
16487module_expsym_cmds=$lt_module_expsym_cmds_F77
16488
16489# Commands to strip libraries.
16490old_striplib=$lt_old_striplib
16491striplib=$lt_striplib
16492
16493# Dependencies to place before the objects being linked to create a
16494# shared library.
16495predep_objects=$lt_predep_objects_F77
16496
16497# Dependencies to place after the objects being linked to create a
16498# shared library.
16499postdep_objects=$lt_postdep_objects_F77
16500
16501# Dependencies to place before the objects being linked to create a
16502# shared library.
16503predeps=$lt_predeps_F77
16504
16505# Dependencies to place after the objects being linked to create a
16506# shared library.
16507postdeps=$lt_postdeps_F77
16508
16509# The directories searched by this compiler when creating a shared
16510# library
16511compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16512
16513# The library search path used internally by the compiler when linking
16514# a shared library.
16515compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16516
16517# Method to check whether dependent libraries are shared objects.
16518deplibs_check_method=$lt_deplibs_check_method
16519
16520# Command to use when deplibs_check_method == file_magic.
16521file_magic_cmd=$lt_file_magic_cmd
16522
16523# Flag that allows shared libraries with undefined symbols to be built.
16524allow_undefined_flag=$lt_allow_undefined_flag_F77
16525
16526# Flag that forces no undefined symbols.
16527no_undefined_flag=$lt_no_undefined_flag_F77
16528
16529# Commands used to finish a libtool library installation in a directory.
16530finish_cmds=$lt_finish_cmds
16531
16532# Same as above, but a single script fragment to be evaled but not shown.
16533finish_eval=$lt_finish_eval
16534
16535# Take the output of nm and produce a listing of raw symbols and C names.
16536global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16537
16538# Transform the output of nm in a proper C declaration
16539global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16540
16541# Transform the output of nm in a C name address pair
16542global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16543
16544# This is the shared library runtime path variable.
16545runpath_var=$runpath_var
16546
16547# This is the shared library path variable.
16548shlibpath_var=$shlibpath_var
16549
16550# Is shlibpath searched before the hard-coded library search path?
16551shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16552
16553# How to hardcode a shared library path into an executable.
16554hardcode_action=$hardcode_action_F77
16555
16556# Whether we should hardcode library paths into libraries.
16557hardcode_into_libs=$hardcode_into_libs
16558
16559# Flag to hardcode \$libdir into a binary during linking.
16560# This must work even if \$libdir does not exist.
16561hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16562
16563# If ld is used when linking, flag to hardcode \$libdir into
16564# a binary during linking. This must work even if \$libdir does
16565# not exist.
16566hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16567
16568# Whether we need a single -rpath flag with a separated argument.
16569hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16570
16571# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16572# resulting binary.
16573hardcode_direct=$hardcode_direct_F77
16574
16575# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16576# resulting binary.
16577hardcode_minus_L=$hardcode_minus_L_F77
16578
16579# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16580# the resulting binary.
16581hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16582
16583# Set to yes if building a shared library automatically hardcodes DIR into the library
16584# and all subsequent libraries and executables linked against it.
16585hardcode_automatic=$hardcode_automatic_F77
16586
16587# Variables whose values should be saved in libtool wrapper scripts and
16588# restored at relink time.
16589variables_saved_for_relink="$variables_saved_for_relink"
16590
16591# Whether libtool must link a program against all its dependency libraries.
16592link_all_deplibs=$link_all_deplibs_F77
16593
16594# Compile-time system search path for libraries
16595sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16596
16597# Run-time system search path for libraries
16598sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16599
16600# Fix the shell variable \$srcfile for the compiler.
16601fix_srcfile_path=$lt_fix_srcfile_path
16602
16603# Set to yes if exported symbols are required.
16604always_export_symbols=$always_export_symbols_F77
16605
16606# The commands to list exported symbols.
16607export_symbols_cmds=$lt_export_symbols_cmds_F77
16608
16609# The commands to extract the exported symbol list from a shared archive.
16610extract_expsyms_cmds=$lt_extract_expsyms_cmds
16611
16612# Symbols that should not be listed in the preloaded symbols.
16613exclude_expsyms=$lt_exclude_expsyms_F77
16614
16615# Symbols that must always be exported.
16616include_expsyms=$lt_include_expsyms_F77
16617
16618# ### END LIBTOOL TAG CONFIG: $tagname
16619
16620__EOF__
16621
16622
16623else
16624  # If there is no Makefile yet, we rely on a make rule to execute
16625  # `config.status --recheck' to rerun these tests and create the
16626  # libtool script then.
16627  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16628  if test -f "$ltmain_in"; then
16629    test -f Makefile && make "$ltmain"
16630  fi
16631fi
16632
16633
16634ac_ext=c
16635ac_cpp='$CPP $CPPFLAGS'
16636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16638ac_compiler_gnu=$ac_cv_c_compiler_gnu
16639
16640CC="$lt_save_CC"
16641
16642	else
16643	  tagname=""
16644	fi
16645	;;
16646
16647      GCJ)
16648	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16649
16650
16651# Source file extension for Java test sources.
16652ac_ext=java
16653
16654# Object file extension for compiled Java test sources.
16655objext=o
16656objext_GCJ=$objext
16657
16658# Code to be used in simple compile tests
16659lt_simple_compile_test_code="class foo {}"
16660
16661# Code to be used in simple link tests
16662lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16663
16664# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16665
16666# If no C compiler was specified, use CC.
16667LTCC=${LTCC-"$CC"}
16668
16669# If no C compiler flags were specified, use CFLAGS.
16670LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16671
16672# Allow CC to be a program name with arguments.
16673compiler=$CC
16674
16675
16676# save warnings/boilerplate of simple test code
16677ac_outfile=conftest.$ac_objext
16678echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16679eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16680_lt_compiler_boilerplate=`cat conftest.err`
16681$rm conftest*
16682
16683ac_outfile=conftest.$ac_objext
16684echo "$lt_simple_link_test_code" >conftest.$ac_ext
16685eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16686_lt_linker_boilerplate=`cat conftest.err`
16687$rm -r conftest*
16688
16689
16690# Allow CC to be a program name with arguments.
16691lt_save_CC="$CC"
16692CC=${GCJ-"gcj"}
16693compiler=$CC
16694compiler_GCJ=$CC
16695for cc_temp in $compiler""; do
16696  case $cc_temp in
16697    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16698    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16699    \-*) ;;
16700    *) break;;
16701  esac
16702done
16703cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16704
16705
16706# GCJ did not exist at the time GCC didn't implicitly link libc in.
16707archive_cmds_need_lc_GCJ=no
16708
16709old_archive_cmds_GCJ=$old_archive_cmds
16710
16711
16712lt_prog_compiler_no_builtin_flag_GCJ=
16713
16714if test "$GCC" = yes; then
16715  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16716
16717
16718{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16719echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16720if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16721  echo $ECHO_N "(cached) $ECHO_C" >&6
16722else
16723  lt_cv_prog_compiler_rtti_exceptions=no
16724  ac_outfile=conftest.$ac_objext
16725   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16726   lt_compiler_flag="-fno-rtti -fno-exceptions"
16727   # Insert the option either (1) after the last *FLAGS variable, or
16728   # (2) before a word containing "conftest.", or (3) at the end.
16729   # Note that $ac_compile itself does not contain backslashes and begins
16730   # with a dollar sign (not a hyphen), so the echo should work correctly.
16731   # The option is referenced via a variable to avoid confusing sed.
16732   lt_compile=`echo "$ac_compile" | $SED \
16733   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16734   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16735   -e 's:$: $lt_compiler_flag:'`
16736   (eval echo "\"\$as_me:16736: $lt_compile\"" >&5)
16737   (eval "$lt_compile" 2>conftest.err)
16738   ac_status=$?
16739   cat conftest.err >&5
16740   echo "$as_me:16740: \$? = $ac_status" >&5
16741   if (exit $ac_status) && test -s "$ac_outfile"; then
16742     # The compiler can only warn and ignore the option if not recognized
16743     # So say no if there are warnings other than the usual output.
16744     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16745     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16746     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16747       lt_cv_prog_compiler_rtti_exceptions=yes
16748     fi
16749   fi
16750   $rm conftest*
16751
16752fi
16753{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16754echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16755
16756if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16757    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16758else
16759    :
16760fi
16761
16762fi
16763
16764lt_prog_compiler_wl_GCJ=
16765lt_prog_compiler_pic_GCJ=
16766lt_prog_compiler_static_GCJ=
16767
16768{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16769echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16770
16771  if test "$GCC" = yes; then
16772    lt_prog_compiler_wl_GCJ='-Wl,'
16773    lt_prog_compiler_static_GCJ='-static'
16774
16775    case $host_os in
16776      aix*)
16777      # All AIX code is PIC.
16778      if test "$host_cpu" = ia64; then
16779	# AIX 5 now supports IA64 processor
16780	lt_prog_compiler_static_GCJ='-Bstatic'
16781      fi
16782      ;;
16783
16784    amigaos*)
16785      # FIXME: we need at least 68020 code to build shared libraries, but
16786      # adding the `-m68020' flag to GCC prevents building anything better,
16787      # like `-m68040'.
16788      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16789      ;;
16790
16791    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16792      # PIC is the default for these OSes.
16793      ;;
16794
16795    mingw* | cygwin* | pw32* | os2*)
16796      # This hack is so that the source file can tell whether it is being
16797      # built for inclusion in a dll (and should export symbols for example).
16798      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16799      # (--disable-auto-import) libraries
16800
16801      ;;
16802
16803    darwin* | rhapsody*)
16804      # PIC is the default on this platform
16805      # Common symbols not allowed in MH_DYLIB files
16806      lt_prog_compiler_pic_GCJ='-fno-common'
16807      ;;
16808
16809    interix[3-9]*)
16810      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16811      # Instead, we relocate shared libraries at runtime.
16812      ;;
16813
16814    msdosdjgpp*)
16815      # Just because we use GCC doesn't mean we suddenly get shared libraries
16816      # on systems that don't support them.
16817      lt_prog_compiler_can_build_shared_GCJ=no
16818      enable_shared=no
16819      ;;
16820
16821    sysv4*MP*)
16822      if test -d /usr/nec; then
16823	lt_prog_compiler_pic_GCJ=-Kconform_pic
16824      fi
16825      ;;
16826
16827    hpux*)
16828      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16829      # not for PA HP-UX.
16830      case $host_cpu in
16831      hppa*64*|ia64*)
16832	# +Z the default
16833	;;
16834      *)
16835	lt_prog_compiler_pic_GCJ='-fPIC'
16836	;;
16837      esac
16838      ;;
16839
16840    *)
16841      lt_prog_compiler_pic_GCJ='-fPIC'
16842      ;;
16843    esac
16844  else
16845    # PORTME Check for flag to pass linker flags through the system compiler.
16846    case $host_os in
16847    aix*)
16848      lt_prog_compiler_wl_GCJ='-Wl,'
16849      if test "$host_cpu" = ia64; then
16850	# AIX 5 now supports IA64 processor
16851	lt_prog_compiler_static_GCJ='-Bstatic'
16852      else
16853	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16854      fi
16855      ;;
16856      darwin*)
16857        # PIC is the default on this platform
16858        # Common symbols not allowed in MH_DYLIB files
16859       case $cc_basename in
16860         xlc*)
16861         lt_prog_compiler_pic_GCJ='-qnocommon'
16862         lt_prog_compiler_wl_GCJ='-Wl,'
16863         ;;
16864       esac
16865       ;;
16866
16867    mingw* | cygwin* | pw32* | os2*)
16868      # This hack is so that the source file can tell whether it is being
16869      # built for inclusion in a dll (and should export symbols for example).
16870
16871      ;;
16872
16873    hpux9* | hpux10* | hpux11*)
16874      lt_prog_compiler_wl_GCJ='-Wl,'
16875      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16876      # not for PA HP-UX.
16877      case $host_cpu in
16878      hppa*64*|ia64*)
16879	# +Z the default
16880	;;
16881      *)
16882	lt_prog_compiler_pic_GCJ='+Z'
16883	;;
16884      esac
16885      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16886      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16887      ;;
16888
16889    irix5* | irix6* | nonstopux*)
16890      lt_prog_compiler_wl_GCJ='-Wl,'
16891      # PIC (with -KPIC) is the default.
16892      lt_prog_compiler_static_GCJ='-non_shared'
16893      ;;
16894
16895    newsos6)
16896      lt_prog_compiler_pic_GCJ='-KPIC'
16897      lt_prog_compiler_static_GCJ='-Bstatic'
16898      ;;
16899
16900    linux* | k*bsd*-gnu)
16901      case $cc_basename in
16902      icc* | ecc*)
16903	lt_prog_compiler_wl_GCJ='-Wl,'
16904	lt_prog_compiler_pic_GCJ='-KPIC'
16905	lt_prog_compiler_static_GCJ='-static'
16906        ;;
16907      pgcc* | pgf77* | pgf90* | pgf95*)
16908        # Portland Group compilers (*not* the Pentium gcc compiler,
16909	# which looks to be a dead project)
16910	lt_prog_compiler_wl_GCJ='-Wl,'
16911	lt_prog_compiler_pic_GCJ='-fpic'
16912	lt_prog_compiler_static_GCJ='-Bstatic'
16913        ;;
16914      ccc*)
16915        lt_prog_compiler_wl_GCJ='-Wl,'
16916        # All Alpha code is PIC.
16917        lt_prog_compiler_static_GCJ='-non_shared'
16918        ;;
16919      *)
16920        case `$CC -V 2>&1 | sed 5q` in
16921	*Sun\ C*)
16922	  # Sun C 5.9
16923	  lt_prog_compiler_pic_GCJ='-KPIC'
16924	  lt_prog_compiler_static_GCJ='-Bstatic'
16925	  lt_prog_compiler_wl_GCJ='-Wl,'
16926	  ;;
16927	*Sun\ F*)
16928	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16929	  lt_prog_compiler_pic_GCJ='-KPIC'
16930	  lt_prog_compiler_static_GCJ='-Bstatic'
16931	  lt_prog_compiler_wl_GCJ=''
16932	  ;;
16933	esac
16934	;;
16935      esac
16936      ;;
16937
16938    osf3* | osf4* | osf5*)
16939      lt_prog_compiler_wl_GCJ='-Wl,'
16940      # All OSF/1 code is PIC.
16941      lt_prog_compiler_static_GCJ='-non_shared'
16942      ;;
16943
16944    rdos*)
16945      lt_prog_compiler_static_GCJ='-non_shared'
16946      ;;
16947
16948    solaris*)
16949      lt_prog_compiler_pic_GCJ='-KPIC'
16950      lt_prog_compiler_static_GCJ='-Bstatic'
16951      case $cc_basename in
16952      f77* | f90* | f95*)
16953	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16954      *)
16955	lt_prog_compiler_wl_GCJ='-Wl,';;
16956      esac
16957      ;;
16958
16959    sunos4*)
16960      lt_prog_compiler_wl_GCJ='-Qoption ld '
16961      lt_prog_compiler_pic_GCJ='-PIC'
16962      lt_prog_compiler_static_GCJ='-Bstatic'
16963      ;;
16964
16965    sysv4 | sysv4.2uw2* | sysv4.3*)
16966      lt_prog_compiler_wl_GCJ='-Wl,'
16967      lt_prog_compiler_pic_GCJ='-KPIC'
16968      lt_prog_compiler_static_GCJ='-Bstatic'
16969      ;;
16970
16971    sysv4*MP*)
16972      if test -d /usr/nec ;then
16973	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16974	lt_prog_compiler_static_GCJ='-Bstatic'
16975      fi
16976      ;;
16977
16978    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16979      lt_prog_compiler_wl_GCJ='-Wl,'
16980      lt_prog_compiler_pic_GCJ='-KPIC'
16981      lt_prog_compiler_static_GCJ='-Bstatic'
16982      ;;
16983
16984    unicos*)
16985      lt_prog_compiler_wl_GCJ='-Wl,'
16986      lt_prog_compiler_can_build_shared_GCJ=no
16987      ;;
16988
16989    uts4*)
16990      lt_prog_compiler_pic_GCJ='-pic'
16991      lt_prog_compiler_static_GCJ='-Bstatic'
16992      ;;
16993
16994    *)
16995      lt_prog_compiler_can_build_shared_GCJ=no
16996      ;;
16997    esac
16998  fi
16999
17000{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17001echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17002
17003#
17004# Check to make sure the PIC flag actually works.
17005#
17006if test -n "$lt_prog_compiler_pic_GCJ"; then
17007
17008{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17009echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17010if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17011  echo $ECHO_N "(cached) $ECHO_C" >&6
17012else
17013  lt_cv_prog_compiler_pic_works_GCJ=no
17014  ac_outfile=conftest.$ac_objext
17015   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17016   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17017   # Insert the option either (1) after the last *FLAGS variable, or
17018   # (2) before a word containing "conftest.", or (3) at the end.
17019   # Note that $ac_compile itself does not contain backslashes and begins
17020   # with a dollar sign (not a hyphen), so the echo should work correctly.
17021   # The option is referenced via a variable to avoid confusing sed.
17022   lt_compile=`echo "$ac_compile" | $SED \
17023   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17024   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17025   -e 's:$: $lt_compiler_flag:'`
17026   (eval echo "\"\$as_me:17026: $lt_compile\"" >&5)
17027   (eval "$lt_compile" 2>conftest.err)
17028   ac_status=$?
17029   cat conftest.err >&5
17030   echo "$as_me:17030: \$? = $ac_status" >&5
17031   if (exit $ac_status) && test -s "$ac_outfile"; then
17032     # The compiler can only warn and ignore the option if not recognized
17033     # So say no if there are warnings other than the usual output.
17034     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17035     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17036     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17037       lt_cv_prog_compiler_pic_works_GCJ=yes
17038     fi
17039   fi
17040   $rm conftest*
17041
17042fi
17043{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17044echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17045
17046if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17047    case $lt_prog_compiler_pic_GCJ in
17048     "" | " "*) ;;
17049     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17050     esac
17051else
17052    lt_prog_compiler_pic_GCJ=
17053     lt_prog_compiler_can_build_shared_GCJ=no
17054fi
17055
17056fi
17057case $host_os in
17058  # For platforms which do not support PIC, -DPIC is meaningless:
17059  *djgpp*)
17060    lt_prog_compiler_pic_GCJ=
17061    ;;
17062  *)
17063    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17064    ;;
17065esac
17066
17067#
17068# Check to make sure the static flag actually works.
17069#
17070wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17071{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17072echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17073if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17074  echo $ECHO_N "(cached) $ECHO_C" >&6
17075else
17076  lt_cv_prog_compiler_static_works_GCJ=no
17077   save_LDFLAGS="$LDFLAGS"
17078   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17079   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17080   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17081     # The linker can only warn and ignore the option if not recognized
17082     # So say no if there are warnings
17083     if test -s conftest.err; then
17084       # Append any errors to the config.log.
17085       cat conftest.err 1>&5
17086       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17087       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17088       if diff conftest.exp conftest.er2 >/dev/null; then
17089         lt_cv_prog_compiler_static_works_GCJ=yes
17090       fi
17091     else
17092       lt_cv_prog_compiler_static_works_GCJ=yes
17093     fi
17094   fi
17095   $rm -r conftest*
17096   LDFLAGS="$save_LDFLAGS"
17097
17098fi
17099{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17100echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17101
17102if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17103    :
17104else
17105    lt_prog_compiler_static_GCJ=
17106fi
17107
17108
17109{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17110echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17111if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17112  echo $ECHO_N "(cached) $ECHO_C" >&6
17113else
17114  lt_cv_prog_compiler_c_o_GCJ=no
17115   $rm -r conftest 2>/dev/null
17116   mkdir conftest
17117   cd conftest
17118   mkdir out
17119   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17120
17121   lt_compiler_flag="-o out/conftest2.$ac_objext"
17122   # Insert the option either (1) after the last *FLAGS variable, or
17123   # (2) before a word containing "conftest.", or (3) at the end.
17124   # Note that $ac_compile itself does not contain backslashes and begins
17125   # with a dollar sign (not a hyphen), so the echo should work correctly.
17126   lt_compile=`echo "$ac_compile" | $SED \
17127   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17128   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17129   -e 's:$: $lt_compiler_flag:'`
17130   (eval echo "\"\$as_me:17130: $lt_compile\"" >&5)
17131   (eval "$lt_compile" 2>out/conftest.err)
17132   ac_status=$?
17133   cat out/conftest.err >&5
17134   echo "$as_me:17134: \$? = $ac_status" >&5
17135   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17136   then
17137     # The compiler can only warn and ignore the option if not recognized
17138     # So say no if there are warnings
17139     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17140     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17141     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17142       lt_cv_prog_compiler_c_o_GCJ=yes
17143     fi
17144   fi
17145   chmod u+w . 2>&5
17146   $rm conftest*
17147   # SGI C++ compiler will create directory out/ii_files/ for
17148   # template instantiation
17149   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17150   $rm out/* && rmdir out
17151   cd ..
17152   rmdir conftest
17153   $rm conftest*
17154
17155fi
17156{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17157echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17158
17159
17160hard_links="nottested"
17161if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17162  # do not overwrite the value of need_locks provided by the user
17163  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17164echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17165  hard_links=yes
17166  $rm conftest*
17167  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17168  touch conftest.a
17169  ln conftest.a conftest.b 2>&5 || hard_links=no
17170  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17171  { echo "$as_me:$LINENO: result: $hard_links" >&5
17172echo "${ECHO_T}$hard_links" >&6; }
17173  if test "$hard_links" = no; then
17174    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17175echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17176    need_locks=warn
17177  fi
17178else
17179  need_locks=no
17180fi
17181
17182{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17183echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17184
17185  runpath_var=
17186  allow_undefined_flag_GCJ=
17187  enable_shared_with_static_runtimes_GCJ=no
17188  archive_cmds_GCJ=
17189  archive_expsym_cmds_GCJ=
17190  old_archive_From_new_cmds_GCJ=
17191  old_archive_from_expsyms_cmds_GCJ=
17192  export_dynamic_flag_spec_GCJ=
17193  whole_archive_flag_spec_GCJ=
17194  thread_safe_flag_spec_GCJ=
17195  hardcode_libdir_flag_spec_GCJ=
17196  hardcode_libdir_flag_spec_ld_GCJ=
17197  hardcode_libdir_separator_GCJ=
17198  hardcode_direct_GCJ=no
17199  hardcode_minus_L_GCJ=no
17200  hardcode_shlibpath_var_GCJ=unsupported
17201  link_all_deplibs_GCJ=unknown
17202  hardcode_automatic_GCJ=no
17203  module_cmds_GCJ=
17204  module_expsym_cmds_GCJ=
17205  always_export_symbols_GCJ=no
17206  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17207  # include_expsyms should be a list of space-separated symbols to be *always*
17208  # included in the symbol list
17209  include_expsyms_GCJ=
17210  # exclude_expsyms can be an extended regexp of symbols to exclude
17211  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17212  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17213  # as well as any symbol that contains `d'.
17214  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17215  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17216  # platforms (ab)use it in PIC code, but their linkers get confused if
17217  # the symbol is explicitly referenced.  Since portable code cannot
17218  # rely on this symbol name, it's probably fine to never include it in
17219  # preloaded symbol tables.
17220  # Exclude shared library initialization/finalization symbols.
17221  extract_expsyms_cmds=
17222  # Just being paranoid about ensuring that cc_basename is set.
17223  for cc_temp in $compiler""; do
17224  case $cc_temp in
17225    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17226    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17227    \-*) ;;
17228    *) break;;
17229  esac
17230done
17231cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17232
17233  case $host_os in
17234  cygwin* | mingw* | pw32*)
17235    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17236    # When not using gcc, we currently assume that we are using
17237    # Microsoft Visual C++.
17238    if test "$GCC" != yes; then
17239      with_gnu_ld=no
17240    fi
17241    ;;
17242  interix*)
17243    # we just hope/assume this is gcc and not c89 (= MSVC++)
17244    with_gnu_ld=yes
17245    ;;
17246  openbsd*)
17247    with_gnu_ld=no
17248    ;;
17249  esac
17250
17251  ld_shlibs_GCJ=yes
17252  if test "$with_gnu_ld" = yes; then
17253    # If archive_cmds runs LD, not CC, wlarc should be empty
17254    wlarc='${wl}'
17255
17256    # Set some defaults for GNU ld with shared library support. These
17257    # are reset later if shared libraries are not supported. Putting them
17258    # here allows them to be overridden if necessary.
17259    runpath_var=LD_RUN_PATH
17260    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17261    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17262    # ancient GNU ld didn't support --whole-archive et. al.
17263    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17264	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17265      else
17266  	whole_archive_flag_spec_GCJ=
17267    fi
17268    supports_anon_versioning=no
17269    case `$LD -v 2>/dev/null` in
17270      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17271      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17272      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17273      *\ 2.11.*) ;; # other 2.11 versions
17274      *) supports_anon_versioning=yes ;;
17275    esac
17276
17277    # See if GNU ld supports shared libraries.
17278    case $host_os in
17279    aix[3-9]*)
17280      # On AIX/PPC, the GNU linker is very broken
17281      if test "$host_cpu" != ia64; then
17282	ld_shlibs_GCJ=no
17283	cat <<EOF 1>&2
17284
17285*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17286*** to be unable to reliably create shared libraries on AIX.
17287*** Therefore, libtool is disabling shared libraries support.  If you
17288*** really care for shared libraries, you may want to modify your PATH
17289*** so that a non-GNU linker is found, and then restart.
17290
17291EOF
17292      fi
17293      ;;
17294
17295    amigaos*)
17296      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)'
17297      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17298      hardcode_minus_L_GCJ=yes
17299
17300      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17301      # that the semantics of dynamic libraries on AmigaOS, at least up
17302      # to version 4, is to share data among multiple programs linked
17303      # with the same dynamic library.  Since this doesn't match the
17304      # behavior of shared libraries on other platforms, we can't use
17305      # them.
17306      ld_shlibs_GCJ=no
17307      ;;
17308
17309    beos*)
17310      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17311	allow_undefined_flag_GCJ=unsupported
17312	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17313	# support --undefined.  This deserves some investigation.  FIXME
17314	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17315      else
17316	ld_shlibs_GCJ=no
17317      fi
17318      ;;
17319
17320    cygwin* | mingw* | pw32*)
17321      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17322      # as there is no search path for DLLs.
17323      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17324      allow_undefined_flag_GCJ=unsupported
17325      always_export_symbols_GCJ=no
17326      enable_shared_with_static_runtimes_GCJ=yes
17327      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17328
17329      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17330        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17331	# If the export-symbols file already is a .def file (1st line
17332	# is EXPORTS), use it as is; otherwise, prepend...
17333	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17334	  cp $export_symbols $output_objdir/$soname.def;
17335	else
17336	  echo EXPORTS > $output_objdir/$soname.def;
17337	  cat $export_symbols >> $output_objdir/$soname.def;
17338	fi~
17339	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17340      else
17341	ld_shlibs_GCJ=no
17342      fi
17343      ;;
17344
17345    interix[3-9]*)
17346      hardcode_direct_GCJ=no
17347      hardcode_shlibpath_var_GCJ=no
17348      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17349      export_dynamic_flag_spec_GCJ='${wl}-E'
17350      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17351      # Instead, shared libraries are loaded at an image base (0x10000000 by
17352      # default) and relocated if they conflict, which is a slow very memory
17353      # consuming and fragmenting process.  To avoid this, we pick a random,
17354      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17355      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17356      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'
17357      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'
17358      ;;
17359
17360    gnu* | linux* | k*bsd*-gnu)
17361      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17362	tmp_addflag=
17363	case $cc_basename,$host_cpu in
17364	pgcc*)				# Portland Group C compiler
17365	  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'
17366	  tmp_addflag=' $pic_flag'
17367	  ;;
17368	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17369	  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'
17370	  tmp_addflag=' $pic_flag -Mnomain' ;;
17371	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17372	  tmp_addflag=' -i_dynamic' ;;
17373	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17374	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17375	ifc* | ifort*)			# Intel Fortran compiler
17376	  tmp_addflag=' -nofor_main' ;;
17377	esac
17378	case `$CC -V 2>&1 | sed 5q` in
17379	*Sun\ C*)			# Sun C 5.9
17380	  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'
17381	  tmp_sharedflag='-G' ;;
17382	*Sun\ F*)			# Sun Fortran 8.3
17383	  tmp_sharedflag='-G' ;;
17384	*)
17385	  tmp_sharedflag='-shared' ;;
17386	esac
17387	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17388
17389	if test $supports_anon_versioning = yes; then
17390	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17391  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17392  $echo "local: *; };" >> $output_objdir/$libname.ver~
17393	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17394	fi
17395	link_all_deplibs_GCJ=no
17396      else
17397	ld_shlibs_GCJ=no
17398      fi
17399      ;;
17400
17401    netbsd* | netbsdelf*-gnu)
17402      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17403	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17404	wlarc=
17405      else
17406	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17407	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17408      fi
17409      ;;
17410
17411    solaris*)
17412      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17413	ld_shlibs_GCJ=no
17414	cat <<EOF 1>&2
17415
17416*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17417*** create shared libraries on Solaris systems.  Therefore, libtool
17418*** is disabling shared libraries support.  We urge you to upgrade GNU
17419*** binutils to release 2.9.1 or newer.  Another option is to modify
17420*** your PATH or compiler configuration so that the native linker is
17421*** used, and then restart.
17422
17423EOF
17424      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17425	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17426	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17427      else
17428	ld_shlibs_GCJ=no
17429      fi
17430      ;;
17431
17432    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17433      case `$LD -v 2>&1` in
17434        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17435	ld_shlibs_GCJ=no
17436	cat <<_LT_EOF 1>&2
17437
17438*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17439*** reliably create shared libraries on SCO systems.  Therefore, libtool
17440*** is disabling shared libraries support.  We urge you to upgrade GNU
17441*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17442*** your PATH or compiler configuration so that the native linker is
17443*** used, and then restart.
17444
17445_LT_EOF
17446	;;
17447	*)
17448	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17449	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17450	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17451	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17452	  else
17453	    ld_shlibs_GCJ=no
17454	  fi
17455	;;
17456      esac
17457      ;;
17458
17459    sunos4*)
17460      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17461      wlarc=
17462      hardcode_direct_GCJ=yes
17463      hardcode_shlibpath_var_GCJ=no
17464      ;;
17465
17466    *)
17467      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17468	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17469	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17470      else
17471	ld_shlibs_GCJ=no
17472      fi
17473      ;;
17474    esac
17475
17476    if test "$ld_shlibs_GCJ" = no; then
17477      runpath_var=
17478      hardcode_libdir_flag_spec_GCJ=
17479      export_dynamic_flag_spec_GCJ=
17480      whole_archive_flag_spec_GCJ=
17481    fi
17482  else
17483    # PORTME fill in a description of your system's linker (not GNU ld)
17484    case $host_os in
17485    aix3*)
17486      allow_undefined_flag_GCJ=unsupported
17487      always_export_symbols_GCJ=yes
17488      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'
17489      # Note: this linker hardcodes the directories in LIBPATH if there
17490      # are no directories specified by -L.
17491      hardcode_minus_L_GCJ=yes
17492      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17493	# Neither direct hardcoding nor static linking is supported with a
17494	# broken collect2.
17495	hardcode_direct_GCJ=unsupported
17496      fi
17497      ;;
17498
17499    aix[4-9]*)
17500      if test "$host_cpu" = ia64; then
17501	# On IA64, the linker does run time linking by default, so we don't
17502	# have to do anything special.
17503	aix_use_runtimelinking=no
17504	exp_sym_flag='-Bexport'
17505	no_entry_flag=""
17506      else
17507	# If we're using GNU nm, then we don't want the "-C" option.
17508	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17509	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17510	  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'
17511	else
17512	  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'
17513	fi
17514	aix_use_runtimelinking=no
17515
17516	# Test if we are trying to use run time linking or normal
17517	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17518	# need to do runtime linking.
17519	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17520	  for ld_flag in $LDFLAGS; do
17521  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17522  	    aix_use_runtimelinking=yes
17523  	    break
17524  	  fi
17525	  done
17526	  ;;
17527	esac
17528
17529	exp_sym_flag='-bexport'
17530	no_entry_flag='-bnoentry'
17531      fi
17532
17533      # When large executables or shared objects are built, AIX ld can
17534      # have problems creating the table of contents.  If linking a library
17535      # or program results in "error TOC overflow" add -mminimal-toc to
17536      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17537      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17538
17539      archive_cmds_GCJ=''
17540      hardcode_direct_GCJ=yes
17541      hardcode_libdir_separator_GCJ=':'
17542      link_all_deplibs_GCJ=yes
17543
17544      if test "$GCC" = yes; then
17545	case $host_os in aix4.[012]|aix4.[012].*)
17546	# We only want to do this on AIX 4.2 and lower, the check
17547	# below for broken collect2 doesn't work under 4.3+
17548	  collect2name=`${CC} -print-prog-name=collect2`
17549	  if test -f "$collect2name" && \
17550  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17551	  then
17552  	  # We have reworked collect2
17553  	  :
17554	  else
17555  	  # We have old collect2
17556  	  hardcode_direct_GCJ=unsupported
17557  	  # It fails to find uninstalled libraries when the uninstalled
17558  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17559  	  # to unsupported forces relinking
17560  	  hardcode_minus_L_GCJ=yes
17561  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17562  	  hardcode_libdir_separator_GCJ=
17563	  fi
17564	  ;;
17565	esac
17566	shared_flag='-shared'
17567	if test "$aix_use_runtimelinking" = yes; then
17568	  shared_flag="$shared_flag "'${wl}-G'
17569	fi
17570      else
17571	# not using gcc
17572	if test "$host_cpu" = ia64; then
17573  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17574  	# chokes on -Wl,-G. The following line is correct:
17575	  shared_flag='-G'
17576	else
17577	  if test "$aix_use_runtimelinking" = yes; then
17578	    shared_flag='${wl}-G'
17579	  else
17580	    shared_flag='${wl}-bM:SRE'
17581	  fi
17582	fi
17583      fi
17584
17585      # It seems that -bexpall does not export symbols beginning with
17586      # underscore (_), so it is better to generate a list of symbols to export.
17587      always_export_symbols_GCJ=yes
17588      if test "$aix_use_runtimelinking" = yes; then
17589	# Warning - without using the other runtime loading flags (-brtl),
17590	# -berok will link without error, but may produce a broken library.
17591	allow_undefined_flag_GCJ='-berok'
17592       # Determine the default libpath from the value encoded in an empty executable.
17593       cat >conftest.$ac_ext <<_ACEOF
17594/* confdefs.h.  */
17595_ACEOF
17596cat confdefs.h >>conftest.$ac_ext
17597cat >>conftest.$ac_ext <<_ACEOF
17598/* end confdefs.h.  */
17599
17600int
17601main ()
17602{
17603
17604  ;
17605  return 0;
17606}
17607_ACEOF
17608rm -f conftest.$ac_objext conftest$ac_exeext
17609if { (ac_try="$ac_link"
17610case "(($ac_try" in
17611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612  *) ac_try_echo=$ac_try;;
17613esac
17614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615  (eval "$ac_link") 2>conftest.er1
17616  ac_status=$?
17617  grep -v '^ *+' conftest.er1 >conftest.err
17618  rm -f conftest.er1
17619  cat conftest.err >&5
17620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621  (exit $ac_status); } && {
17622	 test -z "$ac_c_werror_flag" ||
17623	 test ! -s conftest.err
17624       } && test -s conftest$ac_exeext &&
17625       $as_test_x conftest$ac_exeext; then
17626
17627lt_aix_libpath_sed='
17628    /Import File Strings/,/^$/ {
17629	/^0/ {
17630	    s/^0  *\(.*\)$/\1/
17631	    p
17632	}
17633    }'
17634aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17635# Check for a 64-bit object if we didn't find anything.
17636if test -z "$aix_libpath"; then
17637  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17638fi
17639else
17640  echo "$as_me: failed program was:" >&5
17641sed 's/^/| /' conftest.$ac_ext >&5
17642
17643
17644fi
17645
17646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17647      conftest$ac_exeext conftest.$ac_ext
17648if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17649
17650       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17651	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"
17652       else
17653	if test "$host_cpu" = ia64; then
17654	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17655	  allow_undefined_flag_GCJ="-z nodefs"
17656	  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"
17657	else
17658	 # Determine the default libpath from the value encoded in an empty executable.
17659	 cat >conftest.$ac_ext <<_ACEOF
17660/* confdefs.h.  */
17661_ACEOF
17662cat confdefs.h >>conftest.$ac_ext
17663cat >>conftest.$ac_ext <<_ACEOF
17664/* end confdefs.h.  */
17665
17666int
17667main ()
17668{
17669
17670  ;
17671  return 0;
17672}
17673_ACEOF
17674rm -f conftest.$ac_objext conftest$ac_exeext
17675if { (ac_try="$ac_link"
17676case "(($ac_try" in
17677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678  *) ac_try_echo=$ac_try;;
17679esac
17680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681  (eval "$ac_link") 2>conftest.er1
17682  ac_status=$?
17683  grep -v '^ *+' conftest.er1 >conftest.err
17684  rm -f conftest.er1
17685  cat conftest.err >&5
17686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687  (exit $ac_status); } && {
17688	 test -z "$ac_c_werror_flag" ||
17689	 test ! -s conftest.err
17690       } && test -s conftest$ac_exeext &&
17691       $as_test_x conftest$ac_exeext; then
17692
17693lt_aix_libpath_sed='
17694    /Import File Strings/,/^$/ {
17695	/^0/ {
17696	    s/^0  *\(.*\)$/\1/
17697	    p
17698	}
17699    }'
17700aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17701# Check for a 64-bit object if we didn't find anything.
17702if test -z "$aix_libpath"; then
17703  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17704fi
17705else
17706  echo "$as_me: failed program was:" >&5
17707sed 's/^/| /' conftest.$ac_ext >&5
17708
17709
17710fi
17711
17712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17713      conftest$ac_exeext conftest.$ac_ext
17714if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17715
17716	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17717	  # Warning - without using the other run time loading flags,
17718	  # -berok will link without error, but may produce a broken library.
17719	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17720	  allow_undefined_flag_GCJ=' ${wl}-berok'
17721	  # Exported symbols can be pulled into shared objects from archives
17722	  whole_archive_flag_spec_GCJ='$convenience'
17723	  archive_cmds_need_lc_GCJ=yes
17724	  # This is similar to how AIX traditionally builds its shared libraries.
17725	  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'
17726	fi
17727      fi
17728      ;;
17729
17730    amigaos*)
17731      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)'
17732      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17733      hardcode_minus_L_GCJ=yes
17734      # see comment about different semantics on the GNU ld section
17735      ld_shlibs_GCJ=no
17736      ;;
17737
17738    bsdi[45]*)
17739      export_dynamic_flag_spec_GCJ=-rdynamic
17740      ;;
17741
17742    cygwin* | mingw* | pw32*)
17743      # When not using gcc, we currently assume that we are using
17744      # Microsoft Visual C++.
17745      # hardcode_libdir_flag_spec is actually meaningless, as there is
17746      # no search path for DLLs.
17747      hardcode_libdir_flag_spec_GCJ=' '
17748      allow_undefined_flag_GCJ=unsupported
17749      # Tell ltmain to make .lib files, not .a files.
17750      libext=lib
17751      # Tell ltmain to make .dll files, not .so files.
17752      shrext_cmds=".dll"
17753      # FIXME: Setting linknames here is a bad hack.
17754      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17755      # The linker will automatically build a .lib file if we build a DLL.
17756      old_archive_From_new_cmds_GCJ='true'
17757      # FIXME: Should let the user specify the lib program.
17758      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17759      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17760      enable_shared_with_static_runtimes_GCJ=yes
17761      ;;
17762
17763    darwin* | rhapsody*)
17764      case $host_os in
17765        rhapsody* | darwin1.[012])
17766         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17767         ;;
17768       *) # Darwin 1.3 on
17769         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17770           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17771         else
17772           case ${MACOSX_DEPLOYMENT_TARGET} in
17773             10.[012])
17774               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17775               ;;
17776             10.*)
17777               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17778               ;;
17779           esac
17780         fi
17781         ;;
17782      esac
17783      archive_cmds_need_lc_GCJ=no
17784      hardcode_direct_GCJ=no
17785      hardcode_automatic_GCJ=yes
17786      hardcode_shlibpath_var_GCJ=unsupported
17787      whole_archive_flag_spec_GCJ=''
17788      link_all_deplibs_GCJ=yes
17789    if test "$GCC" = yes ; then
17790    	output_verbose_link_cmd='echo'
17791        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17792        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17793        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17794        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17795    else
17796      case $cc_basename in
17797        xlc*)
17798         output_verbose_link_cmd='echo'
17799         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17800         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17801          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17802         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17803          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}'
17804          ;;
17805       *)
17806         ld_shlibs_GCJ=no
17807          ;;
17808      esac
17809    fi
17810      ;;
17811
17812    dgux*)
17813      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17814      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17815      hardcode_shlibpath_var_GCJ=no
17816      ;;
17817
17818    freebsd1*)
17819      ld_shlibs_GCJ=no
17820      ;;
17821
17822    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17823    # support.  Future versions do this automatically, but an explicit c++rt0.o
17824    # does not break anything, and helps significantly (at the cost of a little
17825    # extra space).
17826    freebsd2.2*)
17827      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17828      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17829      hardcode_direct_GCJ=yes
17830      hardcode_shlibpath_var_GCJ=no
17831      ;;
17832
17833    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17834    freebsd2*)
17835      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17836      hardcode_direct_GCJ=yes
17837      hardcode_minus_L_GCJ=yes
17838      hardcode_shlibpath_var_GCJ=no
17839      ;;
17840
17841    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17842    freebsd* | dragonfly*)
17843      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17844      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17845      hardcode_direct_GCJ=yes
17846      hardcode_shlibpath_var_GCJ=no
17847      ;;
17848
17849    hpux9*)
17850      if test "$GCC" = yes; then
17851	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'
17852      else
17853	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'
17854      fi
17855      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17856      hardcode_libdir_separator_GCJ=:
17857      hardcode_direct_GCJ=yes
17858
17859      # hardcode_minus_L: Not really in the search PATH,
17860      # but as the default location of the library.
17861      hardcode_minus_L_GCJ=yes
17862      export_dynamic_flag_spec_GCJ='${wl}-E'
17863      ;;
17864
17865    hpux10*)
17866      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17867	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17868      else
17869	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17870      fi
17871      if test "$with_gnu_ld" = no; then
17872	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17873	hardcode_libdir_separator_GCJ=:
17874
17875	hardcode_direct_GCJ=yes
17876	export_dynamic_flag_spec_GCJ='${wl}-E'
17877
17878	# hardcode_minus_L: Not really in the search PATH,
17879	# but as the default location of the library.
17880	hardcode_minus_L_GCJ=yes
17881      fi
17882      ;;
17883
17884    hpux11*)
17885      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17886	case $host_cpu in
17887	hppa*64*)
17888	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17889	  ;;
17890	ia64*)
17891	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17892	  ;;
17893	*)
17894	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17895	  ;;
17896	esac
17897      else
17898	case $host_cpu in
17899	hppa*64*)
17900	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17901	  ;;
17902	ia64*)
17903	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17904	  ;;
17905	*)
17906	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17907	  ;;
17908	esac
17909      fi
17910      if test "$with_gnu_ld" = no; then
17911	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17912	hardcode_libdir_separator_GCJ=:
17913
17914	case $host_cpu in
17915	hppa*64*|ia64*)
17916	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17917	  hardcode_direct_GCJ=no
17918	  hardcode_shlibpath_var_GCJ=no
17919	  ;;
17920	*)
17921	  hardcode_direct_GCJ=yes
17922	  export_dynamic_flag_spec_GCJ='${wl}-E'
17923
17924	  # hardcode_minus_L: Not really in the search PATH,
17925	  # but as the default location of the library.
17926	  hardcode_minus_L_GCJ=yes
17927	  ;;
17928	esac
17929      fi
17930      ;;
17931
17932    irix5* | irix6* | nonstopux*)
17933      if test "$GCC" = yes; then
17934	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'
17935      else
17936	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'
17937	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17938      fi
17939      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17940      hardcode_libdir_separator_GCJ=:
17941      link_all_deplibs_GCJ=yes
17942      ;;
17943
17944    netbsd* | netbsdelf*-gnu)
17945      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17946	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17947      else
17948	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17949      fi
17950      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17951      hardcode_direct_GCJ=yes
17952      hardcode_shlibpath_var_GCJ=no
17953      ;;
17954
17955    newsos6)
17956      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17957      hardcode_direct_GCJ=yes
17958      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17959      hardcode_libdir_separator_GCJ=:
17960      hardcode_shlibpath_var_GCJ=no
17961      ;;
17962
17963    openbsd*)
17964      if test -f /usr/libexec/ld.so; then
17965	hardcode_direct_GCJ=yes
17966	hardcode_shlibpath_var_GCJ=no
17967	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17968	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17969	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17970	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17971	  export_dynamic_flag_spec_GCJ='${wl}-E'
17972	else
17973	  case $host_os in
17974	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17975	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17976	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
17977	     ;;
17978	   *)
17979	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17980	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17981	     ;;
17982	  esac
17983        fi
17984      else
17985	ld_shlibs_GCJ=no
17986      fi
17987      ;;
17988
17989    os2*)
17990      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17991      hardcode_minus_L_GCJ=yes
17992      allow_undefined_flag_GCJ=unsupported
17993      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'
17994      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17995      ;;
17996
17997    osf3*)
17998      if test "$GCC" = yes; then
17999	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18000	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'
18001      else
18002	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18003	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'
18004      fi
18005      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18006      hardcode_libdir_separator_GCJ=:
18007      ;;
18008
18009    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18010      if test "$GCC" = yes; then
18011	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18012	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'
18013	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18014      else
18015	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18016	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'
18017	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~
18018	$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'
18019
18020	# Both c and cxx compiler support -rpath directly
18021	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18022      fi
18023      hardcode_libdir_separator_GCJ=:
18024      ;;
18025
18026    solaris*)
18027      no_undefined_flag_GCJ=' -z text'
18028      if test "$GCC" = yes; then
18029	wlarc='${wl}'
18030	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18031	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18032	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18033      else
18034	wlarc=''
18035	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18036	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18037  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18038      fi
18039      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18040      hardcode_shlibpath_var_GCJ=no
18041      case $host_os in
18042      solaris2.[0-5] | solaris2.[0-5].*) ;;
18043      *)
18044	# The compiler driver will combine and reorder linker options,
18045	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18046	# but is careful enough not to reorder.
18047 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18048	if test "$GCC" = yes; then
18049	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18050	else
18051	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18052	fi
18053	;;
18054      esac
18055      link_all_deplibs_GCJ=yes
18056      ;;
18057
18058    sunos4*)
18059      if test "x$host_vendor" = xsequent; then
18060	# Use $CC to link under sequent, because it throws in some extra .o
18061	# files that make .init and .fini sections work.
18062	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18063      else
18064	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18065      fi
18066      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18067      hardcode_direct_GCJ=yes
18068      hardcode_minus_L_GCJ=yes
18069      hardcode_shlibpath_var_GCJ=no
18070      ;;
18071
18072    sysv4)
18073      case $host_vendor in
18074	sni)
18075	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18076	  hardcode_direct_GCJ=yes # is this really true???
18077	;;
18078	siemens)
18079	  ## LD is ld it makes a PLAMLIB
18080	  ## CC just makes a GrossModule.
18081	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18082	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18083	  hardcode_direct_GCJ=no
18084        ;;
18085	motorola)
18086	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18087	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18088	;;
18089      esac
18090      runpath_var='LD_RUN_PATH'
18091      hardcode_shlibpath_var_GCJ=no
18092      ;;
18093
18094    sysv4.3*)
18095      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18096      hardcode_shlibpath_var_GCJ=no
18097      export_dynamic_flag_spec_GCJ='-Bexport'
18098      ;;
18099
18100    sysv4*MP*)
18101      if test -d /usr/nec; then
18102	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18103	hardcode_shlibpath_var_GCJ=no
18104	runpath_var=LD_RUN_PATH
18105	hardcode_runpath_var=yes
18106	ld_shlibs_GCJ=yes
18107      fi
18108      ;;
18109
18110    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18111      no_undefined_flag_GCJ='${wl}-z,text'
18112      archive_cmds_need_lc_GCJ=no
18113      hardcode_shlibpath_var_GCJ=no
18114      runpath_var='LD_RUN_PATH'
18115
18116      if test "$GCC" = yes; then
18117	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18118	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18119      else
18120	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18121	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18122      fi
18123      ;;
18124
18125    sysv5* | sco3.2v5* | sco5v6*)
18126      # Note: We can NOT use -z defs as we might desire, because we do not
18127      # link with -lc, and that would cause any symbols used from libc to
18128      # always be unresolved, which means just about no library would
18129      # ever link correctly.  If we're not using GNU ld we use -z text
18130      # though, which does catch some bad symbols but isn't as heavy-handed
18131      # as -z defs.
18132      no_undefined_flag_GCJ='${wl}-z,text'
18133      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18134      archive_cmds_need_lc_GCJ=no
18135      hardcode_shlibpath_var_GCJ=no
18136      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18137      hardcode_libdir_separator_GCJ=':'
18138      link_all_deplibs_GCJ=yes
18139      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18140      runpath_var='LD_RUN_PATH'
18141
18142      if test "$GCC" = yes; then
18143	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18144	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18145      else
18146	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18147	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18148      fi
18149      ;;
18150
18151    uts4*)
18152      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18153      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18154      hardcode_shlibpath_var_GCJ=no
18155      ;;
18156
18157    *)
18158      ld_shlibs_GCJ=no
18159      ;;
18160    esac
18161  fi
18162
18163{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18164echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18165test "$ld_shlibs_GCJ" = no && can_build_shared=no
18166
18167#
18168# Do we need to explicitly link libc?
18169#
18170case "x$archive_cmds_need_lc_GCJ" in
18171x|xyes)
18172  # Assume -lc should be added
18173  archive_cmds_need_lc_GCJ=yes
18174
18175  if test "$enable_shared" = yes && test "$GCC" = yes; then
18176    case $archive_cmds_GCJ in
18177    *'~'*)
18178      # FIXME: we may have to deal with multi-command sequences.
18179      ;;
18180    '$CC '*)
18181      # Test whether the compiler implicitly links with -lc since on some
18182      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18183      # to ld, don't add -lc before -lgcc.
18184      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18185echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18186      $rm conftest*
18187      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18188
18189      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18190  (eval $ac_compile) 2>&5
18191  ac_status=$?
18192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193  (exit $ac_status); } 2>conftest.err; then
18194        soname=conftest
18195        lib=conftest
18196        libobjs=conftest.$ac_objext
18197        deplibs=
18198        wl=$lt_prog_compiler_wl_GCJ
18199	pic_flag=$lt_prog_compiler_pic_GCJ
18200        compiler_flags=-v
18201        linker_flags=-v
18202        verstring=
18203        output_objdir=.
18204        libname=conftest
18205        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18206        allow_undefined_flag_GCJ=
18207        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18208  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18209  ac_status=$?
18210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211  (exit $ac_status); }
18212        then
18213	  archive_cmds_need_lc_GCJ=no
18214        else
18215	  archive_cmds_need_lc_GCJ=yes
18216        fi
18217        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18218      else
18219        cat conftest.err 1>&5
18220      fi
18221      $rm conftest*
18222      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18223echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18224      ;;
18225    esac
18226  fi
18227  ;;
18228esac
18229
18230{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18231echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18232library_names_spec=
18233libname_spec='lib$name'
18234soname_spec=
18235shrext_cmds=".so"
18236postinstall_cmds=
18237postuninstall_cmds=
18238finish_cmds=
18239finish_eval=
18240shlibpath_var=
18241shlibpath_overrides_runpath=unknown
18242version_type=none
18243dynamic_linker="$host_os ld.so"
18244sys_lib_dlsearch_path_spec="/lib /usr/lib"
18245
18246need_lib_prefix=unknown
18247hardcode_into_libs=no
18248
18249# when you set need_version to no, make sure it does not cause -set_version
18250# flags to be left without arguments
18251need_version=unknown
18252
18253case $host_os in
18254aix3*)
18255  version_type=linux
18256  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18257  shlibpath_var=LIBPATH
18258
18259  # AIX 3 has no versioning support, so we append a major version to the name.
18260  soname_spec='${libname}${release}${shared_ext}$major'
18261  ;;
18262
18263aix[4-9]*)
18264  version_type=linux
18265  need_lib_prefix=no
18266  need_version=no
18267  hardcode_into_libs=yes
18268  if test "$host_cpu" = ia64; then
18269    # AIX 5 supports IA64
18270    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18271    shlibpath_var=LD_LIBRARY_PATH
18272  else
18273    # With GCC up to 2.95.x, collect2 would create an import file
18274    # for dependence libraries.  The import file would start with
18275    # the line `#! .'.  This would cause the generated library to
18276    # depend on `.', always an invalid library.  This was fixed in
18277    # development snapshots of GCC prior to 3.0.
18278    case $host_os in
18279      aix4 | aix4.[01] | aix4.[01].*)
18280      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18281	   echo ' yes '
18282	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18283	:
18284      else
18285	can_build_shared=no
18286      fi
18287      ;;
18288    esac
18289    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18290    # soname into executable. Probably we can add versioning support to
18291    # collect2, so additional links can be useful in future.
18292    if test "$aix_use_runtimelinking" = yes; then
18293      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18294      # instead of lib<name>.a to let people know that these are not
18295      # typical AIX shared libraries.
18296      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18297    else
18298      # We preserve .a as extension for shared libraries through AIX4.2
18299      # and later when we are not doing run time linking.
18300      library_names_spec='${libname}${release}.a $libname.a'
18301      soname_spec='${libname}${release}${shared_ext}$major'
18302    fi
18303    shlibpath_var=LIBPATH
18304  fi
18305  ;;
18306
18307amigaos*)
18308  library_names_spec='$libname.ixlibrary $libname.a'
18309  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18310  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'
18311  ;;
18312
18313beos*)
18314  library_names_spec='${libname}${shared_ext}'
18315  dynamic_linker="$host_os ld.so"
18316  shlibpath_var=LIBRARY_PATH
18317  ;;
18318
18319bsdi[45]*)
18320  version_type=linux
18321  need_version=no
18322  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18323  soname_spec='${libname}${release}${shared_ext}$major'
18324  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18325  shlibpath_var=LD_LIBRARY_PATH
18326  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18327  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18328  # the default ld.so.conf also contains /usr/contrib/lib and
18329  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18330  # libtool to hard-code these into programs
18331  ;;
18332
18333cygwin* | mingw* | pw32*)
18334  version_type=windows
18335  shrext_cmds=".dll"
18336  need_version=no
18337  need_lib_prefix=no
18338
18339  case $GCC,$host_os in
18340  yes,cygwin* | yes,mingw* | yes,pw32*)
18341    library_names_spec='$libname.dll.a'
18342    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18343    postinstall_cmds='base_file=`basename \${file}`~
18344      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18345      dldir=$destdir/`dirname \$dlpath`~
18346      test -d \$dldir || mkdir -p \$dldir~
18347      $install_prog $dir/$dlname \$dldir/$dlname~
18348      chmod a+x \$dldir/$dlname'
18349    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18350      dlpath=$dir/\$dldll~
18351       $rm \$dlpath'
18352    shlibpath_overrides_runpath=yes
18353
18354    case $host_os in
18355    cygwin*)
18356      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18357      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18358      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18359      ;;
18360    mingw*)
18361      # MinGW DLLs use traditional 'lib' prefix
18362      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18363      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18364      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18365        # It is most probably a Windows format PATH printed by
18366        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18367        # path with ; separators, and with drive letters. We can handle the
18368        # drive letters (cygwin fileutils understands them), so leave them,
18369        # especially as we might pass files found there to a mingw objdump,
18370        # which wouldn't understand a cygwinified path. Ahh.
18371        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18372      else
18373        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18374      fi
18375      ;;
18376    pw32*)
18377      # pw32 DLLs use 'pw' prefix rather than 'lib'
18378      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18379      ;;
18380    esac
18381    ;;
18382
18383  *)
18384    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18385    ;;
18386  esac
18387  dynamic_linker='Win32 ld.exe'
18388  # FIXME: first we should search . and the directory the executable is in
18389  shlibpath_var=PATH
18390  ;;
18391
18392darwin* | rhapsody*)
18393  dynamic_linker="$host_os dyld"
18394  version_type=darwin
18395  need_lib_prefix=no
18396  need_version=no
18397  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18398  soname_spec='${libname}${release}${major}$shared_ext'
18399  shlibpath_overrides_runpath=yes
18400  shlibpath_var=DYLD_LIBRARY_PATH
18401  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18402
18403  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18404  ;;
18405
18406dgux*)
18407  version_type=linux
18408  need_lib_prefix=no
18409  need_version=no
18410  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18411  soname_spec='${libname}${release}${shared_ext}$major'
18412  shlibpath_var=LD_LIBRARY_PATH
18413  ;;
18414
18415freebsd1*)
18416  dynamic_linker=no
18417  ;;
18418
18419freebsd* | dragonfly*)
18420  # DragonFly does not have aout.  When/if they implement a new
18421  # versioning mechanism, adjust this.
18422  if test -x /usr/bin/objformat; then
18423    objformat=`/usr/bin/objformat`
18424  else
18425    case $host_os in
18426    freebsd[123]*) objformat=aout ;;
18427    *) objformat=elf ;;
18428    esac
18429  fi
18430  version_type=freebsd-$objformat
18431  case $version_type in
18432    freebsd-elf*)
18433      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18434      need_version=no
18435      need_lib_prefix=no
18436      ;;
18437    freebsd-*)
18438      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18439      need_version=yes
18440      ;;
18441  esac
18442  shlibpath_var=LD_LIBRARY_PATH
18443  case $host_os in
18444  freebsd2*)
18445    shlibpath_overrides_runpath=yes
18446    ;;
18447  freebsd3.[01]* | freebsdelf3.[01]*)
18448    shlibpath_overrides_runpath=yes
18449    hardcode_into_libs=yes
18450    ;;
18451  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18452  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18453    shlibpath_overrides_runpath=no
18454    hardcode_into_libs=yes
18455    ;;
18456  *) # from 4.6 on, and DragonFly
18457    shlibpath_overrides_runpath=yes
18458    hardcode_into_libs=yes
18459    ;;
18460  esac
18461  ;;
18462
18463gnu*)
18464  version_type=linux
18465  need_lib_prefix=no
18466  need_version=no
18467  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18468  soname_spec='${libname}${release}${shared_ext}$major'
18469  shlibpath_var=LD_LIBRARY_PATH
18470  hardcode_into_libs=yes
18471  ;;
18472
18473hpux9* | hpux10* | hpux11*)
18474  # Give a soname corresponding to the major version so that dld.sl refuses to
18475  # link against other versions.
18476  version_type=sunos
18477  need_lib_prefix=no
18478  need_version=no
18479  case $host_cpu in
18480  ia64*)
18481    shrext_cmds='.so'
18482    hardcode_into_libs=yes
18483    dynamic_linker="$host_os dld.so"
18484    shlibpath_var=LD_LIBRARY_PATH
18485    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18486    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18487    soname_spec='${libname}${release}${shared_ext}$major'
18488    if test "X$HPUX_IA64_MODE" = X32; then
18489      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18490    else
18491      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18492    fi
18493    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18494    ;;
18495   hppa*64*)
18496     shrext_cmds='.sl'
18497     hardcode_into_libs=yes
18498     dynamic_linker="$host_os dld.sl"
18499     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18500     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18501     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18502     soname_spec='${libname}${release}${shared_ext}$major'
18503     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18504     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18505     ;;
18506   *)
18507    shrext_cmds='.sl'
18508    dynamic_linker="$host_os dld.sl"
18509    shlibpath_var=SHLIB_PATH
18510    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18511    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18512    soname_spec='${libname}${release}${shared_ext}$major'
18513    ;;
18514  esac
18515  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18516  postinstall_cmds='chmod 555 $lib'
18517  ;;
18518
18519interix[3-9]*)
18520  version_type=linux
18521  need_lib_prefix=no
18522  need_version=no
18523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18524  soname_spec='${libname}${release}${shared_ext}$major'
18525  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18526  shlibpath_var=LD_LIBRARY_PATH
18527  shlibpath_overrides_runpath=no
18528  hardcode_into_libs=yes
18529  ;;
18530
18531irix5* | irix6* | nonstopux*)
18532  case $host_os in
18533    nonstopux*) version_type=nonstopux ;;
18534    *)
18535	if test "$lt_cv_prog_gnu_ld" = yes; then
18536		version_type=linux
18537	else
18538		version_type=irix
18539	fi ;;
18540  esac
18541  need_lib_prefix=no
18542  need_version=no
18543  soname_spec='${libname}${release}${shared_ext}$major'
18544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18545  case $host_os in
18546  irix5* | nonstopux*)
18547    libsuff= shlibsuff=
18548    ;;
18549  *)
18550    case $LD in # libtool.m4 will add one of these switches to LD
18551    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18552      libsuff= shlibsuff= libmagic=32-bit;;
18553    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18554      libsuff=32 shlibsuff=N32 libmagic=N32;;
18555    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18556      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18557    *) libsuff= shlibsuff= libmagic=never-match;;
18558    esac
18559    ;;
18560  esac
18561  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18562  shlibpath_overrides_runpath=no
18563  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18564  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18565  hardcode_into_libs=yes
18566  ;;
18567
18568# No shared lib support for Linux oldld, aout, or coff.
18569linux*oldld* | linux*aout* | linux*coff*)
18570  dynamic_linker=no
18571  ;;
18572
18573# This must be Linux ELF.
18574linux* | k*bsd*-gnu)
18575  version_type=linux
18576  need_lib_prefix=no
18577  need_version=no
18578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18579  soname_spec='${libname}${release}${shared_ext}$major'
18580  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18581  shlibpath_var=LD_LIBRARY_PATH
18582  shlibpath_overrides_runpath=no
18583  # This implies no fast_install, which is unacceptable.
18584  # Some rework will be needed to allow for fast_install
18585  # before this can be enabled.
18586  hardcode_into_libs=yes
18587
18588  # Append ld.so.conf contents to the search path
18589  if test -f /etc/ld.so.conf; then
18590    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18591    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18592  fi
18593
18594  # We used to test for /lib/ld.so.1 and disable shared libraries on
18595  # powerpc, because MkLinux only supported shared libraries with the
18596  # GNU dynamic linker.  Since this was broken with cross compilers,
18597  # most powerpc-linux boxes support dynamic linking these days and
18598  # people can always --disable-shared, the test was removed, and we
18599  # assume the GNU/Linux dynamic linker is in use.
18600  dynamic_linker='GNU/Linux ld.so'
18601  ;;
18602
18603netbsdelf*-gnu)
18604  version_type=linux
18605  need_lib_prefix=no
18606  need_version=no
18607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18608  soname_spec='${libname}${release}${shared_ext}$major'
18609  shlibpath_var=LD_LIBRARY_PATH
18610  shlibpath_overrides_runpath=no
18611  hardcode_into_libs=yes
18612  dynamic_linker='NetBSD ld.elf_so'
18613  ;;
18614
18615netbsd*)
18616  version_type=sunos
18617  need_lib_prefix=no
18618  need_version=no
18619  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18620    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18621    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18622    dynamic_linker='NetBSD (a.out) ld.so'
18623  else
18624    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18625    soname_spec='${libname}${release}${shared_ext}$major'
18626    dynamic_linker='NetBSD ld.elf_so'
18627  fi
18628  shlibpath_var=LD_LIBRARY_PATH
18629  shlibpath_overrides_runpath=yes
18630  hardcode_into_libs=yes
18631  ;;
18632
18633newsos6)
18634  version_type=linux
18635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18636  shlibpath_var=LD_LIBRARY_PATH
18637  shlibpath_overrides_runpath=yes
18638  ;;
18639
18640nto-qnx*)
18641  version_type=linux
18642  need_lib_prefix=no
18643  need_version=no
18644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18645  soname_spec='${libname}${release}${shared_ext}$major'
18646  shlibpath_var=LD_LIBRARY_PATH
18647  shlibpath_overrides_runpath=yes
18648  ;;
18649
18650openbsd*)
18651  version_type=sunos
18652  sys_lib_dlsearch_path_spec="/usr/lib"
18653  need_lib_prefix=no
18654  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18655  case $host_os in
18656    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18657    *)                         need_version=no  ;;
18658  esac
18659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18660  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18661  shlibpath_var=LD_LIBRARY_PATH
18662  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18663    case $host_os in
18664      openbsd2.[89] | openbsd2.[89].*)
18665	shlibpath_overrides_runpath=no
18666	;;
18667      *)
18668	shlibpath_overrides_runpath=yes
18669	;;
18670      esac
18671  else
18672    shlibpath_overrides_runpath=yes
18673  fi
18674  ;;
18675
18676os2*)
18677  libname_spec='$name'
18678  shrext_cmds=".dll"
18679  need_lib_prefix=no
18680  library_names_spec='$libname${shared_ext} $libname.a'
18681  dynamic_linker='OS/2 ld.exe'
18682  shlibpath_var=LIBPATH
18683  ;;
18684
18685osf3* | osf4* | osf5*)
18686  version_type=osf
18687  need_lib_prefix=no
18688  need_version=no
18689  soname_spec='${libname}${release}${shared_ext}$major'
18690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691  shlibpath_var=LD_LIBRARY_PATH
18692  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18693  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18694  ;;
18695
18696rdos*)
18697  dynamic_linker=no
18698  ;;
18699
18700solaris*)
18701  version_type=linux
18702  need_lib_prefix=no
18703  need_version=no
18704  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18705  soname_spec='${libname}${release}${shared_ext}$major'
18706  shlibpath_var=LD_LIBRARY_PATH
18707  shlibpath_overrides_runpath=yes
18708  hardcode_into_libs=yes
18709  # ldd complains unless libraries are executable
18710  postinstall_cmds='chmod +x $lib'
18711  ;;
18712
18713sunos4*)
18714  version_type=sunos
18715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18716  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18717  shlibpath_var=LD_LIBRARY_PATH
18718  shlibpath_overrides_runpath=yes
18719  if test "$with_gnu_ld" = yes; then
18720    need_lib_prefix=no
18721  fi
18722  need_version=yes
18723  ;;
18724
18725sysv4 | sysv4.3*)
18726  version_type=linux
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  case $host_vendor in
18731    sni)
18732      shlibpath_overrides_runpath=no
18733      need_lib_prefix=no
18734      export_dynamic_flag_spec='${wl}-Blargedynsym'
18735      runpath_var=LD_RUN_PATH
18736      ;;
18737    siemens)
18738      need_lib_prefix=no
18739      ;;
18740    motorola)
18741      need_lib_prefix=no
18742      need_version=no
18743      shlibpath_overrides_runpath=no
18744      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18745      ;;
18746  esac
18747  ;;
18748
18749sysv4*MP*)
18750  if test -d /usr/nec ;then
18751    version_type=linux
18752    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18753    soname_spec='$libname${shared_ext}.$major'
18754    shlibpath_var=LD_LIBRARY_PATH
18755  fi
18756  ;;
18757
18758sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18759  version_type=freebsd-elf
18760  need_lib_prefix=no
18761  need_version=no
18762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18763  soname_spec='${libname}${release}${shared_ext}$major'
18764  shlibpath_var=LD_LIBRARY_PATH
18765  hardcode_into_libs=yes
18766  if test "$with_gnu_ld" = yes; then
18767    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18768    shlibpath_overrides_runpath=no
18769  else
18770    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18771    shlibpath_overrides_runpath=yes
18772    case $host_os in
18773      sco3.2v5*)
18774        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18775	;;
18776    esac
18777  fi
18778  sys_lib_dlsearch_path_spec='/usr/lib'
18779  ;;
18780
18781uts4*)
18782  version_type=linux
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  ;;
18787
18788*)
18789  dynamic_linker=no
18790  ;;
18791esac
18792{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18793echo "${ECHO_T}$dynamic_linker" >&6; }
18794test "$dynamic_linker" = no && can_build_shared=no
18795
18796if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18797  echo $ECHO_N "(cached) $ECHO_C" >&6
18798else
18799  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18800fi
18801
18802sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18803if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18804  echo $ECHO_N "(cached) $ECHO_C" >&6
18805else
18806  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18807fi
18808
18809sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18810
18811variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18812if test "$GCC" = yes; then
18813  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18814fi
18815
18816{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18817echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18818hardcode_action_GCJ=
18819if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18820   test -n "$runpath_var_GCJ" || \
18821   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18822
18823  # We can hardcode non-existant directories.
18824  if test "$hardcode_direct_GCJ" != no &&
18825     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18826     # have to relink, otherwise we might link with an installed library
18827     # when we should be linking with a yet-to-be-installed one
18828     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18829     test "$hardcode_minus_L_GCJ" != no; then
18830    # Linking always hardcodes the temporary library directory.
18831    hardcode_action_GCJ=relink
18832  else
18833    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18834    hardcode_action_GCJ=immediate
18835  fi
18836else
18837  # We cannot hardcode anything, or else we can only hardcode existing
18838  # directories.
18839  hardcode_action_GCJ=unsupported
18840fi
18841{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18842echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18843
18844if test "$hardcode_action_GCJ" = relink; then
18845  # Fast installation is not supported
18846  enable_fast_install=no
18847elif test "$shlibpath_overrides_runpath" = yes ||
18848     test "$enable_shared" = no; then
18849  # Fast installation is not necessary
18850  enable_fast_install=needless
18851fi
18852
18853
18854# The else clause should only fire when bootstrapping the
18855# libtool distribution, otherwise you forgot to ship ltmain.sh
18856# with your package, and you will get complaints that there are
18857# no rules to generate ltmain.sh.
18858if test -f "$ltmain"; then
18859  # See if we are running on zsh, and set the options which allow our commands through
18860  # without removal of \ escapes.
18861  if test -n "${ZSH_VERSION+set}" ; then
18862    setopt NO_GLOB_SUBST
18863  fi
18864  # Now quote all the things that may contain metacharacters while being
18865  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18866  # variables and quote the copies for generation of the libtool script.
18867  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18868    SED SHELL STRIP \
18869    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18870    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18871    deplibs_check_method reload_flag reload_cmds need_locks \
18872    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18873    lt_cv_sys_global_symbol_to_c_name_address \
18874    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18875    old_postinstall_cmds old_postuninstall_cmds \
18876    compiler_GCJ \
18877    CC_GCJ \
18878    LD_GCJ \
18879    lt_prog_compiler_wl_GCJ \
18880    lt_prog_compiler_pic_GCJ \
18881    lt_prog_compiler_static_GCJ \
18882    lt_prog_compiler_no_builtin_flag_GCJ \
18883    export_dynamic_flag_spec_GCJ \
18884    thread_safe_flag_spec_GCJ \
18885    whole_archive_flag_spec_GCJ \
18886    enable_shared_with_static_runtimes_GCJ \
18887    old_archive_cmds_GCJ \
18888    old_archive_from_new_cmds_GCJ \
18889    predep_objects_GCJ \
18890    postdep_objects_GCJ \
18891    predeps_GCJ \
18892    postdeps_GCJ \
18893    compiler_lib_search_path_GCJ \
18894    compiler_lib_search_dirs_GCJ \
18895    archive_cmds_GCJ \
18896    archive_expsym_cmds_GCJ \
18897    postinstall_cmds_GCJ \
18898    postuninstall_cmds_GCJ \
18899    old_archive_from_expsyms_cmds_GCJ \
18900    allow_undefined_flag_GCJ \
18901    no_undefined_flag_GCJ \
18902    export_symbols_cmds_GCJ \
18903    hardcode_libdir_flag_spec_GCJ \
18904    hardcode_libdir_flag_spec_ld_GCJ \
18905    hardcode_libdir_separator_GCJ \
18906    hardcode_automatic_GCJ \
18907    module_cmds_GCJ \
18908    module_expsym_cmds_GCJ \
18909    lt_cv_prog_compiler_c_o_GCJ \
18910    fix_srcfile_path_GCJ \
18911    exclude_expsyms_GCJ \
18912    include_expsyms_GCJ; do
18913
18914    case $var in
18915    old_archive_cmds_GCJ | \
18916    old_archive_from_new_cmds_GCJ | \
18917    archive_cmds_GCJ | \
18918    archive_expsym_cmds_GCJ | \
18919    module_cmds_GCJ | \
18920    module_expsym_cmds_GCJ | \
18921    old_archive_from_expsyms_cmds_GCJ | \
18922    export_symbols_cmds_GCJ | \
18923    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18924    postinstall_cmds | postuninstall_cmds | \
18925    old_postinstall_cmds | old_postuninstall_cmds | \
18926    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18927      # Double-quote double-evaled strings.
18928      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18929      ;;
18930    *)
18931      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18932      ;;
18933    esac
18934  done
18935
18936  case $lt_echo in
18937  *'\$0 --fallback-echo"')
18938    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18939    ;;
18940  esac
18941
18942cfgfile="$ofile"
18943
18944  cat <<__EOF__ >> "$cfgfile"
18945# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18946
18947# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18948
18949# Shell to use when invoking shell scripts.
18950SHELL=$lt_SHELL
18951
18952# Whether or not to build shared libraries.
18953build_libtool_libs=$enable_shared
18954
18955# Whether or not to build static libraries.
18956build_old_libs=$enable_static
18957
18958# Whether or not to add -lc for building shared libraries.
18959build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18960
18961# Whether or not to disallow shared libs when runtime libs are static
18962allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18963
18964# Whether or not to optimize for fast installation.
18965fast_install=$enable_fast_install
18966
18967# The host system.
18968host_alias=$host_alias
18969host=$host
18970host_os=$host_os
18971
18972# The build system.
18973build_alias=$build_alias
18974build=$build
18975build_os=$build_os
18976
18977# An echo program that does not interpret backslashes.
18978echo=$lt_echo
18979
18980# The archiver.
18981AR=$lt_AR
18982AR_FLAGS=$lt_AR_FLAGS
18983
18984# A C compiler.
18985LTCC=$lt_LTCC
18986
18987# LTCC compiler flags.
18988LTCFLAGS=$lt_LTCFLAGS
18989
18990# A language-specific compiler.
18991CC=$lt_compiler_GCJ
18992
18993# Is the compiler the GNU C compiler?
18994with_gcc=$GCC_GCJ
18995
18996# An ERE matcher.
18997EGREP=$lt_EGREP
18998
18999# The linker used to build libraries.
19000LD=$lt_LD_GCJ
19001
19002# Whether we need hard or soft links.
19003LN_S=$lt_LN_S
19004
19005# A BSD-compatible nm program.
19006NM=$lt_NM
19007
19008# A symbol stripping program
19009STRIP=$lt_STRIP
19010
19011# Used to examine libraries when file_magic_cmd begins "file"
19012MAGIC_CMD=$MAGIC_CMD
19013
19014# Used on cygwin: DLL creation program.
19015DLLTOOL="$DLLTOOL"
19016
19017# Used on cygwin: object dumper.
19018OBJDUMP="$OBJDUMP"
19019
19020# Used on cygwin: assembler.
19021AS="$AS"
19022
19023# The name of the directory that contains temporary libtool files.
19024objdir=$objdir
19025
19026# How to create reloadable object files.
19027reload_flag=$lt_reload_flag
19028reload_cmds=$lt_reload_cmds
19029
19030# How to pass a linker flag through the compiler.
19031wl=$lt_lt_prog_compiler_wl_GCJ
19032
19033# Object file suffix (normally "o").
19034objext="$ac_objext"
19035
19036# Old archive suffix (normally "a").
19037libext="$libext"
19038
19039# Shared library suffix (normally ".so").
19040shrext_cmds='$shrext_cmds'
19041
19042# Executable file suffix (normally "").
19043exeext="$exeext"
19044
19045# Additional compiler flags for building library objects.
19046pic_flag=$lt_lt_prog_compiler_pic_GCJ
19047pic_mode=$pic_mode
19048
19049# What is the maximum length of a command?
19050max_cmd_len=$lt_cv_sys_max_cmd_len
19051
19052# Does compiler simultaneously support -c and -o options?
19053compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19054
19055# Must we lock files when doing compilation?
19056need_locks=$lt_need_locks
19057
19058# Do we need the lib prefix for modules?
19059need_lib_prefix=$need_lib_prefix
19060
19061# Do we need a version for libraries?
19062need_version=$need_version
19063
19064# Whether dlopen is supported.
19065dlopen_support=$enable_dlopen
19066
19067# Whether dlopen of programs is supported.
19068dlopen_self=$enable_dlopen_self
19069
19070# Whether dlopen of statically linked programs is supported.
19071dlopen_self_static=$enable_dlopen_self_static
19072
19073# Compiler flag to prevent dynamic linking.
19074link_static_flag=$lt_lt_prog_compiler_static_GCJ
19075
19076# Compiler flag to turn off builtin functions.
19077no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19078
19079# Compiler flag to allow reflexive dlopens.
19080export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19081
19082# Compiler flag to generate shared objects directly from archives.
19083whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19084
19085# Compiler flag to generate thread-safe objects.
19086thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19087
19088# Library versioning type.
19089version_type=$version_type
19090
19091# Format of library name prefix.
19092libname_spec=$lt_libname_spec
19093
19094# List of archive names.  First name is the real one, the rest are links.
19095# The last name is the one that the linker finds with -lNAME.
19096library_names_spec=$lt_library_names_spec
19097
19098# The coded name of the library, if different from the real name.
19099soname_spec=$lt_soname_spec
19100
19101# Commands used to build and install an old-style archive.
19102RANLIB=$lt_RANLIB
19103old_archive_cmds=$lt_old_archive_cmds_GCJ
19104old_postinstall_cmds=$lt_old_postinstall_cmds
19105old_postuninstall_cmds=$lt_old_postuninstall_cmds
19106
19107# Create an old-style archive from a shared archive.
19108old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19109
19110# Create a temporary old-style archive to link instead of a shared archive.
19111old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19112
19113# Commands used to build and install a shared archive.
19114archive_cmds=$lt_archive_cmds_GCJ
19115archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19116postinstall_cmds=$lt_postinstall_cmds
19117postuninstall_cmds=$lt_postuninstall_cmds
19118
19119# Commands used to build a loadable module (assumed same as above if empty)
19120module_cmds=$lt_module_cmds_GCJ
19121module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19122
19123# Commands to strip libraries.
19124old_striplib=$lt_old_striplib
19125striplib=$lt_striplib
19126
19127# Dependencies to place before the objects being linked to create a
19128# shared library.
19129predep_objects=$lt_predep_objects_GCJ
19130
19131# Dependencies to place after the objects being linked to create a
19132# shared library.
19133postdep_objects=$lt_postdep_objects_GCJ
19134
19135# Dependencies to place before the objects being linked to create a
19136# shared library.
19137predeps=$lt_predeps_GCJ
19138
19139# Dependencies to place after the objects being linked to create a
19140# shared library.
19141postdeps=$lt_postdeps_GCJ
19142
19143# The directories searched by this compiler when creating a shared
19144# library
19145compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19146
19147# The library search path used internally by the compiler when linking
19148# a shared library.
19149compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19150
19151# Method to check whether dependent libraries are shared objects.
19152deplibs_check_method=$lt_deplibs_check_method
19153
19154# Command to use when deplibs_check_method == file_magic.
19155file_magic_cmd=$lt_file_magic_cmd
19156
19157# Flag that allows shared libraries with undefined symbols to be built.
19158allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19159
19160# Flag that forces no undefined symbols.
19161no_undefined_flag=$lt_no_undefined_flag_GCJ
19162
19163# Commands used to finish a libtool library installation in a directory.
19164finish_cmds=$lt_finish_cmds
19165
19166# Same as above, but a single script fragment to be evaled but not shown.
19167finish_eval=$lt_finish_eval
19168
19169# Take the output of nm and produce a listing of raw symbols and C names.
19170global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19171
19172# Transform the output of nm in a proper C declaration
19173global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19174
19175# Transform the output of nm in a C name address pair
19176global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19177
19178# This is the shared library runtime path variable.
19179runpath_var=$runpath_var
19180
19181# This is the shared library path variable.
19182shlibpath_var=$shlibpath_var
19183
19184# Is shlibpath searched before the hard-coded library search path?
19185shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19186
19187# How to hardcode a shared library path into an executable.
19188hardcode_action=$hardcode_action_GCJ
19189
19190# Whether we should hardcode library paths into libraries.
19191hardcode_into_libs=$hardcode_into_libs
19192
19193# Flag to hardcode \$libdir into a binary during linking.
19194# This must work even if \$libdir does not exist.
19195hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19196
19197# If ld is used when linking, flag to hardcode \$libdir into
19198# a binary during linking. This must work even if \$libdir does
19199# not exist.
19200hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19201
19202# Whether we need a single -rpath flag with a separated argument.
19203hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19204
19205# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19206# resulting binary.
19207hardcode_direct=$hardcode_direct_GCJ
19208
19209# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19210# resulting binary.
19211hardcode_minus_L=$hardcode_minus_L_GCJ
19212
19213# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19214# the resulting binary.
19215hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19216
19217# Set to yes if building a shared library automatically hardcodes DIR into the library
19218# and all subsequent libraries and executables linked against it.
19219hardcode_automatic=$hardcode_automatic_GCJ
19220
19221# Variables whose values should be saved in libtool wrapper scripts and
19222# restored at relink time.
19223variables_saved_for_relink="$variables_saved_for_relink"
19224
19225# Whether libtool must link a program against all its dependency libraries.
19226link_all_deplibs=$link_all_deplibs_GCJ
19227
19228# Compile-time system search path for libraries
19229sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19230
19231# Run-time system search path for libraries
19232sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19233
19234# Fix the shell variable \$srcfile for the compiler.
19235fix_srcfile_path=$lt_fix_srcfile_path
19236
19237# Set to yes if exported symbols are required.
19238always_export_symbols=$always_export_symbols_GCJ
19239
19240# The commands to list exported symbols.
19241export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19242
19243# The commands to extract the exported symbol list from a shared archive.
19244extract_expsyms_cmds=$lt_extract_expsyms_cmds
19245
19246# Symbols that should not be listed in the preloaded symbols.
19247exclude_expsyms=$lt_exclude_expsyms_GCJ
19248
19249# Symbols that must always be exported.
19250include_expsyms=$lt_include_expsyms_GCJ
19251
19252# ### END LIBTOOL TAG CONFIG: $tagname
19253
19254__EOF__
19255
19256
19257else
19258  # If there is no Makefile yet, we rely on a make rule to execute
19259  # `config.status --recheck' to rerun these tests and create the
19260  # libtool script then.
19261  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19262  if test -f "$ltmain_in"; then
19263    test -f Makefile && make "$ltmain"
19264  fi
19265fi
19266
19267
19268ac_ext=c
19269ac_cpp='$CPP $CPPFLAGS'
19270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19272ac_compiler_gnu=$ac_cv_c_compiler_gnu
19273
19274CC="$lt_save_CC"
19275
19276	else
19277	  tagname=""
19278	fi
19279	;;
19280
19281      RC)
19282
19283
19284# Source file extension for RC test sources.
19285ac_ext=rc
19286
19287# Object file extension for compiled RC test sources.
19288objext=o
19289objext_RC=$objext
19290
19291# Code to be used in simple compile tests
19292lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19293
19294# Code to be used in simple link tests
19295lt_simple_link_test_code="$lt_simple_compile_test_code"
19296
19297# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19298
19299# If no C compiler was specified, use CC.
19300LTCC=${LTCC-"$CC"}
19301
19302# If no C compiler flags were specified, use CFLAGS.
19303LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19304
19305# Allow CC to be a program name with arguments.
19306compiler=$CC
19307
19308
19309# save warnings/boilerplate of simple test code
19310ac_outfile=conftest.$ac_objext
19311echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19312eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19313_lt_compiler_boilerplate=`cat conftest.err`
19314$rm conftest*
19315
19316ac_outfile=conftest.$ac_objext
19317echo "$lt_simple_link_test_code" >conftest.$ac_ext
19318eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19319_lt_linker_boilerplate=`cat conftest.err`
19320$rm -r conftest*
19321
19322
19323# Allow CC to be a program name with arguments.
19324lt_save_CC="$CC"
19325CC=${RC-"windres"}
19326compiler=$CC
19327compiler_RC=$CC
19328for cc_temp in $compiler""; do
19329  case $cc_temp in
19330    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19331    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19332    \-*) ;;
19333    *) break;;
19334  esac
19335done
19336cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19337
19338lt_cv_prog_compiler_c_o_RC=yes
19339
19340# The else clause should only fire when bootstrapping the
19341# libtool distribution, otherwise you forgot to ship ltmain.sh
19342# with your package, and you will get complaints that there are
19343# no rules to generate ltmain.sh.
19344if test -f "$ltmain"; then
19345  # See if we are running on zsh, and set the options which allow our commands through
19346  # without removal of \ escapes.
19347  if test -n "${ZSH_VERSION+set}" ; then
19348    setopt NO_GLOB_SUBST
19349  fi
19350  # Now quote all the things that may contain metacharacters while being
19351  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19352  # variables and quote the copies for generation of the libtool script.
19353  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19354    SED SHELL STRIP \
19355    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19356    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19357    deplibs_check_method reload_flag reload_cmds need_locks \
19358    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19359    lt_cv_sys_global_symbol_to_c_name_address \
19360    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19361    old_postinstall_cmds old_postuninstall_cmds \
19362    compiler_RC \
19363    CC_RC \
19364    LD_RC \
19365    lt_prog_compiler_wl_RC \
19366    lt_prog_compiler_pic_RC \
19367    lt_prog_compiler_static_RC \
19368    lt_prog_compiler_no_builtin_flag_RC \
19369    export_dynamic_flag_spec_RC \
19370    thread_safe_flag_spec_RC \
19371    whole_archive_flag_spec_RC \
19372    enable_shared_with_static_runtimes_RC \
19373    old_archive_cmds_RC \
19374    old_archive_from_new_cmds_RC \
19375    predep_objects_RC \
19376    postdep_objects_RC \
19377    predeps_RC \
19378    postdeps_RC \
19379    compiler_lib_search_path_RC \
19380    compiler_lib_search_dirs_RC \
19381    archive_cmds_RC \
19382    archive_expsym_cmds_RC \
19383    postinstall_cmds_RC \
19384    postuninstall_cmds_RC \
19385    old_archive_from_expsyms_cmds_RC \
19386    allow_undefined_flag_RC \
19387    no_undefined_flag_RC \
19388    export_symbols_cmds_RC \
19389    hardcode_libdir_flag_spec_RC \
19390    hardcode_libdir_flag_spec_ld_RC \
19391    hardcode_libdir_separator_RC \
19392    hardcode_automatic_RC \
19393    module_cmds_RC \
19394    module_expsym_cmds_RC \
19395    lt_cv_prog_compiler_c_o_RC \
19396    fix_srcfile_path_RC \
19397    exclude_expsyms_RC \
19398    include_expsyms_RC; do
19399
19400    case $var in
19401    old_archive_cmds_RC | \
19402    old_archive_from_new_cmds_RC | \
19403    archive_cmds_RC | \
19404    archive_expsym_cmds_RC | \
19405    module_cmds_RC | \
19406    module_expsym_cmds_RC | \
19407    old_archive_from_expsyms_cmds_RC | \
19408    export_symbols_cmds_RC | \
19409    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19410    postinstall_cmds | postuninstall_cmds | \
19411    old_postinstall_cmds | old_postuninstall_cmds | \
19412    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19413      # Double-quote double-evaled strings.
19414      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19415      ;;
19416    *)
19417      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19418      ;;
19419    esac
19420  done
19421
19422  case $lt_echo in
19423  *'\$0 --fallback-echo"')
19424    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19425    ;;
19426  esac
19427
19428cfgfile="$ofile"
19429
19430  cat <<__EOF__ >> "$cfgfile"
19431# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19432
19433# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19434
19435# Shell to use when invoking shell scripts.
19436SHELL=$lt_SHELL
19437
19438# Whether or not to build shared libraries.
19439build_libtool_libs=$enable_shared
19440
19441# Whether or not to build static libraries.
19442build_old_libs=$enable_static
19443
19444# Whether or not to add -lc for building shared libraries.
19445build_libtool_need_lc=$archive_cmds_need_lc_RC
19446
19447# Whether or not to disallow shared libs when runtime libs are static
19448allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19449
19450# Whether or not to optimize for fast installation.
19451fast_install=$enable_fast_install
19452
19453# The host system.
19454host_alias=$host_alias
19455host=$host
19456host_os=$host_os
19457
19458# The build system.
19459build_alias=$build_alias
19460build=$build
19461build_os=$build_os
19462
19463# An echo program that does not interpret backslashes.
19464echo=$lt_echo
19465
19466# The archiver.
19467AR=$lt_AR
19468AR_FLAGS=$lt_AR_FLAGS
19469
19470# A C compiler.
19471LTCC=$lt_LTCC
19472
19473# LTCC compiler flags.
19474LTCFLAGS=$lt_LTCFLAGS
19475
19476# A language-specific compiler.
19477CC=$lt_compiler_RC
19478
19479# Is the compiler the GNU C compiler?
19480with_gcc=$GCC_RC
19481
19482# An ERE matcher.
19483EGREP=$lt_EGREP
19484
19485# The linker used to build libraries.
19486LD=$lt_LD_RC
19487
19488# Whether we need hard or soft links.
19489LN_S=$lt_LN_S
19490
19491# A BSD-compatible nm program.
19492NM=$lt_NM
19493
19494# A symbol stripping program
19495STRIP=$lt_STRIP
19496
19497# Used to examine libraries when file_magic_cmd begins "file"
19498MAGIC_CMD=$MAGIC_CMD
19499
19500# Used on cygwin: DLL creation program.
19501DLLTOOL="$DLLTOOL"
19502
19503# Used on cygwin: object dumper.
19504OBJDUMP="$OBJDUMP"
19505
19506# Used on cygwin: assembler.
19507AS="$AS"
19508
19509# The name of the directory that contains temporary libtool files.
19510objdir=$objdir
19511
19512# How to create reloadable object files.
19513reload_flag=$lt_reload_flag
19514reload_cmds=$lt_reload_cmds
19515
19516# How to pass a linker flag through the compiler.
19517wl=$lt_lt_prog_compiler_wl_RC
19518
19519# Object file suffix (normally "o").
19520objext="$ac_objext"
19521
19522# Old archive suffix (normally "a").
19523libext="$libext"
19524
19525# Shared library suffix (normally ".so").
19526shrext_cmds='$shrext_cmds'
19527
19528# Executable file suffix (normally "").
19529exeext="$exeext"
19530
19531# Additional compiler flags for building library objects.
19532pic_flag=$lt_lt_prog_compiler_pic_RC
19533pic_mode=$pic_mode
19534
19535# What is the maximum length of a command?
19536max_cmd_len=$lt_cv_sys_max_cmd_len
19537
19538# Does compiler simultaneously support -c and -o options?
19539compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19540
19541# Must we lock files when doing compilation?
19542need_locks=$lt_need_locks
19543
19544# Do we need the lib prefix for modules?
19545need_lib_prefix=$need_lib_prefix
19546
19547# Do we need a version for libraries?
19548need_version=$need_version
19549
19550# Whether dlopen is supported.
19551dlopen_support=$enable_dlopen
19552
19553# Whether dlopen of programs is supported.
19554dlopen_self=$enable_dlopen_self
19555
19556# Whether dlopen of statically linked programs is supported.
19557dlopen_self_static=$enable_dlopen_self_static
19558
19559# Compiler flag to prevent dynamic linking.
19560link_static_flag=$lt_lt_prog_compiler_static_RC
19561
19562# Compiler flag to turn off builtin functions.
19563no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19564
19565# Compiler flag to allow reflexive dlopens.
19566export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19567
19568# Compiler flag to generate shared objects directly from archives.
19569whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19570
19571# Compiler flag to generate thread-safe objects.
19572thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19573
19574# Library versioning type.
19575version_type=$version_type
19576
19577# Format of library name prefix.
19578libname_spec=$lt_libname_spec
19579
19580# List of archive names.  First name is the real one, the rest are links.
19581# The last name is the one that the linker finds with -lNAME.
19582library_names_spec=$lt_library_names_spec
19583
19584# The coded name of the library, if different from the real name.
19585soname_spec=$lt_soname_spec
19586
19587# Commands used to build and install an old-style archive.
19588RANLIB=$lt_RANLIB
19589old_archive_cmds=$lt_old_archive_cmds_RC
19590old_postinstall_cmds=$lt_old_postinstall_cmds
19591old_postuninstall_cmds=$lt_old_postuninstall_cmds
19592
19593# Create an old-style archive from a shared archive.
19594old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19595
19596# Create a temporary old-style archive to link instead of a shared archive.
19597old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19598
19599# Commands used to build and install a shared archive.
19600archive_cmds=$lt_archive_cmds_RC
19601archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19602postinstall_cmds=$lt_postinstall_cmds
19603postuninstall_cmds=$lt_postuninstall_cmds
19604
19605# Commands used to build a loadable module (assumed same as above if empty)
19606module_cmds=$lt_module_cmds_RC
19607module_expsym_cmds=$lt_module_expsym_cmds_RC
19608
19609# Commands to strip libraries.
19610old_striplib=$lt_old_striplib
19611striplib=$lt_striplib
19612
19613# Dependencies to place before the objects being linked to create a
19614# shared library.
19615predep_objects=$lt_predep_objects_RC
19616
19617# Dependencies to place after the objects being linked to create a
19618# shared library.
19619postdep_objects=$lt_postdep_objects_RC
19620
19621# Dependencies to place before the objects being linked to create a
19622# shared library.
19623predeps=$lt_predeps_RC
19624
19625# Dependencies to place after the objects being linked to create a
19626# shared library.
19627postdeps=$lt_postdeps_RC
19628
19629# The directories searched by this compiler when creating a shared
19630# library
19631compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19632
19633# The library search path used internally by the compiler when linking
19634# a shared library.
19635compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19636
19637# Method to check whether dependent libraries are shared objects.
19638deplibs_check_method=$lt_deplibs_check_method
19639
19640# Command to use when deplibs_check_method == file_magic.
19641file_magic_cmd=$lt_file_magic_cmd
19642
19643# Flag that allows shared libraries with undefined symbols to be built.
19644allow_undefined_flag=$lt_allow_undefined_flag_RC
19645
19646# Flag that forces no undefined symbols.
19647no_undefined_flag=$lt_no_undefined_flag_RC
19648
19649# Commands used to finish a libtool library installation in a directory.
19650finish_cmds=$lt_finish_cmds
19651
19652# Same as above, but a single script fragment to be evaled but not shown.
19653finish_eval=$lt_finish_eval
19654
19655# Take the output of nm and produce a listing of raw symbols and C names.
19656global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19657
19658# Transform the output of nm in a proper C declaration
19659global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19660
19661# Transform the output of nm in a C name address pair
19662global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19663
19664# This is the shared library runtime path variable.
19665runpath_var=$runpath_var
19666
19667# This is the shared library path variable.
19668shlibpath_var=$shlibpath_var
19669
19670# Is shlibpath searched before the hard-coded library search path?
19671shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19672
19673# How to hardcode a shared library path into an executable.
19674hardcode_action=$hardcode_action_RC
19675
19676# Whether we should hardcode library paths into libraries.
19677hardcode_into_libs=$hardcode_into_libs
19678
19679# Flag to hardcode \$libdir into a binary during linking.
19680# This must work even if \$libdir does not exist.
19681hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19682
19683# If ld is used when linking, flag to hardcode \$libdir into
19684# a binary during linking. This must work even if \$libdir does
19685# not exist.
19686hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19687
19688# Whether we need a single -rpath flag with a separated argument.
19689hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19690
19691# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19692# resulting binary.
19693hardcode_direct=$hardcode_direct_RC
19694
19695# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19696# resulting binary.
19697hardcode_minus_L=$hardcode_minus_L_RC
19698
19699# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19700# the resulting binary.
19701hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19702
19703# Set to yes if building a shared library automatically hardcodes DIR into the library
19704# and all subsequent libraries and executables linked against it.
19705hardcode_automatic=$hardcode_automatic_RC
19706
19707# Variables whose values should be saved in libtool wrapper scripts and
19708# restored at relink time.
19709variables_saved_for_relink="$variables_saved_for_relink"
19710
19711# Whether libtool must link a program against all its dependency libraries.
19712link_all_deplibs=$link_all_deplibs_RC
19713
19714# Compile-time system search path for libraries
19715sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19716
19717# Run-time system search path for libraries
19718sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19719
19720# Fix the shell variable \$srcfile for the compiler.
19721fix_srcfile_path=$lt_fix_srcfile_path
19722
19723# Set to yes if exported symbols are required.
19724always_export_symbols=$always_export_symbols_RC
19725
19726# The commands to list exported symbols.
19727export_symbols_cmds=$lt_export_symbols_cmds_RC
19728
19729# The commands to extract the exported symbol list from a shared archive.
19730extract_expsyms_cmds=$lt_extract_expsyms_cmds
19731
19732# Symbols that should not be listed in the preloaded symbols.
19733exclude_expsyms=$lt_exclude_expsyms_RC
19734
19735# Symbols that must always be exported.
19736include_expsyms=$lt_include_expsyms_RC
19737
19738# ### END LIBTOOL TAG CONFIG: $tagname
19739
19740__EOF__
19741
19742
19743else
19744  # If there is no Makefile yet, we rely on a make rule to execute
19745  # `config.status --recheck' to rerun these tests and create the
19746  # libtool script then.
19747  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19748  if test -f "$ltmain_in"; then
19749    test -f Makefile && make "$ltmain"
19750  fi
19751fi
19752
19753
19754ac_ext=c
19755ac_cpp='$CPP $CPPFLAGS'
19756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19758ac_compiler_gnu=$ac_cv_c_compiler_gnu
19759
19760CC="$lt_save_CC"
19761
19762	;;
19763
19764      *)
19765	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19766echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19767   { (exit 1); exit 1; }; }
19768	;;
19769      esac
19770
19771      # Append the new tag name to the list of available tags.
19772      if test -n "$tagname" ; then
19773      available_tags="$available_tags $tagname"
19774    fi
19775    fi
19776  done
19777  IFS="$lt_save_ifs"
19778
19779  # Now substitute the updated list of available tags.
19780  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19781    mv "${ofile}T" "$ofile"
19782    chmod +x "$ofile"
19783  else
19784    rm -f "${ofile}T"
19785    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19786echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19787   { (exit 1); exit 1; }; }
19788  fi
19789fi
19790
19791
19792
19793# This can be used to rebuild libtool when needed
19794LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19795
19796# Always use our own libtool.
19797LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19798
19799# Prevent multiple expansion
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824for ac_func in strndup
19825do
19826as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19827{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19828echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19829if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19830  echo $ECHO_N "(cached) $ECHO_C" >&6
19831else
19832  cat >conftest.$ac_ext <<_ACEOF
19833/* confdefs.h.  */
19834_ACEOF
19835cat confdefs.h >>conftest.$ac_ext
19836cat >>conftest.$ac_ext <<_ACEOF
19837/* end confdefs.h.  */
19838/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19839   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19840#define $ac_func innocuous_$ac_func
19841
19842/* System header to define __stub macros and hopefully few prototypes,
19843    which can conflict with char $ac_func (); below.
19844    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19845    <limits.h> exists even on freestanding compilers.  */
19846
19847#ifdef __STDC__
19848# include <limits.h>
19849#else
19850# include <assert.h>
19851#endif
19852
19853#undef $ac_func
19854
19855/* Override any GCC internal prototype to avoid an error.
19856   Use char because int might match the return type of a GCC
19857   builtin and then its argument prototype would still apply.  */
19858#ifdef __cplusplus
19859extern "C"
19860#endif
19861char $ac_func ();
19862/* The GNU C library defines this for functions which it implements
19863    to always fail with ENOSYS.  Some functions are actually named
19864    something starting with __ and the normal name is an alias.  */
19865#if defined __stub_$ac_func || defined __stub___$ac_func
19866choke me
19867#endif
19868
19869int
19870main ()
19871{
19872return $ac_func ();
19873  ;
19874  return 0;
19875}
19876_ACEOF
19877rm -f conftest.$ac_objext conftest$ac_exeext
19878if { (ac_try="$ac_link"
19879case "(($ac_try" in
19880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881  *) ac_try_echo=$ac_try;;
19882esac
19883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884  (eval "$ac_link") 2>conftest.er1
19885  ac_status=$?
19886  grep -v '^ *+' conftest.er1 >conftest.err
19887  rm -f conftest.er1
19888  cat conftest.err >&5
19889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890  (exit $ac_status); } && {
19891	 test -z "$ac_c_werror_flag" ||
19892	 test ! -s conftest.err
19893       } && test -s conftest$ac_exeext &&
19894       $as_test_x conftest$ac_exeext; then
19895  eval "$as_ac_var=yes"
19896else
19897  echo "$as_me: failed program was:" >&5
19898sed 's/^/| /' conftest.$ac_ext >&5
19899
19900	eval "$as_ac_var=no"
19901fi
19902
19903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19904      conftest$ac_exeext conftest.$ac_ext
19905fi
19906ac_res=`eval echo '${'$as_ac_var'}'`
19907	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19908echo "${ECHO_T}$ac_res" >&6; }
19909if test `eval echo '${'$as_ac_var'}'` = yes; then
19910  cat >>confdefs.h <<_ACEOF
19911#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19912_ACEOF
19913
19914fi
19915done
19916
19917
19918ac_config_files="$ac_config_files Makefile"
19919
19920cat >confcache <<\_ACEOF
19921# This file is a shell script that caches the results of configure
19922# tests run on this system so they can be shared between configure
19923# scripts and configure runs, see configure's option --config-cache.
19924# It is not useful on other systems.  If it contains results you don't
19925# want to keep, you may remove or edit it.
19926#
19927# config.status only pays attention to the cache file if you give it
19928# the --recheck option to rerun configure.
19929#
19930# `ac_cv_env_foo' variables (set or unset) will be overridden when
19931# loading this file, other *unset* `ac_cv_foo' will be assigned the
19932# following values.
19933
19934_ACEOF
19935
19936# The following way of writing the cache mishandles newlines in values,
19937# but we know of no workaround that is simple, portable, and efficient.
19938# So, we kill variables containing newlines.
19939# Ultrix sh set writes to stderr and can't be redirected directly,
19940# and sets the high bit in the cache file unless we assign to the vars.
19941(
19942  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19943    eval ac_val=\$$ac_var
19944    case $ac_val in #(
19945    *${as_nl}*)
19946      case $ac_var in #(
19947      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19948echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19949      esac
19950      case $ac_var in #(
19951      _ | IFS | as_nl) ;; #(
19952      *) $as_unset $ac_var ;;
19953      esac ;;
19954    esac
19955  done
19956
19957  (set) 2>&1 |
19958    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19959    *${as_nl}ac_space=\ *)
19960      # `set' does not quote correctly, so add quotes (double-quote
19961      # substitution turns \\\\ into \\, and sed turns \\ into \).
19962      sed -n \
19963	"s/'/'\\\\''/g;
19964	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19965      ;; #(
19966    *)
19967      # `set' quotes correctly as required by POSIX, so do not add quotes.
19968      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19969      ;;
19970    esac |
19971    sort
19972) |
19973  sed '
19974     /^ac_cv_env_/b end
19975     t clear
19976     :clear
19977     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19978     t end
19979     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19980     :end' >>confcache
19981if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19982  if test -w "$cache_file"; then
19983    test "x$cache_file" != "x/dev/null" &&
19984      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19985echo "$as_me: updating cache $cache_file" >&6;}
19986    cat confcache >$cache_file
19987  else
19988    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19989echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19990  fi
19991fi
19992rm -f confcache
19993
19994test "x$prefix" = xNONE && prefix=$ac_default_prefix
19995# Let make expand exec_prefix.
19996test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19997
19998# Transform confdefs.h into DEFS.
19999# Protect against shell expansion while executing Makefile rules.
20000# Protect against Makefile macro expansion.
20001#
20002# If the first sed substitution is executed (which looks for macros that
20003# take arguments), then branch to the quote section.  Otherwise,
20004# look for a macro that doesn't take arguments.
20005ac_script='
20006t clear
20007:clear
20008s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
20009t quote
20010s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
20011t quote
20012b any
20013:quote
20014s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20015s/\[/\\&/g
20016s/\]/\\&/g
20017s/\$/$$/g
20018H
20019:any
20020${
20021	g
20022	s/^\n//
20023	s/\n/ /g
20024	p
20025}
20026'
20027DEFS=`sed -n "$ac_script" confdefs.h`
20028
20029
20030ac_libobjs=
20031ac_ltlibobjs=
20032for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20033  # 1. Remove the extension, and $U if already installed.
20034  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20035  ac_i=`echo "$ac_i" | sed "$ac_script"`
20036  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20037  #    will be set to the directory where LIBOBJS objects are built.
20038  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20039  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20040done
20041LIBOBJS=$ac_libobjs
20042
20043LTLIBOBJS=$ac_ltlibobjs
20044
20045
20046if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20047  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20048Usually this means the macro was only invoked conditionally." >&5
20049echo "$as_me: error: conditional \"AMDEP\" was never defined.
20050Usually this means the macro was only invoked conditionally." >&2;}
20051   { (exit 1); exit 1; }; }
20052fi
20053if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20054  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20055Usually this means the macro was only invoked conditionally." >&5
20056echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20057Usually this means the macro was only invoked conditionally." >&2;}
20058   { (exit 1); exit 1; }; }
20059fi
20060if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20061  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20062Usually this means the macro was only invoked conditionally." >&5
20063echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20064Usually this means the macro was only invoked conditionally." >&2;}
20065   { (exit 1); exit 1; }; }
20066fi
20067
20068: ${CONFIG_STATUS=./config.status}
20069ac_clean_files_save=$ac_clean_files
20070ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20071{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20072echo "$as_me: creating $CONFIG_STATUS" >&6;}
20073cat >$CONFIG_STATUS <<_ACEOF
20074#! $SHELL
20075# Generated by $as_me.
20076# Run this file to recreate the current configuration.
20077# Compiler output produced by configure, useful for debugging
20078# configure, is in config.log if it exists.
20079
20080debug=false
20081ac_cs_recheck=false
20082ac_cs_silent=false
20083SHELL=\${CONFIG_SHELL-$SHELL}
20084_ACEOF
20085
20086cat >>$CONFIG_STATUS <<\_ACEOF
20087## --------------------- ##
20088## M4sh Initialization.  ##
20089## --------------------- ##
20090
20091# Be more Bourne compatible
20092DUALCASE=1; export DUALCASE # for MKS sh
20093if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20094  emulate sh
20095  NULLCMD=:
20096  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20097  # is contrary to our usage.  Disable this feature.
20098  alias -g '${1+"$@"}'='"$@"'
20099  setopt NO_GLOB_SUBST
20100else
20101  case `(set -o) 2>/dev/null` in
20102  *posix*) set -o posix ;;
20103esac
20104
20105fi
20106
20107
20108
20109
20110# PATH needs CR
20111# Avoid depending upon Character Ranges.
20112as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20113as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20114as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20115as_cr_digits='0123456789'
20116as_cr_alnum=$as_cr_Letters$as_cr_digits
20117
20118# The user is always right.
20119if test "${PATH_SEPARATOR+set}" != set; then
20120  echo "#! /bin/sh" >conf$$.sh
20121  echo  "exit 0"   >>conf$$.sh
20122  chmod +x conf$$.sh
20123  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20124    PATH_SEPARATOR=';'
20125  else
20126    PATH_SEPARATOR=:
20127  fi
20128  rm -f conf$$.sh
20129fi
20130
20131# Support unset when possible.
20132if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20133  as_unset=unset
20134else
20135  as_unset=false
20136fi
20137
20138
20139# IFS
20140# We need space, tab and new line, in precisely that order.  Quoting is
20141# there to prevent editors from complaining about space-tab.
20142# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20143# splitting by setting IFS to empty value.)
20144as_nl='
20145'
20146IFS=" ""	$as_nl"
20147
20148# Find who we are.  Look in the path if we contain no directory separator.
20149case $0 in
20150  *[\\/]* ) as_myself=$0 ;;
20151  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20152for as_dir in $PATH
20153do
20154  IFS=$as_save_IFS
20155  test -z "$as_dir" && as_dir=.
20156  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20157done
20158IFS=$as_save_IFS
20159
20160     ;;
20161esac
20162# We did not find ourselves, most probably we were run as `sh COMMAND'
20163# in which case we are not to be found in the path.
20164if test "x$as_myself" = x; then
20165  as_myself=$0
20166fi
20167if test ! -f "$as_myself"; then
20168  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20169  { (exit 1); exit 1; }
20170fi
20171
20172# Work around bugs in pre-3.0 UWIN ksh.
20173for as_var in ENV MAIL MAILPATH
20174do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20175done
20176PS1='$ '
20177PS2='> '
20178PS4='+ '
20179
20180# NLS nuisances.
20181for as_var in \
20182  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20183  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20184  LC_TELEPHONE LC_TIME
20185do
20186  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20187    eval $as_var=C; export $as_var
20188  else
20189    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20190  fi
20191done
20192
20193# Required to use basename.
20194if expr a : '\(a\)' >/dev/null 2>&1 &&
20195   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20196  as_expr=expr
20197else
20198  as_expr=false
20199fi
20200
20201if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20202  as_basename=basename
20203else
20204  as_basename=false
20205fi
20206
20207
20208# Name of the executable.
20209as_me=`$as_basename -- "$0" ||
20210$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20211	 X"$0" : 'X\(//\)$' \| \
20212	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20213echo X/"$0" |
20214    sed '/^.*\/\([^/][^/]*\)\/*$/{
20215	    s//\1/
20216	    q
20217	  }
20218	  /^X\/\(\/\/\)$/{
20219	    s//\1/
20220	    q
20221	  }
20222	  /^X\/\(\/\).*/{
20223	    s//\1/
20224	    q
20225	  }
20226	  s/.*/./; q'`
20227
20228# CDPATH.
20229$as_unset CDPATH
20230
20231
20232
20233  as_lineno_1=$LINENO
20234  as_lineno_2=$LINENO
20235  test "x$as_lineno_1" != "x$as_lineno_2" &&
20236  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20237
20238  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20239  # uniformly replaced by the line number.  The first 'sed' inserts a
20240  # line-number line after each line using $LINENO; the second 'sed'
20241  # does the real work.  The second script uses 'N' to pair each
20242  # line-number line with the line containing $LINENO, and appends
20243  # trailing '-' during substitution so that $LINENO is not a special
20244  # case at line end.
20245  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20246  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20247  # E. McMahon (1931-1989) for sed's syntax.  :-)
20248  sed -n '
20249    p
20250    /[$]LINENO/=
20251  ' <$as_myself |
20252    sed '
20253      s/[$]LINENO.*/&-/
20254      t lineno
20255      b
20256      :lineno
20257      N
20258      :loop
20259      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20260      t loop
20261      s/-\n.*//
20262    ' >$as_me.lineno &&
20263  chmod +x "$as_me.lineno" ||
20264    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20265   { (exit 1); exit 1; }; }
20266
20267  # Don't try to exec as it changes $[0], causing all sort of problems
20268  # (the dirname of $[0] is not the place where we might find the
20269  # original and so on.  Autoconf is especially sensitive to this).
20270  . "./$as_me.lineno"
20271  # Exit status is that of the last command.
20272  exit
20273}
20274
20275
20276if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20277  as_dirname=dirname
20278else
20279  as_dirname=false
20280fi
20281
20282ECHO_C= ECHO_N= ECHO_T=
20283case `echo -n x` in
20284-n*)
20285  case `echo 'x\c'` in
20286  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20287  *)   ECHO_C='\c';;
20288  esac;;
20289*)
20290  ECHO_N='-n';;
20291esac
20292
20293if expr a : '\(a\)' >/dev/null 2>&1 &&
20294   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20295  as_expr=expr
20296else
20297  as_expr=false
20298fi
20299
20300rm -f conf$$ conf$$.exe conf$$.file
20301if test -d conf$$.dir; then
20302  rm -f conf$$.dir/conf$$.file
20303else
20304  rm -f conf$$.dir
20305  mkdir conf$$.dir
20306fi
20307echo >conf$$.file
20308if ln -s conf$$.file conf$$ 2>/dev/null; then
20309  as_ln_s='ln -s'
20310  # ... but there are two gotchas:
20311  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20312  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20313  # In both cases, we have to default to `cp -p'.
20314  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20315    as_ln_s='cp -p'
20316elif ln conf$$.file conf$$ 2>/dev/null; then
20317  as_ln_s=ln
20318else
20319  as_ln_s='cp -p'
20320fi
20321rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20322rmdir conf$$.dir 2>/dev/null
20323
20324if mkdir -p . 2>/dev/null; then
20325  as_mkdir_p=:
20326else
20327  test -d ./-p && rmdir ./-p
20328  as_mkdir_p=false
20329fi
20330
20331if test -x / >/dev/null 2>&1; then
20332  as_test_x='test -x'
20333else
20334  if ls -dL / >/dev/null 2>&1; then
20335    as_ls_L_option=L
20336  else
20337    as_ls_L_option=
20338  fi
20339  as_test_x='
20340    eval sh -c '\''
20341      if test -d "$1"; then
20342        test -d "$1/.";
20343      else
20344	case $1 in
20345        -*)set "./$1";;
20346	esac;
20347	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20348	???[sx]*):;;*)false;;esac;fi
20349    '\'' sh
20350  '
20351fi
20352as_executable_p=$as_test_x
20353
20354# Sed expression to map a string onto a valid CPP name.
20355as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20356
20357# Sed expression to map a string onto a valid variable name.
20358as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20359
20360
20361exec 6>&1
20362
20363# Save the log message, to keep $[0] and so on meaningful, and to
20364# report actual input values of CONFIG_FILES etc. instead of their
20365# values after options handling.
20366ac_log="
20367This file was extended by $as_me, which was
20368generated by GNU Autoconf 2.61.  Invocation command line was
20369
20370  CONFIG_FILES    = $CONFIG_FILES
20371  CONFIG_HEADERS  = $CONFIG_HEADERS
20372  CONFIG_LINKS    = $CONFIG_LINKS
20373  CONFIG_COMMANDS = $CONFIG_COMMANDS
20374  $ $0 $@
20375
20376on `(hostname || uname -n) 2>/dev/null | sed 1q`
20377"
20378
20379_ACEOF
20380
20381cat >>$CONFIG_STATUS <<_ACEOF
20382# Files that config.status was made for.
20383config_files="$ac_config_files"
20384config_commands="$ac_config_commands"
20385
20386_ACEOF
20387
20388cat >>$CONFIG_STATUS <<\_ACEOF
20389ac_cs_usage="\
20390\`$as_me' instantiates files from templates according to the
20391current configuration.
20392
20393Usage: $0 [OPTIONS] [FILE]...
20394
20395  -h, --help       print this help, then exit
20396  -V, --version    print version number and configuration settings, then exit
20397  -q, --quiet      do not print progress messages
20398  -d, --debug      don't remove temporary files
20399      --recheck    update $as_me by reconfiguring in the same conditions
20400  --file=FILE[:TEMPLATE]
20401		   instantiate the configuration file FILE
20402
20403Configuration files:
20404$config_files
20405
20406Configuration commands:
20407$config_commands
20408
20409Report bugs to <bug-autoconf@gnu.org>."
20410
20411_ACEOF
20412cat >>$CONFIG_STATUS <<_ACEOF
20413ac_cs_version="\\
20414config.status
20415configured by $0, generated by GNU Autoconf 2.61,
20416  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20417
20418Copyright (C) 2006 Free Software Foundation, Inc.
20419This config.status script is free software; the Free Software Foundation
20420gives unlimited permission to copy, distribute and modify it."
20421
20422ac_pwd='$ac_pwd'
20423srcdir='$srcdir'
20424INSTALL='$INSTALL'
20425MKDIR_P='$MKDIR_P'
20426_ACEOF
20427
20428cat >>$CONFIG_STATUS <<\_ACEOF
20429# If no file are specified by the user, then we need to provide default
20430# value.  By we need to know if files were specified by the user.
20431ac_need_defaults=:
20432while test $# != 0
20433do
20434  case $1 in
20435  --*=*)
20436    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20437    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20438    ac_shift=:
20439    ;;
20440  *)
20441    ac_option=$1
20442    ac_optarg=$2
20443    ac_shift=shift
20444    ;;
20445  esac
20446
20447  case $ac_option in
20448  # Handling of the options.
20449  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20450    ac_cs_recheck=: ;;
20451  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20452    echo "$ac_cs_version"; exit ;;
20453  --debug | --debu | --deb | --de | --d | -d )
20454    debug=: ;;
20455  --file | --fil | --fi | --f )
20456    $ac_shift
20457    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20458    ac_need_defaults=false;;
20459  --he | --h |  --help | --hel | -h )
20460    echo "$ac_cs_usage"; exit ;;
20461  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20462  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20463    ac_cs_silent=: ;;
20464
20465  # This is an error.
20466  -*) { echo "$as_me: error: unrecognized option: $1
20467Try \`$0 --help' for more information." >&2
20468   { (exit 1); exit 1; }; } ;;
20469
20470  *) ac_config_targets="$ac_config_targets $1"
20471     ac_need_defaults=false ;;
20472
20473  esac
20474  shift
20475done
20476
20477ac_configure_extra_args=
20478
20479if $ac_cs_silent; then
20480  exec 6>/dev/null
20481  ac_configure_extra_args="$ac_configure_extra_args --silent"
20482fi
20483
20484_ACEOF
20485cat >>$CONFIG_STATUS <<_ACEOF
20486if \$ac_cs_recheck; then
20487  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20488  CONFIG_SHELL=$SHELL
20489  export CONFIG_SHELL
20490  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20491fi
20492
20493_ACEOF
20494cat >>$CONFIG_STATUS <<\_ACEOF
20495exec 5>>config.log
20496{
20497  echo
20498  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20499## Running $as_me. ##
20500_ASBOX
20501  echo "$ac_log"
20502} >&5
20503
20504_ACEOF
20505cat >>$CONFIG_STATUS <<_ACEOF
20506#
20507# INIT-COMMANDS
20508#
20509AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20510
20511_ACEOF
20512
20513cat >>$CONFIG_STATUS <<\_ACEOF
20514
20515# Handling of arguments.
20516for ac_config_target in $ac_config_targets
20517do
20518  case $ac_config_target in
20519    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20520    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20521
20522  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20523echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20524   { (exit 1); exit 1; }; };;
20525  esac
20526done
20527
20528
20529# If the user did not use the arguments to specify the items to instantiate,
20530# then the envvar interface is used.  Set only those that are not.
20531# We use the long form for the default assignment because of an extremely
20532# bizarre bug on SunOS 4.1.3.
20533if $ac_need_defaults; then
20534  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20535  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20536fi
20537
20538# Have a temporary directory for convenience.  Make it in the build tree
20539# simply because there is no reason against having it here, and in addition,
20540# creating and moving files from /tmp can sometimes cause problems.
20541# Hook for its removal unless debugging.
20542# Note that there is a small window in which the directory will not be cleaned:
20543# after its creation but before its name has been assigned to `$tmp'.
20544$debug ||
20545{
20546  tmp=
20547  trap 'exit_status=$?
20548  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20549' 0
20550  trap '{ (exit 1); exit 1; }' 1 2 13 15
20551}
20552# Create a (secure) tmp directory for tmp files.
20553
20554{
20555  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20556  test -n "$tmp" && test -d "$tmp"
20557}  ||
20558{
20559  tmp=./conf$$-$RANDOM
20560  (umask 077 && mkdir "$tmp")
20561} ||
20562{
20563   echo "$me: cannot create a temporary directory in ." >&2
20564   { (exit 1); exit 1; }
20565}
20566
20567#
20568# Set up the sed scripts for CONFIG_FILES section.
20569#
20570
20571# No need to generate the scripts if there are no CONFIG_FILES.
20572# This happens for instance when ./config.status config.h
20573if test -n "$CONFIG_FILES"; then
20574
20575_ACEOF
20576
20577
20578
20579ac_delim='%!_!# '
20580for ac_last_try in false false false false false :; do
20581  cat >conf$$subs.sed <<_ACEOF
20582SHELL!$SHELL$ac_delim
20583PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20584PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20585PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20586PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20587PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20588PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20589exec_prefix!$exec_prefix$ac_delim
20590prefix!$prefix$ac_delim
20591program_transform_name!$program_transform_name$ac_delim
20592bindir!$bindir$ac_delim
20593sbindir!$sbindir$ac_delim
20594libexecdir!$libexecdir$ac_delim
20595datarootdir!$datarootdir$ac_delim
20596datadir!$datadir$ac_delim
20597sysconfdir!$sysconfdir$ac_delim
20598sharedstatedir!$sharedstatedir$ac_delim
20599localstatedir!$localstatedir$ac_delim
20600includedir!$includedir$ac_delim
20601oldincludedir!$oldincludedir$ac_delim
20602docdir!$docdir$ac_delim
20603infodir!$infodir$ac_delim
20604htmldir!$htmldir$ac_delim
20605dvidir!$dvidir$ac_delim
20606pdfdir!$pdfdir$ac_delim
20607psdir!$psdir$ac_delim
20608libdir!$libdir$ac_delim
20609localedir!$localedir$ac_delim
20610mandir!$mandir$ac_delim
20611DEFS!$DEFS$ac_delim
20612ECHO_C!$ECHO_C$ac_delim
20613ECHO_N!$ECHO_N$ac_delim
20614ECHO_T!$ECHO_T$ac_delim
20615LIBS!$LIBS$ac_delim
20616build_alias!$build_alias$ac_delim
20617host_alias!$host_alias$ac_delim
20618target_alias!$target_alias$ac_delim
20619INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20620INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20621INSTALL_DATA!$INSTALL_DATA$ac_delim
20622am__isrc!$am__isrc$ac_delim
20623CYGPATH_W!$CYGPATH_W$ac_delim
20624PACKAGE!$PACKAGE$ac_delim
20625VERSION!$VERSION$ac_delim
20626ACLOCAL!$ACLOCAL$ac_delim
20627AUTOCONF!$AUTOCONF$ac_delim
20628AUTOMAKE!$AUTOMAKE$ac_delim
20629AUTOHEADER!$AUTOHEADER$ac_delim
20630MAKEINFO!$MAKEINFO$ac_delim
20631install_sh!$install_sh$ac_delim
20632STRIP!$STRIP$ac_delim
20633INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20634mkdir_p!$mkdir_p$ac_delim
20635AWK!$AWK$ac_delim
20636SET_MAKE!$SET_MAKE$ac_delim
20637am__leading_dot!$am__leading_dot$ac_delim
20638AMTAR!$AMTAR$ac_delim
20639am__tar!$am__tar$ac_delim
20640am__untar!$am__untar$ac_delim
20641CC!$CC$ac_delim
20642CFLAGS!$CFLAGS$ac_delim
20643LDFLAGS!$LDFLAGS$ac_delim
20644CPPFLAGS!$CPPFLAGS$ac_delim
20645ac_ct_CC!$ac_ct_CC$ac_delim
20646EXEEXT!$EXEEXT$ac_delim
20647OBJEXT!$OBJEXT$ac_delim
20648DEPDIR!$DEPDIR$ac_delim
20649am__include!$am__include$ac_delim
20650am__quote!$am__quote$ac_delim
20651AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20652AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20653AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20654CCDEPMODE!$CCDEPMODE$ac_delim
20655am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20656am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20657build!$build$ac_delim
20658build_cpu!$build_cpu$ac_delim
20659build_vendor!$build_vendor$ac_delim
20660build_os!$build_os$ac_delim
20661host!$host$ac_delim
20662host_cpu!$host_cpu$ac_delim
20663host_vendor!$host_vendor$ac_delim
20664host_os!$host_os$ac_delim
20665SED!$SED$ac_delim
20666GREP!$GREP$ac_delim
20667EGREP!$EGREP$ac_delim
20668LN_S!$LN_S$ac_delim
20669ECHO!$ECHO$ac_delim
20670AR!$AR$ac_delim
20671RANLIB!$RANLIB$ac_delim
20672DSYMUTIL!$DSYMUTIL$ac_delim
20673NMEDIT!$NMEDIT$ac_delim
20674CPP!$CPP$ac_delim
20675CXX!$CXX$ac_delim
20676CXXFLAGS!$CXXFLAGS$ac_delim
20677ac_ct_CXX!$ac_ct_CXX$ac_delim
20678CXXDEPMODE!$CXXDEPMODE$ac_delim
20679_ACEOF
20680
20681  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20682    break
20683  elif $ac_last_try; then
20684    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20685echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20686   { (exit 1); exit 1; }; }
20687  else
20688    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20689  fi
20690done
20691
20692ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20693if test -n "$ac_eof"; then
20694  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20695  ac_eof=`expr $ac_eof + 1`
20696fi
20697
20698cat >>$CONFIG_STATUS <<_ACEOF
20699cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20700/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20701_ACEOF
20702sed '
20703s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20704s/^/s,@/; s/!/@,|#_!!_#|/
20705:n
20706t n
20707s/'"$ac_delim"'$/,g/; t
20708s/$/\\/; p
20709N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20710' >>$CONFIG_STATUS <conf$$subs.sed
20711rm -f conf$$subs.sed
20712cat >>$CONFIG_STATUS <<_ACEOF
20713CEOF$ac_eof
20714_ACEOF
20715
20716
20717ac_delim='%!_!# '
20718for ac_last_try in false false false false false :; do
20719  cat >conf$$subs.sed <<_ACEOF
20720am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20721am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20722CXXCPP!$CXXCPP$ac_delim
20723F77!$F77$ac_delim
20724FFLAGS!$FFLAGS$ac_delim
20725ac_ct_F77!$ac_ct_F77$ac_delim
20726LIBTOOL!$LIBTOOL$ac_delim
20727SO_VERSION!$SO_VERSION$ac_delim
20728LIBOBJS!$LIBOBJS$ac_delim
20729LTLIBOBJS!$LTLIBOBJS$ac_delim
20730_ACEOF
20731
20732  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
20733    break
20734  elif $ac_last_try; then
20735    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20736echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20737   { (exit 1); exit 1; }; }
20738  else
20739    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20740  fi
20741done
20742
20743ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20744if test -n "$ac_eof"; then
20745  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20746  ac_eof=`expr $ac_eof + 1`
20747fi
20748
20749cat >>$CONFIG_STATUS <<_ACEOF
20750cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20751/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20752_ACEOF
20753sed '
20754s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20755s/^/s,@/; s/!/@,|#_!!_#|/
20756:n
20757t n
20758s/'"$ac_delim"'$/,g/; t
20759s/$/\\/; p
20760N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20761' >>$CONFIG_STATUS <conf$$subs.sed
20762rm -f conf$$subs.sed
20763cat >>$CONFIG_STATUS <<_ACEOF
20764:end
20765s/|#_!!_#|//g
20766CEOF$ac_eof
20767_ACEOF
20768
20769
20770# VPATH may cause trouble with some makes, so we remove $(srcdir),
20771# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20772# trailing colons and then remove the whole line if VPATH becomes empty
20773# (actually we leave an empty line to preserve line numbers).
20774if test "x$srcdir" = x.; then
20775  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20776s/:*\$(srcdir):*/:/
20777s/:*\${srcdir}:*/:/
20778s/:*@srcdir@:*/:/
20779s/^\([^=]*=[	 ]*\):*/\1/
20780s/:*$//
20781s/^[^=]*=[	 ]*$//
20782}'
20783fi
20784
20785cat >>$CONFIG_STATUS <<\_ACEOF
20786fi # test -n "$CONFIG_FILES"
20787
20788
20789for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
20790do
20791  case $ac_tag in
20792  :[FHLC]) ac_mode=$ac_tag; continue;;
20793  esac
20794  case $ac_mode$ac_tag in
20795  :[FHL]*:*);;
20796  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20797echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20798   { (exit 1); exit 1; }; };;
20799  :[FH]-) ac_tag=-:-;;
20800  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20801  esac
20802  ac_save_IFS=$IFS
20803  IFS=:
20804  set x $ac_tag
20805  IFS=$ac_save_IFS
20806  shift
20807  ac_file=$1
20808  shift
20809
20810  case $ac_mode in
20811  :L) ac_source=$1;;
20812  :[FH])
20813    ac_file_inputs=
20814    for ac_f
20815    do
20816      case $ac_f in
20817      -) ac_f="$tmp/stdin";;
20818      *) # Look for the file first in the build tree, then in the source tree
20819	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20820	 # because $ac_f cannot contain `:'.
20821	 test -f "$ac_f" ||
20822	   case $ac_f in
20823	   [\\/$]*) false;;
20824	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20825	   esac ||
20826	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20827echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20828   { (exit 1); exit 1; }; };;
20829      esac
20830      ac_file_inputs="$ac_file_inputs $ac_f"
20831    done
20832
20833    # Let's still pretend it is `configure' which instantiates (i.e., don't
20834    # use $as_me), people would be surprised to read:
20835    #    /* config.h.  Generated by config.status.  */
20836    configure_input="Generated from "`IFS=:
20837	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20838    if test x"$ac_file" != x-; then
20839      configure_input="$ac_file.  $configure_input"
20840      { echo "$as_me:$LINENO: creating $ac_file" >&5
20841echo "$as_me: creating $ac_file" >&6;}
20842    fi
20843
20844    case $ac_tag in
20845    *:-:* | *:-) cat >"$tmp/stdin";;
20846    esac
20847    ;;
20848  esac
20849
20850  ac_dir=`$as_dirname -- "$ac_file" ||
20851$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20852	 X"$ac_file" : 'X\(//\)[^/]' \| \
20853	 X"$ac_file" : 'X\(//\)$' \| \
20854	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20855echo X"$ac_file" |
20856    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20857	    s//\1/
20858	    q
20859	  }
20860	  /^X\(\/\/\)[^/].*/{
20861	    s//\1/
20862	    q
20863	  }
20864	  /^X\(\/\/\)$/{
20865	    s//\1/
20866	    q
20867	  }
20868	  /^X\(\/\).*/{
20869	    s//\1/
20870	    q
20871	  }
20872	  s/.*/./; q'`
20873  { as_dir="$ac_dir"
20874  case $as_dir in #(
20875  -*) as_dir=./$as_dir;;
20876  esac
20877  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20878    as_dirs=
20879    while :; do
20880      case $as_dir in #(
20881      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20882      *) as_qdir=$as_dir;;
20883      esac
20884      as_dirs="'$as_qdir' $as_dirs"
20885      as_dir=`$as_dirname -- "$as_dir" ||
20886$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20887	 X"$as_dir" : 'X\(//\)[^/]' \| \
20888	 X"$as_dir" : 'X\(//\)$' \| \
20889	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20890echo X"$as_dir" |
20891    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20892	    s//\1/
20893	    q
20894	  }
20895	  /^X\(\/\/\)[^/].*/{
20896	    s//\1/
20897	    q
20898	  }
20899	  /^X\(\/\/\)$/{
20900	    s//\1/
20901	    q
20902	  }
20903	  /^X\(\/\).*/{
20904	    s//\1/
20905	    q
20906	  }
20907	  s/.*/./; q'`
20908      test -d "$as_dir" && break
20909    done
20910    test -z "$as_dirs" || eval "mkdir $as_dirs"
20911  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20912echo "$as_me: error: cannot create directory $as_dir" >&2;}
20913   { (exit 1); exit 1; }; }; }
20914  ac_builddir=.
20915
20916case "$ac_dir" in
20917.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20918*)
20919  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20920  # A ".." for each directory in $ac_dir_suffix.
20921  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20922  case $ac_top_builddir_sub in
20923  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20924  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20925  esac ;;
20926esac
20927ac_abs_top_builddir=$ac_pwd
20928ac_abs_builddir=$ac_pwd$ac_dir_suffix
20929# for backward compatibility:
20930ac_top_builddir=$ac_top_build_prefix
20931
20932case $srcdir in
20933  .)  # We are building in place.
20934    ac_srcdir=.
20935    ac_top_srcdir=$ac_top_builddir_sub
20936    ac_abs_top_srcdir=$ac_pwd ;;
20937  [\\/]* | ?:[\\/]* )  # Absolute name.
20938    ac_srcdir=$srcdir$ac_dir_suffix;
20939    ac_top_srcdir=$srcdir
20940    ac_abs_top_srcdir=$srcdir ;;
20941  *) # Relative name.
20942    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20943    ac_top_srcdir=$ac_top_build_prefix$srcdir
20944    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20945esac
20946ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20947
20948
20949  case $ac_mode in
20950  :F)
20951  #
20952  # CONFIG_FILE
20953  #
20954
20955  case $INSTALL in
20956  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20957  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20958  esac
20959  ac_MKDIR_P=$MKDIR_P
20960  case $MKDIR_P in
20961  [\\/$]* | ?:[\\/]* ) ;;
20962  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20963  esac
20964_ACEOF
20965
20966cat >>$CONFIG_STATUS <<\_ACEOF
20967# If the template does not know about datarootdir, expand it.
20968# FIXME: This hack should be removed a few years after 2.60.
20969ac_datarootdir_hack=; ac_datarootdir_seen=
20970
20971case `sed -n '/datarootdir/ {
20972  p
20973  q
20974}
20975/@datadir@/p
20976/@docdir@/p
20977/@infodir@/p
20978/@localedir@/p
20979/@mandir@/p
20980' $ac_file_inputs` in
20981*datarootdir*) ac_datarootdir_seen=yes;;
20982*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20983  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20984echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20985_ACEOF
20986cat >>$CONFIG_STATUS <<_ACEOF
20987  ac_datarootdir_hack='
20988  s&@datadir@&$datadir&g
20989  s&@docdir@&$docdir&g
20990  s&@infodir@&$infodir&g
20991  s&@localedir@&$localedir&g
20992  s&@mandir@&$mandir&g
20993    s&\\\${datarootdir}&$datarootdir&g' ;;
20994esac
20995_ACEOF
20996
20997# Neutralize VPATH when `$srcdir' = `.'.
20998# Shell code in configure.ac might set extrasub.
20999# FIXME: do we really want to maintain this feature?
21000cat >>$CONFIG_STATUS <<_ACEOF
21001  sed "$ac_vpsub
21002$extrasub
21003_ACEOF
21004cat >>$CONFIG_STATUS <<\_ACEOF
21005:t
21006/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21007s&@configure_input@&$configure_input&;t t
21008s&@top_builddir@&$ac_top_builddir_sub&;t t
21009s&@srcdir@&$ac_srcdir&;t t
21010s&@abs_srcdir@&$ac_abs_srcdir&;t t
21011s&@top_srcdir@&$ac_top_srcdir&;t t
21012s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21013s&@builddir@&$ac_builddir&;t t
21014s&@abs_builddir@&$ac_abs_builddir&;t t
21015s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21016s&@INSTALL@&$ac_INSTALL&;t t
21017s&@MKDIR_P@&$ac_MKDIR_P&;t t
21018$ac_datarootdir_hack
21019" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21020
21021test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21022  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21023  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21024  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21025which seems to be undefined.  Please make sure it is defined." >&5
21026echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21027which seems to be undefined.  Please make sure it is defined." >&2;}
21028
21029  rm -f "$tmp/stdin"
21030  case $ac_file in
21031  -) cat "$tmp/out"; rm -f "$tmp/out";;
21032  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21033  esac
21034 ;;
21035
21036
21037  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21038echo "$as_me: executing $ac_file commands" >&6;}
21039 ;;
21040  esac
21041
21042
21043  case $ac_file$ac_mode in
21044    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21045  # Strip MF so we end up with the name of the file.
21046  mf=`echo "$mf" | sed -e 's/:.*$//'`
21047  # Check whether this is an Automake generated Makefile or not.
21048  # We used to match only the files named `Makefile.in', but
21049  # some people rename them; so instead we look at the file content.
21050  # Grep'ing the first line is not enough: some people post-process
21051  # each Makefile.in and add a new line on top of each file to say so.
21052  # Grep'ing the whole file is not good either: AIX grep has a line
21053  # limit of 2048, but all sed's we know have understand at least 4000.
21054  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21055    dirpart=`$as_dirname -- "$mf" ||
21056$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21057	 X"$mf" : 'X\(//\)[^/]' \| \
21058	 X"$mf" : 'X\(//\)$' \| \
21059	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21060echo X"$mf" |
21061    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21062	    s//\1/
21063	    q
21064	  }
21065	  /^X\(\/\/\)[^/].*/{
21066	    s//\1/
21067	    q
21068	  }
21069	  /^X\(\/\/\)$/{
21070	    s//\1/
21071	    q
21072	  }
21073	  /^X\(\/\).*/{
21074	    s//\1/
21075	    q
21076	  }
21077	  s/.*/./; q'`
21078  else
21079    continue
21080  fi
21081  # Extract the definition of DEPDIR, am__include, and am__quote
21082  # from the Makefile without running `make'.
21083  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21084  test -z "$DEPDIR" && continue
21085  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21086  test -z "am__include" && continue
21087  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21088  # When using ansi2knr, U may be empty or an underscore; expand it
21089  U=`sed -n 's/^U = //p' < "$mf"`
21090  # Find all dependency output files, they are included files with
21091  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21092  # simplest approach to changing $(DEPDIR) to its actual value in the
21093  # expansion.
21094  for file in `sed -n "
21095    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21096       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21097    # Make sure the directory exists.
21098    test -f "$dirpart/$file" && continue
21099    fdir=`$as_dirname -- "$file" ||
21100$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21101	 X"$file" : 'X\(//\)[^/]' \| \
21102	 X"$file" : 'X\(//\)$' \| \
21103	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21104echo X"$file" |
21105    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21106	    s//\1/
21107	    q
21108	  }
21109	  /^X\(\/\/\)[^/].*/{
21110	    s//\1/
21111	    q
21112	  }
21113	  /^X\(\/\/\)$/{
21114	    s//\1/
21115	    q
21116	  }
21117	  /^X\(\/\).*/{
21118	    s//\1/
21119	    q
21120	  }
21121	  s/.*/./; q'`
21122    { as_dir=$dirpart/$fdir
21123  case $as_dir in #(
21124  -*) as_dir=./$as_dir;;
21125  esac
21126  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21127    as_dirs=
21128    while :; do
21129      case $as_dir in #(
21130      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21131      *) as_qdir=$as_dir;;
21132      esac
21133      as_dirs="'$as_qdir' $as_dirs"
21134      as_dir=`$as_dirname -- "$as_dir" ||
21135$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21136	 X"$as_dir" : 'X\(//\)[^/]' \| \
21137	 X"$as_dir" : 'X\(//\)$' \| \
21138	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21139echo X"$as_dir" |
21140    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21141	    s//\1/
21142	    q
21143	  }
21144	  /^X\(\/\/\)[^/].*/{
21145	    s//\1/
21146	    q
21147	  }
21148	  /^X\(\/\/\)$/{
21149	    s//\1/
21150	    q
21151	  }
21152	  /^X\(\/\).*/{
21153	    s//\1/
21154	    q
21155	  }
21156	  s/.*/./; q'`
21157      test -d "$as_dir" && break
21158    done
21159    test -z "$as_dirs" || eval "mkdir $as_dirs"
21160  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21161echo "$as_me: error: cannot create directory $as_dir" >&2;}
21162   { (exit 1); exit 1; }; }; }
21163    # echo "creating $dirpart/$file"
21164    echo '# dummy' > "$dirpart/$file"
21165  done
21166done
21167 ;;
21168
21169  esac
21170done # for ac_tag
21171
21172
21173{ (exit 0); exit 0; }
21174_ACEOF
21175chmod +x $CONFIG_STATUS
21176ac_clean_files=$ac_clean_files_save
21177
21178
21179# configure is writing to config.log, and then calls config.status.
21180# config.status does its own redirection, appending to config.log.
21181# Unfortunately, on DOS this fails, as config.log is still kept open
21182# by configure, so config.status won't be able to write to it; its
21183# output is simply discarded.  So we exec the FD to /dev/null,
21184# effectively closing config.log, so it can be properly (re)opened and
21185# appended to by config.status.  When coming back to configure, we
21186# need to make the FD available again.
21187if test "$no_create" != yes; then
21188  ac_cs_success=:
21189  ac_config_status_args=
21190  test "$silent" = yes &&
21191    ac_config_status_args="$ac_config_status_args --quiet"
21192  exec 5>/dev/null
21193  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21194  exec 5>>config.log
21195  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21196  # would make configure fail if this is the last instruction.
21197  $ac_cs_success || { (exit 1); exit 1; }
21198fi
21199
21200