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="configure.in"
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
829CXX
830CXXFLAGS
831LDFLAGS
832CPPFLAGS
833ac_ct_CXX
834EXEEXT
835OBJEXT
836DEPDIR
837am__include
838am__quote
839AMDEP_TRUE
840AMDEP_FALSE
841AMDEPBACKSLASH
842CXXDEPMODE
843am__fastdepCXX_TRUE
844am__fastdepCXX_FALSE
845build
846build_cpu
847build_vendor
848build_os
849host
850host_cpu
851host_vendor
852host_os
853CC
854CFLAGS
855ac_ct_CC
856CCDEPMODE
857am__fastdepCC_TRUE
858am__fastdepCC_FALSE
859SED
860GREP
861EGREP
862LN_S
863ECHO
864AR
865RANLIB
866DSYMUTIL
867NMEDIT
868CPP
869CXXCPP
870F77
871FFLAGS
872ac_ct_F77
873LIBTOOL
874LIBOBJS
875LTLIBOBJS'
876ac_subst_files=''
877      ac_precious_vars='build_alias
878host_alias
879target_alias
880CXX
881CXXFLAGS
882LDFLAGS
883LIBS
884CPPFLAGS
885CCC
886CC
887CFLAGS
888CPP
889CXXCPP
890F77
891FFLAGS'
892
893
894# Initialize some variables set by options.
895ac_init_help=
896ac_init_version=false
897# The variables have the same names as the options, with
898# dashes changed to underlines.
899cache_file=/dev/null
900exec_prefix=NONE
901no_create=
902no_recursion=
903prefix=NONE
904program_prefix=NONE
905program_suffix=NONE
906program_transform_name=s,x,x,
907silent=
908site=
909srcdir=
910verbose=
911x_includes=NONE
912x_libraries=NONE
913
914# Installation directory options.
915# These are left unexpanded so users can "make install exec_prefix=/foo"
916# and all the variables that are supposed to be based on exec_prefix
917# by default will actually change.
918# Use braces instead of parens because sh, perl, etc. also accept them.
919# (The list follows the same order as the GNU Coding Standards.)
920bindir='${exec_prefix}/bin'
921sbindir='${exec_prefix}/sbin'
922libexecdir='${exec_prefix}/libexec'
923datarootdir='${prefix}/share'
924datadir='${datarootdir}'
925sysconfdir='${prefix}/etc'
926sharedstatedir='${prefix}/com'
927localstatedir='${prefix}/var'
928includedir='${prefix}/include'
929oldincludedir='/usr/include'
930docdir='${datarootdir}/doc/${PACKAGE}'
931infodir='${datarootdir}/info'
932htmldir='${docdir}'
933dvidir='${docdir}'
934pdfdir='${docdir}'
935psdir='${docdir}'
936libdir='${exec_prefix}/lib'
937localedir='${datarootdir}/locale'
938mandir='${datarootdir}/man'
939
940ac_prev=
941ac_dashdash=
942for ac_option
943do
944  # If the previous option needs an argument, assign it.
945  if test -n "$ac_prev"; then
946    eval $ac_prev=\$ac_option
947    ac_prev=
948    continue
949  fi
950
951  case $ac_option in
952  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953  *)	ac_optarg=yes ;;
954  esac
955
956  # Accept the important Cygnus configure options, so we can diagnose typos.
957
958  case $ac_dashdash$ac_option in
959  --)
960    ac_dashdash=yes ;;
961
962  -bindir | --bindir | --bindi | --bind | --bin | --bi)
963    ac_prev=bindir ;;
964  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965    bindir=$ac_optarg ;;
966
967  -build | --build | --buil | --bui | --bu)
968    ac_prev=build_alias ;;
969  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970    build_alias=$ac_optarg ;;
971
972  -cache-file | --cache-file | --cache-fil | --cache-fi \
973  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974    ac_prev=cache_file ;;
975  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977    cache_file=$ac_optarg ;;
978
979  --config-cache | -C)
980    cache_file=config.cache ;;
981
982  -datadir | --datadir | --datadi | --datad)
983    ac_prev=datadir ;;
984  -datadir=* | --datadir=* | --datadi=* | --datad=*)
985    datadir=$ac_optarg ;;
986
987  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988  | --dataroo | --dataro | --datar)
989    ac_prev=datarootdir ;;
990  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992    datarootdir=$ac_optarg ;;
993
994  -disable-* | --disable-*)
995    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996    # Reject names that are not valid shell variable names.
997    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
998      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
999   { (exit 1); exit 1; }; }
1000    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1001    eval enable_$ac_feature=no ;;
1002
1003  -docdir | --docdir | --docdi | --doc | --do)
1004    ac_prev=docdir ;;
1005  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006    docdir=$ac_optarg ;;
1007
1008  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009    ac_prev=dvidir ;;
1010  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011    dvidir=$ac_optarg ;;
1012
1013  -enable-* | --enable-*)
1014    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015    # Reject names that are not valid shell variable names.
1016    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018   { (exit 1); exit 1; }; }
1019    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020    eval enable_$ac_feature=\$ac_optarg ;;
1021
1022  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024  | --exec | --exe | --ex)
1025    ac_prev=exec_prefix ;;
1026  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028  | --exec=* | --exe=* | --ex=*)
1029    exec_prefix=$ac_optarg ;;
1030
1031  -gas | --gas | --ga | --g)
1032    # Obsolete; use --with-gas.
1033    with_gas=yes ;;
1034
1035  -help | --help | --hel | --he | -h)
1036    ac_init_help=long ;;
1037  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038    ac_init_help=recursive ;;
1039  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040    ac_init_help=short ;;
1041
1042  -host | --host | --hos | --ho)
1043    ac_prev=host_alias ;;
1044  -host=* | --host=* | --hos=* | --ho=*)
1045    host_alias=$ac_optarg ;;
1046
1047  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048    ac_prev=htmldir ;;
1049  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050  | --ht=*)
1051    htmldir=$ac_optarg ;;
1052
1053  -includedir | --includedir | --includedi | --included | --include \
1054  | --includ | --inclu | --incl | --inc)
1055    ac_prev=includedir ;;
1056  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057  | --includ=* | --inclu=* | --incl=* | --inc=*)
1058    includedir=$ac_optarg ;;
1059
1060  -infodir | --infodir | --infodi | --infod | --info | --inf)
1061    ac_prev=infodir ;;
1062  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063    infodir=$ac_optarg ;;
1064
1065  -libdir | --libdir | --libdi | --libd)
1066    ac_prev=libdir ;;
1067  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068    libdir=$ac_optarg ;;
1069
1070  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071  | --libexe | --libex | --libe)
1072    ac_prev=libexecdir ;;
1073  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074  | --libexe=* | --libex=* | --libe=*)
1075    libexecdir=$ac_optarg ;;
1076
1077  -localedir | --localedir | --localedi | --localed | --locale)
1078    ac_prev=localedir ;;
1079  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080    localedir=$ac_optarg ;;
1081
1082  -localstatedir | --localstatedir | --localstatedi | --localstated \
1083  | --localstate | --localstat | --localsta | --localst | --locals)
1084    ac_prev=localstatedir ;;
1085  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087    localstatedir=$ac_optarg ;;
1088
1089  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090    ac_prev=mandir ;;
1091  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092    mandir=$ac_optarg ;;
1093
1094  -nfp | --nfp | --nf)
1095    # Obsolete; use --without-fp.
1096    with_fp=no ;;
1097
1098  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099  | --no-cr | --no-c | -n)
1100    no_create=yes ;;
1101
1102  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104    no_recursion=yes ;;
1105
1106  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108  | --oldin | --oldi | --old | --ol | --o)
1109    ac_prev=oldincludedir ;;
1110  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113    oldincludedir=$ac_optarg ;;
1114
1115  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116    ac_prev=prefix ;;
1117  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118    prefix=$ac_optarg ;;
1119
1120  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121  | --program-pre | --program-pr | --program-p)
1122    ac_prev=program_prefix ;;
1123  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125    program_prefix=$ac_optarg ;;
1126
1127  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128  | --program-suf | --program-su | --program-s)
1129    ac_prev=program_suffix ;;
1130  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132    program_suffix=$ac_optarg ;;
1133
1134  -program-transform-name | --program-transform-name \
1135  | --program-transform-nam | --program-transform-na \
1136  | --program-transform-n | --program-transform- \
1137  | --program-transform | --program-transfor \
1138  | --program-transfo | --program-transf \
1139  | --program-trans | --program-tran \
1140  | --progr-tra | --program-tr | --program-t)
1141    ac_prev=program_transform_name ;;
1142  -program-transform-name=* | --program-transform-name=* \
1143  | --program-transform-nam=* | --program-transform-na=* \
1144  | --program-transform-n=* | --program-transform-=* \
1145  | --program-transform=* | --program-transfor=* \
1146  | --program-transfo=* | --program-transf=* \
1147  | --program-trans=* | --program-tran=* \
1148  | --progr-tra=* | --program-tr=* | --program-t=*)
1149    program_transform_name=$ac_optarg ;;
1150
1151  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152    ac_prev=pdfdir ;;
1153  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154    pdfdir=$ac_optarg ;;
1155
1156  -psdir | --psdir | --psdi | --psd | --ps)
1157    ac_prev=psdir ;;
1158  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159    psdir=$ac_optarg ;;
1160
1161  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162  | -silent | --silent | --silen | --sile | --sil)
1163    silent=yes ;;
1164
1165  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166    ac_prev=sbindir ;;
1167  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168  | --sbi=* | --sb=*)
1169    sbindir=$ac_optarg ;;
1170
1171  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173  | --sharedst | --shareds | --shared | --share | --shar \
1174  | --sha | --sh)
1175    ac_prev=sharedstatedir ;;
1176  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179  | --sha=* | --sh=*)
1180    sharedstatedir=$ac_optarg ;;
1181
1182  -site | --site | --sit)
1183    ac_prev=site ;;
1184  -site=* | --site=* | --sit=*)
1185    site=$ac_optarg ;;
1186
1187  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188    ac_prev=srcdir ;;
1189  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190    srcdir=$ac_optarg ;;
1191
1192  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193  | --syscon | --sysco | --sysc | --sys | --sy)
1194    ac_prev=sysconfdir ;;
1195  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197    sysconfdir=$ac_optarg ;;
1198
1199  -target | --target | --targe | --targ | --tar | --ta | --t)
1200    ac_prev=target_alias ;;
1201  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202    target_alias=$ac_optarg ;;
1203
1204  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205    verbose=yes ;;
1206
1207  -version | --version | --versio | --versi | --vers | -V)
1208    ac_init_version=: ;;
1209
1210  -with-* | --with-*)
1211    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212    # Reject names that are not valid shell variable names.
1213    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214      { echo "$as_me: error: invalid package name: $ac_package" >&2
1215   { (exit 1); exit 1; }; }
1216    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1217    eval with_$ac_package=\$ac_optarg ;;
1218
1219  -without-* | --without-*)
1220    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221    # Reject names that are not valid shell variable names.
1222    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223      { echo "$as_me: error: invalid package name: $ac_package" >&2
1224   { (exit 1); exit 1; }; }
1225    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226    eval with_$ac_package=no ;;
1227
1228  --x)
1229    # Obsolete; use --with-x.
1230    with_x=yes ;;
1231
1232  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233  | --x-incl | --x-inc | --x-in | --x-i)
1234    ac_prev=x_includes ;;
1235  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237    x_includes=$ac_optarg ;;
1238
1239  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241    ac_prev=x_libraries ;;
1242  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244    x_libraries=$ac_optarg ;;
1245
1246  -*) { echo "$as_me: error: unrecognized option: $ac_option
1247Try \`$0 --help' for more information." >&2
1248   { (exit 1); exit 1; }; }
1249    ;;
1250
1251  *=*)
1252    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253    # Reject names that are not valid shell variable names.
1254    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1255      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1256   { (exit 1); exit 1; }; }
1257    eval $ac_envvar=\$ac_optarg
1258    export $ac_envvar ;;
1259
1260  *)
1261    # FIXME: should be removed in autoconf 3.0.
1262    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1266    ;;
1267
1268  esac
1269done
1270
1271if test -n "$ac_prev"; then
1272  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273  { echo "$as_me: error: missing argument to $ac_option" >&2
1274   { (exit 1); exit 1; }; }
1275fi
1276
1277# Be sure to have absolute directory names.
1278for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279		datadir sysconfdir sharedstatedir localstatedir includedir \
1280		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281		libdir localedir mandir
1282do
1283  eval ac_val=\$$ac_var
1284  case $ac_val in
1285    [\\/$]* | ?:[\\/]* )  continue;;
1286    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287  esac
1288  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1289   { (exit 1); exit 1; }; }
1290done
1291
1292# There might be people who depend on the old broken behavior: `$host'
1293# used to hold the argument of --host etc.
1294# FIXME: To remove some day.
1295build=$build_alias
1296host=$host_alias
1297target=$target_alias
1298
1299# FIXME: To remove some day.
1300if test "x$host_alias" != x; then
1301  if test "x$build_alias" = x; then
1302    cross_compiling=maybe
1303    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304    If a cross compiler is detected then cross compile mode will be used." >&2
1305  elif test "x$build_alias" != "x$host_alias"; then
1306    cross_compiling=yes
1307  fi
1308fi
1309
1310ac_tool_prefix=
1311test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313test "$silent" = yes && exec 6>/dev/null
1314
1315
1316ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317ac_ls_di=`ls -di .` &&
1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319  { echo "$as_me: error: Working directory cannot be determined" >&2
1320   { (exit 1); exit 1; }; }
1321test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322  { echo "$as_me: error: pwd does not report name of working directory" >&2
1323   { (exit 1); exit 1; }; }
1324
1325
1326# Find the source files, if location was not specified.
1327if test -z "$srcdir"; then
1328  ac_srcdir_defaulted=yes
1329  # Try the directory containing this script, then the parent directory.
1330  ac_confdir=`$as_dirname -- "$0" ||
1331$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332	 X"$0" : 'X\(//\)[^/]' \| \
1333	 X"$0" : 'X\(//\)$' \| \
1334	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1335echo X"$0" |
1336    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337	    s//\1/
1338	    q
1339	  }
1340	  /^X\(\/\/\)[^/].*/{
1341	    s//\1/
1342	    q
1343	  }
1344	  /^X\(\/\/\)$/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\).*/{
1349	    s//\1/
1350	    q
1351	  }
1352	  s/.*/./; q'`
1353  srcdir=$ac_confdir
1354  if test ! -r "$srcdir/$ac_unique_file"; then
1355    srcdir=..
1356  fi
1357else
1358  ac_srcdir_defaulted=no
1359fi
1360if test ! -r "$srcdir/$ac_unique_file"; then
1361  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1363   { (exit 1); exit 1; }; }
1364fi
1365ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366ac_abs_confdir=`(
1367	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1368   { (exit 1); exit 1; }; }
1369	pwd)`
1370# When building in place, set srcdir=.
1371if test "$ac_abs_confdir" = "$ac_pwd"; then
1372  srcdir=.
1373fi
1374# Remove unnecessary trailing slashes from srcdir.
1375# Double slashes in file names in object file debugging info
1376# mess up M-x gdb in Emacs.
1377case $srcdir in
1378*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379esac
1380for ac_var in $ac_precious_vars; do
1381  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382  eval ac_env_${ac_var}_value=\$${ac_var}
1383  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385done
1386
1387#
1388# Report the --help message.
1389#
1390if test "$ac_init_help" = "long"; then
1391  # Omit some internal or obsolete options to make the list less imposing.
1392  # This message is too long to be a string in the A/UX 3.1 sh.
1393  cat <<_ACEOF
1394\`configure' configures this package to adapt to many kinds of systems.
1395
1396Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399VAR=VALUE.  See below for descriptions of some of the useful variables.
1400
1401Defaults for the options are specified in brackets.
1402
1403Configuration:
1404  -h, --help              display this help and exit
1405      --help=short        display options specific to this package
1406      --help=recursive    display the short help of all the included packages
1407  -V, --version           display version information and exit
1408  -q, --quiet, --silent   do not print \`checking...' messages
1409      --cache-file=FILE   cache test results in FILE [disabled]
1410  -C, --config-cache      alias for \`--cache-file=config.cache'
1411  -n, --no-create         do not create output files
1412      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1413
1414Installation directories:
1415  --prefix=PREFIX         install architecture-independent files in PREFIX
1416			  [$ac_default_prefix]
1417  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1418			  [PREFIX]
1419
1420By default, \`make install' will install all the files in
1421\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1422an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423for instance \`--prefix=\$HOME'.
1424
1425For better control, use the options below.
1426
1427Fine tuning of the installation directories:
1428  --bindir=DIR           user executables [EPREFIX/bin]
1429  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1430  --libexecdir=DIR       program executables [EPREFIX/libexec]
1431  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1432  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1433  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1434  --libdir=DIR           object code libraries [EPREFIX/lib]
1435  --includedir=DIR       C header files [PREFIX/include]
1436  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1437  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1438  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1439  --infodir=DIR          info documentation [DATAROOTDIR/info]
1440  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1441  --mandir=DIR           man documentation [DATAROOTDIR/man]
1442  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1443  --htmldir=DIR          html documentation [DOCDIR]
1444  --dvidir=DIR           dvi documentation [DOCDIR]
1445  --pdfdir=DIR           pdf documentation [DOCDIR]
1446  --psdir=DIR            ps documentation [DOCDIR]
1447_ACEOF
1448
1449  cat <<\_ACEOF
1450
1451Program names:
1452  --program-prefix=PREFIX            prepend PREFIX to installed program names
1453  --program-suffix=SUFFIX            append SUFFIX to installed program names
1454  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1455
1456System types:
1457  --build=BUILD     configure for building on BUILD [guessed]
1458  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1459_ACEOF
1460fi
1461
1462if test -n "$ac_init_help"; then
1463
1464  cat <<\_ACEOF
1465
1466Optional Features:
1467  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469  --disable-dependency-tracking  speeds up one-time build
1470  --enable-dependency-tracking   do not reject slow dependency extractors
1471  --enable-shared[=PKGS]  build shared libraries [default=yes]
1472  --enable-static[=PKGS]  build static libraries [default=yes]
1473  --enable-fast-install[=PKGS]
1474                          optimize for fast installation [default=yes]
1475  --disable-libtool-lock  avoid locking (might break parallel builds)
1476
1477Optional Packages:
1478  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1479  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1480  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1481  --with-pic              try to use only PIC/non-PIC objects [default=use
1482                          both]
1483  --with-tags[=TAGS]      include additional configurations [automatic]
1484
1485Some influential environment variables:
1486  CXX         C++ compiler command
1487  CXXFLAGS    C++ compiler flags
1488  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1489              nonstandard directory <lib dir>
1490  LIBS        libraries to pass to the linker, e.g. -l<library>
1491  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1492              you have headers in a nonstandard directory <include dir>
1493  CC          C compiler command
1494  CFLAGS      C compiler flags
1495  CPP         C preprocessor
1496  CXXCPP      C++ preprocessor
1497  F77         Fortran 77 compiler command
1498  FFLAGS      Fortran 77 compiler flags
1499
1500Use these variables to override the choices made by `configure' or to help
1501it to find libraries and programs with nonstandard names/locations.
1502
1503_ACEOF
1504ac_status=$?
1505fi
1506
1507if test "$ac_init_help" = "recursive"; then
1508  # If there are subdirs, report their specific --help.
1509  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510    test -d "$ac_dir" || continue
1511    ac_builddir=.
1512
1513case "$ac_dir" in
1514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515*)
1516  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1517  # A ".." for each directory in $ac_dir_suffix.
1518  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1519  case $ac_top_builddir_sub in
1520  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522  esac ;;
1523esac
1524ac_abs_top_builddir=$ac_pwd
1525ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526# for backward compatibility:
1527ac_top_builddir=$ac_top_build_prefix
1528
1529case $srcdir in
1530  .)  # We are building in place.
1531    ac_srcdir=.
1532    ac_top_srcdir=$ac_top_builddir_sub
1533    ac_abs_top_srcdir=$ac_pwd ;;
1534  [\\/]* | ?:[\\/]* )  # Absolute name.
1535    ac_srcdir=$srcdir$ac_dir_suffix;
1536    ac_top_srcdir=$srcdir
1537    ac_abs_top_srcdir=$srcdir ;;
1538  *) # Relative name.
1539    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540    ac_top_srcdir=$ac_top_build_prefix$srcdir
1541    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542esac
1543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545    cd "$ac_dir" || { ac_status=$?; continue; }
1546    # Check for guested configure.
1547    if test -f "$ac_srcdir/configure.gnu"; then
1548      echo &&
1549      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550    elif test -f "$ac_srcdir/configure"; then
1551      echo &&
1552      $SHELL "$ac_srcdir/configure" --help=recursive
1553    else
1554      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555    fi || ac_status=$?
1556    cd "$ac_pwd" || { ac_status=$?; break; }
1557  done
1558fi
1559
1560test -n "$ac_init_help" && exit $ac_status
1561if $ac_init_version; then
1562  cat <<\_ACEOF
1563configure
1564generated by GNU Autoconf 2.61
1565
1566Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15672002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1568This configure script is free software; the Free Software Foundation
1569gives unlimited permission to copy, distribute and modify it.
1570_ACEOF
1571  exit
1572fi
1573cat >config.log <<_ACEOF
1574This file contains any messages produced by compilers while
1575running configure, to aid debugging if configure makes a mistake.
1576
1577It was created by $as_me, which was
1578generated by GNU Autoconf 2.61.  Invocation command line was
1579
1580  $ $0 $@
1581
1582_ACEOF
1583exec 5>>config.log
1584{
1585cat <<_ASUNAME
1586## --------- ##
1587## Platform. ##
1588## --------- ##
1589
1590hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1591uname -m = `(uname -m) 2>/dev/null || echo unknown`
1592uname -r = `(uname -r) 2>/dev/null || echo unknown`
1593uname -s = `(uname -s) 2>/dev/null || echo unknown`
1594uname -v = `(uname -v) 2>/dev/null || echo unknown`
1595
1596/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1597/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1598
1599/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1600/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1601/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1602/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1603/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1604/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1605/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1606
1607_ASUNAME
1608
1609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610for as_dir in $PATH
1611do
1612  IFS=$as_save_IFS
1613  test -z "$as_dir" && as_dir=.
1614  echo "PATH: $as_dir"
1615done
1616IFS=$as_save_IFS
1617
1618} >&5
1619
1620cat >&5 <<_ACEOF
1621
1622
1623## ----------- ##
1624## Core tests. ##
1625## ----------- ##
1626
1627_ACEOF
1628
1629
1630# Keep a trace of the command line.
1631# Strip out --no-create and --no-recursion so they do not pile up.
1632# Strip out --silent because we don't want to record it for future runs.
1633# Also quote any args containing shell meta-characters.
1634# Make two passes to allow for proper duplicate-argument suppression.
1635ac_configure_args=
1636ac_configure_args0=
1637ac_configure_args1=
1638ac_must_keep_next=false
1639for ac_pass in 1 2
1640do
1641  for ac_arg
1642  do
1643    case $ac_arg in
1644    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1645    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1646    | -silent | --silent | --silen | --sile | --sil)
1647      continue ;;
1648    *\'*)
1649      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1650    esac
1651    case $ac_pass in
1652    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1653    2)
1654      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1655      if test $ac_must_keep_next = true; then
1656	ac_must_keep_next=false # Got value, back to normal.
1657      else
1658	case $ac_arg in
1659	  *=* | --config-cache | -C | -disable-* | --disable-* \
1660	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1661	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1662	  | -with-* | --with-* | -without-* | --without-* | --x)
1663	    case "$ac_configure_args0 " in
1664	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1665	    esac
1666	    ;;
1667	  -* ) ac_must_keep_next=true ;;
1668	esac
1669      fi
1670      ac_configure_args="$ac_configure_args '$ac_arg'"
1671      ;;
1672    esac
1673  done
1674done
1675$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1676$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1677
1678# When interrupted or exit'd, cleanup temporary files, and complete
1679# config.log.  We remove comments because anyway the quotes in there
1680# would cause problems or look ugly.
1681# WARNING: Use '\'' to represent an apostrophe within the trap.
1682# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1683trap 'exit_status=$?
1684  # Save into config.log some information that might help in debugging.
1685  {
1686    echo
1687
1688    cat <<\_ASBOX
1689## ---------------- ##
1690## Cache variables. ##
1691## ---------------- ##
1692_ASBOX
1693    echo
1694    # The following way of writing the cache mishandles newlines in values,
1695(
1696  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1697    eval ac_val=\$$ac_var
1698    case $ac_val in #(
1699    *${as_nl}*)
1700      case $ac_var in #(
1701      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1702echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1703      esac
1704      case $ac_var in #(
1705      _ | IFS | as_nl) ;; #(
1706      *) $as_unset $ac_var ;;
1707      esac ;;
1708    esac
1709  done
1710  (set) 2>&1 |
1711    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1712    *${as_nl}ac_space=\ *)
1713      sed -n \
1714	"s/'\''/'\''\\\\'\'''\''/g;
1715	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1716      ;; #(
1717    *)
1718      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1719      ;;
1720    esac |
1721    sort
1722)
1723    echo
1724
1725    cat <<\_ASBOX
1726## ----------------- ##
1727## Output variables. ##
1728## ----------------- ##
1729_ASBOX
1730    echo
1731    for ac_var in $ac_subst_vars
1732    do
1733      eval ac_val=\$$ac_var
1734      case $ac_val in
1735      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1736      esac
1737      echo "$ac_var='\''$ac_val'\''"
1738    done | sort
1739    echo
1740
1741    if test -n "$ac_subst_files"; then
1742      cat <<\_ASBOX
1743## ------------------- ##
1744## File substitutions. ##
1745## ------------------- ##
1746_ASBOX
1747      echo
1748      for ac_var in $ac_subst_files
1749      do
1750	eval ac_val=\$$ac_var
1751	case $ac_val in
1752	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753	esac
1754	echo "$ac_var='\''$ac_val'\''"
1755      done | sort
1756      echo
1757    fi
1758
1759    if test -s confdefs.h; then
1760      cat <<\_ASBOX
1761## ----------- ##
1762## confdefs.h. ##
1763## ----------- ##
1764_ASBOX
1765      echo
1766      cat confdefs.h
1767      echo
1768    fi
1769    test "$ac_signal" != 0 &&
1770      echo "$as_me: caught signal $ac_signal"
1771    echo "$as_me: exit $exit_status"
1772  } >&5
1773  rm -f core *.core core.conftest.* &&
1774    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1775    exit $exit_status
1776' 0
1777for ac_signal in 1 2 13 15; do
1778  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1779done
1780ac_signal=0
1781
1782# confdefs.h avoids OS command line length limits that DEFS can exceed.
1783rm -f -r conftest* confdefs.h
1784
1785# Predefined preprocessor variables.
1786
1787cat >>confdefs.h <<_ACEOF
1788#define PACKAGE_NAME "$PACKAGE_NAME"
1789_ACEOF
1790
1791
1792cat >>confdefs.h <<_ACEOF
1793#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1794_ACEOF
1795
1796
1797cat >>confdefs.h <<_ACEOF
1798#define PACKAGE_VERSION "$PACKAGE_VERSION"
1799_ACEOF
1800
1801
1802cat >>confdefs.h <<_ACEOF
1803#define PACKAGE_STRING "$PACKAGE_STRING"
1804_ACEOF
1805
1806
1807cat >>confdefs.h <<_ACEOF
1808#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1809_ACEOF
1810
1811
1812# Let the site file select an alternate cache file if it wants to.
1813# Prefer explicitly selected file to automatically selected ones.
1814if test -n "$CONFIG_SITE"; then
1815  set x "$CONFIG_SITE"
1816elif test "x$prefix" != xNONE; then
1817  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1818else
1819  set x "$ac_default_prefix/share/config.site" \
1820	"$ac_default_prefix/etc/config.site"
1821fi
1822shift
1823for ac_site_file
1824do
1825  if test -r "$ac_site_file"; then
1826    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1827echo "$as_me: loading site script $ac_site_file" >&6;}
1828    sed 's/^/| /' "$ac_site_file" >&5
1829    . "$ac_site_file"
1830  fi
1831done
1832
1833if test -r "$cache_file"; then
1834  # Some versions of bash will fail to source /dev/null (special
1835  # files actually), so we avoid doing that.
1836  if test -f "$cache_file"; then
1837    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1838echo "$as_me: loading cache $cache_file" >&6;}
1839    case $cache_file in
1840      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1841      *)                      . "./$cache_file";;
1842    esac
1843  fi
1844else
1845  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1846echo "$as_me: creating cache $cache_file" >&6;}
1847  >$cache_file
1848fi
1849
1850# Check that the precious variables saved in the cache have kept the same
1851# value.
1852ac_cache_corrupted=false
1853for ac_var in $ac_precious_vars; do
1854  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1855  eval ac_new_set=\$ac_env_${ac_var}_set
1856  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1857  eval ac_new_val=\$ac_env_${ac_var}_value
1858  case $ac_old_set,$ac_new_set in
1859    set,)
1860      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1861echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1862      ac_cache_corrupted=: ;;
1863    ,set)
1864      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1865echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1866      ac_cache_corrupted=: ;;
1867    ,);;
1868    *)
1869      if test "x$ac_old_val" != "x$ac_new_val"; then
1870	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1871echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1872	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1873echo "$as_me:   former value:  $ac_old_val" >&2;}
1874	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1875echo "$as_me:   current value: $ac_new_val" >&2;}
1876	ac_cache_corrupted=:
1877      fi;;
1878  esac
1879  # Pass precious variables to config.status.
1880  if test "$ac_new_set" = set; then
1881    case $ac_new_val in
1882    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1883    *) ac_arg=$ac_var=$ac_new_val ;;
1884    esac
1885    case " $ac_configure_args " in
1886      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1887      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1888    esac
1889  fi
1890done
1891if $ac_cache_corrupted; then
1892  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1893echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1894  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1895echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1896   { (exit 1); exit 1; }; }
1897fi
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915ac_ext=c
1916ac_cpp='$CPP $CPPFLAGS'
1917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919ac_compiler_gnu=$ac_cv_c_compiler_gnu
1920
1921
1922
1923CXXFLAGS="$CXXFLAGS -D_UNIX"
1924ac_config_headers="$ac_config_headers config.h"
1925
1926am__api_version='1.10'
1927
1928ac_aux_dir=
1929for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1930  if test -f "$ac_dir/install-sh"; then
1931    ac_aux_dir=$ac_dir
1932    ac_install_sh="$ac_aux_dir/install-sh -c"
1933    break
1934  elif test -f "$ac_dir/install.sh"; then
1935    ac_aux_dir=$ac_dir
1936    ac_install_sh="$ac_aux_dir/install.sh -c"
1937    break
1938  elif test -f "$ac_dir/shtool"; then
1939    ac_aux_dir=$ac_dir
1940    ac_install_sh="$ac_aux_dir/shtool install -c"
1941    break
1942  fi
1943done
1944if test -z "$ac_aux_dir"; then
1945  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1946echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1947   { (exit 1); exit 1; }; }
1948fi
1949
1950# These three variables are undocumented and unsupported,
1951# and are intended to be withdrawn in a future Autoconf release.
1952# They can cause serious problems if a builder's source tree is in a directory
1953# whose full name contains unusual characters.
1954ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1955ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1956ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1957
1958
1959# Find a good install program.  We prefer a C program (faster),
1960# so one script is as good as another.  But avoid the broken or
1961# incompatible versions:
1962# SysV /etc/install, /usr/sbin/install
1963# SunOS /usr/etc/install
1964# IRIX /sbin/install
1965# AIX /bin/install
1966# AmigaOS /C/install, which installs bootblocks on floppy discs
1967# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1968# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1969# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1970# OS/2's system install, which has a completely different semantic
1971# ./install, which can be erroneously created by make from ./install.sh.
1972{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1973echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1974if test -z "$INSTALL"; then
1975if test "${ac_cv_path_install+set}" = set; then
1976  echo $ECHO_N "(cached) $ECHO_C" >&6
1977else
1978  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979for as_dir in $PATH
1980do
1981  IFS=$as_save_IFS
1982  test -z "$as_dir" && as_dir=.
1983  # Account for people who put trailing slashes in PATH elements.
1984case $as_dir/ in
1985  ./ | .// | /cC/* | \
1986  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1987  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1988  /usr/ucb/* ) ;;
1989  *)
1990    # OSF1 and SCO ODT 3.0 have their own names for install.
1991    # Don't use installbsd from OSF since it installs stuff as root
1992    # by default.
1993    for ac_prog in ginstall scoinst install; do
1994      for ac_exec_ext in '' $ac_executable_extensions; do
1995	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1996	  if test $ac_prog = install &&
1997	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1998	    # AIX install.  It has an incompatible calling convention.
1999	    :
2000	  elif test $ac_prog = install &&
2001	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2002	    # program-specific install script used by HP pwplus--don't use.
2003	    :
2004	  else
2005	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2006	    break 3
2007	  fi
2008	fi
2009      done
2010    done
2011    ;;
2012esac
2013done
2014IFS=$as_save_IFS
2015
2016
2017fi
2018  if test "${ac_cv_path_install+set}" = set; then
2019    INSTALL=$ac_cv_path_install
2020  else
2021    # As a last resort, use the slow shell script.  Don't cache a
2022    # value for INSTALL within a source directory, because that will
2023    # break other packages using the cache if that directory is
2024    # removed, or if the value is a relative name.
2025    INSTALL=$ac_install_sh
2026  fi
2027fi
2028{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2029echo "${ECHO_T}$INSTALL" >&6; }
2030
2031# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2032# It thinks the first close brace ends the variable substitution.
2033test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2034
2035test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2036
2037test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2038
2039{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2040echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2041# Just in case
2042sleep 1
2043echo timestamp > conftest.file
2044# Do `set' in a subshell so we don't clobber the current shell's
2045# arguments.  Must try -L first in case configure is actually a
2046# symlink; some systems play weird games with the mod time of symlinks
2047# (eg FreeBSD returns the mod time of the symlink's containing
2048# directory).
2049if (
2050   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2051   if test "$*" = "X"; then
2052      # -L didn't work.
2053      set X `ls -t $srcdir/configure conftest.file`
2054   fi
2055   rm -f conftest.file
2056   if test "$*" != "X $srcdir/configure conftest.file" \
2057      && test "$*" != "X conftest.file $srcdir/configure"; then
2058
2059      # If neither matched, then we have a broken ls.  This can happen
2060      # if, for instance, CONFIG_SHELL is bash and it inherits a
2061      # broken ls alias from the environment.  This has actually
2062      # happened.  Such a system could not be considered "sane".
2063      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2064alias in your environment" >&5
2065echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2066alias in your environment" >&2;}
2067   { (exit 1); exit 1; }; }
2068   fi
2069
2070   test "$2" = conftest.file
2071   )
2072then
2073   # Ok.
2074   :
2075else
2076   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2077Check your system clock" >&5
2078echo "$as_me: error: newly created file is older than distributed files!
2079Check your system clock" >&2;}
2080   { (exit 1); exit 1; }; }
2081fi
2082{ echo "$as_me:$LINENO: result: yes" >&5
2083echo "${ECHO_T}yes" >&6; }
2084test "$program_prefix" != NONE &&
2085  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2086# Use a double $ so make ignores it.
2087test "$program_suffix" != NONE &&
2088  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2089# Double any \ or $.  echo might interpret backslashes.
2090# By default was `s,x,x', remove it if useless.
2091cat <<\_ACEOF >conftest.sed
2092s/[\\$]/&&/g;s/;s,x,x,$//
2093_ACEOF
2094program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2095rm -f conftest.sed
2096
2097# expand $ac_aux_dir to an absolute path
2098am_aux_dir=`cd $ac_aux_dir && pwd`
2099
2100test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2101# Use eval to expand $SHELL
2102if eval "$MISSING --run true"; then
2103  am_missing_run="$MISSING --run "
2104else
2105  am_missing_run=
2106  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2107echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2108fi
2109
2110{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2111echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2112if test -z "$MKDIR_P"; then
2113  if test "${ac_cv_path_mkdir+set}" = set; then
2114  echo $ECHO_N "(cached) $ECHO_C" >&6
2115else
2116  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2118do
2119  IFS=$as_save_IFS
2120  test -z "$as_dir" && as_dir=.
2121  for ac_prog in mkdir gmkdir; do
2122	 for ac_exec_ext in '' $ac_executable_extensions; do
2123	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2124	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2125	     'mkdir (GNU coreutils) '* | \
2126	     'mkdir (coreutils) '* | \
2127	     'mkdir (fileutils) '4.1*)
2128	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2129	       break 3;;
2130	   esac
2131	 done
2132       done
2133done
2134IFS=$as_save_IFS
2135
2136fi
2137
2138  if test "${ac_cv_path_mkdir+set}" = set; then
2139    MKDIR_P="$ac_cv_path_mkdir -p"
2140  else
2141    # As a last resort, use the slow shell script.  Don't cache a
2142    # value for MKDIR_P within a source directory, because that will
2143    # break other packages using the cache if that directory is
2144    # removed, or if the value is a relative name.
2145    test -d ./--version && rmdir ./--version
2146    MKDIR_P="$ac_install_sh -d"
2147  fi
2148fi
2149{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2150echo "${ECHO_T}$MKDIR_P" >&6; }
2151
2152mkdir_p="$MKDIR_P"
2153case $mkdir_p in
2154  [\\/$]* | ?:[\\/]*) ;;
2155  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2156esac
2157
2158for ac_prog in gawk mawk nawk awk
2159do
2160  # Extract the first word of "$ac_prog", so it can be a program name with args.
2161set dummy $ac_prog; ac_word=$2
2162{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2164if test "${ac_cv_prog_AWK+set}" = set; then
2165  echo $ECHO_N "(cached) $ECHO_C" >&6
2166else
2167  if test -n "$AWK"; then
2168  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2169else
2170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171for as_dir in $PATH
2172do
2173  IFS=$as_save_IFS
2174  test -z "$as_dir" && as_dir=.
2175  for ac_exec_ext in '' $ac_executable_extensions; do
2176  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2177    ac_cv_prog_AWK="$ac_prog"
2178    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179    break 2
2180  fi
2181done
2182done
2183IFS=$as_save_IFS
2184
2185fi
2186fi
2187AWK=$ac_cv_prog_AWK
2188if test -n "$AWK"; then
2189  { echo "$as_me:$LINENO: result: $AWK" >&5
2190echo "${ECHO_T}$AWK" >&6; }
2191else
2192  { echo "$as_me:$LINENO: result: no" >&5
2193echo "${ECHO_T}no" >&6; }
2194fi
2195
2196
2197  test -n "$AWK" && break
2198done
2199
2200{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2201echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2202set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2203if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2204  echo $ECHO_N "(cached) $ECHO_C" >&6
2205else
2206  cat >conftest.make <<\_ACEOF
2207SHELL = /bin/sh
2208all:
2209	@echo '@@@%%%=$(MAKE)=@@@%%%'
2210_ACEOF
2211# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2212case `${MAKE-make} -f conftest.make 2>/dev/null` in
2213  *@@@%%%=?*=@@@%%%*)
2214    eval ac_cv_prog_make_${ac_make}_set=yes;;
2215  *)
2216    eval ac_cv_prog_make_${ac_make}_set=no;;
2217esac
2218rm -f conftest.make
2219fi
2220if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2221  { echo "$as_me:$LINENO: result: yes" >&5
2222echo "${ECHO_T}yes" >&6; }
2223  SET_MAKE=
2224else
2225  { echo "$as_me:$LINENO: result: no" >&5
2226echo "${ECHO_T}no" >&6; }
2227  SET_MAKE="MAKE=${MAKE-make}"
2228fi
2229
2230rm -rf .tst 2>/dev/null
2231mkdir .tst 2>/dev/null
2232if test -d .tst; then
2233  am__leading_dot=.
2234else
2235  am__leading_dot=_
2236fi
2237rmdir .tst 2>/dev/null
2238
2239if test "`cd $srcdir && pwd`" != "`pwd`"; then
2240  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2241  # is not polluted with repeated "-I."
2242  am__isrc=' -I$(srcdir)'
2243  # test to see if srcdir already configured
2244  if test -f $srcdir/config.status; then
2245    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2246echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2247   { (exit 1); exit 1; }; }
2248  fi
2249fi
2250
2251# test whether we have cygpath
2252if test -z "$CYGPATH_W"; then
2253  if (cygpath --version) >/dev/null 2>/dev/null; then
2254    CYGPATH_W='cygpath -w'
2255  else
2256    CYGPATH_W=echo
2257  fi
2258fi
2259
2260
2261# Define the identity of the package.
2262 PACKAGE=unmass_kdev
2263 VERSION=0.9
2264
2265
2266cat >>confdefs.h <<_ACEOF
2267#define PACKAGE "$PACKAGE"
2268_ACEOF
2269
2270
2271cat >>confdefs.h <<_ACEOF
2272#define VERSION "$VERSION"
2273_ACEOF
2274
2275# Some tools Automake needs.
2276
2277ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2278
2279
2280AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2281
2282
2283AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2284
2285
2286AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2287
2288
2289MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2290
2291install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2292
2293# Installed binaries are usually stripped using `strip' when the user
2294# run `make install-strip'.  However `strip' might not be the right
2295# tool to use in cross-compilation environments, therefore Automake
2296# will honor the `STRIP' environment variable to overrule this program.
2297if test "$cross_compiling" != no; then
2298  if test -n "$ac_tool_prefix"; then
2299  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2300set dummy ${ac_tool_prefix}strip; ac_word=$2
2301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2303if test "${ac_cv_prog_STRIP+set}" = set; then
2304  echo $ECHO_N "(cached) $ECHO_C" >&6
2305else
2306  if test -n "$STRIP"; then
2307  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2308else
2309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310for as_dir in $PATH
2311do
2312  IFS=$as_save_IFS
2313  test -z "$as_dir" && as_dir=.
2314  for ac_exec_ext in '' $ac_executable_extensions; do
2315  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2316    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2317    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318    break 2
2319  fi
2320done
2321done
2322IFS=$as_save_IFS
2323
2324fi
2325fi
2326STRIP=$ac_cv_prog_STRIP
2327if test -n "$STRIP"; then
2328  { echo "$as_me:$LINENO: result: $STRIP" >&5
2329echo "${ECHO_T}$STRIP" >&6; }
2330else
2331  { echo "$as_me:$LINENO: result: no" >&5
2332echo "${ECHO_T}no" >&6; }
2333fi
2334
2335
2336fi
2337if test -z "$ac_cv_prog_STRIP"; then
2338  ac_ct_STRIP=$STRIP
2339  # Extract the first word of "strip", so it can be a program name with args.
2340set dummy strip; ac_word=$2
2341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2343if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2344  echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346  if test -n "$ac_ct_STRIP"; then
2347  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2348else
2349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350for as_dir in $PATH
2351do
2352  IFS=$as_save_IFS
2353  test -z "$as_dir" && as_dir=.
2354  for ac_exec_ext in '' $ac_executable_extensions; do
2355  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356    ac_cv_prog_ac_ct_STRIP="strip"
2357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358    break 2
2359  fi
2360done
2361done
2362IFS=$as_save_IFS
2363
2364fi
2365fi
2366ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2367if test -n "$ac_ct_STRIP"; then
2368  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2369echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2370else
2371  { echo "$as_me:$LINENO: result: no" >&5
2372echo "${ECHO_T}no" >&6; }
2373fi
2374
2375  if test "x$ac_ct_STRIP" = x; then
2376    STRIP=":"
2377  else
2378    case $cross_compiling:$ac_tool_warned in
2379yes:)
2380{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2381whose name does not start with the host triplet.  If you think this
2382configuration is useful to you, please write to autoconf@gnu.org." >&5
2383echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2384whose name does not start with the host triplet.  If you think this
2385configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2386ac_tool_warned=yes ;;
2387esac
2388    STRIP=$ac_ct_STRIP
2389  fi
2390else
2391  STRIP="$ac_cv_prog_STRIP"
2392fi
2393
2394fi
2395INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2396
2397# We need awk for the "check" target.  The system "awk" is bad on
2398# some platforms.
2399# Always define AMTAR for backward compatibility.
2400
2401AMTAR=${AMTAR-"${am_missing_run}tar"}
2402
2403am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2404
2405
2406
2407
2408
2409
2410ac_ext=cpp
2411ac_cpp='$CXXCPP $CPPFLAGS'
2412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2415
2416ac_ext=cpp
2417ac_cpp='$CXXCPP $CPPFLAGS'
2418ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2421if test -z "$CXX"; then
2422  if test -n "$CCC"; then
2423    CXX=$CCC
2424  else
2425    if test -n "$ac_tool_prefix"; then
2426  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2427  do
2428    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2429set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2432if test "${ac_cv_prog_CXX+set}" = set; then
2433  echo $ECHO_N "(cached) $ECHO_C" >&6
2434else
2435  if test -n "$CXX"; then
2436  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2437else
2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439for as_dir in $PATH
2440do
2441  IFS=$as_save_IFS
2442  test -z "$as_dir" && as_dir=.
2443  for ac_exec_ext in '' $ac_executable_extensions; do
2444  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2446    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447    break 2
2448  fi
2449done
2450done
2451IFS=$as_save_IFS
2452
2453fi
2454fi
2455CXX=$ac_cv_prog_CXX
2456if test -n "$CXX"; then
2457  { echo "$as_me:$LINENO: result: $CXX" >&5
2458echo "${ECHO_T}$CXX" >&6; }
2459else
2460  { echo "$as_me:$LINENO: result: no" >&5
2461echo "${ECHO_T}no" >&6; }
2462fi
2463
2464
2465    test -n "$CXX" && break
2466  done
2467fi
2468if test -z "$CXX"; then
2469  ac_ct_CXX=$CXX
2470  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2471do
2472  # Extract the first word of "$ac_prog", so it can be a program name with args.
2473set dummy $ac_prog; ac_word=$2
2474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2477  echo $ECHO_N "(cached) $ECHO_C" >&6
2478else
2479  if test -n "$ac_ct_CXX"; then
2480  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2481else
2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483for as_dir in $PATH
2484do
2485  IFS=$as_save_IFS
2486  test -z "$as_dir" && as_dir=.
2487  for ac_exec_ext in '' $ac_executable_extensions; do
2488  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489    ac_cv_prog_ac_ct_CXX="$ac_prog"
2490    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491    break 2
2492  fi
2493done
2494done
2495IFS=$as_save_IFS
2496
2497fi
2498fi
2499ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2500if test -n "$ac_ct_CXX"; then
2501  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2502echo "${ECHO_T}$ac_ct_CXX" >&6; }
2503else
2504  { echo "$as_me:$LINENO: result: no" >&5
2505echo "${ECHO_T}no" >&6; }
2506fi
2507
2508
2509  test -n "$ac_ct_CXX" && break
2510done
2511
2512  if test "x$ac_ct_CXX" = x; then
2513    CXX="g++"
2514  else
2515    case $cross_compiling:$ac_tool_warned in
2516yes:)
2517{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518whose name does not start with the host triplet.  If you think this
2519configuration is useful to you, please write to autoconf@gnu.org." >&5
2520echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521whose name does not start with the host triplet.  If you think this
2522configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523ac_tool_warned=yes ;;
2524esac
2525    CXX=$ac_ct_CXX
2526  fi
2527fi
2528
2529  fi
2530fi
2531# Provide some information about the compiler.
2532echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2533ac_compiler=`set X $ac_compile; echo $2`
2534{ (ac_try="$ac_compiler --version >&5"
2535case "(($ac_try" in
2536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537  *) ac_try_echo=$ac_try;;
2538esac
2539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540  (eval "$ac_compiler --version >&5") 2>&5
2541  ac_status=$?
2542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543  (exit $ac_status); }
2544{ (ac_try="$ac_compiler -v >&5"
2545case "(($ac_try" in
2546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547  *) ac_try_echo=$ac_try;;
2548esac
2549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2550  (eval "$ac_compiler -v >&5") 2>&5
2551  ac_status=$?
2552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553  (exit $ac_status); }
2554{ (ac_try="$ac_compiler -V >&5"
2555case "(($ac_try" in
2556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557  *) ac_try_echo=$ac_try;;
2558esac
2559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2560  (eval "$ac_compiler -V >&5") 2>&5
2561  ac_status=$?
2562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563  (exit $ac_status); }
2564
2565cat >conftest.$ac_ext <<_ACEOF
2566/* confdefs.h.  */
2567_ACEOF
2568cat confdefs.h >>conftest.$ac_ext
2569cat >>conftest.$ac_ext <<_ACEOF
2570/* end confdefs.h.  */
2571
2572int
2573main ()
2574{
2575
2576  ;
2577  return 0;
2578}
2579_ACEOF
2580ac_clean_files_save=$ac_clean_files
2581ac_clean_files="$ac_clean_files a.out a.exe b.out"
2582# Try to create an executable without -o first, disregard a.out.
2583# It will help us diagnose broken compilers, and finding out an intuition
2584# of exeext.
2585{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2586echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2587ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2588#
2589# List of possible output files, starting from the most likely.
2590# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2591# only as a last resort.  b.out is created by i960 compilers.
2592ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2593#
2594# The IRIX 6 linker writes into existing files which may not be
2595# executable, retaining their permissions.  Remove them first so a
2596# subsequent execution test works.
2597ac_rmfiles=
2598for ac_file in $ac_files
2599do
2600  case $ac_file in
2601    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2602    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2603  esac
2604done
2605rm -f $ac_rmfiles
2606
2607if { (ac_try="$ac_link_default"
2608case "(($ac_try" in
2609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610  *) ac_try_echo=$ac_try;;
2611esac
2612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613  (eval "$ac_link_default") 2>&5
2614  ac_status=$?
2615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616  (exit $ac_status); }; then
2617  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2618# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2619# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2620# so that the user can short-circuit this test for compilers unknown to
2621# Autoconf.
2622for ac_file in $ac_files ''
2623do
2624  test -f "$ac_file" || continue
2625  case $ac_file in
2626    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2627	;;
2628    [ab].out )
2629	# We found the default executable, but exeext='' is most
2630	# certainly right.
2631	break;;
2632    *.* )
2633        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2634	then :; else
2635	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2636	fi
2637	# We set ac_cv_exeext here because the later test for it is not
2638	# safe: cross compilers may not add the suffix if given an `-o'
2639	# argument, so we may need to know it at that point already.
2640	# Even if this section looks crufty: it has the advantage of
2641	# actually working.
2642	break;;
2643    * )
2644	break;;
2645  esac
2646done
2647test "$ac_cv_exeext" = no && ac_cv_exeext=
2648
2649else
2650  ac_file=''
2651fi
2652
2653{ echo "$as_me:$LINENO: result: $ac_file" >&5
2654echo "${ECHO_T}$ac_file" >&6; }
2655if test -z "$ac_file"; then
2656  echo "$as_me: failed program was:" >&5
2657sed 's/^/| /' conftest.$ac_ext >&5
2658
2659{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2660See \`config.log' for more details." >&5
2661echo "$as_me: error: C++ compiler cannot create executables
2662See \`config.log' for more details." >&2;}
2663   { (exit 77); exit 77; }; }
2664fi
2665
2666ac_exeext=$ac_cv_exeext
2667
2668# Check that the compiler produces executables we can run.  If not, either
2669# the compiler is broken, or we cross compile.
2670{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2671echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2672# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2673# If not cross compiling, check that we can run a simple program.
2674if test "$cross_compiling" != yes; then
2675  if { ac_try='./$ac_file'
2676  { (case "(($ac_try" in
2677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678  *) ac_try_echo=$ac_try;;
2679esac
2680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681  (eval "$ac_try") 2>&5
2682  ac_status=$?
2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684  (exit $ac_status); }; }; then
2685    cross_compiling=no
2686  else
2687    if test "$cross_compiling" = maybe; then
2688	cross_compiling=yes
2689    else
2690	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2691If you meant to cross compile, use \`--host'.
2692See \`config.log' for more details." >&5
2693echo "$as_me: error: cannot run C++ compiled programs.
2694If you meant to cross compile, use \`--host'.
2695See \`config.log' for more details." >&2;}
2696   { (exit 1); exit 1; }; }
2697    fi
2698  fi
2699fi
2700{ echo "$as_me:$LINENO: result: yes" >&5
2701echo "${ECHO_T}yes" >&6; }
2702
2703rm -f a.out a.exe conftest$ac_cv_exeext b.out
2704ac_clean_files=$ac_clean_files_save
2705# Check that the compiler produces executables we can run.  If not, either
2706# the compiler is broken, or we cross compile.
2707{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2708echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2709{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2710echo "${ECHO_T}$cross_compiling" >&6; }
2711
2712{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2713echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2714if { (ac_try="$ac_link"
2715case "(($ac_try" in
2716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717  *) ac_try_echo=$ac_try;;
2718esac
2719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720  (eval "$ac_link") 2>&5
2721  ac_status=$?
2722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723  (exit $ac_status); }; then
2724  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2725# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2726# work properly (i.e., refer to `conftest.exe'), while it won't with
2727# `rm'.
2728for ac_file in conftest.exe conftest conftest.*; do
2729  test -f "$ac_file" || continue
2730  case $ac_file in
2731    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2732    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2733	  break;;
2734    * ) break;;
2735  esac
2736done
2737else
2738  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2739See \`config.log' for more details." >&5
2740echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2741See \`config.log' for more details." >&2;}
2742   { (exit 1); exit 1; }; }
2743fi
2744
2745rm -f conftest$ac_cv_exeext
2746{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2747echo "${ECHO_T}$ac_cv_exeext" >&6; }
2748
2749rm -f conftest.$ac_ext
2750EXEEXT=$ac_cv_exeext
2751ac_exeext=$EXEEXT
2752{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2753echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2754if test "${ac_cv_objext+set}" = set; then
2755  echo $ECHO_N "(cached) $ECHO_C" >&6
2756else
2757  cat >conftest.$ac_ext <<_ACEOF
2758/* confdefs.h.  */
2759_ACEOF
2760cat confdefs.h >>conftest.$ac_ext
2761cat >>conftest.$ac_ext <<_ACEOF
2762/* end confdefs.h.  */
2763
2764int
2765main ()
2766{
2767
2768  ;
2769  return 0;
2770}
2771_ACEOF
2772rm -f conftest.o conftest.obj
2773if { (ac_try="$ac_compile"
2774case "(($ac_try" in
2775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776  *) ac_try_echo=$ac_try;;
2777esac
2778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779  (eval "$ac_compile") 2>&5
2780  ac_status=$?
2781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782  (exit $ac_status); }; then
2783  for ac_file in conftest.o conftest.obj conftest.*; do
2784  test -f "$ac_file" || continue;
2785  case $ac_file in
2786    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2787    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2788       break;;
2789  esac
2790done
2791else
2792  echo "$as_me: failed program was:" >&5
2793sed 's/^/| /' conftest.$ac_ext >&5
2794
2795{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2796See \`config.log' for more details." >&5
2797echo "$as_me: error: cannot compute suffix of object files: cannot compile
2798See \`config.log' for more details." >&2;}
2799   { (exit 1); exit 1; }; }
2800fi
2801
2802rm -f conftest.$ac_cv_objext conftest.$ac_ext
2803fi
2804{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2805echo "${ECHO_T}$ac_cv_objext" >&6; }
2806OBJEXT=$ac_cv_objext
2807ac_objext=$OBJEXT
2808{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2809echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2810if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2811  echo $ECHO_N "(cached) $ECHO_C" >&6
2812else
2813  cat >conftest.$ac_ext <<_ACEOF
2814/* confdefs.h.  */
2815_ACEOF
2816cat confdefs.h >>conftest.$ac_ext
2817cat >>conftest.$ac_ext <<_ACEOF
2818/* end confdefs.h.  */
2819
2820int
2821main ()
2822{
2823#ifndef __GNUC__
2824       choke me
2825#endif
2826
2827  ;
2828  return 0;
2829}
2830_ACEOF
2831rm -f conftest.$ac_objext
2832if { (ac_try="$ac_compile"
2833case "(($ac_try" in
2834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835  *) ac_try_echo=$ac_try;;
2836esac
2837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838  (eval "$ac_compile") 2>conftest.er1
2839  ac_status=$?
2840  grep -v '^ *+' conftest.er1 >conftest.err
2841  rm -f conftest.er1
2842  cat conftest.err >&5
2843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844  (exit $ac_status); } && {
2845	 test -z "$ac_cxx_werror_flag" ||
2846	 test ! -s conftest.err
2847       } && test -s conftest.$ac_objext; then
2848  ac_compiler_gnu=yes
2849else
2850  echo "$as_me: failed program was:" >&5
2851sed 's/^/| /' conftest.$ac_ext >&5
2852
2853	ac_compiler_gnu=no
2854fi
2855
2856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2857ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2858
2859fi
2860{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2861echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2862GXX=`test $ac_compiler_gnu = yes && echo yes`
2863ac_test_CXXFLAGS=${CXXFLAGS+set}
2864ac_save_CXXFLAGS=$CXXFLAGS
2865{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2866echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2867if test "${ac_cv_prog_cxx_g+set}" = set; then
2868  echo $ECHO_N "(cached) $ECHO_C" >&6
2869else
2870  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2871   ac_cxx_werror_flag=yes
2872   ac_cv_prog_cxx_g=no
2873   CXXFLAGS="-g"
2874   cat >conftest.$ac_ext <<_ACEOF
2875/* confdefs.h.  */
2876_ACEOF
2877cat confdefs.h >>conftest.$ac_ext
2878cat >>conftest.$ac_ext <<_ACEOF
2879/* end confdefs.h.  */
2880
2881int
2882main ()
2883{
2884
2885  ;
2886  return 0;
2887}
2888_ACEOF
2889rm -f conftest.$ac_objext
2890if { (ac_try="$ac_compile"
2891case "(($ac_try" in
2892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893  *) ac_try_echo=$ac_try;;
2894esac
2895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896  (eval "$ac_compile") 2>conftest.er1
2897  ac_status=$?
2898  grep -v '^ *+' conftest.er1 >conftest.err
2899  rm -f conftest.er1
2900  cat conftest.err >&5
2901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902  (exit $ac_status); } && {
2903	 test -z "$ac_cxx_werror_flag" ||
2904	 test ! -s conftest.err
2905       } && test -s conftest.$ac_objext; then
2906  ac_cv_prog_cxx_g=yes
2907else
2908  echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911	CXXFLAGS=""
2912      cat >conftest.$ac_ext <<_ACEOF
2913/* confdefs.h.  */
2914_ACEOF
2915cat confdefs.h >>conftest.$ac_ext
2916cat >>conftest.$ac_ext <<_ACEOF
2917/* end confdefs.h.  */
2918
2919int
2920main ()
2921{
2922
2923  ;
2924  return 0;
2925}
2926_ACEOF
2927rm -f conftest.$ac_objext
2928if { (ac_try="$ac_compile"
2929case "(($ac_try" in
2930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931  *) ac_try_echo=$ac_try;;
2932esac
2933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934  (eval "$ac_compile") 2>conftest.er1
2935  ac_status=$?
2936  grep -v '^ *+' conftest.er1 >conftest.err
2937  rm -f conftest.er1
2938  cat conftest.err >&5
2939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940  (exit $ac_status); } && {
2941	 test -z "$ac_cxx_werror_flag" ||
2942	 test ! -s conftest.err
2943       } && test -s conftest.$ac_objext; then
2944  :
2945else
2946  echo "$as_me: failed program was:" >&5
2947sed 's/^/| /' conftest.$ac_ext >&5
2948
2949	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2950	 CXXFLAGS="-g"
2951	 cat >conftest.$ac_ext <<_ACEOF
2952/* confdefs.h.  */
2953_ACEOF
2954cat confdefs.h >>conftest.$ac_ext
2955cat >>conftest.$ac_ext <<_ACEOF
2956/* end confdefs.h.  */
2957
2958int
2959main ()
2960{
2961
2962  ;
2963  return 0;
2964}
2965_ACEOF
2966rm -f conftest.$ac_objext
2967if { (ac_try="$ac_compile"
2968case "(($ac_try" in
2969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970  *) ac_try_echo=$ac_try;;
2971esac
2972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973  (eval "$ac_compile") 2>conftest.er1
2974  ac_status=$?
2975  grep -v '^ *+' conftest.er1 >conftest.err
2976  rm -f conftest.er1
2977  cat conftest.err >&5
2978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979  (exit $ac_status); } && {
2980	 test -z "$ac_cxx_werror_flag" ||
2981	 test ! -s conftest.err
2982       } && test -s conftest.$ac_objext; then
2983  ac_cv_prog_cxx_g=yes
2984else
2985  echo "$as_me: failed program was:" >&5
2986sed 's/^/| /' conftest.$ac_ext >&5
2987
2988
2989fi
2990
2991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992fi
2993
2994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995fi
2996
2997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2999fi
3000{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3001echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3002if test "$ac_test_CXXFLAGS" = set; then
3003  CXXFLAGS=$ac_save_CXXFLAGS
3004elif test $ac_cv_prog_cxx_g = yes; then
3005  if test "$GXX" = yes; then
3006    CXXFLAGS="-g -O2"
3007  else
3008    CXXFLAGS="-g"
3009  fi
3010else
3011  if test "$GXX" = yes; then
3012    CXXFLAGS="-O2"
3013  else
3014    CXXFLAGS=
3015  fi
3016fi
3017ac_ext=cpp
3018ac_cpp='$CXXCPP $CPPFLAGS'
3019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3022DEPDIR="${am__leading_dot}deps"
3023
3024ac_config_commands="$ac_config_commands depfiles"
3025
3026
3027am_make=${MAKE-make}
3028cat > confinc << 'END'
3029am__doit:
3030	@echo done
3031.PHONY: am__doit
3032END
3033# If we don't find an include directive, just comment out the code.
3034{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3035echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3036am__include="#"
3037am__quote=
3038_am_result=none
3039# First try GNU make style include.
3040echo "include confinc" > confmf
3041# We grep out `Entering directory' and `Leaving directory'
3042# messages which can occur if `w' ends up in MAKEFLAGS.
3043# In particular we don't look at `^make:' because GNU make might
3044# be invoked under some other name (usually "gmake"), in which
3045# case it prints its new name instead of `make'.
3046if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3047   am__include=include
3048   am__quote=
3049   _am_result=GNU
3050fi
3051# Now try BSD make style include.
3052if test "$am__include" = "#"; then
3053   echo '.include "confinc"' > confmf
3054   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3055      am__include=.include
3056      am__quote="\""
3057      _am_result=BSD
3058   fi
3059fi
3060
3061
3062{ echo "$as_me:$LINENO: result: $_am_result" >&5
3063echo "${ECHO_T}$_am_result" >&6; }
3064rm -f confinc confmf
3065
3066# Check whether --enable-dependency-tracking was given.
3067if test "${enable_dependency_tracking+set}" = set; then
3068  enableval=$enable_dependency_tracking;
3069fi
3070
3071if test "x$enable_dependency_tracking" != xno; then
3072  am_depcomp="$ac_aux_dir/depcomp"
3073  AMDEPBACKSLASH='\'
3074fi
3075 if test "x$enable_dependency_tracking" != xno; then
3076  AMDEP_TRUE=
3077  AMDEP_FALSE='#'
3078else
3079  AMDEP_TRUE='#'
3080  AMDEP_FALSE=
3081fi
3082
3083
3084
3085depcc="$CXX"  am_compiler_list=
3086
3087{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3088echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3089if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3090  echo $ECHO_N "(cached) $ECHO_C" >&6
3091else
3092  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3093  # We make a subdir and do the tests there.  Otherwise we can end up
3094  # making bogus files that we don't know about and never remove.  For
3095  # instance it was reported that on HP-UX the gcc test will end up
3096  # making a dummy file named `D' -- because `-MD' means `put the output
3097  # in D'.
3098  mkdir conftest.dir
3099  # Copy depcomp to subdir because otherwise we won't find it if we're
3100  # using a relative directory.
3101  cp "$am_depcomp" conftest.dir
3102  cd conftest.dir
3103  # We will build objects and dependencies in a subdirectory because
3104  # it helps to detect inapplicable dependency modes.  For instance
3105  # both Tru64's cc and ICC support -MD to output dependencies as a
3106  # side effect of compilation, but ICC will put the dependencies in
3107  # the current directory while Tru64 will put them in the object
3108  # directory.
3109  mkdir sub
3110
3111  am_cv_CXX_dependencies_compiler_type=none
3112  if test "$am_compiler_list" = ""; then
3113     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3114  fi
3115  for depmode in $am_compiler_list; do
3116    # Setup a source with many dependencies, because some compilers
3117    # like to wrap large dependency lists on column 80 (with \), and
3118    # we should not choose a depcomp mode which is confused by this.
3119    #
3120    # We need to recreate these files for each test, as the compiler may
3121    # overwrite some of them when testing with obscure command lines.
3122    # This happens at least with the AIX C compiler.
3123    : > sub/conftest.c
3124    for i in 1 2 3 4 5 6; do
3125      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3126      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3127      # Solaris 8's {/usr,}/bin/sh.
3128      touch sub/conftst$i.h
3129    done
3130    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3131
3132    case $depmode in
3133    nosideeffect)
3134      # after this tag, mechanisms are not by side-effect, so they'll
3135      # only be used when explicitly requested
3136      if test "x$enable_dependency_tracking" = xyes; then
3137	continue
3138      else
3139	break
3140      fi
3141      ;;
3142    none) break ;;
3143    esac
3144    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3145    # mode.  It turns out that the SunPro C++ compiler does not properly
3146    # handle `-M -o', and we need to detect this.
3147    if depmode=$depmode \
3148       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3149       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3150       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3151         >/dev/null 2>conftest.err &&
3152       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3153       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3154       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3155       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3156      # icc doesn't choke on unknown options, it will just issue warnings
3157      # or remarks (even with -Werror).  So we grep stderr for any message
3158      # that says an option was ignored or not supported.
3159      # When given -MP, icc 7.0 and 7.1 complain thusly:
3160      #   icc: Command line warning: ignoring option '-M'; no argument required
3161      # The diagnosis changed in icc 8.0:
3162      #   icc: Command line remark: option '-MP' not supported
3163      if (grep 'ignoring option' conftest.err ||
3164          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3165        am_cv_CXX_dependencies_compiler_type=$depmode
3166        break
3167      fi
3168    fi
3169  done
3170
3171  cd ..
3172  rm -rf conftest.dir
3173else
3174  am_cv_CXX_dependencies_compiler_type=none
3175fi
3176
3177fi
3178{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3179echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3180CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3181
3182 if
3183  test "x$enable_dependency_tracking" != xno \
3184  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3185  am__fastdepCXX_TRUE=
3186  am__fastdepCXX_FALSE='#'
3187else
3188  am__fastdepCXX_TRUE='#'
3189  am__fastdepCXX_FALSE=
3190fi
3191
3192
3193# Check whether --enable-shared was given.
3194if test "${enable_shared+set}" = set; then
3195  enableval=$enable_shared; p=${PACKAGE-default}
3196    case $enableval in
3197    yes) enable_shared=yes ;;
3198    no) enable_shared=no ;;
3199    *)
3200      enable_shared=no
3201      # Look at the argument we got.  We use all the common list separators.
3202      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3203      for pkg in $enableval; do
3204	IFS="$lt_save_ifs"
3205	if test "X$pkg" = "X$p"; then
3206	  enable_shared=yes
3207	fi
3208      done
3209      IFS="$lt_save_ifs"
3210      ;;
3211    esac
3212else
3213  enable_shared=yes
3214fi
3215
3216
3217# Check whether --enable-static was given.
3218if test "${enable_static+set}" = set; then
3219  enableval=$enable_static; p=${PACKAGE-default}
3220    case $enableval in
3221    yes) enable_static=yes ;;
3222    no) enable_static=no ;;
3223    *)
3224     enable_static=no
3225      # Look at the argument we got.  We use all the common list separators.
3226      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3227      for pkg in $enableval; do
3228	IFS="$lt_save_ifs"
3229	if test "X$pkg" = "X$p"; then
3230	  enable_static=yes
3231	fi
3232      done
3233      IFS="$lt_save_ifs"
3234      ;;
3235    esac
3236else
3237  enable_static=yes
3238fi
3239
3240
3241# Check whether --enable-fast-install was given.
3242if test "${enable_fast_install+set}" = set; then
3243  enableval=$enable_fast_install; p=${PACKAGE-default}
3244    case $enableval in
3245    yes) enable_fast_install=yes ;;
3246    no) enable_fast_install=no ;;
3247    *)
3248      enable_fast_install=no
3249      # Look at the argument we got.  We use all the common list separators.
3250      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3251      for pkg in $enableval; do
3252	IFS="$lt_save_ifs"
3253	if test "X$pkg" = "X$p"; then
3254	  enable_fast_install=yes
3255	fi
3256      done
3257      IFS="$lt_save_ifs"
3258      ;;
3259    esac
3260else
3261  enable_fast_install=yes
3262fi
3263
3264
3265# Make sure we can run config.sub.
3266$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3267  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3268echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3269   { (exit 1); exit 1; }; }
3270
3271{ echo "$as_me:$LINENO: checking build system type" >&5
3272echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3273if test "${ac_cv_build+set}" = set; then
3274  echo $ECHO_N "(cached) $ECHO_C" >&6
3275else
3276  ac_build_alias=$build_alias
3277test "x$ac_build_alias" = x &&
3278  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3279test "x$ac_build_alias" = x &&
3280  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3281echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3282   { (exit 1); exit 1; }; }
3283ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3284  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3285echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3286   { (exit 1); exit 1; }; }
3287
3288fi
3289{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3290echo "${ECHO_T}$ac_cv_build" >&6; }
3291case $ac_cv_build in
3292*-*-*) ;;
3293*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3294echo "$as_me: error: invalid value of canonical build" >&2;}
3295   { (exit 1); exit 1; }; };;
3296esac
3297build=$ac_cv_build
3298ac_save_IFS=$IFS; IFS='-'
3299set x $ac_cv_build
3300shift
3301build_cpu=$1
3302build_vendor=$2
3303shift; shift
3304# Remember, the first character of IFS is used to create $*,
3305# except with old shells:
3306build_os=$*
3307IFS=$ac_save_IFS
3308case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3309
3310
3311{ echo "$as_me:$LINENO: checking host system type" >&5
3312echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3313if test "${ac_cv_host+set}" = set; then
3314  echo $ECHO_N "(cached) $ECHO_C" >&6
3315else
3316  if test "x$host_alias" = x; then
3317  ac_cv_host=$ac_cv_build
3318else
3319  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3320    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3321echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3322   { (exit 1); exit 1; }; }
3323fi
3324
3325fi
3326{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3327echo "${ECHO_T}$ac_cv_host" >&6; }
3328case $ac_cv_host in
3329*-*-*) ;;
3330*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3331echo "$as_me: error: invalid value of canonical host" >&2;}
3332   { (exit 1); exit 1; }; };;
3333esac
3334host=$ac_cv_host
3335ac_save_IFS=$IFS; IFS='-'
3336set x $ac_cv_host
3337shift
3338host_cpu=$1
3339host_vendor=$2
3340shift; shift
3341# Remember, the first character of IFS is used to create $*,
3342# except with old shells:
3343host_os=$*
3344IFS=$ac_save_IFS
3345case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3346
3347
3348ac_ext=c
3349ac_cpp='$CPP $CPPFLAGS'
3350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353if test -n "$ac_tool_prefix"; then
3354  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3355set dummy ${ac_tool_prefix}gcc; ac_word=$2
3356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3358if test "${ac_cv_prog_CC+set}" = set; then
3359  echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361  if test -n "$CC"; then
3362  ac_cv_prog_CC="$CC" # Let the user override the test.
3363else
3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365for as_dir in $PATH
3366do
3367  IFS=$as_save_IFS
3368  test -z "$as_dir" && as_dir=.
3369  for ac_exec_ext in '' $ac_executable_extensions; do
3370  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3371    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3372    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3373    break 2
3374  fi
3375done
3376done
3377IFS=$as_save_IFS
3378
3379fi
3380fi
3381CC=$ac_cv_prog_CC
3382if test -n "$CC"; then
3383  { echo "$as_me:$LINENO: result: $CC" >&5
3384echo "${ECHO_T}$CC" >&6; }
3385else
3386  { echo "$as_me:$LINENO: result: no" >&5
3387echo "${ECHO_T}no" >&6; }
3388fi
3389
3390
3391fi
3392if test -z "$ac_cv_prog_CC"; then
3393  ac_ct_CC=$CC
3394  # Extract the first word of "gcc", so it can be a program name with args.
3395set dummy gcc; ac_word=$2
3396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3398if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3399  echo $ECHO_N "(cached) $ECHO_C" >&6
3400else
3401  if test -n "$ac_ct_CC"; then
3402  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3403else
3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405for as_dir in $PATH
3406do
3407  IFS=$as_save_IFS
3408  test -z "$as_dir" && as_dir=.
3409  for ac_exec_ext in '' $ac_executable_extensions; do
3410  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411    ac_cv_prog_ac_ct_CC="gcc"
3412    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413    break 2
3414  fi
3415done
3416done
3417IFS=$as_save_IFS
3418
3419fi
3420fi
3421ac_ct_CC=$ac_cv_prog_ac_ct_CC
3422if test -n "$ac_ct_CC"; then
3423  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3424echo "${ECHO_T}$ac_ct_CC" >&6; }
3425else
3426  { echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6; }
3428fi
3429
3430  if test "x$ac_ct_CC" = x; then
3431    CC=""
3432  else
3433    case $cross_compiling:$ac_tool_warned in
3434yes:)
3435{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3436whose name does not start with the host triplet.  If you think this
3437configuration is useful to you, please write to autoconf@gnu.org." >&5
3438echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3439whose name does not start with the host triplet.  If you think this
3440configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3441ac_tool_warned=yes ;;
3442esac
3443    CC=$ac_ct_CC
3444  fi
3445else
3446  CC="$ac_cv_prog_CC"
3447fi
3448
3449if test -z "$CC"; then
3450          if test -n "$ac_tool_prefix"; then
3451    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3452set dummy ${ac_tool_prefix}cc; ac_word=$2
3453{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3455if test "${ac_cv_prog_CC+set}" = set; then
3456  echo $ECHO_N "(cached) $ECHO_C" >&6
3457else
3458  if test -n "$CC"; then
3459  ac_cv_prog_CC="$CC" # Let the user override the test.
3460else
3461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462for as_dir in $PATH
3463do
3464  IFS=$as_save_IFS
3465  test -z "$as_dir" && as_dir=.
3466  for ac_exec_ext in '' $ac_executable_extensions; do
3467  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468    ac_cv_prog_CC="${ac_tool_prefix}cc"
3469    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470    break 2
3471  fi
3472done
3473done
3474IFS=$as_save_IFS
3475
3476fi
3477fi
3478CC=$ac_cv_prog_CC
3479if test -n "$CC"; then
3480  { echo "$as_me:$LINENO: result: $CC" >&5
3481echo "${ECHO_T}$CC" >&6; }
3482else
3483  { echo "$as_me:$LINENO: result: no" >&5
3484echo "${ECHO_T}no" >&6; }
3485fi
3486
3487
3488  fi
3489fi
3490if test -z "$CC"; then
3491  # Extract the first word of "cc", so it can be a program name with args.
3492set dummy cc; ac_word=$2
3493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3495if test "${ac_cv_prog_CC+set}" = set; then
3496  echo $ECHO_N "(cached) $ECHO_C" >&6
3497else
3498  if test -n "$CC"; then
3499  ac_cv_prog_CC="$CC" # Let the user override the test.
3500else
3501  ac_prog_rejected=no
3502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503for as_dir in $PATH
3504do
3505  IFS=$as_save_IFS
3506  test -z "$as_dir" && as_dir=.
3507  for ac_exec_ext in '' $ac_executable_extensions; do
3508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3510       ac_prog_rejected=yes
3511       continue
3512     fi
3513    ac_cv_prog_CC="cc"
3514    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515    break 2
3516  fi
3517done
3518done
3519IFS=$as_save_IFS
3520
3521if test $ac_prog_rejected = yes; then
3522  # We found a bogon in the path, so make sure we never use it.
3523  set dummy $ac_cv_prog_CC
3524  shift
3525  if test $# != 0; then
3526    # We chose a different compiler from the bogus one.
3527    # However, it has the same basename, so the bogon will be chosen
3528    # first if we set CC to just the basename; use the full file name.
3529    shift
3530    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3531  fi
3532fi
3533fi
3534fi
3535CC=$ac_cv_prog_CC
3536if test -n "$CC"; then
3537  { echo "$as_me:$LINENO: result: $CC" >&5
3538echo "${ECHO_T}$CC" >&6; }
3539else
3540  { echo "$as_me:$LINENO: result: no" >&5
3541echo "${ECHO_T}no" >&6; }
3542fi
3543
3544
3545fi
3546if test -z "$CC"; then
3547  if test -n "$ac_tool_prefix"; then
3548  for ac_prog in cl.exe
3549  do
3550    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3551set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3554if test "${ac_cv_prog_CC+set}" = set; then
3555  echo $ECHO_N "(cached) $ECHO_C" >&6
3556else
3557  if test -n "$CC"; then
3558  ac_cv_prog_CC="$CC" # Let the user override the test.
3559else
3560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561for as_dir in $PATH
3562do
3563  IFS=$as_save_IFS
3564  test -z "$as_dir" && as_dir=.
3565  for ac_exec_ext in '' $ac_executable_extensions; do
3566  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3568    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3569    break 2
3570  fi
3571done
3572done
3573IFS=$as_save_IFS
3574
3575fi
3576fi
3577CC=$ac_cv_prog_CC
3578if test -n "$CC"; then
3579  { echo "$as_me:$LINENO: result: $CC" >&5
3580echo "${ECHO_T}$CC" >&6; }
3581else
3582  { echo "$as_me:$LINENO: result: no" >&5
3583echo "${ECHO_T}no" >&6; }
3584fi
3585
3586
3587    test -n "$CC" && break
3588  done
3589fi
3590if test -z "$CC"; then
3591  ac_ct_CC=$CC
3592  for ac_prog in cl.exe
3593do
3594  # Extract the first word of "$ac_prog", so it can be a program name with args.
3595set dummy $ac_prog; ac_word=$2
3596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3598if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3599  echo $ECHO_N "(cached) $ECHO_C" >&6
3600else
3601  if test -n "$ac_ct_CC"; then
3602  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3603else
3604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605for as_dir in $PATH
3606do
3607  IFS=$as_save_IFS
3608  test -z "$as_dir" && as_dir=.
3609  for ac_exec_ext in '' $ac_executable_extensions; do
3610  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611    ac_cv_prog_ac_ct_CC="$ac_prog"
3612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3613    break 2
3614  fi
3615done
3616done
3617IFS=$as_save_IFS
3618
3619fi
3620fi
3621ac_ct_CC=$ac_cv_prog_ac_ct_CC
3622if test -n "$ac_ct_CC"; then
3623  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3624echo "${ECHO_T}$ac_ct_CC" >&6; }
3625else
3626  { echo "$as_me:$LINENO: result: no" >&5
3627echo "${ECHO_T}no" >&6; }
3628fi
3629
3630
3631  test -n "$ac_ct_CC" && break
3632done
3633
3634  if test "x$ac_ct_CC" = x; then
3635    CC=""
3636  else
3637    case $cross_compiling:$ac_tool_warned in
3638yes:)
3639{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3640whose name does not start with the host triplet.  If you think this
3641configuration is useful to you, please write to autoconf@gnu.org." >&5
3642echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3643whose name does not start with the host triplet.  If you think this
3644configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3645ac_tool_warned=yes ;;
3646esac
3647    CC=$ac_ct_CC
3648  fi
3649fi
3650
3651fi
3652
3653
3654test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3655See \`config.log' for more details." >&5
3656echo "$as_me: error: no acceptable C compiler found in \$PATH
3657See \`config.log' for more details." >&2;}
3658   { (exit 1); exit 1; }; }
3659
3660# Provide some information about the compiler.
3661echo "$as_me:$LINENO: checking for C compiler version" >&5
3662ac_compiler=`set X $ac_compile; echo $2`
3663{ (ac_try="$ac_compiler --version >&5"
3664case "(($ac_try" in
3665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666  *) ac_try_echo=$ac_try;;
3667esac
3668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669  (eval "$ac_compiler --version >&5") 2>&5
3670  ac_status=$?
3671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672  (exit $ac_status); }
3673{ (ac_try="$ac_compiler -v >&5"
3674case "(($ac_try" in
3675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676  *) ac_try_echo=$ac_try;;
3677esac
3678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679  (eval "$ac_compiler -v >&5") 2>&5
3680  ac_status=$?
3681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682  (exit $ac_status); }
3683{ (ac_try="$ac_compiler -V >&5"
3684case "(($ac_try" in
3685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686  *) ac_try_echo=$ac_try;;
3687esac
3688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689  (eval "$ac_compiler -V >&5") 2>&5
3690  ac_status=$?
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); }
3693
3694{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3695echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3696if test "${ac_cv_c_compiler_gnu+set}" = set; then
3697  echo $ECHO_N "(cached) $ECHO_C" >&6
3698else
3699  cat >conftest.$ac_ext <<_ACEOF
3700/* confdefs.h.  */
3701_ACEOF
3702cat confdefs.h >>conftest.$ac_ext
3703cat >>conftest.$ac_ext <<_ACEOF
3704/* end confdefs.h.  */
3705
3706int
3707main ()
3708{
3709#ifndef __GNUC__
3710       choke me
3711#endif
3712
3713  ;
3714  return 0;
3715}
3716_ACEOF
3717rm -f conftest.$ac_objext
3718if { (ac_try="$ac_compile"
3719case "(($ac_try" in
3720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721  *) ac_try_echo=$ac_try;;
3722esac
3723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3724  (eval "$ac_compile") 2>conftest.er1
3725  ac_status=$?
3726  grep -v '^ *+' conftest.er1 >conftest.err
3727  rm -f conftest.er1
3728  cat conftest.err >&5
3729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730  (exit $ac_status); } && {
3731	 test -z "$ac_c_werror_flag" ||
3732	 test ! -s conftest.err
3733       } && test -s conftest.$ac_objext; then
3734  ac_compiler_gnu=yes
3735else
3736  echo "$as_me: failed program was:" >&5
3737sed 's/^/| /' conftest.$ac_ext >&5
3738
3739	ac_compiler_gnu=no
3740fi
3741
3742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743ac_cv_c_compiler_gnu=$ac_compiler_gnu
3744
3745fi
3746{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3747echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3748GCC=`test $ac_compiler_gnu = yes && echo yes`
3749ac_test_CFLAGS=${CFLAGS+set}
3750ac_save_CFLAGS=$CFLAGS
3751{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3752echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3753if test "${ac_cv_prog_cc_g+set}" = set; then
3754  echo $ECHO_N "(cached) $ECHO_C" >&6
3755else
3756  ac_save_c_werror_flag=$ac_c_werror_flag
3757   ac_c_werror_flag=yes
3758   ac_cv_prog_cc_g=no
3759   CFLAGS="-g"
3760   cat >conftest.$ac_ext <<_ACEOF
3761/* confdefs.h.  */
3762_ACEOF
3763cat confdefs.h >>conftest.$ac_ext
3764cat >>conftest.$ac_ext <<_ACEOF
3765/* end confdefs.h.  */
3766
3767int
3768main ()
3769{
3770
3771  ;
3772  return 0;
3773}
3774_ACEOF
3775rm -f conftest.$ac_objext
3776if { (ac_try="$ac_compile"
3777case "(($ac_try" in
3778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779  *) ac_try_echo=$ac_try;;
3780esac
3781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3782  (eval "$ac_compile") 2>conftest.er1
3783  ac_status=$?
3784  grep -v '^ *+' conftest.er1 >conftest.err
3785  rm -f conftest.er1
3786  cat conftest.err >&5
3787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788  (exit $ac_status); } && {
3789	 test -z "$ac_c_werror_flag" ||
3790	 test ! -s conftest.err
3791       } && test -s conftest.$ac_objext; then
3792  ac_cv_prog_cc_g=yes
3793else
3794  echo "$as_me: failed program was:" >&5
3795sed 's/^/| /' conftest.$ac_ext >&5
3796
3797	CFLAGS=""
3798      cat >conftest.$ac_ext <<_ACEOF
3799/* confdefs.h.  */
3800_ACEOF
3801cat confdefs.h >>conftest.$ac_ext
3802cat >>conftest.$ac_ext <<_ACEOF
3803/* end confdefs.h.  */
3804
3805int
3806main ()
3807{
3808
3809  ;
3810  return 0;
3811}
3812_ACEOF
3813rm -f conftest.$ac_objext
3814if { (ac_try="$ac_compile"
3815case "(($ac_try" in
3816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817  *) ac_try_echo=$ac_try;;
3818esac
3819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820  (eval "$ac_compile") 2>conftest.er1
3821  ac_status=$?
3822  grep -v '^ *+' conftest.er1 >conftest.err
3823  rm -f conftest.er1
3824  cat conftest.err >&5
3825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826  (exit $ac_status); } && {
3827	 test -z "$ac_c_werror_flag" ||
3828	 test ! -s conftest.err
3829       } && test -s conftest.$ac_objext; then
3830  :
3831else
3832  echo "$as_me: failed program was:" >&5
3833sed 's/^/| /' conftest.$ac_ext >&5
3834
3835	ac_c_werror_flag=$ac_save_c_werror_flag
3836	 CFLAGS="-g"
3837	 cat >conftest.$ac_ext <<_ACEOF
3838/* confdefs.h.  */
3839_ACEOF
3840cat confdefs.h >>conftest.$ac_ext
3841cat >>conftest.$ac_ext <<_ACEOF
3842/* end confdefs.h.  */
3843
3844int
3845main ()
3846{
3847
3848  ;
3849  return 0;
3850}
3851_ACEOF
3852rm -f conftest.$ac_objext
3853if { (ac_try="$ac_compile"
3854case "(($ac_try" in
3855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856  *) ac_try_echo=$ac_try;;
3857esac
3858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859  (eval "$ac_compile") 2>conftest.er1
3860  ac_status=$?
3861  grep -v '^ *+' conftest.er1 >conftest.err
3862  rm -f conftest.er1
3863  cat conftest.err >&5
3864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865  (exit $ac_status); } && {
3866	 test -z "$ac_c_werror_flag" ||
3867	 test ! -s conftest.err
3868       } && test -s conftest.$ac_objext; then
3869  ac_cv_prog_cc_g=yes
3870else
3871  echo "$as_me: failed program was:" >&5
3872sed 's/^/| /' conftest.$ac_ext >&5
3873
3874
3875fi
3876
3877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878fi
3879
3880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881fi
3882
3883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884   ac_c_werror_flag=$ac_save_c_werror_flag
3885fi
3886{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3887echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3888if test "$ac_test_CFLAGS" = set; then
3889  CFLAGS=$ac_save_CFLAGS
3890elif test $ac_cv_prog_cc_g = yes; then
3891  if test "$GCC" = yes; then
3892    CFLAGS="-g -O2"
3893  else
3894    CFLAGS="-g"
3895  fi
3896else
3897  if test "$GCC" = yes; then
3898    CFLAGS="-O2"
3899  else
3900    CFLAGS=
3901  fi
3902fi
3903{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3904echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3905if test "${ac_cv_prog_cc_c89+set}" = set; then
3906  echo $ECHO_N "(cached) $ECHO_C" >&6
3907else
3908  ac_cv_prog_cc_c89=no
3909ac_save_CC=$CC
3910cat >conftest.$ac_ext <<_ACEOF
3911/* confdefs.h.  */
3912_ACEOF
3913cat confdefs.h >>conftest.$ac_ext
3914cat >>conftest.$ac_ext <<_ACEOF
3915/* end confdefs.h.  */
3916#include <stdarg.h>
3917#include <stdio.h>
3918#include <sys/types.h>
3919#include <sys/stat.h>
3920/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3921struct buf { int x; };
3922FILE * (*rcsopen) (struct buf *, struct stat *, int);
3923static char *e (p, i)
3924     char **p;
3925     int i;
3926{
3927  return p[i];
3928}
3929static char *f (char * (*g) (char **, int), char **p, ...)
3930{
3931  char *s;
3932  va_list v;
3933  va_start (v,p);
3934  s = g (p, va_arg (v,int));
3935  va_end (v);
3936  return s;
3937}
3938
3939/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3940   function prototypes and stuff, but not '\xHH' hex character constants.
3941   These don't provoke an error unfortunately, instead are silently treated
3942   as 'x'.  The following induces an error, until -std is added to get
3943   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3944   array size at least.  It's necessary to write '\x00'==0 to get something
3945   that's true only with -std.  */
3946int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3947
3948/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3949   inside strings and character constants.  */
3950#define FOO(x) 'x'
3951int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3952
3953int test (int i, double x);
3954struct s1 {int (*f) (int a);};
3955struct s2 {int (*f) (double a);};
3956int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3957int argc;
3958char **argv;
3959int
3960main ()
3961{
3962return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3963  ;
3964  return 0;
3965}
3966_ACEOF
3967for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3968	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3969do
3970  CC="$ac_save_CC $ac_arg"
3971  rm -f conftest.$ac_objext
3972if { (ac_try="$ac_compile"
3973case "(($ac_try" in
3974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975  *) ac_try_echo=$ac_try;;
3976esac
3977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978  (eval "$ac_compile") 2>conftest.er1
3979  ac_status=$?
3980  grep -v '^ *+' conftest.er1 >conftest.err
3981  rm -f conftest.er1
3982  cat conftest.err >&5
3983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984  (exit $ac_status); } && {
3985	 test -z "$ac_c_werror_flag" ||
3986	 test ! -s conftest.err
3987       } && test -s conftest.$ac_objext; then
3988  ac_cv_prog_cc_c89=$ac_arg
3989else
3990  echo "$as_me: failed program was:" >&5
3991sed 's/^/| /' conftest.$ac_ext >&5
3992
3993
3994fi
3995
3996rm -f core conftest.err conftest.$ac_objext
3997  test "x$ac_cv_prog_cc_c89" != "xno" && break
3998done
3999rm -f conftest.$ac_ext
4000CC=$ac_save_CC
4001
4002fi
4003# AC_CACHE_VAL
4004case "x$ac_cv_prog_cc_c89" in
4005  x)
4006    { echo "$as_me:$LINENO: result: none needed" >&5
4007echo "${ECHO_T}none needed" >&6; } ;;
4008  xno)
4009    { echo "$as_me:$LINENO: result: unsupported" >&5
4010echo "${ECHO_T}unsupported" >&6; } ;;
4011  *)
4012    CC="$CC $ac_cv_prog_cc_c89"
4013    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4014echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4015esac
4016
4017
4018ac_ext=cpp
4019ac_cpp='$CXXCPP $CPPFLAGS'
4020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4023
4024depcc="$CC"   am_compiler_list=
4025
4026{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4027echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4028if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4029  echo $ECHO_N "(cached) $ECHO_C" >&6
4030else
4031  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4032  # We make a subdir and do the tests there.  Otherwise we can end up
4033  # making bogus files that we don't know about and never remove.  For
4034  # instance it was reported that on HP-UX the gcc test will end up
4035  # making a dummy file named `D' -- because `-MD' means `put the output
4036  # in D'.
4037  mkdir conftest.dir
4038  # Copy depcomp to subdir because otherwise we won't find it if we're
4039  # using a relative directory.
4040  cp "$am_depcomp" conftest.dir
4041  cd conftest.dir
4042  # We will build objects and dependencies in a subdirectory because
4043  # it helps to detect inapplicable dependency modes.  For instance
4044  # both Tru64's cc and ICC support -MD to output dependencies as a
4045  # side effect of compilation, but ICC will put the dependencies in
4046  # the current directory while Tru64 will put them in the object
4047  # directory.
4048  mkdir sub
4049
4050  am_cv_CC_dependencies_compiler_type=none
4051  if test "$am_compiler_list" = ""; then
4052     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4053  fi
4054  for depmode in $am_compiler_list; do
4055    # Setup a source with many dependencies, because some compilers
4056    # like to wrap large dependency lists on column 80 (with \), and
4057    # we should not choose a depcomp mode which is confused by this.
4058    #
4059    # We need to recreate these files for each test, as the compiler may
4060    # overwrite some of them when testing with obscure command lines.
4061    # This happens at least with the AIX C compiler.
4062    : > sub/conftest.c
4063    for i in 1 2 3 4 5 6; do
4064      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4065      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4066      # Solaris 8's {/usr,}/bin/sh.
4067      touch sub/conftst$i.h
4068    done
4069    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4070
4071    case $depmode in
4072    nosideeffect)
4073      # after this tag, mechanisms are not by side-effect, so they'll
4074      # only be used when explicitly requested
4075      if test "x$enable_dependency_tracking" = xyes; then
4076	continue
4077      else
4078	break
4079      fi
4080      ;;
4081    none) break ;;
4082    esac
4083    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4084    # mode.  It turns out that the SunPro C++ compiler does not properly
4085    # handle `-M -o', and we need to detect this.
4086    if depmode=$depmode \
4087       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4088       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4089       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4090         >/dev/null 2>conftest.err &&
4091       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4092       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4093       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4094       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4095      # icc doesn't choke on unknown options, it will just issue warnings
4096      # or remarks (even with -Werror).  So we grep stderr for any message
4097      # that says an option was ignored or not supported.
4098      # When given -MP, icc 7.0 and 7.1 complain thusly:
4099      #   icc: Command line warning: ignoring option '-M'; no argument required
4100      # The diagnosis changed in icc 8.0:
4101      #   icc: Command line remark: option '-MP' not supported
4102      if (grep 'ignoring option' conftest.err ||
4103          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4104        am_cv_CC_dependencies_compiler_type=$depmode
4105        break
4106      fi
4107    fi
4108  done
4109
4110  cd ..
4111  rm -rf conftest.dir
4112else
4113  am_cv_CC_dependencies_compiler_type=none
4114fi
4115
4116fi
4117{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4118echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4119CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4120
4121 if
4122  test "x$enable_dependency_tracking" != xno \
4123  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4124  am__fastdepCC_TRUE=
4125  am__fastdepCC_FALSE='#'
4126else
4127  am__fastdepCC_TRUE='#'
4128  am__fastdepCC_FALSE=
4129fi
4130
4131
4132{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4133echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4134if test "${lt_cv_path_SED+set}" = set; then
4135  echo $ECHO_N "(cached) $ECHO_C" >&6
4136else
4137  # Loop through the user's path and test for sed and gsed.
4138# Then use that list of sed's as ones to test for truncation.
4139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140for as_dir in $PATH
4141do
4142  IFS=$as_save_IFS
4143  test -z "$as_dir" && as_dir=.
4144  for lt_ac_prog in sed gsed; do
4145    for ac_exec_ext in '' $ac_executable_extensions; do
4146      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4147        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4148      fi
4149    done
4150  done
4151done
4152IFS=$as_save_IFS
4153lt_ac_max=0
4154lt_ac_count=0
4155# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4156# along with /bin/sed that truncates output.
4157for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4158  test ! -f $lt_ac_sed && continue
4159  cat /dev/null > conftest.in
4160  lt_ac_count=0
4161  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4162  # Check for GNU sed and select it if it is found.
4163  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4164    lt_cv_path_SED=$lt_ac_sed
4165    break
4166  fi
4167  while true; do
4168    cat conftest.in conftest.in >conftest.tmp
4169    mv conftest.tmp conftest.in
4170    cp conftest.in conftest.nl
4171    echo >>conftest.nl
4172    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4173    cmp -s conftest.out conftest.nl || break
4174    # 10000 chars as input seems more than enough
4175    test $lt_ac_count -gt 10 && break
4176    lt_ac_count=`expr $lt_ac_count + 1`
4177    if test $lt_ac_count -gt $lt_ac_max; then
4178      lt_ac_max=$lt_ac_count
4179      lt_cv_path_SED=$lt_ac_sed
4180    fi
4181  done
4182done
4183
4184fi
4185
4186SED=$lt_cv_path_SED
4187
4188{ echo "$as_me:$LINENO: result: $SED" >&5
4189echo "${ECHO_T}$SED" >&6; }
4190
4191{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4192echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4193if test "${ac_cv_path_GREP+set}" = set; then
4194  echo $ECHO_N "(cached) $ECHO_C" >&6
4195else
4196  # Extract the first word of "grep ggrep" to use in msg output
4197if test -z "$GREP"; then
4198set dummy grep ggrep; ac_prog_name=$2
4199if test "${ac_cv_path_GREP+set}" = set; then
4200  echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
4202  ac_path_GREP_found=false
4203# Loop through the user's path and test for each of PROGNAME-LIST
4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4206do
4207  IFS=$as_save_IFS
4208  test -z "$as_dir" && as_dir=.
4209  for ac_prog in grep ggrep; do
4210  for ac_exec_ext in '' $ac_executable_extensions; do
4211    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4212    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4213    # Check for GNU ac_path_GREP and select it if it is found.
4214  # Check for GNU $ac_path_GREP
4215case `"$ac_path_GREP" --version 2>&1` in
4216*GNU*)
4217  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4218*)
4219  ac_count=0
4220  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4221  while :
4222  do
4223    cat "conftest.in" "conftest.in" >"conftest.tmp"
4224    mv "conftest.tmp" "conftest.in"
4225    cp "conftest.in" "conftest.nl"
4226    echo 'GREP' >> "conftest.nl"
4227    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4228    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4229    ac_count=`expr $ac_count + 1`
4230    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4231      # Best one so far, save it but keep looking for a better one
4232      ac_cv_path_GREP="$ac_path_GREP"
4233      ac_path_GREP_max=$ac_count
4234    fi
4235    # 10*(2^10) chars as input seems more than enough
4236    test $ac_count -gt 10 && break
4237  done
4238  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4239esac
4240
4241
4242    $ac_path_GREP_found && break 3
4243  done
4244done
4245
4246done
4247IFS=$as_save_IFS
4248
4249
4250fi
4251
4252GREP="$ac_cv_path_GREP"
4253if test -z "$GREP"; then
4254  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4255echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4256   { (exit 1); exit 1; }; }
4257fi
4258
4259else
4260  ac_cv_path_GREP=$GREP
4261fi
4262
4263
4264fi
4265{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4266echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4267 GREP="$ac_cv_path_GREP"
4268
4269
4270{ echo "$as_me:$LINENO: checking for egrep" >&5
4271echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4272if test "${ac_cv_path_EGREP+set}" = set; then
4273  echo $ECHO_N "(cached) $ECHO_C" >&6
4274else
4275  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4276   then ac_cv_path_EGREP="$GREP -E"
4277   else
4278     # Extract the first word of "egrep" to use in msg output
4279if test -z "$EGREP"; then
4280set dummy egrep; ac_prog_name=$2
4281if test "${ac_cv_path_EGREP+set}" = set; then
4282  echo $ECHO_N "(cached) $ECHO_C" >&6
4283else
4284  ac_path_EGREP_found=false
4285# Loop through the user's path and test for each of PROGNAME-LIST
4286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4288do
4289  IFS=$as_save_IFS
4290  test -z "$as_dir" && as_dir=.
4291  for ac_prog in egrep; do
4292  for ac_exec_ext in '' $ac_executable_extensions; do
4293    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4294    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4295    # Check for GNU ac_path_EGREP and select it if it is found.
4296  # Check for GNU $ac_path_EGREP
4297case `"$ac_path_EGREP" --version 2>&1` in
4298*GNU*)
4299  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4300*)
4301  ac_count=0
4302  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4303  while :
4304  do
4305    cat "conftest.in" "conftest.in" >"conftest.tmp"
4306    mv "conftest.tmp" "conftest.in"
4307    cp "conftest.in" "conftest.nl"
4308    echo 'EGREP' >> "conftest.nl"
4309    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311    ac_count=`expr $ac_count + 1`
4312    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4313      # Best one so far, save it but keep looking for a better one
4314      ac_cv_path_EGREP="$ac_path_EGREP"
4315      ac_path_EGREP_max=$ac_count
4316    fi
4317    # 10*(2^10) chars as input seems more than enough
4318    test $ac_count -gt 10 && break
4319  done
4320  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321esac
4322
4323
4324    $ac_path_EGREP_found && break 3
4325  done
4326done
4327
4328done
4329IFS=$as_save_IFS
4330
4331
4332fi
4333
4334EGREP="$ac_cv_path_EGREP"
4335if test -z "$EGREP"; then
4336  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4337echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4338   { (exit 1); exit 1; }; }
4339fi
4340
4341else
4342  ac_cv_path_EGREP=$EGREP
4343fi
4344
4345
4346   fi
4347fi
4348{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4349echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4350 EGREP="$ac_cv_path_EGREP"
4351
4352
4353
4354# Check whether --with-gnu-ld was given.
4355if test "${with_gnu_ld+set}" = set; then
4356  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4357else
4358  with_gnu_ld=no
4359fi
4360
4361ac_prog=ld
4362if test "$GCC" = yes; then
4363  # Check if gcc -print-prog-name=ld gives a path.
4364  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4365echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4366  case $host in
4367  *-*-mingw*)
4368    # gcc leaves a trailing carriage return which upsets mingw
4369    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4370  *)
4371    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4372  esac
4373  case $ac_prog in
4374    # Accept absolute paths.
4375    [\\/]* | ?:[\\/]*)
4376      re_direlt='/[^/][^/]*/\.\./'
4377      # Canonicalize the pathname of ld
4378      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4379      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4380	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4381      done
4382      test -z "$LD" && LD="$ac_prog"
4383      ;;
4384  "")
4385    # If it fails, then pretend we aren't using GCC.
4386    ac_prog=ld
4387    ;;
4388  *)
4389    # If it is relative, then search for the first ld in PATH.
4390    with_gnu_ld=unknown
4391    ;;
4392  esac
4393elif test "$with_gnu_ld" = yes; then
4394  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4395echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4396else
4397  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4398echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4399fi
4400if test "${lt_cv_path_LD+set}" = set; then
4401  echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403  if test -z "$LD"; then
4404  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4405  for ac_dir in $PATH; do
4406    IFS="$lt_save_ifs"
4407    test -z "$ac_dir" && ac_dir=.
4408    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4409      lt_cv_path_LD="$ac_dir/$ac_prog"
4410      # Check to see if the program is GNU ld.  I'd rather use --version,
4411      # but apparently some variants of GNU ld only accept -v.
4412      # Break only if it was the GNU/non-GNU ld that we prefer.
4413      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4414      *GNU* | *'with BFD'*)
4415	test "$with_gnu_ld" != no && break
4416	;;
4417      *)
4418	test "$with_gnu_ld" != yes && break
4419	;;
4420      esac
4421    fi
4422  done
4423  IFS="$lt_save_ifs"
4424else
4425  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4426fi
4427fi
4428
4429LD="$lt_cv_path_LD"
4430if test -n "$LD"; then
4431  { echo "$as_me:$LINENO: result: $LD" >&5
4432echo "${ECHO_T}$LD" >&6; }
4433else
4434  { echo "$as_me:$LINENO: result: no" >&5
4435echo "${ECHO_T}no" >&6; }
4436fi
4437test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4438echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4439   { (exit 1); exit 1; }; }
4440{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4441echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4442if test "${lt_cv_prog_gnu_ld+set}" = set; then
4443  echo $ECHO_N "(cached) $ECHO_C" >&6
4444else
4445  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4446case `$LD -v 2>&1 </dev/null` in
4447*GNU* | *'with BFD'*)
4448  lt_cv_prog_gnu_ld=yes
4449  ;;
4450*)
4451  lt_cv_prog_gnu_ld=no
4452  ;;
4453esac
4454fi
4455{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4456echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4457with_gnu_ld=$lt_cv_prog_gnu_ld
4458
4459
4460{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4461echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4462if test "${lt_cv_ld_reload_flag+set}" = set; then
4463  echo $ECHO_N "(cached) $ECHO_C" >&6
4464else
4465  lt_cv_ld_reload_flag='-r'
4466fi
4467{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4468echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4469reload_flag=$lt_cv_ld_reload_flag
4470case $reload_flag in
4471"" | " "*) ;;
4472*) reload_flag=" $reload_flag" ;;
4473esac
4474reload_cmds='$LD$reload_flag -o $output$reload_objs'
4475case $host_os in
4476  darwin*)
4477    if test "$GCC" = yes; then
4478      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4479    else
4480      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4481    fi
4482    ;;
4483esac
4484
4485{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4486echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4487if test "${lt_cv_path_NM+set}" = set; then
4488  echo $ECHO_N "(cached) $ECHO_C" >&6
4489else
4490  if test -n "$NM"; then
4491  # Let the user override the test.
4492  lt_cv_path_NM="$NM"
4493else
4494  lt_nm_to_check="${ac_tool_prefix}nm"
4495  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4496    lt_nm_to_check="$lt_nm_to_check nm"
4497  fi
4498  for lt_tmp_nm in $lt_nm_to_check; do
4499    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4500    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4501      IFS="$lt_save_ifs"
4502      test -z "$ac_dir" && ac_dir=.
4503      tmp_nm="$ac_dir/$lt_tmp_nm"
4504      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4505	# Check to see if the nm accepts a BSD-compat flag.
4506	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4507	#   nm: unknown option "B" ignored
4508	# Tru64's nm complains that /dev/null is an invalid object file
4509	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4510	*/dev/null* | *'Invalid file or object type'*)
4511	  lt_cv_path_NM="$tmp_nm -B"
4512	  break
4513	  ;;
4514	*)
4515	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4516	  */dev/null*)
4517	    lt_cv_path_NM="$tmp_nm -p"
4518	    break
4519	    ;;
4520	  *)
4521	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4522	    continue # so that we can try to find one that supports BSD flags
4523	    ;;
4524	  esac
4525	  ;;
4526	esac
4527      fi
4528    done
4529    IFS="$lt_save_ifs"
4530  done
4531  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4532fi
4533fi
4534{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4535echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4536NM="$lt_cv_path_NM"
4537
4538{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4539echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4540LN_S=$as_ln_s
4541if test "$LN_S" = "ln -s"; then
4542  { echo "$as_me:$LINENO: result: yes" >&5
4543echo "${ECHO_T}yes" >&6; }
4544else
4545  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4546echo "${ECHO_T}no, using $LN_S" >&6; }
4547fi
4548
4549{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4550echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4551if test "${lt_cv_deplibs_check_method+set}" = set; then
4552  echo $ECHO_N "(cached) $ECHO_C" >&6
4553else
4554  lt_cv_file_magic_cmd='$MAGIC_CMD'
4555lt_cv_file_magic_test_file=
4556lt_cv_deplibs_check_method='unknown'
4557# Need to set the preceding variable on all platforms that support
4558# interlibrary dependencies.
4559# 'none' -- dependencies not supported.
4560# `unknown' -- same as none, but documents that we really don't know.
4561# 'pass_all' -- all dependencies passed with no checks.
4562# 'test_compile' -- check by making test program.
4563# 'file_magic [[regex]]' -- check by looking for files in library path
4564# which responds to the $file_magic_cmd with a given extended regex.
4565# If you have `file' or equivalent on your system and you're not sure
4566# whether `pass_all' will *always* work, you probably want this one.
4567
4568case $host_os in
4569aix[4-9]*)
4570  lt_cv_deplibs_check_method=pass_all
4571  ;;
4572
4573beos*)
4574  lt_cv_deplibs_check_method=pass_all
4575  ;;
4576
4577bsdi[45]*)
4578  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4579  lt_cv_file_magic_cmd='/usr/bin/file -L'
4580  lt_cv_file_magic_test_file=/shlib/libc.so
4581  ;;
4582
4583cygwin*)
4584  # func_win32_libid is a shell function defined in ltmain.sh
4585  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4586  lt_cv_file_magic_cmd='func_win32_libid'
4587  ;;
4588
4589mingw* | pw32*)
4590  # Base MSYS/MinGW do not provide the 'file' command needed by
4591  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4592  # unless we find 'file', for example because we are cross-compiling.
4593  if ( file / ) >/dev/null 2>&1; then
4594    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4595    lt_cv_file_magic_cmd='func_win32_libid'
4596  else
4597    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4598    lt_cv_file_magic_cmd='$OBJDUMP -f'
4599  fi
4600  ;;
4601
4602darwin* | rhapsody*)
4603  lt_cv_deplibs_check_method=pass_all
4604  ;;
4605
4606freebsd* | dragonfly*)
4607  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4608    case $host_cpu in
4609    i*86 )
4610      # Not sure whether the presence of OpenBSD here was a mistake.
4611      # Let's accept both of them until this is cleared up.
4612      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4613      lt_cv_file_magic_cmd=/usr/bin/file
4614      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4615      ;;
4616    esac
4617  else
4618    lt_cv_deplibs_check_method=pass_all
4619  fi
4620  ;;
4621
4622gnu*)
4623  lt_cv_deplibs_check_method=pass_all
4624  ;;
4625
4626hpux10.20* | hpux11*)
4627  lt_cv_file_magic_cmd=/usr/bin/file
4628  case $host_cpu in
4629  ia64*)
4630    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4631    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4632    ;;
4633  hppa*64*)
4634    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]'
4635    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4636    ;;
4637  *)
4638    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4639    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4640    ;;
4641  esac
4642  ;;
4643
4644interix[3-9]*)
4645  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4646  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4647  ;;
4648
4649irix5* | irix6* | nonstopux*)
4650  case $LD in
4651  *-32|*"-32 ") libmagic=32-bit;;
4652  *-n32|*"-n32 ") libmagic=N32;;
4653  *-64|*"-64 ") libmagic=64-bit;;
4654  *) libmagic=never-match;;
4655  esac
4656  lt_cv_deplibs_check_method=pass_all
4657  ;;
4658
4659# This must be Linux ELF.
4660linux* | k*bsd*-gnu)
4661  lt_cv_deplibs_check_method=pass_all
4662  ;;
4663
4664netbsd* | netbsdelf*-gnu)
4665  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4666    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4667  else
4668    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4669  fi
4670  ;;
4671
4672newos6*)
4673  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4674  lt_cv_file_magic_cmd=/usr/bin/file
4675  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4676  ;;
4677
4678nto-qnx*)
4679  lt_cv_deplibs_check_method=unknown
4680  ;;
4681
4682openbsd*)
4683  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4684    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4685  else
4686    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4687  fi
4688  ;;
4689
4690osf3* | osf4* | osf5*)
4691  lt_cv_deplibs_check_method=pass_all
4692  ;;
4693
4694rdos*)
4695  lt_cv_deplibs_check_method=pass_all
4696  ;;
4697
4698solaris*)
4699  lt_cv_deplibs_check_method=pass_all
4700  ;;
4701
4702sysv4 | sysv4.3*)
4703  case $host_vendor in
4704  motorola)
4705    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]'
4706    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4707    ;;
4708  ncr)
4709    lt_cv_deplibs_check_method=pass_all
4710    ;;
4711  sequent)
4712    lt_cv_file_magic_cmd='/bin/file'
4713    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4714    ;;
4715  sni)
4716    lt_cv_file_magic_cmd='/bin/file'
4717    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4718    lt_cv_file_magic_test_file=/lib/libc.so
4719    ;;
4720  siemens)
4721    lt_cv_deplibs_check_method=pass_all
4722    ;;
4723  pc)
4724    lt_cv_deplibs_check_method=pass_all
4725    ;;
4726  esac
4727  ;;
4728
4729sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4730  lt_cv_deplibs_check_method=pass_all
4731  ;;
4732esac
4733
4734fi
4735{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4736echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4737file_magic_cmd=$lt_cv_file_magic_cmd
4738deplibs_check_method=$lt_cv_deplibs_check_method
4739test -z "$deplibs_check_method" && deplibs_check_method=unknown
4740
4741
4742
4743
4744# If no C compiler was specified, use CC.
4745LTCC=${LTCC-"$CC"}
4746
4747# If no C compiler flags were specified, use CFLAGS.
4748LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4749
4750# Allow CC to be a program name with arguments.
4751compiler=$CC
4752
4753
4754
4755# Check whether --enable-libtool-lock was given.
4756if test "${enable_libtool_lock+set}" = set; then
4757  enableval=$enable_libtool_lock;
4758fi
4759
4760test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4761
4762# Some flags need to be propagated to the compiler or linker for good
4763# libtool support.
4764case $host in
4765ia64-*-hpux*)
4766  # Find out which ABI we are using.
4767  echo 'int i;' > conftest.$ac_ext
4768  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769  (eval $ac_compile) 2>&5
4770  ac_status=$?
4771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772  (exit $ac_status); }; then
4773    case `/usr/bin/file conftest.$ac_objext` in
4774    *ELF-32*)
4775      HPUX_IA64_MODE="32"
4776      ;;
4777    *ELF-64*)
4778      HPUX_IA64_MODE="64"
4779      ;;
4780    esac
4781  fi
4782  rm -rf conftest*
4783  ;;
4784*-*-irix6*)
4785  # Find out which ABI we are using.
4786  echo '#line 4786 "configure"' > conftest.$ac_ext
4787  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788  (eval $ac_compile) 2>&5
4789  ac_status=$?
4790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791  (exit $ac_status); }; then
4792   if test "$lt_cv_prog_gnu_ld" = yes; then
4793    case `/usr/bin/file conftest.$ac_objext` in
4794    *32-bit*)
4795      LD="${LD-ld} -melf32bsmip"
4796      ;;
4797    *N32*)
4798      LD="${LD-ld} -melf32bmipn32"
4799      ;;
4800    *64-bit*)
4801      LD="${LD-ld} -melf64bmip"
4802      ;;
4803    esac
4804   else
4805    case `/usr/bin/file conftest.$ac_objext` in
4806    *32-bit*)
4807      LD="${LD-ld} -32"
4808      ;;
4809    *N32*)
4810      LD="${LD-ld} -n32"
4811      ;;
4812    *64-bit*)
4813      LD="${LD-ld} -64"
4814      ;;
4815    esac
4816   fi
4817  fi
4818  rm -rf conftest*
4819  ;;
4820
4821x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4822s390*-*linux*|sparc*-*linux*)
4823  # Find out which ABI we are using.
4824  echo 'int i;' > conftest.$ac_ext
4825  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4826  (eval $ac_compile) 2>&5
4827  ac_status=$?
4828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829  (exit $ac_status); }; then
4830    case `/usr/bin/file conftest.o` in
4831    *32-bit*)
4832      case $host in
4833        x86_64-*kfreebsd*-gnu)
4834          LD="${LD-ld} -m elf_i386_fbsd"
4835          ;;
4836        x86_64-*linux*)
4837          LD="${LD-ld} -m elf_i386"
4838          ;;
4839        ppc64-*linux*|powerpc64-*linux*)
4840          LD="${LD-ld} -m elf32ppclinux"
4841          ;;
4842        s390x-*linux*)
4843          LD="${LD-ld} -m elf_s390"
4844          ;;
4845        sparc64-*linux*)
4846          LD="${LD-ld} -m elf32_sparc"
4847          ;;
4848      esac
4849      ;;
4850    *64-bit*)
4851      case $host in
4852        x86_64-*kfreebsd*-gnu)
4853          LD="${LD-ld} -m elf_x86_64_fbsd"
4854          ;;
4855        x86_64-*linux*)
4856          LD="${LD-ld} -m elf_x86_64"
4857          ;;
4858        ppc*-*linux*|powerpc*-*linux*)
4859          LD="${LD-ld} -m elf64ppc"
4860          ;;
4861        s390*-*linux*)
4862          LD="${LD-ld} -m elf64_s390"
4863          ;;
4864        sparc*-*linux*)
4865          LD="${LD-ld} -m elf64_sparc"
4866          ;;
4867      esac
4868      ;;
4869    esac
4870  fi
4871  rm -rf conftest*
4872  ;;
4873
4874*-*-sco3.2v5*)
4875  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4876  SAVE_CFLAGS="$CFLAGS"
4877  CFLAGS="$CFLAGS -belf"
4878  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4879echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4880if test "${lt_cv_cc_needs_belf+set}" = set; then
4881  echo $ECHO_N "(cached) $ECHO_C" >&6
4882else
4883  ac_ext=c
4884ac_cpp='$CPP $CPPFLAGS'
4885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4887ac_compiler_gnu=$ac_cv_c_compiler_gnu
4888
4889     cat >conftest.$ac_ext <<_ACEOF
4890/* confdefs.h.  */
4891_ACEOF
4892cat confdefs.h >>conftest.$ac_ext
4893cat >>conftest.$ac_ext <<_ACEOF
4894/* end confdefs.h.  */
4895
4896int
4897main ()
4898{
4899
4900  ;
4901  return 0;
4902}
4903_ACEOF
4904rm -f conftest.$ac_objext conftest$ac_exeext
4905if { (ac_try="$ac_link"
4906case "(($ac_try" in
4907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908  *) ac_try_echo=$ac_try;;
4909esac
4910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4911  (eval "$ac_link") 2>conftest.er1
4912  ac_status=$?
4913  grep -v '^ *+' conftest.er1 >conftest.err
4914  rm -f conftest.er1
4915  cat conftest.err >&5
4916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917  (exit $ac_status); } && {
4918	 test -z "$ac_c_werror_flag" ||
4919	 test ! -s conftest.err
4920       } && test -s conftest$ac_exeext &&
4921       $as_test_x conftest$ac_exeext; then
4922  lt_cv_cc_needs_belf=yes
4923else
4924  echo "$as_me: failed program was:" >&5
4925sed 's/^/| /' conftest.$ac_ext >&5
4926
4927	lt_cv_cc_needs_belf=no
4928fi
4929
4930rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4931      conftest$ac_exeext conftest.$ac_ext
4932     ac_ext=c
4933ac_cpp='$CPP $CPPFLAGS'
4934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4936ac_compiler_gnu=$ac_cv_c_compiler_gnu
4937
4938fi
4939{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4940echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4941  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4942    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4943    CFLAGS="$SAVE_CFLAGS"
4944  fi
4945  ;;
4946sparc*-*solaris*)
4947  # Find out which ABI we are using.
4948  echo 'int i;' > conftest.$ac_ext
4949  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4950  (eval $ac_compile) 2>&5
4951  ac_status=$?
4952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953  (exit $ac_status); }; then
4954    case `/usr/bin/file conftest.o` in
4955    *64-bit*)
4956      case $lt_cv_prog_gnu_ld in
4957      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4958      *)
4959        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4960	  LD="${LD-ld} -64"
4961	fi
4962	;;
4963      esac
4964      ;;
4965    esac
4966  fi
4967  rm -rf conftest*
4968  ;;
4969
4970
4971esac
4972
4973need_locks="$enable_libtool_lock"
4974
4975
4976ac_ext=c
4977ac_cpp='$CPP $CPPFLAGS'
4978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4982echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4983# On Suns, sometimes $CPP names a directory.
4984if test -n "$CPP" && test -d "$CPP"; then
4985  CPP=
4986fi
4987if test -z "$CPP"; then
4988  if test "${ac_cv_prog_CPP+set}" = set; then
4989  echo $ECHO_N "(cached) $ECHO_C" >&6
4990else
4991      # Double quotes because CPP needs to be expanded
4992    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4993    do
4994      ac_preproc_ok=false
4995for ac_c_preproc_warn_flag in '' yes
4996do
4997  # Use a header file that comes with gcc, so configuring glibc
4998  # with a fresh cross-compiler works.
4999  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5000  # <limits.h> exists even on freestanding compilers.
5001  # On the NeXT, cc -E runs the code through the compiler's parser,
5002  # not just through cpp. "Syntax error" is here to catch this case.
5003  cat >conftest.$ac_ext <<_ACEOF
5004/* confdefs.h.  */
5005_ACEOF
5006cat confdefs.h >>conftest.$ac_ext
5007cat >>conftest.$ac_ext <<_ACEOF
5008/* end confdefs.h.  */
5009#ifdef __STDC__
5010# include <limits.h>
5011#else
5012# include <assert.h>
5013#endif
5014		     Syntax error
5015_ACEOF
5016if { (ac_try="$ac_cpp conftest.$ac_ext"
5017case "(($ac_try" in
5018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5019  *) ac_try_echo=$ac_try;;
5020esac
5021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5022  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5023  ac_status=$?
5024  grep -v '^ *+' conftest.er1 >conftest.err
5025  rm -f conftest.er1
5026  cat conftest.err >&5
5027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028  (exit $ac_status); } >/dev/null && {
5029	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5030	 test ! -s conftest.err
5031       }; then
5032  :
5033else
5034  echo "$as_me: failed program was:" >&5
5035sed 's/^/| /' conftest.$ac_ext >&5
5036
5037  # Broken: fails on valid input.
5038continue
5039fi
5040
5041rm -f conftest.err conftest.$ac_ext
5042
5043  # OK, works on sane cases.  Now check whether nonexistent headers
5044  # can be detected and how.
5045  cat >conftest.$ac_ext <<_ACEOF
5046/* confdefs.h.  */
5047_ACEOF
5048cat confdefs.h >>conftest.$ac_ext
5049cat >>conftest.$ac_ext <<_ACEOF
5050/* end confdefs.h.  */
5051#include <ac_nonexistent.h>
5052_ACEOF
5053if { (ac_try="$ac_cpp conftest.$ac_ext"
5054case "(($ac_try" in
5055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056  *) ac_try_echo=$ac_try;;
5057esac
5058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5060  ac_status=$?
5061  grep -v '^ *+' conftest.er1 >conftest.err
5062  rm -f conftest.er1
5063  cat conftest.err >&5
5064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065  (exit $ac_status); } >/dev/null && {
5066	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5067	 test ! -s conftest.err
5068       }; then
5069  # Broken: success on invalid input.
5070continue
5071else
5072  echo "$as_me: failed program was:" >&5
5073sed 's/^/| /' conftest.$ac_ext >&5
5074
5075  # Passes both tests.
5076ac_preproc_ok=:
5077break
5078fi
5079
5080rm -f conftest.err conftest.$ac_ext
5081
5082done
5083# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5084rm -f conftest.err conftest.$ac_ext
5085if $ac_preproc_ok; then
5086  break
5087fi
5088
5089    done
5090    ac_cv_prog_CPP=$CPP
5091
5092fi
5093  CPP=$ac_cv_prog_CPP
5094else
5095  ac_cv_prog_CPP=$CPP
5096fi
5097{ echo "$as_me:$LINENO: result: $CPP" >&5
5098echo "${ECHO_T}$CPP" >&6; }
5099ac_preproc_ok=false
5100for ac_c_preproc_warn_flag in '' yes
5101do
5102  # Use a header file that comes with gcc, so configuring glibc
5103  # with a fresh cross-compiler works.
5104  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5105  # <limits.h> exists even on freestanding compilers.
5106  # On the NeXT, cc -E runs the code through the compiler's parser,
5107  # not just through cpp. "Syntax error" is here to catch this case.
5108  cat >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#ifdef __STDC__
5115# include <limits.h>
5116#else
5117# include <assert.h>
5118#endif
5119		     Syntax error
5120_ACEOF
5121if { (ac_try="$ac_cpp conftest.$ac_ext"
5122case "(($ac_try" in
5123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124  *) ac_try_echo=$ac_try;;
5125esac
5126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5128  ac_status=$?
5129  grep -v '^ *+' conftest.er1 >conftest.err
5130  rm -f conftest.er1
5131  cat conftest.err >&5
5132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133  (exit $ac_status); } >/dev/null && {
5134	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5135	 test ! -s conftest.err
5136       }; then
5137  :
5138else
5139  echo "$as_me: failed program was:" >&5
5140sed 's/^/| /' conftest.$ac_ext >&5
5141
5142  # Broken: fails on valid input.
5143continue
5144fi
5145
5146rm -f conftest.err conftest.$ac_ext
5147
5148  # OK, works on sane cases.  Now check whether nonexistent headers
5149  # can be detected and how.
5150  cat >conftest.$ac_ext <<_ACEOF
5151/* confdefs.h.  */
5152_ACEOF
5153cat confdefs.h >>conftest.$ac_ext
5154cat >>conftest.$ac_ext <<_ACEOF
5155/* end confdefs.h.  */
5156#include <ac_nonexistent.h>
5157_ACEOF
5158if { (ac_try="$ac_cpp conftest.$ac_ext"
5159case "(($ac_try" in
5160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161  *) ac_try_echo=$ac_try;;
5162esac
5163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5164  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5165  ac_status=$?
5166  grep -v '^ *+' conftest.er1 >conftest.err
5167  rm -f conftest.er1
5168  cat conftest.err >&5
5169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170  (exit $ac_status); } >/dev/null && {
5171	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5172	 test ! -s conftest.err
5173       }; then
5174  # Broken: success on invalid input.
5175continue
5176else
5177  echo "$as_me: failed program was:" >&5
5178sed 's/^/| /' conftest.$ac_ext >&5
5179
5180  # Passes both tests.
5181ac_preproc_ok=:
5182break
5183fi
5184
5185rm -f conftest.err conftest.$ac_ext
5186
5187done
5188# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5189rm -f conftest.err conftest.$ac_ext
5190if $ac_preproc_ok; then
5191  :
5192else
5193  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5194See \`config.log' for more details." >&5
5195echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5196See \`config.log' for more details." >&2;}
5197   { (exit 1); exit 1; }; }
5198fi
5199
5200ac_ext=c
5201ac_cpp='$CPP $CPPFLAGS'
5202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5204ac_compiler_gnu=$ac_cv_c_compiler_gnu
5205
5206
5207{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5208echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5209if test "${ac_cv_header_stdc+set}" = set; then
5210  echo $ECHO_N "(cached) $ECHO_C" >&6
5211else
5212  cat >conftest.$ac_ext <<_ACEOF
5213/* confdefs.h.  */
5214_ACEOF
5215cat confdefs.h >>conftest.$ac_ext
5216cat >>conftest.$ac_ext <<_ACEOF
5217/* end confdefs.h.  */
5218#include <stdlib.h>
5219#include <stdarg.h>
5220#include <string.h>
5221#include <float.h>
5222
5223int
5224main ()
5225{
5226
5227  ;
5228  return 0;
5229}
5230_ACEOF
5231rm -f conftest.$ac_objext
5232if { (ac_try="$ac_compile"
5233case "(($ac_try" in
5234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235  *) ac_try_echo=$ac_try;;
5236esac
5237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238  (eval "$ac_compile") 2>conftest.er1
5239  ac_status=$?
5240  grep -v '^ *+' conftest.er1 >conftest.err
5241  rm -f conftest.er1
5242  cat conftest.err >&5
5243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244  (exit $ac_status); } && {
5245	 test -z "$ac_c_werror_flag" ||
5246	 test ! -s conftest.err
5247       } && test -s conftest.$ac_objext; then
5248  ac_cv_header_stdc=yes
5249else
5250  echo "$as_me: failed program was:" >&5
5251sed 's/^/| /' conftest.$ac_ext >&5
5252
5253	ac_cv_header_stdc=no
5254fi
5255
5256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257
5258if test $ac_cv_header_stdc = yes; then
5259  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5260  cat >conftest.$ac_ext <<_ACEOF
5261/* confdefs.h.  */
5262_ACEOF
5263cat confdefs.h >>conftest.$ac_ext
5264cat >>conftest.$ac_ext <<_ACEOF
5265/* end confdefs.h.  */
5266#include <string.h>
5267
5268_ACEOF
5269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5270  $EGREP "memchr" >/dev/null 2>&1; then
5271  :
5272else
5273  ac_cv_header_stdc=no
5274fi
5275rm -f conftest*
5276
5277fi
5278
5279if test $ac_cv_header_stdc = yes; then
5280  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5281  cat >conftest.$ac_ext <<_ACEOF
5282/* confdefs.h.  */
5283_ACEOF
5284cat confdefs.h >>conftest.$ac_ext
5285cat >>conftest.$ac_ext <<_ACEOF
5286/* end confdefs.h.  */
5287#include <stdlib.h>
5288
5289_ACEOF
5290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5291  $EGREP "free" >/dev/null 2>&1; then
5292  :
5293else
5294  ac_cv_header_stdc=no
5295fi
5296rm -f conftest*
5297
5298fi
5299
5300if test $ac_cv_header_stdc = yes; then
5301  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5302  if test "$cross_compiling" = yes; then
5303  :
5304else
5305  cat >conftest.$ac_ext <<_ACEOF
5306/* confdefs.h.  */
5307_ACEOF
5308cat confdefs.h >>conftest.$ac_ext
5309cat >>conftest.$ac_ext <<_ACEOF
5310/* end confdefs.h.  */
5311#include <ctype.h>
5312#include <stdlib.h>
5313#if ((' ' & 0x0FF) == 0x020)
5314# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5315# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5316#else
5317# define ISLOWER(c) \
5318		   (('a' <= (c) && (c) <= 'i') \
5319		     || ('j' <= (c) && (c) <= 'r') \
5320		     || ('s' <= (c) && (c) <= 'z'))
5321# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5322#endif
5323
5324#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5325int
5326main ()
5327{
5328  int i;
5329  for (i = 0; i < 256; i++)
5330    if (XOR (islower (i), ISLOWER (i))
5331	|| toupper (i) != TOUPPER (i))
5332      return 2;
5333  return 0;
5334}
5335_ACEOF
5336rm -f conftest$ac_exeext
5337if { (ac_try="$ac_link"
5338case "(($ac_try" in
5339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340  *) ac_try_echo=$ac_try;;
5341esac
5342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343  (eval "$ac_link") 2>&5
5344  ac_status=$?
5345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5347  { (case "(($ac_try" in
5348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5349  *) ac_try_echo=$ac_try;;
5350esac
5351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5352  (eval "$ac_try") 2>&5
5353  ac_status=$?
5354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355  (exit $ac_status); }; }; then
5356  :
5357else
5358  echo "$as_me: program exited with status $ac_status" >&5
5359echo "$as_me: failed program was:" >&5
5360sed 's/^/| /' conftest.$ac_ext >&5
5361
5362( exit $ac_status )
5363ac_cv_header_stdc=no
5364fi
5365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5366fi
5367
5368
5369fi
5370fi
5371{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5372echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5373if test $ac_cv_header_stdc = yes; then
5374
5375cat >>confdefs.h <<\_ACEOF
5376#define STDC_HEADERS 1
5377_ACEOF
5378
5379fi
5380
5381# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5392		  inttypes.h stdint.h unistd.h
5393do
5394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5395{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5398  echo $ECHO_N "(cached) $ECHO_C" >&6
5399else
5400  cat >conftest.$ac_ext <<_ACEOF
5401/* confdefs.h.  */
5402_ACEOF
5403cat confdefs.h >>conftest.$ac_ext
5404cat >>conftest.$ac_ext <<_ACEOF
5405/* end confdefs.h.  */
5406$ac_includes_default
5407
5408#include <$ac_header>
5409_ACEOF
5410rm -f conftest.$ac_objext
5411if { (ac_try="$ac_compile"
5412case "(($ac_try" in
5413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414  *) ac_try_echo=$ac_try;;
5415esac
5416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417  (eval "$ac_compile") 2>conftest.er1
5418  ac_status=$?
5419  grep -v '^ *+' conftest.er1 >conftest.err
5420  rm -f conftest.er1
5421  cat conftest.err >&5
5422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423  (exit $ac_status); } && {
5424	 test -z "$ac_c_werror_flag" ||
5425	 test ! -s conftest.err
5426       } && test -s conftest.$ac_objext; then
5427  eval "$as_ac_Header=yes"
5428else
5429  echo "$as_me: failed program was:" >&5
5430sed 's/^/| /' conftest.$ac_ext >&5
5431
5432	eval "$as_ac_Header=no"
5433fi
5434
5435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5436fi
5437ac_res=`eval echo '${'$as_ac_Header'}'`
5438	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5439echo "${ECHO_T}$ac_res" >&6; }
5440if test `eval echo '${'$as_ac_Header'}'` = yes; then
5441  cat >>confdefs.h <<_ACEOF
5442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5443_ACEOF
5444
5445fi
5446
5447done
5448
5449
5450
5451for ac_header in dlfcn.h
5452do
5453as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5455  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5458  echo $ECHO_N "(cached) $ECHO_C" >&6
5459fi
5460ac_res=`eval echo '${'$as_ac_Header'}'`
5461	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5462echo "${ECHO_T}$ac_res" >&6; }
5463else
5464  # Is the header compilable?
5465{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5466echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5467cat >conftest.$ac_ext <<_ACEOF
5468/* confdefs.h.  */
5469_ACEOF
5470cat confdefs.h >>conftest.$ac_ext
5471cat >>conftest.$ac_ext <<_ACEOF
5472/* end confdefs.h.  */
5473$ac_includes_default
5474#include <$ac_header>
5475_ACEOF
5476rm -f conftest.$ac_objext
5477if { (ac_try="$ac_compile"
5478case "(($ac_try" in
5479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480  *) ac_try_echo=$ac_try;;
5481esac
5482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483  (eval "$ac_compile") 2>conftest.er1
5484  ac_status=$?
5485  grep -v '^ *+' conftest.er1 >conftest.err
5486  rm -f conftest.er1
5487  cat conftest.err >&5
5488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489  (exit $ac_status); } && {
5490	 test -z "$ac_c_werror_flag" ||
5491	 test ! -s conftest.err
5492       } && test -s conftest.$ac_objext; then
5493  ac_header_compiler=yes
5494else
5495  echo "$as_me: failed program was:" >&5
5496sed 's/^/| /' conftest.$ac_ext >&5
5497
5498	ac_header_compiler=no
5499fi
5500
5501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5503echo "${ECHO_T}$ac_header_compiler" >&6; }
5504
5505# Is the header present?
5506{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5508cat >conftest.$ac_ext <<_ACEOF
5509/* confdefs.h.  */
5510_ACEOF
5511cat confdefs.h >>conftest.$ac_ext
5512cat >>conftest.$ac_ext <<_ACEOF
5513/* end confdefs.h.  */
5514#include <$ac_header>
5515_ACEOF
5516if { (ac_try="$ac_cpp conftest.$ac_ext"
5517case "(($ac_try" in
5518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519  *) ac_try_echo=$ac_try;;
5520esac
5521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5523  ac_status=$?
5524  grep -v '^ *+' conftest.er1 >conftest.err
5525  rm -f conftest.er1
5526  cat conftest.err >&5
5527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528  (exit $ac_status); } >/dev/null && {
5529	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5530	 test ! -s conftest.err
5531       }; then
5532  ac_header_preproc=yes
5533else
5534  echo "$as_me: failed program was:" >&5
5535sed 's/^/| /' conftest.$ac_ext >&5
5536
5537  ac_header_preproc=no
5538fi
5539
5540rm -f conftest.err conftest.$ac_ext
5541{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5542echo "${ECHO_T}$ac_header_preproc" >&6; }
5543
5544# So?  What about this header?
5545case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5546  yes:no: )
5547    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5548echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5549    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5550echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5551    ac_header_preproc=yes
5552    ;;
5553  no:yes:* )
5554    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5555echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5556    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5557echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5558    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5559echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5560    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5561echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5562    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5563echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5564    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5565echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5566
5567    ;;
5568esac
5569{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5572  echo $ECHO_N "(cached) $ECHO_C" >&6
5573else
5574  eval "$as_ac_Header=\$ac_header_preproc"
5575fi
5576ac_res=`eval echo '${'$as_ac_Header'}'`
5577	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5578echo "${ECHO_T}$ac_res" >&6; }
5579
5580fi
5581if test `eval echo '${'$as_ac_Header'}'` = yes; then
5582  cat >>confdefs.h <<_ACEOF
5583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5584_ACEOF
5585
5586fi
5587
5588done
5589
5590
5591
5592if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5593    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5594    (test "X$CXX" != "Xg++"))) ; then
5595  ac_ext=cpp
5596ac_cpp='$CXXCPP $CPPFLAGS'
5597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5600{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5601echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5602if test -z "$CXXCPP"; then
5603  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5604  echo $ECHO_N "(cached) $ECHO_C" >&6
5605else
5606      # Double quotes because CXXCPP needs to be expanded
5607    for CXXCPP in "$CXX -E" "/lib/cpp"
5608    do
5609      ac_preproc_ok=false
5610for ac_cxx_preproc_warn_flag in '' yes
5611do
5612  # Use a header file that comes with gcc, so configuring glibc
5613  # with a fresh cross-compiler works.
5614  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5615  # <limits.h> exists even on freestanding compilers.
5616  # On the NeXT, cc -E runs the code through the compiler's parser,
5617  # not just through cpp. "Syntax error" is here to catch this case.
5618  cat >conftest.$ac_ext <<_ACEOF
5619/* confdefs.h.  */
5620_ACEOF
5621cat confdefs.h >>conftest.$ac_ext
5622cat >>conftest.$ac_ext <<_ACEOF
5623/* end confdefs.h.  */
5624#ifdef __STDC__
5625# include <limits.h>
5626#else
5627# include <assert.h>
5628#endif
5629		     Syntax error
5630_ACEOF
5631if { (ac_try="$ac_cpp conftest.$ac_ext"
5632case "(($ac_try" in
5633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634  *) ac_try_echo=$ac_try;;
5635esac
5636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5638  ac_status=$?
5639  grep -v '^ *+' conftest.er1 >conftest.err
5640  rm -f conftest.er1
5641  cat conftest.err >&5
5642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643  (exit $ac_status); } >/dev/null && {
5644	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5645	 test ! -s conftest.err
5646       }; then
5647  :
5648else
5649  echo "$as_me: failed program was:" >&5
5650sed 's/^/| /' conftest.$ac_ext >&5
5651
5652  # Broken: fails on valid input.
5653continue
5654fi
5655
5656rm -f conftest.err conftest.$ac_ext
5657
5658  # OK, works on sane cases.  Now check whether nonexistent headers
5659  # can be detected and how.
5660  cat >conftest.$ac_ext <<_ACEOF
5661/* confdefs.h.  */
5662_ACEOF
5663cat confdefs.h >>conftest.$ac_ext
5664cat >>conftest.$ac_ext <<_ACEOF
5665/* end confdefs.h.  */
5666#include <ac_nonexistent.h>
5667_ACEOF
5668if { (ac_try="$ac_cpp conftest.$ac_ext"
5669case "(($ac_try" in
5670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671  *) ac_try_echo=$ac_try;;
5672esac
5673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5675  ac_status=$?
5676  grep -v '^ *+' conftest.er1 >conftest.err
5677  rm -f conftest.er1
5678  cat conftest.err >&5
5679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680  (exit $ac_status); } >/dev/null && {
5681	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5682	 test ! -s conftest.err
5683       }; then
5684  # Broken: success on invalid input.
5685continue
5686else
5687  echo "$as_me: failed program was:" >&5
5688sed 's/^/| /' conftest.$ac_ext >&5
5689
5690  # Passes both tests.
5691ac_preproc_ok=:
5692break
5693fi
5694
5695rm -f conftest.err conftest.$ac_ext
5696
5697done
5698# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5699rm -f conftest.err conftest.$ac_ext
5700if $ac_preproc_ok; then
5701  break
5702fi
5703
5704    done
5705    ac_cv_prog_CXXCPP=$CXXCPP
5706
5707fi
5708  CXXCPP=$ac_cv_prog_CXXCPP
5709else
5710  ac_cv_prog_CXXCPP=$CXXCPP
5711fi
5712{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5713echo "${ECHO_T}$CXXCPP" >&6; }
5714ac_preproc_ok=false
5715for ac_cxx_preproc_warn_flag in '' yes
5716do
5717  # Use a header file that comes with gcc, so configuring glibc
5718  # with a fresh cross-compiler works.
5719  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5720  # <limits.h> exists even on freestanding compilers.
5721  # On the NeXT, cc -E runs the code through the compiler's parser,
5722  # not just through cpp. "Syntax error" is here to catch this case.
5723  cat >conftest.$ac_ext <<_ACEOF
5724/* confdefs.h.  */
5725_ACEOF
5726cat confdefs.h >>conftest.$ac_ext
5727cat >>conftest.$ac_ext <<_ACEOF
5728/* end confdefs.h.  */
5729#ifdef __STDC__
5730# include <limits.h>
5731#else
5732# include <assert.h>
5733#endif
5734		     Syntax error
5735_ACEOF
5736if { (ac_try="$ac_cpp conftest.$ac_ext"
5737case "(($ac_try" in
5738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739  *) ac_try_echo=$ac_try;;
5740esac
5741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5743  ac_status=$?
5744  grep -v '^ *+' conftest.er1 >conftest.err
5745  rm -f conftest.er1
5746  cat conftest.err >&5
5747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748  (exit $ac_status); } >/dev/null && {
5749	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5750	 test ! -s conftest.err
5751       }; then
5752  :
5753else
5754  echo "$as_me: failed program was:" >&5
5755sed 's/^/| /' conftest.$ac_ext >&5
5756
5757  # Broken: fails on valid input.
5758continue
5759fi
5760
5761rm -f conftest.err conftest.$ac_ext
5762
5763  # OK, works on sane cases.  Now check whether nonexistent headers
5764  # can be detected and how.
5765  cat >conftest.$ac_ext <<_ACEOF
5766/* confdefs.h.  */
5767_ACEOF
5768cat confdefs.h >>conftest.$ac_ext
5769cat >>conftest.$ac_ext <<_ACEOF
5770/* end confdefs.h.  */
5771#include <ac_nonexistent.h>
5772_ACEOF
5773if { (ac_try="$ac_cpp conftest.$ac_ext"
5774case "(($ac_try" in
5775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776  *) ac_try_echo=$ac_try;;
5777esac
5778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5780  ac_status=$?
5781  grep -v '^ *+' conftest.er1 >conftest.err
5782  rm -f conftest.er1
5783  cat conftest.err >&5
5784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785  (exit $ac_status); } >/dev/null && {
5786	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5787	 test ! -s conftest.err
5788       }; then
5789  # Broken: success on invalid input.
5790continue
5791else
5792  echo "$as_me: failed program was:" >&5
5793sed 's/^/| /' conftest.$ac_ext >&5
5794
5795  # Passes both tests.
5796ac_preproc_ok=:
5797break
5798fi
5799
5800rm -f conftest.err conftest.$ac_ext
5801
5802done
5803# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5804rm -f conftest.err conftest.$ac_ext
5805if $ac_preproc_ok; then
5806  :
5807else
5808  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5809See \`config.log' for more details." >&5
5810echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5811See \`config.log' for more details." >&2;}
5812   { (exit 1); exit 1; }; }
5813fi
5814
5815ac_ext=cpp
5816ac_cpp='$CXXCPP $CPPFLAGS'
5817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5820
5821fi
5822
5823ac_ext=f
5824ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5825ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5826ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5827if test -n "$ac_tool_prefix"; then
5828  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
5829  do
5830    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5831set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5834if test "${ac_cv_prog_F77+set}" = set; then
5835  echo $ECHO_N "(cached) $ECHO_C" >&6
5836else
5837  if test -n "$F77"; then
5838  ac_cv_prog_F77="$F77" # Let the user override the test.
5839else
5840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843  IFS=$as_save_IFS
5844  test -z "$as_dir" && as_dir=.
5845  for ac_exec_ext in '' $ac_executable_extensions; do
5846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5848    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849    break 2
5850  fi
5851done
5852done
5853IFS=$as_save_IFS
5854
5855fi
5856fi
5857F77=$ac_cv_prog_F77
5858if test -n "$F77"; then
5859  { echo "$as_me:$LINENO: result: $F77" >&5
5860echo "${ECHO_T}$F77" >&6; }
5861else
5862  { echo "$as_me:$LINENO: result: no" >&5
5863echo "${ECHO_T}no" >&6; }
5864fi
5865
5866
5867    test -n "$F77" && break
5868  done
5869fi
5870if test -z "$F77"; then
5871  ac_ct_F77=$F77
5872  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
5873do
5874  # Extract the first word of "$ac_prog", so it can be a program name with args.
5875set dummy $ac_prog; ac_word=$2
5876{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5879  echo $ECHO_N "(cached) $ECHO_C" >&6
5880else
5881  if test -n "$ac_ct_F77"; then
5882  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5883else
5884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885for as_dir in $PATH
5886do
5887  IFS=$as_save_IFS
5888  test -z "$as_dir" && as_dir=.
5889  for ac_exec_ext in '' $ac_executable_extensions; do
5890  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5891    ac_cv_prog_ac_ct_F77="$ac_prog"
5892    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893    break 2
5894  fi
5895done
5896done
5897IFS=$as_save_IFS
5898
5899fi
5900fi
5901ac_ct_F77=$ac_cv_prog_ac_ct_F77
5902if test -n "$ac_ct_F77"; then
5903  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5904echo "${ECHO_T}$ac_ct_F77" >&6; }
5905else
5906  { echo "$as_me:$LINENO: result: no" >&5
5907echo "${ECHO_T}no" >&6; }
5908fi
5909
5910
5911  test -n "$ac_ct_F77" && break
5912done
5913
5914  if test "x$ac_ct_F77" = x; then
5915    F77=""
5916  else
5917    case $cross_compiling:$ac_tool_warned in
5918yes:)
5919{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5920whose name does not start with the host triplet.  If you think this
5921configuration is useful to you, please write to autoconf@gnu.org." >&5
5922echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5923whose name does not start with the host triplet.  If you think this
5924configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5925ac_tool_warned=yes ;;
5926esac
5927    F77=$ac_ct_F77
5928  fi
5929fi
5930
5931
5932# Provide some information about the compiler.
5933echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5934ac_compiler=`set X $ac_compile; echo $2`
5935{ (ac_try="$ac_compiler --version >&5"
5936case "(($ac_try" in
5937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938  *) ac_try_echo=$ac_try;;
5939esac
5940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941  (eval "$ac_compiler --version >&5") 2>&5
5942  ac_status=$?
5943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944  (exit $ac_status); }
5945{ (ac_try="$ac_compiler -v >&5"
5946case "(($ac_try" in
5947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948  *) ac_try_echo=$ac_try;;
5949esac
5950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951  (eval "$ac_compiler -v >&5") 2>&5
5952  ac_status=$?
5953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954  (exit $ac_status); }
5955{ (ac_try="$ac_compiler -V >&5"
5956case "(($ac_try" in
5957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958  *) ac_try_echo=$ac_try;;
5959esac
5960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961  (eval "$ac_compiler -V >&5") 2>&5
5962  ac_status=$?
5963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964  (exit $ac_status); }
5965rm -f a.out
5966
5967# If we don't use `.F' as extension, the preprocessor is not run on the
5968# input file.  (Note that this only needs to work for GNU compilers.)
5969ac_save_ext=$ac_ext
5970ac_ext=F
5971{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5972echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5973if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5974  echo $ECHO_N "(cached) $ECHO_C" >&6
5975else
5976  cat >conftest.$ac_ext <<_ACEOF
5977      program main
5978#ifndef __GNUC__
5979       choke me
5980#endif
5981
5982      end
5983_ACEOF
5984rm -f conftest.$ac_objext
5985if { (ac_try="$ac_compile"
5986case "(($ac_try" in
5987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988  *) ac_try_echo=$ac_try;;
5989esac
5990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991  (eval "$ac_compile") 2>conftest.er1
5992  ac_status=$?
5993  grep -v '^ *+' conftest.er1 >conftest.err
5994  rm -f conftest.er1
5995  cat conftest.err >&5
5996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997  (exit $ac_status); } && {
5998	 test -z "$ac_f77_werror_flag" ||
5999	 test ! -s conftest.err
6000       } && test -s conftest.$ac_objext; then
6001  ac_compiler_gnu=yes
6002else
6003  echo "$as_me: failed program was:" >&5
6004sed 's/^/| /' conftest.$ac_ext >&5
6005
6006	ac_compiler_gnu=no
6007fi
6008
6009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6011
6012fi
6013{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6014echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6015ac_ext=$ac_save_ext
6016ac_test_FFLAGS=${FFLAGS+set}
6017ac_save_FFLAGS=$FFLAGS
6018FFLAGS=
6019{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6020echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6021if test "${ac_cv_prog_f77_g+set}" = set; then
6022  echo $ECHO_N "(cached) $ECHO_C" >&6
6023else
6024  FFLAGS=-g
6025cat >conftest.$ac_ext <<_ACEOF
6026      program main
6027
6028      end
6029_ACEOF
6030rm -f conftest.$ac_objext
6031if { (ac_try="$ac_compile"
6032case "(($ac_try" in
6033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034  *) ac_try_echo=$ac_try;;
6035esac
6036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037  (eval "$ac_compile") 2>conftest.er1
6038  ac_status=$?
6039  grep -v '^ *+' conftest.er1 >conftest.err
6040  rm -f conftest.er1
6041  cat conftest.err >&5
6042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043  (exit $ac_status); } && {
6044	 test -z "$ac_f77_werror_flag" ||
6045	 test ! -s conftest.err
6046       } && test -s conftest.$ac_objext; then
6047  ac_cv_prog_f77_g=yes
6048else
6049  echo "$as_me: failed program was:" >&5
6050sed 's/^/| /' conftest.$ac_ext >&5
6051
6052	ac_cv_prog_f77_g=no
6053fi
6054
6055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056
6057fi
6058{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6059echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6060if test "$ac_test_FFLAGS" = set; then
6061  FFLAGS=$ac_save_FFLAGS
6062elif test $ac_cv_prog_f77_g = yes; then
6063  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6064    FFLAGS="-g -O2"
6065  else
6066    FFLAGS="-g"
6067  fi
6068else
6069  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6070    FFLAGS="-O2"
6071  else
6072    FFLAGS=
6073  fi
6074fi
6075
6076G77=`test $ac_compiler_gnu = yes && echo yes`
6077ac_ext=cpp
6078ac_cpp='$CXXCPP $CPPFLAGS'
6079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6082
6083
6084
6085# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6086# find the maximum length of command line arguments
6087{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6088echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6089if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6090  echo $ECHO_N "(cached) $ECHO_C" >&6
6091else
6092    i=0
6093  teststring="ABCD"
6094
6095  case $build_os in
6096  msdosdjgpp*)
6097    # On DJGPP, this test can blow up pretty badly due to problems in libc
6098    # (any single argument exceeding 2000 bytes causes a buffer overrun
6099    # during glob expansion).  Even if it were fixed, the result of this
6100    # check would be larger than it should be.
6101    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6102    ;;
6103
6104  gnu*)
6105    # Under GNU Hurd, this test is not required because there is
6106    # no limit to the length of command line arguments.
6107    # Libtool will interpret -1 as no limit whatsoever
6108    lt_cv_sys_max_cmd_len=-1;
6109    ;;
6110
6111  cygwin* | mingw*)
6112    # On Win9x/ME, this test blows up -- it succeeds, but takes
6113    # about 5 minutes as the teststring grows exponentially.
6114    # Worse, since 9x/ME are not pre-emptively multitasking,
6115    # you end up with a "frozen" computer, even though with patience
6116    # the test eventually succeeds (with a max line length of 256k).
6117    # Instead, let's just punt: use the minimum linelength reported by
6118    # all of the supported platforms: 8192 (on NT/2K/XP).
6119    lt_cv_sys_max_cmd_len=8192;
6120    ;;
6121
6122  amigaos*)
6123    # On AmigaOS with pdksh, this test takes hours, literally.
6124    # So we just punt and use a minimum line length of 8192.
6125    lt_cv_sys_max_cmd_len=8192;
6126    ;;
6127
6128  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6129    # This has been around since 386BSD, at least.  Likely further.
6130    if test -x /sbin/sysctl; then
6131      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6132    elif test -x /usr/sbin/sysctl; then
6133      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6134    else
6135      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6136    fi
6137    # And add a safety zone
6138    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6139    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6140    ;;
6141
6142  interix*)
6143    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6144    lt_cv_sys_max_cmd_len=196608
6145    ;;
6146
6147  osf*)
6148    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6149    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6150    # nice to cause kernel panics so lets avoid the loop below.
6151    # First set a reasonable default.
6152    lt_cv_sys_max_cmd_len=16384
6153    #
6154    if test -x /sbin/sysconfig; then
6155      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6156        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6157      esac
6158    fi
6159    ;;
6160  sco3.2v5*)
6161    lt_cv_sys_max_cmd_len=102400
6162    ;;
6163  sysv5* | sco5v6* | sysv4.2uw2*)
6164    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6165    if test -n "$kargmax"; then
6166      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6167    else
6168      lt_cv_sys_max_cmd_len=32768
6169    fi
6170    ;;
6171  *)
6172    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6173    if test -n "$lt_cv_sys_max_cmd_len"; then
6174      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6175      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6176    else
6177      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6178      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6179	       = "XX$teststring") >/dev/null 2>&1 &&
6180	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6181	      lt_cv_sys_max_cmd_len=$new_result &&
6182	      test $i != 17 # 1/2 MB should be enough
6183      do
6184        i=`expr $i + 1`
6185        teststring=$teststring$teststring
6186      done
6187      teststring=
6188      # Add a significant safety factor because C++ compilers can tack on massive
6189      # amounts of additional arguments before passing them to the linker.
6190      # It appears as though 1/2 is a usable value.
6191      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6192    fi
6193    ;;
6194  esac
6195
6196fi
6197
6198if test -n $lt_cv_sys_max_cmd_len ; then
6199  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6200echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6201else
6202  { echo "$as_me:$LINENO: result: none" >&5
6203echo "${ECHO_T}none" >&6; }
6204fi
6205
6206
6207
6208
6209
6210# Check for command to grab the raw symbol name followed by C symbol from nm.
6211{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6212echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6213if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6214  echo $ECHO_N "(cached) $ECHO_C" >&6
6215else
6216
6217# These are sane defaults that work on at least a few old systems.
6218# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6219
6220# Character class describing NM global symbol codes.
6221symcode='[BCDEGRST]'
6222
6223# Regexp to match symbols that can be accessed directly from C.
6224sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6225
6226# Transform an extracted symbol line into a proper C declaration
6227lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6228
6229# Transform an extracted symbol line into symbol name and symbol address
6230lt_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'"
6231
6232# Define system-specific variables.
6233case $host_os in
6234aix*)
6235  symcode='[BCDT]'
6236  ;;
6237cygwin* | mingw* | pw32*)
6238  symcode='[ABCDGISTW]'
6239  ;;
6240hpux*) # Its linker distinguishes data from code symbols
6241  if test "$host_cpu" = ia64; then
6242    symcode='[ABCDEGRST]'
6243  fi
6244  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6245  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'"
6246  ;;
6247linux* | k*bsd*-gnu)
6248  if test "$host_cpu" = ia64; then
6249    symcode='[ABCDGIRSTW]'
6250    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6251    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'"
6252  fi
6253  ;;
6254irix* | nonstopux*)
6255  symcode='[BCDEGRST]'
6256  ;;
6257osf*)
6258  symcode='[BCDEGQRST]'
6259  ;;
6260solaris*)
6261  symcode='[BDRT]'
6262  ;;
6263sco3.2v5*)
6264  symcode='[DT]'
6265  ;;
6266sysv4.2uw2*)
6267  symcode='[DT]'
6268  ;;
6269sysv5* | sco5v6* | unixware* | OpenUNIX*)
6270  symcode='[ABDT]'
6271  ;;
6272sysv4)
6273  symcode='[DFNSTU]'
6274  ;;
6275esac
6276
6277# Handle CRLF in mingw tool chain
6278opt_cr=
6279case $build_os in
6280mingw*)
6281  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6282  ;;
6283esac
6284
6285# If we're using GNU nm, then use its standard symbol codes.
6286case `$NM -V 2>&1` in
6287*GNU* | *'with BFD'*)
6288  symcode='[ABCDGIRSTW]' ;;
6289esac
6290
6291# Try without a prefix undercore, then with it.
6292for ac_symprfx in "" "_"; do
6293
6294  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6295  symxfrm="\\1 $ac_symprfx\\2 \\2"
6296
6297  # Write the raw and C identifiers.
6298  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6299
6300  # Check to see that the pipe works correctly.
6301  pipe_works=no
6302
6303  rm -f conftest*
6304  cat > conftest.$ac_ext <<EOF
6305#ifdef __cplusplus
6306extern "C" {
6307#endif
6308char nm_test_var;
6309void nm_test_func(){}
6310#ifdef __cplusplus
6311}
6312#endif
6313int main(){nm_test_var='a';nm_test_func();return(0);}
6314EOF
6315
6316  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317  (eval $ac_compile) 2>&5
6318  ac_status=$?
6319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320  (exit $ac_status); }; then
6321    # Now try to grab the symbols.
6322    nlist=conftest.nm
6323    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6324  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6325  ac_status=$?
6326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327  (exit $ac_status); } && test -s "$nlist"; then
6328      # Try sorting and uniquifying the output.
6329      if sort "$nlist" | uniq > "$nlist"T; then
6330	mv -f "$nlist"T "$nlist"
6331      else
6332	rm -f "$nlist"T
6333      fi
6334
6335      # Make sure that we snagged all the symbols we need.
6336      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6337	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6338	  cat <<EOF > conftest.$ac_ext
6339#ifdef __cplusplus
6340extern "C" {
6341#endif
6342
6343EOF
6344	  # Now generate the symbol file.
6345	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6346
6347	  cat <<EOF >> conftest.$ac_ext
6348#if defined (__STDC__) && __STDC__
6349# define lt_ptr_t void *
6350#else
6351# define lt_ptr_t char *
6352# define const
6353#endif
6354
6355/* The mapping between symbol names and symbols. */
6356const struct {
6357  const char *name;
6358  lt_ptr_t address;
6359}
6360lt_preloaded_symbols[] =
6361{
6362EOF
6363	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6364	  cat <<\EOF >> conftest.$ac_ext
6365  {0, (lt_ptr_t) 0}
6366};
6367
6368#ifdef __cplusplus
6369}
6370#endif
6371EOF
6372	  # Now try linking the two files.
6373	  mv conftest.$ac_objext conftstm.$ac_objext
6374	  lt_save_LIBS="$LIBS"
6375	  lt_save_CFLAGS="$CFLAGS"
6376	  LIBS="conftstm.$ac_objext"
6377	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6378	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6379  (eval $ac_link) 2>&5
6380  ac_status=$?
6381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6383	    pipe_works=yes
6384	  fi
6385	  LIBS="$lt_save_LIBS"
6386	  CFLAGS="$lt_save_CFLAGS"
6387	else
6388	  echo "cannot find nm_test_func in $nlist" >&5
6389	fi
6390      else
6391	echo "cannot find nm_test_var in $nlist" >&5
6392      fi
6393    else
6394      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6395    fi
6396  else
6397    echo "$progname: failed program was:" >&5
6398    cat conftest.$ac_ext >&5
6399  fi
6400  rm -rf conftest* conftst*
6401
6402  # Do not use the global_symbol_pipe unless it works.
6403  if test "$pipe_works" = yes; then
6404    break
6405  else
6406    lt_cv_sys_global_symbol_pipe=
6407  fi
6408done
6409
6410fi
6411
6412if test -z "$lt_cv_sys_global_symbol_pipe"; then
6413  lt_cv_sys_global_symbol_to_cdecl=
6414fi
6415if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6416  { echo "$as_me:$LINENO: result: failed" >&5
6417echo "${ECHO_T}failed" >&6; }
6418else
6419  { echo "$as_me:$LINENO: result: ok" >&5
6420echo "${ECHO_T}ok" >&6; }
6421fi
6422
6423{ echo "$as_me:$LINENO: checking for objdir" >&5
6424echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6425if test "${lt_cv_objdir+set}" = set; then
6426  echo $ECHO_N "(cached) $ECHO_C" >&6
6427else
6428  rm -f .libs 2>/dev/null
6429mkdir .libs 2>/dev/null
6430if test -d .libs; then
6431  lt_cv_objdir=.libs
6432else
6433  # MS-DOS does not allow filenames that begin with a dot.
6434  lt_cv_objdir=_libs
6435fi
6436rmdir .libs 2>/dev/null
6437fi
6438{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6439echo "${ECHO_T}$lt_cv_objdir" >&6; }
6440objdir=$lt_cv_objdir
6441
6442
6443
6444
6445
6446case $host_os in
6447aix3*)
6448  # AIX sometimes has problems with the GCC collect2 program.  For some
6449  # reason, if we set the COLLECT_NAMES environment variable, the problems
6450  # vanish in a puff of smoke.
6451  if test "X${COLLECT_NAMES+set}" != Xset; then
6452    COLLECT_NAMES=
6453    export COLLECT_NAMES
6454  fi
6455  ;;
6456esac
6457
6458# Sed substitution that helps us do robust quoting.  It backslashifies
6459# metacharacters that are still active within double-quoted strings.
6460Xsed='sed -e 1s/^X//'
6461sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6462
6463# Same as above, but do not quote variable references.
6464double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6465
6466# Sed substitution to delay expansion of an escaped shell variable in a
6467# double_quote_subst'ed string.
6468delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6469
6470# Sed substitution to avoid accidental globbing in evaled expressions
6471no_glob_subst='s/\*/\\\*/g'
6472
6473# Constants:
6474rm="rm -f"
6475
6476# Global variables:
6477default_ofile=libtool
6478can_build_shared=yes
6479
6480# All known linkers require a `.a' archive for static linking (except MSVC,
6481# which needs '.lib').
6482libext=a
6483ltmain="$ac_aux_dir/ltmain.sh"
6484ofile="$default_ofile"
6485with_gnu_ld="$lt_cv_prog_gnu_ld"
6486
6487if test -n "$ac_tool_prefix"; then
6488  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6489set dummy ${ac_tool_prefix}ar; ac_word=$2
6490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6492if test "${ac_cv_prog_AR+set}" = set; then
6493  echo $ECHO_N "(cached) $ECHO_C" >&6
6494else
6495  if test -n "$AR"; then
6496  ac_cv_prog_AR="$AR" # Let the user override the test.
6497else
6498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499for as_dir in $PATH
6500do
6501  IFS=$as_save_IFS
6502  test -z "$as_dir" && as_dir=.
6503  for ac_exec_ext in '' $ac_executable_extensions; do
6504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6505    ac_cv_prog_AR="${ac_tool_prefix}ar"
6506    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507    break 2
6508  fi
6509done
6510done
6511IFS=$as_save_IFS
6512
6513fi
6514fi
6515AR=$ac_cv_prog_AR
6516if test -n "$AR"; then
6517  { echo "$as_me:$LINENO: result: $AR" >&5
6518echo "${ECHO_T}$AR" >&6; }
6519else
6520  { echo "$as_me:$LINENO: result: no" >&5
6521echo "${ECHO_T}no" >&6; }
6522fi
6523
6524
6525fi
6526if test -z "$ac_cv_prog_AR"; then
6527  ac_ct_AR=$AR
6528  # Extract the first word of "ar", so it can be a program name with args.
6529set dummy ar; ac_word=$2
6530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6532if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6533  echo $ECHO_N "(cached) $ECHO_C" >&6
6534else
6535  if test -n "$ac_ct_AR"; then
6536  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541  IFS=$as_save_IFS
6542  test -z "$as_dir" && as_dir=.
6543  for ac_exec_ext in '' $ac_executable_extensions; do
6544  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6545    ac_cv_prog_ac_ct_AR="ar"
6546    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6547    break 2
6548  fi
6549done
6550done
6551IFS=$as_save_IFS
6552
6553fi
6554fi
6555ac_ct_AR=$ac_cv_prog_ac_ct_AR
6556if test -n "$ac_ct_AR"; then
6557  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6558echo "${ECHO_T}$ac_ct_AR" >&6; }
6559else
6560  { echo "$as_me:$LINENO: result: no" >&5
6561echo "${ECHO_T}no" >&6; }
6562fi
6563
6564  if test "x$ac_ct_AR" = x; then
6565    AR="false"
6566  else
6567    case $cross_compiling:$ac_tool_warned in
6568yes:)
6569{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6570whose name does not start with the host triplet.  If you think this
6571configuration is useful to you, please write to autoconf@gnu.org." >&5
6572echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6573whose name does not start with the host triplet.  If you think this
6574configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6575ac_tool_warned=yes ;;
6576esac
6577    AR=$ac_ct_AR
6578  fi
6579else
6580  AR="$ac_cv_prog_AR"
6581fi
6582
6583if test -n "$ac_tool_prefix"; then
6584  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6585set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6586{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6588if test "${ac_cv_prog_RANLIB+set}" = set; then
6589  echo $ECHO_N "(cached) $ECHO_C" >&6
6590else
6591  if test -n "$RANLIB"; then
6592  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6593else
6594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595for as_dir in $PATH
6596do
6597  IFS=$as_save_IFS
6598  test -z "$as_dir" && as_dir=.
6599  for ac_exec_ext in '' $ac_executable_extensions; do
6600  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6602    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6603    break 2
6604  fi
6605done
6606done
6607IFS=$as_save_IFS
6608
6609fi
6610fi
6611RANLIB=$ac_cv_prog_RANLIB
6612if test -n "$RANLIB"; then
6613  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6614echo "${ECHO_T}$RANLIB" >&6; }
6615else
6616  { echo "$as_me:$LINENO: result: no" >&5
6617echo "${ECHO_T}no" >&6; }
6618fi
6619
6620
6621fi
6622if test -z "$ac_cv_prog_RANLIB"; then
6623  ac_ct_RANLIB=$RANLIB
6624  # Extract the first word of "ranlib", so it can be a program name with args.
6625set dummy ranlib; ac_word=$2
6626{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6629  echo $ECHO_N "(cached) $ECHO_C" >&6
6630else
6631  if test -n "$ac_ct_RANLIB"; then
6632  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6633else
6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637  IFS=$as_save_IFS
6638  test -z "$as_dir" && as_dir=.
6639  for ac_exec_ext in '' $ac_executable_extensions; do
6640  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641    ac_cv_prog_ac_ct_RANLIB="ranlib"
6642    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643    break 2
6644  fi
6645done
6646done
6647IFS=$as_save_IFS
6648
6649fi
6650fi
6651ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6652if test -n "$ac_ct_RANLIB"; then
6653  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6654echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6655else
6656  { echo "$as_me:$LINENO: result: no" >&5
6657echo "${ECHO_T}no" >&6; }
6658fi
6659
6660  if test "x$ac_ct_RANLIB" = x; then
6661    RANLIB=":"
6662  else
6663    case $cross_compiling:$ac_tool_warned in
6664yes:)
6665{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6666whose name does not start with the host triplet.  If you think this
6667configuration is useful to you, please write to autoconf@gnu.org." >&5
6668echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6669whose name does not start with the host triplet.  If you think this
6670configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6671ac_tool_warned=yes ;;
6672esac
6673    RANLIB=$ac_ct_RANLIB
6674  fi
6675else
6676  RANLIB="$ac_cv_prog_RANLIB"
6677fi
6678
6679if test -n "$ac_tool_prefix"; then
6680  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6681set dummy ${ac_tool_prefix}strip; ac_word=$2
6682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6684if test "${ac_cv_prog_STRIP+set}" = set; then
6685  echo $ECHO_N "(cached) $ECHO_C" >&6
6686else
6687  if test -n "$STRIP"; then
6688  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6689else
6690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691for as_dir in $PATH
6692do
6693  IFS=$as_save_IFS
6694  test -z "$as_dir" && as_dir=.
6695  for ac_exec_ext in '' $ac_executable_extensions; do
6696  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6698    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699    break 2
6700  fi
6701done
6702done
6703IFS=$as_save_IFS
6704
6705fi
6706fi
6707STRIP=$ac_cv_prog_STRIP
6708if test -n "$STRIP"; then
6709  { echo "$as_me:$LINENO: result: $STRIP" >&5
6710echo "${ECHO_T}$STRIP" >&6; }
6711else
6712  { echo "$as_me:$LINENO: result: no" >&5
6713echo "${ECHO_T}no" >&6; }
6714fi
6715
6716
6717fi
6718if test -z "$ac_cv_prog_STRIP"; then
6719  ac_ct_STRIP=$STRIP
6720  # Extract the first word of "strip", so it can be a program name with args.
6721set dummy strip; ac_word=$2
6722{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6724if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6725  echo $ECHO_N "(cached) $ECHO_C" >&6
6726else
6727  if test -n "$ac_ct_STRIP"; then
6728  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6729else
6730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731for as_dir in $PATH
6732do
6733  IFS=$as_save_IFS
6734  test -z "$as_dir" && as_dir=.
6735  for ac_exec_ext in '' $ac_executable_extensions; do
6736  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737    ac_cv_prog_ac_ct_STRIP="strip"
6738    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739    break 2
6740  fi
6741done
6742done
6743IFS=$as_save_IFS
6744
6745fi
6746fi
6747ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6748if test -n "$ac_ct_STRIP"; then
6749  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6750echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6751else
6752  { echo "$as_me:$LINENO: result: no" >&5
6753echo "${ECHO_T}no" >&6; }
6754fi
6755
6756  if test "x$ac_ct_STRIP" = x; then
6757    STRIP=":"
6758  else
6759    case $cross_compiling:$ac_tool_warned in
6760yes:)
6761{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6762whose name does not start with the host triplet.  If you think this
6763configuration is useful to you, please write to autoconf@gnu.org." >&5
6764echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6765whose name does not start with the host triplet.  If you think this
6766configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6767ac_tool_warned=yes ;;
6768esac
6769    STRIP=$ac_ct_STRIP
6770  fi
6771else
6772  STRIP="$ac_cv_prog_STRIP"
6773fi
6774
6775
6776old_CC="$CC"
6777old_CFLAGS="$CFLAGS"
6778
6779# Set sane defaults for various variables
6780test -z "$AR" && AR=ar
6781test -z "$AR_FLAGS" && AR_FLAGS=cru
6782test -z "$AS" && AS=as
6783test -z "$CC" && CC=cc
6784test -z "$LTCC" && LTCC=$CC
6785test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6786test -z "$DLLTOOL" && DLLTOOL=dlltool
6787test -z "$LD" && LD=ld
6788test -z "$LN_S" && LN_S="ln -s"
6789test -z "$MAGIC_CMD" && MAGIC_CMD=file
6790test -z "$NM" && NM=nm
6791test -z "$SED" && SED=sed
6792test -z "$OBJDUMP" && OBJDUMP=objdump
6793test -z "$RANLIB" && RANLIB=:
6794test -z "$STRIP" && STRIP=:
6795test -z "$ac_objext" && ac_objext=o
6796
6797# Determine commands to create old-style static archives.
6798old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6799old_postinstall_cmds='chmod 644 $oldlib'
6800old_postuninstall_cmds=
6801
6802if test -n "$RANLIB"; then
6803  case $host_os in
6804  openbsd*)
6805    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6806    ;;
6807  *)
6808    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6809    ;;
6810  esac
6811  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6812fi
6813
6814for cc_temp in $compiler""; do
6815  case $cc_temp in
6816    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6817    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6818    \-*) ;;
6819    *) break;;
6820  esac
6821done
6822cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6823
6824
6825# Only perform the check for file, if the check method requires it
6826case $deplibs_check_method in
6827file_magic*)
6828  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6829    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6830echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6831if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6832  echo $ECHO_N "(cached) $ECHO_C" >&6
6833else
6834  case $MAGIC_CMD in
6835[\\/*] |  ?:[\\/]*)
6836  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6837  ;;
6838*)
6839  lt_save_MAGIC_CMD="$MAGIC_CMD"
6840  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6841  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6842  for ac_dir in $ac_dummy; do
6843    IFS="$lt_save_ifs"
6844    test -z "$ac_dir" && ac_dir=.
6845    if test -f $ac_dir/${ac_tool_prefix}file; then
6846      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6847      if test -n "$file_magic_test_file"; then
6848	case $deplibs_check_method in
6849	"file_magic "*)
6850	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6851	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6852	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6853	    $EGREP "$file_magic_regex" > /dev/null; then
6854	    :
6855	  else
6856	    cat <<EOF 1>&2
6857
6858*** Warning: the command libtool uses to detect shared libraries,
6859*** $file_magic_cmd, produces output that libtool cannot recognize.
6860*** The result is that libtool may fail to recognize shared libraries
6861*** as such.  This will affect the creation of libtool libraries that
6862*** depend on shared libraries, but programs linked with such libtool
6863*** libraries will work regardless of this problem.  Nevertheless, you
6864*** may want to report the problem to your system manager and/or to
6865*** bug-libtool@gnu.org
6866
6867EOF
6868	  fi ;;
6869	esac
6870      fi
6871      break
6872    fi
6873  done
6874  IFS="$lt_save_ifs"
6875  MAGIC_CMD="$lt_save_MAGIC_CMD"
6876  ;;
6877esac
6878fi
6879
6880MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6881if test -n "$MAGIC_CMD"; then
6882  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6883echo "${ECHO_T}$MAGIC_CMD" >&6; }
6884else
6885  { echo "$as_me:$LINENO: result: no" >&5
6886echo "${ECHO_T}no" >&6; }
6887fi
6888
6889if test -z "$lt_cv_path_MAGIC_CMD"; then
6890  if test -n "$ac_tool_prefix"; then
6891    { echo "$as_me:$LINENO: checking for file" >&5
6892echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6893if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6894  echo $ECHO_N "(cached) $ECHO_C" >&6
6895else
6896  case $MAGIC_CMD in
6897[\\/*] |  ?:[\\/]*)
6898  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6899  ;;
6900*)
6901  lt_save_MAGIC_CMD="$MAGIC_CMD"
6902  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6903  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6904  for ac_dir in $ac_dummy; do
6905    IFS="$lt_save_ifs"
6906    test -z "$ac_dir" && ac_dir=.
6907    if test -f $ac_dir/file; then
6908      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6909      if test -n "$file_magic_test_file"; then
6910	case $deplibs_check_method in
6911	"file_magic "*)
6912	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6913	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6914	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6915	    $EGREP "$file_magic_regex" > /dev/null; then
6916	    :
6917	  else
6918	    cat <<EOF 1>&2
6919
6920*** Warning: the command libtool uses to detect shared libraries,
6921*** $file_magic_cmd, produces output that libtool cannot recognize.
6922*** The result is that libtool may fail to recognize shared libraries
6923*** as such.  This will affect the creation of libtool libraries that
6924*** depend on shared libraries, but programs linked with such libtool
6925*** libraries will work regardless of this problem.  Nevertheless, you
6926*** may want to report the problem to your system manager and/or to
6927*** bug-libtool@gnu.org
6928
6929EOF
6930	  fi ;;
6931	esac
6932      fi
6933      break
6934    fi
6935  done
6936  IFS="$lt_save_ifs"
6937  MAGIC_CMD="$lt_save_MAGIC_CMD"
6938  ;;
6939esac
6940fi
6941
6942MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6943if test -n "$MAGIC_CMD"; then
6944  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6945echo "${ECHO_T}$MAGIC_CMD" >&6; }
6946else
6947  { echo "$as_me:$LINENO: result: no" >&5
6948echo "${ECHO_T}no" >&6; }
6949fi
6950
6951  else
6952    MAGIC_CMD=:
6953  fi
6954fi
6955
6956  fi
6957  ;;
6958esac
6959
6960
6961  case $host_os in
6962    rhapsody* | darwin*)
6963    if test -n "$ac_tool_prefix"; then
6964  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6965set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6969  echo $ECHO_N "(cached) $ECHO_C" >&6
6970else
6971  if test -n "$DSYMUTIL"; then
6972  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6973else
6974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977  IFS=$as_save_IFS
6978  test -z "$as_dir" && as_dir=.
6979  for ac_exec_ext in '' $ac_executable_extensions; do
6980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6981    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6982    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983    break 2
6984  fi
6985done
6986done
6987IFS=$as_save_IFS
6988
6989fi
6990fi
6991DSYMUTIL=$ac_cv_prog_DSYMUTIL
6992if test -n "$DSYMUTIL"; then
6993  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6994echo "${ECHO_T}$DSYMUTIL" >&6; }
6995else
6996  { echo "$as_me:$LINENO: result: no" >&5
6997echo "${ECHO_T}no" >&6; }
6998fi
6999
7000
7001fi
7002if test -z "$ac_cv_prog_DSYMUTIL"; then
7003  ac_ct_DSYMUTIL=$DSYMUTIL
7004  # Extract the first word of "dsymutil", so it can be a program name with args.
7005set dummy dsymutil; ac_word=$2
7006{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7008if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7009  echo $ECHO_N "(cached) $ECHO_C" >&6
7010else
7011  if test -n "$ac_ct_DSYMUTIL"; then
7012  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7013else
7014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in $PATH
7016do
7017  IFS=$as_save_IFS
7018  test -z "$as_dir" && as_dir=.
7019  for ac_exec_ext in '' $ac_executable_extensions; do
7020  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7022    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023    break 2
7024  fi
7025done
7026done
7027IFS=$as_save_IFS
7028
7029fi
7030fi
7031ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7032if test -n "$ac_ct_DSYMUTIL"; then
7033  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7034echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7035else
7036  { echo "$as_me:$LINENO: result: no" >&5
7037echo "${ECHO_T}no" >&6; }
7038fi
7039
7040  if test "x$ac_ct_DSYMUTIL" = x; then
7041    DSYMUTIL=":"
7042  else
7043    case $cross_compiling:$ac_tool_warned in
7044yes:)
7045{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7046whose name does not start with the host triplet.  If you think this
7047configuration is useful to you, please write to autoconf@gnu.org." >&5
7048echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7049whose name does not start with the host triplet.  If you think this
7050configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7051ac_tool_warned=yes ;;
7052esac
7053    DSYMUTIL=$ac_ct_DSYMUTIL
7054  fi
7055else
7056  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7057fi
7058
7059    if test -n "$ac_tool_prefix"; then
7060  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7061set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7064if test "${ac_cv_prog_NMEDIT+set}" = set; then
7065  echo $ECHO_N "(cached) $ECHO_C" >&6
7066else
7067  if test -n "$NMEDIT"; then
7068  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7069else
7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH
7072do
7073  IFS=$as_save_IFS
7074  test -z "$as_dir" && as_dir=.
7075  for ac_exec_ext in '' $ac_executable_extensions; do
7076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7078    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079    break 2
7080  fi
7081done
7082done
7083IFS=$as_save_IFS
7084
7085fi
7086fi
7087NMEDIT=$ac_cv_prog_NMEDIT
7088if test -n "$NMEDIT"; then
7089  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7090echo "${ECHO_T}$NMEDIT" >&6; }
7091else
7092  { echo "$as_me:$LINENO: result: no" >&5
7093echo "${ECHO_T}no" >&6; }
7094fi
7095
7096
7097fi
7098if test -z "$ac_cv_prog_NMEDIT"; then
7099  ac_ct_NMEDIT=$NMEDIT
7100  # Extract the first word of "nmedit", so it can be a program name with args.
7101set dummy nmedit; ac_word=$2
7102{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7104if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7105  echo $ECHO_N "(cached) $ECHO_C" >&6
7106else
7107  if test -n "$ac_ct_NMEDIT"; then
7108  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7109else
7110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113  IFS=$as_save_IFS
7114  test -z "$as_dir" && as_dir=.
7115  for ac_exec_ext in '' $ac_executable_extensions; do
7116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7117    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7118    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119    break 2
7120  fi
7121done
7122done
7123IFS=$as_save_IFS
7124
7125fi
7126fi
7127ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7128if test -n "$ac_ct_NMEDIT"; then
7129  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7130echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7131else
7132  { echo "$as_me:$LINENO: result: no" >&5
7133echo "${ECHO_T}no" >&6; }
7134fi
7135
7136  if test "x$ac_ct_NMEDIT" = x; then
7137    NMEDIT=":"
7138  else
7139    case $cross_compiling:$ac_tool_warned in
7140yes:)
7141{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7142whose name does not start with the host triplet.  If you think this
7143configuration is useful to you, please write to autoconf@gnu.org." >&5
7144echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7145whose name does not start with the host triplet.  If you think this
7146configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7147ac_tool_warned=yes ;;
7148esac
7149    NMEDIT=$ac_ct_NMEDIT
7150  fi
7151else
7152  NMEDIT="$ac_cv_prog_NMEDIT"
7153fi
7154
7155
7156    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7157echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7158if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7159  echo $ECHO_N "(cached) $ECHO_C" >&6
7160else
7161  lt_cv_apple_cc_single_mod=no
7162      if test -z "${LT_MULTI_MODULE}"; then
7163   # By default we will add the -single_module flag. You can override
7164   # by either setting the environment variable LT_MULTI_MODULE
7165   # non-empty at configure time, or by adding -multi_module to the
7166   # link flags.
7167   echo "int foo(void){return 1;}" > conftest.c
7168   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7169     -dynamiclib ${wl}-single_module conftest.c
7170   if test -f libconftest.dylib; then
7171     lt_cv_apple_cc_single_mod=yes
7172     rm -rf libconftest.dylib*
7173   fi
7174   rm conftest.c
7175      fi
7176fi
7177{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7178echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7179    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7180echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7181if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7182  echo $ECHO_N "(cached) $ECHO_C" >&6
7183else
7184  lt_cv_ld_exported_symbols_list=no
7185      save_LDFLAGS=$LDFLAGS
7186      echo "_main" > conftest.sym
7187      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7188      cat >conftest.$ac_ext <<_ACEOF
7189/* confdefs.h.  */
7190_ACEOF
7191cat confdefs.h >>conftest.$ac_ext
7192cat >>conftest.$ac_ext <<_ACEOF
7193/* end confdefs.h.  */
7194
7195int
7196main ()
7197{
7198
7199  ;
7200  return 0;
7201}
7202_ACEOF
7203rm -f conftest.$ac_objext conftest$ac_exeext
7204if { (ac_try="$ac_link"
7205case "(($ac_try" in
7206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207  *) ac_try_echo=$ac_try;;
7208esac
7209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210  (eval "$ac_link") 2>conftest.er1
7211  ac_status=$?
7212  grep -v '^ *+' conftest.er1 >conftest.err
7213  rm -f conftest.er1
7214  cat conftest.err >&5
7215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216  (exit $ac_status); } && {
7217	 test -z "$ac_cxx_werror_flag" ||
7218	 test ! -s conftest.err
7219       } && test -s conftest$ac_exeext &&
7220       $as_test_x conftest$ac_exeext; then
7221  lt_cv_ld_exported_symbols_list=yes
7222else
7223  echo "$as_me: failed program was:" >&5
7224sed 's/^/| /' conftest.$ac_ext >&5
7225
7226	lt_cv_ld_exported_symbols_list=no
7227fi
7228
7229rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7230      conftest$ac_exeext conftest.$ac_ext
7231   LDFLAGS="$save_LDFLAGS"
7232
7233fi
7234{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7235echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7236    case $host_os in
7237    rhapsody* | darwin1.[0123])
7238      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7239    darwin1.*)
7240     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7241    darwin*)
7242      # if running on 10.5 or later, the deployment target defaults
7243      # to the OS version, if on x86, and 10.4, the deployment
7244      # target defaults to 10.4. Don't you love it?
7245      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7246   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7247     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7248   10.[012]*)
7249     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7250   10.*)
7251     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7252      esac
7253    ;;
7254  esac
7255    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7256      _lt_dar_single_mod='$single_module'
7257    fi
7258    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7259      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7260    else
7261      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7262    fi
7263    if test "$DSYMUTIL" != ":"; then
7264      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7265    else
7266      _lt_dsymutil=
7267    fi
7268    ;;
7269  esac
7270
7271
7272enable_dlopen=no
7273enable_win32_dll=no
7274
7275# Check whether --enable-libtool-lock was given.
7276if test "${enable_libtool_lock+set}" = set; then
7277  enableval=$enable_libtool_lock;
7278fi
7279
7280test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7281
7282
7283# Check whether --with-pic was given.
7284if test "${with_pic+set}" = set; then
7285  withval=$with_pic; pic_mode="$withval"
7286else
7287  pic_mode=default
7288fi
7289
7290test -z "$pic_mode" && pic_mode=default
7291
7292# Use C for the default configuration in the libtool script
7293tagname=
7294lt_save_CC="$CC"
7295ac_ext=c
7296ac_cpp='$CPP $CPPFLAGS'
7297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299ac_compiler_gnu=$ac_cv_c_compiler_gnu
7300
7301
7302# Source file extension for C test sources.
7303ac_ext=c
7304
7305# Object file extension for compiled C test sources.
7306objext=o
7307objext=$objext
7308
7309# Code to be used in simple compile tests
7310lt_simple_compile_test_code="int some_variable = 0;"
7311
7312# Code to be used in simple link tests
7313lt_simple_link_test_code='int main(){return(0);}'
7314
7315
7316# If no C compiler was specified, use CC.
7317LTCC=${LTCC-"$CC"}
7318
7319# If no C compiler flags were specified, use CFLAGS.
7320LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7321
7322# Allow CC to be a program name with arguments.
7323compiler=$CC
7324
7325
7326# save warnings/boilerplate of simple test code
7327ac_outfile=conftest.$ac_objext
7328echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7329eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7330_lt_compiler_boilerplate=`cat conftest.err`
7331$rm conftest*
7332
7333ac_outfile=conftest.$ac_objext
7334echo "$lt_simple_link_test_code" >conftest.$ac_ext
7335eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7336_lt_linker_boilerplate=`cat conftest.err`
7337$rm -r conftest*
7338
7339
7340
7341lt_prog_compiler_no_builtin_flag=
7342
7343if test "$GCC" = yes; then
7344  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7345
7346
7347{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7348echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7349if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7350  echo $ECHO_N "(cached) $ECHO_C" >&6
7351else
7352  lt_cv_prog_compiler_rtti_exceptions=no
7353  ac_outfile=conftest.$ac_objext
7354   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7355   lt_compiler_flag="-fno-rtti -fno-exceptions"
7356   # Insert the option either (1) after the last *FLAGS variable, or
7357   # (2) before a word containing "conftest.", or (3) at the end.
7358   # Note that $ac_compile itself does not contain backslashes and begins
7359   # with a dollar sign (not a hyphen), so the echo should work correctly.
7360   # The option is referenced via a variable to avoid confusing sed.
7361   lt_compile=`echo "$ac_compile" | $SED \
7362   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7363   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7364   -e 's:$: $lt_compiler_flag:'`
7365   (eval echo "\"\$as_me:7365: $lt_compile\"" >&5)
7366   (eval "$lt_compile" 2>conftest.err)
7367   ac_status=$?
7368   cat conftest.err >&5
7369   echo "$as_me:7369: \$? = $ac_status" >&5
7370   if (exit $ac_status) && test -s "$ac_outfile"; then
7371     # The compiler can only warn and ignore the option if not recognized
7372     # So say no if there are warnings other than the usual output.
7373     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7374     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7375     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7376       lt_cv_prog_compiler_rtti_exceptions=yes
7377     fi
7378   fi
7379   $rm conftest*
7380
7381fi
7382{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7383echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7384
7385if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7386    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7387else
7388    :
7389fi
7390
7391fi
7392
7393lt_prog_compiler_wl=
7394lt_prog_compiler_pic=
7395lt_prog_compiler_static=
7396
7397{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7398echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7399
7400  if test "$GCC" = yes; then
7401    lt_prog_compiler_wl='-Wl,'
7402    lt_prog_compiler_static='-static'
7403
7404    case $host_os in
7405      aix*)
7406      # All AIX code is PIC.
7407      if test "$host_cpu" = ia64; then
7408	# AIX 5 now supports IA64 processor
7409	lt_prog_compiler_static='-Bstatic'
7410      fi
7411      ;;
7412
7413    amigaos*)
7414      # FIXME: we need at least 68020 code to build shared libraries, but
7415      # adding the `-m68020' flag to GCC prevents building anything better,
7416      # like `-m68040'.
7417      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7418      ;;
7419
7420    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7421      # PIC is the default for these OSes.
7422      ;;
7423
7424    mingw* | cygwin* | pw32* | os2*)
7425      # This hack is so that the source file can tell whether it is being
7426      # built for inclusion in a dll (and should export symbols for example).
7427      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7428      # (--disable-auto-import) libraries
7429      lt_prog_compiler_pic='-DDLL_EXPORT'
7430      ;;
7431
7432    darwin* | rhapsody*)
7433      # PIC is the default on this platform
7434      # Common symbols not allowed in MH_DYLIB files
7435      lt_prog_compiler_pic='-fno-common'
7436      ;;
7437
7438    interix[3-9]*)
7439      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7440      # Instead, we relocate shared libraries at runtime.
7441      ;;
7442
7443    msdosdjgpp*)
7444      # Just because we use GCC doesn't mean we suddenly get shared libraries
7445      # on systems that don't support them.
7446      lt_prog_compiler_can_build_shared=no
7447      enable_shared=no
7448      ;;
7449
7450    sysv4*MP*)
7451      if test -d /usr/nec; then
7452	lt_prog_compiler_pic=-Kconform_pic
7453      fi
7454      ;;
7455
7456    hpux*)
7457      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7458      # not for PA HP-UX.
7459      case $host_cpu in
7460      hppa*64*|ia64*)
7461	# +Z the default
7462	;;
7463      *)
7464	lt_prog_compiler_pic='-fPIC'
7465	;;
7466      esac
7467      ;;
7468
7469    *)
7470      lt_prog_compiler_pic='-fPIC'
7471      ;;
7472    esac
7473  else
7474    # PORTME Check for flag to pass linker flags through the system compiler.
7475    case $host_os in
7476    aix*)
7477      lt_prog_compiler_wl='-Wl,'
7478      if test "$host_cpu" = ia64; then
7479	# AIX 5 now supports IA64 processor
7480	lt_prog_compiler_static='-Bstatic'
7481      else
7482	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7483      fi
7484      ;;
7485      darwin*)
7486        # PIC is the default on this platform
7487        # Common symbols not allowed in MH_DYLIB files
7488       case $cc_basename in
7489         xlc*)
7490         lt_prog_compiler_pic='-qnocommon'
7491         lt_prog_compiler_wl='-Wl,'
7492         ;;
7493       esac
7494       ;;
7495
7496    mingw* | cygwin* | pw32* | os2*)
7497      # This hack is so that the source file can tell whether it is being
7498      # built for inclusion in a dll (and should export symbols for example).
7499      lt_prog_compiler_pic='-DDLL_EXPORT'
7500      ;;
7501
7502    hpux9* | hpux10* | hpux11*)
7503      lt_prog_compiler_wl='-Wl,'
7504      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7505      # not for PA HP-UX.
7506      case $host_cpu in
7507      hppa*64*|ia64*)
7508	# +Z the default
7509	;;
7510      *)
7511	lt_prog_compiler_pic='+Z'
7512	;;
7513      esac
7514      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7515      lt_prog_compiler_static='${wl}-a ${wl}archive'
7516      ;;
7517
7518    irix5* | irix6* | nonstopux*)
7519      lt_prog_compiler_wl='-Wl,'
7520      # PIC (with -KPIC) is the default.
7521      lt_prog_compiler_static='-non_shared'
7522      ;;
7523
7524    newsos6)
7525      lt_prog_compiler_pic='-KPIC'
7526      lt_prog_compiler_static='-Bstatic'
7527      ;;
7528
7529    linux* | k*bsd*-gnu)
7530      case $cc_basename in
7531      icc* | ecc*)
7532	lt_prog_compiler_wl='-Wl,'
7533	lt_prog_compiler_pic='-KPIC'
7534	lt_prog_compiler_static='-static'
7535        ;;
7536      pgcc* | pgf77* | pgf90* | pgf95*)
7537        # Portland Group compilers (*not* the Pentium gcc compiler,
7538	# which looks to be a dead project)
7539	lt_prog_compiler_wl='-Wl,'
7540	lt_prog_compiler_pic='-fpic'
7541	lt_prog_compiler_static='-Bstatic'
7542        ;;
7543      ccc*)
7544        lt_prog_compiler_wl='-Wl,'
7545        # All Alpha code is PIC.
7546        lt_prog_compiler_static='-non_shared'
7547        ;;
7548      *)
7549        case `$CC -V 2>&1 | sed 5q` in
7550	*Sun\ C*)
7551	  # Sun C 5.9
7552	  lt_prog_compiler_pic='-KPIC'
7553	  lt_prog_compiler_static='-Bstatic'
7554	  lt_prog_compiler_wl='-Wl,'
7555	  ;;
7556	*Sun\ F*)
7557	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7558	  lt_prog_compiler_pic='-KPIC'
7559	  lt_prog_compiler_static='-Bstatic'
7560	  lt_prog_compiler_wl=''
7561	  ;;
7562	esac
7563	;;
7564      esac
7565      ;;
7566
7567    osf3* | osf4* | osf5*)
7568      lt_prog_compiler_wl='-Wl,'
7569      # All OSF/1 code is PIC.
7570      lt_prog_compiler_static='-non_shared'
7571      ;;
7572
7573    rdos*)
7574      lt_prog_compiler_static='-non_shared'
7575      ;;
7576
7577    solaris*)
7578      lt_prog_compiler_pic='-KPIC'
7579      lt_prog_compiler_static='-Bstatic'
7580      case $cc_basename in
7581      f77* | f90* | f95*)
7582	lt_prog_compiler_wl='-Qoption ld ';;
7583      *)
7584	lt_prog_compiler_wl='-Wl,';;
7585      esac
7586      ;;
7587
7588    sunos4*)
7589      lt_prog_compiler_wl='-Qoption ld '
7590      lt_prog_compiler_pic='-PIC'
7591      lt_prog_compiler_static='-Bstatic'
7592      ;;
7593
7594    sysv4 | sysv4.2uw2* | sysv4.3*)
7595      lt_prog_compiler_wl='-Wl,'
7596      lt_prog_compiler_pic='-KPIC'
7597      lt_prog_compiler_static='-Bstatic'
7598      ;;
7599
7600    sysv4*MP*)
7601      if test -d /usr/nec ;then
7602	lt_prog_compiler_pic='-Kconform_pic'
7603	lt_prog_compiler_static='-Bstatic'
7604      fi
7605      ;;
7606
7607    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7608      lt_prog_compiler_wl='-Wl,'
7609      lt_prog_compiler_pic='-KPIC'
7610      lt_prog_compiler_static='-Bstatic'
7611      ;;
7612
7613    unicos*)
7614      lt_prog_compiler_wl='-Wl,'
7615      lt_prog_compiler_can_build_shared=no
7616      ;;
7617
7618    uts4*)
7619      lt_prog_compiler_pic='-pic'
7620      lt_prog_compiler_static='-Bstatic'
7621      ;;
7622
7623    *)
7624      lt_prog_compiler_can_build_shared=no
7625      ;;
7626    esac
7627  fi
7628
7629{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7630echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7631
7632#
7633# Check to make sure the PIC flag actually works.
7634#
7635if test -n "$lt_prog_compiler_pic"; then
7636
7637{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7638echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7639if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7640  echo $ECHO_N "(cached) $ECHO_C" >&6
7641else
7642  lt_cv_prog_compiler_pic_works=no
7643  ac_outfile=conftest.$ac_objext
7644   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7645   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7646   # Insert the option either (1) after the last *FLAGS variable, or
7647   # (2) before a word containing "conftest.", or (3) at the end.
7648   # Note that $ac_compile itself does not contain backslashes and begins
7649   # with a dollar sign (not a hyphen), so the echo should work correctly.
7650   # The option is referenced via a variable to avoid confusing sed.
7651   lt_compile=`echo "$ac_compile" | $SED \
7652   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7653   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7654   -e 's:$: $lt_compiler_flag:'`
7655   (eval echo "\"\$as_me:7655: $lt_compile\"" >&5)
7656   (eval "$lt_compile" 2>conftest.err)
7657   ac_status=$?
7658   cat conftest.err >&5
7659   echo "$as_me:7659: \$? = $ac_status" >&5
7660   if (exit $ac_status) && test -s "$ac_outfile"; then
7661     # The compiler can only warn and ignore the option if not recognized
7662     # So say no if there are warnings other than the usual output.
7663     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7664     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7665     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7666       lt_cv_prog_compiler_pic_works=yes
7667     fi
7668   fi
7669   $rm conftest*
7670
7671fi
7672{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7673echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7674
7675if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7676    case $lt_prog_compiler_pic in
7677     "" | " "*) ;;
7678     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7679     esac
7680else
7681    lt_prog_compiler_pic=
7682     lt_prog_compiler_can_build_shared=no
7683fi
7684
7685fi
7686case $host_os in
7687  # For platforms which do not support PIC, -DPIC is meaningless:
7688  *djgpp*)
7689    lt_prog_compiler_pic=
7690    ;;
7691  *)
7692    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7693    ;;
7694esac
7695
7696#
7697# Check to make sure the static flag actually works.
7698#
7699wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7700{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7701echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7702if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7703  echo $ECHO_N "(cached) $ECHO_C" >&6
7704else
7705  lt_cv_prog_compiler_static_works=no
7706   save_LDFLAGS="$LDFLAGS"
7707   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7708   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7709   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7710     # The linker can only warn and ignore the option if not recognized
7711     # So say no if there are warnings
7712     if test -s conftest.err; then
7713       # Append any errors to the config.log.
7714       cat conftest.err 1>&5
7715       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7716       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7717       if diff conftest.exp conftest.er2 >/dev/null; then
7718         lt_cv_prog_compiler_static_works=yes
7719       fi
7720     else
7721       lt_cv_prog_compiler_static_works=yes
7722     fi
7723   fi
7724   $rm -r conftest*
7725   LDFLAGS="$save_LDFLAGS"
7726
7727fi
7728{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7729echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7730
7731if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7732    :
7733else
7734    lt_prog_compiler_static=
7735fi
7736
7737
7738{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7739echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7740if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7741  echo $ECHO_N "(cached) $ECHO_C" >&6
7742else
7743  lt_cv_prog_compiler_c_o=no
7744   $rm -r conftest 2>/dev/null
7745   mkdir conftest
7746   cd conftest
7747   mkdir out
7748   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7749
7750   lt_compiler_flag="-o out/conftest2.$ac_objext"
7751   # Insert the option either (1) after the last *FLAGS variable, or
7752   # (2) before a word containing "conftest.", or (3) at the end.
7753   # Note that $ac_compile itself does not contain backslashes and begins
7754   # with a dollar sign (not a hyphen), so the echo should work correctly.
7755   lt_compile=`echo "$ac_compile" | $SED \
7756   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7757   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7758   -e 's:$: $lt_compiler_flag:'`
7759   (eval echo "\"\$as_me:7759: $lt_compile\"" >&5)
7760   (eval "$lt_compile" 2>out/conftest.err)
7761   ac_status=$?
7762   cat out/conftest.err >&5
7763   echo "$as_me:7763: \$? = $ac_status" >&5
7764   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7765   then
7766     # The compiler can only warn and ignore the option if not recognized
7767     # So say no if there are warnings
7768     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7769     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7770     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7771       lt_cv_prog_compiler_c_o=yes
7772     fi
7773   fi
7774   chmod u+w . 2>&5
7775   $rm conftest*
7776   # SGI C++ compiler will create directory out/ii_files/ for
7777   # template instantiation
7778   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7779   $rm out/* && rmdir out
7780   cd ..
7781   rmdir conftest
7782   $rm conftest*
7783
7784fi
7785{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7786echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7787
7788
7789hard_links="nottested"
7790if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7791  # do not overwrite the value of need_locks provided by the user
7792  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7793echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7794  hard_links=yes
7795  $rm conftest*
7796  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7797  touch conftest.a
7798  ln conftest.a conftest.b 2>&5 || hard_links=no
7799  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7800  { echo "$as_me:$LINENO: result: $hard_links" >&5
7801echo "${ECHO_T}$hard_links" >&6; }
7802  if test "$hard_links" = no; then
7803    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7804echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7805    need_locks=warn
7806  fi
7807else
7808  need_locks=no
7809fi
7810
7811{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7812echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7813
7814  runpath_var=
7815  allow_undefined_flag=
7816  enable_shared_with_static_runtimes=no
7817  archive_cmds=
7818  archive_expsym_cmds=
7819  old_archive_From_new_cmds=
7820  old_archive_from_expsyms_cmds=
7821  export_dynamic_flag_spec=
7822  whole_archive_flag_spec=
7823  thread_safe_flag_spec=
7824  hardcode_libdir_flag_spec=
7825  hardcode_libdir_flag_spec_ld=
7826  hardcode_libdir_separator=
7827  hardcode_direct=no
7828  hardcode_minus_L=no
7829  hardcode_shlibpath_var=unsupported
7830  link_all_deplibs=unknown
7831  hardcode_automatic=no
7832  module_cmds=
7833  module_expsym_cmds=
7834  always_export_symbols=no
7835  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7836  # include_expsyms should be a list of space-separated symbols to be *always*
7837  # included in the symbol list
7838  include_expsyms=
7839  # exclude_expsyms can be an extended regexp of symbols to exclude
7840  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7841  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7842  # as well as any symbol that contains `d'.
7843  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7844  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7845  # platforms (ab)use it in PIC code, but their linkers get confused if
7846  # the symbol is explicitly referenced.  Since portable code cannot
7847  # rely on this symbol name, it's probably fine to never include it in
7848  # preloaded symbol tables.
7849  # Exclude shared library initialization/finalization symbols.
7850  extract_expsyms_cmds=
7851  # Just being paranoid about ensuring that cc_basename is set.
7852  for cc_temp in $compiler""; do
7853  case $cc_temp in
7854    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7855    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7856    \-*) ;;
7857    *) break;;
7858  esac
7859done
7860cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7861
7862  case $host_os in
7863  cygwin* | mingw* | pw32*)
7864    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7865    # When not using gcc, we currently assume that we are using
7866    # Microsoft Visual C++.
7867    if test "$GCC" != yes; then
7868      with_gnu_ld=no
7869    fi
7870    ;;
7871  interix*)
7872    # we just hope/assume this is gcc and not c89 (= MSVC++)
7873    with_gnu_ld=yes
7874    ;;
7875  openbsd*)
7876    with_gnu_ld=no
7877    ;;
7878  esac
7879
7880  ld_shlibs=yes
7881  if test "$with_gnu_ld" = yes; then
7882    # If archive_cmds runs LD, not CC, wlarc should be empty
7883    wlarc='${wl}'
7884
7885    # Set some defaults for GNU ld with shared library support. These
7886    # are reset later if shared libraries are not supported. Putting them
7887    # here allows them to be overridden if necessary.
7888    runpath_var=LD_RUN_PATH
7889    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7890    export_dynamic_flag_spec='${wl}--export-dynamic'
7891    # ancient GNU ld didn't support --whole-archive et. al.
7892    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7893	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7894      else
7895  	whole_archive_flag_spec=
7896    fi
7897    supports_anon_versioning=no
7898    case `$LD -v 2>/dev/null` in
7899      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7900      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7901      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7902      *\ 2.11.*) ;; # other 2.11 versions
7903      *) supports_anon_versioning=yes ;;
7904    esac
7905
7906    # See if GNU ld supports shared libraries.
7907    case $host_os in
7908    aix[3-9]*)
7909      # On AIX/PPC, the GNU linker is very broken
7910      if test "$host_cpu" != ia64; then
7911	ld_shlibs=no
7912	cat <<EOF 1>&2
7913
7914*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7915*** to be unable to reliably create shared libraries on AIX.
7916*** Therefore, libtool is disabling shared libraries support.  If you
7917*** really care for shared libraries, you may want to modify your PATH
7918*** so that a non-GNU linker is found, and then restart.
7919
7920EOF
7921      fi
7922      ;;
7923
7924    amigaos*)
7925      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)'
7926      hardcode_libdir_flag_spec='-L$libdir'
7927      hardcode_minus_L=yes
7928
7929      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7930      # that the semantics of dynamic libraries on AmigaOS, at least up
7931      # to version 4, is to share data among multiple programs linked
7932      # with the same dynamic library.  Since this doesn't match the
7933      # behavior of shared libraries on other platforms, we can't use
7934      # them.
7935      ld_shlibs=no
7936      ;;
7937
7938    beos*)
7939      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7940	allow_undefined_flag=unsupported
7941	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7942	# support --undefined.  This deserves some investigation.  FIXME
7943	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7944      else
7945	ld_shlibs=no
7946      fi
7947      ;;
7948
7949    cygwin* | mingw* | pw32*)
7950      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7951      # as there is no search path for DLLs.
7952      hardcode_libdir_flag_spec='-L$libdir'
7953      allow_undefined_flag=unsupported
7954      always_export_symbols=no
7955      enable_shared_with_static_runtimes=yes
7956      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7957
7958      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7959        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7960	# If the export-symbols file already is a .def file (1st line
7961	# is EXPORTS), use it as is; otherwise, prepend...
7962	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7963	  cp $export_symbols $output_objdir/$soname.def;
7964	else
7965	  echo EXPORTS > $output_objdir/$soname.def;
7966	  cat $export_symbols >> $output_objdir/$soname.def;
7967	fi~
7968	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7969      else
7970	ld_shlibs=no
7971      fi
7972      ;;
7973
7974    interix[3-9]*)
7975      hardcode_direct=no
7976      hardcode_shlibpath_var=no
7977      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7978      export_dynamic_flag_spec='${wl}-E'
7979      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7980      # Instead, shared libraries are loaded at an image base (0x10000000 by
7981      # default) and relocated if they conflict, which is a slow very memory
7982      # consuming and fragmenting process.  To avoid this, we pick a random,
7983      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7984      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7985      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7986      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'
7987      ;;
7988
7989    gnu* | linux* | k*bsd*-gnu)
7990      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7991	tmp_addflag=
7992	case $cc_basename,$host_cpu in
7993	pgcc*)				# Portland Group C compiler
7994	  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'
7995	  tmp_addflag=' $pic_flag'
7996	  ;;
7997	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7998	  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'
7999	  tmp_addflag=' $pic_flag -Mnomain' ;;
8000	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8001	  tmp_addflag=' -i_dynamic' ;;
8002	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8003	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8004	ifc* | ifort*)			# Intel Fortran compiler
8005	  tmp_addflag=' -nofor_main' ;;
8006	esac
8007	case `$CC -V 2>&1 | sed 5q` in
8008	*Sun\ C*)			# Sun C 5.9
8009	  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'
8010	  tmp_sharedflag='-G' ;;
8011	*Sun\ F*)			# Sun Fortran 8.3
8012	  tmp_sharedflag='-G' ;;
8013	*)
8014	  tmp_sharedflag='-shared' ;;
8015	esac
8016	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8017
8018	if test $supports_anon_versioning = yes; then
8019	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8020  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8021  $echo "local: *; };" >> $output_objdir/$libname.ver~
8022	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8023	fi
8024	link_all_deplibs=no
8025      else
8026	ld_shlibs=no
8027      fi
8028      ;;
8029
8030    netbsd* | netbsdelf*-gnu)
8031      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8032	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8033	wlarc=
8034      else
8035	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8036	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8037      fi
8038      ;;
8039
8040    solaris*)
8041      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8042	ld_shlibs=no
8043	cat <<EOF 1>&2
8044
8045*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8046*** create shared libraries on Solaris systems.  Therefore, libtool
8047*** is disabling shared libraries support.  We urge you to upgrade GNU
8048*** binutils to release 2.9.1 or newer.  Another option is to modify
8049*** your PATH or compiler configuration so that the native linker is
8050*** used, and then restart.
8051
8052EOF
8053      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8054	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8055	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8056      else
8057	ld_shlibs=no
8058      fi
8059      ;;
8060
8061    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8062      case `$LD -v 2>&1` in
8063        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8064	ld_shlibs=no
8065	cat <<_LT_EOF 1>&2
8066
8067*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8068*** reliably create shared libraries on SCO systems.  Therefore, libtool
8069*** is disabling shared libraries support.  We urge you to upgrade GNU
8070*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8071*** your PATH or compiler configuration so that the native linker is
8072*** used, and then restart.
8073
8074_LT_EOF
8075	;;
8076	*)
8077	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8078	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8079	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8080	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8081	  else
8082	    ld_shlibs=no
8083	  fi
8084	;;
8085      esac
8086      ;;
8087
8088    sunos4*)
8089      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8090      wlarc=
8091      hardcode_direct=yes
8092      hardcode_shlibpath_var=no
8093      ;;
8094
8095    *)
8096      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8097	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8098	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8099      else
8100	ld_shlibs=no
8101      fi
8102      ;;
8103    esac
8104
8105    if test "$ld_shlibs" = no; then
8106      runpath_var=
8107      hardcode_libdir_flag_spec=
8108      export_dynamic_flag_spec=
8109      whole_archive_flag_spec=
8110    fi
8111  else
8112    # PORTME fill in a description of your system's linker (not GNU ld)
8113    case $host_os in
8114    aix3*)
8115      allow_undefined_flag=unsupported
8116      always_export_symbols=yes
8117      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'
8118      # Note: this linker hardcodes the directories in LIBPATH if there
8119      # are no directories specified by -L.
8120      hardcode_minus_L=yes
8121      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8122	# Neither direct hardcoding nor static linking is supported with a
8123	# broken collect2.
8124	hardcode_direct=unsupported
8125      fi
8126      ;;
8127
8128    aix[4-9]*)
8129      if test "$host_cpu" = ia64; then
8130	# On IA64, the linker does run time linking by default, so we don't
8131	# have to do anything special.
8132	aix_use_runtimelinking=no
8133	exp_sym_flag='-Bexport'
8134	no_entry_flag=""
8135      else
8136	# If we're using GNU nm, then we don't want the "-C" option.
8137	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8138	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8139	  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'
8140	else
8141	  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'
8142	fi
8143	aix_use_runtimelinking=no
8144
8145	# Test if we are trying to use run time linking or normal
8146	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8147	# need to do runtime linking.
8148	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8149	  for ld_flag in $LDFLAGS; do
8150  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8151  	    aix_use_runtimelinking=yes
8152  	    break
8153  	  fi
8154	  done
8155	  ;;
8156	esac
8157
8158	exp_sym_flag='-bexport'
8159	no_entry_flag='-bnoentry'
8160      fi
8161
8162      # When large executables or shared objects are built, AIX ld can
8163      # have problems creating the table of contents.  If linking a library
8164      # or program results in "error TOC overflow" add -mminimal-toc to
8165      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8166      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8167
8168      archive_cmds=''
8169      hardcode_direct=yes
8170      hardcode_libdir_separator=':'
8171      link_all_deplibs=yes
8172
8173      if test "$GCC" = yes; then
8174	case $host_os in aix4.[012]|aix4.[012].*)
8175	# We only want to do this on AIX 4.2 and lower, the check
8176	# below for broken collect2 doesn't work under 4.3+
8177	  collect2name=`${CC} -print-prog-name=collect2`
8178	  if test -f "$collect2name" && \
8179  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8180	  then
8181  	  # We have reworked collect2
8182  	  :
8183	  else
8184  	  # We have old collect2
8185  	  hardcode_direct=unsupported
8186  	  # It fails to find uninstalled libraries when the uninstalled
8187  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8188  	  # to unsupported forces relinking
8189  	  hardcode_minus_L=yes
8190  	  hardcode_libdir_flag_spec='-L$libdir'
8191  	  hardcode_libdir_separator=
8192	  fi
8193	  ;;
8194	esac
8195	shared_flag='-shared'
8196	if test "$aix_use_runtimelinking" = yes; then
8197	  shared_flag="$shared_flag "'${wl}-G'
8198	fi
8199      else
8200	# not using gcc
8201	if test "$host_cpu" = ia64; then
8202  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8203  	# chokes on -Wl,-G. The following line is correct:
8204	  shared_flag='-G'
8205	else
8206	  if test "$aix_use_runtimelinking" = yes; then
8207	    shared_flag='${wl}-G'
8208	  else
8209	    shared_flag='${wl}-bM:SRE'
8210	  fi
8211	fi
8212      fi
8213
8214      # It seems that -bexpall does not export symbols beginning with
8215      # underscore (_), so it is better to generate a list of symbols to export.
8216      always_export_symbols=yes
8217      if test "$aix_use_runtimelinking" = yes; then
8218	# Warning - without using the other runtime loading flags (-brtl),
8219	# -berok will link without error, but may produce a broken library.
8220	allow_undefined_flag='-berok'
8221       # Determine the default libpath from the value encoded in an empty executable.
8222       cat >conftest.$ac_ext <<_ACEOF
8223/* confdefs.h.  */
8224_ACEOF
8225cat confdefs.h >>conftest.$ac_ext
8226cat >>conftest.$ac_ext <<_ACEOF
8227/* end confdefs.h.  */
8228
8229int
8230main ()
8231{
8232
8233  ;
8234  return 0;
8235}
8236_ACEOF
8237rm -f conftest.$ac_objext conftest$ac_exeext
8238if { (ac_try="$ac_link"
8239case "(($ac_try" in
8240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241  *) ac_try_echo=$ac_try;;
8242esac
8243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244  (eval "$ac_link") 2>conftest.er1
8245  ac_status=$?
8246  grep -v '^ *+' conftest.er1 >conftest.err
8247  rm -f conftest.er1
8248  cat conftest.err >&5
8249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250  (exit $ac_status); } && {
8251	 test -z "$ac_c_werror_flag" ||
8252	 test ! -s conftest.err
8253       } && test -s conftest$ac_exeext &&
8254       $as_test_x conftest$ac_exeext; then
8255
8256lt_aix_libpath_sed='
8257    /Import File Strings/,/^$/ {
8258	/^0/ {
8259	    s/^0  *\(.*\)$/\1/
8260	    p
8261	}
8262    }'
8263aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8264# Check for a 64-bit object if we didn't find anything.
8265if test -z "$aix_libpath"; then
8266  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8267fi
8268else
8269  echo "$as_me: failed program was:" >&5
8270sed 's/^/| /' conftest.$ac_ext >&5
8271
8272
8273fi
8274
8275rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8276      conftest$ac_exeext conftest.$ac_ext
8277if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8278
8279       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8280	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"
8281       else
8282	if test "$host_cpu" = ia64; then
8283	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8284	  allow_undefined_flag="-z nodefs"
8285	  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"
8286	else
8287	 # Determine the default libpath from the value encoded in an empty executable.
8288	 cat >conftest.$ac_ext <<_ACEOF
8289/* confdefs.h.  */
8290_ACEOF
8291cat confdefs.h >>conftest.$ac_ext
8292cat >>conftest.$ac_ext <<_ACEOF
8293/* end confdefs.h.  */
8294
8295int
8296main ()
8297{
8298
8299  ;
8300  return 0;
8301}
8302_ACEOF
8303rm -f conftest.$ac_objext conftest$ac_exeext
8304if { (ac_try="$ac_link"
8305case "(($ac_try" in
8306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307  *) ac_try_echo=$ac_try;;
8308esac
8309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310  (eval "$ac_link") 2>conftest.er1
8311  ac_status=$?
8312  grep -v '^ *+' conftest.er1 >conftest.err
8313  rm -f conftest.er1
8314  cat conftest.err >&5
8315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316  (exit $ac_status); } && {
8317	 test -z "$ac_c_werror_flag" ||
8318	 test ! -s conftest.err
8319       } && test -s conftest$ac_exeext &&
8320       $as_test_x conftest$ac_exeext; then
8321
8322lt_aix_libpath_sed='
8323    /Import File Strings/,/^$/ {
8324	/^0/ {
8325	    s/^0  *\(.*\)$/\1/
8326	    p
8327	}
8328    }'
8329aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8330# Check for a 64-bit object if we didn't find anything.
8331if test -z "$aix_libpath"; then
8332  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8333fi
8334else
8335  echo "$as_me: failed program was:" >&5
8336sed 's/^/| /' conftest.$ac_ext >&5
8337
8338
8339fi
8340
8341rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8342      conftest$ac_exeext conftest.$ac_ext
8343if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8344
8345	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8346	  # Warning - without using the other run time loading flags,
8347	  # -berok will link without error, but may produce a broken library.
8348	  no_undefined_flag=' ${wl}-bernotok'
8349	  allow_undefined_flag=' ${wl}-berok'
8350	  # Exported symbols can be pulled into shared objects from archives
8351	  whole_archive_flag_spec='$convenience'
8352	  archive_cmds_need_lc=yes
8353	  # This is similar to how AIX traditionally builds its shared libraries.
8354	  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'
8355	fi
8356      fi
8357      ;;
8358
8359    amigaos*)
8360      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)'
8361      hardcode_libdir_flag_spec='-L$libdir'
8362      hardcode_minus_L=yes
8363      # see comment about different semantics on the GNU ld section
8364      ld_shlibs=no
8365      ;;
8366
8367    bsdi[45]*)
8368      export_dynamic_flag_spec=-rdynamic
8369      ;;
8370
8371    cygwin* | mingw* | pw32*)
8372      # When not using gcc, we currently assume that we are using
8373      # Microsoft Visual C++.
8374      # hardcode_libdir_flag_spec is actually meaningless, as there is
8375      # no search path for DLLs.
8376      hardcode_libdir_flag_spec=' '
8377      allow_undefined_flag=unsupported
8378      # Tell ltmain to make .lib files, not .a files.
8379      libext=lib
8380      # Tell ltmain to make .dll files, not .so files.
8381      shrext_cmds=".dll"
8382      # FIXME: Setting linknames here is a bad hack.
8383      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8384      # The linker will automatically build a .lib file if we build a DLL.
8385      old_archive_From_new_cmds='true'
8386      # FIXME: Should let the user specify the lib program.
8387      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8388      fix_srcfile_path='`cygpath -w "$srcfile"`'
8389      enable_shared_with_static_runtimes=yes
8390      ;;
8391
8392    darwin* | rhapsody*)
8393      case $host_os in
8394        rhapsody* | darwin1.[012])
8395         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8396         ;;
8397       *) # Darwin 1.3 on
8398         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8399           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8400         else
8401           case ${MACOSX_DEPLOYMENT_TARGET} in
8402             10.[012])
8403               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8404               ;;
8405             10.*)
8406               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8407               ;;
8408           esac
8409         fi
8410         ;;
8411      esac
8412      archive_cmds_need_lc=no
8413      hardcode_direct=no
8414      hardcode_automatic=yes
8415      hardcode_shlibpath_var=unsupported
8416      whole_archive_flag_spec=''
8417      link_all_deplibs=yes
8418    if test "$GCC" = yes ; then
8419    	output_verbose_link_cmd='echo'
8420        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8421        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8422        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}"
8423        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}"
8424    else
8425      case $cc_basename in
8426        xlc*)
8427         output_verbose_link_cmd='echo'
8428         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8429         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8430          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8431         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}'
8432          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}'
8433          ;;
8434       *)
8435         ld_shlibs=no
8436          ;;
8437      esac
8438    fi
8439      ;;
8440
8441    dgux*)
8442      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8443      hardcode_libdir_flag_spec='-L$libdir'
8444      hardcode_shlibpath_var=no
8445      ;;
8446
8447    freebsd1*)
8448      ld_shlibs=no
8449      ;;
8450
8451    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8452    # support.  Future versions do this automatically, but an explicit c++rt0.o
8453    # does not break anything, and helps significantly (at the cost of a little
8454    # extra space).
8455    freebsd2.2*)
8456      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8457      hardcode_libdir_flag_spec='-R$libdir'
8458      hardcode_direct=yes
8459      hardcode_shlibpath_var=no
8460      ;;
8461
8462    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8463    freebsd2*)
8464      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8465      hardcode_direct=yes
8466      hardcode_minus_L=yes
8467      hardcode_shlibpath_var=no
8468      ;;
8469
8470    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8471    freebsd* | dragonfly*)
8472      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8473      hardcode_libdir_flag_spec='-R$libdir'
8474      hardcode_direct=yes
8475      hardcode_shlibpath_var=no
8476      ;;
8477
8478    hpux9*)
8479      if test "$GCC" = yes; then
8480	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'
8481      else
8482	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'
8483      fi
8484      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8485      hardcode_libdir_separator=:
8486      hardcode_direct=yes
8487
8488      # hardcode_minus_L: Not really in the search PATH,
8489      # but as the default location of the library.
8490      hardcode_minus_L=yes
8491      export_dynamic_flag_spec='${wl}-E'
8492      ;;
8493
8494    hpux10*)
8495      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8496	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8497      else
8498	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8499      fi
8500      if test "$with_gnu_ld" = no; then
8501	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8502	hardcode_libdir_separator=:
8503
8504	hardcode_direct=yes
8505	export_dynamic_flag_spec='${wl}-E'
8506
8507	# hardcode_minus_L: Not really in the search PATH,
8508	# but as the default location of the library.
8509	hardcode_minus_L=yes
8510      fi
8511      ;;
8512
8513    hpux11*)
8514      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8515	case $host_cpu in
8516	hppa*64*)
8517	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8518	  ;;
8519	ia64*)
8520	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8521	  ;;
8522	*)
8523	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8524	  ;;
8525	esac
8526      else
8527	case $host_cpu in
8528	hppa*64*)
8529	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8530	  ;;
8531	ia64*)
8532	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8533	  ;;
8534	*)
8535	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8536	  ;;
8537	esac
8538      fi
8539      if test "$with_gnu_ld" = no; then
8540	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8541	hardcode_libdir_separator=:
8542
8543	case $host_cpu in
8544	hppa*64*|ia64*)
8545	  hardcode_libdir_flag_spec_ld='+b $libdir'
8546	  hardcode_direct=no
8547	  hardcode_shlibpath_var=no
8548	  ;;
8549	*)
8550	  hardcode_direct=yes
8551	  export_dynamic_flag_spec='${wl}-E'
8552
8553	  # hardcode_minus_L: Not really in the search PATH,
8554	  # but as the default location of the library.
8555	  hardcode_minus_L=yes
8556	  ;;
8557	esac
8558      fi
8559      ;;
8560
8561    irix5* | irix6* | nonstopux*)
8562      if test "$GCC" = yes; then
8563	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'
8564      else
8565	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'
8566	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8567      fi
8568      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8569      hardcode_libdir_separator=:
8570      link_all_deplibs=yes
8571      ;;
8572
8573    netbsd* | netbsdelf*-gnu)
8574      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8575	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8576      else
8577	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8578      fi
8579      hardcode_libdir_flag_spec='-R$libdir'
8580      hardcode_direct=yes
8581      hardcode_shlibpath_var=no
8582      ;;
8583
8584    newsos6)
8585      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8586      hardcode_direct=yes
8587      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8588      hardcode_libdir_separator=:
8589      hardcode_shlibpath_var=no
8590      ;;
8591
8592    openbsd*)
8593      if test -f /usr/libexec/ld.so; then
8594	hardcode_direct=yes
8595	hardcode_shlibpath_var=no
8596	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8597	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8598	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8599	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8600	  export_dynamic_flag_spec='${wl}-E'
8601	else
8602	  case $host_os in
8603	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8604	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8605	     hardcode_libdir_flag_spec='-R$libdir'
8606	     ;;
8607	   *)
8608	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8609	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8610	     ;;
8611	  esac
8612        fi
8613      else
8614	ld_shlibs=no
8615      fi
8616      ;;
8617
8618    os2*)
8619      hardcode_libdir_flag_spec='-L$libdir'
8620      hardcode_minus_L=yes
8621      allow_undefined_flag=unsupported
8622      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'
8623      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8624      ;;
8625
8626    osf3*)
8627      if test "$GCC" = yes; then
8628	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8629	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'
8630      else
8631	allow_undefined_flag=' -expect_unresolved \*'
8632	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'
8633      fi
8634      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8635      hardcode_libdir_separator=:
8636      ;;
8637
8638    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8639      if test "$GCC" = yes; then
8640	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8641	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'
8642	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8643      else
8644	allow_undefined_flag=' -expect_unresolved \*'
8645	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'
8646	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8647	$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'
8648
8649	# Both c and cxx compiler support -rpath directly
8650	hardcode_libdir_flag_spec='-rpath $libdir'
8651      fi
8652      hardcode_libdir_separator=:
8653      ;;
8654
8655    solaris*)
8656      no_undefined_flag=' -z text'
8657      if test "$GCC" = yes; then
8658	wlarc='${wl}'
8659	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8660	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8661	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8662      else
8663	wlarc=''
8664	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8665	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8666  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8667      fi
8668      hardcode_libdir_flag_spec='-R$libdir'
8669      hardcode_shlibpath_var=no
8670      case $host_os in
8671      solaris2.[0-5] | solaris2.[0-5].*) ;;
8672      *)
8673	# The compiler driver will combine and reorder linker options,
8674	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8675	# but is careful enough not to reorder.
8676 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8677	if test "$GCC" = yes; then
8678	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8679	else
8680	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8681	fi
8682	;;
8683      esac
8684      link_all_deplibs=yes
8685      ;;
8686
8687    sunos4*)
8688      if test "x$host_vendor" = xsequent; then
8689	# Use $CC to link under sequent, because it throws in some extra .o
8690	# files that make .init and .fini sections work.
8691	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8692      else
8693	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8694      fi
8695      hardcode_libdir_flag_spec='-L$libdir'
8696      hardcode_direct=yes
8697      hardcode_minus_L=yes
8698      hardcode_shlibpath_var=no
8699      ;;
8700
8701    sysv4)
8702      case $host_vendor in
8703	sni)
8704	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8705	  hardcode_direct=yes # is this really true???
8706	;;
8707	siemens)
8708	  ## LD is ld it makes a PLAMLIB
8709	  ## CC just makes a GrossModule.
8710	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8711	  reload_cmds='$CC -r -o $output$reload_objs'
8712	  hardcode_direct=no
8713        ;;
8714	motorola)
8715	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8716	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8717	;;
8718      esac
8719      runpath_var='LD_RUN_PATH'
8720      hardcode_shlibpath_var=no
8721      ;;
8722
8723    sysv4.3*)
8724      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8725      hardcode_shlibpath_var=no
8726      export_dynamic_flag_spec='-Bexport'
8727      ;;
8728
8729    sysv4*MP*)
8730      if test -d /usr/nec; then
8731	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8732	hardcode_shlibpath_var=no
8733	runpath_var=LD_RUN_PATH
8734	hardcode_runpath_var=yes
8735	ld_shlibs=yes
8736      fi
8737      ;;
8738
8739    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8740      no_undefined_flag='${wl}-z,text'
8741      archive_cmds_need_lc=no
8742      hardcode_shlibpath_var=no
8743      runpath_var='LD_RUN_PATH'
8744
8745      if test "$GCC" = yes; then
8746	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8747	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8748      else
8749	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8750	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8751      fi
8752      ;;
8753
8754    sysv5* | sco3.2v5* | sco5v6*)
8755      # Note: We can NOT use -z defs as we might desire, because we do not
8756      # link with -lc, and that would cause any symbols used from libc to
8757      # always be unresolved, which means just about no library would
8758      # ever link correctly.  If we're not using GNU ld we use -z text
8759      # though, which does catch some bad symbols but isn't as heavy-handed
8760      # as -z defs.
8761      no_undefined_flag='${wl}-z,text'
8762      allow_undefined_flag='${wl}-z,nodefs'
8763      archive_cmds_need_lc=no
8764      hardcode_shlibpath_var=no
8765      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8766      hardcode_libdir_separator=':'
8767      link_all_deplibs=yes
8768      export_dynamic_flag_spec='${wl}-Bexport'
8769      runpath_var='LD_RUN_PATH'
8770
8771      if test "$GCC" = yes; then
8772	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8773	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8774      else
8775	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8776	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8777      fi
8778      ;;
8779
8780    uts4*)
8781      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782      hardcode_libdir_flag_spec='-L$libdir'
8783      hardcode_shlibpath_var=no
8784      ;;
8785
8786    *)
8787      ld_shlibs=no
8788      ;;
8789    esac
8790  fi
8791
8792{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8793echo "${ECHO_T}$ld_shlibs" >&6; }
8794test "$ld_shlibs" = no && can_build_shared=no
8795
8796#
8797# Do we need to explicitly link libc?
8798#
8799case "x$archive_cmds_need_lc" in
8800x|xyes)
8801  # Assume -lc should be added
8802  archive_cmds_need_lc=yes
8803
8804  if test "$enable_shared" = yes && test "$GCC" = yes; then
8805    case $archive_cmds in
8806    *'~'*)
8807      # FIXME: we may have to deal with multi-command sequences.
8808      ;;
8809    '$CC '*)
8810      # Test whether the compiler implicitly links with -lc since on some
8811      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8812      # to ld, don't add -lc before -lgcc.
8813      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8814echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8815      $rm conftest*
8816      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8817
8818      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8819  (eval $ac_compile) 2>&5
8820  ac_status=$?
8821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822  (exit $ac_status); } 2>conftest.err; then
8823        soname=conftest
8824        lib=conftest
8825        libobjs=conftest.$ac_objext
8826        deplibs=
8827        wl=$lt_prog_compiler_wl
8828	pic_flag=$lt_prog_compiler_pic
8829        compiler_flags=-v
8830        linker_flags=-v
8831        verstring=
8832        output_objdir=.
8833        libname=conftest
8834        lt_save_allow_undefined_flag=$allow_undefined_flag
8835        allow_undefined_flag=
8836        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8837  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8838  ac_status=$?
8839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840  (exit $ac_status); }
8841        then
8842	  archive_cmds_need_lc=no
8843        else
8844	  archive_cmds_need_lc=yes
8845        fi
8846        allow_undefined_flag=$lt_save_allow_undefined_flag
8847      else
8848        cat conftest.err 1>&5
8849      fi
8850      $rm conftest*
8851      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8852echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8853      ;;
8854    esac
8855  fi
8856  ;;
8857esac
8858
8859{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8860echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8861library_names_spec=
8862libname_spec='lib$name'
8863soname_spec=
8864shrext_cmds=".so"
8865postinstall_cmds=
8866postuninstall_cmds=
8867finish_cmds=
8868finish_eval=
8869shlibpath_var=
8870shlibpath_overrides_runpath=unknown
8871version_type=none
8872dynamic_linker="$host_os ld.so"
8873sys_lib_dlsearch_path_spec="/lib /usr/lib"
8874
8875if test "$GCC" = yes; then
8876  case $host_os in
8877    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8878    *) lt_awk_arg="/^libraries:/" ;;
8879  esac
8880  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8881  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8882    # if the path contains ";" then we assume it to be the separator
8883    # otherwise default to the standard path separator (i.e. ":") - it is
8884    # assumed that no part of a normal pathname contains ";" but that should
8885    # okay in the real world where ";" in dirpaths is itself problematic.
8886    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8887  else
8888    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8889  fi
8890  # Ok, now we have the path, separated by spaces, we can step through it
8891  # and add multilib dir if necessary.
8892  lt_tmp_lt_search_path_spec=
8893  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8894  for lt_sys_path in $lt_search_path_spec; do
8895    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8896      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8897    else
8898      test -d "$lt_sys_path" && \
8899	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8900    fi
8901  done
8902  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8903BEGIN {RS=" "; FS="/|\n";} {
8904  lt_foo="";
8905  lt_count=0;
8906  for (lt_i = NF; lt_i > 0; lt_i--) {
8907    if ($lt_i != "" && $lt_i != ".") {
8908      if ($lt_i == "..") {
8909        lt_count++;
8910      } else {
8911        if (lt_count == 0) {
8912          lt_foo="/" $lt_i lt_foo;
8913        } else {
8914          lt_count--;
8915        }
8916      }
8917    }
8918  }
8919  if (lt_foo != "") { lt_freq[lt_foo]++; }
8920  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8921}'`
8922  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8923else
8924  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8925fi
8926need_lib_prefix=unknown
8927hardcode_into_libs=no
8928
8929# when you set need_version to no, make sure it does not cause -set_version
8930# flags to be left without arguments
8931need_version=unknown
8932
8933case $host_os in
8934aix3*)
8935  version_type=linux
8936  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8937  shlibpath_var=LIBPATH
8938
8939  # AIX 3 has no versioning support, so we append a major version to the name.
8940  soname_spec='${libname}${release}${shared_ext}$major'
8941  ;;
8942
8943aix[4-9]*)
8944  version_type=linux
8945  need_lib_prefix=no
8946  need_version=no
8947  hardcode_into_libs=yes
8948  if test "$host_cpu" = ia64; then
8949    # AIX 5 supports IA64
8950    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8951    shlibpath_var=LD_LIBRARY_PATH
8952  else
8953    # With GCC up to 2.95.x, collect2 would create an import file
8954    # for dependence libraries.  The import file would start with
8955    # the line `#! .'.  This would cause the generated library to
8956    # depend on `.', always an invalid library.  This was fixed in
8957    # development snapshots of GCC prior to 3.0.
8958    case $host_os in
8959      aix4 | aix4.[01] | aix4.[01].*)
8960      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8961	   echo ' yes '
8962	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8963	:
8964      else
8965	can_build_shared=no
8966      fi
8967      ;;
8968    esac
8969    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8970    # soname into executable. Probably we can add versioning support to
8971    # collect2, so additional links can be useful in future.
8972    if test "$aix_use_runtimelinking" = yes; then
8973      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8974      # instead of lib<name>.a to let people know that these are not
8975      # typical AIX shared libraries.
8976      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977    else
8978      # We preserve .a as extension for shared libraries through AIX4.2
8979      # and later when we are not doing run time linking.
8980      library_names_spec='${libname}${release}.a $libname.a'
8981      soname_spec='${libname}${release}${shared_ext}$major'
8982    fi
8983    shlibpath_var=LIBPATH
8984  fi
8985  ;;
8986
8987amigaos*)
8988  library_names_spec='$libname.ixlibrary $libname.a'
8989  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8990  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'
8991  ;;
8992
8993beos*)
8994  library_names_spec='${libname}${shared_ext}'
8995  dynamic_linker="$host_os ld.so"
8996  shlibpath_var=LIBRARY_PATH
8997  ;;
8998
8999bsdi[45]*)
9000  version_type=linux
9001  need_version=no
9002  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003  soname_spec='${libname}${release}${shared_ext}$major'
9004  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9005  shlibpath_var=LD_LIBRARY_PATH
9006  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9007  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9008  # the default ld.so.conf also contains /usr/contrib/lib and
9009  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9010  # libtool to hard-code these into programs
9011  ;;
9012
9013cygwin* | mingw* | pw32*)
9014  version_type=windows
9015  shrext_cmds=".dll"
9016  need_version=no
9017  need_lib_prefix=no
9018
9019  case $GCC,$host_os in
9020  yes,cygwin* | yes,mingw* | yes,pw32*)
9021    library_names_spec='$libname.dll.a'
9022    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9023    postinstall_cmds='base_file=`basename \${file}`~
9024      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9025      dldir=$destdir/`dirname \$dlpath`~
9026      test -d \$dldir || mkdir -p \$dldir~
9027      $install_prog $dir/$dlname \$dldir/$dlname~
9028      chmod a+x \$dldir/$dlname'
9029    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9030      dlpath=$dir/\$dldll~
9031       $rm \$dlpath'
9032    shlibpath_overrides_runpath=yes
9033
9034    case $host_os in
9035    cygwin*)
9036      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9037      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9038      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9039      ;;
9040    mingw*)
9041      # MinGW DLLs use traditional 'lib' prefix
9042      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9043      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9044      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9045        # It is most probably a Windows format PATH printed by
9046        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9047        # path with ; separators, and with drive letters. We can handle the
9048        # drive letters (cygwin fileutils understands them), so leave them,
9049        # especially as we might pass files found there to a mingw objdump,
9050        # which wouldn't understand a cygwinified path. Ahh.
9051        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9052      else
9053        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9054      fi
9055      ;;
9056    pw32*)
9057      # pw32 DLLs use 'pw' prefix rather than 'lib'
9058      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9059      ;;
9060    esac
9061    ;;
9062
9063  *)
9064    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9065    ;;
9066  esac
9067  dynamic_linker='Win32 ld.exe'
9068  # FIXME: first we should search . and the directory the executable is in
9069  shlibpath_var=PATH
9070  ;;
9071
9072darwin* | rhapsody*)
9073  dynamic_linker="$host_os dyld"
9074  version_type=darwin
9075  need_lib_prefix=no
9076  need_version=no
9077  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9078  soname_spec='${libname}${release}${major}$shared_ext'
9079  shlibpath_overrides_runpath=yes
9080  shlibpath_var=DYLD_LIBRARY_PATH
9081  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9082
9083  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9084  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9085  ;;
9086
9087dgux*)
9088  version_type=linux
9089  need_lib_prefix=no
9090  need_version=no
9091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9092  soname_spec='${libname}${release}${shared_ext}$major'
9093  shlibpath_var=LD_LIBRARY_PATH
9094  ;;
9095
9096freebsd1*)
9097  dynamic_linker=no
9098  ;;
9099
9100freebsd* | dragonfly*)
9101  # DragonFly does not have aout.  When/if they implement a new
9102  # versioning mechanism, adjust this.
9103  if test -x /usr/bin/objformat; then
9104    objformat=`/usr/bin/objformat`
9105  else
9106    case $host_os in
9107    freebsd[123]*) objformat=aout ;;
9108    *) objformat=elf ;;
9109    esac
9110  fi
9111  version_type=freebsd-$objformat
9112  case $version_type in
9113    freebsd-elf*)
9114      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9115      need_version=no
9116      need_lib_prefix=no
9117      ;;
9118    freebsd-*)
9119      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9120      need_version=yes
9121      ;;
9122  esac
9123  shlibpath_var=LD_LIBRARY_PATH
9124  case $host_os in
9125  freebsd2*)
9126    shlibpath_overrides_runpath=yes
9127    ;;
9128  freebsd3.[01]* | freebsdelf3.[01]*)
9129    shlibpath_overrides_runpath=yes
9130    hardcode_into_libs=yes
9131    ;;
9132  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9133  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9134    shlibpath_overrides_runpath=no
9135    hardcode_into_libs=yes
9136    ;;
9137  *) # from 4.6 on, and DragonFly
9138    shlibpath_overrides_runpath=yes
9139    hardcode_into_libs=yes
9140    ;;
9141  esac
9142  ;;
9143
9144gnu*)
9145  version_type=linux
9146  need_lib_prefix=no
9147  need_version=no
9148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9149  soname_spec='${libname}${release}${shared_ext}$major'
9150  shlibpath_var=LD_LIBRARY_PATH
9151  hardcode_into_libs=yes
9152  ;;
9153
9154hpux9* | hpux10* | hpux11*)
9155  # Give a soname corresponding to the major version so that dld.sl refuses to
9156  # link against other versions.
9157  version_type=sunos
9158  need_lib_prefix=no
9159  need_version=no
9160  case $host_cpu in
9161  ia64*)
9162    shrext_cmds='.so'
9163    hardcode_into_libs=yes
9164    dynamic_linker="$host_os dld.so"
9165    shlibpath_var=LD_LIBRARY_PATH
9166    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9167    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168    soname_spec='${libname}${release}${shared_ext}$major'
9169    if test "X$HPUX_IA64_MODE" = X32; then
9170      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9171    else
9172      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9173    fi
9174    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9175    ;;
9176   hppa*64*)
9177     shrext_cmds='.sl'
9178     hardcode_into_libs=yes
9179     dynamic_linker="$host_os dld.sl"
9180     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9181     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9182     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183     soname_spec='${libname}${release}${shared_ext}$major'
9184     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9185     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9186     ;;
9187   *)
9188    shrext_cmds='.sl'
9189    dynamic_linker="$host_os dld.sl"
9190    shlibpath_var=SHLIB_PATH
9191    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9192    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193    soname_spec='${libname}${release}${shared_ext}$major'
9194    ;;
9195  esac
9196  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9197  postinstall_cmds='chmod 555 $lib'
9198  ;;
9199
9200interix[3-9]*)
9201  version_type=linux
9202  need_lib_prefix=no
9203  need_version=no
9204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9205  soname_spec='${libname}${release}${shared_ext}$major'
9206  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9207  shlibpath_var=LD_LIBRARY_PATH
9208  shlibpath_overrides_runpath=no
9209  hardcode_into_libs=yes
9210  ;;
9211
9212irix5* | irix6* | nonstopux*)
9213  case $host_os in
9214    nonstopux*) version_type=nonstopux ;;
9215    *)
9216	if test "$lt_cv_prog_gnu_ld" = yes; then
9217		version_type=linux
9218	else
9219		version_type=irix
9220	fi ;;
9221  esac
9222  need_lib_prefix=no
9223  need_version=no
9224  soname_spec='${libname}${release}${shared_ext}$major'
9225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9226  case $host_os in
9227  irix5* | nonstopux*)
9228    libsuff= shlibsuff=
9229    ;;
9230  *)
9231    case $LD in # libtool.m4 will add one of these switches to LD
9232    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9233      libsuff= shlibsuff= libmagic=32-bit;;
9234    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9235      libsuff=32 shlibsuff=N32 libmagic=N32;;
9236    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9237      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9238    *) libsuff= shlibsuff= libmagic=never-match;;
9239    esac
9240    ;;
9241  esac
9242  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9243  shlibpath_overrides_runpath=no
9244  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9245  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9246  hardcode_into_libs=yes
9247  ;;
9248
9249# No shared lib support for Linux oldld, aout, or coff.
9250linux*oldld* | linux*aout* | linux*coff*)
9251  dynamic_linker=no
9252  ;;
9253
9254# This must be Linux ELF.
9255linux* | k*bsd*-gnu)
9256  version_type=linux
9257  need_lib_prefix=no
9258  need_version=no
9259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260  soname_spec='${libname}${release}${shared_ext}$major'
9261  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9262  shlibpath_var=LD_LIBRARY_PATH
9263  shlibpath_overrides_runpath=no
9264  # This implies no fast_install, which is unacceptable.
9265  # Some rework will be needed to allow for fast_install
9266  # before this can be enabled.
9267  hardcode_into_libs=yes
9268
9269  # Append ld.so.conf contents to the search path
9270  if test -f /etc/ld.so.conf; then
9271    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' ' '`
9272    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9273  fi
9274
9275  # We used to test for /lib/ld.so.1 and disable shared libraries on
9276  # powerpc, because MkLinux only supported shared libraries with the
9277  # GNU dynamic linker.  Since this was broken with cross compilers,
9278  # most powerpc-linux boxes support dynamic linking these days and
9279  # people can always --disable-shared, the test was removed, and we
9280  # assume the GNU/Linux dynamic linker is in use.
9281  dynamic_linker='GNU/Linux ld.so'
9282  ;;
9283
9284netbsdelf*-gnu)
9285  version_type=linux
9286  need_lib_prefix=no
9287  need_version=no
9288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9289  soname_spec='${libname}${release}${shared_ext}$major'
9290  shlibpath_var=LD_LIBRARY_PATH
9291  shlibpath_overrides_runpath=no
9292  hardcode_into_libs=yes
9293  dynamic_linker='NetBSD ld.elf_so'
9294  ;;
9295
9296netbsd*)
9297  version_type=sunos
9298  need_lib_prefix=no
9299  need_version=no
9300  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9301    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9302    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9303    dynamic_linker='NetBSD (a.out) ld.so'
9304  else
9305    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9306    soname_spec='${libname}${release}${shared_ext}$major'
9307    dynamic_linker='NetBSD ld.elf_so'
9308  fi
9309  shlibpath_var=LD_LIBRARY_PATH
9310  shlibpath_overrides_runpath=yes
9311  hardcode_into_libs=yes
9312  ;;
9313
9314newsos6)
9315  version_type=linux
9316  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9317  shlibpath_var=LD_LIBRARY_PATH
9318  shlibpath_overrides_runpath=yes
9319  ;;
9320
9321nto-qnx*)
9322  version_type=linux
9323  need_lib_prefix=no
9324  need_version=no
9325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326  soname_spec='${libname}${release}${shared_ext}$major'
9327  shlibpath_var=LD_LIBRARY_PATH
9328  shlibpath_overrides_runpath=yes
9329  ;;
9330
9331openbsd*)
9332  version_type=sunos
9333  sys_lib_dlsearch_path_spec="/usr/lib"
9334  need_lib_prefix=no
9335  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9336  case $host_os in
9337    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9338    *)                         need_version=no  ;;
9339  esac
9340  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9341  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9342  shlibpath_var=LD_LIBRARY_PATH
9343  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9344    case $host_os in
9345      openbsd2.[89] | openbsd2.[89].*)
9346	shlibpath_overrides_runpath=no
9347	;;
9348      *)
9349	shlibpath_overrides_runpath=yes
9350	;;
9351      esac
9352  else
9353    shlibpath_overrides_runpath=yes
9354  fi
9355  ;;
9356
9357os2*)
9358  libname_spec='$name'
9359  shrext_cmds=".dll"
9360  need_lib_prefix=no
9361  library_names_spec='$libname${shared_ext} $libname.a'
9362  dynamic_linker='OS/2 ld.exe'
9363  shlibpath_var=LIBPATH
9364  ;;
9365
9366osf3* | osf4* | osf5*)
9367  version_type=osf
9368  need_lib_prefix=no
9369  need_version=no
9370  soname_spec='${libname}${release}${shared_ext}$major'
9371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372  shlibpath_var=LD_LIBRARY_PATH
9373  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9374  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9375  ;;
9376
9377rdos*)
9378  dynamic_linker=no
9379  ;;
9380
9381solaris*)
9382  version_type=linux
9383  need_lib_prefix=no
9384  need_version=no
9385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9386  soname_spec='${libname}${release}${shared_ext}$major'
9387  shlibpath_var=LD_LIBRARY_PATH
9388  shlibpath_overrides_runpath=yes
9389  hardcode_into_libs=yes
9390  # ldd complains unless libraries are executable
9391  postinstall_cmds='chmod +x $lib'
9392  ;;
9393
9394sunos4*)
9395  version_type=sunos
9396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9397  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9398  shlibpath_var=LD_LIBRARY_PATH
9399  shlibpath_overrides_runpath=yes
9400  if test "$with_gnu_ld" = yes; then
9401    need_lib_prefix=no
9402  fi
9403  need_version=yes
9404  ;;
9405
9406sysv4 | sysv4.3*)
9407  version_type=linux
9408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409  soname_spec='${libname}${release}${shared_ext}$major'
9410  shlibpath_var=LD_LIBRARY_PATH
9411  case $host_vendor in
9412    sni)
9413      shlibpath_overrides_runpath=no
9414      need_lib_prefix=no
9415      export_dynamic_flag_spec='${wl}-Blargedynsym'
9416      runpath_var=LD_RUN_PATH
9417      ;;
9418    siemens)
9419      need_lib_prefix=no
9420      ;;
9421    motorola)
9422      need_lib_prefix=no
9423      need_version=no
9424      shlibpath_overrides_runpath=no
9425      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9426      ;;
9427  esac
9428  ;;
9429
9430sysv4*MP*)
9431  if test -d /usr/nec ;then
9432    version_type=linux
9433    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9434    soname_spec='$libname${shared_ext}.$major'
9435    shlibpath_var=LD_LIBRARY_PATH
9436  fi
9437  ;;
9438
9439sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9440  version_type=freebsd-elf
9441  need_lib_prefix=no
9442  need_version=no
9443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9444  soname_spec='${libname}${release}${shared_ext}$major'
9445  shlibpath_var=LD_LIBRARY_PATH
9446  hardcode_into_libs=yes
9447  if test "$with_gnu_ld" = yes; then
9448    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9449    shlibpath_overrides_runpath=no
9450  else
9451    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9452    shlibpath_overrides_runpath=yes
9453    case $host_os in
9454      sco3.2v5*)
9455        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9456	;;
9457    esac
9458  fi
9459  sys_lib_dlsearch_path_spec='/usr/lib'
9460  ;;
9461
9462uts4*)
9463  version_type=linux
9464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465  soname_spec='${libname}${release}${shared_ext}$major'
9466  shlibpath_var=LD_LIBRARY_PATH
9467  ;;
9468
9469*)
9470  dynamic_linker=no
9471  ;;
9472esac
9473{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9474echo "${ECHO_T}$dynamic_linker" >&6; }
9475test "$dynamic_linker" = no && can_build_shared=no
9476
9477if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9478  echo $ECHO_N "(cached) $ECHO_C" >&6
9479else
9480  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9481fi
9482
9483sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9484if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9485  echo $ECHO_N "(cached) $ECHO_C" >&6
9486else
9487  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9488fi
9489
9490sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9491
9492variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9493if test "$GCC" = yes; then
9494  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9495fi
9496
9497{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9498echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9499hardcode_action=
9500if test -n "$hardcode_libdir_flag_spec" || \
9501   test -n "$runpath_var" || \
9502   test "X$hardcode_automatic" = "Xyes" ; then
9503
9504  # We can hardcode non-existant directories.
9505  if test "$hardcode_direct" != no &&
9506     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9507     # have to relink, otherwise we might link with an installed library
9508     # when we should be linking with a yet-to-be-installed one
9509     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9510     test "$hardcode_minus_L" != no; then
9511    # Linking always hardcodes the temporary library directory.
9512    hardcode_action=relink
9513  else
9514    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9515    hardcode_action=immediate
9516  fi
9517else
9518  # We cannot hardcode anything, or else we can only hardcode existing
9519  # directories.
9520  hardcode_action=unsupported
9521fi
9522{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9523echo "${ECHO_T}$hardcode_action" >&6; }
9524
9525if test "$hardcode_action" = relink; then
9526  # Fast installation is not supported
9527  enable_fast_install=no
9528elif test "$shlibpath_overrides_runpath" = yes ||
9529     test "$enable_shared" = no; then
9530  # Fast installation is not necessary
9531  enable_fast_install=needless
9532fi
9533
9534striplib=
9535old_striplib=
9536{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9537echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9538if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9539  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9540  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9541  { echo "$as_me:$LINENO: result: yes" >&5
9542echo "${ECHO_T}yes" >&6; }
9543else
9544# FIXME - insert some real tests, host_os isn't really good enough
9545  case $host_os in
9546   darwin*)
9547       if test -n "$STRIP" ; then
9548         striplib="$STRIP -x"
9549         old_striplib="$STRIP -S"
9550         { echo "$as_me:$LINENO: result: yes" >&5
9551echo "${ECHO_T}yes" >&6; }
9552       else
9553  { echo "$as_me:$LINENO: result: no" >&5
9554echo "${ECHO_T}no" >&6; }
9555fi
9556       ;;
9557   *)
9558  { echo "$as_me:$LINENO: result: no" >&5
9559echo "${ECHO_T}no" >&6; }
9560    ;;
9561  esac
9562fi
9563
9564if test "x$enable_dlopen" != xyes; then
9565  enable_dlopen=unknown
9566  enable_dlopen_self=unknown
9567  enable_dlopen_self_static=unknown
9568else
9569  lt_cv_dlopen=no
9570  lt_cv_dlopen_libs=
9571
9572  case $host_os in
9573  beos*)
9574    lt_cv_dlopen="load_add_on"
9575    lt_cv_dlopen_libs=
9576    lt_cv_dlopen_self=yes
9577    ;;
9578
9579  mingw* | pw32*)
9580    lt_cv_dlopen="LoadLibrary"
9581    lt_cv_dlopen_libs=
9582   ;;
9583
9584  cygwin*)
9585    lt_cv_dlopen="dlopen"
9586    lt_cv_dlopen_libs=
9587   ;;
9588
9589  darwin*)
9590  # if libdl is installed we need to link against it
9591    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9592echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9593if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9594  echo $ECHO_N "(cached) $ECHO_C" >&6
9595else
9596  ac_check_lib_save_LIBS=$LIBS
9597LIBS="-ldl  $LIBS"
9598cat >conftest.$ac_ext <<_ACEOF
9599/* confdefs.h.  */
9600_ACEOF
9601cat confdefs.h >>conftest.$ac_ext
9602cat >>conftest.$ac_ext <<_ACEOF
9603/* end confdefs.h.  */
9604
9605/* Override any GCC internal prototype to avoid an error.
9606   Use char because int might match the return type of a GCC
9607   builtin and then its argument prototype would still apply.  */
9608#ifdef __cplusplus
9609extern "C"
9610#endif
9611char dlopen ();
9612int
9613main ()
9614{
9615return dlopen ();
9616  ;
9617  return 0;
9618}
9619_ACEOF
9620rm -f conftest.$ac_objext conftest$ac_exeext
9621if { (ac_try="$ac_link"
9622case "(($ac_try" in
9623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624  *) ac_try_echo=$ac_try;;
9625esac
9626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627  (eval "$ac_link") 2>conftest.er1
9628  ac_status=$?
9629  grep -v '^ *+' conftest.er1 >conftest.err
9630  rm -f conftest.er1
9631  cat conftest.err >&5
9632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633  (exit $ac_status); } && {
9634	 test -z "$ac_c_werror_flag" ||
9635	 test ! -s conftest.err
9636       } && test -s conftest$ac_exeext &&
9637       $as_test_x conftest$ac_exeext; then
9638  ac_cv_lib_dl_dlopen=yes
9639else
9640  echo "$as_me: failed program was:" >&5
9641sed 's/^/| /' conftest.$ac_ext >&5
9642
9643	ac_cv_lib_dl_dlopen=no
9644fi
9645
9646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9647      conftest$ac_exeext conftest.$ac_ext
9648LIBS=$ac_check_lib_save_LIBS
9649fi
9650{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9651echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9652if test $ac_cv_lib_dl_dlopen = yes; then
9653  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9654else
9655
9656    lt_cv_dlopen="dyld"
9657    lt_cv_dlopen_libs=
9658    lt_cv_dlopen_self=yes
9659
9660fi
9661
9662   ;;
9663
9664  *)
9665    { echo "$as_me:$LINENO: checking for shl_load" >&5
9666echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9667if test "${ac_cv_func_shl_load+set}" = set; then
9668  echo $ECHO_N "(cached) $ECHO_C" >&6
9669else
9670  cat >conftest.$ac_ext <<_ACEOF
9671/* confdefs.h.  */
9672_ACEOF
9673cat confdefs.h >>conftest.$ac_ext
9674cat >>conftest.$ac_ext <<_ACEOF
9675/* end confdefs.h.  */
9676/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9677   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9678#define shl_load innocuous_shl_load
9679
9680/* System header to define __stub macros and hopefully few prototypes,
9681    which can conflict with char shl_load (); below.
9682    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9683    <limits.h> exists even on freestanding compilers.  */
9684
9685#ifdef __STDC__
9686# include <limits.h>
9687#else
9688# include <assert.h>
9689#endif
9690
9691#undef shl_load
9692
9693/* Override any GCC internal prototype to avoid an error.
9694   Use char because int might match the return type of a GCC
9695   builtin and then its argument prototype would still apply.  */
9696#ifdef __cplusplus
9697extern "C"
9698#endif
9699char shl_load ();
9700/* The GNU C library defines this for functions which it implements
9701    to always fail with ENOSYS.  Some functions are actually named
9702    something starting with __ and the normal name is an alias.  */
9703#if defined __stub_shl_load || defined __stub___shl_load
9704choke me
9705#endif
9706
9707int
9708main ()
9709{
9710return shl_load ();
9711  ;
9712  return 0;
9713}
9714_ACEOF
9715rm -f conftest.$ac_objext conftest$ac_exeext
9716if { (ac_try="$ac_link"
9717case "(($ac_try" in
9718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719  *) ac_try_echo=$ac_try;;
9720esac
9721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722  (eval "$ac_link") 2>conftest.er1
9723  ac_status=$?
9724  grep -v '^ *+' conftest.er1 >conftest.err
9725  rm -f conftest.er1
9726  cat conftest.err >&5
9727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728  (exit $ac_status); } && {
9729	 test -z "$ac_c_werror_flag" ||
9730	 test ! -s conftest.err
9731       } && test -s conftest$ac_exeext &&
9732       $as_test_x conftest$ac_exeext; then
9733  ac_cv_func_shl_load=yes
9734else
9735  echo "$as_me: failed program was:" >&5
9736sed 's/^/| /' conftest.$ac_ext >&5
9737
9738	ac_cv_func_shl_load=no
9739fi
9740
9741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9742      conftest$ac_exeext conftest.$ac_ext
9743fi
9744{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9745echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9746if test $ac_cv_func_shl_load = yes; then
9747  lt_cv_dlopen="shl_load"
9748else
9749  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9750echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9751if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9752  echo $ECHO_N "(cached) $ECHO_C" >&6
9753else
9754  ac_check_lib_save_LIBS=$LIBS
9755LIBS="-ldld  $LIBS"
9756cat >conftest.$ac_ext <<_ACEOF
9757/* confdefs.h.  */
9758_ACEOF
9759cat confdefs.h >>conftest.$ac_ext
9760cat >>conftest.$ac_ext <<_ACEOF
9761/* end confdefs.h.  */
9762
9763/* Override any GCC internal prototype to avoid an error.
9764   Use char because int might match the return type of a GCC
9765   builtin and then its argument prototype would still apply.  */
9766#ifdef __cplusplus
9767extern "C"
9768#endif
9769char shl_load ();
9770int
9771main ()
9772{
9773return shl_load ();
9774  ;
9775  return 0;
9776}
9777_ACEOF
9778rm -f conftest.$ac_objext conftest$ac_exeext
9779if { (ac_try="$ac_link"
9780case "(($ac_try" in
9781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782  *) ac_try_echo=$ac_try;;
9783esac
9784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785  (eval "$ac_link") 2>conftest.er1
9786  ac_status=$?
9787  grep -v '^ *+' conftest.er1 >conftest.err
9788  rm -f conftest.er1
9789  cat conftest.err >&5
9790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791  (exit $ac_status); } && {
9792	 test -z "$ac_c_werror_flag" ||
9793	 test ! -s conftest.err
9794       } && test -s conftest$ac_exeext &&
9795       $as_test_x conftest$ac_exeext; then
9796  ac_cv_lib_dld_shl_load=yes
9797else
9798  echo "$as_me: failed program was:" >&5
9799sed 's/^/| /' conftest.$ac_ext >&5
9800
9801	ac_cv_lib_dld_shl_load=no
9802fi
9803
9804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9805      conftest$ac_exeext conftest.$ac_ext
9806LIBS=$ac_check_lib_save_LIBS
9807fi
9808{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9809echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9810if test $ac_cv_lib_dld_shl_load = yes; then
9811  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9812else
9813  { echo "$as_me:$LINENO: checking for dlopen" >&5
9814echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9815if test "${ac_cv_func_dlopen+set}" = set; then
9816  echo $ECHO_N "(cached) $ECHO_C" >&6
9817else
9818  cat >conftest.$ac_ext <<_ACEOF
9819/* confdefs.h.  */
9820_ACEOF
9821cat confdefs.h >>conftest.$ac_ext
9822cat >>conftest.$ac_ext <<_ACEOF
9823/* end confdefs.h.  */
9824/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9825   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9826#define dlopen innocuous_dlopen
9827
9828/* System header to define __stub macros and hopefully few prototypes,
9829    which can conflict with char dlopen (); below.
9830    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9831    <limits.h> exists even on freestanding compilers.  */
9832
9833#ifdef __STDC__
9834# include <limits.h>
9835#else
9836# include <assert.h>
9837#endif
9838
9839#undef dlopen
9840
9841/* Override any GCC internal prototype to avoid an error.
9842   Use char because int might match the return type of a GCC
9843   builtin and then its argument prototype would still apply.  */
9844#ifdef __cplusplus
9845extern "C"
9846#endif
9847char dlopen ();
9848/* The GNU C library defines this for functions which it implements
9849    to always fail with ENOSYS.  Some functions are actually named
9850    something starting with __ and the normal name is an alias.  */
9851#if defined __stub_dlopen || defined __stub___dlopen
9852choke me
9853#endif
9854
9855int
9856main ()
9857{
9858return dlopen ();
9859  ;
9860  return 0;
9861}
9862_ACEOF
9863rm -f conftest.$ac_objext conftest$ac_exeext
9864if { (ac_try="$ac_link"
9865case "(($ac_try" in
9866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867  *) ac_try_echo=$ac_try;;
9868esac
9869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870  (eval "$ac_link") 2>conftest.er1
9871  ac_status=$?
9872  grep -v '^ *+' conftest.er1 >conftest.err
9873  rm -f conftest.er1
9874  cat conftest.err >&5
9875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876  (exit $ac_status); } && {
9877	 test -z "$ac_c_werror_flag" ||
9878	 test ! -s conftest.err
9879       } && test -s conftest$ac_exeext &&
9880       $as_test_x conftest$ac_exeext; then
9881  ac_cv_func_dlopen=yes
9882else
9883  echo "$as_me: failed program was:" >&5
9884sed 's/^/| /' conftest.$ac_ext >&5
9885
9886	ac_cv_func_dlopen=no
9887fi
9888
9889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9890      conftest$ac_exeext conftest.$ac_ext
9891fi
9892{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9893echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9894if test $ac_cv_func_dlopen = yes; then
9895  lt_cv_dlopen="dlopen"
9896else
9897  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9898echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9899if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9900  echo $ECHO_N "(cached) $ECHO_C" >&6
9901else
9902  ac_check_lib_save_LIBS=$LIBS
9903LIBS="-ldl  $LIBS"
9904cat >conftest.$ac_ext <<_ACEOF
9905/* confdefs.h.  */
9906_ACEOF
9907cat confdefs.h >>conftest.$ac_ext
9908cat >>conftest.$ac_ext <<_ACEOF
9909/* end confdefs.h.  */
9910
9911/* Override any GCC internal prototype to avoid an error.
9912   Use char because int might match the return type of a GCC
9913   builtin and then its argument prototype would still apply.  */
9914#ifdef __cplusplus
9915extern "C"
9916#endif
9917char dlopen ();
9918int
9919main ()
9920{
9921return dlopen ();
9922  ;
9923  return 0;
9924}
9925_ACEOF
9926rm -f conftest.$ac_objext conftest$ac_exeext
9927if { (ac_try="$ac_link"
9928case "(($ac_try" in
9929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930  *) ac_try_echo=$ac_try;;
9931esac
9932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933  (eval "$ac_link") 2>conftest.er1
9934  ac_status=$?
9935  grep -v '^ *+' conftest.er1 >conftest.err
9936  rm -f conftest.er1
9937  cat conftest.err >&5
9938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939  (exit $ac_status); } && {
9940	 test -z "$ac_c_werror_flag" ||
9941	 test ! -s conftest.err
9942       } && test -s conftest$ac_exeext &&
9943       $as_test_x conftest$ac_exeext; then
9944  ac_cv_lib_dl_dlopen=yes
9945else
9946  echo "$as_me: failed program was:" >&5
9947sed 's/^/| /' conftest.$ac_ext >&5
9948
9949	ac_cv_lib_dl_dlopen=no
9950fi
9951
9952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9953      conftest$ac_exeext conftest.$ac_ext
9954LIBS=$ac_check_lib_save_LIBS
9955fi
9956{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9957echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9958if test $ac_cv_lib_dl_dlopen = yes; then
9959  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9960else
9961  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9962echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9963if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9964  echo $ECHO_N "(cached) $ECHO_C" >&6
9965else
9966  ac_check_lib_save_LIBS=$LIBS
9967LIBS="-lsvld  $LIBS"
9968cat >conftest.$ac_ext <<_ACEOF
9969/* confdefs.h.  */
9970_ACEOF
9971cat confdefs.h >>conftest.$ac_ext
9972cat >>conftest.$ac_ext <<_ACEOF
9973/* end confdefs.h.  */
9974
9975/* Override any GCC internal prototype to avoid an error.
9976   Use char because int might match the return type of a GCC
9977   builtin and then its argument prototype would still apply.  */
9978#ifdef __cplusplus
9979extern "C"
9980#endif
9981char dlopen ();
9982int
9983main ()
9984{
9985return dlopen ();
9986  ;
9987  return 0;
9988}
9989_ACEOF
9990rm -f conftest.$ac_objext conftest$ac_exeext
9991if { (ac_try="$ac_link"
9992case "(($ac_try" in
9993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994  *) ac_try_echo=$ac_try;;
9995esac
9996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997  (eval "$ac_link") 2>conftest.er1
9998  ac_status=$?
9999  grep -v '^ *+' conftest.er1 >conftest.err
10000  rm -f conftest.er1
10001  cat conftest.err >&5
10002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003  (exit $ac_status); } && {
10004	 test -z "$ac_c_werror_flag" ||
10005	 test ! -s conftest.err
10006       } && test -s conftest$ac_exeext &&
10007       $as_test_x conftest$ac_exeext; then
10008  ac_cv_lib_svld_dlopen=yes
10009else
10010  echo "$as_me: failed program was:" >&5
10011sed 's/^/| /' conftest.$ac_ext >&5
10012
10013	ac_cv_lib_svld_dlopen=no
10014fi
10015
10016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10017      conftest$ac_exeext conftest.$ac_ext
10018LIBS=$ac_check_lib_save_LIBS
10019fi
10020{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10021echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10022if test $ac_cv_lib_svld_dlopen = yes; then
10023  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10024else
10025  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10026echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10027if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10028  echo $ECHO_N "(cached) $ECHO_C" >&6
10029else
10030  ac_check_lib_save_LIBS=$LIBS
10031LIBS="-ldld  $LIBS"
10032cat >conftest.$ac_ext <<_ACEOF
10033/* confdefs.h.  */
10034_ACEOF
10035cat confdefs.h >>conftest.$ac_ext
10036cat >>conftest.$ac_ext <<_ACEOF
10037/* end confdefs.h.  */
10038
10039/* Override any GCC internal prototype to avoid an error.
10040   Use char because int might match the return type of a GCC
10041   builtin and then its argument prototype would still apply.  */
10042#ifdef __cplusplus
10043extern "C"
10044#endif
10045char dld_link ();
10046int
10047main ()
10048{
10049return dld_link ();
10050  ;
10051  return 0;
10052}
10053_ACEOF
10054rm -f conftest.$ac_objext conftest$ac_exeext
10055if { (ac_try="$ac_link"
10056case "(($ac_try" in
10057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058  *) ac_try_echo=$ac_try;;
10059esac
10060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061  (eval "$ac_link") 2>conftest.er1
10062  ac_status=$?
10063  grep -v '^ *+' conftest.er1 >conftest.err
10064  rm -f conftest.er1
10065  cat conftest.err >&5
10066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067  (exit $ac_status); } && {
10068	 test -z "$ac_c_werror_flag" ||
10069	 test ! -s conftest.err
10070       } && test -s conftest$ac_exeext &&
10071       $as_test_x conftest$ac_exeext; then
10072  ac_cv_lib_dld_dld_link=yes
10073else
10074  echo "$as_me: failed program was:" >&5
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
10077	ac_cv_lib_dld_dld_link=no
10078fi
10079
10080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10081      conftest$ac_exeext conftest.$ac_ext
10082LIBS=$ac_check_lib_save_LIBS
10083fi
10084{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10085echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10086if test $ac_cv_lib_dld_dld_link = yes; then
10087  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10088fi
10089
10090
10091fi
10092
10093
10094fi
10095
10096
10097fi
10098
10099
10100fi
10101
10102
10103fi
10104
10105    ;;
10106  esac
10107
10108  if test "x$lt_cv_dlopen" != xno; then
10109    enable_dlopen=yes
10110  else
10111    enable_dlopen=no
10112  fi
10113
10114  case $lt_cv_dlopen in
10115  dlopen)
10116    save_CPPFLAGS="$CPPFLAGS"
10117    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10118
10119    save_LDFLAGS="$LDFLAGS"
10120    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10121
10122    save_LIBS="$LIBS"
10123    LIBS="$lt_cv_dlopen_libs $LIBS"
10124
10125    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10126echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10127if test "${lt_cv_dlopen_self+set}" = set; then
10128  echo $ECHO_N "(cached) $ECHO_C" >&6
10129else
10130  	  if test "$cross_compiling" = yes; then :
10131  lt_cv_dlopen_self=cross
10132else
10133  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10134  lt_status=$lt_dlunknown
10135  cat > conftest.$ac_ext <<EOF
10136#line 10136 "configure"
10137#include "confdefs.h"
10138
10139#if HAVE_DLFCN_H
10140#include <dlfcn.h>
10141#endif
10142
10143#include <stdio.h>
10144
10145#ifdef RTLD_GLOBAL
10146#  define LT_DLGLOBAL		RTLD_GLOBAL
10147#else
10148#  ifdef DL_GLOBAL
10149#    define LT_DLGLOBAL		DL_GLOBAL
10150#  else
10151#    define LT_DLGLOBAL		0
10152#  endif
10153#endif
10154
10155/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10156   find out it does not work in some platform. */
10157#ifndef LT_DLLAZY_OR_NOW
10158#  ifdef RTLD_LAZY
10159#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10160#  else
10161#    ifdef DL_LAZY
10162#      define LT_DLLAZY_OR_NOW		DL_LAZY
10163#    else
10164#      ifdef RTLD_NOW
10165#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10166#      else
10167#        ifdef DL_NOW
10168#          define LT_DLLAZY_OR_NOW	DL_NOW
10169#        else
10170#          define LT_DLLAZY_OR_NOW	0
10171#        endif
10172#      endif
10173#    endif
10174#  endif
10175#endif
10176
10177#ifdef __cplusplus
10178extern "C" void exit (int);
10179#endif
10180
10181void fnord() { int i=42;}
10182int main ()
10183{
10184  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10185  int status = $lt_dlunknown;
10186
10187  if (self)
10188    {
10189      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10190      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10191      /* dlclose (self); */
10192    }
10193  else
10194    puts (dlerror ());
10195
10196    exit (status);
10197}
10198EOF
10199  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10200  (eval $ac_link) 2>&5
10201  ac_status=$?
10202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10204    (./conftest; exit; ) >&5 2>/dev/null
10205    lt_status=$?
10206    case x$lt_status in
10207      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10208      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10209      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10210    esac
10211  else :
10212    # compilation failed
10213    lt_cv_dlopen_self=no
10214  fi
10215fi
10216rm -fr conftest*
10217
10218
10219fi
10220{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10221echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10222
10223    if test "x$lt_cv_dlopen_self" = xyes; then
10224      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10225      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10226echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10227if test "${lt_cv_dlopen_self_static+set}" = set; then
10228  echo $ECHO_N "(cached) $ECHO_C" >&6
10229else
10230  	  if test "$cross_compiling" = yes; then :
10231  lt_cv_dlopen_self_static=cross
10232else
10233  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10234  lt_status=$lt_dlunknown
10235  cat > conftest.$ac_ext <<EOF
10236#line 10236 "configure"
10237#include "confdefs.h"
10238
10239#if HAVE_DLFCN_H
10240#include <dlfcn.h>
10241#endif
10242
10243#include <stdio.h>
10244
10245#ifdef RTLD_GLOBAL
10246#  define LT_DLGLOBAL		RTLD_GLOBAL
10247#else
10248#  ifdef DL_GLOBAL
10249#    define LT_DLGLOBAL		DL_GLOBAL
10250#  else
10251#    define LT_DLGLOBAL		0
10252#  endif
10253#endif
10254
10255/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10256   find out it does not work in some platform. */
10257#ifndef LT_DLLAZY_OR_NOW
10258#  ifdef RTLD_LAZY
10259#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10260#  else
10261#    ifdef DL_LAZY
10262#      define LT_DLLAZY_OR_NOW		DL_LAZY
10263#    else
10264#      ifdef RTLD_NOW
10265#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10266#      else
10267#        ifdef DL_NOW
10268#          define LT_DLLAZY_OR_NOW	DL_NOW
10269#        else
10270#          define LT_DLLAZY_OR_NOW	0
10271#        endif
10272#      endif
10273#    endif
10274#  endif
10275#endif
10276
10277#ifdef __cplusplus
10278extern "C" void exit (int);
10279#endif
10280
10281void fnord() { int i=42;}
10282int main ()
10283{
10284  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10285  int status = $lt_dlunknown;
10286
10287  if (self)
10288    {
10289      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10290      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10291      /* dlclose (self); */
10292    }
10293  else
10294    puts (dlerror ());
10295
10296    exit (status);
10297}
10298EOF
10299  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10300  (eval $ac_link) 2>&5
10301  ac_status=$?
10302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10304    (./conftest; exit; ) >&5 2>/dev/null
10305    lt_status=$?
10306    case x$lt_status in
10307      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10308      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10309      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10310    esac
10311  else :
10312    # compilation failed
10313    lt_cv_dlopen_self_static=no
10314  fi
10315fi
10316rm -fr conftest*
10317
10318
10319fi
10320{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10321echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10322    fi
10323
10324    CPPFLAGS="$save_CPPFLAGS"
10325    LDFLAGS="$save_LDFLAGS"
10326    LIBS="$save_LIBS"
10327    ;;
10328  esac
10329
10330  case $lt_cv_dlopen_self in
10331  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10332  *) enable_dlopen_self=unknown ;;
10333  esac
10334
10335  case $lt_cv_dlopen_self_static in
10336  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10337  *) enable_dlopen_self_static=unknown ;;
10338  esac
10339fi
10340
10341
10342# Report which library types will actually be built
10343{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10344echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10345{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10346echo "${ECHO_T}$can_build_shared" >&6; }
10347
10348{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10349echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10350test "$can_build_shared" = "no" && enable_shared=no
10351
10352# On AIX, shared libraries and static libraries use the same namespace, and
10353# are all built from PIC.
10354case $host_os in
10355aix3*)
10356  test "$enable_shared" = yes && enable_static=no
10357  if test -n "$RANLIB"; then
10358    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10359    postinstall_cmds='$RANLIB $lib'
10360  fi
10361  ;;
10362
10363aix[4-9]*)
10364  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10365    test "$enable_shared" = yes && enable_static=no
10366  fi
10367    ;;
10368esac
10369{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10370echo "${ECHO_T}$enable_shared" >&6; }
10371
10372{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10373echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10374# Make sure either enable_shared or enable_static is yes.
10375test "$enable_shared" = yes || enable_static=yes
10376{ echo "$as_me:$LINENO: result: $enable_static" >&5
10377echo "${ECHO_T}$enable_static" >&6; }
10378
10379# The else clause should only fire when bootstrapping the
10380# libtool distribution, otherwise you forgot to ship ltmain.sh
10381# with your package, and you will get complaints that there are
10382# no rules to generate ltmain.sh.
10383if test -f "$ltmain"; then
10384  # See if we are running on zsh, and set the options which allow our commands through
10385  # without removal of \ escapes.
10386  if test -n "${ZSH_VERSION+set}" ; then
10387    setopt NO_GLOB_SUBST
10388  fi
10389  # Now quote all the things that may contain metacharacters while being
10390  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10391  # variables and quote the copies for generation of the libtool script.
10392  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10393    SED SHELL STRIP \
10394    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10395    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10396    deplibs_check_method reload_flag reload_cmds need_locks \
10397    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10398    lt_cv_sys_global_symbol_to_c_name_address \
10399    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10400    old_postinstall_cmds old_postuninstall_cmds \
10401    compiler \
10402    CC \
10403    LD \
10404    lt_prog_compiler_wl \
10405    lt_prog_compiler_pic \
10406    lt_prog_compiler_static \
10407    lt_prog_compiler_no_builtin_flag \
10408    export_dynamic_flag_spec \
10409    thread_safe_flag_spec \
10410    whole_archive_flag_spec \
10411    enable_shared_with_static_runtimes \
10412    old_archive_cmds \
10413    old_archive_from_new_cmds \
10414    predep_objects \
10415    postdep_objects \
10416    predeps \
10417    postdeps \
10418    compiler_lib_search_path \
10419    compiler_lib_search_dirs \
10420    archive_cmds \
10421    archive_expsym_cmds \
10422    postinstall_cmds \
10423    postuninstall_cmds \
10424    old_archive_from_expsyms_cmds \
10425    allow_undefined_flag \
10426    no_undefined_flag \
10427    export_symbols_cmds \
10428    hardcode_libdir_flag_spec \
10429    hardcode_libdir_flag_spec_ld \
10430    hardcode_libdir_separator \
10431    hardcode_automatic \
10432    module_cmds \
10433    module_expsym_cmds \
10434    lt_cv_prog_compiler_c_o \
10435    fix_srcfile_path \
10436    exclude_expsyms \
10437    include_expsyms; do
10438
10439    case $var in
10440    old_archive_cmds | \
10441    old_archive_from_new_cmds | \
10442    archive_cmds | \
10443    archive_expsym_cmds | \
10444    module_cmds | \
10445    module_expsym_cmds | \
10446    old_archive_from_expsyms_cmds | \
10447    export_symbols_cmds | \
10448    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10449    postinstall_cmds | postuninstall_cmds | \
10450    old_postinstall_cmds | old_postuninstall_cmds | \
10451    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10452      # Double-quote double-evaled strings.
10453      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10454      ;;
10455    *)
10456      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10457      ;;
10458    esac
10459  done
10460
10461  case $lt_echo in
10462  *'\$0 --fallback-echo"')
10463    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10464    ;;
10465  esac
10466
10467cfgfile="${ofile}T"
10468  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10469  $rm -f "$cfgfile"
10470  { echo "$as_me:$LINENO: creating $ofile" >&5
10471echo "$as_me: creating $ofile" >&6;}
10472
10473  cat <<__EOF__ >> "$cfgfile"
10474#! $SHELL
10475
10476# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10477# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10478# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10479#
10480# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10481# Free Software Foundation, Inc.
10482#
10483# This file is part of GNU Libtool:
10484# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10485#
10486# This program is free software; you can redistribute it and/or modify
10487# it under the terms of the GNU General Public License as published by
10488# the Free Software Foundation; either version 2 of the License, or
10489# (at your option) any later version.
10490#
10491# This program is distributed in the hope that it will be useful, but
10492# WITHOUT ANY WARRANTY; without even the implied warranty of
10493# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10494# General Public License for more details.
10495#
10496# You should have received a copy of the GNU General Public License
10497# along with this program; if not, write to the Free Software
10498# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10499#
10500# As a special exception to the GNU General Public License, if you
10501# distribute this file as part of a program that contains a
10502# configuration script generated by Autoconf, you may include it under
10503# the same distribution terms that you use for the rest of that program.
10504
10505# A sed program that does not truncate output.
10506SED=$lt_SED
10507
10508# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10509Xsed="$SED -e 1s/^X//"
10510
10511# The HP-UX ksh and POSIX shell print the target directory to stdout
10512# if CDPATH is set.
10513(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10514
10515# The names of the tagged configurations supported by this script.
10516available_tags=
10517
10518# ### BEGIN LIBTOOL CONFIG
10519
10520# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10521
10522# Shell to use when invoking shell scripts.
10523SHELL=$lt_SHELL
10524
10525# Whether or not to build shared libraries.
10526build_libtool_libs=$enable_shared
10527
10528# Whether or not to build static libraries.
10529build_old_libs=$enable_static
10530
10531# Whether or not to add -lc for building shared libraries.
10532build_libtool_need_lc=$archive_cmds_need_lc
10533
10534# Whether or not to disallow shared libs when runtime libs are static
10535allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10536
10537# Whether or not to optimize for fast installation.
10538fast_install=$enable_fast_install
10539
10540# The host system.
10541host_alias=$host_alias
10542host=$host
10543host_os=$host_os
10544
10545# The build system.
10546build_alias=$build_alias
10547build=$build
10548build_os=$build_os
10549
10550# An echo program that does not interpret backslashes.
10551echo=$lt_echo
10552
10553# The archiver.
10554AR=$lt_AR
10555AR_FLAGS=$lt_AR_FLAGS
10556
10557# A C compiler.
10558LTCC=$lt_LTCC
10559
10560# LTCC compiler flags.
10561LTCFLAGS=$lt_LTCFLAGS
10562
10563# A language-specific compiler.
10564CC=$lt_compiler
10565
10566# Is the compiler the GNU C compiler?
10567with_gcc=$GCC
10568
10569# An ERE matcher.
10570EGREP=$lt_EGREP
10571
10572# The linker used to build libraries.
10573LD=$lt_LD
10574
10575# Whether we need hard or soft links.
10576LN_S=$lt_LN_S
10577
10578# A BSD-compatible nm program.
10579NM=$lt_NM
10580
10581# A symbol stripping program
10582STRIP=$lt_STRIP
10583
10584# Used to examine libraries when file_magic_cmd begins "file"
10585MAGIC_CMD=$MAGIC_CMD
10586
10587# Used on cygwin: DLL creation program.
10588DLLTOOL="$DLLTOOL"
10589
10590# Used on cygwin: object dumper.
10591OBJDUMP="$OBJDUMP"
10592
10593# Used on cygwin: assembler.
10594AS="$AS"
10595
10596# The name of the directory that contains temporary libtool files.
10597objdir=$objdir
10598
10599# How to create reloadable object files.
10600reload_flag=$lt_reload_flag
10601reload_cmds=$lt_reload_cmds
10602
10603# How to pass a linker flag through the compiler.
10604wl=$lt_lt_prog_compiler_wl
10605
10606# Object file suffix (normally "o").
10607objext="$ac_objext"
10608
10609# Old archive suffix (normally "a").
10610libext="$libext"
10611
10612# Shared library suffix (normally ".so").
10613shrext_cmds='$shrext_cmds'
10614
10615# Executable file suffix (normally "").
10616exeext="$exeext"
10617
10618# Additional compiler flags for building library objects.
10619pic_flag=$lt_lt_prog_compiler_pic
10620pic_mode=$pic_mode
10621
10622# What is the maximum length of a command?
10623max_cmd_len=$lt_cv_sys_max_cmd_len
10624
10625# Does compiler simultaneously support -c and -o options?
10626compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10627
10628# Must we lock files when doing compilation?
10629need_locks=$lt_need_locks
10630
10631# Do we need the lib prefix for modules?
10632need_lib_prefix=$need_lib_prefix
10633
10634# Do we need a version for libraries?
10635need_version=$need_version
10636
10637# Whether dlopen is supported.
10638dlopen_support=$enable_dlopen
10639
10640# Whether dlopen of programs is supported.
10641dlopen_self=$enable_dlopen_self
10642
10643# Whether dlopen of statically linked programs is supported.
10644dlopen_self_static=$enable_dlopen_self_static
10645
10646# Compiler flag to prevent dynamic linking.
10647link_static_flag=$lt_lt_prog_compiler_static
10648
10649# Compiler flag to turn off builtin functions.
10650no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10651
10652# Compiler flag to allow reflexive dlopens.
10653export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10654
10655# Compiler flag to generate shared objects directly from archives.
10656whole_archive_flag_spec=$lt_whole_archive_flag_spec
10657
10658# Compiler flag to generate thread-safe objects.
10659thread_safe_flag_spec=$lt_thread_safe_flag_spec
10660
10661# Library versioning type.
10662version_type=$version_type
10663
10664# Format of library name prefix.
10665libname_spec=$lt_libname_spec
10666
10667# List of archive names.  First name is the real one, the rest are links.
10668# The last name is the one that the linker finds with -lNAME.
10669library_names_spec=$lt_library_names_spec
10670
10671# The coded name of the library, if different from the real name.
10672soname_spec=$lt_soname_spec
10673
10674# Commands used to build and install an old-style archive.
10675RANLIB=$lt_RANLIB
10676old_archive_cmds=$lt_old_archive_cmds
10677old_postinstall_cmds=$lt_old_postinstall_cmds
10678old_postuninstall_cmds=$lt_old_postuninstall_cmds
10679
10680# Create an old-style archive from a shared archive.
10681old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10682
10683# Create a temporary old-style archive to link instead of a shared archive.
10684old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10685
10686# Commands used to build and install a shared archive.
10687archive_cmds=$lt_archive_cmds
10688archive_expsym_cmds=$lt_archive_expsym_cmds
10689postinstall_cmds=$lt_postinstall_cmds
10690postuninstall_cmds=$lt_postuninstall_cmds
10691
10692# Commands used to build a loadable module (assumed same as above if empty)
10693module_cmds=$lt_module_cmds
10694module_expsym_cmds=$lt_module_expsym_cmds
10695
10696# Commands to strip libraries.
10697old_striplib=$lt_old_striplib
10698striplib=$lt_striplib
10699
10700# Dependencies to place before the objects being linked to create a
10701# shared library.
10702predep_objects=$lt_predep_objects
10703
10704# Dependencies to place after the objects being linked to create a
10705# shared library.
10706postdep_objects=$lt_postdep_objects
10707
10708# Dependencies to place before the objects being linked to create a
10709# shared library.
10710predeps=$lt_predeps
10711
10712# Dependencies to place after the objects being linked to create a
10713# shared library.
10714postdeps=$lt_postdeps
10715
10716# The directories searched by this compiler when creating a shared
10717# library
10718compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10719
10720# The library search path used internally by the compiler when linking
10721# a shared library.
10722compiler_lib_search_path=$lt_compiler_lib_search_path
10723
10724# Method to check whether dependent libraries are shared objects.
10725deplibs_check_method=$lt_deplibs_check_method
10726
10727# Command to use when deplibs_check_method == file_magic.
10728file_magic_cmd=$lt_file_magic_cmd
10729
10730# Flag that allows shared libraries with undefined symbols to be built.
10731allow_undefined_flag=$lt_allow_undefined_flag
10732
10733# Flag that forces no undefined symbols.
10734no_undefined_flag=$lt_no_undefined_flag
10735
10736# Commands used to finish a libtool library installation in a directory.
10737finish_cmds=$lt_finish_cmds
10738
10739# Same as above, but a single script fragment to be evaled but not shown.
10740finish_eval=$lt_finish_eval
10741
10742# Take the output of nm and produce a listing of raw symbols and C names.
10743global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10744
10745# Transform the output of nm in a proper C declaration
10746global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10747
10748# Transform the output of nm in a C name address pair
10749global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10750
10751# This is the shared library runtime path variable.
10752runpath_var=$runpath_var
10753
10754# This is the shared library path variable.
10755shlibpath_var=$shlibpath_var
10756
10757# Is shlibpath searched before the hard-coded library search path?
10758shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10759
10760# How to hardcode a shared library path into an executable.
10761hardcode_action=$hardcode_action
10762
10763# Whether we should hardcode library paths into libraries.
10764hardcode_into_libs=$hardcode_into_libs
10765
10766# Flag to hardcode \$libdir into a binary during linking.
10767# This must work even if \$libdir does not exist.
10768hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10769
10770# If ld is used when linking, flag to hardcode \$libdir into
10771# a binary during linking. This must work even if \$libdir does
10772# not exist.
10773hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10774
10775# Whether we need a single -rpath flag with a separated argument.
10776hardcode_libdir_separator=$lt_hardcode_libdir_separator
10777
10778# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10779# resulting binary.
10780hardcode_direct=$hardcode_direct
10781
10782# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10783# resulting binary.
10784hardcode_minus_L=$hardcode_minus_L
10785
10786# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10787# the resulting binary.
10788hardcode_shlibpath_var=$hardcode_shlibpath_var
10789
10790# Set to yes if building a shared library automatically hardcodes DIR into the library
10791# and all subsequent libraries and executables linked against it.
10792hardcode_automatic=$hardcode_automatic
10793
10794# Variables whose values should be saved in libtool wrapper scripts and
10795# restored at relink time.
10796variables_saved_for_relink="$variables_saved_for_relink"
10797
10798# Whether libtool must link a program against all its dependency libraries.
10799link_all_deplibs=$link_all_deplibs
10800
10801# Compile-time system search path for libraries
10802sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10803
10804# Run-time system search path for libraries
10805sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10806
10807# Fix the shell variable \$srcfile for the compiler.
10808fix_srcfile_path=$lt_fix_srcfile_path
10809
10810# Set to yes if exported symbols are required.
10811always_export_symbols=$always_export_symbols
10812
10813# The commands to list exported symbols.
10814export_symbols_cmds=$lt_export_symbols_cmds
10815
10816# The commands to extract the exported symbol list from a shared archive.
10817extract_expsyms_cmds=$lt_extract_expsyms_cmds
10818
10819# Symbols that should not be listed in the preloaded symbols.
10820exclude_expsyms=$lt_exclude_expsyms
10821
10822# Symbols that must always be exported.
10823include_expsyms=$lt_include_expsyms
10824
10825# ### END LIBTOOL CONFIG
10826
10827__EOF__
10828
10829
10830  case $host_os in
10831  aix3*)
10832    cat <<\EOF >> "$cfgfile"
10833
10834# AIX sometimes has problems with the GCC collect2 program.  For some
10835# reason, if we set the COLLECT_NAMES environment variable, the problems
10836# vanish in a puff of smoke.
10837if test "X${COLLECT_NAMES+set}" != Xset; then
10838  COLLECT_NAMES=
10839  export COLLECT_NAMES
10840fi
10841EOF
10842    ;;
10843  esac
10844
10845  # We use sed instead of cat because bash on DJGPP gets confused if
10846  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10847  # text mode, it properly converts lines to CR/LF.  This bash problem
10848  # is reportedly fixed, but why not run on old versions too?
10849  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10850
10851  mv -f "$cfgfile" "$ofile" || \
10852    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10853  chmod +x "$ofile"
10854
10855else
10856  # If there is no Makefile yet, we rely on a make rule to execute
10857  # `config.status --recheck' to rerun these tests and create the
10858  # libtool script then.
10859  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10860  if test -f "$ltmain_in"; then
10861    test -f Makefile && make "$ltmain"
10862  fi
10863fi
10864
10865
10866ac_ext=cpp
10867ac_cpp='$CXXCPP $CPPFLAGS'
10868ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10869ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10870ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10871
10872CC="$lt_save_CC"
10873
10874
10875# Check whether --with-tags was given.
10876if test "${with_tags+set}" = set; then
10877  withval=$with_tags; tagnames="$withval"
10878fi
10879
10880
10881if test -f "$ltmain" && test -n "$tagnames"; then
10882  if test ! -f "${ofile}"; then
10883    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10884echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10885  fi
10886
10887  if test -z "$LTCC"; then
10888    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10889    if test -z "$LTCC"; then
10890      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10891echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10892    else
10893      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10894echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10895    fi
10896  fi
10897  if test -z "$LTCFLAGS"; then
10898    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10899  fi
10900
10901  # Extract list of available tagged configurations in $ofile.
10902  # Note that this assumes the entire list is on one line.
10903  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10904
10905  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10906  for tagname in $tagnames; do
10907    IFS="$lt_save_ifs"
10908    # Check whether tagname contains only valid characters
10909    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10910    "") ;;
10911    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10912echo "$as_me: error: invalid tag name: $tagname" >&2;}
10913   { (exit 1); exit 1; }; }
10914	;;
10915    esac
10916
10917    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10918    then
10919      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10920echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10921   { (exit 1); exit 1; }; }
10922    fi
10923
10924    # Update the list of available tags.
10925    if test -n "$tagname"; then
10926      echo appending configuration tag \"$tagname\" to $ofile
10927
10928      case $tagname in
10929      CXX)
10930	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10931	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10932	    (test "X$CXX" != "Xg++"))) ; then
10933	  ac_ext=cpp
10934ac_cpp='$CXXCPP $CPPFLAGS'
10935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10938
10939
10940
10941
10942archive_cmds_need_lc_CXX=no
10943allow_undefined_flag_CXX=
10944always_export_symbols_CXX=no
10945archive_expsym_cmds_CXX=
10946export_dynamic_flag_spec_CXX=
10947hardcode_direct_CXX=no
10948hardcode_libdir_flag_spec_CXX=
10949hardcode_libdir_flag_spec_ld_CXX=
10950hardcode_libdir_separator_CXX=
10951hardcode_minus_L_CXX=no
10952hardcode_shlibpath_var_CXX=unsupported
10953hardcode_automatic_CXX=no
10954module_cmds_CXX=
10955module_expsym_cmds_CXX=
10956link_all_deplibs_CXX=unknown
10957old_archive_cmds_CXX=$old_archive_cmds
10958no_undefined_flag_CXX=
10959whole_archive_flag_spec_CXX=
10960enable_shared_with_static_runtimes_CXX=no
10961
10962# Dependencies to place before and after the object being linked:
10963predep_objects_CXX=
10964postdep_objects_CXX=
10965predeps_CXX=
10966postdeps_CXX=
10967compiler_lib_search_path_CXX=
10968compiler_lib_search_dirs_CXX=
10969
10970# Source file extension for C++ test sources.
10971ac_ext=cpp
10972
10973# Object file extension for compiled C++ test sources.
10974objext=o
10975objext_CXX=$objext
10976
10977# Code to be used in simple compile tests
10978lt_simple_compile_test_code="int some_variable = 0;"
10979
10980# Code to be used in simple link tests
10981lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10982
10983# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10984
10985# If no C compiler was specified, use CC.
10986LTCC=${LTCC-"$CC"}
10987
10988# If no C compiler flags were specified, use CFLAGS.
10989LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10990
10991# Allow CC to be a program name with arguments.
10992compiler=$CC
10993
10994
10995# save warnings/boilerplate of simple test code
10996ac_outfile=conftest.$ac_objext
10997echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10998eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10999_lt_compiler_boilerplate=`cat conftest.err`
11000$rm conftest*
11001
11002ac_outfile=conftest.$ac_objext
11003echo "$lt_simple_link_test_code" >conftest.$ac_ext
11004eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11005_lt_linker_boilerplate=`cat conftest.err`
11006$rm -r conftest*
11007
11008
11009# Allow CC to be a program name with arguments.
11010lt_save_CC=$CC
11011lt_save_LD=$LD
11012lt_save_GCC=$GCC
11013GCC=$GXX
11014lt_save_with_gnu_ld=$with_gnu_ld
11015lt_save_path_LD=$lt_cv_path_LD
11016if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11017  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11018else
11019  $as_unset lt_cv_prog_gnu_ld
11020fi
11021if test -n "${lt_cv_path_LDCXX+set}"; then
11022  lt_cv_path_LD=$lt_cv_path_LDCXX
11023else
11024  $as_unset lt_cv_path_LD
11025fi
11026test -z "${LDCXX+set}" || LD=$LDCXX
11027CC=${CXX-"c++"}
11028compiler=$CC
11029compiler_CXX=$CC
11030for cc_temp in $compiler""; do
11031  case $cc_temp in
11032    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11033    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11034    \-*) ;;
11035    *) break;;
11036  esac
11037done
11038cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11039
11040
11041# We don't want -fno-exception wen compiling C++ code, so set the
11042# no_builtin_flag separately
11043if test "$GXX" = yes; then
11044  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11045else
11046  lt_prog_compiler_no_builtin_flag_CXX=
11047fi
11048
11049if test "$GXX" = yes; then
11050  # Set up default GNU C++ configuration
11051
11052
11053# Check whether --with-gnu-ld was given.
11054if test "${with_gnu_ld+set}" = set; then
11055  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11056else
11057  with_gnu_ld=no
11058fi
11059
11060ac_prog=ld
11061if test "$GCC" = yes; then
11062  # Check if gcc -print-prog-name=ld gives a path.
11063  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11064echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11065  case $host in
11066  *-*-mingw*)
11067    # gcc leaves a trailing carriage return which upsets mingw
11068    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11069  *)
11070    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11071  esac
11072  case $ac_prog in
11073    # Accept absolute paths.
11074    [\\/]* | ?:[\\/]*)
11075      re_direlt='/[^/][^/]*/\.\./'
11076      # Canonicalize the pathname of ld
11077      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11078      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11079	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11080      done
11081      test -z "$LD" && LD="$ac_prog"
11082      ;;
11083  "")
11084    # If it fails, then pretend we aren't using GCC.
11085    ac_prog=ld
11086    ;;
11087  *)
11088    # If it is relative, then search for the first ld in PATH.
11089    with_gnu_ld=unknown
11090    ;;
11091  esac
11092elif test "$with_gnu_ld" = yes; then
11093  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11094echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11095else
11096  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11097echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11098fi
11099if test "${lt_cv_path_LD+set}" = set; then
11100  echo $ECHO_N "(cached) $ECHO_C" >&6
11101else
11102  if test -z "$LD"; then
11103  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11104  for ac_dir in $PATH; do
11105    IFS="$lt_save_ifs"
11106    test -z "$ac_dir" && ac_dir=.
11107    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11108      lt_cv_path_LD="$ac_dir/$ac_prog"
11109      # Check to see if the program is GNU ld.  I'd rather use --version,
11110      # but apparently some variants of GNU ld only accept -v.
11111      # Break only if it was the GNU/non-GNU ld that we prefer.
11112      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11113      *GNU* | *'with BFD'*)
11114	test "$with_gnu_ld" != no && break
11115	;;
11116      *)
11117	test "$with_gnu_ld" != yes && break
11118	;;
11119      esac
11120    fi
11121  done
11122  IFS="$lt_save_ifs"
11123else
11124  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11125fi
11126fi
11127
11128LD="$lt_cv_path_LD"
11129if test -n "$LD"; then
11130  { echo "$as_me:$LINENO: result: $LD" >&5
11131echo "${ECHO_T}$LD" >&6; }
11132else
11133  { echo "$as_me:$LINENO: result: no" >&5
11134echo "${ECHO_T}no" >&6; }
11135fi
11136test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11137echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11138   { (exit 1); exit 1; }; }
11139{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11140echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11141if test "${lt_cv_prog_gnu_ld+set}" = set; then
11142  echo $ECHO_N "(cached) $ECHO_C" >&6
11143else
11144  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11145case `$LD -v 2>&1 </dev/null` in
11146*GNU* | *'with BFD'*)
11147  lt_cv_prog_gnu_ld=yes
11148  ;;
11149*)
11150  lt_cv_prog_gnu_ld=no
11151  ;;
11152esac
11153fi
11154{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11155echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11156with_gnu_ld=$lt_cv_prog_gnu_ld
11157
11158
11159
11160  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11161  # archiving commands below assume that GNU ld is being used.
11162  if test "$with_gnu_ld" = yes; then
11163    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11164    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'
11165
11166    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11167    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11168
11169    # If archive_cmds runs LD, not CC, wlarc should be empty
11170    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11171    #     investigate it a little bit more. (MM)
11172    wlarc='${wl}'
11173
11174    # ancient GNU ld didn't support --whole-archive et. al.
11175    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11176	grep 'no-whole-archive' > /dev/null; then
11177      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11178    else
11179      whole_archive_flag_spec_CXX=
11180    fi
11181  else
11182    with_gnu_ld=no
11183    wlarc=
11184
11185    # A generic and very simple default shared library creation
11186    # command for GNU C++ for the case where it uses the native
11187    # linker, instead of GNU ld.  If possible, this setting should
11188    # overridden to take advantage of the native linker features on
11189    # the platform it is being used on.
11190    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11191  fi
11192
11193  # Commands to make compiler produce verbose output that lists
11194  # what "hidden" libraries, object files and flags are used when
11195  # linking a shared library.
11196  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11197
11198else
11199  GXX=no
11200  with_gnu_ld=no
11201  wlarc=
11202fi
11203
11204# PORTME: fill in a description of your system's C++ link characteristics
11205{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11206echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11207ld_shlibs_CXX=yes
11208case $host_os in
11209  aix3*)
11210    # FIXME: insert proper C++ library support
11211    ld_shlibs_CXX=no
11212    ;;
11213  aix[4-9]*)
11214    if test "$host_cpu" = ia64; then
11215      # On IA64, the linker does run time linking by default, so we don't
11216      # have to do anything special.
11217      aix_use_runtimelinking=no
11218      exp_sym_flag='-Bexport'
11219      no_entry_flag=""
11220    else
11221      aix_use_runtimelinking=no
11222
11223      # Test if we are trying to use run time linking or normal
11224      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11225      # need to do runtime linking.
11226      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11227	for ld_flag in $LDFLAGS; do
11228	  case $ld_flag in
11229	  *-brtl*)
11230	    aix_use_runtimelinking=yes
11231	    break
11232	    ;;
11233	  esac
11234	done
11235	;;
11236      esac
11237
11238      exp_sym_flag='-bexport'
11239      no_entry_flag='-bnoentry'
11240    fi
11241
11242    # When large executables or shared objects are built, AIX ld can
11243    # have problems creating the table of contents.  If linking a library
11244    # or program results in "error TOC overflow" add -mminimal-toc to
11245    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11246    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11247
11248    archive_cmds_CXX=''
11249    hardcode_direct_CXX=yes
11250    hardcode_libdir_separator_CXX=':'
11251    link_all_deplibs_CXX=yes
11252
11253    if test "$GXX" = yes; then
11254      case $host_os in aix4.[012]|aix4.[012].*)
11255      # We only want to do this on AIX 4.2 and lower, the check
11256      # below for broken collect2 doesn't work under 4.3+
11257	collect2name=`${CC} -print-prog-name=collect2`
11258	if test -f "$collect2name" && \
11259	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11260	then
11261	  # We have reworked collect2
11262	  :
11263	else
11264	  # We have old collect2
11265	  hardcode_direct_CXX=unsupported
11266	  # It fails to find uninstalled libraries when the uninstalled
11267	  # path is not listed in the libpath.  Setting hardcode_minus_L
11268	  # to unsupported forces relinking
11269	  hardcode_minus_L_CXX=yes
11270	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11271	  hardcode_libdir_separator_CXX=
11272	fi
11273	;;
11274      esac
11275      shared_flag='-shared'
11276      if test "$aix_use_runtimelinking" = yes; then
11277	shared_flag="$shared_flag "'${wl}-G'
11278      fi
11279    else
11280      # not using gcc
11281      if test "$host_cpu" = ia64; then
11282	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11283	# chokes on -Wl,-G. The following line is correct:
11284	shared_flag='-G'
11285      else
11286	if test "$aix_use_runtimelinking" = yes; then
11287	  shared_flag='${wl}-G'
11288	else
11289	  shared_flag='${wl}-bM:SRE'
11290	fi
11291      fi
11292    fi
11293
11294    # It seems that -bexpall does not export symbols beginning with
11295    # underscore (_), so it is better to generate a list of symbols to export.
11296    always_export_symbols_CXX=yes
11297    if test "$aix_use_runtimelinking" = yes; then
11298      # Warning - without using the other runtime loading flags (-brtl),
11299      # -berok will link without error, but may produce a broken library.
11300      allow_undefined_flag_CXX='-berok'
11301      # Determine the default libpath from the value encoded in an empty executable.
11302      cat >conftest.$ac_ext <<_ACEOF
11303/* confdefs.h.  */
11304_ACEOF
11305cat confdefs.h >>conftest.$ac_ext
11306cat >>conftest.$ac_ext <<_ACEOF
11307/* end confdefs.h.  */
11308
11309int
11310main ()
11311{
11312
11313  ;
11314  return 0;
11315}
11316_ACEOF
11317rm -f conftest.$ac_objext conftest$ac_exeext
11318if { (ac_try="$ac_link"
11319case "(($ac_try" in
11320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321  *) ac_try_echo=$ac_try;;
11322esac
11323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324  (eval "$ac_link") 2>conftest.er1
11325  ac_status=$?
11326  grep -v '^ *+' conftest.er1 >conftest.err
11327  rm -f conftest.er1
11328  cat conftest.err >&5
11329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330  (exit $ac_status); } && {
11331	 test -z "$ac_cxx_werror_flag" ||
11332	 test ! -s conftest.err
11333       } && test -s conftest$ac_exeext &&
11334       $as_test_x conftest$ac_exeext; then
11335
11336lt_aix_libpath_sed='
11337    /Import File Strings/,/^$/ {
11338	/^0/ {
11339	    s/^0  *\(.*\)$/\1/
11340	    p
11341	}
11342    }'
11343aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11344# Check for a 64-bit object if we didn't find anything.
11345if test -z "$aix_libpath"; then
11346  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11347fi
11348else
11349  echo "$as_me: failed program was:" >&5
11350sed 's/^/| /' conftest.$ac_ext >&5
11351
11352
11353fi
11354
11355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11356      conftest$ac_exeext conftest.$ac_ext
11357if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11358
11359      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11360
11361      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"
11362     else
11363      if test "$host_cpu" = ia64; then
11364	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11365	allow_undefined_flag_CXX="-z nodefs"
11366	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"
11367      else
11368	# Determine the default libpath from the value encoded in an empty executable.
11369	cat >conftest.$ac_ext <<_ACEOF
11370/* confdefs.h.  */
11371_ACEOF
11372cat confdefs.h >>conftest.$ac_ext
11373cat >>conftest.$ac_ext <<_ACEOF
11374/* end confdefs.h.  */
11375
11376int
11377main ()
11378{
11379
11380  ;
11381  return 0;
11382}
11383_ACEOF
11384rm -f conftest.$ac_objext conftest$ac_exeext
11385if { (ac_try="$ac_link"
11386case "(($ac_try" in
11387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388  *) ac_try_echo=$ac_try;;
11389esac
11390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391  (eval "$ac_link") 2>conftest.er1
11392  ac_status=$?
11393  grep -v '^ *+' conftest.er1 >conftest.err
11394  rm -f conftest.er1
11395  cat conftest.err >&5
11396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397  (exit $ac_status); } && {
11398	 test -z "$ac_cxx_werror_flag" ||
11399	 test ! -s conftest.err
11400       } && test -s conftest$ac_exeext &&
11401       $as_test_x conftest$ac_exeext; then
11402
11403lt_aix_libpath_sed='
11404    /Import File Strings/,/^$/ {
11405	/^0/ {
11406	    s/^0  *\(.*\)$/\1/
11407	    p
11408	}
11409    }'
11410aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11411# Check for a 64-bit object if we didn't find anything.
11412if test -z "$aix_libpath"; then
11413  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11414fi
11415else
11416  echo "$as_me: failed program was:" >&5
11417sed 's/^/| /' conftest.$ac_ext >&5
11418
11419
11420fi
11421
11422rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11423      conftest$ac_exeext conftest.$ac_ext
11424if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11425
11426	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11427	# Warning - without using the other run time loading flags,
11428	# -berok will link without error, but may produce a broken library.
11429	no_undefined_flag_CXX=' ${wl}-bernotok'
11430	allow_undefined_flag_CXX=' ${wl}-berok'
11431	# Exported symbols can be pulled into shared objects from archives
11432	whole_archive_flag_spec_CXX='$convenience'
11433	archive_cmds_need_lc_CXX=yes
11434	# This is similar to how AIX traditionally builds its shared libraries.
11435	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'
11436      fi
11437    fi
11438    ;;
11439
11440  beos*)
11441    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11442      allow_undefined_flag_CXX=unsupported
11443      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11444      # support --undefined.  This deserves some investigation.  FIXME
11445      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11446    else
11447      ld_shlibs_CXX=no
11448    fi
11449    ;;
11450
11451  chorus*)
11452    case $cc_basename in
11453      *)
11454	# FIXME: insert proper C++ library support
11455	ld_shlibs_CXX=no
11456	;;
11457    esac
11458    ;;
11459
11460  cygwin* | mingw* | pw32*)
11461    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11462    # as there is no search path for DLLs.
11463    hardcode_libdir_flag_spec_CXX='-L$libdir'
11464    allow_undefined_flag_CXX=unsupported
11465    always_export_symbols_CXX=no
11466    enable_shared_with_static_runtimes_CXX=yes
11467
11468    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11469      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'
11470      # If the export-symbols file already is a .def file (1st line
11471      # is EXPORTS), use it as is; otherwise, prepend...
11472      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11473	cp $export_symbols $output_objdir/$soname.def;
11474      else
11475	echo EXPORTS > $output_objdir/$soname.def;
11476	cat $export_symbols >> $output_objdir/$soname.def;
11477      fi~
11478      $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'
11479    else
11480      ld_shlibs_CXX=no
11481    fi
11482  ;;
11483      darwin* | rhapsody*)
11484      archive_cmds_need_lc_CXX=no
11485      hardcode_direct_CXX=no
11486      hardcode_automatic_CXX=yes
11487      hardcode_shlibpath_var_CXX=unsupported
11488      whole_archive_flag_spec_CXX=''
11489      link_all_deplibs_CXX=yes
11490      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11491      if test "$GXX" = yes ; then
11492      output_verbose_link_cmd='echo'
11493      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}"
11494      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11495      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}"
11496      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}"
11497      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11498        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}"
11499        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}"
11500      fi
11501      else
11502      case $cc_basename in
11503        xlc*)
11504         output_verbose_link_cmd='echo'
11505          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'
11506          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11507          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11508          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}'
11509          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}'
11510          ;;
11511       *)
11512         ld_shlibs_CXX=no
11513          ;;
11514      esac
11515      fi
11516        ;;
11517
11518  dgux*)
11519    case $cc_basename in
11520      ec++*)
11521	# FIXME: insert proper C++ library support
11522	ld_shlibs_CXX=no
11523	;;
11524      ghcx*)
11525	# Green Hills C++ Compiler
11526	# FIXME: insert proper C++ library support
11527	ld_shlibs_CXX=no
11528	;;
11529      *)
11530	# FIXME: insert proper C++ library support
11531	ld_shlibs_CXX=no
11532	;;
11533    esac
11534    ;;
11535  freebsd[12]*)
11536    # C++ shared libraries reported to be fairly broken before switch to ELF
11537    ld_shlibs_CXX=no
11538    ;;
11539  freebsd-elf*)
11540    archive_cmds_need_lc_CXX=no
11541    ;;
11542  freebsd* | dragonfly*)
11543    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11544    # conventions
11545    ld_shlibs_CXX=yes
11546    ;;
11547  gnu*)
11548    ;;
11549  hpux9*)
11550    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11551    hardcode_libdir_separator_CXX=:
11552    export_dynamic_flag_spec_CXX='${wl}-E'
11553    hardcode_direct_CXX=yes
11554    hardcode_minus_L_CXX=yes # Not in the search PATH,
11555				# but as the default
11556				# location of the library.
11557
11558    case $cc_basename in
11559    CC*)
11560      # FIXME: insert proper C++ library support
11561      ld_shlibs_CXX=no
11562      ;;
11563    aCC*)
11564      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'
11565      # Commands to make compiler produce verbose output that lists
11566      # what "hidden" libraries, object files and flags are used when
11567      # linking a shared library.
11568      #
11569      # There doesn't appear to be a way to prevent this compiler from
11570      # explicitly linking system object files so we need to strip them
11571      # from the output so that they don't get included in the library
11572      # dependencies.
11573      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'
11574      ;;
11575    *)
11576      if test "$GXX" = yes; then
11577        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'
11578      else
11579        # FIXME: insert proper C++ library support
11580        ld_shlibs_CXX=no
11581      fi
11582      ;;
11583    esac
11584    ;;
11585  hpux10*|hpux11*)
11586    if test $with_gnu_ld = no; then
11587      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11588      hardcode_libdir_separator_CXX=:
11589
11590      case $host_cpu in
11591      hppa*64*|ia64*) ;;
11592      *)
11593	export_dynamic_flag_spec_CXX='${wl}-E'
11594        ;;
11595      esac
11596    fi
11597    case $host_cpu in
11598    hppa*64*|ia64*)
11599      hardcode_direct_CXX=no
11600      hardcode_shlibpath_var_CXX=no
11601      ;;
11602    *)
11603      hardcode_direct_CXX=yes
11604      hardcode_minus_L_CXX=yes # Not in the search PATH,
11605					      # but as the default
11606					      # location of the library.
11607      ;;
11608    esac
11609
11610    case $cc_basename in
11611      CC*)
11612	# FIXME: insert proper C++ library support
11613	ld_shlibs_CXX=no
11614	;;
11615      aCC*)
11616	case $host_cpu in
11617	hppa*64*)
11618	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11619	  ;;
11620	ia64*)
11621	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11622	  ;;
11623	*)
11624	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11625	  ;;
11626	esac
11627	# Commands to make compiler produce verbose output that lists
11628	# what "hidden" libraries, object files and flags are used when
11629	# linking a shared library.
11630	#
11631	# There doesn't appear to be a way to prevent this compiler from
11632	# explicitly linking system object files so we need to strip them
11633	# from the output so that they don't get included in the library
11634	# dependencies.
11635	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'
11636	;;
11637      *)
11638	if test "$GXX" = yes; then
11639	  if test $with_gnu_ld = no; then
11640	    case $host_cpu in
11641	    hppa*64*)
11642	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11643	      ;;
11644	    ia64*)
11645	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11646	      ;;
11647	    *)
11648	      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'
11649	      ;;
11650	    esac
11651	  fi
11652	else
11653	  # FIXME: insert proper C++ library support
11654	  ld_shlibs_CXX=no
11655	fi
11656	;;
11657    esac
11658    ;;
11659  interix[3-9]*)
11660    hardcode_direct_CXX=no
11661    hardcode_shlibpath_var_CXX=no
11662    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11663    export_dynamic_flag_spec_CXX='${wl}-E'
11664    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11665    # Instead, shared libraries are loaded at an image base (0x10000000 by
11666    # default) and relocated if they conflict, which is a slow very memory
11667    # consuming and fragmenting process.  To avoid this, we pick a random,
11668    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11669    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11670    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'
11671    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'
11672    ;;
11673  irix5* | irix6*)
11674    case $cc_basename in
11675      CC*)
11676	# SGI C++
11677	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'
11678
11679	# Archives containing C++ object files must be created using
11680	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11681	# necessary to make sure instantiated templates are included
11682	# in the archive.
11683	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11684	;;
11685      *)
11686	if test "$GXX" = yes; then
11687	  if test "$with_gnu_ld" = no; then
11688	    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'
11689	  else
11690	    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'
11691	  fi
11692	fi
11693	link_all_deplibs_CXX=yes
11694	;;
11695    esac
11696    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11697    hardcode_libdir_separator_CXX=:
11698    ;;
11699  linux* | k*bsd*-gnu)
11700    case $cc_basename in
11701      KCC*)
11702	# Kuck and Associates, Inc. (KAI) C++ Compiler
11703
11704	# KCC will only create a shared library if the output file
11705	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11706	# to its proper name (with version) after linking.
11707	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'
11708	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'
11709	# Commands to make compiler produce verbose output that lists
11710	# what "hidden" libraries, object files and flags are used when
11711	# linking a shared library.
11712	#
11713	# There doesn't appear to be a way to prevent this compiler from
11714	# explicitly linking system object files so we need to strip them
11715	# from the output so that they don't get included in the library
11716	# dependencies.
11717	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'
11718
11719	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11720	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11721
11722	# Archives containing C++ object files must be created using
11723	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11724	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11725	;;
11726      icpc*)
11727	# Intel C++
11728	with_gnu_ld=yes
11729	# version 8.0 and above of icpc choke on multiply defined symbols
11730	# if we add $predep_objects and $postdep_objects, however 7.1 and
11731	# earlier do not add the objects themselves.
11732	case `$CC -V 2>&1` in
11733	*"Version 7."*)
11734  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11735  	  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'
11736	  ;;
11737	*)  # Version 8.0 or newer
11738	  tmp_idyn=
11739	  case $host_cpu in
11740	    ia64*) tmp_idyn=' -i_dynamic';;
11741	  esac
11742  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11743	  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'
11744	  ;;
11745	esac
11746	archive_cmds_need_lc_CXX=no
11747	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11748	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11749	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11750	;;
11751      pgCC* | pgcpp*)
11752        # Portland Group C++ compiler
11753	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11754  	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'
11755
11756	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11757	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11758	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'
11759        ;;
11760      cxx*)
11761	# Compaq C++
11762	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11763	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'
11764
11765	runpath_var=LD_RUN_PATH
11766	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11767	hardcode_libdir_separator_CXX=:
11768
11769	# Commands to make compiler produce verbose output that lists
11770	# what "hidden" libraries, object files and flags are used when
11771	# linking a shared library.
11772	#
11773	# There doesn't appear to be a way to prevent this compiler from
11774	# explicitly linking system object files so we need to strip them
11775	# from the output so that they don't get included in the library
11776	# dependencies.
11777	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'
11778	;;
11779      *)
11780	case `$CC -V 2>&1 | sed 5q` in
11781	*Sun\ C*)
11782	  # Sun C++ 5.9
11783	  no_undefined_flag_CXX=' -zdefs'
11784	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11785	  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'
11786	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11787	  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'
11788
11789	  # Not sure whether something based on
11790	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11791	  # would be better.
11792	  output_verbose_link_cmd='echo'
11793
11794	  # Archives containing C++ object files must be created using
11795	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11796	  # necessary to make sure instantiated templates are included
11797	  # in the archive.
11798	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11799	  ;;
11800	esac
11801	;;
11802    esac
11803    ;;
11804  lynxos*)
11805    # FIXME: insert proper C++ library support
11806    ld_shlibs_CXX=no
11807    ;;
11808  m88k*)
11809    # FIXME: insert proper C++ library support
11810    ld_shlibs_CXX=no
11811    ;;
11812  mvs*)
11813    case $cc_basename in
11814      cxx*)
11815	# FIXME: insert proper C++ library support
11816	ld_shlibs_CXX=no
11817	;;
11818      *)
11819	# FIXME: insert proper C++ library support
11820	ld_shlibs_CXX=no
11821	;;
11822    esac
11823    ;;
11824  netbsd* | netbsdelf*-gnu)
11825    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11826      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11827      wlarc=
11828      hardcode_libdir_flag_spec_CXX='-R$libdir'
11829      hardcode_direct_CXX=yes
11830      hardcode_shlibpath_var_CXX=no
11831    fi
11832    # Workaround some broken pre-1.5 toolchains
11833    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11834    ;;
11835  openbsd2*)
11836    # C++ shared libraries are fairly broken
11837    ld_shlibs_CXX=no
11838    ;;
11839  openbsd*)
11840    if test -f /usr/libexec/ld.so; then
11841      hardcode_direct_CXX=yes
11842      hardcode_shlibpath_var_CXX=no
11843      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11844      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11845      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11846	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11847	export_dynamic_flag_spec_CXX='${wl}-E'
11848	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11849      fi
11850      output_verbose_link_cmd='echo'
11851    else
11852      ld_shlibs_CXX=no
11853    fi
11854    ;;
11855  osf3*)
11856    case $cc_basename in
11857      KCC*)
11858	# Kuck and Associates, Inc. (KAI) C++ Compiler
11859
11860	# KCC will only create a shared library if the output file
11861	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11862	# to its proper name (with version) after linking.
11863	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'
11864
11865	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11866	hardcode_libdir_separator_CXX=:
11867
11868	# Archives containing C++ object files must be created using
11869	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11870	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11871
11872	;;
11873      RCC*)
11874	# Rational C++ 2.4.1
11875	# FIXME: insert proper C++ library support
11876	ld_shlibs_CXX=no
11877	;;
11878      cxx*)
11879	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11880	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'
11881
11882	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11883	hardcode_libdir_separator_CXX=:
11884
11885	# Commands to make compiler produce verbose output that lists
11886	# what "hidden" libraries, object files and flags are used when
11887	# linking a shared library.
11888	#
11889	# There doesn't appear to be a way to prevent this compiler from
11890	# explicitly linking system object files so we need to strip them
11891	# from the output so that they don't get included in the library
11892	# dependencies.
11893	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'
11894	;;
11895      *)
11896	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11897	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11898	  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'
11899
11900	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11901	  hardcode_libdir_separator_CXX=:
11902
11903	  # Commands to make compiler produce verbose output that lists
11904	  # what "hidden" libraries, object files and flags are used when
11905	  # linking a shared library.
11906	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11907
11908	else
11909	  # FIXME: insert proper C++ library support
11910	  ld_shlibs_CXX=no
11911	fi
11912	;;
11913    esac
11914    ;;
11915  osf4* | osf5*)
11916    case $cc_basename in
11917      KCC*)
11918	# Kuck and Associates, Inc. (KAI) C++ Compiler
11919
11920	# KCC will only create a shared library if the output file
11921	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11922	# to its proper name (with version) after linking.
11923	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'
11924
11925	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11926	hardcode_libdir_separator_CXX=:
11927
11928	# Archives containing C++ object files must be created using
11929	# the KAI C++ compiler.
11930	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11931	;;
11932      RCC*)
11933	# Rational C++ 2.4.1
11934	# FIXME: insert proper C++ library support
11935	ld_shlibs_CXX=no
11936	;;
11937      cxx*)
11938	allow_undefined_flag_CXX=' -expect_unresolved \*'
11939	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'
11940	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11941	  echo "-hidden">> $lib.exp~
11942	  $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~
11943	  $rm $lib.exp'
11944
11945	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11946	hardcode_libdir_separator_CXX=:
11947
11948	# Commands to make compiler produce verbose output that lists
11949	# what "hidden" libraries, object files and flags are used when
11950	# linking a shared library.
11951	#
11952	# There doesn't appear to be a way to prevent this compiler from
11953	# explicitly linking system object files so we need to strip them
11954	# from the output so that they don't get included in the library
11955	# dependencies.
11956	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'
11957	;;
11958      *)
11959	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11960	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11961	 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'
11962
11963	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11964	  hardcode_libdir_separator_CXX=:
11965
11966	  # Commands to make compiler produce verbose output that lists
11967	  # what "hidden" libraries, object files and flags are used when
11968	  # linking a shared library.
11969	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11970
11971	else
11972	  # FIXME: insert proper C++ library support
11973	  ld_shlibs_CXX=no
11974	fi
11975	;;
11976    esac
11977    ;;
11978  psos*)
11979    # FIXME: insert proper C++ library support
11980    ld_shlibs_CXX=no
11981    ;;
11982  sunos4*)
11983    case $cc_basename in
11984      CC*)
11985	# Sun C++ 4.x
11986	# FIXME: insert proper C++ library support
11987	ld_shlibs_CXX=no
11988	;;
11989      lcc*)
11990	# Lucid
11991	# FIXME: insert proper C++ library support
11992	ld_shlibs_CXX=no
11993	;;
11994      *)
11995	# FIXME: insert proper C++ library support
11996	ld_shlibs_CXX=no
11997	;;
11998    esac
11999    ;;
12000  solaris*)
12001    case $cc_basename in
12002      CC*)
12003	# Sun C++ 4.2, 5.x and Centerline C++
12004        archive_cmds_need_lc_CXX=yes
12005	no_undefined_flag_CXX=' -zdefs'
12006	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12007	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12008	$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'
12009
12010	hardcode_libdir_flag_spec_CXX='-R$libdir'
12011	hardcode_shlibpath_var_CXX=no
12012	case $host_os in
12013	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12014	  *)
12015	    # The compiler driver will combine and reorder linker options,
12016	    # but understands `-z linker_flag'.
12017	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12018	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12019	    ;;
12020	esac
12021	link_all_deplibs_CXX=yes
12022
12023	output_verbose_link_cmd='echo'
12024
12025	# Archives containing C++ object files must be created using
12026	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12027	# necessary to make sure instantiated templates are included
12028	# in the archive.
12029	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12030	;;
12031      gcx*)
12032	# Green Hills C++ Compiler
12033	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12034
12035	# The C++ compiler must be used to create the archive.
12036	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12037	;;
12038      *)
12039	# GNU C++ compiler with Solaris linker
12040	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12041	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12042	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12043	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12044	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12045		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12046
12047	    # Commands to make compiler produce verbose output that lists
12048	    # what "hidden" libraries, object files and flags are used when
12049	    # linking a shared library.
12050	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12051	  else
12052	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12053	    # platform.
12054	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12055	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12056		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12057
12058	    # Commands to make compiler produce verbose output that lists
12059	    # what "hidden" libraries, object files and flags are used when
12060	    # linking a shared library.
12061	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12062	  fi
12063
12064	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12065	  case $host_os in
12066	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12067	  *)
12068	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12069	    ;;
12070	  esac
12071	fi
12072	;;
12073    esac
12074    ;;
12075  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12076    no_undefined_flag_CXX='${wl}-z,text'
12077    archive_cmds_need_lc_CXX=no
12078    hardcode_shlibpath_var_CXX=no
12079    runpath_var='LD_RUN_PATH'
12080
12081    case $cc_basename in
12082      CC*)
12083	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12084	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12085	;;
12086      *)
12087	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12088	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12089	;;
12090    esac
12091    ;;
12092  sysv5* | sco3.2v5* | sco5v6*)
12093    # Note: We can NOT use -z defs as we might desire, because we do not
12094    # link with -lc, and that would cause any symbols used from libc to
12095    # always be unresolved, which means just about no library would
12096    # ever link correctly.  If we're not using GNU ld we use -z text
12097    # though, which does catch some bad symbols but isn't as heavy-handed
12098    # as -z defs.
12099    # For security reasons, it is highly recommended that you always
12100    # use absolute paths for naming shared libraries, and exclude the
12101    # DT_RUNPATH tag from executables and libraries.  But doing so
12102    # requires that you compile everything twice, which is a pain.
12103    # So that behaviour is only enabled if SCOABSPATH is set to a
12104    # non-empty value in the environment.  Most likely only useful for
12105    # creating official distributions of packages.
12106    # This is a hack until libtool officially supports absolute path
12107    # names for shared libraries.
12108    no_undefined_flag_CXX='${wl}-z,text'
12109    allow_undefined_flag_CXX='${wl}-z,nodefs'
12110    archive_cmds_need_lc_CXX=no
12111    hardcode_shlibpath_var_CXX=no
12112    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12113    hardcode_libdir_separator_CXX=':'
12114    link_all_deplibs_CXX=yes
12115    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12116    runpath_var='LD_RUN_PATH'
12117
12118    case $cc_basename in
12119      CC*)
12120	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12121	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12122	;;
12123      *)
12124	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12125	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12126	;;
12127    esac
12128    ;;
12129  tandem*)
12130    case $cc_basename in
12131      NCC*)
12132	# NonStop-UX NCC 3.20
12133	# FIXME: insert proper C++ library support
12134	ld_shlibs_CXX=no
12135	;;
12136      *)
12137	# FIXME: insert proper C++ library support
12138	ld_shlibs_CXX=no
12139	;;
12140    esac
12141    ;;
12142  vxworks*)
12143    # FIXME: insert proper C++ library support
12144    ld_shlibs_CXX=no
12145    ;;
12146  *)
12147    # FIXME: insert proper C++ library support
12148    ld_shlibs_CXX=no
12149    ;;
12150esac
12151{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12152echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12153test "$ld_shlibs_CXX" = no && can_build_shared=no
12154
12155GCC_CXX="$GXX"
12156LD_CXX="$LD"
12157
12158cat > conftest.$ac_ext <<EOF
12159class Foo
12160{
12161public:
12162  Foo (void) { a = 0; }
12163private:
12164  int a;
12165};
12166EOF
12167
12168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12169  (eval $ac_compile) 2>&5
12170  ac_status=$?
12171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172  (exit $ac_status); }; then
12173  # Parse the compiler output and extract the necessary
12174  # objects, libraries and library flags.
12175
12176  # Sentinel used to keep track of whether or not we are before
12177  # the conftest object file.
12178  pre_test_object_deps_done=no
12179
12180  # The `*' in the case matches for architectures that use `case' in
12181  # $output_verbose_cmd can trigger glob expansion during the loop
12182  # eval without this substitution.
12183  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12184
12185  for p in `eval $output_verbose_link_cmd`; do
12186    case $p in
12187
12188    -L* | -R* | -l*)
12189       # Some compilers place space between "-{L,R}" and the path.
12190       # Remove the space.
12191       if test $p = "-L" \
12192	  || test $p = "-R"; then
12193	 prev=$p
12194	 continue
12195       else
12196	 prev=
12197       fi
12198
12199       if test "$pre_test_object_deps_done" = no; then
12200	 case $p in
12201	 -L* | -R*)
12202	   # Internal compiler library paths should come after those
12203	   # provided the user.  The postdeps already come after the
12204	   # user supplied libs so there is no need to process them.
12205	   if test -z "$compiler_lib_search_path_CXX"; then
12206	     compiler_lib_search_path_CXX="${prev}${p}"
12207	   else
12208	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12209	   fi
12210	   ;;
12211	 # The "-l" case would never come before the object being
12212	 # linked, so don't bother handling this case.
12213	 esac
12214       else
12215	 if test -z "$postdeps_CXX"; then
12216	   postdeps_CXX="${prev}${p}"
12217	 else
12218	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12219	 fi
12220       fi
12221       ;;
12222
12223    *.$objext)
12224       # This assumes that the test object file only shows up
12225       # once in the compiler output.
12226       if test "$p" = "conftest.$objext"; then
12227	 pre_test_object_deps_done=yes
12228	 continue
12229       fi
12230
12231       if test "$pre_test_object_deps_done" = no; then
12232	 if test -z "$predep_objects_CXX"; then
12233	   predep_objects_CXX="$p"
12234	 else
12235	   predep_objects_CXX="$predep_objects_CXX $p"
12236	 fi
12237       else
12238	 if test -z "$postdep_objects_CXX"; then
12239	   postdep_objects_CXX="$p"
12240	 else
12241	   postdep_objects_CXX="$postdep_objects_CXX $p"
12242	 fi
12243       fi
12244       ;;
12245
12246    *) ;; # Ignore the rest.
12247
12248    esac
12249  done
12250
12251  # Clean up.
12252  rm -f a.out a.exe
12253else
12254  echo "libtool.m4: error: problem compiling CXX test program"
12255fi
12256
12257$rm -f confest.$objext
12258
12259compiler_lib_search_dirs_CXX=
12260if test -n "$compiler_lib_search_path_CXX"; then
12261  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12262fi
12263
12264# PORTME: override above test on systems where it is broken
12265case $host_os in
12266interix[3-9]*)
12267  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12268  # hack all around it, let's just trust "g++" to DTRT.
12269  predep_objects_CXX=
12270  postdep_objects_CXX=
12271  postdeps_CXX=
12272  ;;
12273
12274linux*)
12275  case `$CC -V 2>&1 | sed 5q` in
12276  *Sun\ C*)
12277    # Sun C++ 5.9
12278    #
12279    # The more standards-conforming stlport4 library is
12280    # incompatible with the Cstd library. Avoid specifying
12281    # it if it's in CXXFLAGS. Ignore libCrun as
12282    # -library=stlport4 depends on it.
12283    case " $CXX $CXXFLAGS " in
12284    *" -library=stlport4 "*)
12285      solaris_use_stlport4=yes
12286      ;;
12287    esac
12288    if test "$solaris_use_stlport4" != yes; then
12289      postdeps_CXX='-library=Cstd -library=Crun'
12290    fi
12291    ;;
12292  esac
12293  ;;
12294
12295solaris*)
12296  case $cc_basename in
12297  CC*)
12298    # The more standards-conforming stlport4 library is
12299    # incompatible with the Cstd library. Avoid specifying
12300    # it if it's in CXXFLAGS. Ignore libCrun as
12301    # -library=stlport4 depends on it.
12302    case " $CXX $CXXFLAGS " in
12303    *" -library=stlport4 "*)
12304      solaris_use_stlport4=yes
12305      ;;
12306    esac
12307
12308    # Adding this requires a known-good setup of shared libraries for
12309    # Sun compiler versions before 5.6, else PIC objects from an old
12310    # archive will be linked into the output, leading to subtle bugs.
12311    if test "$solaris_use_stlport4" != yes; then
12312      postdeps_CXX='-library=Cstd -library=Crun'
12313    fi
12314    ;;
12315  esac
12316  ;;
12317esac
12318
12319case " $postdeps_CXX " in
12320*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12321esac
12322
12323lt_prog_compiler_wl_CXX=
12324lt_prog_compiler_pic_CXX=
12325lt_prog_compiler_static_CXX=
12326
12327{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12328echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12329
12330  # C++ specific cases for pic, static, wl, etc.
12331  if test "$GXX" = yes; then
12332    lt_prog_compiler_wl_CXX='-Wl,'
12333    lt_prog_compiler_static_CXX='-static'
12334
12335    case $host_os in
12336    aix*)
12337      # All AIX code is PIC.
12338      if test "$host_cpu" = ia64; then
12339	# AIX 5 now supports IA64 processor
12340	lt_prog_compiler_static_CXX='-Bstatic'
12341      fi
12342      ;;
12343    amigaos*)
12344      # FIXME: we need at least 68020 code to build shared libraries, but
12345      # adding the `-m68020' flag to GCC prevents building anything better,
12346      # like `-m68040'.
12347      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12348      ;;
12349    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12350      # PIC is the default for these OSes.
12351      ;;
12352    mingw* | cygwin* | os2* | pw32*)
12353      # This hack is so that the source file can tell whether it is being
12354      # built for inclusion in a dll (and should export symbols for example).
12355      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12356      # (--disable-auto-import) libraries
12357      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12358      ;;
12359    darwin* | rhapsody*)
12360      # PIC is the default on this platform
12361      # Common symbols not allowed in MH_DYLIB files
12362      lt_prog_compiler_pic_CXX='-fno-common'
12363      ;;
12364    *djgpp*)
12365      # DJGPP does not support shared libraries at all
12366      lt_prog_compiler_pic_CXX=
12367      ;;
12368    interix[3-9]*)
12369      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12370      # Instead, we relocate shared libraries at runtime.
12371      ;;
12372    sysv4*MP*)
12373      if test -d /usr/nec; then
12374	lt_prog_compiler_pic_CXX=-Kconform_pic
12375      fi
12376      ;;
12377    hpux*)
12378      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12379      # not for PA HP-UX.
12380      case $host_cpu in
12381      hppa*64*|ia64*)
12382	;;
12383      *)
12384	lt_prog_compiler_pic_CXX='-fPIC'
12385	;;
12386      esac
12387      ;;
12388    *)
12389      lt_prog_compiler_pic_CXX='-fPIC'
12390      ;;
12391    esac
12392  else
12393    case $host_os in
12394      aix[4-9]*)
12395	# All AIX code is PIC.
12396	if test "$host_cpu" = ia64; then
12397	  # AIX 5 now supports IA64 processor
12398	  lt_prog_compiler_static_CXX='-Bstatic'
12399	else
12400	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12401	fi
12402	;;
12403      chorus*)
12404	case $cc_basename in
12405	cxch68*)
12406	  # Green Hills C++ Compiler
12407	  # _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"
12408	  ;;
12409	esac
12410	;;
12411       darwin*)
12412         # PIC is the default on this platform
12413         # Common symbols not allowed in MH_DYLIB files
12414         case $cc_basename in
12415           xlc*)
12416           lt_prog_compiler_pic_CXX='-qnocommon'
12417           lt_prog_compiler_wl_CXX='-Wl,'
12418           ;;
12419         esac
12420       ;;
12421      dgux*)
12422	case $cc_basename in
12423	  ec++*)
12424	    lt_prog_compiler_pic_CXX='-KPIC'
12425	    ;;
12426	  ghcx*)
12427	    # Green Hills C++ Compiler
12428	    lt_prog_compiler_pic_CXX='-pic'
12429	    ;;
12430	  *)
12431	    ;;
12432	esac
12433	;;
12434      freebsd* | dragonfly*)
12435	# FreeBSD uses GNU C++
12436	;;
12437      hpux9* | hpux10* | hpux11*)
12438	case $cc_basename in
12439	  CC*)
12440	    lt_prog_compiler_wl_CXX='-Wl,'
12441	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12442	    if test "$host_cpu" != ia64; then
12443	      lt_prog_compiler_pic_CXX='+Z'
12444	    fi
12445	    ;;
12446	  aCC*)
12447	    lt_prog_compiler_wl_CXX='-Wl,'
12448	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12449	    case $host_cpu in
12450	    hppa*64*|ia64*)
12451	      # +Z the default
12452	      ;;
12453	    *)
12454	      lt_prog_compiler_pic_CXX='+Z'
12455	      ;;
12456	    esac
12457	    ;;
12458	  *)
12459	    ;;
12460	esac
12461	;;
12462      interix*)
12463	# This is c89, which is MS Visual C++ (no shared libs)
12464	# Anyone wants to do a port?
12465	;;
12466      irix5* | irix6* | nonstopux*)
12467	case $cc_basename in
12468	  CC*)
12469	    lt_prog_compiler_wl_CXX='-Wl,'
12470	    lt_prog_compiler_static_CXX='-non_shared'
12471	    # CC pic flag -KPIC is the default.
12472	    ;;
12473	  *)
12474	    ;;
12475	esac
12476	;;
12477      linux* | k*bsd*-gnu)
12478	case $cc_basename in
12479	  KCC*)
12480	    # KAI C++ Compiler
12481	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12482	    lt_prog_compiler_pic_CXX='-fPIC'
12483	    ;;
12484	  icpc* | ecpc*)
12485	    # Intel C++
12486	    lt_prog_compiler_wl_CXX='-Wl,'
12487	    lt_prog_compiler_pic_CXX='-KPIC'
12488	    lt_prog_compiler_static_CXX='-static'
12489	    ;;
12490	  pgCC* | pgcpp*)
12491	    # Portland Group C++ compiler.
12492	    lt_prog_compiler_wl_CXX='-Wl,'
12493	    lt_prog_compiler_pic_CXX='-fpic'
12494	    lt_prog_compiler_static_CXX='-Bstatic'
12495	    ;;
12496	  cxx*)
12497	    # Compaq C++
12498	    # Make sure the PIC flag is empty.  It appears that all Alpha
12499	    # Linux and Compaq Tru64 Unix objects are PIC.
12500	    lt_prog_compiler_pic_CXX=
12501	    lt_prog_compiler_static_CXX='-non_shared'
12502	    ;;
12503	  *)
12504	    case `$CC -V 2>&1 | sed 5q` in
12505	    *Sun\ C*)
12506	      # Sun C++ 5.9
12507	      lt_prog_compiler_pic_CXX='-KPIC'
12508	      lt_prog_compiler_static_CXX='-Bstatic'
12509	      lt_prog_compiler_wl_CXX='-Qoption ld '
12510	      ;;
12511	    esac
12512	    ;;
12513	esac
12514	;;
12515      lynxos*)
12516	;;
12517      m88k*)
12518	;;
12519      mvs*)
12520	case $cc_basename in
12521	  cxx*)
12522	    lt_prog_compiler_pic_CXX='-W c,exportall'
12523	    ;;
12524	  *)
12525	    ;;
12526	esac
12527	;;
12528      netbsd* | netbsdelf*-gnu)
12529	;;
12530      osf3* | osf4* | osf5*)
12531	case $cc_basename in
12532	  KCC*)
12533	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12534	    ;;
12535	  RCC*)
12536	    # Rational C++ 2.4.1
12537	    lt_prog_compiler_pic_CXX='-pic'
12538	    ;;
12539	  cxx*)
12540	    # Digital/Compaq C++
12541	    lt_prog_compiler_wl_CXX='-Wl,'
12542	    # Make sure the PIC flag is empty.  It appears that all Alpha
12543	    # Linux and Compaq Tru64 Unix objects are PIC.
12544	    lt_prog_compiler_pic_CXX=
12545	    lt_prog_compiler_static_CXX='-non_shared'
12546	    ;;
12547	  *)
12548	    ;;
12549	esac
12550	;;
12551      psos*)
12552	;;
12553      solaris*)
12554	case $cc_basename in
12555	  CC*)
12556	    # Sun C++ 4.2, 5.x and Centerline C++
12557	    lt_prog_compiler_pic_CXX='-KPIC'
12558	    lt_prog_compiler_static_CXX='-Bstatic'
12559	    lt_prog_compiler_wl_CXX='-Qoption ld '
12560	    ;;
12561	  gcx*)
12562	    # Green Hills C++ Compiler
12563	    lt_prog_compiler_pic_CXX='-PIC'
12564	    ;;
12565	  *)
12566	    ;;
12567	esac
12568	;;
12569      sunos4*)
12570	case $cc_basename in
12571	  CC*)
12572	    # Sun C++ 4.x
12573	    lt_prog_compiler_pic_CXX='-pic'
12574	    lt_prog_compiler_static_CXX='-Bstatic'
12575	    ;;
12576	  lcc*)
12577	    # Lucid
12578	    lt_prog_compiler_pic_CXX='-pic'
12579	    ;;
12580	  *)
12581	    ;;
12582	esac
12583	;;
12584      tandem*)
12585	case $cc_basename in
12586	  NCC*)
12587	    # NonStop-UX NCC 3.20
12588	    lt_prog_compiler_pic_CXX='-KPIC'
12589	    ;;
12590	  *)
12591	    ;;
12592	esac
12593	;;
12594      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12595	case $cc_basename in
12596	  CC*)
12597	    lt_prog_compiler_wl_CXX='-Wl,'
12598	    lt_prog_compiler_pic_CXX='-KPIC'
12599	    lt_prog_compiler_static_CXX='-Bstatic'
12600	    ;;
12601	esac
12602	;;
12603      vxworks*)
12604	;;
12605      *)
12606	lt_prog_compiler_can_build_shared_CXX=no
12607	;;
12608    esac
12609  fi
12610
12611{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12612echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12613
12614#
12615# Check to make sure the PIC flag actually works.
12616#
12617if test -n "$lt_prog_compiler_pic_CXX"; then
12618
12619{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12620echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12621if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12622  echo $ECHO_N "(cached) $ECHO_C" >&6
12623else
12624  lt_cv_prog_compiler_pic_works_CXX=no
12625  ac_outfile=conftest.$ac_objext
12626   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12627   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12628   # Insert the option either (1) after the last *FLAGS variable, or
12629   # (2) before a word containing "conftest.", or (3) at the end.
12630   # Note that $ac_compile itself does not contain backslashes and begins
12631   # with a dollar sign (not a hyphen), so the echo should work correctly.
12632   # The option is referenced via a variable to avoid confusing sed.
12633   lt_compile=`echo "$ac_compile" | $SED \
12634   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12635   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12636   -e 's:$: $lt_compiler_flag:'`
12637   (eval echo "\"\$as_me:12637: $lt_compile\"" >&5)
12638   (eval "$lt_compile" 2>conftest.err)
12639   ac_status=$?
12640   cat conftest.err >&5
12641   echo "$as_me:12641: \$? = $ac_status" >&5
12642   if (exit $ac_status) && test -s "$ac_outfile"; then
12643     # The compiler can only warn and ignore the option if not recognized
12644     # So say no if there are warnings other than the usual output.
12645     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12646     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12647     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12648       lt_cv_prog_compiler_pic_works_CXX=yes
12649     fi
12650   fi
12651   $rm conftest*
12652
12653fi
12654{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12655echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12656
12657if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12658    case $lt_prog_compiler_pic_CXX in
12659     "" | " "*) ;;
12660     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12661     esac
12662else
12663    lt_prog_compiler_pic_CXX=
12664     lt_prog_compiler_can_build_shared_CXX=no
12665fi
12666
12667fi
12668case $host_os in
12669  # For platforms which do not support PIC, -DPIC is meaningless:
12670  *djgpp*)
12671    lt_prog_compiler_pic_CXX=
12672    ;;
12673  *)
12674    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12675    ;;
12676esac
12677
12678#
12679# Check to make sure the static flag actually works.
12680#
12681wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12682{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12683echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12684if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12685  echo $ECHO_N "(cached) $ECHO_C" >&6
12686else
12687  lt_cv_prog_compiler_static_works_CXX=no
12688   save_LDFLAGS="$LDFLAGS"
12689   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12690   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12691   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12692     # The linker can only warn and ignore the option if not recognized
12693     # So say no if there are warnings
12694     if test -s conftest.err; then
12695       # Append any errors to the config.log.
12696       cat conftest.err 1>&5
12697       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12698       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12699       if diff conftest.exp conftest.er2 >/dev/null; then
12700         lt_cv_prog_compiler_static_works_CXX=yes
12701       fi
12702     else
12703       lt_cv_prog_compiler_static_works_CXX=yes
12704     fi
12705   fi
12706   $rm -r conftest*
12707   LDFLAGS="$save_LDFLAGS"
12708
12709fi
12710{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12711echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12712
12713if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12714    :
12715else
12716    lt_prog_compiler_static_CXX=
12717fi
12718
12719
12720{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12721echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12722if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12723  echo $ECHO_N "(cached) $ECHO_C" >&6
12724else
12725  lt_cv_prog_compiler_c_o_CXX=no
12726   $rm -r conftest 2>/dev/null
12727   mkdir conftest
12728   cd conftest
12729   mkdir out
12730   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12731
12732   lt_compiler_flag="-o out/conftest2.$ac_objext"
12733   # Insert the option either (1) after the last *FLAGS variable, or
12734   # (2) before a word containing "conftest.", or (3) at the end.
12735   # Note that $ac_compile itself does not contain backslashes and begins
12736   # with a dollar sign (not a hyphen), so the echo should work correctly.
12737   lt_compile=`echo "$ac_compile" | $SED \
12738   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12739   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12740   -e 's:$: $lt_compiler_flag:'`
12741   (eval echo "\"\$as_me:12741: $lt_compile\"" >&5)
12742   (eval "$lt_compile" 2>out/conftest.err)
12743   ac_status=$?
12744   cat out/conftest.err >&5
12745   echo "$as_me:12745: \$? = $ac_status" >&5
12746   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12747   then
12748     # The compiler can only warn and ignore the option if not recognized
12749     # So say no if there are warnings
12750     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12751     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12752     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12753       lt_cv_prog_compiler_c_o_CXX=yes
12754     fi
12755   fi
12756   chmod u+w . 2>&5
12757   $rm conftest*
12758   # SGI C++ compiler will create directory out/ii_files/ for
12759   # template instantiation
12760   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12761   $rm out/* && rmdir out
12762   cd ..
12763   rmdir conftest
12764   $rm conftest*
12765
12766fi
12767{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12768echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12769
12770
12771hard_links="nottested"
12772if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12773  # do not overwrite the value of need_locks provided by the user
12774  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12775echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12776  hard_links=yes
12777  $rm conftest*
12778  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12779  touch conftest.a
12780  ln conftest.a conftest.b 2>&5 || hard_links=no
12781  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12782  { echo "$as_me:$LINENO: result: $hard_links" >&5
12783echo "${ECHO_T}$hard_links" >&6; }
12784  if test "$hard_links" = no; then
12785    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12786echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12787    need_locks=warn
12788  fi
12789else
12790  need_locks=no
12791fi
12792
12793{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12794echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12795
12796  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12797  case $host_os in
12798  aix[4-9]*)
12799    # If we're using GNU nm, then we don't want the "-C" option.
12800    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12801    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12802      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'
12803    else
12804      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'
12805    fi
12806    ;;
12807  pw32*)
12808    export_symbols_cmds_CXX="$ltdll_cmds"
12809  ;;
12810  cygwin* | mingw*)
12811    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'
12812  ;;
12813  linux* | k*bsd*-gnu)
12814    link_all_deplibs_CXX=no
12815  ;;
12816  *)
12817    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12818  ;;
12819  esac
12820  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12821
12822{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12823echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12824test "$ld_shlibs_CXX" = no && can_build_shared=no
12825
12826#
12827# Do we need to explicitly link libc?
12828#
12829case "x$archive_cmds_need_lc_CXX" in
12830x|xyes)
12831  # Assume -lc should be added
12832  archive_cmds_need_lc_CXX=yes
12833
12834  if test "$enable_shared" = yes && test "$GCC" = yes; then
12835    case $archive_cmds_CXX in
12836    *'~'*)
12837      # FIXME: we may have to deal with multi-command sequences.
12838      ;;
12839    '$CC '*)
12840      # Test whether the compiler implicitly links with -lc since on some
12841      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12842      # to ld, don't add -lc before -lgcc.
12843      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12844echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12845      $rm conftest*
12846      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12847
12848      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12849  (eval $ac_compile) 2>&5
12850  ac_status=$?
12851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852  (exit $ac_status); } 2>conftest.err; then
12853        soname=conftest
12854        lib=conftest
12855        libobjs=conftest.$ac_objext
12856        deplibs=
12857        wl=$lt_prog_compiler_wl_CXX
12858	pic_flag=$lt_prog_compiler_pic_CXX
12859        compiler_flags=-v
12860        linker_flags=-v
12861        verstring=
12862        output_objdir=.
12863        libname=conftest
12864        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12865        allow_undefined_flag_CXX=
12866        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12867  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12868  ac_status=$?
12869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870  (exit $ac_status); }
12871        then
12872	  archive_cmds_need_lc_CXX=no
12873        else
12874	  archive_cmds_need_lc_CXX=yes
12875        fi
12876        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12877      else
12878        cat conftest.err 1>&5
12879      fi
12880      $rm conftest*
12881      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12882echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12883      ;;
12884    esac
12885  fi
12886  ;;
12887esac
12888
12889{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12890echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12891library_names_spec=
12892libname_spec='lib$name'
12893soname_spec=
12894shrext_cmds=".so"
12895postinstall_cmds=
12896postuninstall_cmds=
12897finish_cmds=
12898finish_eval=
12899shlibpath_var=
12900shlibpath_overrides_runpath=unknown
12901version_type=none
12902dynamic_linker="$host_os ld.so"
12903sys_lib_dlsearch_path_spec="/lib /usr/lib"
12904
12905need_lib_prefix=unknown
12906hardcode_into_libs=no
12907
12908# when you set need_version to no, make sure it does not cause -set_version
12909# flags to be left without arguments
12910need_version=unknown
12911
12912case $host_os in
12913aix3*)
12914  version_type=linux
12915  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12916  shlibpath_var=LIBPATH
12917
12918  # AIX 3 has no versioning support, so we append a major version to the name.
12919  soname_spec='${libname}${release}${shared_ext}$major'
12920  ;;
12921
12922aix[4-9]*)
12923  version_type=linux
12924  need_lib_prefix=no
12925  need_version=no
12926  hardcode_into_libs=yes
12927  if test "$host_cpu" = ia64; then
12928    # AIX 5 supports IA64
12929    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12930    shlibpath_var=LD_LIBRARY_PATH
12931  else
12932    # With GCC up to 2.95.x, collect2 would create an import file
12933    # for dependence libraries.  The import file would start with
12934    # the line `#! .'.  This would cause the generated library to
12935    # depend on `.', always an invalid library.  This was fixed in
12936    # development snapshots of GCC prior to 3.0.
12937    case $host_os in
12938      aix4 | aix4.[01] | aix4.[01].*)
12939      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12940	   echo ' yes '
12941	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12942	:
12943      else
12944	can_build_shared=no
12945      fi
12946      ;;
12947    esac
12948    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12949    # soname into executable. Probably we can add versioning support to
12950    # collect2, so additional links can be useful in future.
12951    if test "$aix_use_runtimelinking" = yes; then
12952      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12953      # instead of lib<name>.a to let people know that these are not
12954      # typical AIX shared libraries.
12955      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12956    else
12957      # We preserve .a as extension for shared libraries through AIX4.2
12958      # and later when we are not doing run time linking.
12959      library_names_spec='${libname}${release}.a $libname.a'
12960      soname_spec='${libname}${release}${shared_ext}$major'
12961    fi
12962    shlibpath_var=LIBPATH
12963  fi
12964  ;;
12965
12966amigaos*)
12967  library_names_spec='$libname.ixlibrary $libname.a'
12968  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12969  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'
12970  ;;
12971
12972beos*)
12973  library_names_spec='${libname}${shared_ext}'
12974  dynamic_linker="$host_os ld.so"
12975  shlibpath_var=LIBRARY_PATH
12976  ;;
12977
12978bsdi[45]*)
12979  version_type=linux
12980  need_version=no
12981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12982  soname_spec='${libname}${release}${shared_ext}$major'
12983  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12984  shlibpath_var=LD_LIBRARY_PATH
12985  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12986  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12987  # the default ld.so.conf also contains /usr/contrib/lib and
12988  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12989  # libtool to hard-code these into programs
12990  ;;
12991
12992cygwin* | mingw* | pw32*)
12993  version_type=windows
12994  shrext_cmds=".dll"
12995  need_version=no
12996  need_lib_prefix=no
12997
12998  case $GCC,$host_os in
12999  yes,cygwin* | yes,mingw* | yes,pw32*)
13000    library_names_spec='$libname.dll.a'
13001    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13002    postinstall_cmds='base_file=`basename \${file}`~
13003      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13004      dldir=$destdir/`dirname \$dlpath`~
13005      test -d \$dldir || mkdir -p \$dldir~
13006      $install_prog $dir/$dlname \$dldir/$dlname~
13007      chmod a+x \$dldir/$dlname'
13008    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13009      dlpath=$dir/\$dldll~
13010       $rm \$dlpath'
13011    shlibpath_overrides_runpath=yes
13012
13013    case $host_os in
13014    cygwin*)
13015      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13016      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13017      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13018      ;;
13019    mingw*)
13020      # MinGW DLLs use traditional 'lib' prefix
13021      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13022      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13023      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13024        # It is most probably a Windows format PATH printed by
13025        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13026        # path with ; separators, and with drive letters. We can handle the
13027        # drive letters (cygwin fileutils understands them), so leave them,
13028        # especially as we might pass files found there to a mingw objdump,
13029        # which wouldn't understand a cygwinified path. Ahh.
13030        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13031      else
13032        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13033      fi
13034      ;;
13035    pw32*)
13036      # pw32 DLLs use 'pw' prefix rather than 'lib'
13037      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13038      ;;
13039    esac
13040    ;;
13041
13042  *)
13043    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13044    ;;
13045  esac
13046  dynamic_linker='Win32 ld.exe'
13047  # FIXME: first we should search . and the directory the executable is in
13048  shlibpath_var=PATH
13049  ;;
13050
13051darwin* | rhapsody*)
13052  dynamic_linker="$host_os dyld"
13053  version_type=darwin
13054  need_lib_prefix=no
13055  need_version=no
13056  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13057  soname_spec='${libname}${release}${major}$shared_ext'
13058  shlibpath_overrides_runpath=yes
13059  shlibpath_var=DYLD_LIBRARY_PATH
13060  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13061
13062  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13063  ;;
13064
13065dgux*)
13066  version_type=linux
13067  need_lib_prefix=no
13068  need_version=no
13069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13070  soname_spec='${libname}${release}${shared_ext}$major'
13071  shlibpath_var=LD_LIBRARY_PATH
13072  ;;
13073
13074freebsd1*)
13075  dynamic_linker=no
13076  ;;
13077
13078freebsd* | dragonfly*)
13079  # DragonFly does not have aout.  When/if they implement a new
13080  # versioning mechanism, adjust this.
13081  if test -x /usr/bin/objformat; then
13082    objformat=`/usr/bin/objformat`
13083  else
13084    case $host_os in
13085    freebsd[123]*) objformat=aout ;;
13086    *) objformat=elf ;;
13087    esac
13088  fi
13089  version_type=freebsd-$objformat
13090  case $version_type in
13091    freebsd-elf*)
13092      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13093      need_version=no
13094      need_lib_prefix=no
13095      ;;
13096    freebsd-*)
13097      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13098      need_version=yes
13099      ;;
13100  esac
13101  shlibpath_var=LD_LIBRARY_PATH
13102  case $host_os in
13103  freebsd2*)
13104    shlibpath_overrides_runpath=yes
13105    ;;
13106  freebsd3.[01]* | freebsdelf3.[01]*)
13107    shlibpath_overrides_runpath=yes
13108    hardcode_into_libs=yes
13109    ;;
13110  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13111  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13112    shlibpath_overrides_runpath=no
13113    hardcode_into_libs=yes
13114    ;;
13115  *) # from 4.6 on, and DragonFly
13116    shlibpath_overrides_runpath=yes
13117    hardcode_into_libs=yes
13118    ;;
13119  esac
13120  ;;
13121
13122gnu*)
13123  version_type=linux
13124  need_lib_prefix=no
13125  need_version=no
13126  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13127  soname_spec='${libname}${release}${shared_ext}$major'
13128  shlibpath_var=LD_LIBRARY_PATH
13129  hardcode_into_libs=yes
13130  ;;
13131
13132hpux9* | hpux10* | hpux11*)
13133  # Give a soname corresponding to the major version so that dld.sl refuses to
13134  # link against other versions.
13135  version_type=sunos
13136  need_lib_prefix=no
13137  need_version=no
13138  case $host_cpu in
13139  ia64*)
13140    shrext_cmds='.so'
13141    hardcode_into_libs=yes
13142    dynamic_linker="$host_os dld.so"
13143    shlibpath_var=LD_LIBRARY_PATH
13144    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13145    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13146    soname_spec='${libname}${release}${shared_ext}$major'
13147    if test "X$HPUX_IA64_MODE" = X32; then
13148      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13149    else
13150      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13151    fi
13152    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13153    ;;
13154   hppa*64*)
13155     shrext_cmds='.sl'
13156     hardcode_into_libs=yes
13157     dynamic_linker="$host_os dld.sl"
13158     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13159     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13160     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13161     soname_spec='${libname}${release}${shared_ext}$major'
13162     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13163     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13164     ;;
13165   *)
13166    shrext_cmds='.sl'
13167    dynamic_linker="$host_os dld.sl"
13168    shlibpath_var=SHLIB_PATH
13169    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13170    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13171    soname_spec='${libname}${release}${shared_ext}$major'
13172    ;;
13173  esac
13174  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13175  postinstall_cmds='chmod 555 $lib'
13176  ;;
13177
13178interix[3-9]*)
13179  version_type=linux
13180  need_lib_prefix=no
13181  need_version=no
13182  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13183  soname_spec='${libname}${release}${shared_ext}$major'
13184  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13185  shlibpath_var=LD_LIBRARY_PATH
13186  shlibpath_overrides_runpath=no
13187  hardcode_into_libs=yes
13188  ;;
13189
13190irix5* | irix6* | nonstopux*)
13191  case $host_os in
13192    nonstopux*) version_type=nonstopux ;;
13193    *)
13194	if test "$lt_cv_prog_gnu_ld" = yes; then
13195		version_type=linux
13196	else
13197		version_type=irix
13198	fi ;;
13199  esac
13200  need_lib_prefix=no
13201  need_version=no
13202  soname_spec='${libname}${release}${shared_ext}$major'
13203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13204  case $host_os in
13205  irix5* | nonstopux*)
13206    libsuff= shlibsuff=
13207    ;;
13208  *)
13209    case $LD in # libtool.m4 will add one of these switches to LD
13210    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13211      libsuff= shlibsuff= libmagic=32-bit;;
13212    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13213      libsuff=32 shlibsuff=N32 libmagic=N32;;
13214    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13215      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13216    *) libsuff= shlibsuff= libmagic=never-match;;
13217    esac
13218    ;;
13219  esac
13220  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13221  shlibpath_overrides_runpath=no
13222  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13223  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13224  hardcode_into_libs=yes
13225  ;;
13226
13227# No shared lib support for Linux oldld, aout, or coff.
13228linux*oldld* | linux*aout* | linux*coff*)
13229  dynamic_linker=no
13230  ;;
13231
13232# This must be Linux ELF.
13233linux* | k*bsd*-gnu)
13234  version_type=linux
13235  need_lib_prefix=no
13236  need_version=no
13237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13238  soname_spec='${libname}${release}${shared_ext}$major'
13239  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13240  shlibpath_var=LD_LIBRARY_PATH
13241  shlibpath_overrides_runpath=no
13242  # This implies no fast_install, which is unacceptable.
13243  # Some rework will be needed to allow for fast_install
13244  # before this can be enabled.
13245  hardcode_into_libs=yes
13246
13247  # Append ld.so.conf contents to the search path
13248  if test -f /etc/ld.so.conf; then
13249    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' ' '`
13250    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13251  fi
13252
13253  # We used to test for /lib/ld.so.1 and disable shared libraries on
13254  # powerpc, because MkLinux only supported shared libraries with the
13255  # GNU dynamic linker.  Since this was broken with cross compilers,
13256  # most powerpc-linux boxes support dynamic linking these days and
13257  # people can always --disable-shared, the test was removed, and we
13258  # assume the GNU/Linux dynamic linker is in use.
13259  dynamic_linker='GNU/Linux ld.so'
13260  ;;
13261
13262netbsdelf*-gnu)
13263  version_type=linux
13264  need_lib_prefix=no
13265  need_version=no
13266  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13267  soname_spec='${libname}${release}${shared_ext}$major'
13268  shlibpath_var=LD_LIBRARY_PATH
13269  shlibpath_overrides_runpath=no
13270  hardcode_into_libs=yes
13271  dynamic_linker='NetBSD ld.elf_so'
13272  ;;
13273
13274netbsd*)
13275  version_type=sunos
13276  need_lib_prefix=no
13277  need_version=no
13278  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13279    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13280    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13281    dynamic_linker='NetBSD (a.out) ld.so'
13282  else
13283    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13284    soname_spec='${libname}${release}${shared_ext}$major'
13285    dynamic_linker='NetBSD ld.elf_so'
13286  fi
13287  shlibpath_var=LD_LIBRARY_PATH
13288  shlibpath_overrides_runpath=yes
13289  hardcode_into_libs=yes
13290  ;;
13291
13292newsos6)
13293  version_type=linux
13294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13295  shlibpath_var=LD_LIBRARY_PATH
13296  shlibpath_overrides_runpath=yes
13297  ;;
13298
13299nto-qnx*)
13300  version_type=linux
13301  need_lib_prefix=no
13302  need_version=no
13303  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13304  soname_spec='${libname}${release}${shared_ext}$major'
13305  shlibpath_var=LD_LIBRARY_PATH
13306  shlibpath_overrides_runpath=yes
13307  ;;
13308
13309openbsd*)
13310  version_type=sunos
13311  sys_lib_dlsearch_path_spec="/usr/lib"
13312  need_lib_prefix=no
13313  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13314  case $host_os in
13315    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13316    *)                         need_version=no  ;;
13317  esac
13318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13319  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13320  shlibpath_var=LD_LIBRARY_PATH
13321  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13322    case $host_os in
13323      openbsd2.[89] | openbsd2.[89].*)
13324	shlibpath_overrides_runpath=no
13325	;;
13326      *)
13327	shlibpath_overrides_runpath=yes
13328	;;
13329      esac
13330  else
13331    shlibpath_overrides_runpath=yes
13332  fi
13333  ;;
13334
13335os2*)
13336  libname_spec='$name'
13337  shrext_cmds=".dll"
13338  need_lib_prefix=no
13339  library_names_spec='$libname${shared_ext} $libname.a'
13340  dynamic_linker='OS/2 ld.exe'
13341  shlibpath_var=LIBPATH
13342  ;;
13343
13344osf3* | osf4* | osf5*)
13345  version_type=osf
13346  need_lib_prefix=no
13347  need_version=no
13348  soname_spec='${libname}${release}${shared_ext}$major'
13349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13350  shlibpath_var=LD_LIBRARY_PATH
13351  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13352  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13353  ;;
13354
13355rdos*)
13356  dynamic_linker=no
13357  ;;
13358
13359solaris*)
13360  version_type=linux
13361  need_lib_prefix=no
13362  need_version=no
13363  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13364  soname_spec='${libname}${release}${shared_ext}$major'
13365  shlibpath_var=LD_LIBRARY_PATH
13366  shlibpath_overrides_runpath=yes
13367  hardcode_into_libs=yes
13368  # ldd complains unless libraries are executable
13369  postinstall_cmds='chmod +x $lib'
13370  ;;
13371
13372sunos4*)
13373  version_type=sunos
13374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13375  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13376  shlibpath_var=LD_LIBRARY_PATH
13377  shlibpath_overrides_runpath=yes
13378  if test "$with_gnu_ld" = yes; then
13379    need_lib_prefix=no
13380  fi
13381  need_version=yes
13382  ;;
13383
13384sysv4 | sysv4.3*)
13385  version_type=linux
13386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13387  soname_spec='${libname}${release}${shared_ext}$major'
13388  shlibpath_var=LD_LIBRARY_PATH
13389  case $host_vendor in
13390    sni)
13391      shlibpath_overrides_runpath=no
13392      need_lib_prefix=no
13393      export_dynamic_flag_spec='${wl}-Blargedynsym'
13394      runpath_var=LD_RUN_PATH
13395      ;;
13396    siemens)
13397      need_lib_prefix=no
13398      ;;
13399    motorola)
13400      need_lib_prefix=no
13401      need_version=no
13402      shlibpath_overrides_runpath=no
13403      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13404      ;;
13405  esac
13406  ;;
13407
13408sysv4*MP*)
13409  if test -d /usr/nec ;then
13410    version_type=linux
13411    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13412    soname_spec='$libname${shared_ext}.$major'
13413    shlibpath_var=LD_LIBRARY_PATH
13414  fi
13415  ;;
13416
13417sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13418  version_type=freebsd-elf
13419  need_lib_prefix=no
13420  need_version=no
13421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13422  soname_spec='${libname}${release}${shared_ext}$major'
13423  shlibpath_var=LD_LIBRARY_PATH
13424  hardcode_into_libs=yes
13425  if test "$with_gnu_ld" = yes; then
13426    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13427    shlibpath_overrides_runpath=no
13428  else
13429    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13430    shlibpath_overrides_runpath=yes
13431    case $host_os in
13432      sco3.2v5*)
13433        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13434	;;
13435    esac
13436  fi
13437  sys_lib_dlsearch_path_spec='/usr/lib'
13438  ;;
13439
13440uts4*)
13441  version_type=linux
13442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13443  soname_spec='${libname}${release}${shared_ext}$major'
13444  shlibpath_var=LD_LIBRARY_PATH
13445  ;;
13446
13447*)
13448  dynamic_linker=no
13449  ;;
13450esac
13451{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13452echo "${ECHO_T}$dynamic_linker" >&6; }
13453test "$dynamic_linker" = no && can_build_shared=no
13454
13455if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13456  echo $ECHO_N "(cached) $ECHO_C" >&6
13457else
13458  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13459fi
13460
13461sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13462if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13463  echo $ECHO_N "(cached) $ECHO_C" >&6
13464else
13465  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13466fi
13467
13468sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13469
13470variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13471if test "$GCC" = yes; then
13472  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13473fi
13474
13475{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13476echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13477hardcode_action_CXX=
13478if test -n "$hardcode_libdir_flag_spec_CXX" || \
13479   test -n "$runpath_var_CXX" || \
13480   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13481
13482  # We can hardcode non-existant directories.
13483  if test "$hardcode_direct_CXX" != no &&
13484     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13485     # have to relink, otherwise we might link with an installed library
13486     # when we should be linking with a yet-to-be-installed one
13487     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13488     test "$hardcode_minus_L_CXX" != no; then
13489    # Linking always hardcodes the temporary library directory.
13490    hardcode_action_CXX=relink
13491  else
13492    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13493    hardcode_action_CXX=immediate
13494  fi
13495else
13496  # We cannot hardcode anything, or else we can only hardcode existing
13497  # directories.
13498  hardcode_action_CXX=unsupported
13499fi
13500{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13501echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13502
13503if test "$hardcode_action_CXX" = relink; then
13504  # Fast installation is not supported
13505  enable_fast_install=no
13506elif test "$shlibpath_overrides_runpath" = yes ||
13507     test "$enable_shared" = no; then
13508  # Fast installation is not necessary
13509  enable_fast_install=needless
13510fi
13511
13512
13513# The else clause should only fire when bootstrapping the
13514# libtool distribution, otherwise you forgot to ship ltmain.sh
13515# with your package, and you will get complaints that there are
13516# no rules to generate ltmain.sh.
13517if test -f "$ltmain"; then
13518  # See if we are running on zsh, and set the options which allow our commands through
13519  # without removal of \ escapes.
13520  if test -n "${ZSH_VERSION+set}" ; then
13521    setopt NO_GLOB_SUBST
13522  fi
13523  # Now quote all the things that may contain metacharacters while being
13524  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13525  # variables and quote the copies for generation of the libtool script.
13526  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13527    SED SHELL STRIP \
13528    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13529    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13530    deplibs_check_method reload_flag reload_cmds need_locks \
13531    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13532    lt_cv_sys_global_symbol_to_c_name_address \
13533    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13534    old_postinstall_cmds old_postuninstall_cmds \
13535    compiler_CXX \
13536    CC_CXX \
13537    LD_CXX \
13538    lt_prog_compiler_wl_CXX \
13539    lt_prog_compiler_pic_CXX \
13540    lt_prog_compiler_static_CXX \
13541    lt_prog_compiler_no_builtin_flag_CXX \
13542    export_dynamic_flag_spec_CXX \
13543    thread_safe_flag_spec_CXX \
13544    whole_archive_flag_spec_CXX \
13545    enable_shared_with_static_runtimes_CXX \
13546    old_archive_cmds_CXX \
13547    old_archive_from_new_cmds_CXX \
13548    predep_objects_CXX \
13549    postdep_objects_CXX \
13550    predeps_CXX \
13551    postdeps_CXX \
13552    compiler_lib_search_path_CXX \
13553    compiler_lib_search_dirs_CXX \
13554    archive_cmds_CXX \
13555    archive_expsym_cmds_CXX \
13556    postinstall_cmds_CXX \
13557    postuninstall_cmds_CXX \
13558    old_archive_from_expsyms_cmds_CXX \
13559    allow_undefined_flag_CXX \
13560    no_undefined_flag_CXX \
13561    export_symbols_cmds_CXX \
13562    hardcode_libdir_flag_spec_CXX \
13563    hardcode_libdir_flag_spec_ld_CXX \
13564    hardcode_libdir_separator_CXX \
13565    hardcode_automatic_CXX \
13566    module_cmds_CXX \
13567    module_expsym_cmds_CXX \
13568    lt_cv_prog_compiler_c_o_CXX \
13569    fix_srcfile_path_CXX \
13570    exclude_expsyms_CXX \
13571    include_expsyms_CXX; do
13572
13573    case $var in
13574    old_archive_cmds_CXX | \
13575    old_archive_from_new_cmds_CXX | \
13576    archive_cmds_CXX | \
13577    archive_expsym_cmds_CXX | \
13578    module_cmds_CXX | \
13579    module_expsym_cmds_CXX | \
13580    old_archive_from_expsyms_cmds_CXX | \
13581    export_symbols_cmds_CXX | \
13582    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13583    postinstall_cmds | postuninstall_cmds | \
13584    old_postinstall_cmds | old_postuninstall_cmds | \
13585    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13586      # Double-quote double-evaled strings.
13587      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13588      ;;
13589    *)
13590      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13591      ;;
13592    esac
13593  done
13594
13595  case $lt_echo in
13596  *'\$0 --fallback-echo"')
13597    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13598    ;;
13599  esac
13600
13601cfgfile="$ofile"
13602
13603  cat <<__EOF__ >> "$cfgfile"
13604# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13605
13606# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13607
13608# Shell to use when invoking shell scripts.
13609SHELL=$lt_SHELL
13610
13611# Whether or not to build shared libraries.
13612build_libtool_libs=$enable_shared
13613
13614# Whether or not to build static libraries.
13615build_old_libs=$enable_static
13616
13617# Whether or not to add -lc for building shared libraries.
13618build_libtool_need_lc=$archive_cmds_need_lc_CXX
13619
13620# Whether or not to disallow shared libs when runtime libs are static
13621allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13622
13623# Whether or not to optimize for fast installation.
13624fast_install=$enable_fast_install
13625
13626# The host system.
13627host_alias=$host_alias
13628host=$host
13629host_os=$host_os
13630
13631# The build system.
13632build_alias=$build_alias
13633build=$build
13634build_os=$build_os
13635
13636# An echo program that does not interpret backslashes.
13637echo=$lt_echo
13638
13639# The archiver.
13640AR=$lt_AR
13641AR_FLAGS=$lt_AR_FLAGS
13642
13643# A C compiler.
13644LTCC=$lt_LTCC
13645
13646# LTCC compiler flags.
13647LTCFLAGS=$lt_LTCFLAGS
13648
13649# A language-specific compiler.
13650CC=$lt_compiler_CXX
13651
13652# Is the compiler the GNU C compiler?
13653with_gcc=$GCC_CXX
13654
13655# An ERE matcher.
13656EGREP=$lt_EGREP
13657
13658# The linker used to build libraries.
13659LD=$lt_LD_CXX
13660
13661# Whether we need hard or soft links.
13662LN_S=$lt_LN_S
13663
13664# A BSD-compatible nm program.
13665NM=$lt_NM
13666
13667# A symbol stripping program
13668STRIP=$lt_STRIP
13669
13670# Used to examine libraries when file_magic_cmd begins "file"
13671MAGIC_CMD=$MAGIC_CMD
13672
13673# Used on cygwin: DLL creation program.
13674DLLTOOL="$DLLTOOL"
13675
13676# Used on cygwin: object dumper.
13677OBJDUMP="$OBJDUMP"
13678
13679# Used on cygwin: assembler.
13680AS="$AS"
13681
13682# The name of the directory that contains temporary libtool files.
13683objdir=$objdir
13684
13685# How to create reloadable object files.
13686reload_flag=$lt_reload_flag
13687reload_cmds=$lt_reload_cmds
13688
13689# How to pass a linker flag through the compiler.
13690wl=$lt_lt_prog_compiler_wl_CXX
13691
13692# Object file suffix (normally "o").
13693objext="$ac_objext"
13694
13695# Old archive suffix (normally "a").
13696libext="$libext"
13697
13698# Shared library suffix (normally ".so").
13699shrext_cmds='$shrext_cmds'
13700
13701# Executable file suffix (normally "").
13702exeext="$exeext"
13703
13704# Additional compiler flags for building library objects.
13705pic_flag=$lt_lt_prog_compiler_pic_CXX
13706pic_mode=$pic_mode
13707
13708# What is the maximum length of a command?
13709max_cmd_len=$lt_cv_sys_max_cmd_len
13710
13711# Does compiler simultaneously support -c and -o options?
13712compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13713
13714# Must we lock files when doing compilation?
13715need_locks=$lt_need_locks
13716
13717# Do we need the lib prefix for modules?
13718need_lib_prefix=$need_lib_prefix
13719
13720# Do we need a version for libraries?
13721need_version=$need_version
13722
13723# Whether dlopen is supported.
13724dlopen_support=$enable_dlopen
13725
13726# Whether dlopen of programs is supported.
13727dlopen_self=$enable_dlopen_self
13728
13729# Whether dlopen of statically linked programs is supported.
13730dlopen_self_static=$enable_dlopen_self_static
13731
13732# Compiler flag to prevent dynamic linking.
13733link_static_flag=$lt_lt_prog_compiler_static_CXX
13734
13735# Compiler flag to turn off builtin functions.
13736no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13737
13738# Compiler flag to allow reflexive dlopens.
13739export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13740
13741# Compiler flag to generate shared objects directly from archives.
13742whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13743
13744# Compiler flag to generate thread-safe objects.
13745thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13746
13747# Library versioning type.
13748version_type=$version_type
13749
13750# Format of library name prefix.
13751libname_spec=$lt_libname_spec
13752
13753# List of archive names.  First name is the real one, the rest are links.
13754# The last name is the one that the linker finds with -lNAME.
13755library_names_spec=$lt_library_names_spec
13756
13757# The coded name of the library, if different from the real name.
13758soname_spec=$lt_soname_spec
13759
13760# Commands used to build and install an old-style archive.
13761RANLIB=$lt_RANLIB
13762old_archive_cmds=$lt_old_archive_cmds_CXX
13763old_postinstall_cmds=$lt_old_postinstall_cmds
13764old_postuninstall_cmds=$lt_old_postuninstall_cmds
13765
13766# Create an old-style archive from a shared archive.
13767old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13768
13769# Create a temporary old-style archive to link instead of a shared archive.
13770old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13771
13772# Commands used to build and install a shared archive.
13773archive_cmds=$lt_archive_cmds_CXX
13774archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13775postinstall_cmds=$lt_postinstall_cmds
13776postuninstall_cmds=$lt_postuninstall_cmds
13777
13778# Commands used to build a loadable module (assumed same as above if empty)
13779module_cmds=$lt_module_cmds_CXX
13780module_expsym_cmds=$lt_module_expsym_cmds_CXX
13781
13782# Commands to strip libraries.
13783old_striplib=$lt_old_striplib
13784striplib=$lt_striplib
13785
13786# Dependencies to place before the objects being linked to create a
13787# shared library.
13788predep_objects=$lt_predep_objects_CXX
13789
13790# Dependencies to place after the objects being linked to create a
13791# shared library.
13792postdep_objects=$lt_postdep_objects_CXX
13793
13794# Dependencies to place before the objects being linked to create a
13795# shared library.
13796predeps=$lt_predeps_CXX
13797
13798# Dependencies to place after the objects being linked to create a
13799# shared library.
13800postdeps=$lt_postdeps_CXX
13801
13802# The directories searched by this compiler when creating a shared
13803# library
13804compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13805
13806# The library search path used internally by the compiler when linking
13807# a shared library.
13808compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13809
13810# Method to check whether dependent libraries are shared objects.
13811deplibs_check_method=$lt_deplibs_check_method
13812
13813# Command to use when deplibs_check_method == file_magic.
13814file_magic_cmd=$lt_file_magic_cmd
13815
13816# Flag that allows shared libraries with undefined symbols to be built.
13817allow_undefined_flag=$lt_allow_undefined_flag_CXX
13818
13819# Flag that forces no undefined symbols.
13820no_undefined_flag=$lt_no_undefined_flag_CXX
13821
13822# Commands used to finish a libtool library installation in a directory.
13823finish_cmds=$lt_finish_cmds
13824
13825# Same as above, but a single script fragment to be evaled but not shown.
13826finish_eval=$lt_finish_eval
13827
13828# Take the output of nm and produce a listing of raw symbols and C names.
13829global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13830
13831# Transform the output of nm in a proper C declaration
13832global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13833
13834# Transform the output of nm in a C name address pair
13835global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13836
13837# This is the shared library runtime path variable.
13838runpath_var=$runpath_var
13839
13840# This is the shared library path variable.
13841shlibpath_var=$shlibpath_var
13842
13843# Is shlibpath searched before the hard-coded library search path?
13844shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13845
13846# How to hardcode a shared library path into an executable.
13847hardcode_action=$hardcode_action_CXX
13848
13849# Whether we should hardcode library paths into libraries.
13850hardcode_into_libs=$hardcode_into_libs
13851
13852# Flag to hardcode \$libdir into a binary during linking.
13853# This must work even if \$libdir does not exist.
13854hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13855
13856# If ld is used when linking, flag to hardcode \$libdir into
13857# a binary during linking. This must work even if \$libdir does
13858# not exist.
13859hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13860
13861# Whether we need a single -rpath flag with a separated argument.
13862hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13863
13864# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13865# resulting binary.
13866hardcode_direct=$hardcode_direct_CXX
13867
13868# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13869# resulting binary.
13870hardcode_minus_L=$hardcode_minus_L_CXX
13871
13872# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13873# the resulting binary.
13874hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13875
13876# Set to yes if building a shared library automatically hardcodes DIR into the library
13877# and all subsequent libraries and executables linked against it.
13878hardcode_automatic=$hardcode_automatic_CXX
13879
13880# Variables whose values should be saved in libtool wrapper scripts and
13881# restored at relink time.
13882variables_saved_for_relink="$variables_saved_for_relink"
13883
13884# Whether libtool must link a program against all its dependency libraries.
13885link_all_deplibs=$link_all_deplibs_CXX
13886
13887# Compile-time system search path for libraries
13888sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13889
13890# Run-time system search path for libraries
13891sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13892
13893# Fix the shell variable \$srcfile for the compiler.
13894fix_srcfile_path=$lt_fix_srcfile_path
13895
13896# Set to yes if exported symbols are required.
13897always_export_symbols=$always_export_symbols_CXX
13898
13899# The commands to list exported symbols.
13900export_symbols_cmds=$lt_export_symbols_cmds_CXX
13901
13902# The commands to extract the exported symbol list from a shared archive.
13903extract_expsyms_cmds=$lt_extract_expsyms_cmds
13904
13905# Symbols that should not be listed in the preloaded symbols.
13906exclude_expsyms=$lt_exclude_expsyms_CXX
13907
13908# Symbols that must always be exported.
13909include_expsyms=$lt_include_expsyms_CXX
13910
13911# ### END LIBTOOL TAG CONFIG: $tagname
13912
13913__EOF__
13914
13915
13916else
13917  # If there is no Makefile yet, we rely on a make rule to execute
13918  # `config.status --recheck' to rerun these tests and create the
13919  # libtool script then.
13920  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13921  if test -f "$ltmain_in"; then
13922    test -f Makefile && make "$ltmain"
13923  fi
13924fi
13925
13926
13927ac_ext=cpp
13928ac_cpp='$CXXCPP $CPPFLAGS'
13929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13932
13933CC=$lt_save_CC
13934LDCXX=$LD
13935LD=$lt_save_LD
13936GCC=$lt_save_GCC
13937with_gnu_ldcxx=$with_gnu_ld
13938with_gnu_ld=$lt_save_with_gnu_ld
13939lt_cv_path_LDCXX=$lt_cv_path_LD
13940lt_cv_path_LD=$lt_save_path_LD
13941lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13942lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13943
13944	else
13945	  tagname=""
13946	fi
13947	;;
13948
13949      F77)
13950	if test -n "$F77" && test "X$F77" != "Xno"; then
13951
13952ac_ext=f
13953ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13954ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13955ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13956
13957
13958archive_cmds_need_lc_F77=no
13959allow_undefined_flag_F77=
13960always_export_symbols_F77=no
13961archive_expsym_cmds_F77=
13962export_dynamic_flag_spec_F77=
13963hardcode_direct_F77=no
13964hardcode_libdir_flag_spec_F77=
13965hardcode_libdir_flag_spec_ld_F77=
13966hardcode_libdir_separator_F77=
13967hardcode_minus_L_F77=no
13968hardcode_automatic_F77=no
13969module_cmds_F77=
13970module_expsym_cmds_F77=
13971link_all_deplibs_F77=unknown
13972old_archive_cmds_F77=$old_archive_cmds
13973no_undefined_flag_F77=
13974whole_archive_flag_spec_F77=
13975enable_shared_with_static_runtimes_F77=no
13976
13977# Source file extension for f77 test sources.
13978ac_ext=f
13979
13980# Object file extension for compiled f77 test sources.
13981objext=o
13982objext_F77=$objext
13983
13984# Code to be used in simple compile tests
13985lt_simple_compile_test_code="\
13986      subroutine t
13987      return
13988      end
13989"
13990
13991# Code to be used in simple link tests
13992lt_simple_link_test_code="\
13993      program t
13994      end
13995"
13996
13997# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13998
13999# If no C compiler was specified, use CC.
14000LTCC=${LTCC-"$CC"}
14001
14002# If no C compiler flags were specified, use CFLAGS.
14003LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14004
14005# Allow CC to be a program name with arguments.
14006compiler=$CC
14007
14008
14009# save warnings/boilerplate of simple test code
14010ac_outfile=conftest.$ac_objext
14011echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14012eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14013_lt_compiler_boilerplate=`cat conftest.err`
14014$rm conftest*
14015
14016ac_outfile=conftest.$ac_objext
14017echo "$lt_simple_link_test_code" >conftest.$ac_ext
14018eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14019_lt_linker_boilerplate=`cat conftest.err`
14020$rm -r conftest*
14021
14022
14023# Allow CC to be a program name with arguments.
14024lt_save_CC="$CC"
14025CC=${F77-"f77"}
14026compiler=$CC
14027compiler_F77=$CC
14028for cc_temp in $compiler""; do
14029  case $cc_temp in
14030    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14031    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14032    \-*) ;;
14033    *) break;;
14034  esac
14035done
14036cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14037
14038
14039{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14040echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14041{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14042echo "${ECHO_T}$can_build_shared" >&6; }
14043
14044{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14045echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14046test "$can_build_shared" = "no" && enable_shared=no
14047
14048# On AIX, shared libraries and static libraries use the same namespace, and
14049# are all built from PIC.
14050case $host_os in
14051aix3*)
14052  test "$enable_shared" = yes && enable_static=no
14053  if test -n "$RANLIB"; then
14054    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14055    postinstall_cmds='$RANLIB $lib'
14056  fi
14057  ;;
14058aix[4-9]*)
14059  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14060    test "$enable_shared" = yes && enable_static=no
14061  fi
14062  ;;
14063esac
14064{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14065echo "${ECHO_T}$enable_shared" >&6; }
14066
14067{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14068echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14069# Make sure either enable_shared or enable_static is yes.
14070test "$enable_shared" = yes || enable_static=yes
14071{ echo "$as_me:$LINENO: result: $enable_static" >&5
14072echo "${ECHO_T}$enable_static" >&6; }
14073
14074GCC_F77="$G77"
14075LD_F77="$LD"
14076
14077lt_prog_compiler_wl_F77=
14078lt_prog_compiler_pic_F77=
14079lt_prog_compiler_static_F77=
14080
14081{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14082echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14083
14084  if test "$GCC" = yes; then
14085    lt_prog_compiler_wl_F77='-Wl,'
14086    lt_prog_compiler_static_F77='-static'
14087
14088    case $host_os in
14089      aix*)
14090      # All AIX code is PIC.
14091      if test "$host_cpu" = ia64; then
14092	# AIX 5 now supports IA64 processor
14093	lt_prog_compiler_static_F77='-Bstatic'
14094      fi
14095      ;;
14096
14097    amigaos*)
14098      # FIXME: we need at least 68020 code to build shared libraries, but
14099      # adding the `-m68020' flag to GCC prevents building anything better,
14100      # like `-m68040'.
14101      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14102      ;;
14103
14104    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14105      # PIC is the default for these OSes.
14106      ;;
14107
14108    mingw* | cygwin* | pw32* | os2*)
14109      # This hack is so that the source file can tell whether it is being
14110      # built for inclusion in a dll (and should export symbols for example).
14111      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14112      # (--disable-auto-import) libraries
14113      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14114      ;;
14115
14116    darwin* | rhapsody*)
14117      # PIC is the default on this platform
14118      # Common symbols not allowed in MH_DYLIB files
14119      lt_prog_compiler_pic_F77='-fno-common'
14120      ;;
14121
14122    interix[3-9]*)
14123      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14124      # Instead, we relocate shared libraries at runtime.
14125      ;;
14126
14127    msdosdjgpp*)
14128      # Just because we use GCC doesn't mean we suddenly get shared libraries
14129      # on systems that don't support them.
14130      lt_prog_compiler_can_build_shared_F77=no
14131      enable_shared=no
14132      ;;
14133
14134    sysv4*MP*)
14135      if test -d /usr/nec; then
14136	lt_prog_compiler_pic_F77=-Kconform_pic
14137      fi
14138      ;;
14139
14140    hpux*)
14141      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14142      # not for PA HP-UX.
14143      case $host_cpu in
14144      hppa*64*|ia64*)
14145	# +Z the default
14146	;;
14147      *)
14148	lt_prog_compiler_pic_F77='-fPIC'
14149	;;
14150      esac
14151      ;;
14152
14153    *)
14154      lt_prog_compiler_pic_F77='-fPIC'
14155      ;;
14156    esac
14157  else
14158    # PORTME Check for flag to pass linker flags through the system compiler.
14159    case $host_os in
14160    aix*)
14161      lt_prog_compiler_wl_F77='-Wl,'
14162      if test "$host_cpu" = ia64; then
14163	# AIX 5 now supports IA64 processor
14164	lt_prog_compiler_static_F77='-Bstatic'
14165      else
14166	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14167      fi
14168      ;;
14169      darwin*)
14170        # PIC is the default on this platform
14171        # Common symbols not allowed in MH_DYLIB files
14172       case $cc_basename in
14173         xlc*)
14174         lt_prog_compiler_pic_F77='-qnocommon'
14175         lt_prog_compiler_wl_F77='-Wl,'
14176         ;;
14177       esac
14178       ;;
14179
14180    mingw* | cygwin* | pw32* | os2*)
14181      # This hack is so that the source file can tell whether it is being
14182      # built for inclusion in a dll (and should export symbols for example).
14183      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14184      ;;
14185
14186    hpux9* | hpux10* | hpux11*)
14187      lt_prog_compiler_wl_F77='-Wl,'
14188      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14189      # not for PA HP-UX.
14190      case $host_cpu in
14191      hppa*64*|ia64*)
14192	# +Z the default
14193	;;
14194      *)
14195	lt_prog_compiler_pic_F77='+Z'
14196	;;
14197      esac
14198      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14199      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14200      ;;
14201
14202    irix5* | irix6* | nonstopux*)
14203      lt_prog_compiler_wl_F77='-Wl,'
14204      # PIC (with -KPIC) is the default.
14205      lt_prog_compiler_static_F77='-non_shared'
14206      ;;
14207
14208    newsos6)
14209      lt_prog_compiler_pic_F77='-KPIC'
14210      lt_prog_compiler_static_F77='-Bstatic'
14211      ;;
14212
14213    linux* | k*bsd*-gnu)
14214      case $cc_basename in
14215      icc* | ecc*)
14216	lt_prog_compiler_wl_F77='-Wl,'
14217	lt_prog_compiler_pic_F77='-KPIC'
14218	lt_prog_compiler_static_F77='-static'
14219        ;;
14220      pgcc* | pgf77* | pgf90* | pgf95*)
14221        # Portland Group compilers (*not* the Pentium gcc compiler,
14222	# which looks to be a dead project)
14223	lt_prog_compiler_wl_F77='-Wl,'
14224	lt_prog_compiler_pic_F77='-fpic'
14225	lt_prog_compiler_static_F77='-Bstatic'
14226        ;;
14227      ccc*)
14228        lt_prog_compiler_wl_F77='-Wl,'
14229        # All Alpha code is PIC.
14230        lt_prog_compiler_static_F77='-non_shared'
14231        ;;
14232      *)
14233        case `$CC -V 2>&1 | sed 5q` in
14234	*Sun\ C*)
14235	  # Sun C 5.9
14236	  lt_prog_compiler_pic_F77='-KPIC'
14237	  lt_prog_compiler_static_F77='-Bstatic'
14238	  lt_prog_compiler_wl_F77='-Wl,'
14239	  ;;
14240	*Sun\ F*)
14241	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14242	  lt_prog_compiler_pic_F77='-KPIC'
14243	  lt_prog_compiler_static_F77='-Bstatic'
14244	  lt_prog_compiler_wl_F77=''
14245	  ;;
14246	esac
14247	;;
14248      esac
14249      ;;
14250
14251    osf3* | osf4* | osf5*)
14252      lt_prog_compiler_wl_F77='-Wl,'
14253      # All OSF/1 code is PIC.
14254      lt_prog_compiler_static_F77='-non_shared'
14255      ;;
14256
14257    rdos*)
14258      lt_prog_compiler_static_F77='-non_shared'
14259      ;;
14260
14261    solaris*)
14262      lt_prog_compiler_pic_F77='-KPIC'
14263      lt_prog_compiler_static_F77='-Bstatic'
14264      case $cc_basename in
14265      f77* | f90* | f95*)
14266	lt_prog_compiler_wl_F77='-Qoption ld ';;
14267      *)
14268	lt_prog_compiler_wl_F77='-Wl,';;
14269      esac
14270      ;;
14271
14272    sunos4*)
14273      lt_prog_compiler_wl_F77='-Qoption ld '
14274      lt_prog_compiler_pic_F77='-PIC'
14275      lt_prog_compiler_static_F77='-Bstatic'
14276      ;;
14277
14278    sysv4 | sysv4.2uw2* | sysv4.3*)
14279      lt_prog_compiler_wl_F77='-Wl,'
14280      lt_prog_compiler_pic_F77='-KPIC'
14281      lt_prog_compiler_static_F77='-Bstatic'
14282      ;;
14283
14284    sysv4*MP*)
14285      if test -d /usr/nec ;then
14286	lt_prog_compiler_pic_F77='-Kconform_pic'
14287	lt_prog_compiler_static_F77='-Bstatic'
14288      fi
14289      ;;
14290
14291    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14292      lt_prog_compiler_wl_F77='-Wl,'
14293      lt_prog_compiler_pic_F77='-KPIC'
14294      lt_prog_compiler_static_F77='-Bstatic'
14295      ;;
14296
14297    unicos*)
14298      lt_prog_compiler_wl_F77='-Wl,'
14299      lt_prog_compiler_can_build_shared_F77=no
14300      ;;
14301
14302    uts4*)
14303      lt_prog_compiler_pic_F77='-pic'
14304      lt_prog_compiler_static_F77='-Bstatic'
14305      ;;
14306
14307    *)
14308      lt_prog_compiler_can_build_shared_F77=no
14309      ;;
14310    esac
14311  fi
14312
14313{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14314echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14315
14316#
14317# Check to make sure the PIC flag actually works.
14318#
14319if test -n "$lt_prog_compiler_pic_F77"; then
14320
14321{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14322echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14323if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14324  echo $ECHO_N "(cached) $ECHO_C" >&6
14325else
14326  lt_cv_prog_compiler_pic_works_F77=no
14327  ac_outfile=conftest.$ac_objext
14328   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14329   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14330   # Insert the option either (1) after the last *FLAGS variable, or
14331   # (2) before a word containing "conftest.", or (3) at the end.
14332   # Note that $ac_compile itself does not contain backslashes and begins
14333   # with a dollar sign (not a hyphen), so the echo should work correctly.
14334   # The option is referenced via a variable to avoid confusing sed.
14335   lt_compile=`echo "$ac_compile" | $SED \
14336   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14337   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14338   -e 's:$: $lt_compiler_flag:'`
14339   (eval echo "\"\$as_me:14339: $lt_compile\"" >&5)
14340   (eval "$lt_compile" 2>conftest.err)
14341   ac_status=$?
14342   cat conftest.err >&5
14343   echo "$as_me:14343: \$? = $ac_status" >&5
14344   if (exit $ac_status) && test -s "$ac_outfile"; then
14345     # The compiler can only warn and ignore the option if not recognized
14346     # So say no if there are warnings other than the usual output.
14347     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14348     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14349     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14350       lt_cv_prog_compiler_pic_works_F77=yes
14351     fi
14352   fi
14353   $rm conftest*
14354
14355fi
14356{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14357echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14358
14359if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14360    case $lt_prog_compiler_pic_F77 in
14361     "" | " "*) ;;
14362     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14363     esac
14364else
14365    lt_prog_compiler_pic_F77=
14366     lt_prog_compiler_can_build_shared_F77=no
14367fi
14368
14369fi
14370case $host_os in
14371  # For platforms which do not support PIC, -DPIC is meaningless:
14372  *djgpp*)
14373    lt_prog_compiler_pic_F77=
14374    ;;
14375  *)
14376    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14377    ;;
14378esac
14379
14380#
14381# Check to make sure the static flag actually works.
14382#
14383wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14384{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14385echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14386if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14387  echo $ECHO_N "(cached) $ECHO_C" >&6
14388else
14389  lt_cv_prog_compiler_static_works_F77=no
14390   save_LDFLAGS="$LDFLAGS"
14391   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14392   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14393   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14394     # The linker can only warn and ignore the option if not recognized
14395     # So say no if there are warnings
14396     if test -s conftest.err; then
14397       # Append any errors to the config.log.
14398       cat conftest.err 1>&5
14399       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14400       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14401       if diff conftest.exp conftest.er2 >/dev/null; then
14402         lt_cv_prog_compiler_static_works_F77=yes
14403       fi
14404     else
14405       lt_cv_prog_compiler_static_works_F77=yes
14406     fi
14407   fi
14408   $rm -r conftest*
14409   LDFLAGS="$save_LDFLAGS"
14410
14411fi
14412{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14413echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14414
14415if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14416    :
14417else
14418    lt_prog_compiler_static_F77=
14419fi
14420
14421
14422{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14423echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14424if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14425  echo $ECHO_N "(cached) $ECHO_C" >&6
14426else
14427  lt_cv_prog_compiler_c_o_F77=no
14428   $rm -r conftest 2>/dev/null
14429   mkdir conftest
14430   cd conftest
14431   mkdir out
14432   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14433
14434   lt_compiler_flag="-o out/conftest2.$ac_objext"
14435   # Insert the option either (1) after the last *FLAGS variable, or
14436   # (2) before a word containing "conftest.", or (3) at the end.
14437   # Note that $ac_compile itself does not contain backslashes and begins
14438   # with a dollar sign (not a hyphen), so the echo should work correctly.
14439   lt_compile=`echo "$ac_compile" | $SED \
14440   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14441   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14442   -e 's:$: $lt_compiler_flag:'`
14443   (eval echo "\"\$as_me:14443: $lt_compile\"" >&5)
14444   (eval "$lt_compile" 2>out/conftest.err)
14445   ac_status=$?
14446   cat out/conftest.err >&5
14447   echo "$as_me:14447: \$? = $ac_status" >&5
14448   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14449   then
14450     # The compiler can only warn and ignore the option if not recognized
14451     # So say no if there are warnings
14452     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14453     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14454     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14455       lt_cv_prog_compiler_c_o_F77=yes
14456     fi
14457   fi
14458   chmod u+w . 2>&5
14459   $rm conftest*
14460   # SGI C++ compiler will create directory out/ii_files/ for
14461   # template instantiation
14462   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14463   $rm out/* && rmdir out
14464   cd ..
14465   rmdir conftest
14466   $rm conftest*
14467
14468fi
14469{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14470echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14471
14472
14473hard_links="nottested"
14474if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14475  # do not overwrite the value of need_locks provided by the user
14476  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14477echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14478  hard_links=yes
14479  $rm conftest*
14480  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14481  touch conftest.a
14482  ln conftest.a conftest.b 2>&5 || hard_links=no
14483  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14484  { echo "$as_me:$LINENO: result: $hard_links" >&5
14485echo "${ECHO_T}$hard_links" >&6; }
14486  if test "$hard_links" = no; then
14487    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14488echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14489    need_locks=warn
14490  fi
14491else
14492  need_locks=no
14493fi
14494
14495{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14496echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14497
14498  runpath_var=
14499  allow_undefined_flag_F77=
14500  enable_shared_with_static_runtimes_F77=no
14501  archive_cmds_F77=
14502  archive_expsym_cmds_F77=
14503  old_archive_From_new_cmds_F77=
14504  old_archive_from_expsyms_cmds_F77=
14505  export_dynamic_flag_spec_F77=
14506  whole_archive_flag_spec_F77=
14507  thread_safe_flag_spec_F77=
14508  hardcode_libdir_flag_spec_F77=
14509  hardcode_libdir_flag_spec_ld_F77=
14510  hardcode_libdir_separator_F77=
14511  hardcode_direct_F77=no
14512  hardcode_minus_L_F77=no
14513  hardcode_shlibpath_var_F77=unsupported
14514  link_all_deplibs_F77=unknown
14515  hardcode_automatic_F77=no
14516  module_cmds_F77=
14517  module_expsym_cmds_F77=
14518  always_export_symbols_F77=no
14519  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14520  # include_expsyms should be a list of space-separated symbols to be *always*
14521  # included in the symbol list
14522  include_expsyms_F77=
14523  # exclude_expsyms can be an extended regexp of symbols to exclude
14524  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14525  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14526  # as well as any symbol that contains `d'.
14527  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14528  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14529  # platforms (ab)use it in PIC code, but their linkers get confused if
14530  # the symbol is explicitly referenced.  Since portable code cannot
14531  # rely on this symbol name, it's probably fine to never include it in
14532  # preloaded symbol tables.
14533  # Exclude shared library initialization/finalization symbols.
14534  extract_expsyms_cmds=
14535  # Just being paranoid about ensuring that cc_basename is set.
14536  for cc_temp in $compiler""; do
14537  case $cc_temp in
14538    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14539    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14540    \-*) ;;
14541    *) break;;
14542  esac
14543done
14544cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14545
14546  case $host_os in
14547  cygwin* | mingw* | pw32*)
14548    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14549    # When not using gcc, we currently assume that we are using
14550    # Microsoft Visual C++.
14551    if test "$GCC" != yes; then
14552      with_gnu_ld=no
14553    fi
14554    ;;
14555  interix*)
14556    # we just hope/assume this is gcc and not c89 (= MSVC++)
14557    with_gnu_ld=yes
14558    ;;
14559  openbsd*)
14560    with_gnu_ld=no
14561    ;;
14562  esac
14563
14564  ld_shlibs_F77=yes
14565  if test "$with_gnu_ld" = yes; then
14566    # If archive_cmds runs LD, not CC, wlarc should be empty
14567    wlarc='${wl}'
14568
14569    # Set some defaults for GNU ld with shared library support. These
14570    # are reset later if shared libraries are not supported. Putting them
14571    # here allows them to be overridden if necessary.
14572    runpath_var=LD_RUN_PATH
14573    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14574    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14575    # ancient GNU ld didn't support --whole-archive et. al.
14576    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14577	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14578      else
14579  	whole_archive_flag_spec_F77=
14580    fi
14581    supports_anon_versioning=no
14582    case `$LD -v 2>/dev/null` in
14583      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14584      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14585      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14586      *\ 2.11.*) ;; # other 2.11 versions
14587      *) supports_anon_versioning=yes ;;
14588    esac
14589
14590    # See if GNU ld supports shared libraries.
14591    case $host_os in
14592    aix[3-9]*)
14593      # On AIX/PPC, the GNU linker is very broken
14594      if test "$host_cpu" != ia64; then
14595	ld_shlibs_F77=no
14596	cat <<EOF 1>&2
14597
14598*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14599*** to be unable to reliably create shared libraries on AIX.
14600*** Therefore, libtool is disabling shared libraries support.  If you
14601*** really care for shared libraries, you may want to modify your PATH
14602*** so that a non-GNU linker is found, and then restart.
14603
14604EOF
14605      fi
14606      ;;
14607
14608    amigaos*)
14609      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)'
14610      hardcode_libdir_flag_spec_F77='-L$libdir'
14611      hardcode_minus_L_F77=yes
14612
14613      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14614      # that the semantics of dynamic libraries on AmigaOS, at least up
14615      # to version 4, is to share data among multiple programs linked
14616      # with the same dynamic library.  Since this doesn't match the
14617      # behavior of shared libraries on other platforms, we can't use
14618      # them.
14619      ld_shlibs_F77=no
14620      ;;
14621
14622    beos*)
14623      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14624	allow_undefined_flag_F77=unsupported
14625	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14626	# support --undefined.  This deserves some investigation.  FIXME
14627	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14628      else
14629	ld_shlibs_F77=no
14630      fi
14631      ;;
14632
14633    cygwin* | mingw* | pw32*)
14634      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14635      # as there is no search path for DLLs.
14636      hardcode_libdir_flag_spec_F77='-L$libdir'
14637      allow_undefined_flag_F77=unsupported
14638      always_export_symbols_F77=no
14639      enable_shared_with_static_runtimes_F77=yes
14640      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14641
14642      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14643        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14644	# If the export-symbols file already is a .def file (1st line
14645	# is EXPORTS), use it as is; otherwise, prepend...
14646	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14647	  cp $export_symbols $output_objdir/$soname.def;
14648	else
14649	  echo EXPORTS > $output_objdir/$soname.def;
14650	  cat $export_symbols >> $output_objdir/$soname.def;
14651	fi~
14652	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14653      else
14654	ld_shlibs_F77=no
14655      fi
14656      ;;
14657
14658    interix[3-9]*)
14659      hardcode_direct_F77=no
14660      hardcode_shlibpath_var_F77=no
14661      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14662      export_dynamic_flag_spec_F77='${wl}-E'
14663      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14664      # Instead, shared libraries are loaded at an image base (0x10000000 by
14665      # default) and relocated if they conflict, which is a slow very memory
14666      # consuming and fragmenting process.  To avoid this, we pick a random,
14667      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14668      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14669      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'
14670      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'
14671      ;;
14672
14673    gnu* | linux* | k*bsd*-gnu)
14674      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14675	tmp_addflag=
14676	case $cc_basename,$host_cpu in
14677	pgcc*)				# Portland Group C compiler
14678	  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'
14679	  tmp_addflag=' $pic_flag'
14680	  ;;
14681	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14682	  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'
14683	  tmp_addflag=' $pic_flag -Mnomain' ;;
14684	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14685	  tmp_addflag=' -i_dynamic' ;;
14686	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14687	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14688	ifc* | ifort*)			# Intel Fortran compiler
14689	  tmp_addflag=' -nofor_main' ;;
14690	esac
14691	case `$CC -V 2>&1 | sed 5q` in
14692	*Sun\ C*)			# Sun C 5.9
14693	  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'
14694	  tmp_sharedflag='-G' ;;
14695	*Sun\ F*)			# Sun Fortran 8.3
14696	  tmp_sharedflag='-G' ;;
14697	*)
14698	  tmp_sharedflag='-shared' ;;
14699	esac
14700	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14701
14702	if test $supports_anon_versioning = yes; then
14703	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14704  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14705  $echo "local: *; };" >> $output_objdir/$libname.ver~
14706	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14707	fi
14708	link_all_deplibs_F77=no
14709      else
14710	ld_shlibs_F77=no
14711      fi
14712      ;;
14713
14714    netbsd* | netbsdelf*-gnu)
14715      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14716	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14717	wlarc=
14718      else
14719	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14720	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14721      fi
14722      ;;
14723
14724    solaris*)
14725      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14726	ld_shlibs_F77=no
14727	cat <<EOF 1>&2
14728
14729*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14730*** create shared libraries on Solaris systems.  Therefore, libtool
14731*** is disabling shared libraries support.  We urge you to upgrade GNU
14732*** binutils to release 2.9.1 or newer.  Another option is to modify
14733*** your PATH or compiler configuration so that the native linker is
14734*** used, and then restart.
14735
14736EOF
14737      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14738	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14739	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14740      else
14741	ld_shlibs_F77=no
14742      fi
14743      ;;
14744
14745    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14746      case `$LD -v 2>&1` in
14747        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14748	ld_shlibs_F77=no
14749	cat <<_LT_EOF 1>&2
14750
14751*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14752*** reliably create shared libraries on SCO systems.  Therefore, libtool
14753*** is disabling shared libraries support.  We urge you to upgrade GNU
14754*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14755*** your PATH or compiler configuration so that the native linker is
14756*** used, and then restart.
14757
14758_LT_EOF
14759	;;
14760	*)
14761	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14762	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14763	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14764	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14765	  else
14766	    ld_shlibs_F77=no
14767	  fi
14768	;;
14769      esac
14770      ;;
14771
14772    sunos4*)
14773      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14774      wlarc=
14775      hardcode_direct_F77=yes
14776      hardcode_shlibpath_var_F77=no
14777      ;;
14778
14779    *)
14780      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14781	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14782	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14783      else
14784	ld_shlibs_F77=no
14785      fi
14786      ;;
14787    esac
14788
14789    if test "$ld_shlibs_F77" = no; then
14790      runpath_var=
14791      hardcode_libdir_flag_spec_F77=
14792      export_dynamic_flag_spec_F77=
14793      whole_archive_flag_spec_F77=
14794    fi
14795  else
14796    # PORTME fill in a description of your system's linker (not GNU ld)
14797    case $host_os in
14798    aix3*)
14799      allow_undefined_flag_F77=unsupported
14800      always_export_symbols_F77=yes
14801      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'
14802      # Note: this linker hardcodes the directories in LIBPATH if there
14803      # are no directories specified by -L.
14804      hardcode_minus_L_F77=yes
14805      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14806	# Neither direct hardcoding nor static linking is supported with a
14807	# broken collect2.
14808	hardcode_direct_F77=unsupported
14809      fi
14810      ;;
14811
14812    aix[4-9]*)
14813      if test "$host_cpu" = ia64; then
14814	# On IA64, the linker does run time linking by default, so we don't
14815	# have to do anything special.
14816	aix_use_runtimelinking=no
14817	exp_sym_flag='-Bexport'
14818	no_entry_flag=""
14819      else
14820	# If we're using GNU nm, then we don't want the "-C" option.
14821	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14822	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14823	  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'
14824	else
14825	  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'
14826	fi
14827	aix_use_runtimelinking=no
14828
14829	# Test if we are trying to use run time linking or normal
14830	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14831	# need to do runtime linking.
14832	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14833	  for ld_flag in $LDFLAGS; do
14834  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14835  	    aix_use_runtimelinking=yes
14836  	    break
14837  	  fi
14838	  done
14839	  ;;
14840	esac
14841
14842	exp_sym_flag='-bexport'
14843	no_entry_flag='-bnoentry'
14844      fi
14845
14846      # When large executables or shared objects are built, AIX ld can
14847      # have problems creating the table of contents.  If linking a library
14848      # or program results in "error TOC overflow" add -mminimal-toc to
14849      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14850      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14851
14852      archive_cmds_F77=''
14853      hardcode_direct_F77=yes
14854      hardcode_libdir_separator_F77=':'
14855      link_all_deplibs_F77=yes
14856
14857      if test "$GCC" = yes; then
14858	case $host_os in aix4.[012]|aix4.[012].*)
14859	# We only want to do this on AIX 4.2 and lower, the check
14860	# below for broken collect2 doesn't work under 4.3+
14861	  collect2name=`${CC} -print-prog-name=collect2`
14862	  if test -f "$collect2name" && \
14863  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14864	  then
14865  	  # We have reworked collect2
14866  	  :
14867	  else
14868  	  # We have old collect2
14869  	  hardcode_direct_F77=unsupported
14870  	  # It fails to find uninstalled libraries when the uninstalled
14871  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14872  	  # to unsupported forces relinking
14873  	  hardcode_minus_L_F77=yes
14874  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14875  	  hardcode_libdir_separator_F77=
14876	  fi
14877	  ;;
14878	esac
14879	shared_flag='-shared'
14880	if test "$aix_use_runtimelinking" = yes; then
14881	  shared_flag="$shared_flag "'${wl}-G'
14882	fi
14883      else
14884	# not using gcc
14885	if test "$host_cpu" = ia64; then
14886  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14887  	# chokes on -Wl,-G. The following line is correct:
14888	  shared_flag='-G'
14889	else
14890	  if test "$aix_use_runtimelinking" = yes; then
14891	    shared_flag='${wl}-G'
14892	  else
14893	    shared_flag='${wl}-bM:SRE'
14894	  fi
14895	fi
14896      fi
14897
14898      # It seems that -bexpall does not export symbols beginning with
14899      # underscore (_), so it is better to generate a list of symbols to export.
14900      always_export_symbols_F77=yes
14901      if test "$aix_use_runtimelinking" = yes; then
14902	# Warning - without using the other runtime loading flags (-brtl),
14903	# -berok will link without error, but may produce a broken library.
14904	allow_undefined_flag_F77='-berok'
14905       # Determine the default libpath from the value encoded in an empty executable.
14906       cat >conftest.$ac_ext <<_ACEOF
14907      program main
14908
14909      end
14910_ACEOF
14911rm -f conftest.$ac_objext conftest$ac_exeext
14912if { (ac_try="$ac_link"
14913case "(($ac_try" in
14914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915  *) ac_try_echo=$ac_try;;
14916esac
14917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14918  (eval "$ac_link") 2>conftest.er1
14919  ac_status=$?
14920  grep -v '^ *+' conftest.er1 >conftest.err
14921  rm -f conftest.er1
14922  cat conftest.err >&5
14923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924  (exit $ac_status); } && {
14925	 test -z "$ac_f77_werror_flag" ||
14926	 test ! -s conftest.err
14927       } && test -s conftest$ac_exeext &&
14928       $as_test_x conftest$ac_exeext; then
14929
14930lt_aix_libpath_sed='
14931    /Import File Strings/,/^$/ {
14932	/^0/ {
14933	    s/^0  *\(.*\)$/\1/
14934	    p
14935	}
14936    }'
14937aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14938# Check for a 64-bit object if we didn't find anything.
14939if test -z "$aix_libpath"; then
14940  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14941fi
14942else
14943  echo "$as_me: failed program was:" >&5
14944sed 's/^/| /' conftest.$ac_ext >&5
14945
14946
14947fi
14948
14949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14950      conftest$ac_exeext conftest.$ac_ext
14951if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14952
14953       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14954	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"
14955       else
14956	if test "$host_cpu" = ia64; then
14957	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14958	  allow_undefined_flag_F77="-z nodefs"
14959	  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"
14960	else
14961	 # Determine the default libpath from the value encoded in an empty executable.
14962	 cat >conftest.$ac_ext <<_ACEOF
14963      program main
14964
14965      end
14966_ACEOF
14967rm -f conftest.$ac_objext conftest$ac_exeext
14968if { (ac_try="$ac_link"
14969case "(($ac_try" in
14970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971  *) ac_try_echo=$ac_try;;
14972esac
14973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974  (eval "$ac_link") 2>conftest.er1
14975  ac_status=$?
14976  grep -v '^ *+' conftest.er1 >conftest.err
14977  rm -f conftest.er1
14978  cat conftest.err >&5
14979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980  (exit $ac_status); } && {
14981	 test -z "$ac_f77_werror_flag" ||
14982	 test ! -s conftest.err
14983       } && test -s conftest$ac_exeext &&
14984       $as_test_x conftest$ac_exeext; then
14985
14986lt_aix_libpath_sed='
14987    /Import File Strings/,/^$/ {
14988	/^0/ {
14989	    s/^0  *\(.*\)$/\1/
14990	    p
14991	}
14992    }'
14993aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14994# Check for a 64-bit object if we didn't find anything.
14995if test -z "$aix_libpath"; then
14996  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14997fi
14998else
14999  echo "$as_me: failed program was:" >&5
15000sed 's/^/| /' conftest.$ac_ext >&5
15001
15002
15003fi
15004
15005rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15006      conftest$ac_exeext conftest.$ac_ext
15007if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15008
15009	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15010	  # Warning - without using the other run time loading flags,
15011	  # -berok will link without error, but may produce a broken library.
15012	  no_undefined_flag_F77=' ${wl}-bernotok'
15013	  allow_undefined_flag_F77=' ${wl}-berok'
15014	  # Exported symbols can be pulled into shared objects from archives
15015	  whole_archive_flag_spec_F77='$convenience'
15016	  archive_cmds_need_lc_F77=yes
15017	  # This is similar to how AIX traditionally builds its shared libraries.
15018	  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'
15019	fi
15020      fi
15021      ;;
15022
15023    amigaos*)
15024      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)'
15025      hardcode_libdir_flag_spec_F77='-L$libdir'
15026      hardcode_minus_L_F77=yes
15027      # see comment about different semantics on the GNU ld section
15028      ld_shlibs_F77=no
15029      ;;
15030
15031    bsdi[45]*)
15032      export_dynamic_flag_spec_F77=-rdynamic
15033      ;;
15034
15035    cygwin* | mingw* | pw32*)
15036      # When not using gcc, we currently assume that we are using
15037      # Microsoft Visual C++.
15038      # hardcode_libdir_flag_spec is actually meaningless, as there is
15039      # no search path for DLLs.
15040      hardcode_libdir_flag_spec_F77=' '
15041      allow_undefined_flag_F77=unsupported
15042      # Tell ltmain to make .lib files, not .a files.
15043      libext=lib
15044      # Tell ltmain to make .dll files, not .so files.
15045      shrext_cmds=".dll"
15046      # FIXME: Setting linknames here is a bad hack.
15047      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15048      # The linker will automatically build a .lib file if we build a DLL.
15049      old_archive_From_new_cmds_F77='true'
15050      # FIXME: Should let the user specify the lib program.
15051      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15052      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15053      enable_shared_with_static_runtimes_F77=yes
15054      ;;
15055
15056    darwin* | rhapsody*)
15057      case $host_os in
15058        rhapsody* | darwin1.[012])
15059         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15060         ;;
15061       *) # Darwin 1.3 on
15062         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15063           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15064         else
15065           case ${MACOSX_DEPLOYMENT_TARGET} in
15066             10.[012])
15067               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15068               ;;
15069             10.*)
15070               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15071               ;;
15072           esac
15073         fi
15074         ;;
15075      esac
15076      archive_cmds_need_lc_F77=no
15077      hardcode_direct_F77=no
15078      hardcode_automatic_F77=yes
15079      hardcode_shlibpath_var_F77=unsupported
15080      whole_archive_flag_spec_F77=''
15081      link_all_deplibs_F77=yes
15082    if test "$GCC" = yes ; then
15083    	output_verbose_link_cmd='echo'
15084        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}"
15085        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15086        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}"
15087        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}"
15088    else
15089      case $cc_basename in
15090        xlc*)
15091         output_verbose_link_cmd='echo'
15092         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15093         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15094          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15095         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}'
15096          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}'
15097          ;;
15098       *)
15099         ld_shlibs_F77=no
15100          ;;
15101      esac
15102    fi
15103      ;;
15104
15105    dgux*)
15106      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15107      hardcode_libdir_flag_spec_F77='-L$libdir'
15108      hardcode_shlibpath_var_F77=no
15109      ;;
15110
15111    freebsd1*)
15112      ld_shlibs_F77=no
15113      ;;
15114
15115    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15116    # support.  Future versions do this automatically, but an explicit c++rt0.o
15117    # does not break anything, and helps significantly (at the cost of a little
15118    # extra space).
15119    freebsd2.2*)
15120      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15121      hardcode_libdir_flag_spec_F77='-R$libdir'
15122      hardcode_direct_F77=yes
15123      hardcode_shlibpath_var_F77=no
15124      ;;
15125
15126    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15127    freebsd2*)
15128      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15129      hardcode_direct_F77=yes
15130      hardcode_minus_L_F77=yes
15131      hardcode_shlibpath_var_F77=no
15132      ;;
15133
15134    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15135    freebsd* | dragonfly*)
15136      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15137      hardcode_libdir_flag_spec_F77='-R$libdir'
15138      hardcode_direct_F77=yes
15139      hardcode_shlibpath_var_F77=no
15140      ;;
15141
15142    hpux9*)
15143      if test "$GCC" = yes; then
15144	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'
15145      else
15146	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'
15147      fi
15148      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15149      hardcode_libdir_separator_F77=:
15150      hardcode_direct_F77=yes
15151
15152      # hardcode_minus_L: Not really in the search PATH,
15153      # but as the default location of the library.
15154      hardcode_minus_L_F77=yes
15155      export_dynamic_flag_spec_F77='${wl}-E'
15156      ;;
15157
15158    hpux10*)
15159      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15160	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15161      else
15162	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15163      fi
15164      if test "$with_gnu_ld" = no; then
15165	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15166	hardcode_libdir_separator_F77=:
15167
15168	hardcode_direct_F77=yes
15169	export_dynamic_flag_spec_F77='${wl}-E'
15170
15171	# hardcode_minus_L: Not really in the search PATH,
15172	# but as the default location of the library.
15173	hardcode_minus_L_F77=yes
15174      fi
15175      ;;
15176
15177    hpux11*)
15178      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15179	case $host_cpu in
15180	hppa*64*)
15181	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15182	  ;;
15183	ia64*)
15184	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15185	  ;;
15186	*)
15187	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15188	  ;;
15189	esac
15190      else
15191	case $host_cpu in
15192	hppa*64*)
15193	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15194	  ;;
15195	ia64*)
15196	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15197	  ;;
15198	*)
15199	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15200	  ;;
15201	esac
15202      fi
15203      if test "$with_gnu_ld" = no; then
15204	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15205	hardcode_libdir_separator_F77=:
15206
15207	case $host_cpu in
15208	hppa*64*|ia64*)
15209	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15210	  hardcode_direct_F77=no
15211	  hardcode_shlibpath_var_F77=no
15212	  ;;
15213	*)
15214	  hardcode_direct_F77=yes
15215	  export_dynamic_flag_spec_F77='${wl}-E'
15216
15217	  # hardcode_minus_L: Not really in the search PATH,
15218	  # but as the default location of the library.
15219	  hardcode_minus_L_F77=yes
15220	  ;;
15221	esac
15222      fi
15223      ;;
15224
15225    irix5* | irix6* | nonstopux*)
15226      if test "$GCC" = yes; then
15227	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'
15228      else
15229	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'
15230	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15231      fi
15232      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15233      hardcode_libdir_separator_F77=:
15234      link_all_deplibs_F77=yes
15235      ;;
15236
15237    netbsd* | netbsdelf*-gnu)
15238      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15239	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15240      else
15241	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15242      fi
15243      hardcode_libdir_flag_spec_F77='-R$libdir'
15244      hardcode_direct_F77=yes
15245      hardcode_shlibpath_var_F77=no
15246      ;;
15247
15248    newsos6)
15249      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15250      hardcode_direct_F77=yes
15251      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15252      hardcode_libdir_separator_F77=:
15253      hardcode_shlibpath_var_F77=no
15254      ;;
15255
15256    openbsd*)
15257      if test -f /usr/libexec/ld.so; then
15258	hardcode_direct_F77=yes
15259	hardcode_shlibpath_var_F77=no
15260	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15261	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15262	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15263	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15264	  export_dynamic_flag_spec_F77='${wl}-E'
15265	else
15266	  case $host_os in
15267	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15268	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15269	     hardcode_libdir_flag_spec_F77='-R$libdir'
15270	     ;;
15271	   *)
15272	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15273	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15274	     ;;
15275	  esac
15276        fi
15277      else
15278	ld_shlibs_F77=no
15279      fi
15280      ;;
15281
15282    os2*)
15283      hardcode_libdir_flag_spec_F77='-L$libdir'
15284      hardcode_minus_L_F77=yes
15285      allow_undefined_flag_F77=unsupported
15286      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'
15287      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15288      ;;
15289
15290    osf3*)
15291      if test "$GCC" = yes; then
15292	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15293	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'
15294      else
15295	allow_undefined_flag_F77=' -expect_unresolved \*'
15296	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'
15297      fi
15298      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15299      hardcode_libdir_separator_F77=:
15300      ;;
15301
15302    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15303      if test "$GCC" = yes; then
15304	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15305	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'
15306	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15307      else
15308	allow_undefined_flag_F77=' -expect_unresolved \*'
15309	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'
15310	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~
15311	$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'
15312
15313	# Both c and cxx compiler support -rpath directly
15314	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15315      fi
15316      hardcode_libdir_separator_F77=:
15317      ;;
15318
15319    solaris*)
15320      no_undefined_flag_F77=' -z text'
15321      if test "$GCC" = yes; then
15322	wlarc='${wl}'
15323	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15324	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15325	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15326      else
15327	wlarc=''
15328	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15329	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15330  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15331      fi
15332      hardcode_libdir_flag_spec_F77='-R$libdir'
15333      hardcode_shlibpath_var_F77=no
15334      case $host_os in
15335      solaris2.[0-5] | solaris2.[0-5].*) ;;
15336      *)
15337	# The compiler driver will combine and reorder linker options,
15338	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15339	# but is careful enough not to reorder.
15340 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15341	if test "$GCC" = yes; then
15342	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15343	else
15344	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15345	fi
15346	;;
15347      esac
15348      link_all_deplibs_F77=yes
15349      ;;
15350
15351    sunos4*)
15352      if test "x$host_vendor" = xsequent; then
15353	# Use $CC to link under sequent, because it throws in some extra .o
15354	# files that make .init and .fini sections work.
15355	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15356      else
15357	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15358      fi
15359      hardcode_libdir_flag_spec_F77='-L$libdir'
15360      hardcode_direct_F77=yes
15361      hardcode_minus_L_F77=yes
15362      hardcode_shlibpath_var_F77=no
15363      ;;
15364
15365    sysv4)
15366      case $host_vendor in
15367	sni)
15368	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15369	  hardcode_direct_F77=yes # is this really true???
15370	;;
15371	siemens)
15372	  ## LD is ld it makes a PLAMLIB
15373	  ## CC just makes a GrossModule.
15374	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15375	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15376	  hardcode_direct_F77=no
15377        ;;
15378	motorola)
15379	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15380	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15381	;;
15382      esac
15383      runpath_var='LD_RUN_PATH'
15384      hardcode_shlibpath_var_F77=no
15385      ;;
15386
15387    sysv4.3*)
15388      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15389      hardcode_shlibpath_var_F77=no
15390      export_dynamic_flag_spec_F77='-Bexport'
15391      ;;
15392
15393    sysv4*MP*)
15394      if test -d /usr/nec; then
15395	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15396	hardcode_shlibpath_var_F77=no
15397	runpath_var=LD_RUN_PATH
15398	hardcode_runpath_var=yes
15399	ld_shlibs_F77=yes
15400      fi
15401      ;;
15402
15403    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15404      no_undefined_flag_F77='${wl}-z,text'
15405      archive_cmds_need_lc_F77=no
15406      hardcode_shlibpath_var_F77=no
15407      runpath_var='LD_RUN_PATH'
15408
15409      if test "$GCC" = yes; then
15410	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15411	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15412      else
15413	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15414	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15415      fi
15416      ;;
15417
15418    sysv5* | sco3.2v5* | sco5v6*)
15419      # Note: We can NOT use -z defs as we might desire, because we do not
15420      # link with -lc, and that would cause any symbols used from libc to
15421      # always be unresolved, which means just about no library would
15422      # ever link correctly.  If we're not using GNU ld we use -z text
15423      # though, which does catch some bad symbols but isn't as heavy-handed
15424      # as -z defs.
15425      no_undefined_flag_F77='${wl}-z,text'
15426      allow_undefined_flag_F77='${wl}-z,nodefs'
15427      archive_cmds_need_lc_F77=no
15428      hardcode_shlibpath_var_F77=no
15429      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15430      hardcode_libdir_separator_F77=':'
15431      link_all_deplibs_F77=yes
15432      export_dynamic_flag_spec_F77='${wl}-Bexport'
15433      runpath_var='LD_RUN_PATH'
15434
15435      if test "$GCC" = yes; then
15436	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15437	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15438      else
15439	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15440	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15441      fi
15442      ;;
15443
15444    uts4*)
15445      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15446      hardcode_libdir_flag_spec_F77='-L$libdir'
15447      hardcode_shlibpath_var_F77=no
15448      ;;
15449
15450    *)
15451      ld_shlibs_F77=no
15452      ;;
15453    esac
15454  fi
15455
15456{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15457echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15458test "$ld_shlibs_F77" = no && can_build_shared=no
15459
15460#
15461# Do we need to explicitly link libc?
15462#
15463case "x$archive_cmds_need_lc_F77" in
15464x|xyes)
15465  # Assume -lc should be added
15466  archive_cmds_need_lc_F77=yes
15467
15468  if test "$enable_shared" = yes && test "$GCC" = yes; then
15469    case $archive_cmds_F77 in
15470    *'~'*)
15471      # FIXME: we may have to deal with multi-command sequences.
15472      ;;
15473    '$CC '*)
15474      # Test whether the compiler implicitly links with -lc since on some
15475      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15476      # to ld, don't add -lc before -lgcc.
15477      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15478echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15479      $rm conftest*
15480      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15481
15482      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15483  (eval $ac_compile) 2>&5
15484  ac_status=$?
15485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486  (exit $ac_status); } 2>conftest.err; then
15487        soname=conftest
15488        lib=conftest
15489        libobjs=conftest.$ac_objext
15490        deplibs=
15491        wl=$lt_prog_compiler_wl_F77
15492	pic_flag=$lt_prog_compiler_pic_F77
15493        compiler_flags=-v
15494        linker_flags=-v
15495        verstring=
15496        output_objdir=.
15497        libname=conftest
15498        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15499        allow_undefined_flag_F77=
15500        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15501  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15502  ac_status=$?
15503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504  (exit $ac_status); }
15505        then
15506	  archive_cmds_need_lc_F77=no
15507        else
15508	  archive_cmds_need_lc_F77=yes
15509        fi
15510        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15511      else
15512        cat conftest.err 1>&5
15513      fi
15514      $rm conftest*
15515      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15516echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15517      ;;
15518    esac
15519  fi
15520  ;;
15521esac
15522
15523{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15524echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15525library_names_spec=
15526libname_spec='lib$name'
15527soname_spec=
15528shrext_cmds=".so"
15529postinstall_cmds=
15530postuninstall_cmds=
15531finish_cmds=
15532finish_eval=
15533shlibpath_var=
15534shlibpath_overrides_runpath=unknown
15535version_type=none
15536dynamic_linker="$host_os ld.so"
15537sys_lib_dlsearch_path_spec="/lib /usr/lib"
15538
15539need_lib_prefix=unknown
15540hardcode_into_libs=no
15541
15542# when you set need_version to no, make sure it does not cause -set_version
15543# flags to be left without arguments
15544need_version=unknown
15545
15546case $host_os in
15547aix3*)
15548  version_type=linux
15549  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15550  shlibpath_var=LIBPATH
15551
15552  # AIX 3 has no versioning support, so we append a major version to the name.
15553  soname_spec='${libname}${release}${shared_ext}$major'
15554  ;;
15555
15556aix[4-9]*)
15557  version_type=linux
15558  need_lib_prefix=no
15559  need_version=no
15560  hardcode_into_libs=yes
15561  if test "$host_cpu" = ia64; then
15562    # AIX 5 supports IA64
15563    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15564    shlibpath_var=LD_LIBRARY_PATH
15565  else
15566    # With GCC up to 2.95.x, collect2 would create an import file
15567    # for dependence libraries.  The import file would start with
15568    # the line `#! .'.  This would cause the generated library to
15569    # depend on `.', always an invalid library.  This was fixed in
15570    # development snapshots of GCC prior to 3.0.
15571    case $host_os in
15572      aix4 | aix4.[01] | aix4.[01].*)
15573      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15574	   echo ' yes '
15575	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15576	:
15577      else
15578	can_build_shared=no
15579      fi
15580      ;;
15581    esac
15582    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15583    # soname into executable. Probably we can add versioning support to
15584    # collect2, so additional links can be useful in future.
15585    if test "$aix_use_runtimelinking" = yes; then
15586      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15587      # instead of lib<name>.a to let people know that these are not
15588      # typical AIX shared libraries.
15589      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15590    else
15591      # We preserve .a as extension for shared libraries through AIX4.2
15592      # and later when we are not doing run time linking.
15593      library_names_spec='${libname}${release}.a $libname.a'
15594      soname_spec='${libname}${release}${shared_ext}$major'
15595    fi
15596    shlibpath_var=LIBPATH
15597  fi
15598  ;;
15599
15600amigaos*)
15601  library_names_spec='$libname.ixlibrary $libname.a'
15602  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15603  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'
15604  ;;
15605
15606beos*)
15607  library_names_spec='${libname}${shared_ext}'
15608  dynamic_linker="$host_os ld.so"
15609  shlibpath_var=LIBRARY_PATH
15610  ;;
15611
15612bsdi[45]*)
15613  version_type=linux
15614  need_version=no
15615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15616  soname_spec='${libname}${release}${shared_ext}$major'
15617  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15618  shlibpath_var=LD_LIBRARY_PATH
15619  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15620  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15621  # the default ld.so.conf also contains /usr/contrib/lib and
15622  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15623  # libtool to hard-code these into programs
15624  ;;
15625
15626cygwin* | mingw* | pw32*)
15627  version_type=windows
15628  shrext_cmds=".dll"
15629  need_version=no
15630  need_lib_prefix=no
15631
15632  case $GCC,$host_os in
15633  yes,cygwin* | yes,mingw* | yes,pw32*)
15634    library_names_spec='$libname.dll.a'
15635    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15636    postinstall_cmds='base_file=`basename \${file}`~
15637      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15638      dldir=$destdir/`dirname \$dlpath`~
15639      test -d \$dldir || mkdir -p \$dldir~
15640      $install_prog $dir/$dlname \$dldir/$dlname~
15641      chmod a+x \$dldir/$dlname'
15642    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15643      dlpath=$dir/\$dldll~
15644       $rm \$dlpath'
15645    shlibpath_overrides_runpath=yes
15646
15647    case $host_os in
15648    cygwin*)
15649      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15650      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15651      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15652      ;;
15653    mingw*)
15654      # MinGW DLLs use traditional 'lib' prefix
15655      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15656      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15657      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15658        # It is most probably a Windows format PATH printed by
15659        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15660        # path with ; separators, and with drive letters. We can handle the
15661        # drive letters (cygwin fileutils understands them), so leave them,
15662        # especially as we might pass files found there to a mingw objdump,
15663        # which wouldn't understand a cygwinified path. Ahh.
15664        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15665      else
15666        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15667      fi
15668      ;;
15669    pw32*)
15670      # pw32 DLLs use 'pw' prefix rather than 'lib'
15671      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15672      ;;
15673    esac
15674    ;;
15675
15676  *)
15677    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15678    ;;
15679  esac
15680  dynamic_linker='Win32 ld.exe'
15681  # FIXME: first we should search . and the directory the executable is in
15682  shlibpath_var=PATH
15683  ;;
15684
15685darwin* | rhapsody*)
15686  dynamic_linker="$host_os dyld"
15687  version_type=darwin
15688  need_lib_prefix=no
15689  need_version=no
15690  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15691  soname_spec='${libname}${release}${major}$shared_ext'
15692  shlibpath_overrides_runpath=yes
15693  shlibpath_var=DYLD_LIBRARY_PATH
15694  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15695
15696  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15697  ;;
15698
15699dgux*)
15700  version_type=linux
15701  need_lib_prefix=no
15702  need_version=no
15703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15704  soname_spec='${libname}${release}${shared_ext}$major'
15705  shlibpath_var=LD_LIBRARY_PATH
15706  ;;
15707
15708freebsd1*)
15709  dynamic_linker=no
15710  ;;
15711
15712freebsd* | dragonfly*)
15713  # DragonFly does not have aout.  When/if they implement a new
15714  # versioning mechanism, adjust this.
15715  if test -x /usr/bin/objformat; then
15716    objformat=`/usr/bin/objformat`
15717  else
15718    case $host_os in
15719    freebsd[123]*) objformat=aout ;;
15720    *) objformat=elf ;;
15721    esac
15722  fi
15723  version_type=freebsd-$objformat
15724  case $version_type in
15725    freebsd-elf*)
15726      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15727      need_version=no
15728      need_lib_prefix=no
15729      ;;
15730    freebsd-*)
15731      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15732      need_version=yes
15733      ;;
15734  esac
15735  shlibpath_var=LD_LIBRARY_PATH
15736  case $host_os in
15737  freebsd2*)
15738    shlibpath_overrides_runpath=yes
15739    ;;
15740  freebsd3.[01]* | freebsdelf3.[01]*)
15741    shlibpath_overrides_runpath=yes
15742    hardcode_into_libs=yes
15743    ;;
15744  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15745  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15746    shlibpath_overrides_runpath=no
15747    hardcode_into_libs=yes
15748    ;;
15749  *) # from 4.6 on, and DragonFly
15750    shlibpath_overrides_runpath=yes
15751    hardcode_into_libs=yes
15752    ;;
15753  esac
15754  ;;
15755
15756gnu*)
15757  version_type=linux
15758  need_lib_prefix=no
15759  need_version=no
15760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15761  soname_spec='${libname}${release}${shared_ext}$major'
15762  shlibpath_var=LD_LIBRARY_PATH
15763  hardcode_into_libs=yes
15764  ;;
15765
15766hpux9* | hpux10* | hpux11*)
15767  # Give a soname corresponding to the major version so that dld.sl refuses to
15768  # link against other versions.
15769  version_type=sunos
15770  need_lib_prefix=no
15771  need_version=no
15772  case $host_cpu in
15773  ia64*)
15774    shrext_cmds='.so'
15775    hardcode_into_libs=yes
15776    dynamic_linker="$host_os dld.so"
15777    shlibpath_var=LD_LIBRARY_PATH
15778    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15779    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780    soname_spec='${libname}${release}${shared_ext}$major'
15781    if test "X$HPUX_IA64_MODE" = X32; then
15782      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15783    else
15784      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15785    fi
15786    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15787    ;;
15788   hppa*64*)
15789     shrext_cmds='.sl'
15790     hardcode_into_libs=yes
15791     dynamic_linker="$host_os dld.sl"
15792     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15793     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15795     soname_spec='${libname}${release}${shared_ext}$major'
15796     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15797     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15798     ;;
15799   *)
15800    shrext_cmds='.sl'
15801    dynamic_linker="$host_os dld.sl"
15802    shlibpath_var=SHLIB_PATH
15803    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15804    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15805    soname_spec='${libname}${release}${shared_ext}$major'
15806    ;;
15807  esac
15808  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15809  postinstall_cmds='chmod 555 $lib'
15810  ;;
15811
15812interix[3-9]*)
15813  version_type=linux
15814  need_lib_prefix=no
15815  need_version=no
15816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15817  soname_spec='${libname}${release}${shared_ext}$major'
15818  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15819  shlibpath_var=LD_LIBRARY_PATH
15820  shlibpath_overrides_runpath=no
15821  hardcode_into_libs=yes
15822  ;;
15823
15824irix5* | irix6* | nonstopux*)
15825  case $host_os in
15826    nonstopux*) version_type=nonstopux ;;
15827    *)
15828	if test "$lt_cv_prog_gnu_ld" = yes; then
15829		version_type=linux
15830	else
15831		version_type=irix
15832	fi ;;
15833  esac
15834  need_lib_prefix=no
15835  need_version=no
15836  soname_spec='${libname}${release}${shared_ext}$major'
15837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15838  case $host_os in
15839  irix5* | nonstopux*)
15840    libsuff= shlibsuff=
15841    ;;
15842  *)
15843    case $LD in # libtool.m4 will add one of these switches to LD
15844    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15845      libsuff= shlibsuff= libmagic=32-bit;;
15846    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15847      libsuff=32 shlibsuff=N32 libmagic=N32;;
15848    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15849      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15850    *) libsuff= shlibsuff= libmagic=never-match;;
15851    esac
15852    ;;
15853  esac
15854  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15855  shlibpath_overrides_runpath=no
15856  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15857  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15858  hardcode_into_libs=yes
15859  ;;
15860
15861# No shared lib support for Linux oldld, aout, or coff.
15862linux*oldld* | linux*aout* | linux*coff*)
15863  dynamic_linker=no
15864  ;;
15865
15866# This must be Linux ELF.
15867linux* | k*bsd*-gnu)
15868  version_type=linux
15869  need_lib_prefix=no
15870  need_version=no
15871  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15872  soname_spec='${libname}${release}${shared_ext}$major'
15873  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15874  shlibpath_var=LD_LIBRARY_PATH
15875  shlibpath_overrides_runpath=no
15876  # This implies no fast_install, which is unacceptable.
15877  # Some rework will be needed to allow for fast_install
15878  # before this can be enabled.
15879  hardcode_into_libs=yes
15880
15881  # Append ld.so.conf contents to the search path
15882  if test -f /etc/ld.so.conf; then
15883    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' ' '`
15884    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15885  fi
15886
15887  # We used to test for /lib/ld.so.1 and disable shared libraries on
15888  # powerpc, because MkLinux only supported shared libraries with the
15889  # GNU dynamic linker.  Since this was broken with cross compilers,
15890  # most powerpc-linux boxes support dynamic linking these days and
15891  # people can always --disable-shared, the test was removed, and we
15892  # assume the GNU/Linux dynamic linker is in use.
15893  dynamic_linker='GNU/Linux ld.so'
15894  ;;
15895
15896netbsdelf*-gnu)
15897  version_type=linux
15898  need_lib_prefix=no
15899  need_version=no
15900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15901  soname_spec='${libname}${release}${shared_ext}$major'
15902  shlibpath_var=LD_LIBRARY_PATH
15903  shlibpath_overrides_runpath=no
15904  hardcode_into_libs=yes
15905  dynamic_linker='NetBSD ld.elf_so'
15906  ;;
15907
15908netbsd*)
15909  version_type=sunos
15910  need_lib_prefix=no
15911  need_version=no
15912  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15913    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15914    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15915    dynamic_linker='NetBSD (a.out) ld.so'
15916  else
15917    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15918    soname_spec='${libname}${release}${shared_ext}$major'
15919    dynamic_linker='NetBSD ld.elf_so'
15920  fi
15921  shlibpath_var=LD_LIBRARY_PATH
15922  shlibpath_overrides_runpath=yes
15923  hardcode_into_libs=yes
15924  ;;
15925
15926newsos6)
15927  version_type=linux
15928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929  shlibpath_var=LD_LIBRARY_PATH
15930  shlibpath_overrides_runpath=yes
15931  ;;
15932
15933nto-qnx*)
15934  version_type=linux
15935  need_lib_prefix=no
15936  need_version=no
15937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15938  soname_spec='${libname}${release}${shared_ext}$major'
15939  shlibpath_var=LD_LIBRARY_PATH
15940  shlibpath_overrides_runpath=yes
15941  ;;
15942
15943openbsd*)
15944  version_type=sunos
15945  sys_lib_dlsearch_path_spec="/usr/lib"
15946  need_lib_prefix=no
15947  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15948  case $host_os in
15949    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15950    *)                         need_version=no  ;;
15951  esac
15952  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15953  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15954  shlibpath_var=LD_LIBRARY_PATH
15955  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15956    case $host_os in
15957      openbsd2.[89] | openbsd2.[89].*)
15958	shlibpath_overrides_runpath=no
15959	;;
15960      *)
15961	shlibpath_overrides_runpath=yes
15962	;;
15963      esac
15964  else
15965    shlibpath_overrides_runpath=yes
15966  fi
15967  ;;
15968
15969os2*)
15970  libname_spec='$name'
15971  shrext_cmds=".dll"
15972  need_lib_prefix=no
15973  library_names_spec='$libname${shared_ext} $libname.a'
15974  dynamic_linker='OS/2 ld.exe'
15975  shlibpath_var=LIBPATH
15976  ;;
15977
15978osf3* | osf4* | osf5*)
15979  version_type=osf
15980  need_lib_prefix=no
15981  need_version=no
15982  soname_spec='${libname}${release}${shared_ext}$major'
15983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984  shlibpath_var=LD_LIBRARY_PATH
15985  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15986  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15987  ;;
15988
15989rdos*)
15990  dynamic_linker=no
15991  ;;
15992
15993solaris*)
15994  version_type=linux
15995  need_lib_prefix=no
15996  need_version=no
15997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15998  soname_spec='${libname}${release}${shared_ext}$major'
15999  shlibpath_var=LD_LIBRARY_PATH
16000  shlibpath_overrides_runpath=yes
16001  hardcode_into_libs=yes
16002  # ldd complains unless libraries are executable
16003  postinstall_cmds='chmod +x $lib'
16004  ;;
16005
16006sunos4*)
16007  version_type=sunos
16008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16009  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16010  shlibpath_var=LD_LIBRARY_PATH
16011  shlibpath_overrides_runpath=yes
16012  if test "$with_gnu_ld" = yes; then
16013    need_lib_prefix=no
16014  fi
16015  need_version=yes
16016  ;;
16017
16018sysv4 | sysv4.3*)
16019  version_type=linux
16020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16021  soname_spec='${libname}${release}${shared_ext}$major'
16022  shlibpath_var=LD_LIBRARY_PATH
16023  case $host_vendor in
16024    sni)
16025      shlibpath_overrides_runpath=no
16026      need_lib_prefix=no
16027      export_dynamic_flag_spec='${wl}-Blargedynsym'
16028      runpath_var=LD_RUN_PATH
16029      ;;
16030    siemens)
16031      need_lib_prefix=no
16032      ;;
16033    motorola)
16034      need_lib_prefix=no
16035      need_version=no
16036      shlibpath_overrides_runpath=no
16037      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16038      ;;
16039  esac
16040  ;;
16041
16042sysv4*MP*)
16043  if test -d /usr/nec ;then
16044    version_type=linux
16045    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16046    soname_spec='$libname${shared_ext}.$major'
16047    shlibpath_var=LD_LIBRARY_PATH
16048  fi
16049  ;;
16050
16051sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16052  version_type=freebsd-elf
16053  need_lib_prefix=no
16054  need_version=no
16055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16056  soname_spec='${libname}${release}${shared_ext}$major'
16057  shlibpath_var=LD_LIBRARY_PATH
16058  hardcode_into_libs=yes
16059  if test "$with_gnu_ld" = yes; then
16060    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16061    shlibpath_overrides_runpath=no
16062  else
16063    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16064    shlibpath_overrides_runpath=yes
16065    case $host_os in
16066      sco3.2v5*)
16067        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16068	;;
16069    esac
16070  fi
16071  sys_lib_dlsearch_path_spec='/usr/lib'
16072  ;;
16073
16074uts4*)
16075  version_type=linux
16076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077  soname_spec='${libname}${release}${shared_ext}$major'
16078  shlibpath_var=LD_LIBRARY_PATH
16079  ;;
16080
16081*)
16082  dynamic_linker=no
16083  ;;
16084esac
16085{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16086echo "${ECHO_T}$dynamic_linker" >&6; }
16087test "$dynamic_linker" = no && can_build_shared=no
16088
16089if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16090  echo $ECHO_N "(cached) $ECHO_C" >&6
16091else
16092  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16093fi
16094
16095sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16096if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16097  echo $ECHO_N "(cached) $ECHO_C" >&6
16098else
16099  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16100fi
16101
16102sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16103
16104variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16105if test "$GCC" = yes; then
16106  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16107fi
16108
16109{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16110echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16111hardcode_action_F77=
16112if test -n "$hardcode_libdir_flag_spec_F77" || \
16113   test -n "$runpath_var_F77" || \
16114   test "X$hardcode_automatic_F77" = "Xyes" ; then
16115
16116  # We can hardcode non-existant directories.
16117  if test "$hardcode_direct_F77" != no &&
16118     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16119     # have to relink, otherwise we might link with an installed library
16120     # when we should be linking with a yet-to-be-installed one
16121     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16122     test "$hardcode_minus_L_F77" != no; then
16123    # Linking always hardcodes the temporary library directory.
16124    hardcode_action_F77=relink
16125  else
16126    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16127    hardcode_action_F77=immediate
16128  fi
16129else
16130  # We cannot hardcode anything, or else we can only hardcode existing
16131  # directories.
16132  hardcode_action_F77=unsupported
16133fi
16134{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16135echo "${ECHO_T}$hardcode_action_F77" >&6; }
16136
16137if test "$hardcode_action_F77" = relink; then
16138  # Fast installation is not supported
16139  enable_fast_install=no
16140elif test "$shlibpath_overrides_runpath" = yes ||
16141     test "$enable_shared" = no; then
16142  # Fast installation is not necessary
16143  enable_fast_install=needless
16144fi
16145
16146
16147# The else clause should only fire when bootstrapping the
16148# libtool distribution, otherwise you forgot to ship ltmain.sh
16149# with your package, and you will get complaints that there are
16150# no rules to generate ltmain.sh.
16151if test -f "$ltmain"; then
16152  # See if we are running on zsh, and set the options which allow our commands through
16153  # without removal of \ escapes.
16154  if test -n "${ZSH_VERSION+set}" ; then
16155    setopt NO_GLOB_SUBST
16156  fi
16157  # Now quote all the things that may contain metacharacters while being
16158  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16159  # variables and quote the copies for generation of the libtool script.
16160  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16161    SED SHELL STRIP \
16162    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16163    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16164    deplibs_check_method reload_flag reload_cmds need_locks \
16165    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16166    lt_cv_sys_global_symbol_to_c_name_address \
16167    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16168    old_postinstall_cmds old_postuninstall_cmds \
16169    compiler_F77 \
16170    CC_F77 \
16171    LD_F77 \
16172    lt_prog_compiler_wl_F77 \
16173    lt_prog_compiler_pic_F77 \
16174    lt_prog_compiler_static_F77 \
16175    lt_prog_compiler_no_builtin_flag_F77 \
16176    export_dynamic_flag_spec_F77 \
16177    thread_safe_flag_spec_F77 \
16178    whole_archive_flag_spec_F77 \
16179    enable_shared_with_static_runtimes_F77 \
16180    old_archive_cmds_F77 \
16181    old_archive_from_new_cmds_F77 \
16182    predep_objects_F77 \
16183    postdep_objects_F77 \
16184    predeps_F77 \
16185    postdeps_F77 \
16186    compiler_lib_search_path_F77 \
16187    compiler_lib_search_dirs_F77 \
16188    archive_cmds_F77 \
16189    archive_expsym_cmds_F77 \
16190    postinstall_cmds_F77 \
16191    postuninstall_cmds_F77 \
16192    old_archive_from_expsyms_cmds_F77 \
16193    allow_undefined_flag_F77 \
16194    no_undefined_flag_F77 \
16195    export_symbols_cmds_F77 \
16196    hardcode_libdir_flag_spec_F77 \
16197    hardcode_libdir_flag_spec_ld_F77 \
16198    hardcode_libdir_separator_F77 \
16199    hardcode_automatic_F77 \
16200    module_cmds_F77 \
16201    module_expsym_cmds_F77 \
16202    lt_cv_prog_compiler_c_o_F77 \
16203    fix_srcfile_path_F77 \
16204    exclude_expsyms_F77 \
16205    include_expsyms_F77; do
16206
16207    case $var in
16208    old_archive_cmds_F77 | \
16209    old_archive_from_new_cmds_F77 | \
16210    archive_cmds_F77 | \
16211    archive_expsym_cmds_F77 | \
16212    module_cmds_F77 | \
16213    module_expsym_cmds_F77 | \
16214    old_archive_from_expsyms_cmds_F77 | \
16215    export_symbols_cmds_F77 | \
16216    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16217    postinstall_cmds | postuninstall_cmds | \
16218    old_postinstall_cmds | old_postuninstall_cmds | \
16219    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16220      # Double-quote double-evaled strings.
16221      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16222      ;;
16223    *)
16224      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16225      ;;
16226    esac
16227  done
16228
16229  case $lt_echo in
16230  *'\$0 --fallback-echo"')
16231    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16232    ;;
16233  esac
16234
16235cfgfile="$ofile"
16236
16237  cat <<__EOF__ >> "$cfgfile"
16238# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16239
16240# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16241
16242# Shell to use when invoking shell scripts.
16243SHELL=$lt_SHELL
16244
16245# Whether or not to build shared libraries.
16246build_libtool_libs=$enable_shared
16247
16248# Whether or not to build static libraries.
16249build_old_libs=$enable_static
16250
16251# Whether or not to add -lc for building shared libraries.
16252build_libtool_need_lc=$archive_cmds_need_lc_F77
16253
16254# Whether or not to disallow shared libs when runtime libs are static
16255allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16256
16257# Whether or not to optimize for fast installation.
16258fast_install=$enable_fast_install
16259
16260# The host system.
16261host_alias=$host_alias
16262host=$host
16263host_os=$host_os
16264
16265# The build system.
16266build_alias=$build_alias
16267build=$build
16268build_os=$build_os
16269
16270# An echo program that does not interpret backslashes.
16271echo=$lt_echo
16272
16273# The archiver.
16274AR=$lt_AR
16275AR_FLAGS=$lt_AR_FLAGS
16276
16277# A C compiler.
16278LTCC=$lt_LTCC
16279
16280# LTCC compiler flags.
16281LTCFLAGS=$lt_LTCFLAGS
16282
16283# A language-specific compiler.
16284CC=$lt_compiler_F77
16285
16286# Is the compiler the GNU C compiler?
16287with_gcc=$GCC_F77
16288
16289# An ERE matcher.
16290EGREP=$lt_EGREP
16291
16292# The linker used to build libraries.
16293LD=$lt_LD_F77
16294
16295# Whether we need hard or soft links.
16296LN_S=$lt_LN_S
16297
16298# A BSD-compatible nm program.
16299NM=$lt_NM
16300
16301# A symbol stripping program
16302STRIP=$lt_STRIP
16303
16304# Used to examine libraries when file_magic_cmd begins "file"
16305MAGIC_CMD=$MAGIC_CMD
16306
16307# Used on cygwin: DLL creation program.
16308DLLTOOL="$DLLTOOL"
16309
16310# Used on cygwin: object dumper.
16311OBJDUMP="$OBJDUMP"
16312
16313# Used on cygwin: assembler.
16314AS="$AS"
16315
16316# The name of the directory that contains temporary libtool files.
16317objdir=$objdir
16318
16319# How to create reloadable object files.
16320reload_flag=$lt_reload_flag
16321reload_cmds=$lt_reload_cmds
16322
16323# How to pass a linker flag through the compiler.
16324wl=$lt_lt_prog_compiler_wl_F77
16325
16326# Object file suffix (normally "o").
16327objext="$ac_objext"
16328
16329# Old archive suffix (normally "a").
16330libext="$libext"
16331
16332# Shared library suffix (normally ".so").
16333shrext_cmds='$shrext_cmds'
16334
16335# Executable file suffix (normally "").
16336exeext="$exeext"
16337
16338# Additional compiler flags for building library objects.
16339pic_flag=$lt_lt_prog_compiler_pic_F77
16340pic_mode=$pic_mode
16341
16342# What is the maximum length of a command?
16343max_cmd_len=$lt_cv_sys_max_cmd_len
16344
16345# Does compiler simultaneously support -c and -o options?
16346compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16347
16348# Must we lock files when doing compilation?
16349need_locks=$lt_need_locks
16350
16351# Do we need the lib prefix for modules?
16352need_lib_prefix=$need_lib_prefix
16353
16354# Do we need a version for libraries?
16355need_version=$need_version
16356
16357# Whether dlopen is supported.
16358dlopen_support=$enable_dlopen
16359
16360# Whether dlopen of programs is supported.
16361dlopen_self=$enable_dlopen_self
16362
16363# Whether dlopen of statically linked programs is supported.
16364dlopen_self_static=$enable_dlopen_self_static
16365
16366# Compiler flag to prevent dynamic linking.
16367link_static_flag=$lt_lt_prog_compiler_static_F77
16368
16369# Compiler flag to turn off builtin functions.
16370no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16371
16372# Compiler flag to allow reflexive dlopens.
16373export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16374
16375# Compiler flag to generate shared objects directly from archives.
16376whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16377
16378# Compiler flag to generate thread-safe objects.
16379thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16380
16381# Library versioning type.
16382version_type=$version_type
16383
16384# Format of library name prefix.
16385libname_spec=$lt_libname_spec
16386
16387# List of archive names.  First name is the real one, the rest are links.
16388# The last name is the one that the linker finds with -lNAME.
16389library_names_spec=$lt_library_names_spec
16390
16391# The coded name of the library, if different from the real name.
16392soname_spec=$lt_soname_spec
16393
16394# Commands used to build and install an old-style archive.
16395RANLIB=$lt_RANLIB
16396old_archive_cmds=$lt_old_archive_cmds_F77
16397old_postinstall_cmds=$lt_old_postinstall_cmds
16398old_postuninstall_cmds=$lt_old_postuninstall_cmds
16399
16400# Create an old-style archive from a shared archive.
16401old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16402
16403# Create a temporary old-style archive to link instead of a shared archive.
16404old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16405
16406# Commands used to build and install a shared archive.
16407archive_cmds=$lt_archive_cmds_F77
16408archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16409postinstall_cmds=$lt_postinstall_cmds
16410postuninstall_cmds=$lt_postuninstall_cmds
16411
16412# Commands used to build a loadable module (assumed same as above if empty)
16413module_cmds=$lt_module_cmds_F77
16414module_expsym_cmds=$lt_module_expsym_cmds_F77
16415
16416# Commands to strip libraries.
16417old_striplib=$lt_old_striplib
16418striplib=$lt_striplib
16419
16420# Dependencies to place before the objects being linked to create a
16421# shared library.
16422predep_objects=$lt_predep_objects_F77
16423
16424# Dependencies to place after the objects being linked to create a
16425# shared library.
16426postdep_objects=$lt_postdep_objects_F77
16427
16428# Dependencies to place before the objects being linked to create a
16429# shared library.
16430predeps=$lt_predeps_F77
16431
16432# Dependencies to place after the objects being linked to create a
16433# shared library.
16434postdeps=$lt_postdeps_F77
16435
16436# The directories searched by this compiler when creating a shared
16437# library
16438compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16439
16440# The library search path used internally by the compiler when linking
16441# a shared library.
16442compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16443
16444# Method to check whether dependent libraries are shared objects.
16445deplibs_check_method=$lt_deplibs_check_method
16446
16447# Command to use when deplibs_check_method == file_magic.
16448file_magic_cmd=$lt_file_magic_cmd
16449
16450# Flag that allows shared libraries with undefined symbols to be built.
16451allow_undefined_flag=$lt_allow_undefined_flag_F77
16452
16453# Flag that forces no undefined symbols.
16454no_undefined_flag=$lt_no_undefined_flag_F77
16455
16456# Commands used to finish a libtool library installation in a directory.
16457finish_cmds=$lt_finish_cmds
16458
16459# Same as above, but a single script fragment to be evaled but not shown.
16460finish_eval=$lt_finish_eval
16461
16462# Take the output of nm and produce a listing of raw symbols and C names.
16463global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16464
16465# Transform the output of nm in a proper C declaration
16466global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16467
16468# Transform the output of nm in a C name address pair
16469global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16470
16471# This is the shared library runtime path variable.
16472runpath_var=$runpath_var
16473
16474# This is the shared library path variable.
16475shlibpath_var=$shlibpath_var
16476
16477# Is shlibpath searched before the hard-coded library search path?
16478shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16479
16480# How to hardcode a shared library path into an executable.
16481hardcode_action=$hardcode_action_F77
16482
16483# Whether we should hardcode library paths into libraries.
16484hardcode_into_libs=$hardcode_into_libs
16485
16486# Flag to hardcode \$libdir into a binary during linking.
16487# This must work even if \$libdir does not exist.
16488hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16489
16490# If ld is used when linking, flag to hardcode \$libdir into
16491# a binary during linking. This must work even if \$libdir does
16492# not exist.
16493hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16494
16495# Whether we need a single -rpath flag with a separated argument.
16496hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16497
16498# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16499# resulting binary.
16500hardcode_direct=$hardcode_direct_F77
16501
16502# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16503# resulting binary.
16504hardcode_minus_L=$hardcode_minus_L_F77
16505
16506# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16507# the resulting binary.
16508hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16509
16510# Set to yes if building a shared library automatically hardcodes DIR into the library
16511# and all subsequent libraries and executables linked against it.
16512hardcode_automatic=$hardcode_automatic_F77
16513
16514# Variables whose values should be saved in libtool wrapper scripts and
16515# restored at relink time.
16516variables_saved_for_relink="$variables_saved_for_relink"
16517
16518# Whether libtool must link a program against all its dependency libraries.
16519link_all_deplibs=$link_all_deplibs_F77
16520
16521# Compile-time system search path for libraries
16522sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16523
16524# Run-time system search path for libraries
16525sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16526
16527# Fix the shell variable \$srcfile for the compiler.
16528fix_srcfile_path=$lt_fix_srcfile_path
16529
16530# Set to yes if exported symbols are required.
16531always_export_symbols=$always_export_symbols_F77
16532
16533# The commands to list exported symbols.
16534export_symbols_cmds=$lt_export_symbols_cmds_F77
16535
16536# The commands to extract the exported symbol list from a shared archive.
16537extract_expsyms_cmds=$lt_extract_expsyms_cmds
16538
16539# Symbols that should not be listed in the preloaded symbols.
16540exclude_expsyms=$lt_exclude_expsyms_F77
16541
16542# Symbols that must always be exported.
16543include_expsyms=$lt_include_expsyms_F77
16544
16545# ### END LIBTOOL TAG CONFIG: $tagname
16546
16547__EOF__
16548
16549
16550else
16551  # If there is no Makefile yet, we rely on a make rule to execute
16552  # `config.status --recheck' to rerun these tests and create the
16553  # libtool script then.
16554  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16555  if test -f "$ltmain_in"; then
16556    test -f Makefile && make "$ltmain"
16557  fi
16558fi
16559
16560
16561ac_ext=cpp
16562ac_cpp='$CXXCPP $CPPFLAGS'
16563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16566
16567CC="$lt_save_CC"
16568
16569	else
16570	  tagname=""
16571	fi
16572	;;
16573
16574      GCJ)
16575	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16576
16577
16578# Source file extension for Java test sources.
16579ac_ext=java
16580
16581# Object file extension for compiled Java test sources.
16582objext=o
16583objext_GCJ=$objext
16584
16585# Code to be used in simple compile tests
16586lt_simple_compile_test_code="class foo {}"
16587
16588# Code to be used in simple link tests
16589lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16590
16591# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16592
16593# If no C compiler was specified, use CC.
16594LTCC=${LTCC-"$CC"}
16595
16596# If no C compiler flags were specified, use CFLAGS.
16597LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16598
16599# Allow CC to be a program name with arguments.
16600compiler=$CC
16601
16602
16603# save warnings/boilerplate of simple test code
16604ac_outfile=conftest.$ac_objext
16605echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16606eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16607_lt_compiler_boilerplate=`cat conftest.err`
16608$rm conftest*
16609
16610ac_outfile=conftest.$ac_objext
16611echo "$lt_simple_link_test_code" >conftest.$ac_ext
16612eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16613_lt_linker_boilerplate=`cat conftest.err`
16614$rm -r conftest*
16615
16616
16617# Allow CC to be a program name with arguments.
16618lt_save_CC="$CC"
16619CC=${GCJ-"gcj"}
16620compiler=$CC
16621compiler_GCJ=$CC
16622for cc_temp in $compiler""; do
16623  case $cc_temp in
16624    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16625    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16626    \-*) ;;
16627    *) break;;
16628  esac
16629done
16630cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16631
16632
16633# GCJ did not exist at the time GCC didn't implicitly link libc in.
16634archive_cmds_need_lc_GCJ=no
16635
16636old_archive_cmds_GCJ=$old_archive_cmds
16637
16638
16639lt_prog_compiler_no_builtin_flag_GCJ=
16640
16641if test "$GCC" = yes; then
16642  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16643
16644
16645{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16646echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16647if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16648  echo $ECHO_N "(cached) $ECHO_C" >&6
16649else
16650  lt_cv_prog_compiler_rtti_exceptions=no
16651  ac_outfile=conftest.$ac_objext
16652   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16653   lt_compiler_flag="-fno-rtti -fno-exceptions"
16654   # Insert the option either (1) after the last *FLAGS variable, or
16655   # (2) before a word containing "conftest.", or (3) at the end.
16656   # Note that $ac_compile itself does not contain backslashes and begins
16657   # with a dollar sign (not a hyphen), so the echo should work correctly.
16658   # The option is referenced via a variable to avoid confusing sed.
16659   lt_compile=`echo "$ac_compile" | $SED \
16660   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16661   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16662   -e 's:$: $lt_compiler_flag:'`
16663   (eval echo "\"\$as_me:16663: $lt_compile\"" >&5)
16664   (eval "$lt_compile" 2>conftest.err)
16665   ac_status=$?
16666   cat conftest.err >&5
16667   echo "$as_me:16667: \$? = $ac_status" >&5
16668   if (exit $ac_status) && test -s "$ac_outfile"; then
16669     # The compiler can only warn and ignore the option if not recognized
16670     # So say no if there are warnings other than the usual output.
16671     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16672     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16673     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16674       lt_cv_prog_compiler_rtti_exceptions=yes
16675     fi
16676   fi
16677   $rm conftest*
16678
16679fi
16680{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16681echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16682
16683if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16684    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16685else
16686    :
16687fi
16688
16689fi
16690
16691lt_prog_compiler_wl_GCJ=
16692lt_prog_compiler_pic_GCJ=
16693lt_prog_compiler_static_GCJ=
16694
16695{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16696echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16697
16698  if test "$GCC" = yes; then
16699    lt_prog_compiler_wl_GCJ='-Wl,'
16700    lt_prog_compiler_static_GCJ='-static'
16701
16702    case $host_os in
16703      aix*)
16704      # All AIX code is PIC.
16705      if test "$host_cpu" = ia64; then
16706	# AIX 5 now supports IA64 processor
16707	lt_prog_compiler_static_GCJ='-Bstatic'
16708      fi
16709      ;;
16710
16711    amigaos*)
16712      # FIXME: we need at least 68020 code to build shared libraries, but
16713      # adding the `-m68020' flag to GCC prevents building anything better,
16714      # like `-m68040'.
16715      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16716      ;;
16717
16718    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16719      # PIC is the default for these OSes.
16720      ;;
16721
16722    mingw* | cygwin* | pw32* | os2*)
16723      # This hack is so that the source file can tell whether it is being
16724      # built for inclusion in a dll (and should export symbols for example).
16725      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16726      # (--disable-auto-import) libraries
16727
16728      ;;
16729
16730    darwin* | rhapsody*)
16731      # PIC is the default on this platform
16732      # Common symbols not allowed in MH_DYLIB files
16733      lt_prog_compiler_pic_GCJ='-fno-common'
16734      ;;
16735
16736    interix[3-9]*)
16737      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16738      # Instead, we relocate shared libraries at runtime.
16739      ;;
16740
16741    msdosdjgpp*)
16742      # Just because we use GCC doesn't mean we suddenly get shared libraries
16743      # on systems that don't support them.
16744      lt_prog_compiler_can_build_shared_GCJ=no
16745      enable_shared=no
16746      ;;
16747
16748    sysv4*MP*)
16749      if test -d /usr/nec; then
16750	lt_prog_compiler_pic_GCJ=-Kconform_pic
16751      fi
16752      ;;
16753
16754    hpux*)
16755      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16756      # not for PA HP-UX.
16757      case $host_cpu in
16758      hppa*64*|ia64*)
16759	# +Z the default
16760	;;
16761      *)
16762	lt_prog_compiler_pic_GCJ='-fPIC'
16763	;;
16764      esac
16765      ;;
16766
16767    *)
16768      lt_prog_compiler_pic_GCJ='-fPIC'
16769      ;;
16770    esac
16771  else
16772    # PORTME Check for flag to pass linker flags through the system compiler.
16773    case $host_os in
16774    aix*)
16775      lt_prog_compiler_wl_GCJ='-Wl,'
16776      if test "$host_cpu" = ia64; then
16777	# AIX 5 now supports IA64 processor
16778	lt_prog_compiler_static_GCJ='-Bstatic'
16779      else
16780	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16781      fi
16782      ;;
16783      darwin*)
16784        # PIC is the default on this platform
16785        # Common symbols not allowed in MH_DYLIB files
16786       case $cc_basename in
16787         xlc*)
16788         lt_prog_compiler_pic_GCJ='-qnocommon'
16789         lt_prog_compiler_wl_GCJ='-Wl,'
16790         ;;
16791       esac
16792       ;;
16793
16794    mingw* | cygwin* | pw32* | os2*)
16795      # This hack is so that the source file can tell whether it is being
16796      # built for inclusion in a dll (and should export symbols for example).
16797
16798      ;;
16799
16800    hpux9* | hpux10* | hpux11*)
16801      lt_prog_compiler_wl_GCJ='-Wl,'
16802      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16803      # not for PA HP-UX.
16804      case $host_cpu in
16805      hppa*64*|ia64*)
16806	# +Z the default
16807	;;
16808      *)
16809	lt_prog_compiler_pic_GCJ='+Z'
16810	;;
16811      esac
16812      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16813      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16814      ;;
16815
16816    irix5* | irix6* | nonstopux*)
16817      lt_prog_compiler_wl_GCJ='-Wl,'
16818      # PIC (with -KPIC) is the default.
16819      lt_prog_compiler_static_GCJ='-non_shared'
16820      ;;
16821
16822    newsos6)
16823      lt_prog_compiler_pic_GCJ='-KPIC'
16824      lt_prog_compiler_static_GCJ='-Bstatic'
16825      ;;
16826
16827    linux* | k*bsd*-gnu)
16828      case $cc_basename in
16829      icc* | ecc*)
16830	lt_prog_compiler_wl_GCJ='-Wl,'
16831	lt_prog_compiler_pic_GCJ='-KPIC'
16832	lt_prog_compiler_static_GCJ='-static'
16833        ;;
16834      pgcc* | pgf77* | pgf90* | pgf95*)
16835        # Portland Group compilers (*not* the Pentium gcc compiler,
16836	# which looks to be a dead project)
16837	lt_prog_compiler_wl_GCJ='-Wl,'
16838	lt_prog_compiler_pic_GCJ='-fpic'
16839	lt_prog_compiler_static_GCJ='-Bstatic'
16840        ;;
16841      ccc*)
16842        lt_prog_compiler_wl_GCJ='-Wl,'
16843        # All Alpha code is PIC.
16844        lt_prog_compiler_static_GCJ='-non_shared'
16845        ;;
16846      *)
16847        case `$CC -V 2>&1 | sed 5q` in
16848	*Sun\ C*)
16849	  # Sun C 5.9
16850	  lt_prog_compiler_pic_GCJ='-KPIC'
16851	  lt_prog_compiler_static_GCJ='-Bstatic'
16852	  lt_prog_compiler_wl_GCJ='-Wl,'
16853	  ;;
16854	*Sun\ F*)
16855	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16856	  lt_prog_compiler_pic_GCJ='-KPIC'
16857	  lt_prog_compiler_static_GCJ='-Bstatic'
16858	  lt_prog_compiler_wl_GCJ=''
16859	  ;;
16860	esac
16861	;;
16862      esac
16863      ;;
16864
16865    osf3* | osf4* | osf5*)
16866      lt_prog_compiler_wl_GCJ='-Wl,'
16867      # All OSF/1 code is PIC.
16868      lt_prog_compiler_static_GCJ='-non_shared'
16869      ;;
16870
16871    rdos*)
16872      lt_prog_compiler_static_GCJ='-non_shared'
16873      ;;
16874
16875    solaris*)
16876      lt_prog_compiler_pic_GCJ='-KPIC'
16877      lt_prog_compiler_static_GCJ='-Bstatic'
16878      case $cc_basename in
16879      f77* | f90* | f95*)
16880	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16881      *)
16882	lt_prog_compiler_wl_GCJ='-Wl,';;
16883      esac
16884      ;;
16885
16886    sunos4*)
16887      lt_prog_compiler_wl_GCJ='-Qoption ld '
16888      lt_prog_compiler_pic_GCJ='-PIC'
16889      lt_prog_compiler_static_GCJ='-Bstatic'
16890      ;;
16891
16892    sysv4 | sysv4.2uw2* | sysv4.3*)
16893      lt_prog_compiler_wl_GCJ='-Wl,'
16894      lt_prog_compiler_pic_GCJ='-KPIC'
16895      lt_prog_compiler_static_GCJ='-Bstatic'
16896      ;;
16897
16898    sysv4*MP*)
16899      if test -d /usr/nec ;then
16900	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16901	lt_prog_compiler_static_GCJ='-Bstatic'
16902      fi
16903      ;;
16904
16905    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16906      lt_prog_compiler_wl_GCJ='-Wl,'
16907      lt_prog_compiler_pic_GCJ='-KPIC'
16908      lt_prog_compiler_static_GCJ='-Bstatic'
16909      ;;
16910
16911    unicos*)
16912      lt_prog_compiler_wl_GCJ='-Wl,'
16913      lt_prog_compiler_can_build_shared_GCJ=no
16914      ;;
16915
16916    uts4*)
16917      lt_prog_compiler_pic_GCJ='-pic'
16918      lt_prog_compiler_static_GCJ='-Bstatic'
16919      ;;
16920
16921    *)
16922      lt_prog_compiler_can_build_shared_GCJ=no
16923      ;;
16924    esac
16925  fi
16926
16927{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16928echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16929
16930#
16931# Check to make sure the PIC flag actually works.
16932#
16933if test -n "$lt_prog_compiler_pic_GCJ"; then
16934
16935{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16936echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16937if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16938  echo $ECHO_N "(cached) $ECHO_C" >&6
16939else
16940  lt_cv_prog_compiler_pic_works_GCJ=no
16941  ac_outfile=conftest.$ac_objext
16942   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16943   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16944   # Insert the option either (1) after the last *FLAGS variable, or
16945   # (2) before a word containing "conftest.", or (3) at the end.
16946   # Note that $ac_compile itself does not contain backslashes and begins
16947   # with a dollar sign (not a hyphen), so the echo should work correctly.
16948   # The option is referenced via a variable to avoid confusing sed.
16949   lt_compile=`echo "$ac_compile" | $SED \
16950   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16951   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16952   -e 's:$: $lt_compiler_flag:'`
16953   (eval echo "\"\$as_me:16953: $lt_compile\"" >&5)
16954   (eval "$lt_compile" 2>conftest.err)
16955   ac_status=$?
16956   cat conftest.err >&5
16957   echo "$as_me:16957: \$? = $ac_status" >&5
16958   if (exit $ac_status) && test -s "$ac_outfile"; then
16959     # The compiler can only warn and ignore the option if not recognized
16960     # So say no if there are warnings other than the usual output.
16961     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16962     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16963     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16964       lt_cv_prog_compiler_pic_works_GCJ=yes
16965     fi
16966   fi
16967   $rm conftest*
16968
16969fi
16970{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16971echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16972
16973if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16974    case $lt_prog_compiler_pic_GCJ in
16975     "" | " "*) ;;
16976     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16977     esac
16978else
16979    lt_prog_compiler_pic_GCJ=
16980     lt_prog_compiler_can_build_shared_GCJ=no
16981fi
16982
16983fi
16984case $host_os in
16985  # For platforms which do not support PIC, -DPIC is meaningless:
16986  *djgpp*)
16987    lt_prog_compiler_pic_GCJ=
16988    ;;
16989  *)
16990    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16991    ;;
16992esac
16993
16994#
16995# Check to make sure the static flag actually works.
16996#
16997wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16998{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16999echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17000if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17001  echo $ECHO_N "(cached) $ECHO_C" >&6
17002else
17003  lt_cv_prog_compiler_static_works_GCJ=no
17004   save_LDFLAGS="$LDFLAGS"
17005   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17006   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17007   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17008     # The linker can only warn and ignore the option if not recognized
17009     # So say no if there are warnings
17010     if test -s conftest.err; then
17011       # Append any errors to the config.log.
17012       cat conftest.err 1>&5
17013       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17014       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17015       if diff conftest.exp conftest.er2 >/dev/null; then
17016         lt_cv_prog_compiler_static_works_GCJ=yes
17017       fi
17018     else
17019       lt_cv_prog_compiler_static_works_GCJ=yes
17020     fi
17021   fi
17022   $rm -r conftest*
17023   LDFLAGS="$save_LDFLAGS"
17024
17025fi
17026{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17027echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17028
17029if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17030    :
17031else
17032    lt_prog_compiler_static_GCJ=
17033fi
17034
17035
17036{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17037echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17038if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17039  echo $ECHO_N "(cached) $ECHO_C" >&6
17040else
17041  lt_cv_prog_compiler_c_o_GCJ=no
17042   $rm -r conftest 2>/dev/null
17043   mkdir conftest
17044   cd conftest
17045   mkdir out
17046   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17047
17048   lt_compiler_flag="-o out/conftest2.$ac_objext"
17049   # Insert the option either (1) after the last *FLAGS variable, or
17050   # (2) before a word containing "conftest.", or (3) at the end.
17051   # Note that $ac_compile itself does not contain backslashes and begins
17052   # with a dollar sign (not a hyphen), so the echo should work correctly.
17053   lt_compile=`echo "$ac_compile" | $SED \
17054   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17055   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17056   -e 's:$: $lt_compiler_flag:'`
17057   (eval echo "\"\$as_me:17057: $lt_compile\"" >&5)
17058   (eval "$lt_compile" 2>out/conftest.err)
17059   ac_status=$?
17060   cat out/conftest.err >&5
17061   echo "$as_me:17061: \$? = $ac_status" >&5
17062   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17063   then
17064     # The compiler can only warn and ignore the option if not recognized
17065     # So say no if there are warnings
17066     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17067     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17068     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17069       lt_cv_prog_compiler_c_o_GCJ=yes
17070     fi
17071   fi
17072   chmod u+w . 2>&5
17073   $rm conftest*
17074   # SGI C++ compiler will create directory out/ii_files/ for
17075   # template instantiation
17076   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17077   $rm out/* && rmdir out
17078   cd ..
17079   rmdir conftest
17080   $rm conftest*
17081
17082fi
17083{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17084echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17085
17086
17087hard_links="nottested"
17088if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17089  # do not overwrite the value of need_locks provided by the user
17090  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17091echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17092  hard_links=yes
17093  $rm conftest*
17094  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17095  touch conftest.a
17096  ln conftest.a conftest.b 2>&5 || hard_links=no
17097  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17098  { echo "$as_me:$LINENO: result: $hard_links" >&5
17099echo "${ECHO_T}$hard_links" >&6; }
17100  if test "$hard_links" = no; then
17101    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17102echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17103    need_locks=warn
17104  fi
17105else
17106  need_locks=no
17107fi
17108
17109{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17110echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17111
17112  runpath_var=
17113  allow_undefined_flag_GCJ=
17114  enable_shared_with_static_runtimes_GCJ=no
17115  archive_cmds_GCJ=
17116  archive_expsym_cmds_GCJ=
17117  old_archive_From_new_cmds_GCJ=
17118  old_archive_from_expsyms_cmds_GCJ=
17119  export_dynamic_flag_spec_GCJ=
17120  whole_archive_flag_spec_GCJ=
17121  thread_safe_flag_spec_GCJ=
17122  hardcode_libdir_flag_spec_GCJ=
17123  hardcode_libdir_flag_spec_ld_GCJ=
17124  hardcode_libdir_separator_GCJ=
17125  hardcode_direct_GCJ=no
17126  hardcode_minus_L_GCJ=no
17127  hardcode_shlibpath_var_GCJ=unsupported
17128  link_all_deplibs_GCJ=unknown
17129  hardcode_automatic_GCJ=no
17130  module_cmds_GCJ=
17131  module_expsym_cmds_GCJ=
17132  always_export_symbols_GCJ=no
17133  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17134  # include_expsyms should be a list of space-separated symbols to be *always*
17135  # included in the symbol list
17136  include_expsyms_GCJ=
17137  # exclude_expsyms can be an extended regexp of symbols to exclude
17138  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17139  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17140  # as well as any symbol that contains `d'.
17141  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17142  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17143  # platforms (ab)use it in PIC code, but their linkers get confused if
17144  # the symbol is explicitly referenced.  Since portable code cannot
17145  # rely on this symbol name, it's probably fine to never include it in
17146  # preloaded symbol tables.
17147  # Exclude shared library initialization/finalization symbols.
17148  extract_expsyms_cmds=
17149  # Just being paranoid about ensuring that cc_basename is set.
17150  for cc_temp in $compiler""; do
17151  case $cc_temp in
17152    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17153    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17154    \-*) ;;
17155    *) break;;
17156  esac
17157done
17158cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17159
17160  case $host_os in
17161  cygwin* | mingw* | pw32*)
17162    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17163    # When not using gcc, we currently assume that we are using
17164    # Microsoft Visual C++.
17165    if test "$GCC" != yes; then
17166      with_gnu_ld=no
17167    fi
17168    ;;
17169  interix*)
17170    # we just hope/assume this is gcc and not c89 (= MSVC++)
17171    with_gnu_ld=yes
17172    ;;
17173  openbsd*)
17174    with_gnu_ld=no
17175    ;;
17176  esac
17177
17178  ld_shlibs_GCJ=yes
17179  if test "$with_gnu_ld" = yes; then
17180    # If archive_cmds runs LD, not CC, wlarc should be empty
17181    wlarc='${wl}'
17182
17183    # Set some defaults for GNU ld with shared library support. These
17184    # are reset later if shared libraries are not supported. Putting them
17185    # here allows them to be overridden if necessary.
17186    runpath_var=LD_RUN_PATH
17187    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17188    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17189    # ancient GNU ld didn't support --whole-archive et. al.
17190    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17191	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17192      else
17193  	whole_archive_flag_spec_GCJ=
17194    fi
17195    supports_anon_versioning=no
17196    case `$LD -v 2>/dev/null` in
17197      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17198      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17199      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17200      *\ 2.11.*) ;; # other 2.11 versions
17201      *) supports_anon_versioning=yes ;;
17202    esac
17203
17204    # See if GNU ld supports shared libraries.
17205    case $host_os in
17206    aix[3-9]*)
17207      # On AIX/PPC, the GNU linker is very broken
17208      if test "$host_cpu" != ia64; then
17209	ld_shlibs_GCJ=no
17210	cat <<EOF 1>&2
17211
17212*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17213*** to be unable to reliably create shared libraries on AIX.
17214*** Therefore, libtool is disabling shared libraries support.  If you
17215*** really care for shared libraries, you may want to modify your PATH
17216*** so that a non-GNU linker is found, and then restart.
17217
17218EOF
17219      fi
17220      ;;
17221
17222    amigaos*)
17223      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)'
17224      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17225      hardcode_minus_L_GCJ=yes
17226
17227      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17228      # that the semantics of dynamic libraries on AmigaOS, at least up
17229      # to version 4, is to share data among multiple programs linked
17230      # with the same dynamic library.  Since this doesn't match the
17231      # behavior of shared libraries on other platforms, we can't use
17232      # them.
17233      ld_shlibs_GCJ=no
17234      ;;
17235
17236    beos*)
17237      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17238	allow_undefined_flag_GCJ=unsupported
17239	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17240	# support --undefined.  This deserves some investigation.  FIXME
17241	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17242      else
17243	ld_shlibs_GCJ=no
17244      fi
17245      ;;
17246
17247    cygwin* | mingw* | pw32*)
17248      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17249      # as there is no search path for DLLs.
17250      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17251      allow_undefined_flag_GCJ=unsupported
17252      always_export_symbols_GCJ=no
17253      enable_shared_with_static_runtimes_GCJ=yes
17254      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17255
17256      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17257        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17258	# If the export-symbols file already is a .def file (1st line
17259	# is EXPORTS), use it as is; otherwise, prepend...
17260	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17261	  cp $export_symbols $output_objdir/$soname.def;
17262	else
17263	  echo EXPORTS > $output_objdir/$soname.def;
17264	  cat $export_symbols >> $output_objdir/$soname.def;
17265	fi~
17266	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17267      else
17268	ld_shlibs_GCJ=no
17269      fi
17270      ;;
17271
17272    interix[3-9]*)
17273      hardcode_direct_GCJ=no
17274      hardcode_shlibpath_var_GCJ=no
17275      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17276      export_dynamic_flag_spec_GCJ='${wl}-E'
17277      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17278      # Instead, shared libraries are loaded at an image base (0x10000000 by
17279      # default) and relocated if they conflict, which is a slow very memory
17280      # consuming and fragmenting process.  To avoid this, we pick a random,
17281      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17282      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17283      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'
17284      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'
17285      ;;
17286
17287    gnu* | linux* | k*bsd*-gnu)
17288      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17289	tmp_addflag=
17290	case $cc_basename,$host_cpu in
17291	pgcc*)				# Portland Group C compiler
17292	  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'
17293	  tmp_addflag=' $pic_flag'
17294	  ;;
17295	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17296	  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'
17297	  tmp_addflag=' $pic_flag -Mnomain' ;;
17298	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17299	  tmp_addflag=' -i_dynamic' ;;
17300	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17301	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17302	ifc* | ifort*)			# Intel Fortran compiler
17303	  tmp_addflag=' -nofor_main' ;;
17304	esac
17305	case `$CC -V 2>&1 | sed 5q` in
17306	*Sun\ C*)			# Sun C 5.9
17307	  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'
17308	  tmp_sharedflag='-G' ;;
17309	*Sun\ F*)			# Sun Fortran 8.3
17310	  tmp_sharedflag='-G' ;;
17311	*)
17312	  tmp_sharedflag='-shared' ;;
17313	esac
17314	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17315
17316	if test $supports_anon_versioning = yes; then
17317	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17318  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17319  $echo "local: *; };" >> $output_objdir/$libname.ver~
17320	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17321	fi
17322	link_all_deplibs_GCJ=no
17323      else
17324	ld_shlibs_GCJ=no
17325      fi
17326      ;;
17327
17328    netbsd* | netbsdelf*-gnu)
17329      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17330	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17331	wlarc=
17332      else
17333	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17334	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17335      fi
17336      ;;
17337
17338    solaris*)
17339      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17340	ld_shlibs_GCJ=no
17341	cat <<EOF 1>&2
17342
17343*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17344*** create shared libraries on Solaris systems.  Therefore, libtool
17345*** is disabling shared libraries support.  We urge you to upgrade GNU
17346*** binutils to release 2.9.1 or newer.  Another option is to modify
17347*** your PATH or compiler configuration so that the native linker is
17348*** used, and then restart.
17349
17350EOF
17351      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17352	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17353	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17354      else
17355	ld_shlibs_GCJ=no
17356      fi
17357      ;;
17358
17359    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17360      case `$LD -v 2>&1` in
17361        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17362	ld_shlibs_GCJ=no
17363	cat <<_LT_EOF 1>&2
17364
17365*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17366*** reliably create shared libraries on SCO systems.  Therefore, libtool
17367*** is disabling shared libraries support.  We urge you to upgrade GNU
17368*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17369*** your PATH or compiler configuration so that the native linker is
17370*** used, and then restart.
17371
17372_LT_EOF
17373	;;
17374	*)
17375	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17376	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17377	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17378	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17379	  else
17380	    ld_shlibs_GCJ=no
17381	  fi
17382	;;
17383      esac
17384      ;;
17385
17386    sunos4*)
17387      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17388      wlarc=
17389      hardcode_direct_GCJ=yes
17390      hardcode_shlibpath_var_GCJ=no
17391      ;;
17392
17393    *)
17394      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17395	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17396	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17397      else
17398	ld_shlibs_GCJ=no
17399      fi
17400      ;;
17401    esac
17402
17403    if test "$ld_shlibs_GCJ" = no; then
17404      runpath_var=
17405      hardcode_libdir_flag_spec_GCJ=
17406      export_dynamic_flag_spec_GCJ=
17407      whole_archive_flag_spec_GCJ=
17408    fi
17409  else
17410    # PORTME fill in a description of your system's linker (not GNU ld)
17411    case $host_os in
17412    aix3*)
17413      allow_undefined_flag_GCJ=unsupported
17414      always_export_symbols_GCJ=yes
17415      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'
17416      # Note: this linker hardcodes the directories in LIBPATH if there
17417      # are no directories specified by -L.
17418      hardcode_minus_L_GCJ=yes
17419      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17420	# Neither direct hardcoding nor static linking is supported with a
17421	# broken collect2.
17422	hardcode_direct_GCJ=unsupported
17423      fi
17424      ;;
17425
17426    aix[4-9]*)
17427      if test "$host_cpu" = ia64; then
17428	# On IA64, the linker does run time linking by default, so we don't
17429	# have to do anything special.
17430	aix_use_runtimelinking=no
17431	exp_sym_flag='-Bexport'
17432	no_entry_flag=""
17433      else
17434	# If we're using GNU nm, then we don't want the "-C" option.
17435	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17436	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17437	  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'
17438	else
17439	  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'
17440	fi
17441	aix_use_runtimelinking=no
17442
17443	# Test if we are trying to use run time linking or normal
17444	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17445	# need to do runtime linking.
17446	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17447	  for ld_flag in $LDFLAGS; do
17448  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17449  	    aix_use_runtimelinking=yes
17450  	    break
17451  	  fi
17452	  done
17453	  ;;
17454	esac
17455
17456	exp_sym_flag='-bexport'
17457	no_entry_flag='-bnoentry'
17458      fi
17459
17460      # When large executables or shared objects are built, AIX ld can
17461      # have problems creating the table of contents.  If linking a library
17462      # or program results in "error TOC overflow" add -mminimal-toc to
17463      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17464      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17465
17466      archive_cmds_GCJ=''
17467      hardcode_direct_GCJ=yes
17468      hardcode_libdir_separator_GCJ=':'
17469      link_all_deplibs_GCJ=yes
17470
17471      if test "$GCC" = yes; then
17472	case $host_os in aix4.[012]|aix4.[012].*)
17473	# We only want to do this on AIX 4.2 and lower, the check
17474	# below for broken collect2 doesn't work under 4.3+
17475	  collect2name=`${CC} -print-prog-name=collect2`
17476	  if test -f "$collect2name" && \
17477  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17478	  then
17479  	  # We have reworked collect2
17480  	  :
17481	  else
17482  	  # We have old collect2
17483  	  hardcode_direct_GCJ=unsupported
17484  	  # It fails to find uninstalled libraries when the uninstalled
17485  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17486  	  # to unsupported forces relinking
17487  	  hardcode_minus_L_GCJ=yes
17488  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17489  	  hardcode_libdir_separator_GCJ=
17490	  fi
17491	  ;;
17492	esac
17493	shared_flag='-shared'
17494	if test "$aix_use_runtimelinking" = yes; then
17495	  shared_flag="$shared_flag "'${wl}-G'
17496	fi
17497      else
17498	# not using gcc
17499	if test "$host_cpu" = ia64; then
17500  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17501  	# chokes on -Wl,-G. The following line is correct:
17502	  shared_flag='-G'
17503	else
17504	  if test "$aix_use_runtimelinking" = yes; then
17505	    shared_flag='${wl}-G'
17506	  else
17507	    shared_flag='${wl}-bM:SRE'
17508	  fi
17509	fi
17510      fi
17511
17512      # It seems that -bexpall does not export symbols beginning with
17513      # underscore (_), so it is better to generate a list of symbols to export.
17514      always_export_symbols_GCJ=yes
17515      if test "$aix_use_runtimelinking" = yes; then
17516	# Warning - without using the other runtime loading flags (-brtl),
17517	# -berok will link without error, but may produce a broken library.
17518	allow_undefined_flag_GCJ='-berok'
17519       # Determine the default libpath from the value encoded in an empty executable.
17520       cat >conftest.$ac_ext <<_ACEOF
17521/* confdefs.h.  */
17522_ACEOF
17523cat confdefs.h >>conftest.$ac_ext
17524cat >>conftest.$ac_ext <<_ACEOF
17525/* end confdefs.h.  */
17526
17527int
17528main ()
17529{
17530
17531  ;
17532  return 0;
17533}
17534_ACEOF
17535rm -f conftest.$ac_objext conftest$ac_exeext
17536if { (ac_try="$ac_link"
17537case "(($ac_try" in
17538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539  *) ac_try_echo=$ac_try;;
17540esac
17541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542  (eval "$ac_link") 2>conftest.er1
17543  ac_status=$?
17544  grep -v '^ *+' conftest.er1 >conftest.err
17545  rm -f conftest.er1
17546  cat conftest.err >&5
17547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548  (exit $ac_status); } && {
17549	 test -z "$ac_cxx_werror_flag" ||
17550	 test ! -s conftest.err
17551       } && test -s conftest$ac_exeext &&
17552       $as_test_x conftest$ac_exeext; then
17553
17554lt_aix_libpath_sed='
17555    /Import File Strings/,/^$/ {
17556	/^0/ {
17557	    s/^0  *\(.*\)$/\1/
17558	    p
17559	}
17560    }'
17561aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17562# Check for a 64-bit object if we didn't find anything.
17563if test -z "$aix_libpath"; then
17564  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17565fi
17566else
17567  echo "$as_me: failed program was:" >&5
17568sed 's/^/| /' conftest.$ac_ext >&5
17569
17570
17571fi
17572
17573rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17574      conftest$ac_exeext conftest.$ac_ext
17575if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17576
17577       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17578	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"
17579       else
17580	if test "$host_cpu" = ia64; then
17581	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17582	  allow_undefined_flag_GCJ="-z nodefs"
17583	  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"
17584	else
17585	 # Determine the default libpath from the value encoded in an empty executable.
17586	 cat >conftest.$ac_ext <<_ACEOF
17587/* confdefs.h.  */
17588_ACEOF
17589cat confdefs.h >>conftest.$ac_ext
17590cat >>conftest.$ac_ext <<_ACEOF
17591/* end confdefs.h.  */
17592
17593int
17594main ()
17595{
17596
17597  ;
17598  return 0;
17599}
17600_ACEOF
17601rm -f conftest.$ac_objext conftest$ac_exeext
17602if { (ac_try="$ac_link"
17603case "(($ac_try" in
17604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605  *) ac_try_echo=$ac_try;;
17606esac
17607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608  (eval "$ac_link") 2>conftest.er1
17609  ac_status=$?
17610  grep -v '^ *+' conftest.er1 >conftest.err
17611  rm -f conftest.er1
17612  cat conftest.err >&5
17613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614  (exit $ac_status); } && {
17615	 test -z "$ac_cxx_werror_flag" ||
17616	 test ! -s conftest.err
17617       } && test -s conftest$ac_exeext &&
17618       $as_test_x conftest$ac_exeext; then
17619
17620lt_aix_libpath_sed='
17621    /Import File Strings/,/^$/ {
17622	/^0/ {
17623	    s/^0  *\(.*\)$/\1/
17624	    p
17625	}
17626    }'
17627aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17628# Check for a 64-bit object if we didn't find anything.
17629if test -z "$aix_libpath"; then
17630  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17631fi
17632else
17633  echo "$as_me: failed program was:" >&5
17634sed 's/^/| /' conftest.$ac_ext >&5
17635
17636
17637fi
17638
17639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17640      conftest$ac_exeext conftest.$ac_ext
17641if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17642
17643	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17644	  # Warning - without using the other run time loading flags,
17645	  # -berok will link without error, but may produce a broken library.
17646	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17647	  allow_undefined_flag_GCJ=' ${wl}-berok'
17648	  # Exported symbols can be pulled into shared objects from archives
17649	  whole_archive_flag_spec_GCJ='$convenience'
17650	  archive_cmds_need_lc_GCJ=yes
17651	  # This is similar to how AIX traditionally builds its shared libraries.
17652	  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'
17653	fi
17654      fi
17655      ;;
17656
17657    amigaos*)
17658      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)'
17659      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17660      hardcode_minus_L_GCJ=yes
17661      # see comment about different semantics on the GNU ld section
17662      ld_shlibs_GCJ=no
17663      ;;
17664
17665    bsdi[45]*)
17666      export_dynamic_flag_spec_GCJ=-rdynamic
17667      ;;
17668
17669    cygwin* | mingw* | pw32*)
17670      # When not using gcc, we currently assume that we are using
17671      # Microsoft Visual C++.
17672      # hardcode_libdir_flag_spec is actually meaningless, as there is
17673      # no search path for DLLs.
17674      hardcode_libdir_flag_spec_GCJ=' '
17675      allow_undefined_flag_GCJ=unsupported
17676      # Tell ltmain to make .lib files, not .a files.
17677      libext=lib
17678      # Tell ltmain to make .dll files, not .so files.
17679      shrext_cmds=".dll"
17680      # FIXME: Setting linknames here is a bad hack.
17681      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17682      # The linker will automatically build a .lib file if we build a DLL.
17683      old_archive_From_new_cmds_GCJ='true'
17684      # FIXME: Should let the user specify the lib program.
17685      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17686      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17687      enable_shared_with_static_runtimes_GCJ=yes
17688      ;;
17689
17690    darwin* | rhapsody*)
17691      case $host_os in
17692        rhapsody* | darwin1.[012])
17693         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17694         ;;
17695       *) # Darwin 1.3 on
17696         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17697           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17698         else
17699           case ${MACOSX_DEPLOYMENT_TARGET} in
17700             10.[012])
17701               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17702               ;;
17703             10.*)
17704               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17705               ;;
17706           esac
17707         fi
17708         ;;
17709      esac
17710      archive_cmds_need_lc_GCJ=no
17711      hardcode_direct_GCJ=no
17712      hardcode_automatic_GCJ=yes
17713      hardcode_shlibpath_var_GCJ=unsupported
17714      whole_archive_flag_spec_GCJ=''
17715      link_all_deplibs_GCJ=yes
17716    if test "$GCC" = yes ; then
17717    	output_verbose_link_cmd='echo'
17718        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}"
17719        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17720        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}"
17721        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}"
17722    else
17723      case $cc_basename in
17724        xlc*)
17725         output_verbose_link_cmd='echo'
17726         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17727         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17728          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17729         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}'
17730          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}'
17731          ;;
17732       *)
17733         ld_shlibs_GCJ=no
17734          ;;
17735      esac
17736    fi
17737      ;;
17738
17739    dgux*)
17740      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17741      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17742      hardcode_shlibpath_var_GCJ=no
17743      ;;
17744
17745    freebsd1*)
17746      ld_shlibs_GCJ=no
17747      ;;
17748
17749    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17750    # support.  Future versions do this automatically, but an explicit c++rt0.o
17751    # does not break anything, and helps significantly (at the cost of a little
17752    # extra space).
17753    freebsd2.2*)
17754      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17755      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17756      hardcode_direct_GCJ=yes
17757      hardcode_shlibpath_var_GCJ=no
17758      ;;
17759
17760    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17761    freebsd2*)
17762      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17763      hardcode_direct_GCJ=yes
17764      hardcode_minus_L_GCJ=yes
17765      hardcode_shlibpath_var_GCJ=no
17766      ;;
17767
17768    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17769    freebsd* | dragonfly*)
17770      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17771      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17772      hardcode_direct_GCJ=yes
17773      hardcode_shlibpath_var_GCJ=no
17774      ;;
17775
17776    hpux9*)
17777      if test "$GCC" = yes; then
17778	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'
17779      else
17780	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'
17781      fi
17782      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17783      hardcode_libdir_separator_GCJ=:
17784      hardcode_direct_GCJ=yes
17785
17786      # hardcode_minus_L: Not really in the search PATH,
17787      # but as the default location of the library.
17788      hardcode_minus_L_GCJ=yes
17789      export_dynamic_flag_spec_GCJ='${wl}-E'
17790      ;;
17791
17792    hpux10*)
17793      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17794	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17795      else
17796	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17797      fi
17798      if test "$with_gnu_ld" = no; then
17799	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17800	hardcode_libdir_separator_GCJ=:
17801
17802	hardcode_direct_GCJ=yes
17803	export_dynamic_flag_spec_GCJ='${wl}-E'
17804
17805	# hardcode_minus_L: Not really in the search PATH,
17806	# but as the default location of the library.
17807	hardcode_minus_L_GCJ=yes
17808      fi
17809      ;;
17810
17811    hpux11*)
17812      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17813	case $host_cpu in
17814	hppa*64*)
17815	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17816	  ;;
17817	ia64*)
17818	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17819	  ;;
17820	*)
17821	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17822	  ;;
17823	esac
17824      else
17825	case $host_cpu in
17826	hppa*64*)
17827	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17828	  ;;
17829	ia64*)
17830	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17831	  ;;
17832	*)
17833	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17834	  ;;
17835	esac
17836      fi
17837      if test "$with_gnu_ld" = no; then
17838	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17839	hardcode_libdir_separator_GCJ=:
17840
17841	case $host_cpu in
17842	hppa*64*|ia64*)
17843	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17844	  hardcode_direct_GCJ=no
17845	  hardcode_shlibpath_var_GCJ=no
17846	  ;;
17847	*)
17848	  hardcode_direct_GCJ=yes
17849	  export_dynamic_flag_spec_GCJ='${wl}-E'
17850
17851	  # hardcode_minus_L: Not really in the search PATH,
17852	  # but as the default location of the library.
17853	  hardcode_minus_L_GCJ=yes
17854	  ;;
17855	esac
17856      fi
17857      ;;
17858
17859    irix5* | irix6* | nonstopux*)
17860      if test "$GCC" = yes; then
17861	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'
17862      else
17863	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'
17864	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17865      fi
17866      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17867      hardcode_libdir_separator_GCJ=:
17868      link_all_deplibs_GCJ=yes
17869      ;;
17870
17871    netbsd* | netbsdelf*-gnu)
17872      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17873	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17874      else
17875	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17876      fi
17877      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17878      hardcode_direct_GCJ=yes
17879      hardcode_shlibpath_var_GCJ=no
17880      ;;
17881
17882    newsos6)
17883      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17884      hardcode_direct_GCJ=yes
17885      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17886      hardcode_libdir_separator_GCJ=:
17887      hardcode_shlibpath_var_GCJ=no
17888      ;;
17889
17890    openbsd*)
17891      if test -f /usr/libexec/ld.so; then
17892	hardcode_direct_GCJ=yes
17893	hardcode_shlibpath_var_GCJ=no
17894	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17895	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17896	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17897	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17898	  export_dynamic_flag_spec_GCJ='${wl}-E'
17899	else
17900	  case $host_os in
17901	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17902	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17903	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
17904	     ;;
17905	   *)
17906	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17907	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17908	     ;;
17909	  esac
17910        fi
17911      else
17912	ld_shlibs_GCJ=no
17913      fi
17914      ;;
17915
17916    os2*)
17917      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17918      hardcode_minus_L_GCJ=yes
17919      allow_undefined_flag_GCJ=unsupported
17920      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'
17921      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17922      ;;
17923
17924    osf3*)
17925      if test "$GCC" = yes; then
17926	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17927	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'
17928      else
17929	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17930	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'
17931      fi
17932      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17933      hardcode_libdir_separator_GCJ=:
17934      ;;
17935
17936    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17937      if test "$GCC" = yes; then
17938	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17939	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'
17940	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17941      else
17942	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17943	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'
17944	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~
17945	$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'
17946
17947	# Both c and cxx compiler support -rpath directly
17948	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17949      fi
17950      hardcode_libdir_separator_GCJ=:
17951      ;;
17952
17953    solaris*)
17954      no_undefined_flag_GCJ=' -z text'
17955      if test "$GCC" = yes; then
17956	wlarc='${wl}'
17957	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17958	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17959	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17960      else
17961	wlarc=''
17962	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17963	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17964  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17965      fi
17966      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17967      hardcode_shlibpath_var_GCJ=no
17968      case $host_os in
17969      solaris2.[0-5] | solaris2.[0-5].*) ;;
17970      *)
17971	# The compiler driver will combine and reorder linker options,
17972	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17973	# but is careful enough not to reorder.
17974 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17975	if test "$GCC" = yes; then
17976	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17977	else
17978	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17979	fi
17980	;;
17981      esac
17982      link_all_deplibs_GCJ=yes
17983      ;;
17984
17985    sunos4*)
17986      if test "x$host_vendor" = xsequent; then
17987	# Use $CC to link under sequent, because it throws in some extra .o
17988	# files that make .init and .fini sections work.
17989	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17990      else
17991	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17992      fi
17993      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17994      hardcode_direct_GCJ=yes
17995      hardcode_minus_L_GCJ=yes
17996      hardcode_shlibpath_var_GCJ=no
17997      ;;
17998
17999    sysv4)
18000      case $host_vendor in
18001	sni)
18002	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18003	  hardcode_direct_GCJ=yes # is this really true???
18004	;;
18005	siemens)
18006	  ## LD is ld it makes a PLAMLIB
18007	  ## CC just makes a GrossModule.
18008	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18009	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18010	  hardcode_direct_GCJ=no
18011        ;;
18012	motorola)
18013	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18014	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18015	;;
18016      esac
18017      runpath_var='LD_RUN_PATH'
18018      hardcode_shlibpath_var_GCJ=no
18019      ;;
18020
18021    sysv4.3*)
18022      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18023      hardcode_shlibpath_var_GCJ=no
18024      export_dynamic_flag_spec_GCJ='-Bexport'
18025      ;;
18026
18027    sysv4*MP*)
18028      if test -d /usr/nec; then
18029	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18030	hardcode_shlibpath_var_GCJ=no
18031	runpath_var=LD_RUN_PATH
18032	hardcode_runpath_var=yes
18033	ld_shlibs_GCJ=yes
18034      fi
18035      ;;
18036
18037    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18038      no_undefined_flag_GCJ='${wl}-z,text'
18039      archive_cmds_need_lc_GCJ=no
18040      hardcode_shlibpath_var_GCJ=no
18041      runpath_var='LD_RUN_PATH'
18042
18043      if test "$GCC" = yes; then
18044	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18045	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18046      else
18047	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18048	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18049      fi
18050      ;;
18051
18052    sysv5* | sco3.2v5* | sco5v6*)
18053      # Note: We can NOT use -z defs as we might desire, because we do not
18054      # link with -lc, and that would cause any symbols used from libc to
18055      # always be unresolved, which means just about no library would
18056      # ever link correctly.  If we're not using GNU ld we use -z text
18057      # though, which does catch some bad symbols but isn't as heavy-handed
18058      # as -z defs.
18059      no_undefined_flag_GCJ='${wl}-z,text'
18060      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18061      archive_cmds_need_lc_GCJ=no
18062      hardcode_shlibpath_var_GCJ=no
18063      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18064      hardcode_libdir_separator_GCJ=':'
18065      link_all_deplibs_GCJ=yes
18066      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18067      runpath_var='LD_RUN_PATH'
18068
18069      if test "$GCC" = yes; then
18070	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18071	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18072      else
18073	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18074	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18075      fi
18076      ;;
18077
18078    uts4*)
18079      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18080      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18081      hardcode_shlibpath_var_GCJ=no
18082      ;;
18083
18084    *)
18085      ld_shlibs_GCJ=no
18086      ;;
18087    esac
18088  fi
18089
18090{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18091echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18092test "$ld_shlibs_GCJ" = no && can_build_shared=no
18093
18094#
18095# Do we need to explicitly link libc?
18096#
18097case "x$archive_cmds_need_lc_GCJ" in
18098x|xyes)
18099  # Assume -lc should be added
18100  archive_cmds_need_lc_GCJ=yes
18101
18102  if test "$enable_shared" = yes && test "$GCC" = yes; then
18103    case $archive_cmds_GCJ in
18104    *'~'*)
18105      # FIXME: we may have to deal with multi-command sequences.
18106      ;;
18107    '$CC '*)
18108      # Test whether the compiler implicitly links with -lc since on some
18109      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18110      # to ld, don't add -lc before -lgcc.
18111      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18112echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18113      $rm conftest*
18114      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18115
18116      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18117  (eval $ac_compile) 2>&5
18118  ac_status=$?
18119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120  (exit $ac_status); } 2>conftest.err; then
18121        soname=conftest
18122        lib=conftest
18123        libobjs=conftest.$ac_objext
18124        deplibs=
18125        wl=$lt_prog_compiler_wl_GCJ
18126	pic_flag=$lt_prog_compiler_pic_GCJ
18127        compiler_flags=-v
18128        linker_flags=-v
18129        verstring=
18130        output_objdir=.
18131        libname=conftest
18132        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18133        allow_undefined_flag_GCJ=
18134        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18135  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18136  ac_status=$?
18137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138  (exit $ac_status); }
18139        then
18140	  archive_cmds_need_lc_GCJ=no
18141        else
18142	  archive_cmds_need_lc_GCJ=yes
18143        fi
18144        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18145      else
18146        cat conftest.err 1>&5
18147      fi
18148      $rm conftest*
18149      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18150echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18151      ;;
18152    esac
18153  fi
18154  ;;
18155esac
18156
18157{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18158echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18159library_names_spec=
18160libname_spec='lib$name'
18161soname_spec=
18162shrext_cmds=".so"
18163postinstall_cmds=
18164postuninstall_cmds=
18165finish_cmds=
18166finish_eval=
18167shlibpath_var=
18168shlibpath_overrides_runpath=unknown
18169version_type=none
18170dynamic_linker="$host_os ld.so"
18171sys_lib_dlsearch_path_spec="/lib /usr/lib"
18172
18173need_lib_prefix=unknown
18174hardcode_into_libs=no
18175
18176# when you set need_version to no, make sure it does not cause -set_version
18177# flags to be left without arguments
18178need_version=unknown
18179
18180case $host_os in
18181aix3*)
18182  version_type=linux
18183  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18184  shlibpath_var=LIBPATH
18185
18186  # AIX 3 has no versioning support, so we append a major version to the name.
18187  soname_spec='${libname}${release}${shared_ext}$major'
18188  ;;
18189
18190aix[4-9]*)
18191  version_type=linux
18192  need_lib_prefix=no
18193  need_version=no
18194  hardcode_into_libs=yes
18195  if test "$host_cpu" = ia64; then
18196    # AIX 5 supports IA64
18197    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18198    shlibpath_var=LD_LIBRARY_PATH
18199  else
18200    # With GCC up to 2.95.x, collect2 would create an import file
18201    # for dependence libraries.  The import file would start with
18202    # the line `#! .'.  This would cause the generated library to
18203    # depend on `.', always an invalid library.  This was fixed in
18204    # development snapshots of GCC prior to 3.0.
18205    case $host_os in
18206      aix4 | aix4.[01] | aix4.[01].*)
18207      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18208	   echo ' yes '
18209	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18210	:
18211      else
18212	can_build_shared=no
18213      fi
18214      ;;
18215    esac
18216    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18217    # soname into executable. Probably we can add versioning support to
18218    # collect2, so additional links can be useful in future.
18219    if test "$aix_use_runtimelinking" = yes; then
18220      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18221      # instead of lib<name>.a to let people know that these are not
18222      # typical AIX shared libraries.
18223      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18224    else
18225      # We preserve .a as extension for shared libraries through AIX4.2
18226      # and later when we are not doing run time linking.
18227      library_names_spec='${libname}${release}.a $libname.a'
18228      soname_spec='${libname}${release}${shared_ext}$major'
18229    fi
18230    shlibpath_var=LIBPATH
18231  fi
18232  ;;
18233
18234amigaos*)
18235  library_names_spec='$libname.ixlibrary $libname.a'
18236  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18237  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'
18238  ;;
18239
18240beos*)
18241  library_names_spec='${libname}${shared_ext}'
18242  dynamic_linker="$host_os ld.so"
18243  shlibpath_var=LIBRARY_PATH
18244  ;;
18245
18246bsdi[45]*)
18247  version_type=linux
18248  need_version=no
18249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18250  soname_spec='${libname}${release}${shared_ext}$major'
18251  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18252  shlibpath_var=LD_LIBRARY_PATH
18253  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18254  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18255  # the default ld.so.conf also contains /usr/contrib/lib and
18256  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18257  # libtool to hard-code these into programs
18258  ;;
18259
18260cygwin* | mingw* | pw32*)
18261  version_type=windows
18262  shrext_cmds=".dll"
18263  need_version=no
18264  need_lib_prefix=no
18265
18266  case $GCC,$host_os in
18267  yes,cygwin* | yes,mingw* | yes,pw32*)
18268    library_names_spec='$libname.dll.a'
18269    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18270    postinstall_cmds='base_file=`basename \${file}`~
18271      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18272      dldir=$destdir/`dirname \$dlpath`~
18273      test -d \$dldir || mkdir -p \$dldir~
18274      $install_prog $dir/$dlname \$dldir/$dlname~
18275      chmod a+x \$dldir/$dlname'
18276    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18277      dlpath=$dir/\$dldll~
18278       $rm \$dlpath'
18279    shlibpath_overrides_runpath=yes
18280
18281    case $host_os in
18282    cygwin*)
18283      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18284      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18285      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18286      ;;
18287    mingw*)
18288      # MinGW DLLs use traditional 'lib' prefix
18289      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18290      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18291      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18292        # It is most probably a Windows format PATH printed by
18293        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18294        # path with ; separators, and with drive letters. We can handle the
18295        # drive letters (cygwin fileutils understands them), so leave them,
18296        # especially as we might pass files found there to a mingw objdump,
18297        # which wouldn't understand a cygwinified path. Ahh.
18298        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18299      else
18300        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18301      fi
18302      ;;
18303    pw32*)
18304      # pw32 DLLs use 'pw' prefix rather than 'lib'
18305      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18306      ;;
18307    esac
18308    ;;
18309
18310  *)
18311    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18312    ;;
18313  esac
18314  dynamic_linker='Win32 ld.exe'
18315  # FIXME: first we should search . and the directory the executable is in
18316  shlibpath_var=PATH
18317  ;;
18318
18319darwin* | rhapsody*)
18320  dynamic_linker="$host_os dyld"
18321  version_type=darwin
18322  need_lib_prefix=no
18323  need_version=no
18324  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18325  soname_spec='${libname}${release}${major}$shared_ext'
18326  shlibpath_overrides_runpath=yes
18327  shlibpath_var=DYLD_LIBRARY_PATH
18328  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18329
18330  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18331  ;;
18332
18333dgux*)
18334  version_type=linux
18335  need_lib_prefix=no
18336  need_version=no
18337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18338  soname_spec='${libname}${release}${shared_ext}$major'
18339  shlibpath_var=LD_LIBRARY_PATH
18340  ;;
18341
18342freebsd1*)
18343  dynamic_linker=no
18344  ;;
18345
18346freebsd* | dragonfly*)
18347  # DragonFly does not have aout.  When/if they implement a new
18348  # versioning mechanism, adjust this.
18349  if test -x /usr/bin/objformat; then
18350    objformat=`/usr/bin/objformat`
18351  else
18352    case $host_os in
18353    freebsd[123]*) objformat=aout ;;
18354    *) objformat=elf ;;
18355    esac
18356  fi
18357  version_type=freebsd-$objformat
18358  case $version_type in
18359    freebsd-elf*)
18360      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18361      need_version=no
18362      need_lib_prefix=no
18363      ;;
18364    freebsd-*)
18365      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18366      need_version=yes
18367      ;;
18368  esac
18369  shlibpath_var=LD_LIBRARY_PATH
18370  case $host_os in
18371  freebsd2*)
18372    shlibpath_overrides_runpath=yes
18373    ;;
18374  freebsd3.[01]* | freebsdelf3.[01]*)
18375    shlibpath_overrides_runpath=yes
18376    hardcode_into_libs=yes
18377    ;;
18378  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18379  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18380    shlibpath_overrides_runpath=no
18381    hardcode_into_libs=yes
18382    ;;
18383  *) # from 4.6 on, and DragonFly
18384    shlibpath_overrides_runpath=yes
18385    hardcode_into_libs=yes
18386    ;;
18387  esac
18388  ;;
18389
18390gnu*)
18391  version_type=linux
18392  need_lib_prefix=no
18393  need_version=no
18394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18395  soname_spec='${libname}${release}${shared_ext}$major'
18396  shlibpath_var=LD_LIBRARY_PATH
18397  hardcode_into_libs=yes
18398  ;;
18399
18400hpux9* | hpux10* | hpux11*)
18401  # Give a soname corresponding to the major version so that dld.sl refuses to
18402  # link against other versions.
18403  version_type=sunos
18404  need_lib_prefix=no
18405  need_version=no
18406  case $host_cpu in
18407  ia64*)
18408    shrext_cmds='.so'
18409    hardcode_into_libs=yes
18410    dynamic_linker="$host_os dld.so"
18411    shlibpath_var=LD_LIBRARY_PATH
18412    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18413    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18414    soname_spec='${libname}${release}${shared_ext}$major'
18415    if test "X$HPUX_IA64_MODE" = X32; then
18416      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18417    else
18418      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18419    fi
18420    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18421    ;;
18422   hppa*64*)
18423     shrext_cmds='.sl'
18424     hardcode_into_libs=yes
18425     dynamic_linker="$host_os dld.sl"
18426     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18427     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18428     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18429     soname_spec='${libname}${release}${shared_ext}$major'
18430     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18431     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18432     ;;
18433   *)
18434    shrext_cmds='.sl'
18435    dynamic_linker="$host_os dld.sl"
18436    shlibpath_var=SHLIB_PATH
18437    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18438    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18439    soname_spec='${libname}${release}${shared_ext}$major'
18440    ;;
18441  esac
18442  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18443  postinstall_cmds='chmod 555 $lib'
18444  ;;
18445
18446interix[3-9]*)
18447  version_type=linux
18448  need_lib_prefix=no
18449  need_version=no
18450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18451  soname_spec='${libname}${release}${shared_ext}$major'
18452  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18453  shlibpath_var=LD_LIBRARY_PATH
18454  shlibpath_overrides_runpath=no
18455  hardcode_into_libs=yes
18456  ;;
18457
18458irix5* | irix6* | nonstopux*)
18459  case $host_os in
18460    nonstopux*) version_type=nonstopux ;;
18461    *)
18462	if test "$lt_cv_prog_gnu_ld" = yes; then
18463		version_type=linux
18464	else
18465		version_type=irix
18466	fi ;;
18467  esac
18468  need_lib_prefix=no
18469  need_version=no
18470  soname_spec='${libname}${release}${shared_ext}$major'
18471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18472  case $host_os in
18473  irix5* | nonstopux*)
18474    libsuff= shlibsuff=
18475    ;;
18476  *)
18477    case $LD in # libtool.m4 will add one of these switches to LD
18478    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18479      libsuff= shlibsuff= libmagic=32-bit;;
18480    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18481      libsuff=32 shlibsuff=N32 libmagic=N32;;
18482    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18483      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18484    *) libsuff= shlibsuff= libmagic=never-match;;
18485    esac
18486    ;;
18487  esac
18488  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18489  shlibpath_overrides_runpath=no
18490  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18491  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18492  hardcode_into_libs=yes
18493  ;;
18494
18495# No shared lib support for Linux oldld, aout, or coff.
18496linux*oldld* | linux*aout* | linux*coff*)
18497  dynamic_linker=no
18498  ;;
18499
18500# This must be Linux ELF.
18501linux* | k*bsd*-gnu)
18502  version_type=linux
18503  need_lib_prefix=no
18504  need_version=no
18505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18506  soname_spec='${libname}${release}${shared_ext}$major'
18507  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18508  shlibpath_var=LD_LIBRARY_PATH
18509  shlibpath_overrides_runpath=no
18510  # This implies no fast_install, which is unacceptable.
18511  # Some rework will be needed to allow for fast_install
18512  # before this can be enabled.
18513  hardcode_into_libs=yes
18514
18515  # Append ld.so.conf contents to the search path
18516  if test -f /etc/ld.so.conf; then
18517    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' ' '`
18518    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18519  fi
18520
18521  # We used to test for /lib/ld.so.1 and disable shared libraries on
18522  # powerpc, because MkLinux only supported shared libraries with the
18523  # GNU dynamic linker.  Since this was broken with cross compilers,
18524  # most powerpc-linux boxes support dynamic linking these days and
18525  # people can always --disable-shared, the test was removed, and we
18526  # assume the GNU/Linux dynamic linker is in use.
18527  dynamic_linker='GNU/Linux ld.so'
18528  ;;
18529
18530netbsdelf*-gnu)
18531  version_type=linux
18532  need_lib_prefix=no
18533  need_version=no
18534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18535  soname_spec='${libname}${release}${shared_ext}$major'
18536  shlibpath_var=LD_LIBRARY_PATH
18537  shlibpath_overrides_runpath=no
18538  hardcode_into_libs=yes
18539  dynamic_linker='NetBSD ld.elf_so'
18540  ;;
18541
18542netbsd*)
18543  version_type=sunos
18544  need_lib_prefix=no
18545  need_version=no
18546  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18547    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18548    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18549    dynamic_linker='NetBSD (a.out) ld.so'
18550  else
18551    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18552    soname_spec='${libname}${release}${shared_ext}$major'
18553    dynamic_linker='NetBSD ld.elf_so'
18554  fi
18555  shlibpath_var=LD_LIBRARY_PATH
18556  shlibpath_overrides_runpath=yes
18557  hardcode_into_libs=yes
18558  ;;
18559
18560newsos6)
18561  version_type=linux
18562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18563  shlibpath_var=LD_LIBRARY_PATH
18564  shlibpath_overrides_runpath=yes
18565  ;;
18566
18567nto-qnx*)
18568  version_type=linux
18569  need_lib_prefix=no
18570  need_version=no
18571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18572  soname_spec='${libname}${release}${shared_ext}$major'
18573  shlibpath_var=LD_LIBRARY_PATH
18574  shlibpath_overrides_runpath=yes
18575  ;;
18576
18577openbsd*)
18578  version_type=sunos
18579  sys_lib_dlsearch_path_spec="/usr/lib"
18580  need_lib_prefix=no
18581  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18582  case $host_os in
18583    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18584    *)                         need_version=no  ;;
18585  esac
18586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18587  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18588  shlibpath_var=LD_LIBRARY_PATH
18589  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18590    case $host_os in
18591      openbsd2.[89] | openbsd2.[89].*)
18592	shlibpath_overrides_runpath=no
18593	;;
18594      *)
18595	shlibpath_overrides_runpath=yes
18596	;;
18597      esac
18598  else
18599    shlibpath_overrides_runpath=yes
18600  fi
18601  ;;
18602
18603os2*)
18604  libname_spec='$name'
18605  shrext_cmds=".dll"
18606  need_lib_prefix=no
18607  library_names_spec='$libname${shared_ext} $libname.a'
18608  dynamic_linker='OS/2 ld.exe'
18609  shlibpath_var=LIBPATH
18610  ;;
18611
18612osf3* | osf4* | osf5*)
18613  version_type=osf
18614  need_lib_prefix=no
18615  need_version=no
18616  soname_spec='${libname}${release}${shared_ext}$major'
18617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18618  shlibpath_var=LD_LIBRARY_PATH
18619  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18620  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18621  ;;
18622
18623rdos*)
18624  dynamic_linker=no
18625  ;;
18626
18627solaris*)
18628  version_type=linux
18629  need_lib_prefix=no
18630  need_version=no
18631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18632  soname_spec='${libname}${release}${shared_ext}$major'
18633  shlibpath_var=LD_LIBRARY_PATH
18634  shlibpath_overrides_runpath=yes
18635  hardcode_into_libs=yes
18636  # ldd complains unless libraries are executable
18637  postinstall_cmds='chmod +x $lib'
18638  ;;
18639
18640sunos4*)
18641  version_type=sunos
18642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18643  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18644  shlibpath_var=LD_LIBRARY_PATH
18645  shlibpath_overrides_runpath=yes
18646  if test "$with_gnu_ld" = yes; then
18647    need_lib_prefix=no
18648  fi
18649  need_version=yes
18650  ;;
18651
18652sysv4 | sysv4.3*)
18653  version_type=linux
18654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18655  soname_spec='${libname}${release}${shared_ext}$major'
18656  shlibpath_var=LD_LIBRARY_PATH
18657  case $host_vendor in
18658    sni)
18659      shlibpath_overrides_runpath=no
18660      need_lib_prefix=no
18661      export_dynamic_flag_spec='${wl}-Blargedynsym'
18662      runpath_var=LD_RUN_PATH
18663      ;;
18664    siemens)
18665      need_lib_prefix=no
18666      ;;
18667    motorola)
18668      need_lib_prefix=no
18669      need_version=no
18670      shlibpath_overrides_runpath=no
18671      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18672      ;;
18673  esac
18674  ;;
18675
18676sysv4*MP*)
18677  if test -d /usr/nec ;then
18678    version_type=linux
18679    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18680    soname_spec='$libname${shared_ext}.$major'
18681    shlibpath_var=LD_LIBRARY_PATH
18682  fi
18683  ;;
18684
18685sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18686  version_type=freebsd-elf
18687  need_lib_prefix=no
18688  need_version=no
18689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18690  soname_spec='${libname}${release}${shared_ext}$major'
18691  shlibpath_var=LD_LIBRARY_PATH
18692  hardcode_into_libs=yes
18693  if test "$with_gnu_ld" = yes; then
18694    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18695    shlibpath_overrides_runpath=no
18696  else
18697    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18698    shlibpath_overrides_runpath=yes
18699    case $host_os in
18700      sco3.2v5*)
18701        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18702	;;
18703    esac
18704  fi
18705  sys_lib_dlsearch_path_spec='/usr/lib'
18706  ;;
18707
18708uts4*)
18709  version_type=linux
18710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18711  soname_spec='${libname}${release}${shared_ext}$major'
18712  shlibpath_var=LD_LIBRARY_PATH
18713  ;;
18714
18715*)
18716  dynamic_linker=no
18717  ;;
18718esac
18719{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18720echo "${ECHO_T}$dynamic_linker" >&6; }
18721test "$dynamic_linker" = no && can_build_shared=no
18722
18723if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18724  echo $ECHO_N "(cached) $ECHO_C" >&6
18725else
18726  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18727fi
18728
18729sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18730if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18731  echo $ECHO_N "(cached) $ECHO_C" >&6
18732else
18733  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18734fi
18735
18736sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18737
18738variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18739if test "$GCC" = yes; then
18740  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18741fi
18742
18743{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18744echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18745hardcode_action_GCJ=
18746if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18747   test -n "$runpath_var_GCJ" || \
18748   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18749
18750  # We can hardcode non-existant directories.
18751  if test "$hardcode_direct_GCJ" != no &&
18752     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18753     # have to relink, otherwise we might link with an installed library
18754     # when we should be linking with a yet-to-be-installed one
18755     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18756     test "$hardcode_minus_L_GCJ" != no; then
18757    # Linking always hardcodes the temporary library directory.
18758    hardcode_action_GCJ=relink
18759  else
18760    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18761    hardcode_action_GCJ=immediate
18762  fi
18763else
18764  # We cannot hardcode anything, or else we can only hardcode existing
18765  # directories.
18766  hardcode_action_GCJ=unsupported
18767fi
18768{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18769echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18770
18771if test "$hardcode_action_GCJ" = relink; then
18772  # Fast installation is not supported
18773  enable_fast_install=no
18774elif test "$shlibpath_overrides_runpath" = yes ||
18775     test "$enable_shared" = no; then
18776  # Fast installation is not necessary
18777  enable_fast_install=needless
18778fi
18779
18780
18781# The else clause should only fire when bootstrapping the
18782# libtool distribution, otherwise you forgot to ship ltmain.sh
18783# with your package, and you will get complaints that there are
18784# no rules to generate ltmain.sh.
18785if test -f "$ltmain"; then
18786  # See if we are running on zsh, and set the options which allow our commands through
18787  # without removal of \ escapes.
18788  if test -n "${ZSH_VERSION+set}" ; then
18789    setopt NO_GLOB_SUBST
18790  fi
18791  # Now quote all the things that may contain metacharacters while being
18792  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18793  # variables and quote the copies for generation of the libtool script.
18794  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18795    SED SHELL STRIP \
18796    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18797    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18798    deplibs_check_method reload_flag reload_cmds need_locks \
18799    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18800    lt_cv_sys_global_symbol_to_c_name_address \
18801    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18802    old_postinstall_cmds old_postuninstall_cmds \
18803    compiler_GCJ \
18804    CC_GCJ \
18805    LD_GCJ \
18806    lt_prog_compiler_wl_GCJ \
18807    lt_prog_compiler_pic_GCJ \
18808    lt_prog_compiler_static_GCJ \
18809    lt_prog_compiler_no_builtin_flag_GCJ \
18810    export_dynamic_flag_spec_GCJ \
18811    thread_safe_flag_spec_GCJ \
18812    whole_archive_flag_spec_GCJ \
18813    enable_shared_with_static_runtimes_GCJ \
18814    old_archive_cmds_GCJ \
18815    old_archive_from_new_cmds_GCJ \
18816    predep_objects_GCJ \
18817    postdep_objects_GCJ \
18818    predeps_GCJ \
18819    postdeps_GCJ \
18820    compiler_lib_search_path_GCJ \
18821    compiler_lib_search_dirs_GCJ \
18822    archive_cmds_GCJ \
18823    archive_expsym_cmds_GCJ \
18824    postinstall_cmds_GCJ \
18825    postuninstall_cmds_GCJ \
18826    old_archive_from_expsyms_cmds_GCJ \
18827    allow_undefined_flag_GCJ \
18828    no_undefined_flag_GCJ \
18829    export_symbols_cmds_GCJ \
18830    hardcode_libdir_flag_spec_GCJ \
18831    hardcode_libdir_flag_spec_ld_GCJ \
18832    hardcode_libdir_separator_GCJ \
18833    hardcode_automatic_GCJ \
18834    module_cmds_GCJ \
18835    module_expsym_cmds_GCJ \
18836    lt_cv_prog_compiler_c_o_GCJ \
18837    fix_srcfile_path_GCJ \
18838    exclude_expsyms_GCJ \
18839    include_expsyms_GCJ; do
18840
18841    case $var in
18842    old_archive_cmds_GCJ | \
18843    old_archive_from_new_cmds_GCJ | \
18844    archive_cmds_GCJ | \
18845    archive_expsym_cmds_GCJ | \
18846    module_cmds_GCJ | \
18847    module_expsym_cmds_GCJ | \
18848    old_archive_from_expsyms_cmds_GCJ | \
18849    export_symbols_cmds_GCJ | \
18850    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18851    postinstall_cmds | postuninstall_cmds | \
18852    old_postinstall_cmds | old_postuninstall_cmds | \
18853    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18854      # Double-quote double-evaled strings.
18855      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18856      ;;
18857    *)
18858      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18859      ;;
18860    esac
18861  done
18862
18863  case $lt_echo in
18864  *'\$0 --fallback-echo"')
18865    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18866    ;;
18867  esac
18868
18869cfgfile="$ofile"
18870
18871  cat <<__EOF__ >> "$cfgfile"
18872# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18873
18874# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18875
18876# Shell to use when invoking shell scripts.
18877SHELL=$lt_SHELL
18878
18879# Whether or not to build shared libraries.
18880build_libtool_libs=$enable_shared
18881
18882# Whether or not to build static libraries.
18883build_old_libs=$enable_static
18884
18885# Whether or not to add -lc for building shared libraries.
18886build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18887
18888# Whether or not to disallow shared libs when runtime libs are static
18889allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18890
18891# Whether or not to optimize for fast installation.
18892fast_install=$enable_fast_install
18893
18894# The host system.
18895host_alias=$host_alias
18896host=$host
18897host_os=$host_os
18898
18899# The build system.
18900build_alias=$build_alias
18901build=$build
18902build_os=$build_os
18903
18904# An echo program that does not interpret backslashes.
18905echo=$lt_echo
18906
18907# The archiver.
18908AR=$lt_AR
18909AR_FLAGS=$lt_AR_FLAGS
18910
18911# A C compiler.
18912LTCC=$lt_LTCC
18913
18914# LTCC compiler flags.
18915LTCFLAGS=$lt_LTCFLAGS
18916
18917# A language-specific compiler.
18918CC=$lt_compiler_GCJ
18919
18920# Is the compiler the GNU C compiler?
18921with_gcc=$GCC_GCJ
18922
18923# An ERE matcher.
18924EGREP=$lt_EGREP
18925
18926# The linker used to build libraries.
18927LD=$lt_LD_GCJ
18928
18929# Whether we need hard or soft links.
18930LN_S=$lt_LN_S
18931
18932# A BSD-compatible nm program.
18933NM=$lt_NM
18934
18935# A symbol stripping program
18936STRIP=$lt_STRIP
18937
18938# Used to examine libraries when file_magic_cmd begins "file"
18939MAGIC_CMD=$MAGIC_CMD
18940
18941# Used on cygwin: DLL creation program.
18942DLLTOOL="$DLLTOOL"
18943
18944# Used on cygwin: object dumper.
18945OBJDUMP="$OBJDUMP"
18946
18947# Used on cygwin: assembler.
18948AS="$AS"
18949
18950# The name of the directory that contains temporary libtool files.
18951objdir=$objdir
18952
18953# How to create reloadable object files.
18954reload_flag=$lt_reload_flag
18955reload_cmds=$lt_reload_cmds
18956
18957# How to pass a linker flag through the compiler.
18958wl=$lt_lt_prog_compiler_wl_GCJ
18959
18960# Object file suffix (normally "o").
18961objext="$ac_objext"
18962
18963# Old archive suffix (normally "a").
18964libext="$libext"
18965
18966# Shared library suffix (normally ".so").
18967shrext_cmds='$shrext_cmds'
18968
18969# Executable file suffix (normally "").
18970exeext="$exeext"
18971
18972# Additional compiler flags for building library objects.
18973pic_flag=$lt_lt_prog_compiler_pic_GCJ
18974pic_mode=$pic_mode
18975
18976# What is the maximum length of a command?
18977max_cmd_len=$lt_cv_sys_max_cmd_len
18978
18979# Does compiler simultaneously support -c and -o options?
18980compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18981
18982# Must we lock files when doing compilation?
18983need_locks=$lt_need_locks
18984
18985# Do we need the lib prefix for modules?
18986need_lib_prefix=$need_lib_prefix
18987
18988# Do we need a version for libraries?
18989need_version=$need_version
18990
18991# Whether dlopen is supported.
18992dlopen_support=$enable_dlopen
18993
18994# Whether dlopen of programs is supported.
18995dlopen_self=$enable_dlopen_self
18996
18997# Whether dlopen of statically linked programs is supported.
18998dlopen_self_static=$enable_dlopen_self_static
18999
19000# Compiler flag to prevent dynamic linking.
19001link_static_flag=$lt_lt_prog_compiler_static_GCJ
19002
19003# Compiler flag to turn off builtin functions.
19004no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19005
19006# Compiler flag to allow reflexive dlopens.
19007export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19008
19009# Compiler flag to generate shared objects directly from archives.
19010whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19011
19012# Compiler flag to generate thread-safe objects.
19013thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19014
19015# Library versioning type.
19016version_type=$version_type
19017
19018# Format of library name prefix.
19019libname_spec=$lt_libname_spec
19020
19021# List of archive names.  First name is the real one, the rest are links.
19022# The last name is the one that the linker finds with -lNAME.
19023library_names_spec=$lt_library_names_spec
19024
19025# The coded name of the library, if different from the real name.
19026soname_spec=$lt_soname_spec
19027
19028# Commands used to build and install an old-style archive.
19029RANLIB=$lt_RANLIB
19030old_archive_cmds=$lt_old_archive_cmds_GCJ
19031old_postinstall_cmds=$lt_old_postinstall_cmds
19032old_postuninstall_cmds=$lt_old_postuninstall_cmds
19033
19034# Create an old-style archive from a shared archive.
19035old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19036
19037# Create a temporary old-style archive to link instead of a shared archive.
19038old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19039
19040# Commands used to build and install a shared archive.
19041archive_cmds=$lt_archive_cmds_GCJ
19042archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19043postinstall_cmds=$lt_postinstall_cmds
19044postuninstall_cmds=$lt_postuninstall_cmds
19045
19046# Commands used to build a loadable module (assumed same as above if empty)
19047module_cmds=$lt_module_cmds_GCJ
19048module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19049
19050# Commands to strip libraries.
19051old_striplib=$lt_old_striplib
19052striplib=$lt_striplib
19053
19054# Dependencies to place before the objects being linked to create a
19055# shared library.
19056predep_objects=$lt_predep_objects_GCJ
19057
19058# Dependencies to place after the objects being linked to create a
19059# shared library.
19060postdep_objects=$lt_postdep_objects_GCJ
19061
19062# Dependencies to place before the objects being linked to create a
19063# shared library.
19064predeps=$lt_predeps_GCJ
19065
19066# Dependencies to place after the objects being linked to create a
19067# shared library.
19068postdeps=$lt_postdeps_GCJ
19069
19070# The directories searched by this compiler when creating a shared
19071# library
19072compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19073
19074# The library search path used internally by the compiler when linking
19075# a shared library.
19076compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19077
19078# Method to check whether dependent libraries are shared objects.
19079deplibs_check_method=$lt_deplibs_check_method
19080
19081# Command to use when deplibs_check_method == file_magic.
19082file_magic_cmd=$lt_file_magic_cmd
19083
19084# Flag that allows shared libraries with undefined symbols to be built.
19085allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19086
19087# Flag that forces no undefined symbols.
19088no_undefined_flag=$lt_no_undefined_flag_GCJ
19089
19090# Commands used to finish a libtool library installation in a directory.
19091finish_cmds=$lt_finish_cmds
19092
19093# Same as above, but a single script fragment to be evaled but not shown.
19094finish_eval=$lt_finish_eval
19095
19096# Take the output of nm and produce a listing of raw symbols and C names.
19097global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19098
19099# Transform the output of nm in a proper C declaration
19100global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19101
19102# Transform the output of nm in a C name address pair
19103global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19104
19105# This is the shared library runtime path variable.
19106runpath_var=$runpath_var
19107
19108# This is the shared library path variable.
19109shlibpath_var=$shlibpath_var
19110
19111# Is shlibpath searched before the hard-coded library search path?
19112shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19113
19114# How to hardcode a shared library path into an executable.
19115hardcode_action=$hardcode_action_GCJ
19116
19117# Whether we should hardcode library paths into libraries.
19118hardcode_into_libs=$hardcode_into_libs
19119
19120# Flag to hardcode \$libdir into a binary during linking.
19121# This must work even if \$libdir does not exist.
19122hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19123
19124# If ld is used when linking, flag to hardcode \$libdir into
19125# a binary during linking. This must work even if \$libdir does
19126# not exist.
19127hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19128
19129# Whether we need a single -rpath flag with a separated argument.
19130hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19131
19132# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19133# resulting binary.
19134hardcode_direct=$hardcode_direct_GCJ
19135
19136# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19137# resulting binary.
19138hardcode_minus_L=$hardcode_minus_L_GCJ
19139
19140# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19141# the resulting binary.
19142hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19143
19144# Set to yes if building a shared library automatically hardcodes DIR into the library
19145# and all subsequent libraries and executables linked against it.
19146hardcode_automatic=$hardcode_automatic_GCJ
19147
19148# Variables whose values should be saved in libtool wrapper scripts and
19149# restored at relink time.
19150variables_saved_for_relink="$variables_saved_for_relink"
19151
19152# Whether libtool must link a program against all its dependency libraries.
19153link_all_deplibs=$link_all_deplibs_GCJ
19154
19155# Compile-time system search path for libraries
19156sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19157
19158# Run-time system search path for libraries
19159sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19160
19161# Fix the shell variable \$srcfile for the compiler.
19162fix_srcfile_path=$lt_fix_srcfile_path
19163
19164# Set to yes if exported symbols are required.
19165always_export_symbols=$always_export_symbols_GCJ
19166
19167# The commands to list exported symbols.
19168export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19169
19170# The commands to extract the exported symbol list from a shared archive.
19171extract_expsyms_cmds=$lt_extract_expsyms_cmds
19172
19173# Symbols that should not be listed in the preloaded symbols.
19174exclude_expsyms=$lt_exclude_expsyms_GCJ
19175
19176# Symbols that must always be exported.
19177include_expsyms=$lt_include_expsyms_GCJ
19178
19179# ### END LIBTOOL TAG CONFIG: $tagname
19180
19181__EOF__
19182
19183
19184else
19185  # If there is no Makefile yet, we rely on a make rule to execute
19186  # `config.status --recheck' to rerun these tests and create the
19187  # libtool script then.
19188  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19189  if test -f "$ltmain_in"; then
19190    test -f Makefile && make "$ltmain"
19191  fi
19192fi
19193
19194
19195ac_ext=cpp
19196ac_cpp='$CXXCPP $CPPFLAGS'
19197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19200
19201CC="$lt_save_CC"
19202
19203	else
19204	  tagname=""
19205	fi
19206	;;
19207
19208      RC)
19209
19210
19211# Source file extension for RC test sources.
19212ac_ext=rc
19213
19214# Object file extension for compiled RC test sources.
19215objext=o
19216objext_RC=$objext
19217
19218# Code to be used in simple compile tests
19219lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19220
19221# Code to be used in simple link tests
19222lt_simple_link_test_code="$lt_simple_compile_test_code"
19223
19224# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19225
19226# If no C compiler was specified, use CC.
19227LTCC=${LTCC-"$CC"}
19228
19229# If no C compiler flags were specified, use CFLAGS.
19230LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19231
19232# Allow CC to be a program name with arguments.
19233compiler=$CC
19234
19235
19236# save warnings/boilerplate of simple test code
19237ac_outfile=conftest.$ac_objext
19238echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19239eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19240_lt_compiler_boilerplate=`cat conftest.err`
19241$rm conftest*
19242
19243ac_outfile=conftest.$ac_objext
19244echo "$lt_simple_link_test_code" >conftest.$ac_ext
19245eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19246_lt_linker_boilerplate=`cat conftest.err`
19247$rm -r conftest*
19248
19249
19250# Allow CC to be a program name with arguments.
19251lt_save_CC="$CC"
19252CC=${RC-"windres"}
19253compiler=$CC
19254compiler_RC=$CC
19255for cc_temp in $compiler""; do
19256  case $cc_temp in
19257    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19258    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19259    \-*) ;;
19260    *) break;;
19261  esac
19262done
19263cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19264
19265lt_cv_prog_compiler_c_o_RC=yes
19266
19267# The else clause should only fire when bootstrapping the
19268# libtool distribution, otherwise you forgot to ship ltmain.sh
19269# with your package, and you will get complaints that there are
19270# no rules to generate ltmain.sh.
19271if test -f "$ltmain"; then
19272  # See if we are running on zsh, and set the options which allow our commands through
19273  # without removal of \ escapes.
19274  if test -n "${ZSH_VERSION+set}" ; then
19275    setopt NO_GLOB_SUBST
19276  fi
19277  # Now quote all the things that may contain metacharacters while being
19278  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19279  # variables and quote the copies for generation of the libtool script.
19280  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19281    SED SHELL STRIP \
19282    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19283    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19284    deplibs_check_method reload_flag reload_cmds need_locks \
19285    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19286    lt_cv_sys_global_symbol_to_c_name_address \
19287    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19288    old_postinstall_cmds old_postuninstall_cmds \
19289    compiler_RC \
19290    CC_RC \
19291    LD_RC \
19292    lt_prog_compiler_wl_RC \
19293    lt_prog_compiler_pic_RC \
19294    lt_prog_compiler_static_RC \
19295    lt_prog_compiler_no_builtin_flag_RC \
19296    export_dynamic_flag_spec_RC \
19297    thread_safe_flag_spec_RC \
19298    whole_archive_flag_spec_RC \
19299    enable_shared_with_static_runtimes_RC \
19300    old_archive_cmds_RC \
19301    old_archive_from_new_cmds_RC \
19302    predep_objects_RC \
19303    postdep_objects_RC \
19304    predeps_RC \
19305    postdeps_RC \
19306    compiler_lib_search_path_RC \
19307    compiler_lib_search_dirs_RC \
19308    archive_cmds_RC \
19309    archive_expsym_cmds_RC \
19310    postinstall_cmds_RC \
19311    postuninstall_cmds_RC \
19312    old_archive_from_expsyms_cmds_RC \
19313    allow_undefined_flag_RC \
19314    no_undefined_flag_RC \
19315    export_symbols_cmds_RC \
19316    hardcode_libdir_flag_spec_RC \
19317    hardcode_libdir_flag_spec_ld_RC \
19318    hardcode_libdir_separator_RC \
19319    hardcode_automatic_RC \
19320    module_cmds_RC \
19321    module_expsym_cmds_RC \
19322    lt_cv_prog_compiler_c_o_RC \
19323    fix_srcfile_path_RC \
19324    exclude_expsyms_RC \
19325    include_expsyms_RC; do
19326
19327    case $var in
19328    old_archive_cmds_RC | \
19329    old_archive_from_new_cmds_RC | \
19330    archive_cmds_RC | \
19331    archive_expsym_cmds_RC | \
19332    module_cmds_RC | \
19333    module_expsym_cmds_RC | \
19334    old_archive_from_expsyms_cmds_RC | \
19335    export_symbols_cmds_RC | \
19336    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19337    postinstall_cmds | postuninstall_cmds | \
19338    old_postinstall_cmds | old_postuninstall_cmds | \
19339    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19340      # Double-quote double-evaled strings.
19341      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19342      ;;
19343    *)
19344      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19345      ;;
19346    esac
19347  done
19348
19349  case $lt_echo in
19350  *'\$0 --fallback-echo"')
19351    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19352    ;;
19353  esac
19354
19355cfgfile="$ofile"
19356
19357  cat <<__EOF__ >> "$cfgfile"
19358# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19359
19360# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19361
19362# Shell to use when invoking shell scripts.
19363SHELL=$lt_SHELL
19364
19365# Whether or not to build shared libraries.
19366build_libtool_libs=$enable_shared
19367
19368# Whether or not to build static libraries.
19369build_old_libs=$enable_static
19370
19371# Whether or not to add -lc for building shared libraries.
19372build_libtool_need_lc=$archive_cmds_need_lc_RC
19373
19374# Whether or not to disallow shared libs when runtime libs are static
19375allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19376
19377# Whether or not to optimize for fast installation.
19378fast_install=$enable_fast_install
19379
19380# The host system.
19381host_alias=$host_alias
19382host=$host
19383host_os=$host_os
19384
19385# The build system.
19386build_alias=$build_alias
19387build=$build
19388build_os=$build_os
19389
19390# An echo program that does not interpret backslashes.
19391echo=$lt_echo
19392
19393# The archiver.
19394AR=$lt_AR
19395AR_FLAGS=$lt_AR_FLAGS
19396
19397# A C compiler.
19398LTCC=$lt_LTCC
19399
19400# LTCC compiler flags.
19401LTCFLAGS=$lt_LTCFLAGS
19402
19403# A language-specific compiler.
19404CC=$lt_compiler_RC
19405
19406# Is the compiler the GNU C compiler?
19407with_gcc=$GCC_RC
19408
19409# An ERE matcher.
19410EGREP=$lt_EGREP
19411
19412# The linker used to build libraries.
19413LD=$lt_LD_RC
19414
19415# Whether we need hard or soft links.
19416LN_S=$lt_LN_S
19417
19418# A BSD-compatible nm program.
19419NM=$lt_NM
19420
19421# A symbol stripping program
19422STRIP=$lt_STRIP
19423
19424# Used to examine libraries when file_magic_cmd begins "file"
19425MAGIC_CMD=$MAGIC_CMD
19426
19427# Used on cygwin: DLL creation program.
19428DLLTOOL="$DLLTOOL"
19429
19430# Used on cygwin: object dumper.
19431OBJDUMP="$OBJDUMP"
19432
19433# Used on cygwin: assembler.
19434AS="$AS"
19435
19436# The name of the directory that contains temporary libtool files.
19437objdir=$objdir
19438
19439# How to create reloadable object files.
19440reload_flag=$lt_reload_flag
19441reload_cmds=$lt_reload_cmds
19442
19443# How to pass a linker flag through the compiler.
19444wl=$lt_lt_prog_compiler_wl_RC
19445
19446# Object file suffix (normally "o").
19447objext="$ac_objext"
19448
19449# Old archive suffix (normally "a").
19450libext="$libext"
19451
19452# Shared library suffix (normally ".so").
19453shrext_cmds='$shrext_cmds'
19454
19455# Executable file suffix (normally "").
19456exeext="$exeext"
19457
19458# Additional compiler flags for building library objects.
19459pic_flag=$lt_lt_prog_compiler_pic_RC
19460pic_mode=$pic_mode
19461
19462# What is the maximum length of a command?
19463max_cmd_len=$lt_cv_sys_max_cmd_len
19464
19465# Does compiler simultaneously support -c and -o options?
19466compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19467
19468# Must we lock files when doing compilation?
19469need_locks=$lt_need_locks
19470
19471# Do we need the lib prefix for modules?
19472need_lib_prefix=$need_lib_prefix
19473
19474# Do we need a version for libraries?
19475need_version=$need_version
19476
19477# Whether dlopen is supported.
19478dlopen_support=$enable_dlopen
19479
19480# Whether dlopen of programs is supported.
19481dlopen_self=$enable_dlopen_self
19482
19483# Whether dlopen of statically linked programs is supported.
19484dlopen_self_static=$enable_dlopen_self_static
19485
19486# Compiler flag to prevent dynamic linking.
19487link_static_flag=$lt_lt_prog_compiler_static_RC
19488
19489# Compiler flag to turn off builtin functions.
19490no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19491
19492# Compiler flag to allow reflexive dlopens.
19493export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19494
19495# Compiler flag to generate shared objects directly from archives.
19496whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19497
19498# Compiler flag to generate thread-safe objects.
19499thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19500
19501# Library versioning type.
19502version_type=$version_type
19503
19504# Format of library name prefix.
19505libname_spec=$lt_libname_spec
19506
19507# List of archive names.  First name is the real one, the rest are links.
19508# The last name is the one that the linker finds with -lNAME.
19509library_names_spec=$lt_library_names_spec
19510
19511# The coded name of the library, if different from the real name.
19512soname_spec=$lt_soname_spec
19513
19514# Commands used to build and install an old-style archive.
19515RANLIB=$lt_RANLIB
19516old_archive_cmds=$lt_old_archive_cmds_RC
19517old_postinstall_cmds=$lt_old_postinstall_cmds
19518old_postuninstall_cmds=$lt_old_postuninstall_cmds
19519
19520# Create an old-style archive from a shared archive.
19521old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19522
19523# Create a temporary old-style archive to link instead of a shared archive.
19524old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19525
19526# Commands used to build and install a shared archive.
19527archive_cmds=$lt_archive_cmds_RC
19528archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19529postinstall_cmds=$lt_postinstall_cmds
19530postuninstall_cmds=$lt_postuninstall_cmds
19531
19532# Commands used to build a loadable module (assumed same as above if empty)
19533module_cmds=$lt_module_cmds_RC
19534module_expsym_cmds=$lt_module_expsym_cmds_RC
19535
19536# Commands to strip libraries.
19537old_striplib=$lt_old_striplib
19538striplib=$lt_striplib
19539
19540# Dependencies to place before the objects being linked to create a
19541# shared library.
19542predep_objects=$lt_predep_objects_RC
19543
19544# Dependencies to place after the objects being linked to create a
19545# shared library.
19546postdep_objects=$lt_postdep_objects_RC
19547
19548# Dependencies to place before the objects being linked to create a
19549# shared library.
19550predeps=$lt_predeps_RC
19551
19552# Dependencies to place after the objects being linked to create a
19553# shared library.
19554postdeps=$lt_postdeps_RC
19555
19556# The directories searched by this compiler when creating a shared
19557# library
19558compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19559
19560# The library search path used internally by the compiler when linking
19561# a shared library.
19562compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19563
19564# Method to check whether dependent libraries are shared objects.
19565deplibs_check_method=$lt_deplibs_check_method
19566
19567# Command to use when deplibs_check_method == file_magic.
19568file_magic_cmd=$lt_file_magic_cmd
19569
19570# Flag that allows shared libraries with undefined symbols to be built.
19571allow_undefined_flag=$lt_allow_undefined_flag_RC
19572
19573# Flag that forces no undefined symbols.
19574no_undefined_flag=$lt_no_undefined_flag_RC
19575
19576# Commands used to finish a libtool library installation in a directory.
19577finish_cmds=$lt_finish_cmds
19578
19579# Same as above, but a single script fragment to be evaled but not shown.
19580finish_eval=$lt_finish_eval
19581
19582# Take the output of nm and produce a listing of raw symbols and C names.
19583global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19584
19585# Transform the output of nm in a proper C declaration
19586global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19587
19588# Transform the output of nm in a C name address pair
19589global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19590
19591# This is the shared library runtime path variable.
19592runpath_var=$runpath_var
19593
19594# This is the shared library path variable.
19595shlibpath_var=$shlibpath_var
19596
19597# Is shlibpath searched before the hard-coded library search path?
19598shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19599
19600# How to hardcode a shared library path into an executable.
19601hardcode_action=$hardcode_action_RC
19602
19603# Whether we should hardcode library paths into libraries.
19604hardcode_into_libs=$hardcode_into_libs
19605
19606# Flag to hardcode \$libdir into a binary during linking.
19607# This must work even if \$libdir does not exist.
19608hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19609
19610# If ld is used when linking, flag to hardcode \$libdir into
19611# a binary during linking. This must work even if \$libdir does
19612# not exist.
19613hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19614
19615# Whether we need a single -rpath flag with a separated argument.
19616hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19617
19618# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19619# resulting binary.
19620hardcode_direct=$hardcode_direct_RC
19621
19622# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19623# resulting binary.
19624hardcode_minus_L=$hardcode_minus_L_RC
19625
19626# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19627# the resulting binary.
19628hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19629
19630# Set to yes if building a shared library automatically hardcodes DIR into the library
19631# and all subsequent libraries and executables linked against it.
19632hardcode_automatic=$hardcode_automatic_RC
19633
19634# Variables whose values should be saved in libtool wrapper scripts and
19635# restored at relink time.
19636variables_saved_for_relink="$variables_saved_for_relink"
19637
19638# Whether libtool must link a program against all its dependency libraries.
19639link_all_deplibs=$link_all_deplibs_RC
19640
19641# Compile-time system search path for libraries
19642sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19643
19644# Run-time system search path for libraries
19645sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19646
19647# Fix the shell variable \$srcfile for the compiler.
19648fix_srcfile_path=$lt_fix_srcfile_path
19649
19650# Set to yes if exported symbols are required.
19651always_export_symbols=$always_export_symbols_RC
19652
19653# The commands to list exported symbols.
19654export_symbols_cmds=$lt_export_symbols_cmds_RC
19655
19656# The commands to extract the exported symbol list from a shared archive.
19657extract_expsyms_cmds=$lt_extract_expsyms_cmds
19658
19659# Symbols that should not be listed in the preloaded symbols.
19660exclude_expsyms=$lt_exclude_expsyms_RC
19661
19662# Symbols that must always be exported.
19663include_expsyms=$lt_include_expsyms_RC
19664
19665# ### END LIBTOOL TAG CONFIG: $tagname
19666
19667__EOF__
19668
19669
19670else
19671  # If there is no Makefile yet, we rely on a make rule to execute
19672  # `config.status --recheck' to rerun these tests and create the
19673  # libtool script then.
19674  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19675  if test -f "$ltmain_in"; then
19676    test -f Makefile && make "$ltmain"
19677  fi
19678fi
19679
19680
19681ac_ext=cpp
19682ac_cpp='$CXXCPP $CPPFLAGS'
19683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19686
19687CC="$lt_save_CC"
19688
19689	;;
19690
19691      *)
19692	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19693echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19694   { (exit 1); exit 1; }; }
19695	;;
19696      esac
19697
19698      # Append the new tag name to the list of available tags.
19699      if test -n "$tagname" ; then
19700      available_tags="$available_tags $tagname"
19701    fi
19702    fi
19703  done
19704  IFS="$lt_save_ifs"
19705
19706  # Now substitute the updated list of available tags.
19707  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19708    mv "${ofile}T" "$ofile"
19709    chmod +x "$ofile"
19710  else
19711    rm -f "${ofile}T"
19712    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19713echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19714   { (exit 1); exit 1; }; }
19715  fi
19716fi
19717
19718
19719
19720# This can be used to rebuild libtool when needed
19721LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19722
19723# Always use our own libtool.
19724LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19725
19726# Prevent multiple expansion
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748ac_config_files="$ac_config_files Makefile src/Makefile"
19749
19750cat >confcache <<\_ACEOF
19751# This file is a shell script that caches the results of configure
19752# tests run on this system so they can be shared between configure
19753# scripts and configure runs, see configure's option --config-cache.
19754# It is not useful on other systems.  If it contains results you don't
19755# want to keep, you may remove or edit it.
19756#
19757# config.status only pays attention to the cache file if you give it
19758# the --recheck option to rerun configure.
19759#
19760# `ac_cv_env_foo' variables (set or unset) will be overridden when
19761# loading this file, other *unset* `ac_cv_foo' will be assigned the
19762# following values.
19763
19764_ACEOF
19765
19766# The following way of writing the cache mishandles newlines in values,
19767# but we know of no workaround that is simple, portable, and efficient.
19768# So, we kill variables containing newlines.
19769# Ultrix sh set writes to stderr and can't be redirected directly,
19770# and sets the high bit in the cache file unless we assign to the vars.
19771(
19772  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19773    eval ac_val=\$$ac_var
19774    case $ac_val in #(
19775    *${as_nl}*)
19776      case $ac_var in #(
19777      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19778echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19779      esac
19780      case $ac_var in #(
19781      _ | IFS | as_nl) ;; #(
19782      *) $as_unset $ac_var ;;
19783      esac ;;
19784    esac
19785  done
19786
19787  (set) 2>&1 |
19788    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19789    *${as_nl}ac_space=\ *)
19790      # `set' does not quote correctly, so add quotes (double-quote
19791      # substitution turns \\\\ into \\, and sed turns \\ into \).
19792      sed -n \
19793	"s/'/'\\\\''/g;
19794	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19795      ;; #(
19796    *)
19797      # `set' quotes correctly as required by POSIX, so do not add quotes.
19798      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19799      ;;
19800    esac |
19801    sort
19802) |
19803  sed '
19804     /^ac_cv_env_/b end
19805     t clear
19806     :clear
19807     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19808     t end
19809     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19810     :end' >>confcache
19811if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19812  if test -w "$cache_file"; then
19813    test "x$cache_file" != "x/dev/null" &&
19814      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19815echo "$as_me: updating cache $cache_file" >&6;}
19816    cat confcache >$cache_file
19817  else
19818    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19819echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19820  fi
19821fi
19822rm -f confcache
19823
19824test "x$prefix" = xNONE && prefix=$ac_default_prefix
19825# Let make expand exec_prefix.
19826test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19827
19828DEFS=-DHAVE_CONFIG_H
19829
19830ac_libobjs=
19831ac_ltlibobjs=
19832for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19833  # 1. Remove the extension, and $U if already installed.
19834  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19835  ac_i=`echo "$ac_i" | sed "$ac_script"`
19836  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19837  #    will be set to the directory where LIBOBJS objects are built.
19838  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19839  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19840done
19841LIBOBJS=$ac_libobjs
19842
19843LTLIBOBJS=$ac_ltlibobjs
19844
19845
19846if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19847  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19848Usually this means the macro was only invoked conditionally." >&5
19849echo "$as_me: error: conditional \"AMDEP\" was never defined.
19850Usually this means the macro was only invoked conditionally." >&2;}
19851   { (exit 1); exit 1; }; }
19852fi
19853if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19854  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19855Usually this means the macro was only invoked conditionally." >&5
19856echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19857Usually this means the macro was only invoked conditionally." >&2;}
19858   { (exit 1); exit 1; }; }
19859fi
19860if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19861  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19862Usually this means the macro was only invoked conditionally." >&5
19863echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19864Usually this means the macro was only invoked conditionally." >&2;}
19865   { (exit 1); exit 1; }; }
19866fi
19867
19868: ${CONFIG_STATUS=./config.status}
19869ac_clean_files_save=$ac_clean_files
19870ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19871{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19872echo "$as_me: creating $CONFIG_STATUS" >&6;}
19873cat >$CONFIG_STATUS <<_ACEOF
19874#! $SHELL
19875# Generated by $as_me.
19876# Run this file to recreate the current configuration.
19877# Compiler output produced by configure, useful for debugging
19878# configure, is in config.log if it exists.
19879
19880debug=false
19881ac_cs_recheck=false
19882ac_cs_silent=false
19883SHELL=\${CONFIG_SHELL-$SHELL}
19884_ACEOF
19885
19886cat >>$CONFIG_STATUS <<\_ACEOF
19887## --------------------- ##
19888## M4sh Initialization.  ##
19889## --------------------- ##
19890
19891# Be more Bourne compatible
19892DUALCASE=1; export DUALCASE # for MKS sh
19893if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19894  emulate sh
19895  NULLCMD=:
19896  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19897  # is contrary to our usage.  Disable this feature.
19898  alias -g '${1+"$@"}'='"$@"'
19899  setopt NO_GLOB_SUBST
19900else
19901  case `(set -o) 2>/dev/null` in
19902  *posix*) set -o posix ;;
19903esac
19904
19905fi
19906
19907
19908
19909
19910# PATH needs CR
19911# Avoid depending upon Character Ranges.
19912as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19913as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19914as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19915as_cr_digits='0123456789'
19916as_cr_alnum=$as_cr_Letters$as_cr_digits
19917
19918# The user is always right.
19919if test "${PATH_SEPARATOR+set}" != set; then
19920  echo "#! /bin/sh" >conf$$.sh
19921  echo  "exit 0"   >>conf$$.sh
19922  chmod +x conf$$.sh
19923  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19924    PATH_SEPARATOR=';'
19925  else
19926    PATH_SEPARATOR=:
19927  fi
19928  rm -f conf$$.sh
19929fi
19930
19931# Support unset when possible.
19932if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19933  as_unset=unset
19934else
19935  as_unset=false
19936fi
19937
19938
19939# IFS
19940# We need space, tab and new line, in precisely that order.  Quoting is
19941# there to prevent editors from complaining about space-tab.
19942# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19943# splitting by setting IFS to empty value.)
19944as_nl='
19945'
19946IFS=" ""	$as_nl"
19947
19948# Find who we are.  Look in the path if we contain no directory separator.
19949case $0 in
19950  *[\\/]* ) as_myself=$0 ;;
19951  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19952for as_dir in $PATH
19953do
19954  IFS=$as_save_IFS
19955  test -z "$as_dir" && as_dir=.
19956  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19957done
19958IFS=$as_save_IFS
19959
19960     ;;
19961esac
19962# We did not find ourselves, most probably we were run as `sh COMMAND'
19963# in which case we are not to be found in the path.
19964if test "x$as_myself" = x; then
19965  as_myself=$0
19966fi
19967if test ! -f "$as_myself"; then
19968  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19969  { (exit 1); exit 1; }
19970fi
19971
19972# Work around bugs in pre-3.0 UWIN ksh.
19973for as_var in ENV MAIL MAILPATH
19974do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19975done
19976PS1='$ '
19977PS2='> '
19978PS4='+ '
19979
19980# NLS nuisances.
19981for as_var in \
19982  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19983  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19984  LC_TELEPHONE LC_TIME
19985do
19986  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19987    eval $as_var=C; export $as_var
19988  else
19989    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19990  fi
19991done
19992
19993# Required to use basename.
19994if expr a : '\(a\)' >/dev/null 2>&1 &&
19995   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19996  as_expr=expr
19997else
19998  as_expr=false
19999fi
20000
20001if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20002  as_basename=basename
20003else
20004  as_basename=false
20005fi
20006
20007
20008# Name of the executable.
20009as_me=`$as_basename -- "$0" ||
20010$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20011	 X"$0" : 'X\(//\)$' \| \
20012	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20013echo X/"$0" |
20014    sed '/^.*\/\([^/][^/]*\)\/*$/{
20015	    s//\1/
20016	    q
20017	  }
20018	  /^X\/\(\/\/\)$/{
20019	    s//\1/
20020	    q
20021	  }
20022	  /^X\/\(\/\).*/{
20023	    s//\1/
20024	    q
20025	  }
20026	  s/.*/./; q'`
20027
20028# CDPATH.
20029$as_unset CDPATH
20030
20031
20032
20033  as_lineno_1=$LINENO
20034  as_lineno_2=$LINENO
20035  test "x$as_lineno_1" != "x$as_lineno_2" &&
20036  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20037
20038  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20039  # uniformly replaced by the line number.  The first 'sed' inserts a
20040  # line-number line after each line using $LINENO; the second 'sed'
20041  # does the real work.  The second script uses 'N' to pair each
20042  # line-number line with the line containing $LINENO, and appends
20043  # trailing '-' during substitution so that $LINENO is not a special
20044  # case at line end.
20045  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20046  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20047  # E. McMahon (1931-1989) for sed's syntax.  :-)
20048  sed -n '
20049    p
20050    /[$]LINENO/=
20051  ' <$as_myself |
20052    sed '
20053      s/[$]LINENO.*/&-/
20054      t lineno
20055      b
20056      :lineno
20057      N
20058      :loop
20059      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20060      t loop
20061      s/-\n.*//
20062    ' >$as_me.lineno &&
20063  chmod +x "$as_me.lineno" ||
20064    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20065   { (exit 1); exit 1; }; }
20066
20067  # Don't try to exec as it changes $[0], causing all sort of problems
20068  # (the dirname of $[0] is not the place where we might find the
20069  # original and so on.  Autoconf is especially sensitive to this).
20070  . "./$as_me.lineno"
20071  # Exit status is that of the last command.
20072  exit
20073}
20074
20075
20076if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20077  as_dirname=dirname
20078else
20079  as_dirname=false
20080fi
20081
20082ECHO_C= ECHO_N= ECHO_T=
20083case `echo -n x` in
20084-n*)
20085  case `echo 'x\c'` in
20086  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20087  *)   ECHO_C='\c';;
20088  esac;;
20089*)
20090  ECHO_N='-n';;
20091esac
20092
20093if expr a : '\(a\)' >/dev/null 2>&1 &&
20094   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20095  as_expr=expr
20096else
20097  as_expr=false
20098fi
20099
20100rm -f conf$$ conf$$.exe conf$$.file
20101if test -d conf$$.dir; then
20102  rm -f conf$$.dir/conf$$.file
20103else
20104  rm -f conf$$.dir
20105  mkdir conf$$.dir
20106fi
20107echo >conf$$.file
20108if ln -s conf$$.file conf$$ 2>/dev/null; then
20109  as_ln_s='ln -s'
20110  # ... but there are two gotchas:
20111  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20112  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20113  # In both cases, we have to default to `cp -p'.
20114  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20115    as_ln_s='cp -p'
20116elif ln conf$$.file conf$$ 2>/dev/null; then
20117  as_ln_s=ln
20118else
20119  as_ln_s='cp -p'
20120fi
20121rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20122rmdir conf$$.dir 2>/dev/null
20123
20124if mkdir -p . 2>/dev/null; then
20125  as_mkdir_p=:
20126else
20127  test -d ./-p && rmdir ./-p
20128  as_mkdir_p=false
20129fi
20130
20131if test -x / >/dev/null 2>&1; then
20132  as_test_x='test -x'
20133else
20134  if ls -dL / >/dev/null 2>&1; then
20135    as_ls_L_option=L
20136  else
20137    as_ls_L_option=
20138  fi
20139  as_test_x='
20140    eval sh -c '\''
20141      if test -d "$1"; then
20142        test -d "$1/.";
20143      else
20144	case $1 in
20145        -*)set "./$1";;
20146	esac;
20147	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20148	???[sx]*):;;*)false;;esac;fi
20149    '\'' sh
20150  '
20151fi
20152as_executable_p=$as_test_x
20153
20154# Sed expression to map a string onto a valid CPP name.
20155as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20156
20157# Sed expression to map a string onto a valid variable name.
20158as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20159
20160
20161exec 6>&1
20162
20163# Save the log message, to keep $[0] and so on meaningful, and to
20164# report actual input values of CONFIG_FILES etc. instead of their
20165# values after options handling.
20166ac_log="
20167This file was extended by $as_me, which was
20168generated by GNU Autoconf 2.61.  Invocation command line was
20169
20170  CONFIG_FILES    = $CONFIG_FILES
20171  CONFIG_HEADERS  = $CONFIG_HEADERS
20172  CONFIG_LINKS    = $CONFIG_LINKS
20173  CONFIG_COMMANDS = $CONFIG_COMMANDS
20174  $ $0 $@
20175
20176on `(hostname || uname -n) 2>/dev/null | sed 1q`
20177"
20178
20179_ACEOF
20180
20181cat >>$CONFIG_STATUS <<_ACEOF
20182# Files that config.status was made for.
20183config_files="$ac_config_files"
20184config_headers="$ac_config_headers"
20185config_commands="$ac_config_commands"
20186
20187_ACEOF
20188
20189cat >>$CONFIG_STATUS <<\_ACEOF
20190ac_cs_usage="\
20191\`$as_me' instantiates files from templates according to the
20192current configuration.
20193
20194Usage: $0 [OPTIONS] [FILE]...
20195
20196  -h, --help       print this help, then exit
20197  -V, --version    print version number and configuration settings, then exit
20198  -q, --quiet      do not print progress messages
20199  -d, --debug      don't remove temporary files
20200      --recheck    update $as_me by reconfiguring in the same conditions
20201  --file=FILE[:TEMPLATE]
20202		   instantiate the configuration file FILE
20203  --header=FILE[:TEMPLATE]
20204		   instantiate the configuration header FILE
20205
20206Configuration files:
20207$config_files
20208
20209Configuration headers:
20210$config_headers
20211
20212Configuration commands:
20213$config_commands
20214
20215Report bugs to <bug-autoconf@gnu.org>."
20216
20217_ACEOF
20218cat >>$CONFIG_STATUS <<_ACEOF
20219ac_cs_version="\\
20220config.status
20221configured by $0, generated by GNU Autoconf 2.61,
20222  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20223
20224Copyright (C) 2006 Free Software Foundation, Inc.
20225This config.status script is free software; the Free Software Foundation
20226gives unlimited permission to copy, distribute and modify it."
20227
20228ac_pwd='$ac_pwd'
20229srcdir='$srcdir'
20230INSTALL='$INSTALL'
20231MKDIR_P='$MKDIR_P'
20232_ACEOF
20233
20234cat >>$CONFIG_STATUS <<\_ACEOF
20235# If no file are specified by the user, then we need to provide default
20236# value.  By we need to know if files were specified by the user.
20237ac_need_defaults=:
20238while test $# != 0
20239do
20240  case $1 in
20241  --*=*)
20242    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20243    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20244    ac_shift=:
20245    ;;
20246  *)
20247    ac_option=$1
20248    ac_optarg=$2
20249    ac_shift=shift
20250    ;;
20251  esac
20252
20253  case $ac_option in
20254  # Handling of the options.
20255  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20256    ac_cs_recheck=: ;;
20257  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20258    echo "$ac_cs_version"; exit ;;
20259  --debug | --debu | --deb | --de | --d | -d )
20260    debug=: ;;
20261  --file | --fil | --fi | --f )
20262    $ac_shift
20263    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20264    ac_need_defaults=false;;
20265  --header | --heade | --head | --hea )
20266    $ac_shift
20267    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20268    ac_need_defaults=false;;
20269  --he | --h)
20270    # Conflict between --help and --header
20271    { echo "$as_me: error: ambiguous option: $1
20272Try \`$0 --help' for more information." >&2
20273   { (exit 1); exit 1; }; };;
20274  --help | --hel | -h )
20275    echo "$ac_cs_usage"; exit ;;
20276  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20277  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20278    ac_cs_silent=: ;;
20279
20280  # This is an error.
20281  -*) { echo "$as_me: error: unrecognized option: $1
20282Try \`$0 --help' for more information." >&2
20283   { (exit 1); exit 1; }; } ;;
20284
20285  *) ac_config_targets="$ac_config_targets $1"
20286     ac_need_defaults=false ;;
20287
20288  esac
20289  shift
20290done
20291
20292ac_configure_extra_args=
20293
20294if $ac_cs_silent; then
20295  exec 6>/dev/null
20296  ac_configure_extra_args="$ac_configure_extra_args --silent"
20297fi
20298
20299_ACEOF
20300cat >>$CONFIG_STATUS <<_ACEOF
20301if \$ac_cs_recheck; then
20302  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20303  CONFIG_SHELL=$SHELL
20304  export CONFIG_SHELL
20305  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20306fi
20307
20308_ACEOF
20309cat >>$CONFIG_STATUS <<\_ACEOF
20310exec 5>>config.log
20311{
20312  echo
20313  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20314## Running $as_me. ##
20315_ASBOX
20316  echo "$ac_log"
20317} >&5
20318
20319_ACEOF
20320cat >>$CONFIG_STATUS <<_ACEOF
20321#
20322# INIT-COMMANDS
20323#
20324AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20325
20326_ACEOF
20327
20328cat >>$CONFIG_STATUS <<\_ACEOF
20329
20330# Handling of arguments.
20331for ac_config_target in $ac_config_targets
20332do
20333  case $ac_config_target in
20334    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20335    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20336    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20337    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20338
20339  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20340echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20341   { (exit 1); exit 1; }; };;
20342  esac
20343done
20344
20345
20346# If the user did not use the arguments to specify the items to instantiate,
20347# then the envvar interface is used.  Set only those that are not.
20348# We use the long form for the default assignment because of an extremely
20349# bizarre bug on SunOS 4.1.3.
20350if $ac_need_defaults; then
20351  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20352  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20353  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20354fi
20355
20356# Have a temporary directory for convenience.  Make it in the build tree
20357# simply because there is no reason against having it here, and in addition,
20358# creating and moving files from /tmp can sometimes cause problems.
20359# Hook for its removal unless debugging.
20360# Note that there is a small window in which the directory will not be cleaned:
20361# after its creation but before its name has been assigned to `$tmp'.
20362$debug ||
20363{
20364  tmp=
20365  trap 'exit_status=$?
20366  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20367' 0
20368  trap '{ (exit 1); exit 1; }' 1 2 13 15
20369}
20370# Create a (secure) tmp directory for tmp files.
20371
20372{
20373  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20374  test -n "$tmp" && test -d "$tmp"
20375}  ||
20376{
20377  tmp=./conf$$-$RANDOM
20378  (umask 077 && mkdir "$tmp")
20379} ||
20380{
20381   echo "$me: cannot create a temporary directory in ." >&2
20382   { (exit 1); exit 1; }
20383}
20384
20385#
20386# Set up the sed scripts for CONFIG_FILES section.
20387#
20388
20389# No need to generate the scripts if there are no CONFIG_FILES.
20390# This happens for instance when ./config.status config.h
20391if test -n "$CONFIG_FILES"; then
20392
20393_ACEOF
20394
20395
20396
20397ac_delim='%!_!# '
20398for ac_last_try in false false false false false :; do
20399  cat >conf$$subs.sed <<_ACEOF
20400SHELL!$SHELL$ac_delim
20401PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20402PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20403PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20404PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20405PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20406PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20407exec_prefix!$exec_prefix$ac_delim
20408prefix!$prefix$ac_delim
20409program_transform_name!$program_transform_name$ac_delim
20410bindir!$bindir$ac_delim
20411sbindir!$sbindir$ac_delim
20412libexecdir!$libexecdir$ac_delim
20413datarootdir!$datarootdir$ac_delim
20414datadir!$datadir$ac_delim
20415sysconfdir!$sysconfdir$ac_delim
20416sharedstatedir!$sharedstatedir$ac_delim
20417localstatedir!$localstatedir$ac_delim
20418includedir!$includedir$ac_delim
20419oldincludedir!$oldincludedir$ac_delim
20420docdir!$docdir$ac_delim
20421infodir!$infodir$ac_delim
20422htmldir!$htmldir$ac_delim
20423dvidir!$dvidir$ac_delim
20424pdfdir!$pdfdir$ac_delim
20425psdir!$psdir$ac_delim
20426libdir!$libdir$ac_delim
20427localedir!$localedir$ac_delim
20428mandir!$mandir$ac_delim
20429DEFS!$DEFS$ac_delim
20430ECHO_C!$ECHO_C$ac_delim
20431ECHO_N!$ECHO_N$ac_delim
20432ECHO_T!$ECHO_T$ac_delim
20433LIBS!$LIBS$ac_delim
20434build_alias!$build_alias$ac_delim
20435host_alias!$host_alias$ac_delim
20436target_alias!$target_alias$ac_delim
20437INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20438INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20439INSTALL_DATA!$INSTALL_DATA$ac_delim
20440am__isrc!$am__isrc$ac_delim
20441CYGPATH_W!$CYGPATH_W$ac_delim
20442PACKAGE!$PACKAGE$ac_delim
20443VERSION!$VERSION$ac_delim
20444ACLOCAL!$ACLOCAL$ac_delim
20445AUTOCONF!$AUTOCONF$ac_delim
20446AUTOMAKE!$AUTOMAKE$ac_delim
20447AUTOHEADER!$AUTOHEADER$ac_delim
20448MAKEINFO!$MAKEINFO$ac_delim
20449install_sh!$install_sh$ac_delim
20450STRIP!$STRIP$ac_delim
20451INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20452mkdir_p!$mkdir_p$ac_delim
20453AWK!$AWK$ac_delim
20454SET_MAKE!$SET_MAKE$ac_delim
20455am__leading_dot!$am__leading_dot$ac_delim
20456AMTAR!$AMTAR$ac_delim
20457am__tar!$am__tar$ac_delim
20458am__untar!$am__untar$ac_delim
20459CXX!$CXX$ac_delim
20460CXXFLAGS!$CXXFLAGS$ac_delim
20461LDFLAGS!$LDFLAGS$ac_delim
20462CPPFLAGS!$CPPFLAGS$ac_delim
20463ac_ct_CXX!$ac_ct_CXX$ac_delim
20464EXEEXT!$EXEEXT$ac_delim
20465OBJEXT!$OBJEXT$ac_delim
20466DEPDIR!$DEPDIR$ac_delim
20467am__include!$am__include$ac_delim
20468am__quote!$am__quote$ac_delim
20469AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20470AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20471AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20472CXXDEPMODE!$CXXDEPMODE$ac_delim
20473am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20474am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20475build!$build$ac_delim
20476build_cpu!$build_cpu$ac_delim
20477build_vendor!$build_vendor$ac_delim
20478build_os!$build_os$ac_delim
20479host!$host$ac_delim
20480host_cpu!$host_cpu$ac_delim
20481host_vendor!$host_vendor$ac_delim
20482host_os!$host_os$ac_delim
20483CC!$CC$ac_delim
20484CFLAGS!$CFLAGS$ac_delim
20485ac_ct_CC!$ac_ct_CC$ac_delim
20486CCDEPMODE!$CCDEPMODE$ac_delim
20487am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20488am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20489SED!$SED$ac_delim
20490GREP!$GREP$ac_delim
20491EGREP!$EGREP$ac_delim
20492LN_S!$LN_S$ac_delim
20493ECHO!$ECHO$ac_delim
20494AR!$AR$ac_delim
20495RANLIB!$RANLIB$ac_delim
20496DSYMUTIL!$DSYMUTIL$ac_delim
20497_ACEOF
20498
20499  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20500    break
20501  elif $ac_last_try; then
20502    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20503echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20504   { (exit 1); exit 1; }; }
20505  else
20506    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20507  fi
20508done
20509
20510ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20511if test -n "$ac_eof"; then
20512  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20513  ac_eof=`expr $ac_eof + 1`
20514fi
20515
20516cat >>$CONFIG_STATUS <<_ACEOF
20517cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20518/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20519_ACEOF
20520sed '
20521s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20522s/^/s,@/; s/!/@,|#_!!_#|/
20523:n
20524t n
20525s/'"$ac_delim"'$/,g/; t
20526s/$/\\/; p
20527N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20528' >>$CONFIG_STATUS <conf$$subs.sed
20529rm -f conf$$subs.sed
20530cat >>$CONFIG_STATUS <<_ACEOF
20531CEOF$ac_eof
20532_ACEOF
20533
20534
20535ac_delim='%!_!# '
20536for ac_last_try in false false false false false :; do
20537  cat >conf$$subs.sed <<_ACEOF
20538NMEDIT!$NMEDIT$ac_delim
20539CPP!$CPP$ac_delim
20540CXXCPP!$CXXCPP$ac_delim
20541F77!$F77$ac_delim
20542FFLAGS!$FFLAGS$ac_delim
20543ac_ct_F77!$ac_ct_F77$ac_delim
20544LIBTOOL!$LIBTOOL$ac_delim
20545LIBOBJS!$LIBOBJS$ac_delim
20546LTLIBOBJS!$LTLIBOBJS$ac_delim
20547_ACEOF
20548
20549  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
20550    break
20551  elif $ac_last_try; then
20552    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20553echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20554   { (exit 1); exit 1; }; }
20555  else
20556    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20557  fi
20558done
20559
20560ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20561if test -n "$ac_eof"; then
20562  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20563  ac_eof=`expr $ac_eof + 1`
20564fi
20565
20566cat >>$CONFIG_STATUS <<_ACEOF
20567cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20568/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20569_ACEOF
20570sed '
20571s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20572s/^/s,@/; s/!/@,|#_!!_#|/
20573:n
20574t n
20575s/'"$ac_delim"'$/,g/; t
20576s/$/\\/; p
20577N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20578' >>$CONFIG_STATUS <conf$$subs.sed
20579rm -f conf$$subs.sed
20580cat >>$CONFIG_STATUS <<_ACEOF
20581:end
20582s/|#_!!_#|//g
20583CEOF$ac_eof
20584_ACEOF
20585
20586
20587# VPATH may cause trouble with some makes, so we remove $(srcdir),
20588# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20589# trailing colons and then remove the whole line if VPATH becomes empty
20590# (actually we leave an empty line to preserve line numbers).
20591if test "x$srcdir" = x.; then
20592  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20593s/:*\$(srcdir):*/:/
20594s/:*\${srcdir}:*/:/
20595s/:*@srcdir@:*/:/
20596s/^\([^=]*=[	 ]*\):*/\1/
20597s/:*$//
20598s/^[^=]*=[	 ]*$//
20599}'
20600fi
20601
20602cat >>$CONFIG_STATUS <<\_ACEOF
20603fi # test -n "$CONFIG_FILES"
20604
20605
20606for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20607do
20608  case $ac_tag in
20609  :[FHLC]) ac_mode=$ac_tag; continue;;
20610  esac
20611  case $ac_mode$ac_tag in
20612  :[FHL]*:*);;
20613  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20614echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20615   { (exit 1); exit 1; }; };;
20616  :[FH]-) ac_tag=-:-;;
20617  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20618  esac
20619  ac_save_IFS=$IFS
20620  IFS=:
20621  set x $ac_tag
20622  IFS=$ac_save_IFS
20623  shift
20624  ac_file=$1
20625  shift
20626
20627  case $ac_mode in
20628  :L) ac_source=$1;;
20629  :[FH])
20630    ac_file_inputs=
20631    for ac_f
20632    do
20633      case $ac_f in
20634      -) ac_f="$tmp/stdin";;
20635      *) # Look for the file first in the build tree, then in the source tree
20636	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20637	 # because $ac_f cannot contain `:'.
20638	 test -f "$ac_f" ||
20639	   case $ac_f in
20640	   [\\/$]*) false;;
20641	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20642	   esac ||
20643	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20644echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20645   { (exit 1); exit 1; }; };;
20646      esac
20647      ac_file_inputs="$ac_file_inputs $ac_f"
20648    done
20649
20650    # Let's still pretend it is `configure' which instantiates (i.e., don't
20651    # use $as_me), people would be surprised to read:
20652    #    /* config.h.  Generated by config.status.  */
20653    configure_input="Generated from "`IFS=:
20654	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20655    if test x"$ac_file" != x-; then
20656      configure_input="$ac_file.  $configure_input"
20657      { echo "$as_me:$LINENO: creating $ac_file" >&5
20658echo "$as_me: creating $ac_file" >&6;}
20659    fi
20660
20661    case $ac_tag in
20662    *:-:* | *:-) cat >"$tmp/stdin";;
20663    esac
20664    ;;
20665  esac
20666
20667  ac_dir=`$as_dirname -- "$ac_file" ||
20668$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20669	 X"$ac_file" : 'X\(//\)[^/]' \| \
20670	 X"$ac_file" : 'X\(//\)$' \| \
20671	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20672echo X"$ac_file" |
20673    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20674	    s//\1/
20675	    q
20676	  }
20677	  /^X\(\/\/\)[^/].*/{
20678	    s//\1/
20679	    q
20680	  }
20681	  /^X\(\/\/\)$/{
20682	    s//\1/
20683	    q
20684	  }
20685	  /^X\(\/\).*/{
20686	    s//\1/
20687	    q
20688	  }
20689	  s/.*/./; q'`
20690  { as_dir="$ac_dir"
20691  case $as_dir in #(
20692  -*) as_dir=./$as_dir;;
20693  esac
20694  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20695    as_dirs=
20696    while :; do
20697      case $as_dir in #(
20698      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20699      *) as_qdir=$as_dir;;
20700      esac
20701      as_dirs="'$as_qdir' $as_dirs"
20702      as_dir=`$as_dirname -- "$as_dir" ||
20703$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20704	 X"$as_dir" : 'X\(//\)[^/]' \| \
20705	 X"$as_dir" : 'X\(//\)$' \| \
20706	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20707echo X"$as_dir" |
20708    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20709	    s//\1/
20710	    q
20711	  }
20712	  /^X\(\/\/\)[^/].*/{
20713	    s//\1/
20714	    q
20715	  }
20716	  /^X\(\/\/\)$/{
20717	    s//\1/
20718	    q
20719	  }
20720	  /^X\(\/\).*/{
20721	    s//\1/
20722	    q
20723	  }
20724	  s/.*/./; q'`
20725      test -d "$as_dir" && break
20726    done
20727    test -z "$as_dirs" || eval "mkdir $as_dirs"
20728  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20729echo "$as_me: error: cannot create directory $as_dir" >&2;}
20730   { (exit 1); exit 1; }; }; }
20731  ac_builddir=.
20732
20733case "$ac_dir" in
20734.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20735*)
20736  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20737  # A ".." for each directory in $ac_dir_suffix.
20738  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20739  case $ac_top_builddir_sub in
20740  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20741  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20742  esac ;;
20743esac
20744ac_abs_top_builddir=$ac_pwd
20745ac_abs_builddir=$ac_pwd$ac_dir_suffix
20746# for backward compatibility:
20747ac_top_builddir=$ac_top_build_prefix
20748
20749case $srcdir in
20750  .)  # We are building in place.
20751    ac_srcdir=.
20752    ac_top_srcdir=$ac_top_builddir_sub
20753    ac_abs_top_srcdir=$ac_pwd ;;
20754  [\\/]* | ?:[\\/]* )  # Absolute name.
20755    ac_srcdir=$srcdir$ac_dir_suffix;
20756    ac_top_srcdir=$srcdir
20757    ac_abs_top_srcdir=$srcdir ;;
20758  *) # Relative name.
20759    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20760    ac_top_srcdir=$ac_top_build_prefix$srcdir
20761    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20762esac
20763ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20764
20765
20766  case $ac_mode in
20767  :F)
20768  #
20769  # CONFIG_FILE
20770  #
20771
20772  case $INSTALL in
20773  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20774  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20775  esac
20776  ac_MKDIR_P=$MKDIR_P
20777  case $MKDIR_P in
20778  [\\/$]* | ?:[\\/]* ) ;;
20779  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20780  esac
20781_ACEOF
20782
20783cat >>$CONFIG_STATUS <<\_ACEOF
20784# If the template does not know about datarootdir, expand it.
20785# FIXME: This hack should be removed a few years after 2.60.
20786ac_datarootdir_hack=; ac_datarootdir_seen=
20787
20788case `sed -n '/datarootdir/ {
20789  p
20790  q
20791}
20792/@datadir@/p
20793/@docdir@/p
20794/@infodir@/p
20795/@localedir@/p
20796/@mandir@/p
20797' $ac_file_inputs` in
20798*datarootdir*) ac_datarootdir_seen=yes;;
20799*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20800  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20801echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20802_ACEOF
20803cat >>$CONFIG_STATUS <<_ACEOF
20804  ac_datarootdir_hack='
20805  s&@datadir@&$datadir&g
20806  s&@docdir@&$docdir&g
20807  s&@infodir@&$infodir&g
20808  s&@localedir@&$localedir&g
20809  s&@mandir@&$mandir&g
20810    s&\\\${datarootdir}&$datarootdir&g' ;;
20811esac
20812_ACEOF
20813
20814# Neutralize VPATH when `$srcdir' = `.'.
20815# Shell code in configure.ac might set extrasub.
20816# FIXME: do we really want to maintain this feature?
20817cat >>$CONFIG_STATUS <<_ACEOF
20818  sed "$ac_vpsub
20819$extrasub
20820_ACEOF
20821cat >>$CONFIG_STATUS <<\_ACEOF
20822:t
20823/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20824s&@configure_input@&$configure_input&;t t
20825s&@top_builddir@&$ac_top_builddir_sub&;t t
20826s&@srcdir@&$ac_srcdir&;t t
20827s&@abs_srcdir@&$ac_abs_srcdir&;t t
20828s&@top_srcdir@&$ac_top_srcdir&;t t
20829s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20830s&@builddir@&$ac_builddir&;t t
20831s&@abs_builddir@&$ac_abs_builddir&;t t
20832s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20833s&@INSTALL@&$ac_INSTALL&;t t
20834s&@MKDIR_P@&$ac_MKDIR_P&;t t
20835$ac_datarootdir_hack
20836" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20837
20838test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20839  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20840  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20841  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20842which seems to be undefined.  Please make sure it is defined." >&5
20843echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20844which seems to be undefined.  Please make sure it is defined." >&2;}
20845
20846  rm -f "$tmp/stdin"
20847  case $ac_file in
20848  -) cat "$tmp/out"; rm -f "$tmp/out";;
20849  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20850  esac
20851 ;;
20852  :H)
20853  #
20854  # CONFIG_HEADER
20855  #
20856_ACEOF
20857
20858# Transform confdefs.h into a sed script `conftest.defines', that
20859# substitutes the proper values into config.h.in to produce config.h.
20860rm -f conftest.defines conftest.tail
20861# First, append a space to every undef/define line, to ease matching.
20862echo 's/$/ /' >conftest.defines
20863# Then, protect against being on the right side of a sed subst, or in
20864# an unquoted here document, in config.status.  If some macros were
20865# called several times there might be several #defines for the same
20866# symbol, which is useless.  But do not sort them, since the last
20867# AC_DEFINE must be honored.
20868ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20869# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20870# NAME is the cpp macro being defined, VALUE is the value it is being given.
20871# PARAMS is the parameter list in the macro definition--in most cases, it's
20872# just an empty string.
20873ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
20874ac_dB='\\)[	 (].*,\\1define\\2'
20875ac_dC=' '
20876ac_dD=' ,'
20877
20878uniq confdefs.h |
20879  sed -n '
20880	t rset
20881	:rset
20882	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
20883	t ok
20884	d
20885	:ok
20886	s/[\\&,]/\\&/g
20887	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20888	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20889  ' >>conftest.defines
20890
20891# Remove the space that was appended to ease matching.
20892# Then replace #undef with comments.  This is necessary, for
20893# example, in the case of _POSIX_SOURCE, which is predefined and required
20894# on some systems where configure will not decide to define it.
20895# (The regexp can be short, since the line contains either #define or #undef.)
20896echo 's/ $//
20897s,^[	 #]*u.*,/* & */,' >>conftest.defines
20898
20899# Break up conftest.defines:
20900ac_max_sed_lines=50
20901
20902# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20903# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20904# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20905# et cetera.
20906ac_in='$ac_file_inputs'
20907ac_out='"$tmp/out1"'
20908ac_nxt='"$tmp/out2"'
20909
20910while :
20911do
20912  # Write a here document:
20913    cat >>$CONFIG_STATUS <<_ACEOF
20914    # First, check the format of the line:
20915    cat >"\$tmp/defines.sed" <<\\CEOF
20916/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
20917/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
20918b
20919:def
20920_ACEOF
20921  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20922  echo 'CEOF
20923    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20924  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20925  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20926  grep . conftest.tail >/dev/null || break
20927  rm -f conftest.defines
20928  mv conftest.tail conftest.defines
20929done
20930rm -f conftest.defines conftest.tail
20931
20932echo "ac_result=$ac_in" >>$CONFIG_STATUS
20933cat >>$CONFIG_STATUS <<\_ACEOF
20934  if test x"$ac_file" != x-; then
20935    echo "/* $configure_input  */" >"$tmp/config.h"
20936    cat "$ac_result" >>"$tmp/config.h"
20937    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20938      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20939echo "$as_me: $ac_file is unchanged" >&6;}
20940    else
20941      rm -f $ac_file
20942      mv "$tmp/config.h" $ac_file
20943    fi
20944  else
20945    echo "/* $configure_input  */"
20946    cat "$ac_result"
20947  fi
20948  rm -f "$tmp/out12"
20949# Compute $ac_file's index in $config_headers.
20950_am_arg=$ac_file
20951_am_stamp_count=1
20952for _am_header in $config_headers :; do
20953  case $_am_header in
20954    $_am_arg | $_am_arg:* )
20955      break ;;
20956    * )
20957      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20958  esac
20959done
20960echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20961$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20962	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20963	 X"$_am_arg" : 'X\(//\)$' \| \
20964	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20965echo X"$_am_arg" |
20966    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20967	    s//\1/
20968	    q
20969	  }
20970	  /^X\(\/\/\)[^/].*/{
20971	    s//\1/
20972	    q
20973	  }
20974	  /^X\(\/\/\)$/{
20975	    s//\1/
20976	    q
20977	  }
20978	  /^X\(\/\).*/{
20979	    s//\1/
20980	    q
20981	  }
20982	  s/.*/./; q'`/stamp-h$_am_stamp_count
20983 ;;
20984
20985  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20986echo "$as_me: executing $ac_file commands" >&6;}
20987 ;;
20988  esac
20989
20990
20991  case $ac_file$ac_mode in
20992    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20993  # Strip MF so we end up with the name of the file.
20994  mf=`echo "$mf" | sed -e 's/:.*$//'`
20995  # Check whether this is an Automake generated Makefile or not.
20996  # We used to match only the files named `Makefile.in', but
20997  # some people rename them; so instead we look at the file content.
20998  # Grep'ing the first line is not enough: some people post-process
20999  # each Makefile.in and add a new line on top of each file to say so.
21000  # Grep'ing the whole file is not good either: AIX grep has a line
21001  # limit of 2048, but all sed's we know have understand at least 4000.
21002  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21003    dirpart=`$as_dirname -- "$mf" ||
21004$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21005	 X"$mf" : 'X\(//\)[^/]' \| \
21006	 X"$mf" : 'X\(//\)$' \| \
21007	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21008echo X"$mf" |
21009    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21010	    s//\1/
21011	    q
21012	  }
21013	  /^X\(\/\/\)[^/].*/{
21014	    s//\1/
21015	    q
21016	  }
21017	  /^X\(\/\/\)$/{
21018	    s//\1/
21019	    q
21020	  }
21021	  /^X\(\/\).*/{
21022	    s//\1/
21023	    q
21024	  }
21025	  s/.*/./; q'`
21026  else
21027    continue
21028  fi
21029  # Extract the definition of DEPDIR, am__include, and am__quote
21030  # from the Makefile without running `make'.
21031  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21032  test -z "$DEPDIR" && continue
21033  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21034  test -z "am__include" && continue
21035  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21036  # When using ansi2knr, U may be empty or an underscore; expand it
21037  U=`sed -n 's/^U = //p' < "$mf"`
21038  # Find all dependency output files, they are included files with
21039  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21040  # simplest approach to changing $(DEPDIR) to its actual value in the
21041  # expansion.
21042  for file in `sed -n "
21043    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21044       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21045    # Make sure the directory exists.
21046    test -f "$dirpart/$file" && continue
21047    fdir=`$as_dirname -- "$file" ||
21048$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21049	 X"$file" : 'X\(//\)[^/]' \| \
21050	 X"$file" : 'X\(//\)$' \| \
21051	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21052echo X"$file" |
21053    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21054	    s//\1/
21055	    q
21056	  }
21057	  /^X\(\/\/\)[^/].*/{
21058	    s//\1/
21059	    q
21060	  }
21061	  /^X\(\/\/\)$/{
21062	    s//\1/
21063	    q
21064	  }
21065	  /^X\(\/\).*/{
21066	    s//\1/
21067	    q
21068	  }
21069	  s/.*/./; q'`
21070    { as_dir=$dirpart/$fdir
21071  case $as_dir in #(
21072  -*) as_dir=./$as_dir;;
21073  esac
21074  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21075    as_dirs=
21076    while :; do
21077      case $as_dir in #(
21078      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21079      *) as_qdir=$as_dir;;
21080      esac
21081      as_dirs="'$as_qdir' $as_dirs"
21082      as_dir=`$as_dirname -- "$as_dir" ||
21083$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21084	 X"$as_dir" : 'X\(//\)[^/]' \| \
21085	 X"$as_dir" : 'X\(//\)$' \| \
21086	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21087echo X"$as_dir" |
21088    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21089	    s//\1/
21090	    q
21091	  }
21092	  /^X\(\/\/\)[^/].*/{
21093	    s//\1/
21094	    q
21095	  }
21096	  /^X\(\/\/\)$/{
21097	    s//\1/
21098	    q
21099	  }
21100	  /^X\(\/\).*/{
21101	    s//\1/
21102	    q
21103	  }
21104	  s/.*/./; q'`
21105      test -d "$as_dir" && break
21106    done
21107    test -z "$as_dirs" || eval "mkdir $as_dirs"
21108  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21109echo "$as_me: error: cannot create directory $as_dir" >&2;}
21110   { (exit 1); exit 1; }; }; }
21111    # echo "creating $dirpart/$file"
21112    echo '# dummy' > "$dirpart/$file"
21113  done
21114done
21115 ;;
21116
21117  esac
21118done # for ac_tag
21119
21120
21121{ (exit 0); exit 0; }
21122_ACEOF
21123chmod +x $CONFIG_STATUS
21124ac_clean_files=$ac_clean_files_save
21125
21126
21127# configure is writing to config.log, and then calls config.status.
21128# config.status does its own redirection, appending to config.log.
21129# Unfortunately, on DOS this fails, as config.log is still kept open
21130# by configure, so config.status won't be able to write to it; its
21131# output is simply discarded.  So we exec the FD to /dev/null,
21132# effectively closing config.log, so it can be properly (re)opened and
21133# appended to by config.status.  When coming back to configure, we
21134# need to make the FD available again.
21135if test "$no_create" != yes; then
21136  ac_cs_success=:
21137  ac_config_status_args=
21138  test "$silent" = yes &&
21139    ac_config_status_args="$ac_config_status_args --quiet"
21140  exec 5>/dev/null
21141  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21142  exec 5>>config.log
21143  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21144  # would make configure fail if this is the last instruction.
21145  $ac_cs_success || { (exit 1); exit 1; }
21146fi
21147
21148