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="popt.h"
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
807build
808build_cpu
809build_vendor
810build_os
811host
812host_cpu
813host_vendor
814host_os
815target
816target_cpu
817target_vendor
818target_os
819INSTALL_PROGRAM
820INSTALL_SCRIPT
821INSTALL_DATA
822CYGPATH_W
823PACKAGE
824VERSION
825ACLOCAL
826AUTOCONF
827AUTOMAKE
828AUTOHEADER
829MAKEINFO
830install_sh
831STRIP
832INSTALL_STRIP_PROGRAM
833mkdir_p
834AWK
835SET_MAKE
836am__leading_dot
837AMTAR
838am__tar
839am__untar
840CC
841CFLAGS
842LDFLAGS
843CPPFLAGS
844ac_ct_CC
845EXEEXT
846OBJEXT
847DEPDIR
848am__include
849am__quote
850AMDEP_TRUE
851AMDEP_FALSE
852AMDEPBACKSLASH
853CCDEPMODE
854am__fastdepCC_TRUE
855am__fastdepCC_FALSE
856CPP
857GREP
858EGREP
859U
860ANSI2KNR
861LN_S
862ECHO
863AR
864RANLIB
865CXX
866CXXFLAGS
867ac_ct_CXX
868CXXDEPMODE
869am__fastdepCXX_TRUE
870am__fastdepCXX_FALSE
871CXXCPP
872F77
873FFLAGS
874ac_ct_F77
875LIBTOOL
876CONV_ONLY_LIBPOPT_TRUE
877CONV_ONLY_LIBPOPT_FALSE
878POPT_SOURCE_PATH
879LIBOBJS
880LTLIBOBJS'
881ac_subst_files=''
882      ac_precious_vars='build_alias
883host_alias
884target_alias
885CC
886CFLAGS
887LDFLAGS
888LIBS
889CPPFLAGS
890CPP
891CXX
892CXXFLAGS
893CCC
894CXXCPP
895F77
896FFLAGS'
897
898
899# Initialize some variables set by options.
900ac_init_help=
901ac_init_version=false
902# The variables have the same names as the options, with
903# dashes changed to underlines.
904cache_file=/dev/null
905exec_prefix=NONE
906no_create=
907no_recursion=
908prefix=NONE
909program_prefix=NONE
910program_suffix=NONE
911program_transform_name=s,x,x,
912silent=
913site=
914srcdir=
915verbose=
916x_includes=NONE
917x_libraries=NONE
918
919# Installation directory options.
920# These are left unexpanded so users can "make install exec_prefix=/foo"
921# and all the variables that are supposed to be based on exec_prefix
922# by default will actually change.
923# Use braces instead of parens because sh, perl, etc. also accept them.
924# (The list follows the same order as the GNU Coding Standards.)
925bindir='${exec_prefix}/bin'
926sbindir='${exec_prefix}/sbin'
927libexecdir='${exec_prefix}/libexec'
928datarootdir='${prefix}/share'
929datadir='${datarootdir}'
930sysconfdir='${prefix}/etc'
931sharedstatedir='${prefix}/com'
932localstatedir='${prefix}/var'
933includedir='${prefix}/include'
934oldincludedir='/usr/include'
935docdir='${datarootdir}/doc/${PACKAGE}'
936infodir='${datarootdir}/info'
937htmldir='${docdir}'
938dvidir='${docdir}'
939pdfdir='${docdir}'
940psdir='${docdir}'
941libdir='${exec_prefix}/lib'
942localedir='${datarootdir}/locale'
943mandir='${datarootdir}/man'
944
945ac_prev=
946ac_dashdash=
947for ac_option
948do
949  # If the previous option needs an argument, assign it.
950  if test -n "$ac_prev"; then
951    eval $ac_prev=\$ac_option
952    ac_prev=
953    continue
954  fi
955
956  case $ac_option in
957  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958  *)	ac_optarg=yes ;;
959  esac
960
961  # Accept the important Cygnus configure options, so we can diagnose typos.
962
963  case $ac_dashdash$ac_option in
964  --)
965    ac_dashdash=yes ;;
966
967  -bindir | --bindir | --bindi | --bind | --bin | --bi)
968    ac_prev=bindir ;;
969  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970    bindir=$ac_optarg ;;
971
972  -build | --build | --buil | --bui | --bu)
973    ac_prev=build_alias ;;
974  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975    build_alias=$ac_optarg ;;
976
977  -cache-file | --cache-file | --cache-fil | --cache-fi \
978  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979    ac_prev=cache_file ;;
980  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982    cache_file=$ac_optarg ;;
983
984  --config-cache | -C)
985    cache_file=config.cache ;;
986
987  -datadir | --datadir | --datadi | --datad)
988    ac_prev=datadir ;;
989  -datadir=* | --datadir=* | --datadi=* | --datad=*)
990    datadir=$ac_optarg ;;
991
992  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993  | --dataroo | --dataro | --datar)
994    ac_prev=datarootdir ;;
995  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997    datarootdir=$ac_optarg ;;
998
999  -disable-* | --disable-*)
1000    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001    # Reject names that are not valid shell variable names.
1002    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1003      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004   { (exit 1); exit 1; }; }
1005    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1006    eval enable_$ac_feature=no ;;
1007
1008  -docdir | --docdir | --docdi | --doc | --do)
1009    ac_prev=docdir ;;
1010  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011    docdir=$ac_optarg ;;
1012
1013  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014    ac_prev=dvidir ;;
1015  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016    dvidir=$ac_optarg ;;
1017
1018  -enable-* | --enable-*)
1019    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020    # Reject names that are not valid shell variable names.
1021    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023   { (exit 1); exit 1; }; }
1024    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025    eval enable_$ac_feature=\$ac_optarg ;;
1026
1027  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029  | --exec | --exe | --ex)
1030    ac_prev=exec_prefix ;;
1031  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033  | --exec=* | --exe=* | --ex=*)
1034    exec_prefix=$ac_optarg ;;
1035
1036  -gas | --gas | --ga | --g)
1037    # Obsolete; use --with-gas.
1038    with_gas=yes ;;
1039
1040  -help | --help | --hel | --he | -h)
1041    ac_init_help=long ;;
1042  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043    ac_init_help=recursive ;;
1044  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045    ac_init_help=short ;;
1046
1047  -host | --host | --hos | --ho)
1048    ac_prev=host_alias ;;
1049  -host=* | --host=* | --hos=* | --ho=*)
1050    host_alias=$ac_optarg ;;
1051
1052  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053    ac_prev=htmldir ;;
1054  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055  | --ht=*)
1056    htmldir=$ac_optarg ;;
1057
1058  -includedir | --includedir | --includedi | --included | --include \
1059  | --includ | --inclu | --incl | --inc)
1060    ac_prev=includedir ;;
1061  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062  | --includ=* | --inclu=* | --incl=* | --inc=*)
1063    includedir=$ac_optarg ;;
1064
1065  -infodir | --infodir | --infodi | --infod | --info | --inf)
1066    ac_prev=infodir ;;
1067  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068    infodir=$ac_optarg ;;
1069
1070  -libdir | --libdir | --libdi | --libd)
1071    ac_prev=libdir ;;
1072  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073    libdir=$ac_optarg ;;
1074
1075  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076  | --libexe | --libex | --libe)
1077    ac_prev=libexecdir ;;
1078  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079  | --libexe=* | --libex=* | --libe=*)
1080    libexecdir=$ac_optarg ;;
1081
1082  -localedir | --localedir | --localedi | --localed | --locale)
1083    ac_prev=localedir ;;
1084  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085    localedir=$ac_optarg ;;
1086
1087  -localstatedir | --localstatedir | --localstatedi | --localstated \
1088  | --localstate | --localstat | --localsta | --localst | --locals)
1089    ac_prev=localstatedir ;;
1090  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092    localstatedir=$ac_optarg ;;
1093
1094  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095    ac_prev=mandir ;;
1096  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097    mandir=$ac_optarg ;;
1098
1099  -nfp | --nfp | --nf)
1100    # Obsolete; use --without-fp.
1101    with_fp=no ;;
1102
1103  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104  | --no-cr | --no-c | -n)
1105    no_create=yes ;;
1106
1107  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109    no_recursion=yes ;;
1110
1111  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113  | --oldin | --oldi | --old | --ol | --o)
1114    ac_prev=oldincludedir ;;
1115  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118    oldincludedir=$ac_optarg ;;
1119
1120  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121    ac_prev=prefix ;;
1122  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123    prefix=$ac_optarg ;;
1124
1125  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126  | --program-pre | --program-pr | --program-p)
1127    ac_prev=program_prefix ;;
1128  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130    program_prefix=$ac_optarg ;;
1131
1132  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133  | --program-suf | --program-su | --program-s)
1134    ac_prev=program_suffix ;;
1135  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137    program_suffix=$ac_optarg ;;
1138
1139  -program-transform-name | --program-transform-name \
1140  | --program-transform-nam | --program-transform-na \
1141  | --program-transform-n | --program-transform- \
1142  | --program-transform | --program-transfor \
1143  | --program-transfo | --program-transf \
1144  | --program-trans | --program-tran \
1145  | --progr-tra | --program-tr | --program-t)
1146    ac_prev=program_transform_name ;;
1147  -program-transform-name=* | --program-transform-name=* \
1148  | --program-transform-nam=* | --program-transform-na=* \
1149  | --program-transform-n=* | --program-transform-=* \
1150  | --program-transform=* | --program-transfor=* \
1151  | --program-transfo=* | --program-transf=* \
1152  | --program-trans=* | --program-tran=* \
1153  | --progr-tra=* | --program-tr=* | --program-t=*)
1154    program_transform_name=$ac_optarg ;;
1155
1156  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157    ac_prev=pdfdir ;;
1158  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159    pdfdir=$ac_optarg ;;
1160
1161  -psdir | --psdir | --psdi | --psd | --ps)
1162    ac_prev=psdir ;;
1163  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164    psdir=$ac_optarg ;;
1165
1166  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167  | -silent | --silent | --silen | --sile | --sil)
1168    silent=yes ;;
1169
1170  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171    ac_prev=sbindir ;;
1172  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173  | --sbi=* | --sb=*)
1174    sbindir=$ac_optarg ;;
1175
1176  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178  | --sharedst | --shareds | --shared | --share | --shar \
1179  | --sha | --sh)
1180    ac_prev=sharedstatedir ;;
1181  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184  | --sha=* | --sh=*)
1185    sharedstatedir=$ac_optarg ;;
1186
1187  -site | --site | --sit)
1188    ac_prev=site ;;
1189  -site=* | --site=* | --sit=*)
1190    site=$ac_optarg ;;
1191
1192  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193    ac_prev=srcdir ;;
1194  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195    srcdir=$ac_optarg ;;
1196
1197  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198  | --syscon | --sysco | --sysc | --sys | --sy)
1199    ac_prev=sysconfdir ;;
1200  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202    sysconfdir=$ac_optarg ;;
1203
1204  -target | --target | --targe | --targ | --tar | --ta | --t)
1205    ac_prev=target_alias ;;
1206  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207    target_alias=$ac_optarg ;;
1208
1209  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210    verbose=yes ;;
1211
1212  -version | --version | --versio | --versi | --vers | -V)
1213    ac_init_version=: ;;
1214
1215  -with-* | --with-*)
1216    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217    # Reject names that are not valid shell variable names.
1218    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219      { echo "$as_me: error: invalid package name: $ac_package" >&2
1220   { (exit 1); exit 1; }; }
1221    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1222    eval with_$ac_package=\$ac_optarg ;;
1223
1224  -without-* | --without-*)
1225    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226    # Reject names that are not valid shell variable names.
1227    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228      { echo "$as_me: error: invalid package name: $ac_package" >&2
1229   { (exit 1); exit 1; }; }
1230    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231    eval with_$ac_package=no ;;
1232
1233  --x)
1234    # Obsolete; use --with-x.
1235    with_x=yes ;;
1236
1237  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238  | --x-incl | --x-inc | --x-in | --x-i)
1239    ac_prev=x_includes ;;
1240  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242    x_includes=$ac_optarg ;;
1243
1244  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246    ac_prev=x_libraries ;;
1247  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249    x_libraries=$ac_optarg ;;
1250
1251  -*) { echo "$as_me: error: unrecognized option: $ac_option
1252Try \`$0 --help' for more information." >&2
1253   { (exit 1); exit 1; }; }
1254    ;;
1255
1256  *=*)
1257    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258    # Reject names that are not valid shell variable names.
1259    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261   { (exit 1); exit 1; }; }
1262    eval $ac_envvar=\$ac_optarg
1263    export $ac_envvar ;;
1264
1265  *)
1266    # FIXME: should be removed in autoconf 3.0.
1267    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1271    ;;
1272
1273  esac
1274done
1275
1276if test -n "$ac_prev"; then
1277  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278  { echo "$as_me: error: missing argument to $ac_option" >&2
1279   { (exit 1); exit 1; }; }
1280fi
1281
1282# Be sure to have absolute directory names.
1283for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284		datadir sysconfdir sharedstatedir localstatedir includedir \
1285		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286		libdir localedir mandir
1287do
1288  eval ac_val=\$$ac_var
1289  case $ac_val in
1290    [\\/$]* | ?:[\\/]* )  continue;;
1291    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292  esac
1293  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1294   { (exit 1); exit 1; }; }
1295done
1296
1297# There might be people who depend on the old broken behavior: `$host'
1298# used to hold the argument of --host etc.
1299# FIXME: To remove some day.
1300build=$build_alias
1301host=$host_alias
1302target=$target_alias
1303
1304# FIXME: To remove some day.
1305if test "x$host_alias" != x; then
1306  if test "x$build_alias" = x; then
1307    cross_compiling=maybe
1308    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309    If a cross compiler is detected then cross compile mode will be used." >&2
1310  elif test "x$build_alias" != "x$host_alias"; then
1311    cross_compiling=yes
1312  fi
1313fi
1314
1315ac_tool_prefix=
1316test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317
1318test "$silent" = yes && exec 6>/dev/null
1319
1320
1321ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322ac_ls_di=`ls -di .` &&
1323ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324  { echo "$as_me: error: Working directory cannot be determined" >&2
1325   { (exit 1); exit 1; }; }
1326test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327  { echo "$as_me: error: pwd does not report name of working directory" >&2
1328   { (exit 1); exit 1; }; }
1329
1330
1331# Find the source files, if location was not specified.
1332if test -z "$srcdir"; then
1333  ac_srcdir_defaulted=yes
1334  # Try the directory containing this script, then the parent directory.
1335  ac_confdir=`$as_dirname -- "$0" ||
1336$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337	 X"$0" : 'X\(//\)[^/]' \| \
1338	 X"$0" : 'X\(//\)$' \| \
1339	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1340echo X"$0" |
1341    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342	    s//\1/
1343	    q
1344	  }
1345	  /^X\(\/\/\)[^/].*/{
1346	    s//\1/
1347	    q
1348	  }
1349	  /^X\(\/\/\)$/{
1350	    s//\1/
1351	    q
1352	  }
1353	  /^X\(\/\).*/{
1354	    s//\1/
1355	    q
1356	  }
1357	  s/.*/./; q'`
1358  srcdir=$ac_confdir
1359  if test ! -r "$srcdir/$ac_unique_file"; then
1360    srcdir=..
1361  fi
1362else
1363  ac_srcdir_defaulted=no
1364fi
1365if test ! -r "$srcdir/$ac_unique_file"; then
1366  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1368   { (exit 1); exit 1; }; }
1369fi
1370ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371ac_abs_confdir=`(
1372	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1373   { (exit 1); exit 1; }; }
1374	pwd)`
1375# When building in place, set srcdir=.
1376if test "$ac_abs_confdir" = "$ac_pwd"; then
1377  srcdir=.
1378fi
1379# Remove unnecessary trailing slashes from srcdir.
1380# Double slashes in file names in object file debugging info
1381# mess up M-x gdb in Emacs.
1382case $srcdir in
1383*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384esac
1385for ac_var in $ac_precious_vars; do
1386  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387  eval ac_env_${ac_var}_value=\$${ac_var}
1388  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390done
1391
1392#
1393# Report the --help message.
1394#
1395if test "$ac_init_help" = "long"; then
1396  # Omit some internal or obsolete options to make the list less imposing.
1397  # This message is too long to be a string in the A/UX 3.1 sh.
1398  cat <<_ACEOF
1399\`configure' configures this package to adapt to many kinds of systems.
1400
1401Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404VAR=VALUE.  See below for descriptions of some of the useful variables.
1405
1406Defaults for the options are specified in brackets.
1407
1408Configuration:
1409  -h, --help              display this help and exit
1410      --help=short        display options specific to this package
1411      --help=recursive    display the short help of all the included packages
1412  -V, --version           display version information and exit
1413  -q, --quiet, --silent   do not print \`checking...' messages
1414      --cache-file=FILE   cache test results in FILE [disabled]
1415  -C, --config-cache      alias for \`--cache-file=config.cache'
1416  -n, --no-create         do not create output files
1417      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1418
1419Installation directories:
1420  --prefix=PREFIX         install architecture-independent files in PREFIX
1421			  [$ac_default_prefix]
1422  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1423			  [PREFIX]
1424
1425By default, \`make install' will install all the files in
1426\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1427an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428for instance \`--prefix=\$HOME'.
1429
1430For better control, use the options below.
1431
1432Fine tuning of the installation directories:
1433  --bindir=DIR           user executables [EPREFIX/bin]
1434  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1435  --libexecdir=DIR       program executables [EPREFIX/libexec]
1436  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1437  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1438  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1439  --libdir=DIR           object code libraries [EPREFIX/lib]
1440  --includedir=DIR       C header files [PREFIX/include]
1441  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1442  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1443  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1444  --infodir=DIR          info documentation [DATAROOTDIR/info]
1445  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1446  --mandir=DIR           man documentation [DATAROOTDIR/man]
1447  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1448  --htmldir=DIR          html documentation [DOCDIR]
1449  --dvidir=DIR           dvi documentation [DOCDIR]
1450  --pdfdir=DIR           pdf documentation [DOCDIR]
1451  --psdir=DIR            ps documentation [DOCDIR]
1452_ACEOF
1453
1454  cat <<\_ACEOF
1455
1456Program names:
1457  --program-prefix=PREFIX            prepend PREFIX to installed program names
1458  --program-suffix=SUFFIX            append SUFFIX to installed program names
1459  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1460
1461System types:
1462  --build=BUILD     configure for building on BUILD [guessed]
1463  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1464  --target=TARGET   configure for building compilers for TARGET [HOST]
1465_ACEOF
1466fi
1467
1468if test -n "$ac_init_help"; then
1469
1470  cat <<\_ACEOF
1471
1472Optional Features:
1473  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1474  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1475  --disable-dependency-tracking  speeds up one-time build
1476  --enable-dependency-tracking   do not reject slow dependency extractors
1477  --enable-shared[=PKGS]  build shared libraries [default=yes]
1478  --enable-static[=PKGS]  build static libraries [default=yes]
1479  --enable-fast-install[=PKGS]
1480                          optimize for fast installation [default=yes]
1481  --disable-libtool-lock  avoid locking (might break parallel builds)
1482  --enable-convenience-only-libpopt    only build convenience library
1483
1484Optional Packages:
1485  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1486  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1487  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1488  --with-pic              try to use only PIC/non-PIC objects [default=use
1489                          both]
1490  --with-tags[=TAGS]      include additional configurations [automatic]
1491
1492Some influential environment variables:
1493  CC          C compiler command
1494  CFLAGS      C compiler flags
1495  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1496              nonstandard directory <lib dir>
1497  LIBS        libraries to pass to the linker, e.g. -l<library>
1498  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1499              you have headers in a nonstandard directory <include dir>
1500  CPP         C preprocessor
1501  CXX         C++ compiler command
1502  CXXFLAGS    C++ compiler flags
1503  CXXCPP      C++ preprocessor
1504  F77         Fortran 77 compiler command
1505  FFLAGS      Fortran 77 compiler flags
1506
1507Use these variables to override the choices made by `configure' or to help
1508it to find libraries and programs with nonstandard names/locations.
1509
1510_ACEOF
1511ac_status=$?
1512fi
1513
1514if test "$ac_init_help" = "recursive"; then
1515  # If there are subdirs, report their specific --help.
1516  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517    test -d "$ac_dir" || continue
1518    ac_builddir=.
1519
1520case "$ac_dir" in
1521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522*)
1523  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1524  # A ".." for each directory in $ac_dir_suffix.
1525  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526  case $ac_top_builddir_sub in
1527  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529  esac ;;
1530esac
1531ac_abs_top_builddir=$ac_pwd
1532ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533# for backward compatibility:
1534ac_top_builddir=$ac_top_build_prefix
1535
1536case $srcdir in
1537  .)  # We are building in place.
1538    ac_srcdir=.
1539    ac_top_srcdir=$ac_top_builddir_sub
1540    ac_abs_top_srcdir=$ac_pwd ;;
1541  [\\/]* | ?:[\\/]* )  # Absolute name.
1542    ac_srcdir=$srcdir$ac_dir_suffix;
1543    ac_top_srcdir=$srcdir
1544    ac_abs_top_srcdir=$srcdir ;;
1545  *) # Relative name.
1546    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547    ac_top_srcdir=$ac_top_build_prefix$srcdir
1548    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549esac
1550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552    cd "$ac_dir" || { ac_status=$?; continue; }
1553    # Check for guested configure.
1554    if test -f "$ac_srcdir/configure.gnu"; then
1555      echo &&
1556      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557    elif test -f "$ac_srcdir/configure"; then
1558      echo &&
1559      $SHELL "$ac_srcdir/configure" --help=recursive
1560    else
1561      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562    fi || ac_status=$?
1563    cd "$ac_pwd" || { ac_status=$?; break; }
1564  done
1565fi
1566
1567test -n "$ac_init_help" && exit $ac_status
1568if $ac_init_version; then
1569  cat <<\_ACEOF
1570configure
1571generated by GNU Autoconf 2.61
1572
1573Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15742002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575This configure script is free software; the Free Software Foundation
1576gives unlimited permission to copy, distribute and modify it.
1577_ACEOF
1578  exit
1579fi
1580cat >config.log <<_ACEOF
1581This file contains any messages produced by compilers while
1582running configure, to aid debugging if configure makes a mistake.
1583
1584It was created by $as_me, which was
1585generated by GNU Autoconf 2.61.  Invocation command line was
1586
1587  $ $0 $@
1588
1589_ACEOF
1590exec 5>>config.log
1591{
1592cat <<_ASUNAME
1593## --------- ##
1594## Platform. ##
1595## --------- ##
1596
1597hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1605
1606/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1607/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1608/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1610/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1611/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1612/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1613
1614_ASUNAME
1615
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619  IFS=$as_save_IFS
1620  test -z "$as_dir" && as_dir=.
1621  echo "PATH: $as_dir"
1622done
1623IFS=$as_save_IFS
1624
1625} >&5
1626
1627cat >&5 <<_ACEOF
1628
1629
1630## ----------- ##
1631## Core tests. ##
1632## ----------- ##
1633
1634_ACEOF
1635
1636
1637# Keep a trace of the command line.
1638# Strip out --no-create and --no-recursion so they do not pile up.
1639# Strip out --silent because we don't want to record it for future runs.
1640# Also quote any args containing shell meta-characters.
1641# Make two passes to allow for proper duplicate-argument suppression.
1642ac_configure_args=
1643ac_configure_args0=
1644ac_configure_args1=
1645ac_must_keep_next=false
1646for ac_pass in 1 2
1647do
1648  for ac_arg
1649  do
1650    case $ac_arg in
1651    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653    | -silent | --silent | --silen | --sile | --sil)
1654      continue ;;
1655    *\'*)
1656      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657    esac
1658    case $ac_pass in
1659    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660    2)
1661      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662      if test $ac_must_keep_next = true; then
1663	ac_must_keep_next=false # Got value, back to normal.
1664      else
1665	case $ac_arg in
1666	  *=* | --config-cache | -C | -disable-* | --disable-* \
1667	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669	  | -with-* | --with-* | -without-* | --without-* | --x)
1670	    case "$ac_configure_args0 " in
1671	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672	    esac
1673	    ;;
1674	  -* ) ac_must_keep_next=true ;;
1675	esac
1676      fi
1677      ac_configure_args="$ac_configure_args '$ac_arg'"
1678      ;;
1679    esac
1680  done
1681done
1682$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685# When interrupted or exit'd, cleanup temporary files, and complete
1686# config.log.  We remove comments because anyway the quotes in there
1687# would cause problems or look ugly.
1688# WARNING: Use '\'' to represent an apostrophe within the trap.
1689# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690trap 'exit_status=$?
1691  # Save into config.log some information that might help in debugging.
1692  {
1693    echo
1694
1695    cat <<\_ASBOX
1696## ---------------- ##
1697## Cache variables. ##
1698## ---------------- ##
1699_ASBOX
1700    echo
1701    # The following way of writing the cache mishandles newlines in values,
1702(
1703  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704    eval ac_val=\$$ac_var
1705    case $ac_val in #(
1706    *${as_nl}*)
1707      case $ac_var in #(
1708      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710      esac
1711      case $ac_var in #(
1712      _ | IFS | as_nl) ;; #(
1713      *) $as_unset $ac_var ;;
1714      esac ;;
1715    esac
1716  done
1717  (set) 2>&1 |
1718    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719    *${as_nl}ac_space=\ *)
1720      sed -n \
1721	"s/'\''/'\''\\\\'\'''\''/g;
1722	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723      ;; #(
1724    *)
1725      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1726      ;;
1727    esac |
1728    sort
1729)
1730    echo
1731
1732    cat <<\_ASBOX
1733## ----------------- ##
1734## Output variables. ##
1735## ----------------- ##
1736_ASBOX
1737    echo
1738    for ac_var in $ac_subst_vars
1739    do
1740      eval ac_val=\$$ac_var
1741      case $ac_val in
1742      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743      esac
1744      echo "$ac_var='\''$ac_val'\''"
1745    done | sort
1746    echo
1747
1748    if test -n "$ac_subst_files"; then
1749      cat <<\_ASBOX
1750## ------------------- ##
1751## File substitutions. ##
1752## ------------------- ##
1753_ASBOX
1754      echo
1755      for ac_var in $ac_subst_files
1756      do
1757	eval ac_val=\$$ac_var
1758	case $ac_val in
1759	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760	esac
1761	echo "$ac_var='\''$ac_val'\''"
1762      done | sort
1763      echo
1764    fi
1765
1766    if test -s confdefs.h; then
1767      cat <<\_ASBOX
1768## ----------- ##
1769## confdefs.h. ##
1770## ----------- ##
1771_ASBOX
1772      echo
1773      cat confdefs.h
1774      echo
1775    fi
1776    test "$ac_signal" != 0 &&
1777      echo "$as_me: caught signal $ac_signal"
1778    echo "$as_me: exit $exit_status"
1779  } >&5
1780  rm -f core *.core core.conftest.* &&
1781    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782    exit $exit_status
1783' 0
1784for ac_signal in 1 2 13 15; do
1785  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786done
1787ac_signal=0
1788
1789# confdefs.h avoids OS command line length limits that DEFS can exceed.
1790rm -f -r conftest* confdefs.h
1791
1792# Predefined preprocessor variables.
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_NAME "$PACKAGE_NAME"
1796_ACEOF
1797
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801_ACEOF
1802
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_VERSION "$PACKAGE_VERSION"
1806_ACEOF
1807
1808
1809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE_STRING "$PACKAGE_STRING"
1811_ACEOF
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816_ACEOF
1817
1818
1819# Let the site file select an alternate cache file if it wants to.
1820# Prefer explicitly selected file to automatically selected ones.
1821if test -n "$CONFIG_SITE"; then
1822  set x "$CONFIG_SITE"
1823elif test "x$prefix" != xNONE; then
1824  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825else
1826  set x "$ac_default_prefix/share/config.site" \
1827	"$ac_default_prefix/etc/config.site"
1828fi
1829shift
1830for ac_site_file
1831do
1832  if test -r "$ac_site_file"; then
1833    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834echo "$as_me: loading site script $ac_site_file" >&6;}
1835    sed 's/^/| /' "$ac_site_file" >&5
1836    . "$ac_site_file"
1837  fi
1838done
1839
1840if test -r "$cache_file"; then
1841  # Some versions of bash will fail to source /dev/null (special
1842  # files actually), so we avoid doing that.
1843  if test -f "$cache_file"; then
1844    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845echo "$as_me: loading cache $cache_file" >&6;}
1846    case $cache_file in
1847      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848      *)                      . "./$cache_file";;
1849    esac
1850  fi
1851else
1852  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853echo "$as_me: creating cache $cache_file" >&6;}
1854  >$cache_file
1855fi
1856
1857# Check that the precious variables saved in the cache have kept the same
1858# value.
1859ac_cache_corrupted=false
1860for ac_var in $ac_precious_vars; do
1861  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862  eval ac_new_set=\$ac_env_${ac_var}_set
1863  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864  eval ac_new_val=\$ac_env_${ac_var}_value
1865  case $ac_old_set,$ac_new_set in
1866    set,)
1867      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869      ac_cache_corrupted=: ;;
1870    ,set)
1871      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873      ac_cache_corrupted=: ;;
1874    ,);;
1875    *)
1876      if test "x$ac_old_val" != "x$ac_new_val"; then
1877	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1880echo "$as_me:   former value:  $ac_old_val" >&2;}
1881	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1882echo "$as_me:   current value: $ac_new_val" >&2;}
1883	ac_cache_corrupted=:
1884      fi;;
1885  esac
1886  # Pass precious variables to config.status.
1887  if test "$ac_new_set" = set; then
1888    case $ac_new_val in
1889    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890    *) ac_arg=$ac_var=$ac_new_val ;;
1891    esac
1892    case " $ac_configure_args " in
1893      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1894      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895    esac
1896  fi
1897done
1898if $ac_cache_corrupted; then
1899  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903   { (exit 1); exit 1; }; }
1904fi
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922ac_ext=c
1923ac_cpp='$CPP $CPPFLAGS'
1924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926ac_compiler_gnu=$ac_cv_c_compiler_gnu
1927
1928
1929ac_aux_dir=
1930for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1931  if test -f "$ac_dir/install-sh"; then
1932    ac_aux_dir=$ac_dir
1933    ac_install_sh="$ac_aux_dir/install-sh -c"
1934    break
1935  elif test -f "$ac_dir/install.sh"; then
1936    ac_aux_dir=$ac_dir
1937    ac_install_sh="$ac_aux_dir/install.sh -c"
1938    break
1939  elif test -f "$ac_dir/shtool"; then
1940    ac_aux_dir=$ac_dir
1941    ac_install_sh="$ac_aux_dir/shtool install -c"
1942    break
1943  fi
1944done
1945if test -z "$ac_aux_dir"; then
1946  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1947echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1948   { (exit 1); exit 1; }; }
1949fi
1950
1951# These three variables are undocumented and unsupported,
1952# and are intended to be withdrawn in a future Autoconf release.
1953# They can cause serious problems if a builder's source tree is in a directory
1954# whose full name contains unusual characters.
1955ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1956ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1957ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1958
1959
1960# Make sure we can run config.sub.
1961$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1962  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1963echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1964   { (exit 1); exit 1; }; }
1965
1966{ echo "$as_me:$LINENO: checking build system type" >&5
1967echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1968if test "${ac_cv_build+set}" = set; then
1969  echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
1971  ac_build_alias=$build_alias
1972test "x$ac_build_alias" = x &&
1973  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1974test "x$ac_build_alias" = x &&
1975  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1976echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1977   { (exit 1); exit 1; }; }
1978ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1979  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1980echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1981   { (exit 1); exit 1; }; }
1982
1983fi
1984{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1985echo "${ECHO_T}$ac_cv_build" >&6; }
1986case $ac_cv_build in
1987*-*-*) ;;
1988*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1989echo "$as_me: error: invalid value of canonical build" >&2;}
1990   { (exit 1); exit 1; }; };;
1991esac
1992build=$ac_cv_build
1993ac_save_IFS=$IFS; IFS='-'
1994set x $ac_cv_build
1995shift
1996build_cpu=$1
1997build_vendor=$2
1998shift; shift
1999# Remember, the first character of IFS is used to create $*,
2000# except with old shells:
2001build_os=$*
2002IFS=$ac_save_IFS
2003case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2004
2005
2006{ echo "$as_me:$LINENO: checking host system type" >&5
2007echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2008if test "${ac_cv_host+set}" = set; then
2009  echo $ECHO_N "(cached) $ECHO_C" >&6
2010else
2011  if test "x$host_alias" = x; then
2012  ac_cv_host=$ac_cv_build
2013else
2014  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2015    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2016echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2017   { (exit 1); exit 1; }; }
2018fi
2019
2020fi
2021{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2022echo "${ECHO_T}$ac_cv_host" >&6; }
2023case $ac_cv_host in
2024*-*-*) ;;
2025*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2026echo "$as_me: error: invalid value of canonical host" >&2;}
2027   { (exit 1); exit 1; }; };;
2028esac
2029host=$ac_cv_host
2030ac_save_IFS=$IFS; IFS='-'
2031set x $ac_cv_host
2032shift
2033host_cpu=$1
2034host_vendor=$2
2035shift; shift
2036# Remember, the first character of IFS is used to create $*,
2037# except with old shells:
2038host_os=$*
2039IFS=$ac_save_IFS
2040case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2041
2042
2043{ echo "$as_me:$LINENO: checking target system type" >&5
2044echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2045if test "${ac_cv_target+set}" = set; then
2046  echo $ECHO_N "(cached) $ECHO_C" >&6
2047else
2048  if test "x$target_alias" = x; then
2049  ac_cv_target=$ac_cv_host
2050else
2051  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2052    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2053echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2054   { (exit 1); exit 1; }; }
2055fi
2056
2057fi
2058{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2059echo "${ECHO_T}$ac_cv_target" >&6; }
2060case $ac_cv_target in
2061*-*-*) ;;
2062*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2063echo "$as_me: error: invalid value of canonical target" >&2;}
2064   { (exit 1); exit 1; }; };;
2065esac
2066target=$ac_cv_target
2067ac_save_IFS=$IFS; IFS='-'
2068set x $ac_cv_target
2069shift
2070target_cpu=$1
2071target_vendor=$2
2072shift; shift
2073# Remember, the first character of IFS is used to create $*,
2074# except with old shells:
2075target_os=$*
2076IFS=$ac_save_IFS
2077case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2078
2079
2080# The aliases save the names the user supplied, while $host etc.
2081# will get canonicalized.
2082test -n "$target_alias" &&
2083  test "$program_prefix$program_suffix$program_transform_name" = \
2084    NONENONEs,x,x, &&
2085  program_prefix=${target_alias}-
2086
2087ac_config_headers="$ac_config_headers config.h"
2088
2089am__api_version="1.9"
2090# Find a good install program.  We prefer a C program (faster),
2091# so one script is as good as another.  But avoid the broken or
2092# incompatible versions:
2093# SysV /etc/install, /usr/sbin/install
2094# SunOS /usr/etc/install
2095# IRIX /sbin/install
2096# AIX /bin/install
2097# AmigaOS /C/install, which installs bootblocks on floppy discs
2098# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2099# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2100# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2101# OS/2's system install, which has a completely different semantic
2102# ./install, which can be erroneously created by make from ./install.sh.
2103{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2104echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2105if test -z "$INSTALL"; then
2106if test "${ac_cv_path_install+set}" = set; then
2107  echo $ECHO_N "(cached) $ECHO_C" >&6
2108else
2109  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110for as_dir in $PATH
2111do
2112  IFS=$as_save_IFS
2113  test -z "$as_dir" && as_dir=.
2114  # Account for people who put trailing slashes in PATH elements.
2115case $as_dir/ in
2116  ./ | .// | /cC/* | \
2117  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2118  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2119  /usr/ucb/* ) ;;
2120  *)
2121    # OSF1 and SCO ODT 3.0 have their own names for install.
2122    # Don't use installbsd from OSF since it installs stuff as root
2123    # by default.
2124    for ac_prog in ginstall scoinst install; do
2125      for ac_exec_ext in '' $ac_executable_extensions; do
2126	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2127	  if test $ac_prog = install &&
2128	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2129	    # AIX install.  It has an incompatible calling convention.
2130	    :
2131	  elif test $ac_prog = install &&
2132	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2133	    # program-specific install script used by HP pwplus--don't use.
2134	    :
2135	  else
2136	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2137	    break 3
2138	  fi
2139	fi
2140      done
2141    done
2142    ;;
2143esac
2144done
2145IFS=$as_save_IFS
2146
2147
2148fi
2149  if test "${ac_cv_path_install+set}" = set; then
2150    INSTALL=$ac_cv_path_install
2151  else
2152    # As a last resort, use the slow shell script.  Don't cache a
2153    # value for INSTALL within a source directory, because that will
2154    # break other packages using the cache if that directory is
2155    # removed, or if the value is a relative name.
2156    INSTALL=$ac_install_sh
2157  fi
2158fi
2159{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2160echo "${ECHO_T}$INSTALL" >&6; }
2161
2162# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2163# It thinks the first close brace ends the variable substitution.
2164test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2165
2166test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2167
2168test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2169
2170{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2171echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2172# Just in case
2173sleep 1
2174echo timestamp > conftest.file
2175# Do `set' in a subshell so we don't clobber the current shell's
2176# arguments.  Must try -L first in case configure is actually a
2177# symlink; some systems play weird games with the mod time of symlinks
2178# (eg FreeBSD returns the mod time of the symlink's containing
2179# directory).
2180if (
2181   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2182   if test "$*" = "X"; then
2183      # -L didn't work.
2184      set X `ls -t $srcdir/configure conftest.file`
2185   fi
2186   rm -f conftest.file
2187   if test "$*" != "X $srcdir/configure conftest.file" \
2188      && test "$*" != "X conftest.file $srcdir/configure"; then
2189
2190      # If neither matched, then we have a broken ls.  This can happen
2191      # if, for instance, CONFIG_SHELL is bash and it inherits a
2192      # broken ls alias from the environment.  This has actually
2193      # happened.  Such a system could not be considered "sane".
2194      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2195alias in your environment" >&5
2196echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2197alias in your environment" >&2;}
2198   { (exit 1); exit 1; }; }
2199   fi
2200
2201   test "$2" = conftest.file
2202   )
2203then
2204   # Ok.
2205   :
2206else
2207   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2208Check your system clock" >&5
2209echo "$as_me: error: newly created file is older than distributed files!
2210Check your system clock" >&2;}
2211   { (exit 1); exit 1; }; }
2212fi
2213{ echo "$as_me:$LINENO: result: yes" >&5
2214echo "${ECHO_T}yes" >&6; }
2215test "$program_prefix" != NONE &&
2216  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2217# Use a double $ so make ignores it.
2218test "$program_suffix" != NONE &&
2219  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2220# Double any \ or $.  echo might interpret backslashes.
2221# By default was `s,x,x', remove it if useless.
2222cat <<\_ACEOF >conftest.sed
2223s/[\\$]/&&/g;s/;s,x,x,$//
2224_ACEOF
2225program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2226rm -f conftest.sed
2227
2228# expand $ac_aux_dir to an absolute path
2229am_aux_dir=`cd $ac_aux_dir && pwd`
2230
2231test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2232# Use eval to expand $SHELL
2233if eval "$MISSING --run true"; then
2234  am_missing_run="$MISSING --run "
2235else
2236  am_missing_run=
2237  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2238echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2239fi
2240
2241if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2242  # We used to keeping the `.' as first argument, in order to
2243  # allow $(mkdir_p) to be used without argument.  As in
2244  #   $(mkdir_p) $(somedir)
2245  # where $(somedir) is conditionally defined.  However this is wrong
2246  # for two reasons:
2247  #  1. if the package is installed by a user who cannot write `.'
2248  #     make install will fail,
2249  #  2. the above comment should most certainly read
2250  #     $(mkdir_p) $(DESTDIR)$(somedir)
2251  #     so it does not work when $(somedir) is undefined and
2252  #     $(DESTDIR) is not.
2253  #  To support the latter case, we have to write
2254  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2255  #  so the `.' trick is pointless.
2256  mkdir_p='mkdir -p --'
2257else
2258  # On NextStep and OpenStep, the `mkdir' command does not
2259  # recognize any option.  It will interpret all options as
2260  # directories to create, and then abort because `.' already
2261  # exists.
2262  for d in ./-p ./--version;
2263  do
2264    test -d $d && rmdir $d
2265  done
2266  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2267  if test -f "$ac_aux_dir/mkinstalldirs"; then
2268    mkdir_p='$(mkinstalldirs)'
2269  else
2270    mkdir_p='$(install_sh) -d'
2271  fi
2272fi
2273
2274for ac_prog in gawk mawk nawk awk
2275do
2276  # Extract the first word of "$ac_prog", so it can be a program name with args.
2277set dummy $ac_prog; ac_word=$2
2278{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280if test "${ac_cv_prog_AWK+set}" = set; then
2281  echo $ECHO_N "(cached) $ECHO_C" >&6
2282else
2283  if test -n "$AWK"; then
2284  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2285else
2286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287for as_dir in $PATH
2288do
2289  IFS=$as_save_IFS
2290  test -z "$as_dir" && as_dir=.
2291  for ac_exec_ext in '' $ac_executable_extensions; do
2292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293    ac_cv_prog_AWK="$ac_prog"
2294    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295    break 2
2296  fi
2297done
2298done
2299IFS=$as_save_IFS
2300
2301fi
2302fi
2303AWK=$ac_cv_prog_AWK
2304if test -n "$AWK"; then
2305  { echo "$as_me:$LINENO: result: $AWK" >&5
2306echo "${ECHO_T}$AWK" >&6; }
2307else
2308  { echo "$as_me:$LINENO: result: no" >&5
2309echo "${ECHO_T}no" >&6; }
2310fi
2311
2312
2313  test -n "$AWK" && break
2314done
2315
2316{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2317echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2318set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2319if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2320  echo $ECHO_N "(cached) $ECHO_C" >&6
2321else
2322  cat >conftest.make <<\_ACEOF
2323SHELL = /bin/sh
2324all:
2325	@echo '@@@%%%=$(MAKE)=@@@%%%'
2326_ACEOF
2327# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2328case `${MAKE-make} -f conftest.make 2>/dev/null` in
2329  *@@@%%%=?*=@@@%%%*)
2330    eval ac_cv_prog_make_${ac_make}_set=yes;;
2331  *)
2332    eval ac_cv_prog_make_${ac_make}_set=no;;
2333esac
2334rm -f conftest.make
2335fi
2336if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2337  { echo "$as_me:$LINENO: result: yes" >&5
2338echo "${ECHO_T}yes" >&6; }
2339  SET_MAKE=
2340else
2341  { echo "$as_me:$LINENO: result: no" >&5
2342echo "${ECHO_T}no" >&6; }
2343  SET_MAKE="MAKE=${MAKE-make}"
2344fi
2345
2346rm -rf .tst 2>/dev/null
2347mkdir .tst 2>/dev/null
2348if test -d .tst; then
2349  am__leading_dot=.
2350else
2351  am__leading_dot=_
2352fi
2353rmdir .tst 2>/dev/null
2354
2355# test to see if srcdir already configured
2356if test "`cd $srcdir && pwd`" != "`pwd`" &&
2357   test -f $srcdir/config.status; then
2358  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2359echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2360   { (exit 1); exit 1; }; }
2361fi
2362
2363# test whether we have cygpath
2364if test -z "$CYGPATH_W"; then
2365  if (cygpath --version) >/dev/null 2>/dev/null; then
2366    CYGPATH_W='cygpath -w'
2367  else
2368    CYGPATH_W=echo
2369  fi
2370fi
2371
2372
2373# Define the identity of the package.
2374 PACKAGE=popt-sable
2375 VERSION=1.7
2376
2377
2378cat >>confdefs.h <<_ACEOF
2379#define PACKAGE "$PACKAGE"
2380_ACEOF
2381
2382
2383cat >>confdefs.h <<_ACEOF
2384#define VERSION "$VERSION"
2385_ACEOF
2386
2387# Some tools Automake needs.
2388
2389ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2390
2391
2392AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2393
2394
2395AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2396
2397
2398AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2399
2400
2401MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2402
2403install_sh=${install_sh-"$am_aux_dir/install-sh"}
2404
2405# Installed binaries are usually stripped using `strip' when the user
2406# run `make install-strip'.  However `strip' might not be the right
2407# tool to use in cross-compilation environments, therefore Automake
2408# will honor the `STRIP' environment variable to overrule this program.
2409if test "$cross_compiling" != no; then
2410  if test -n "$ac_tool_prefix"; then
2411  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2412set dummy ${ac_tool_prefix}strip; ac_word=$2
2413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2415if test "${ac_cv_prog_STRIP+set}" = set; then
2416  echo $ECHO_N "(cached) $ECHO_C" >&6
2417else
2418  if test -n "$STRIP"; then
2419  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2420else
2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422for as_dir in $PATH
2423do
2424  IFS=$as_save_IFS
2425  test -z "$as_dir" && as_dir=.
2426  for ac_exec_ext in '' $ac_executable_extensions; do
2427  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2429    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430    break 2
2431  fi
2432done
2433done
2434IFS=$as_save_IFS
2435
2436fi
2437fi
2438STRIP=$ac_cv_prog_STRIP
2439if test -n "$STRIP"; then
2440  { echo "$as_me:$LINENO: result: $STRIP" >&5
2441echo "${ECHO_T}$STRIP" >&6; }
2442else
2443  { echo "$as_me:$LINENO: result: no" >&5
2444echo "${ECHO_T}no" >&6; }
2445fi
2446
2447
2448fi
2449if test -z "$ac_cv_prog_STRIP"; then
2450  ac_ct_STRIP=$STRIP
2451  # Extract the first word of "strip", so it can be a program name with args.
2452set dummy strip; ac_word=$2
2453{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2455if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2456  echo $ECHO_N "(cached) $ECHO_C" >&6
2457else
2458  if test -n "$ac_ct_STRIP"; then
2459  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2460else
2461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462for as_dir in $PATH
2463do
2464  IFS=$as_save_IFS
2465  test -z "$as_dir" && as_dir=.
2466  for ac_exec_ext in '' $ac_executable_extensions; do
2467  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468    ac_cv_prog_ac_ct_STRIP="strip"
2469    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470    break 2
2471  fi
2472done
2473done
2474IFS=$as_save_IFS
2475
2476fi
2477fi
2478ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2479if test -n "$ac_ct_STRIP"; then
2480  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2481echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2482else
2483  { echo "$as_me:$LINENO: result: no" >&5
2484echo "${ECHO_T}no" >&6; }
2485fi
2486
2487  if test "x$ac_ct_STRIP" = x; then
2488    STRIP=":"
2489  else
2490    case $cross_compiling:$ac_tool_warned in
2491yes:)
2492{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2493whose name does not start with the host triplet.  If you think this
2494configuration is useful to you, please write to autoconf@gnu.org." >&5
2495echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2496whose name does not start with the host triplet.  If you think this
2497configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2498ac_tool_warned=yes ;;
2499esac
2500    STRIP=$ac_ct_STRIP
2501  fi
2502else
2503  STRIP="$ac_cv_prog_STRIP"
2504fi
2505
2506fi
2507INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2508
2509# We need awk for the "check" target.  The system "awk" is bad on
2510# some platforms.
2511# Always define AMTAR for backward compatibility.
2512
2513AMTAR=${AMTAR-"${am_missing_run}tar"}
2514
2515am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2516
2517
2518
2519
2520
2521
2522DEPDIR="${am__leading_dot}deps"
2523
2524ac_config_commands="$ac_config_commands depfiles"
2525
2526
2527am_make=${MAKE-make}
2528cat > confinc << 'END'
2529am__doit:
2530	@echo done
2531.PHONY: am__doit
2532END
2533# If we don't find an include directive, just comment out the code.
2534{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2535echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2536am__include="#"
2537am__quote=
2538_am_result=none
2539# First try GNU make style include.
2540echo "include confinc" > confmf
2541# We grep out `Entering directory' and `Leaving directory'
2542# messages which can occur if `w' ends up in MAKEFLAGS.
2543# In particular we don't look at `^make:' because GNU make might
2544# be invoked under some other name (usually "gmake"), in which
2545# case it prints its new name instead of `make'.
2546if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2547   am__include=include
2548   am__quote=
2549   _am_result=GNU
2550fi
2551# Now try BSD make style include.
2552if test "$am__include" = "#"; then
2553   echo '.include "confinc"' > confmf
2554   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2555      am__include=.include
2556      am__quote="\""
2557      _am_result=BSD
2558   fi
2559fi
2560
2561
2562{ echo "$as_me:$LINENO: result: $_am_result" >&5
2563echo "${ECHO_T}$_am_result" >&6; }
2564rm -f confinc confmf
2565
2566# Check whether --enable-dependency-tracking was given.
2567if test "${enable_dependency_tracking+set}" = set; then
2568  enableval=$enable_dependency_tracking;
2569fi
2570
2571if test "x$enable_dependency_tracking" != xno; then
2572  am_depcomp="$ac_aux_dir/depcomp"
2573  AMDEPBACKSLASH='\'
2574fi
2575
2576
2577if test "x$enable_dependency_tracking" != xno; then
2578  AMDEP_TRUE=
2579  AMDEP_FALSE='#'
2580else
2581  AMDEP_TRUE='#'
2582  AMDEP_FALSE=
2583fi
2584
2585
2586
2587ac_ext=c
2588ac_cpp='$CPP $CPPFLAGS'
2589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592if test -n "$ac_tool_prefix"; then
2593  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2594set dummy ${ac_tool_prefix}gcc; ac_word=$2
2595{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597if test "${ac_cv_prog_CC+set}" = set; then
2598  echo $ECHO_N "(cached) $ECHO_C" >&6
2599else
2600  if test -n "$CC"; then
2601  ac_cv_prog_CC="$CC" # Let the user override the test.
2602else
2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604for as_dir in $PATH
2605do
2606  IFS=$as_save_IFS
2607  test -z "$as_dir" && as_dir=.
2608  for ac_exec_ext in '' $ac_executable_extensions; do
2609  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2611    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612    break 2
2613  fi
2614done
2615done
2616IFS=$as_save_IFS
2617
2618fi
2619fi
2620CC=$ac_cv_prog_CC
2621if test -n "$CC"; then
2622  { echo "$as_me:$LINENO: result: $CC" >&5
2623echo "${ECHO_T}$CC" >&6; }
2624else
2625  { echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6; }
2627fi
2628
2629
2630fi
2631if test -z "$ac_cv_prog_CC"; then
2632  ac_ct_CC=$CC
2633  # Extract the first word of "gcc", so it can be a program name with args.
2634set dummy gcc; ac_word=$2
2635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638  echo $ECHO_N "(cached) $ECHO_C" >&6
2639else
2640  if test -n "$ac_ct_CC"; then
2641  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2642else
2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646  IFS=$as_save_IFS
2647  test -z "$as_dir" && as_dir=.
2648  for ac_exec_ext in '' $ac_executable_extensions; do
2649  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650    ac_cv_prog_ac_ct_CC="gcc"
2651    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652    break 2
2653  fi
2654done
2655done
2656IFS=$as_save_IFS
2657
2658fi
2659fi
2660ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661if test -n "$ac_ct_CC"; then
2662  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663echo "${ECHO_T}$ac_ct_CC" >&6; }
2664else
2665  { echo "$as_me:$LINENO: result: no" >&5
2666echo "${ECHO_T}no" >&6; }
2667fi
2668
2669  if test "x$ac_ct_CC" = x; then
2670    CC=""
2671  else
2672    case $cross_compiling:$ac_tool_warned in
2673yes:)
2674{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2675whose name does not start with the host triplet.  If you think this
2676configuration is useful to you, please write to autoconf@gnu.org." >&5
2677echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2678whose name does not start with the host triplet.  If you think this
2679configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2680ac_tool_warned=yes ;;
2681esac
2682    CC=$ac_ct_CC
2683  fi
2684else
2685  CC="$ac_cv_prog_CC"
2686fi
2687
2688if test -z "$CC"; then
2689          if test -n "$ac_tool_prefix"; then
2690    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2691set dummy ${ac_tool_prefix}cc; ac_word=$2
2692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2694if test "${ac_cv_prog_CC+set}" = set; then
2695  echo $ECHO_N "(cached) $ECHO_C" >&6
2696else
2697  if test -n "$CC"; then
2698  ac_cv_prog_CC="$CC" # Let the user override the test.
2699else
2700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701for as_dir in $PATH
2702do
2703  IFS=$as_save_IFS
2704  test -z "$as_dir" && as_dir=.
2705  for ac_exec_ext in '' $ac_executable_extensions; do
2706  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707    ac_cv_prog_CC="${ac_tool_prefix}cc"
2708    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709    break 2
2710  fi
2711done
2712done
2713IFS=$as_save_IFS
2714
2715fi
2716fi
2717CC=$ac_cv_prog_CC
2718if test -n "$CC"; then
2719  { echo "$as_me:$LINENO: result: $CC" >&5
2720echo "${ECHO_T}$CC" >&6; }
2721else
2722  { echo "$as_me:$LINENO: result: no" >&5
2723echo "${ECHO_T}no" >&6; }
2724fi
2725
2726
2727  fi
2728fi
2729if test -z "$CC"; then
2730  # Extract the first word of "cc", so it can be a program name with args.
2731set dummy cc; ac_word=$2
2732{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2734if test "${ac_cv_prog_CC+set}" = set; then
2735  echo $ECHO_N "(cached) $ECHO_C" >&6
2736else
2737  if test -n "$CC"; then
2738  ac_cv_prog_CC="$CC" # Let the user override the test.
2739else
2740  ac_prog_rejected=no
2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742for as_dir in $PATH
2743do
2744  IFS=$as_save_IFS
2745  test -z "$as_dir" && as_dir=.
2746  for ac_exec_ext in '' $ac_executable_extensions; do
2747  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2749       ac_prog_rejected=yes
2750       continue
2751     fi
2752    ac_cv_prog_CC="cc"
2753    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754    break 2
2755  fi
2756done
2757done
2758IFS=$as_save_IFS
2759
2760if test $ac_prog_rejected = yes; then
2761  # We found a bogon in the path, so make sure we never use it.
2762  set dummy $ac_cv_prog_CC
2763  shift
2764  if test $# != 0; then
2765    # We chose a different compiler from the bogus one.
2766    # However, it has the same basename, so the bogon will be chosen
2767    # first if we set CC to just the basename; use the full file name.
2768    shift
2769    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2770  fi
2771fi
2772fi
2773fi
2774CC=$ac_cv_prog_CC
2775if test -n "$CC"; then
2776  { echo "$as_me:$LINENO: result: $CC" >&5
2777echo "${ECHO_T}$CC" >&6; }
2778else
2779  { echo "$as_me:$LINENO: result: no" >&5
2780echo "${ECHO_T}no" >&6; }
2781fi
2782
2783
2784fi
2785if test -z "$CC"; then
2786  if test -n "$ac_tool_prefix"; then
2787  for ac_prog in cl.exe
2788  do
2789    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2790set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2791{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2793if test "${ac_cv_prog_CC+set}" = set; then
2794  echo $ECHO_N "(cached) $ECHO_C" >&6
2795else
2796  if test -n "$CC"; then
2797  ac_cv_prog_CC="$CC" # Let the user override the test.
2798else
2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800for as_dir in $PATH
2801do
2802  IFS=$as_save_IFS
2803  test -z "$as_dir" && as_dir=.
2804  for ac_exec_ext in '' $ac_executable_extensions; do
2805  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2807    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808    break 2
2809  fi
2810done
2811done
2812IFS=$as_save_IFS
2813
2814fi
2815fi
2816CC=$ac_cv_prog_CC
2817if test -n "$CC"; then
2818  { echo "$as_me:$LINENO: result: $CC" >&5
2819echo "${ECHO_T}$CC" >&6; }
2820else
2821  { echo "$as_me:$LINENO: result: no" >&5
2822echo "${ECHO_T}no" >&6; }
2823fi
2824
2825
2826    test -n "$CC" && break
2827  done
2828fi
2829if test -z "$CC"; then
2830  ac_ct_CC=$CC
2831  for ac_prog in cl.exe
2832do
2833  # Extract the first word of "$ac_prog", so it can be a program name with args.
2834set dummy $ac_prog; ac_word=$2
2835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2837if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2838  echo $ECHO_N "(cached) $ECHO_C" >&6
2839else
2840  if test -n "$ac_ct_CC"; then
2841  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2842else
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846  IFS=$as_save_IFS
2847  test -z "$as_dir" && as_dir=.
2848  for ac_exec_ext in '' $ac_executable_extensions; do
2849  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850    ac_cv_prog_ac_ct_CC="$ac_prog"
2851    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852    break 2
2853  fi
2854done
2855done
2856IFS=$as_save_IFS
2857
2858fi
2859fi
2860ac_ct_CC=$ac_cv_prog_ac_ct_CC
2861if test -n "$ac_ct_CC"; then
2862  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2863echo "${ECHO_T}$ac_ct_CC" >&6; }
2864else
2865  { echo "$as_me:$LINENO: result: no" >&5
2866echo "${ECHO_T}no" >&6; }
2867fi
2868
2869
2870  test -n "$ac_ct_CC" && break
2871done
2872
2873  if test "x$ac_ct_CC" = x; then
2874    CC=""
2875  else
2876    case $cross_compiling:$ac_tool_warned in
2877yes:)
2878{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2879whose name does not start with the host triplet.  If you think this
2880configuration is useful to you, please write to autoconf@gnu.org." >&5
2881echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2882whose name does not start with the host triplet.  If you think this
2883configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2884ac_tool_warned=yes ;;
2885esac
2886    CC=$ac_ct_CC
2887  fi
2888fi
2889
2890fi
2891
2892
2893test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2894See \`config.log' for more details." >&5
2895echo "$as_me: error: no acceptable C compiler found in \$PATH
2896See \`config.log' for more details." >&2;}
2897   { (exit 1); exit 1; }; }
2898
2899# Provide some information about the compiler.
2900echo "$as_me:$LINENO: checking for C compiler version" >&5
2901ac_compiler=`set X $ac_compile; echo $2`
2902{ (ac_try="$ac_compiler --version >&5"
2903case "(($ac_try" in
2904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905  *) ac_try_echo=$ac_try;;
2906esac
2907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908  (eval "$ac_compiler --version >&5") 2>&5
2909  ac_status=$?
2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911  (exit $ac_status); }
2912{ (ac_try="$ac_compiler -v >&5"
2913case "(($ac_try" in
2914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915  *) ac_try_echo=$ac_try;;
2916esac
2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918  (eval "$ac_compiler -v >&5") 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }
2922{ (ac_try="$ac_compiler -V >&5"
2923case "(($ac_try" in
2924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925  *) ac_try_echo=$ac_try;;
2926esac
2927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928  (eval "$ac_compiler -V >&5") 2>&5
2929  ac_status=$?
2930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931  (exit $ac_status); }
2932
2933cat >conftest.$ac_ext <<_ACEOF
2934/* confdefs.h.  */
2935_ACEOF
2936cat confdefs.h >>conftest.$ac_ext
2937cat >>conftest.$ac_ext <<_ACEOF
2938/* end confdefs.h.  */
2939
2940int
2941main ()
2942{
2943
2944  ;
2945  return 0;
2946}
2947_ACEOF
2948ac_clean_files_save=$ac_clean_files
2949ac_clean_files="$ac_clean_files a.out a.exe b.out"
2950# Try to create an executable without -o first, disregard a.out.
2951# It will help us diagnose broken compilers, and finding out an intuition
2952# of exeext.
2953{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2954echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2955ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2956#
2957# List of possible output files, starting from the most likely.
2958# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2959# only as a last resort.  b.out is created by i960 compilers.
2960ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2961#
2962# The IRIX 6 linker writes into existing files which may not be
2963# executable, retaining their permissions.  Remove them first so a
2964# subsequent execution test works.
2965ac_rmfiles=
2966for ac_file in $ac_files
2967do
2968  case $ac_file in
2969    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2970    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2971  esac
2972done
2973rm -f $ac_rmfiles
2974
2975if { (ac_try="$ac_link_default"
2976case "(($ac_try" in
2977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978  *) ac_try_echo=$ac_try;;
2979esac
2980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981  (eval "$ac_link_default") 2>&5
2982  ac_status=$?
2983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984  (exit $ac_status); }; then
2985  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2986# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2987# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2988# so that the user can short-circuit this test for compilers unknown to
2989# Autoconf.
2990for ac_file in $ac_files ''
2991do
2992  test -f "$ac_file" || continue
2993  case $ac_file in
2994    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2995	;;
2996    [ab].out )
2997	# We found the default executable, but exeext='' is most
2998	# certainly right.
2999	break;;
3000    *.* )
3001        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3002	then :; else
3003	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004	fi
3005	# We set ac_cv_exeext here because the later test for it is not
3006	# safe: cross compilers may not add the suffix if given an `-o'
3007	# argument, so we may need to know it at that point already.
3008	# Even if this section looks crufty: it has the advantage of
3009	# actually working.
3010	break;;
3011    * )
3012	break;;
3013  esac
3014done
3015test "$ac_cv_exeext" = no && ac_cv_exeext=
3016
3017else
3018  ac_file=''
3019fi
3020
3021{ echo "$as_me:$LINENO: result: $ac_file" >&5
3022echo "${ECHO_T}$ac_file" >&6; }
3023if test -z "$ac_file"; then
3024  echo "$as_me: failed program was:" >&5
3025sed 's/^/| /' conftest.$ac_ext >&5
3026
3027{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3028See \`config.log' for more details." >&5
3029echo "$as_me: error: C compiler cannot create executables
3030See \`config.log' for more details." >&2;}
3031   { (exit 77); exit 77; }; }
3032fi
3033
3034ac_exeext=$ac_cv_exeext
3035
3036# Check that the compiler produces executables we can run.  If not, either
3037# the compiler is broken, or we cross compile.
3038{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3039echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3040# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3041# If not cross compiling, check that we can run a simple program.
3042if test "$cross_compiling" != yes; then
3043  if { ac_try='./$ac_file'
3044  { (case "(($ac_try" in
3045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046  *) ac_try_echo=$ac_try;;
3047esac
3048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049  (eval "$ac_try") 2>&5
3050  ac_status=$?
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }; }; then
3053    cross_compiling=no
3054  else
3055    if test "$cross_compiling" = maybe; then
3056	cross_compiling=yes
3057    else
3058	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3059If you meant to cross compile, use \`--host'.
3060See \`config.log' for more details." >&5
3061echo "$as_me: error: cannot run C compiled programs.
3062If you meant to cross compile, use \`--host'.
3063See \`config.log' for more details." >&2;}
3064   { (exit 1); exit 1; }; }
3065    fi
3066  fi
3067fi
3068{ echo "$as_me:$LINENO: result: yes" >&5
3069echo "${ECHO_T}yes" >&6; }
3070
3071rm -f a.out a.exe conftest$ac_cv_exeext b.out
3072ac_clean_files=$ac_clean_files_save
3073# Check that the compiler produces executables we can run.  If not, either
3074# the compiler is broken, or we cross compile.
3075{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3076echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3077{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3078echo "${ECHO_T}$cross_compiling" >&6; }
3079
3080{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3081echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3082if { (ac_try="$ac_link"
3083case "(($ac_try" in
3084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085  *) ac_try_echo=$ac_try;;
3086esac
3087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088  (eval "$ac_link") 2>&5
3089  ac_status=$?
3090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091  (exit $ac_status); }; then
3092  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3093# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3094# work properly (i.e., refer to `conftest.exe'), while it won't with
3095# `rm'.
3096for ac_file in conftest.exe conftest conftest.*; do
3097  test -f "$ac_file" || continue
3098  case $ac_file in
3099    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3100    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3101	  break;;
3102    * ) break;;
3103  esac
3104done
3105else
3106  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3107See \`config.log' for more details." >&5
3108echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3109See \`config.log' for more details." >&2;}
3110   { (exit 1); exit 1; }; }
3111fi
3112
3113rm -f conftest$ac_cv_exeext
3114{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3115echo "${ECHO_T}$ac_cv_exeext" >&6; }
3116
3117rm -f conftest.$ac_ext
3118EXEEXT=$ac_cv_exeext
3119ac_exeext=$EXEEXT
3120{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3121echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3122if test "${ac_cv_objext+set}" = set; then
3123  echo $ECHO_N "(cached) $ECHO_C" >&6
3124else
3125  cat >conftest.$ac_ext <<_ACEOF
3126/* confdefs.h.  */
3127_ACEOF
3128cat confdefs.h >>conftest.$ac_ext
3129cat >>conftest.$ac_ext <<_ACEOF
3130/* end confdefs.h.  */
3131
3132int
3133main ()
3134{
3135
3136  ;
3137  return 0;
3138}
3139_ACEOF
3140rm -f conftest.o conftest.obj
3141if { (ac_try="$ac_compile"
3142case "(($ac_try" in
3143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144  *) ac_try_echo=$ac_try;;
3145esac
3146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147  (eval "$ac_compile") 2>&5
3148  ac_status=$?
3149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150  (exit $ac_status); }; then
3151  for ac_file in conftest.o conftest.obj conftest.*; do
3152  test -f "$ac_file" || continue;
3153  case $ac_file in
3154    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3155    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3156       break;;
3157  esac
3158done
3159else
3160  echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3164See \`config.log' for more details." >&5
3165echo "$as_me: error: cannot compute suffix of object files: cannot compile
3166See \`config.log' for more details." >&2;}
3167   { (exit 1); exit 1; }; }
3168fi
3169
3170rm -f conftest.$ac_cv_objext conftest.$ac_ext
3171fi
3172{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3173echo "${ECHO_T}$ac_cv_objext" >&6; }
3174OBJEXT=$ac_cv_objext
3175ac_objext=$OBJEXT
3176{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3177echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3178if test "${ac_cv_c_compiler_gnu+set}" = set; then
3179  echo $ECHO_N "(cached) $ECHO_C" >&6
3180else
3181  cat >conftest.$ac_ext <<_ACEOF
3182/* confdefs.h.  */
3183_ACEOF
3184cat confdefs.h >>conftest.$ac_ext
3185cat >>conftest.$ac_ext <<_ACEOF
3186/* end confdefs.h.  */
3187
3188int
3189main ()
3190{
3191#ifndef __GNUC__
3192       choke me
3193#endif
3194
3195  ;
3196  return 0;
3197}
3198_ACEOF
3199rm -f conftest.$ac_objext
3200if { (ac_try="$ac_compile"
3201case "(($ac_try" in
3202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203  *) ac_try_echo=$ac_try;;
3204esac
3205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206  (eval "$ac_compile") 2>conftest.er1
3207  ac_status=$?
3208  grep -v '^ *+' conftest.er1 >conftest.err
3209  rm -f conftest.er1
3210  cat conftest.err >&5
3211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212  (exit $ac_status); } && {
3213	 test -z "$ac_c_werror_flag" ||
3214	 test ! -s conftest.err
3215       } && test -s conftest.$ac_objext; then
3216  ac_compiler_gnu=yes
3217else
3218  echo "$as_me: failed program was:" >&5
3219sed 's/^/| /' conftest.$ac_ext >&5
3220
3221	ac_compiler_gnu=no
3222fi
3223
3224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225ac_cv_c_compiler_gnu=$ac_compiler_gnu
3226
3227fi
3228{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3229echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3230GCC=`test $ac_compiler_gnu = yes && echo yes`
3231ac_test_CFLAGS=${CFLAGS+set}
3232ac_save_CFLAGS=$CFLAGS
3233{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3234echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3235if test "${ac_cv_prog_cc_g+set}" = set; then
3236  echo $ECHO_N "(cached) $ECHO_C" >&6
3237else
3238  ac_save_c_werror_flag=$ac_c_werror_flag
3239   ac_c_werror_flag=yes
3240   ac_cv_prog_cc_g=no
3241   CFLAGS="-g"
3242   cat >conftest.$ac_ext <<_ACEOF
3243/* confdefs.h.  */
3244_ACEOF
3245cat confdefs.h >>conftest.$ac_ext
3246cat >>conftest.$ac_ext <<_ACEOF
3247/* end confdefs.h.  */
3248
3249int
3250main ()
3251{
3252
3253  ;
3254  return 0;
3255}
3256_ACEOF
3257rm -f conftest.$ac_objext
3258if { (ac_try="$ac_compile"
3259case "(($ac_try" in
3260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261  *) ac_try_echo=$ac_try;;
3262esac
3263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264  (eval "$ac_compile") 2>conftest.er1
3265  ac_status=$?
3266  grep -v '^ *+' conftest.er1 >conftest.err
3267  rm -f conftest.er1
3268  cat conftest.err >&5
3269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270  (exit $ac_status); } && {
3271	 test -z "$ac_c_werror_flag" ||
3272	 test ! -s conftest.err
3273       } && test -s conftest.$ac_objext; then
3274  ac_cv_prog_cc_g=yes
3275else
3276  echo "$as_me: failed program was:" >&5
3277sed 's/^/| /' conftest.$ac_ext >&5
3278
3279	CFLAGS=""
3280      cat >conftest.$ac_ext <<_ACEOF
3281/* confdefs.h.  */
3282_ACEOF
3283cat confdefs.h >>conftest.$ac_ext
3284cat >>conftest.$ac_ext <<_ACEOF
3285/* end confdefs.h.  */
3286
3287int
3288main ()
3289{
3290
3291  ;
3292  return 0;
3293}
3294_ACEOF
3295rm -f conftest.$ac_objext
3296if { (ac_try="$ac_compile"
3297case "(($ac_try" in
3298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299  *) ac_try_echo=$ac_try;;
3300esac
3301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302  (eval "$ac_compile") 2>conftest.er1
3303  ac_status=$?
3304  grep -v '^ *+' conftest.er1 >conftest.err
3305  rm -f conftest.er1
3306  cat conftest.err >&5
3307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308  (exit $ac_status); } && {
3309	 test -z "$ac_c_werror_flag" ||
3310	 test ! -s conftest.err
3311       } && test -s conftest.$ac_objext; then
3312  :
3313else
3314  echo "$as_me: failed program was:" >&5
3315sed 's/^/| /' conftest.$ac_ext >&5
3316
3317	ac_c_werror_flag=$ac_save_c_werror_flag
3318	 CFLAGS="-g"
3319	 cat >conftest.$ac_ext <<_ACEOF
3320/* confdefs.h.  */
3321_ACEOF
3322cat confdefs.h >>conftest.$ac_ext
3323cat >>conftest.$ac_ext <<_ACEOF
3324/* end confdefs.h.  */
3325
3326int
3327main ()
3328{
3329
3330  ;
3331  return 0;
3332}
3333_ACEOF
3334rm -f conftest.$ac_objext
3335if { (ac_try="$ac_compile"
3336case "(($ac_try" in
3337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338  *) ac_try_echo=$ac_try;;
3339esac
3340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341  (eval "$ac_compile") 2>conftest.er1
3342  ac_status=$?
3343  grep -v '^ *+' conftest.er1 >conftest.err
3344  rm -f conftest.er1
3345  cat conftest.err >&5
3346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347  (exit $ac_status); } && {
3348	 test -z "$ac_c_werror_flag" ||
3349	 test ! -s conftest.err
3350       } && test -s conftest.$ac_objext; then
3351  ac_cv_prog_cc_g=yes
3352else
3353  echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
3356
3357fi
3358
3359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360fi
3361
3362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363fi
3364
3365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366   ac_c_werror_flag=$ac_save_c_werror_flag
3367fi
3368{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3369echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3370if test "$ac_test_CFLAGS" = set; then
3371  CFLAGS=$ac_save_CFLAGS
3372elif test $ac_cv_prog_cc_g = yes; then
3373  if test "$GCC" = yes; then
3374    CFLAGS="-g -O2"
3375  else
3376    CFLAGS="-g"
3377  fi
3378else
3379  if test "$GCC" = yes; then
3380    CFLAGS="-O2"
3381  else
3382    CFLAGS=
3383  fi
3384fi
3385{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3386echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3387if test "${ac_cv_prog_cc_c89+set}" = set; then
3388  echo $ECHO_N "(cached) $ECHO_C" >&6
3389else
3390  ac_cv_prog_cc_c89=no
3391ac_save_CC=$CC
3392cat >conftest.$ac_ext <<_ACEOF
3393/* confdefs.h.  */
3394_ACEOF
3395cat confdefs.h >>conftest.$ac_ext
3396cat >>conftest.$ac_ext <<_ACEOF
3397/* end confdefs.h.  */
3398#include <stdarg.h>
3399#include <stdio.h>
3400#include <sys/types.h>
3401#include <sys/stat.h>
3402/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3403struct buf { int x; };
3404FILE * (*rcsopen) (struct buf *, struct stat *, int);
3405static char *e (p, i)
3406     char **p;
3407     int i;
3408{
3409  return p[i];
3410}
3411static char *f (char * (*g) (char **, int), char **p, ...)
3412{
3413  char *s;
3414  va_list v;
3415  va_start (v,p);
3416  s = g (p, va_arg (v,int));
3417  va_end (v);
3418  return s;
3419}
3420
3421/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3422   function prototypes and stuff, but not '\xHH' hex character constants.
3423   These don't provoke an error unfortunately, instead are silently treated
3424   as 'x'.  The following induces an error, until -std is added to get
3425   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3426   array size at least.  It's necessary to write '\x00'==0 to get something
3427   that's true only with -std.  */
3428int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3429
3430/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3431   inside strings and character constants.  */
3432#define FOO(x) 'x'
3433int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3434
3435int test (int i, double x);
3436struct s1 {int (*f) (int a);};
3437struct s2 {int (*f) (double a);};
3438int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3439int argc;
3440char **argv;
3441int
3442main ()
3443{
3444return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3445  ;
3446  return 0;
3447}
3448_ACEOF
3449for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3450	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3451do
3452  CC="$ac_save_CC $ac_arg"
3453  rm -f conftest.$ac_objext
3454if { (ac_try="$ac_compile"
3455case "(($ac_try" in
3456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457  *) ac_try_echo=$ac_try;;
3458esac
3459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460  (eval "$ac_compile") 2>conftest.er1
3461  ac_status=$?
3462  grep -v '^ *+' conftest.er1 >conftest.err
3463  rm -f conftest.er1
3464  cat conftest.err >&5
3465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466  (exit $ac_status); } && {
3467	 test -z "$ac_c_werror_flag" ||
3468	 test ! -s conftest.err
3469       } && test -s conftest.$ac_objext; then
3470  ac_cv_prog_cc_c89=$ac_arg
3471else
3472  echo "$as_me: failed program was:" >&5
3473sed 's/^/| /' conftest.$ac_ext >&5
3474
3475
3476fi
3477
3478rm -f core conftest.err conftest.$ac_objext
3479  test "x$ac_cv_prog_cc_c89" != "xno" && break
3480done
3481rm -f conftest.$ac_ext
3482CC=$ac_save_CC
3483
3484fi
3485# AC_CACHE_VAL
3486case "x$ac_cv_prog_cc_c89" in
3487  x)
3488    { echo "$as_me:$LINENO: result: none needed" >&5
3489echo "${ECHO_T}none needed" >&6; } ;;
3490  xno)
3491    { echo "$as_me:$LINENO: result: unsupported" >&5
3492echo "${ECHO_T}unsupported" >&6; } ;;
3493  *)
3494    CC="$CC $ac_cv_prog_cc_c89"
3495    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3496echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3497esac
3498
3499
3500ac_ext=c
3501ac_cpp='$CPP $CPPFLAGS'
3502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505
3506depcc="$CC"   am_compiler_list=
3507
3508{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3509echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3510if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3511  echo $ECHO_N "(cached) $ECHO_C" >&6
3512else
3513  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3514  # We make a subdir and do the tests there.  Otherwise we can end up
3515  # making bogus files that we don't know about and never remove.  For
3516  # instance it was reported that on HP-UX the gcc test will end up
3517  # making a dummy file named `D' -- because `-MD' means `put the output
3518  # in D'.
3519  mkdir conftest.dir
3520  # Copy depcomp to subdir because otherwise we won't find it if we're
3521  # using a relative directory.
3522  cp "$am_depcomp" conftest.dir
3523  cd conftest.dir
3524  # We will build objects and dependencies in a subdirectory because
3525  # it helps to detect inapplicable dependency modes.  For instance
3526  # both Tru64's cc and ICC support -MD to output dependencies as a
3527  # side effect of compilation, but ICC will put the dependencies in
3528  # the current directory while Tru64 will put them in the object
3529  # directory.
3530  mkdir sub
3531
3532  am_cv_CC_dependencies_compiler_type=none
3533  if test "$am_compiler_list" = ""; then
3534     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3535  fi
3536  for depmode in $am_compiler_list; do
3537    # Setup a source with many dependencies, because some compilers
3538    # like to wrap large dependency lists on column 80 (with \), and
3539    # we should not choose a depcomp mode which is confused by this.
3540    #
3541    # We need to recreate these files for each test, as the compiler may
3542    # overwrite some of them when testing with obscure command lines.
3543    # This happens at least with the AIX C compiler.
3544    : > sub/conftest.c
3545    for i in 1 2 3 4 5 6; do
3546      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3547      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3548      # Solaris 8's {/usr,}/bin/sh.
3549      touch sub/conftst$i.h
3550    done
3551    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3552
3553    case $depmode in
3554    nosideeffect)
3555      # after this tag, mechanisms are not by side-effect, so they'll
3556      # only be used when explicitly requested
3557      if test "x$enable_dependency_tracking" = xyes; then
3558	continue
3559      else
3560	break
3561      fi
3562      ;;
3563    none) break ;;
3564    esac
3565    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3566    # mode.  It turns out that the SunPro C++ compiler does not properly
3567    # handle `-M -o', and we need to detect this.
3568    if depmode=$depmode \
3569       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3570       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3571       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3572         >/dev/null 2>conftest.err &&
3573       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3574       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3575       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3576      # icc doesn't choke on unknown options, it will just issue warnings
3577      # or remarks (even with -Werror).  So we grep stderr for any message
3578      # that says an option was ignored or not supported.
3579      # When given -MP, icc 7.0 and 7.1 complain thusly:
3580      #   icc: Command line warning: ignoring option '-M'; no argument required
3581      # The diagnosis changed in icc 8.0:
3582      #   icc: Command line remark: option '-MP' not supported
3583      if (grep 'ignoring option' conftest.err ||
3584          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3585        am_cv_CC_dependencies_compiler_type=$depmode
3586        break
3587      fi
3588    fi
3589  done
3590
3591  cd ..
3592  rm -rf conftest.dir
3593else
3594  am_cv_CC_dependencies_compiler_type=none
3595fi
3596
3597fi
3598{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3599echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3600CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3601
3602
3603
3604if
3605  test "x$enable_dependency_tracking" != xno \
3606  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3607  am__fastdepCC_TRUE=
3608  am__fastdepCC_FALSE='#'
3609else
3610  am__fastdepCC_TRUE='#'
3611  am__fastdepCC_FALSE=
3612fi
3613
3614
3615
3616{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3617echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3618if test "${ac_cv_search_strerror+set}" = set; then
3619  echo $ECHO_N "(cached) $ECHO_C" >&6
3620else
3621  ac_func_search_save_LIBS=$LIBS
3622cat >conftest.$ac_ext <<_ACEOF
3623/* confdefs.h.  */
3624_ACEOF
3625cat confdefs.h >>conftest.$ac_ext
3626cat >>conftest.$ac_ext <<_ACEOF
3627/* end confdefs.h.  */
3628
3629/* Override any GCC internal prototype to avoid an error.
3630   Use char because int might match the return type of a GCC
3631   builtin and then its argument prototype would still apply.  */
3632#ifdef __cplusplus
3633extern "C"
3634#endif
3635char strerror ();
3636int
3637main ()
3638{
3639return strerror ();
3640  ;
3641  return 0;
3642}
3643_ACEOF
3644for ac_lib in '' cposix; do
3645  if test -z "$ac_lib"; then
3646    ac_res="none required"
3647  else
3648    ac_res=-l$ac_lib
3649    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3650  fi
3651  rm -f conftest.$ac_objext conftest$ac_exeext
3652if { (ac_try="$ac_link"
3653case "(($ac_try" in
3654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655  *) ac_try_echo=$ac_try;;
3656esac
3657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658  (eval "$ac_link") 2>conftest.er1
3659  ac_status=$?
3660  grep -v '^ *+' conftest.er1 >conftest.err
3661  rm -f conftest.er1
3662  cat conftest.err >&5
3663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664  (exit $ac_status); } && {
3665	 test -z "$ac_c_werror_flag" ||
3666	 test ! -s conftest.err
3667       } && test -s conftest$ac_exeext &&
3668       $as_test_x conftest$ac_exeext; then
3669  ac_cv_search_strerror=$ac_res
3670else
3671  echo "$as_me: failed program was:" >&5
3672sed 's/^/| /' conftest.$ac_ext >&5
3673
3674
3675fi
3676
3677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3678      conftest$ac_exeext
3679  if test "${ac_cv_search_strerror+set}" = set; then
3680  break
3681fi
3682done
3683if test "${ac_cv_search_strerror+set}" = set; then
3684  :
3685else
3686  ac_cv_search_strerror=no
3687fi
3688rm conftest.$ac_ext
3689LIBS=$ac_func_search_save_LIBS
3690fi
3691{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3692echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3693ac_res=$ac_cv_search_strerror
3694if test "$ac_res" != no; then
3695  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3696
3697fi
3698
3699
3700ac_ext=c
3701ac_cpp='$CPP $CPPFLAGS'
3702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705if test -n "$ac_tool_prefix"; then
3706  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3707set dummy ${ac_tool_prefix}gcc; ac_word=$2
3708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3710if test "${ac_cv_prog_CC+set}" = set; then
3711  echo $ECHO_N "(cached) $ECHO_C" >&6
3712else
3713  if test -n "$CC"; then
3714  ac_cv_prog_CC="$CC" # Let the user override the test.
3715else
3716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717for as_dir in $PATH
3718do
3719  IFS=$as_save_IFS
3720  test -z "$as_dir" && as_dir=.
3721  for ac_exec_ext in '' $ac_executable_extensions; do
3722  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3724    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725    break 2
3726  fi
3727done
3728done
3729IFS=$as_save_IFS
3730
3731fi
3732fi
3733CC=$ac_cv_prog_CC
3734if test -n "$CC"; then
3735  { echo "$as_me:$LINENO: result: $CC" >&5
3736echo "${ECHO_T}$CC" >&6; }
3737else
3738  { echo "$as_me:$LINENO: result: no" >&5
3739echo "${ECHO_T}no" >&6; }
3740fi
3741
3742
3743fi
3744if test -z "$ac_cv_prog_CC"; then
3745  ac_ct_CC=$CC
3746  # Extract the first word of "gcc", so it can be a program name with args.
3747set dummy gcc; ac_word=$2
3748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3750if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3751  echo $ECHO_N "(cached) $ECHO_C" >&6
3752else
3753  if test -n "$ac_ct_CC"; then
3754  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3755else
3756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757for as_dir in $PATH
3758do
3759  IFS=$as_save_IFS
3760  test -z "$as_dir" && as_dir=.
3761  for ac_exec_ext in '' $ac_executable_extensions; do
3762  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3763    ac_cv_prog_ac_ct_CC="gcc"
3764    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3765    break 2
3766  fi
3767done
3768done
3769IFS=$as_save_IFS
3770
3771fi
3772fi
3773ac_ct_CC=$ac_cv_prog_ac_ct_CC
3774if test -n "$ac_ct_CC"; then
3775  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3776echo "${ECHO_T}$ac_ct_CC" >&6; }
3777else
3778  { echo "$as_me:$LINENO: result: no" >&5
3779echo "${ECHO_T}no" >&6; }
3780fi
3781
3782  if test "x$ac_ct_CC" = x; then
3783    CC=""
3784  else
3785    case $cross_compiling:$ac_tool_warned in
3786yes:)
3787{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3788whose name does not start with the host triplet.  If you think this
3789configuration is useful to you, please write to autoconf@gnu.org." >&5
3790echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3791whose name does not start with the host triplet.  If you think this
3792configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3793ac_tool_warned=yes ;;
3794esac
3795    CC=$ac_ct_CC
3796  fi
3797else
3798  CC="$ac_cv_prog_CC"
3799fi
3800
3801if test -z "$CC"; then
3802          if test -n "$ac_tool_prefix"; then
3803    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3804set dummy ${ac_tool_prefix}cc; ac_word=$2
3805{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3807if test "${ac_cv_prog_CC+set}" = set; then
3808  echo $ECHO_N "(cached) $ECHO_C" >&6
3809else
3810  if test -n "$CC"; then
3811  ac_cv_prog_CC="$CC" # Let the user override the test.
3812else
3813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814for as_dir in $PATH
3815do
3816  IFS=$as_save_IFS
3817  test -z "$as_dir" && as_dir=.
3818  for ac_exec_ext in '' $ac_executable_extensions; do
3819  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3820    ac_cv_prog_CC="${ac_tool_prefix}cc"
3821    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822    break 2
3823  fi
3824done
3825done
3826IFS=$as_save_IFS
3827
3828fi
3829fi
3830CC=$ac_cv_prog_CC
3831if test -n "$CC"; then
3832  { echo "$as_me:$LINENO: result: $CC" >&5
3833echo "${ECHO_T}$CC" >&6; }
3834else
3835  { echo "$as_me:$LINENO: result: no" >&5
3836echo "${ECHO_T}no" >&6; }
3837fi
3838
3839
3840  fi
3841fi
3842if test -z "$CC"; then
3843  # Extract the first word of "cc", so it can be a program name with args.
3844set dummy cc; ac_word=$2
3845{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3847if test "${ac_cv_prog_CC+set}" = set; then
3848  echo $ECHO_N "(cached) $ECHO_C" >&6
3849else
3850  if test -n "$CC"; then
3851  ac_cv_prog_CC="$CC" # Let the user override the test.
3852else
3853  ac_prog_rejected=no
3854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH
3856do
3857  IFS=$as_save_IFS
3858  test -z "$as_dir" && as_dir=.
3859  for ac_exec_ext in '' $ac_executable_extensions; do
3860  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3861    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3862       ac_prog_rejected=yes
3863       continue
3864     fi
3865    ac_cv_prog_CC="cc"
3866    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3867    break 2
3868  fi
3869done
3870done
3871IFS=$as_save_IFS
3872
3873if test $ac_prog_rejected = yes; then
3874  # We found a bogon in the path, so make sure we never use it.
3875  set dummy $ac_cv_prog_CC
3876  shift
3877  if test $# != 0; then
3878    # We chose a different compiler from the bogus one.
3879    # However, it has the same basename, so the bogon will be chosen
3880    # first if we set CC to just the basename; use the full file name.
3881    shift
3882    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3883  fi
3884fi
3885fi
3886fi
3887CC=$ac_cv_prog_CC
3888if test -n "$CC"; then
3889  { echo "$as_me:$LINENO: result: $CC" >&5
3890echo "${ECHO_T}$CC" >&6; }
3891else
3892  { echo "$as_me:$LINENO: result: no" >&5
3893echo "${ECHO_T}no" >&6; }
3894fi
3895
3896
3897fi
3898if test -z "$CC"; then
3899  if test -n "$ac_tool_prefix"; then
3900  for ac_prog in cl.exe
3901  do
3902    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3903set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3906if test "${ac_cv_prog_CC+set}" = set; then
3907  echo $ECHO_N "(cached) $ECHO_C" >&6
3908else
3909  if test -n "$CC"; then
3910  ac_cv_prog_CC="$CC" # Let the user override the test.
3911else
3912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH
3914do
3915  IFS=$as_save_IFS
3916  test -z "$as_dir" && as_dir=.
3917  for ac_exec_ext in '' $ac_executable_extensions; do
3918  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3919    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3920    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921    break 2
3922  fi
3923done
3924done
3925IFS=$as_save_IFS
3926
3927fi
3928fi
3929CC=$ac_cv_prog_CC
3930if test -n "$CC"; then
3931  { echo "$as_me:$LINENO: result: $CC" >&5
3932echo "${ECHO_T}$CC" >&6; }
3933else
3934  { echo "$as_me:$LINENO: result: no" >&5
3935echo "${ECHO_T}no" >&6; }
3936fi
3937
3938
3939    test -n "$CC" && break
3940  done
3941fi
3942if test -z "$CC"; then
3943  ac_ct_CC=$CC
3944  for ac_prog in cl.exe
3945do
3946  # Extract the first word of "$ac_prog", so it can be a program name with args.
3947set dummy $ac_prog; ac_word=$2
3948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3950if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3951  echo $ECHO_N "(cached) $ECHO_C" >&6
3952else
3953  if test -n "$ac_ct_CC"; then
3954  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3955else
3956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957for as_dir in $PATH
3958do
3959  IFS=$as_save_IFS
3960  test -z "$as_dir" && as_dir=.
3961  for ac_exec_ext in '' $ac_executable_extensions; do
3962  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963    ac_cv_prog_ac_ct_CC="$ac_prog"
3964    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3965    break 2
3966  fi
3967done
3968done
3969IFS=$as_save_IFS
3970
3971fi
3972fi
3973ac_ct_CC=$ac_cv_prog_ac_ct_CC
3974if test -n "$ac_ct_CC"; then
3975  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3976echo "${ECHO_T}$ac_ct_CC" >&6; }
3977else
3978  { echo "$as_me:$LINENO: result: no" >&5
3979echo "${ECHO_T}no" >&6; }
3980fi
3981
3982
3983  test -n "$ac_ct_CC" && break
3984done
3985
3986  if test "x$ac_ct_CC" = x; then
3987    CC=""
3988  else
3989    case $cross_compiling:$ac_tool_warned in
3990yes:)
3991{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3992whose name does not start with the host triplet.  If you think this
3993configuration is useful to you, please write to autoconf@gnu.org." >&5
3994echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3995whose name does not start with the host triplet.  If you think this
3996configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3997ac_tool_warned=yes ;;
3998esac
3999    CC=$ac_ct_CC
4000  fi
4001fi
4002
4003fi
4004
4005
4006test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4007See \`config.log' for more details." >&5
4008echo "$as_me: error: no acceptable C compiler found in \$PATH
4009See \`config.log' for more details." >&2;}
4010   { (exit 1); exit 1; }; }
4011
4012# Provide some information about the compiler.
4013echo "$as_me:$LINENO: checking for C compiler version" >&5
4014ac_compiler=`set X $ac_compile; echo $2`
4015{ (ac_try="$ac_compiler --version >&5"
4016case "(($ac_try" in
4017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018  *) ac_try_echo=$ac_try;;
4019esac
4020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021  (eval "$ac_compiler --version >&5") 2>&5
4022  ac_status=$?
4023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024  (exit $ac_status); }
4025{ (ac_try="$ac_compiler -v >&5"
4026case "(($ac_try" in
4027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028  *) ac_try_echo=$ac_try;;
4029esac
4030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031  (eval "$ac_compiler -v >&5") 2>&5
4032  ac_status=$?
4033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034  (exit $ac_status); }
4035{ (ac_try="$ac_compiler -V >&5"
4036case "(($ac_try" in
4037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038  *) ac_try_echo=$ac_try;;
4039esac
4040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041  (eval "$ac_compiler -V >&5") 2>&5
4042  ac_status=$?
4043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044  (exit $ac_status); }
4045
4046{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4047echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4048if test "${ac_cv_c_compiler_gnu+set}" = set; then
4049  echo $ECHO_N "(cached) $ECHO_C" >&6
4050else
4051  cat >conftest.$ac_ext <<_ACEOF
4052/* confdefs.h.  */
4053_ACEOF
4054cat confdefs.h >>conftest.$ac_ext
4055cat >>conftest.$ac_ext <<_ACEOF
4056/* end confdefs.h.  */
4057
4058int
4059main ()
4060{
4061#ifndef __GNUC__
4062       choke me
4063#endif
4064
4065  ;
4066  return 0;
4067}
4068_ACEOF
4069rm -f conftest.$ac_objext
4070if { (ac_try="$ac_compile"
4071case "(($ac_try" in
4072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073  *) ac_try_echo=$ac_try;;
4074esac
4075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076  (eval "$ac_compile") 2>conftest.er1
4077  ac_status=$?
4078  grep -v '^ *+' conftest.er1 >conftest.err
4079  rm -f conftest.er1
4080  cat conftest.err >&5
4081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082  (exit $ac_status); } && {
4083	 test -z "$ac_c_werror_flag" ||
4084	 test ! -s conftest.err
4085       } && test -s conftest.$ac_objext; then
4086  ac_compiler_gnu=yes
4087else
4088  echo "$as_me: failed program was:" >&5
4089sed 's/^/| /' conftest.$ac_ext >&5
4090
4091	ac_compiler_gnu=no
4092fi
4093
4094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095ac_cv_c_compiler_gnu=$ac_compiler_gnu
4096
4097fi
4098{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4099echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4100GCC=`test $ac_compiler_gnu = yes && echo yes`
4101ac_test_CFLAGS=${CFLAGS+set}
4102ac_save_CFLAGS=$CFLAGS
4103{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4104echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4105if test "${ac_cv_prog_cc_g+set}" = set; then
4106  echo $ECHO_N "(cached) $ECHO_C" >&6
4107else
4108  ac_save_c_werror_flag=$ac_c_werror_flag
4109   ac_c_werror_flag=yes
4110   ac_cv_prog_cc_g=no
4111   CFLAGS="-g"
4112   cat >conftest.$ac_ext <<_ACEOF
4113/* confdefs.h.  */
4114_ACEOF
4115cat confdefs.h >>conftest.$ac_ext
4116cat >>conftest.$ac_ext <<_ACEOF
4117/* end confdefs.h.  */
4118
4119int
4120main ()
4121{
4122
4123  ;
4124  return 0;
4125}
4126_ACEOF
4127rm -f conftest.$ac_objext
4128if { (ac_try="$ac_compile"
4129case "(($ac_try" in
4130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131  *) ac_try_echo=$ac_try;;
4132esac
4133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134  (eval "$ac_compile") 2>conftest.er1
4135  ac_status=$?
4136  grep -v '^ *+' conftest.er1 >conftest.err
4137  rm -f conftest.er1
4138  cat conftest.err >&5
4139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140  (exit $ac_status); } && {
4141	 test -z "$ac_c_werror_flag" ||
4142	 test ! -s conftest.err
4143       } && test -s conftest.$ac_objext; then
4144  ac_cv_prog_cc_g=yes
4145else
4146  echo "$as_me: failed program was:" >&5
4147sed 's/^/| /' conftest.$ac_ext >&5
4148
4149	CFLAGS=""
4150      cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h.  */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
4155/* end confdefs.h.  */
4156
4157int
4158main ()
4159{
4160
4161  ;
4162  return 0;
4163}
4164_ACEOF
4165rm -f conftest.$ac_objext
4166if { (ac_try="$ac_compile"
4167case "(($ac_try" in
4168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169  *) ac_try_echo=$ac_try;;
4170esac
4171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172  (eval "$ac_compile") 2>conftest.er1
4173  ac_status=$?
4174  grep -v '^ *+' conftest.er1 >conftest.err
4175  rm -f conftest.er1
4176  cat conftest.err >&5
4177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178  (exit $ac_status); } && {
4179	 test -z "$ac_c_werror_flag" ||
4180	 test ! -s conftest.err
4181       } && test -s conftest.$ac_objext; then
4182  :
4183else
4184  echo "$as_me: failed program was:" >&5
4185sed 's/^/| /' conftest.$ac_ext >&5
4186
4187	ac_c_werror_flag=$ac_save_c_werror_flag
4188	 CFLAGS="-g"
4189	 cat >conftest.$ac_ext <<_ACEOF
4190/* confdefs.h.  */
4191_ACEOF
4192cat confdefs.h >>conftest.$ac_ext
4193cat >>conftest.$ac_ext <<_ACEOF
4194/* end confdefs.h.  */
4195
4196int
4197main ()
4198{
4199
4200  ;
4201  return 0;
4202}
4203_ACEOF
4204rm -f conftest.$ac_objext
4205if { (ac_try="$ac_compile"
4206case "(($ac_try" in
4207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208  *) ac_try_echo=$ac_try;;
4209esac
4210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211  (eval "$ac_compile") 2>conftest.er1
4212  ac_status=$?
4213  grep -v '^ *+' conftest.er1 >conftest.err
4214  rm -f conftest.er1
4215  cat conftest.err >&5
4216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217  (exit $ac_status); } && {
4218	 test -z "$ac_c_werror_flag" ||
4219	 test ! -s conftest.err
4220       } && test -s conftest.$ac_objext; then
4221  ac_cv_prog_cc_g=yes
4222else
4223  echo "$as_me: failed program was:" >&5
4224sed 's/^/| /' conftest.$ac_ext >&5
4225
4226
4227fi
4228
4229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230fi
4231
4232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233fi
4234
4235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236   ac_c_werror_flag=$ac_save_c_werror_flag
4237fi
4238{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4239echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4240if test "$ac_test_CFLAGS" = set; then
4241  CFLAGS=$ac_save_CFLAGS
4242elif test $ac_cv_prog_cc_g = yes; then
4243  if test "$GCC" = yes; then
4244    CFLAGS="-g -O2"
4245  else
4246    CFLAGS="-g"
4247  fi
4248else
4249  if test "$GCC" = yes; then
4250    CFLAGS="-O2"
4251  else
4252    CFLAGS=
4253  fi
4254fi
4255{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4256echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4257if test "${ac_cv_prog_cc_c89+set}" = set; then
4258  echo $ECHO_N "(cached) $ECHO_C" >&6
4259else
4260  ac_cv_prog_cc_c89=no
4261ac_save_CC=$CC
4262cat >conftest.$ac_ext <<_ACEOF
4263/* confdefs.h.  */
4264_ACEOF
4265cat confdefs.h >>conftest.$ac_ext
4266cat >>conftest.$ac_ext <<_ACEOF
4267/* end confdefs.h.  */
4268#include <stdarg.h>
4269#include <stdio.h>
4270#include <sys/types.h>
4271#include <sys/stat.h>
4272/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4273struct buf { int x; };
4274FILE * (*rcsopen) (struct buf *, struct stat *, int);
4275static char *e (p, i)
4276     char **p;
4277     int i;
4278{
4279  return p[i];
4280}
4281static char *f (char * (*g) (char **, int), char **p, ...)
4282{
4283  char *s;
4284  va_list v;
4285  va_start (v,p);
4286  s = g (p, va_arg (v,int));
4287  va_end (v);
4288  return s;
4289}
4290
4291/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4292   function prototypes and stuff, but not '\xHH' hex character constants.
4293   These don't provoke an error unfortunately, instead are silently treated
4294   as 'x'.  The following induces an error, until -std is added to get
4295   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4296   array size at least.  It's necessary to write '\x00'==0 to get something
4297   that's true only with -std.  */
4298int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4299
4300/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4301   inside strings and character constants.  */
4302#define FOO(x) 'x'
4303int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4304
4305int test (int i, double x);
4306struct s1 {int (*f) (int a);};
4307struct s2 {int (*f) (double a);};
4308int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4309int argc;
4310char **argv;
4311int
4312main ()
4313{
4314return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4315  ;
4316  return 0;
4317}
4318_ACEOF
4319for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4320	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4321do
4322  CC="$ac_save_CC $ac_arg"
4323  rm -f conftest.$ac_objext
4324if { (ac_try="$ac_compile"
4325case "(($ac_try" in
4326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327  *) ac_try_echo=$ac_try;;
4328esac
4329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330  (eval "$ac_compile") 2>conftest.er1
4331  ac_status=$?
4332  grep -v '^ *+' conftest.er1 >conftest.err
4333  rm -f conftest.er1
4334  cat conftest.err >&5
4335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336  (exit $ac_status); } && {
4337	 test -z "$ac_c_werror_flag" ||
4338	 test ! -s conftest.err
4339       } && test -s conftest.$ac_objext; then
4340  ac_cv_prog_cc_c89=$ac_arg
4341else
4342  echo "$as_me: failed program was:" >&5
4343sed 's/^/| /' conftest.$ac_ext >&5
4344
4345
4346fi
4347
4348rm -f core conftest.err conftest.$ac_objext
4349  test "x$ac_cv_prog_cc_c89" != "xno" && break
4350done
4351rm -f conftest.$ac_ext
4352CC=$ac_save_CC
4353
4354fi
4355# AC_CACHE_VAL
4356case "x$ac_cv_prog_cc_c89" in
4357  x)
4358    { echo "$as_me:$LINENO: result: none needed" >&5
4359echo "${ECHO_T}none needed" >&6; } ;;
4360  xno)
4361    { echo "$as_me:$LINENO: result: unsupported" >&5
4362echo "${ECHO_T}unsupported" >&6; } ;;
4363  *)
4364    CC="$CC $ac_cv_prog_cc_c89"
4365    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4366echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4367esac
4368
4369
4370ac_ext=c
4371ac_cpp='$CPP $CPPFLAGS'
4372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4374ac_compiler_gnu=$ac_cv_c_compiler_gnu
4375
4376depcc="$CC"   am_compiler_list=
4377
4378{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4379echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4380if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4381  echo $ECHO_N "(cached) $ECHO_C" >&6
4382else
4383  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4384  # We make a subdir and do the tests there.  Otherwise we can end up
4385  # making bogus files that we don't know about and never remove.  For
4386  # instance it was reported that on HP-UX the gcc test will end up
4387  # making a dummy file named `D' -- because `-MD' means `put the output
4388  # in D'.
4389  mkdir conftest.dir
4390  # Copy depcomp to subdir because otherwise we won't find it if we're
4391  # using a relative directory.
4392  cp "$am_depcomp" conftest.dir
4393  cd conftest.dir
4394  # We will build objects and dependencies in a subdirectory because
4395  # it helps to detect inapplicable dependency modes.  For instance
4396  # both Tru64's cc and ICC support -MD to output dependencies as a
4397  # side effect of compilation, but ICC will put the dependencies in
4398  # the current directory while Tru64 will put them in the object
4399  # directory.
4400  mkdir sub
4401
4402  am_cv_CC_dependencies_compiler_type=none
4403  if test "$am_compiler_list" = ""; then
4404     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4405  fi
4406  for depmode in $am_compiler_list; do
4407    # Setup a source with many dependencies, because some compilers
4408    # like to wrap large dependency lists on column 80 (with \), and
4409    # we should not choose a depcomp mode which is confused by this.
4410    #
4411    # We need to recreate these files for each test, as the compiler may
4412    # overwrite some of them when testing with obscure command lines.
4413    # This happens at least with the AIX C compiler.
4414    : > sub/conftest.c
4415    for i in 1 2 3 4 5 6; do
4416      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4417      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4418      # Solaris 8's {/usr,}/bin/sh.
4419      touch sub/conftst$i.h
4420    done
4421    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4422
4423    case $depmode in
4424    nosideeffect)
4425      # after this tag, mechanisms are not by side-effect, so they'll
4426      # only be used when explicitly requested
4427      if test "x$enable_dependency_tracking" = xyes; then
4428	continue
4429      else
4430	break
4431      fi
4432      ;;
4433    none) break ;;
4434    esac
4435    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4436    # mode.  It turns out that the SunPro C++ compiler does not properly
4437    # handle `-M -o', and we need to detect this.
4438    if depmode=$depmode \
4439       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4440       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4441       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4442         >/dev/null 2>conftest.err &&
4443       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4444       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4445       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4446      # icc doesn't choke on unknown options, it will just issue warnings
4447      # or remarks (even with -Werror).  So we grep stderr for any message
4448      # that says an option was ignored or not supported.
4449      # When given -MP, icc 7.0 and 7.1 complain thusly:
4450      #   icc: Command line warning: ignoring option '-M'; no argument required
4451      # The diagnosis changed in icc 8.0:
4452      #   icc: Command line remark: option '-MP' not supported
4453      if (grep 'ignoring option' conftest.err ||
4454          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4455        am_cv_CC_dependencies_compiler_type=$depmode
4456        break
4457      fi
4458    fi
4459  done
4460
4461  cd ..
4462  rm -rf conftest.dir
4463else
4464  am_cv_CC_dependencies_compiler_type=none
4465fi
4466
4467fi
4468{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4469echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4470CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4471
4472
4473
4474if
4475  test "x$enable_dependency_tracking" != xno \
4476  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4477  am__fastdepCC_TRUE=
4478  am__fastdepCC_FALSE='#'
4479else
4480  am__fastdepCC_TRUE='#'
4481  am__fastdepCC_FALSE=
4482fi
4483
4484
4485ac_ext=c
4486ac_cpp='$CPP $CPPFLAGS'
4487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489ac_compiler_gnu=$ac_cv_c_compiler_gnu
4490{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4491echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4492# On Suns, sometimes $CPP names a directory.
4493if test -n "$CPP" && test -d "$CPP"; then
4494  CPP=
4495fi
4496if test -z "$CPP"; then
4497  if test "${ac_cv_prog_CPP+set}" = set; then
4498  echo $ECHO_N "(cached) $ECHO_C" >&6
4499else
4500      # Double quotes because CPP needs to be expanded
4501    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4502    do
4503      ac_preproc_ok=false
4504for ac_c_preproc_warn_flag in '' yes
4505do
4506  # Use a header file that comes with gcc, so configuring glibc
4507  # with a fresh cross-compiler works.
4508  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4509  # <limits.h> exists even on freestanding compilers.
4510  # On the NeXT, cc -E runs the code through the compiler's parser,
4511  # not just through cpp. "Syntax error" is here to catch this case.
4512  cat >conftest.$ac_ext <<_ACEOF
4513/* confdefs.h.  */
4514_ACEOF
4515cat confdefs.h >>conftest.$ac_ext
4516cat >>conftest.$ac_ext <<_ACEOF
4517/* end confdefs.h.  */
4518#ifdef __STDC__
4519# include <limits.h>
4520#else
4521# include <assert.h>
4522#endif
4523		     Syntax error
4524_ACEOF
4525if { (ac_try="$ac_cpp conftest.$ac_ext"
4526case "(($ac_try" in
4527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528  *) ac_try_echo=$ac_try;;
4529esac
4530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4532  ac_status=$?
4533  grep -v '^ *+' conftest.er1 >conftest.err
4534  rm -f conftest.er1
4535  cat conftest.err >&5
4536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537  (exit $ac_status); } >/dev/null && {
4538	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4539	 test ! -s conftest.err
4540       }; then
4541  :
4542else
4543  echo "$as_me: failed program was:" >&5
4544sed 's/^/| /' conftest.$ac_ext >&5
4545
4546  # Broken: fails on valid input.
4547continue
4548fi
4549
4550rm -f conftest.err conftest.$ac_ext
4551
4552  # OK, works on sane cases.  Now check whether nonexistent headers
4553  # can be detected and how.
4554  cat >conftest.$ac_ext <<_ACEOF
4555/* confdefs.h.  */
4556_ACEOF
4557cat confdefs.h >>conftest.$ac_ext
4558cat >>conftest.$ac_ext <<_ACEOF
4559/* end confdefs.h.  */
4560#include <ac_nonexistent.h>
4561_ACEOF
4562if { (ac_try="$ac_cpp conftest.$ac_ext"
4563case "(($ac_try" in
4564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565  *) ac_try_echo=$ac_try;;
4566esac
4567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4569  ac_status=$?
4570  grep -v '^ *+' conftest.er1 >conftest.err
4571  rm -f conftest.er1
4572  cat conftest.err >&5
4573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574  (exit $ac_status); } >/dev/null && {
4575	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4576	 test ! -s conftest.err
4577       }; then
4578  # Broken: success on invalid input.
4579continue
4580else
4581  echo "$as_me: failed program was:" >&5
4582sed 's/^/| /' conftest.$ac_ext >&5
4583
4584  # Passes both tests.
4585ac_preproc_ok=:
4586break
4587fi
4588
4589rm -f conftest.err conftest.$ac_ext
4590
4591done
4592# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4593rm -f conftest.err conftest.$ac_ext
4594if $ac_preproc_ok; then
4595  break
4596fi
4597
4598    done
4599    ac_cv_prog_CPP=$CPP
4600
4601fi
4602  CPP=$ac_cv_prog_CPP
4603else
4604  ac_cv_prog_CPP=$CPP
4605fi
4606{ echo "$as_me:$LINENO: result: $CPP" >&5
4607echo "${ECHO_T}$CPP" >&6; }
4608ac_preproc_ok=false
4609for ac_c_preproc_warn_flag in '' yes
4610do
4611  # Use a header file that comes with gcc, so configuring glibc
4612  # with a fresh cross-compiler works.
4613  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4614  # <limits.h> exists even on freestanding compilers.
4615  # On the NeXT, cc -E runs the code through the compiler's parser,
4616  # not just through cpp. "Syntax error" is here to catch this case.
4617  cat >conftest.$ac_ext <<_ACEOF
4618/* confdefs.h.  */
4619_ACEOF
4620cat confdefs.h >>conftest.$ac_ext
4621cat >>conftest.$ac_ext <<_ACEOF
4622/* end confdefs.h.  */
4623#ifdef __STDC__
4624# include <limits.h>
4625#else
4626# include <assert.h>
4627#endif
4628		     Syntax error
4629_ACEOF
4630if { (ac_try="$ac_cpp conftest.$ac_ext"
4631case "(($ac_try" in
4632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633  *) ac_try_echo=$ac_try;;
4634esac
4635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4636  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4637  ac_status=$?
4638  grep -v '^ *+' conftest.er1 >conftest.err
4639  rm -f conftest.er1
4640  cat conftest.err >&5
4641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642  (exit $ac_status); } >/dev/null && {
4643	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4644	 test ! -s conftest.err
4645       }; then
4646  :
4647else
4648  echo "$as_me: failed program was:" >&5
4649sed 's/^/| /' conftest.$ac_ext >&5
4650
4651  # Broken: fails on valid input.
4652continue
4653fi
4654
4655rm -f conftest.err conftest.$ac_ext
4656
4657  # OK, works on sane cases.  Now check whether nonexistent headers
4658  # can be detected and how.
4659  cat >conftest.$ac_ext <<_ACEOF
4660/* confdefs.h.  */
4661_ACEOF
4662cat confdefs.h >>conftest.$ac_ext
4663cat >>conftest.$ac_ext <<_ACEOF
4664/* end confdefs.h.  */
4665#include <ac_nonexistent.h>
4666_ACEOF
4667if { (ac_try="$ac_cpp conftest.$ac_ext"
4668case "(($ac_try" in
4669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670  *) ac_try_echo=$ac_try;;
4671esac
4672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4673  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4674  ac_status=$?
4675  grep -v '^ *+' conftest.er1 >conftest.err
4676  rm -f conftest.er1
4677  cat conftest.err >&5
4678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679  (exit $ac_status); } >/dev/null && {
4680	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4681	 test ! -s conftest.err
4682       }; then
4683  # Broken: success on invalid input.
4684continue
4685else
4686  echo "$as_me: failed program was:" >&5
4687sed 's/^/| /' conftest.$ac_ext >&5
4688
4689  # Passes both tests.
4690ac_preproc_ok=:
4691break
4692fi
4693
4694rm -f conftest.err conftest.$ac_ext
4695
4696done
4697# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4698rm -f conftest.err conftest.$ac_ext
4699if $ac_preproc_ok; then
4700  :
4701else
4702  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4703See \`config.log' for more details." >&5
4704echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4705See \`config.log' for more details." >&2;}
4706   { (exit 1); exit 1; }; }
4707fi
4708
4709ac_ext=c
4710ac_cpp='$CPP $CPPFLAGS'
4711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713ac_compiler_gnu=$ac_cv_c_compiler_gnu
4714
4715
4716{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4717echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4718if test "${ac_cv_path_GREP+set}" = set; then
4719  echo $ECHO_N "(cached) $ECHO_C" >&6
4720else
4721  # Extract the first word of "grep ggrep" to use in msg output
4722if test -z "$GREP"; then
4723set dummy grep ggrep; ac_prog_name=$2
4724if test "${ac_cv_path_GREP+set}" = set; then
4725  echo $ECHO_N "(cached) $ECHO_C" >&6
4726else
4727  ac_path_GREP_found=false
4728# Loop through the user's path and test for each of PROGNAME-LIST
4729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4731do
4732  IFS=$as_save_IFS
4733  test -z "$as_dir" && as_dir=.
4734  for ac_prog in grep ggrep; do
4735  for ac_exec_ext in '' $ac_executable_extensions; do
4736    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4737    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4738    # Check for GNU ac_path_GREP and select it if it is found.
4739  # Check for GNU $ac_path_GREP
4740case `"$ac_path_GREP" --version 2>&1` in
4741*GNU*)
4742  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4743*)
4744  ac_count=0
4745  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4746  while :
4747  do
4748    cat "conftest.in" "conftest.in" >"conftest.tmp"
4749    mv "conftest.tmp" "conftest.in"
4750    cp "conftest.in" "conftest.nl"
4751    echo 'GREP' >> "conftest.nl"
4752    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4753    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4754    ac_count=`expr $ac_count + 1`
4755    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4756      # Best one so far, save it but keep looking for a better one
4757      ac_cv_path_GREP="$ac_path_GREP"
4758      ac_path_GREP_max=$ac_count
4759    fi
4760    # 10*(2^10) chars as input seems more than enough
4761    test $ac_count -gt 10 && break
4762  done
4763  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4764esac
4765
4766
4767    $ac_path_GREP_found && break 3
4768  done
4769done
4770
4771done
4772IFS=$as_save_IFS
4773
4774
4775fi
4776
4777GREP="$ac_cv_path_GREP"
4778if test -z "$GREP"; then
4779  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4780echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4781   { (exit 1); exit 1; }; }
4782fi
4783
4784else
4785  ac_cv_path_GREP=$GREP
4786fi
4787
4788
4789fi
4790{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4791echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4792 GREP="$ac_cv_path_GREP"
4793
4794
4795{ echo "$as_me:$LINENO: checking for egrep" >&5
4796echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4797if test "${ac_cv_path_EGREP+set}" = set; then
4798  echo $ECHO_N "(cached) $ECHO_C" >&6
4799else
4800  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4801   then ac_cv_path_EGREP="$GREP -E"
4802   else
4803     # Extract the first word of "egrep" to use in msg output
4804if test -z "$EGREP"; then
4805set dummy egrep; ac_prog_name=$2
4806if test "${ac_cv_path_EGREP+set}" = set; then
4807  echo $ECHO_N "(cached) $ECHO_C" >&6
4808else
4809  ac_path_EGREP_found=false
4810# Loop through the user's path and test for each of PROGNAME-LIST
4811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4813do
4814  IFS=$as_save_IFS
4815  test -z "$as_dir" && as_dir=.
4816  for ac_prog in egrep; do
4817  for ac_exec_ext in '' $ac_executable_extensions; do
4818    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4819    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4820    # Check for GNU ac_path_EGREP and select it if it is found.
4821  # Check for GNU $ac_path_EGREP
4822case `"$ac_path_EGREP" --version 2>&1` in
4823*GNU*)
4824  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4825*)
4826  ac_count=0
4827  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4828  while :
4829  do
4830    cat "conftest.in" "conftest.in" >"conftest.tmp"
4831    mv "conftest.tmp" "conftest.in"
4832    cp "conftest.in" "conftest.nl"
4833    echo 'EGREP' >> "conftest.nl"
4834    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4835    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4836    ac_count=`expr $ac_count + 1`
4837    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4838      # Best one so far, save it but keep looking for a better one
4839      ac_cv_path_EGREP="$ac_path_EGREP"
4840      ac_path_EGREP_max=$ac_count
4841    fi
4842    # 10*(2^10) chars as input seems more than enough
4843    test $ac_count -gt 10 && break
4844  done
4845  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4846esac
4847
4848
4849    $ac_path_EGREP_found && break 3
4850  done
4851done
4852
4853done
4854IFS=$as_save_IFS
4855
4856
4857fi
4858
4859EGREP="$ac_cv_path_EGREP"
4860if test -z "$EGREP"; then
4861  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4862echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4863   { (exit 1); exit 1; }; }
4864fi
4865
4866else
4867  ac_cv_path_EGREP=$EGREP
4868fi
4869
4870
4871   fi
4872fi
4873{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4874echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4875 EGREP="$ac_cv_path_EGREP"
4876
4877
4878if test $ac_cv_c_compiler_gnu = yes; then
4879    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4880echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4881if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4882  echo $ECHO_N "(cached) $ECHO_C" >&6
4883else
4884    ac_pattern="Autoconf.*'x'"
4885  cat >conftest.$ac_ext <<_ACEOF
4886/* confdefs.h.  */
4887_ACEOF
4888cat confdefs.h >>conftest.$ac_ext
4889cat >>conftest.$ac_ext <<_ACEOF
4890/* end confdefs.h.  */
4891#include <sgtty.h>
4892Autoconf TIOCGETP
4893_ACEOF
4894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4895  $EGREP "$ac_pattern" >/dev/null 2>&1; then
4896  ac_cv_prog_gcc_traditional=yes
4897else
4898  ac_cv_prog_gcc_traditional=no
4899fi
4900rm -f conftest*
4901
4902
4903  if test $ac_cv_prog_gcc_traditional = no; then
4904    cat >conftest.$ac_ext <<_ACEOF
4905/* confdefs.h.  */
4906_ACEOF
4907cat confdefs.h >>conftest.$ac_ext
4908cat >>conftest.$ac_ext <<_ACEOF
4909/* end confdefs.h.  */
4910#include <termio.h>
4911Autoconf TCGETA
4912_ACEOF
4913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4914  $EGREP "$ac_pattern" >/dev/null 2>&1; then
4915  ac_cv_prog_gcc_traditional=yes
4916fi
4917rm -f conftest*
4918
4919  fi
4920fi
4921{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4922echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4923  if test $ac_cv_prog_gcc_traditional = yes; then
4924    CC="$CC -traditional"
4925  fi
4926fi
4927
4928{ echo "$as_me:$LINENO: checking for function prototypes" >&5
4929echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
4930if test "$ac_cv_prog_cc_c89" != no; then
4931  { echo "$as_me:$LINENO: result: yes" >&5
4932echo "${ECHO_T}yes" >&6; }
4933
4934cat >>confdefs.h <<\_ACEOF
4935#define PROTOTYPES 1
4936_ACEOF
4937
4938
4939cat >>confdefs.h <<\_ACEOF
4940#define __PROTOTYPES 1
4941_ACEOF
4942
4943else
4944  { echo "$as_me:$LINENO: result: no" >&5
4945echo "${ECHO_T}no" >&6; }
4946fi
4947
4948{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4949echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4950if test "${ac_cv_header_stdc+set}" = set; then
4951  echo $ECHO_N "(cached) $ECHO_C" >&6
4952else
4953  cat >conftest.$ac_ext <<_ACEOF
4954/* confdefs.h.  */
4955_ACEOF
4956cat confdefs.h >>conftest.$ac_ext
4957cat >>conftest.$ac_ext <<_ACEOF
4958/* end confdefs.h.  */
4959#include <stdlib.h>
4960#include <stdarg.h>
4961#include <string.h>
4962#include <float.h>
4963
4964int
4965main ()
4966{
4967
4968  ;
4969  return 0;
4970}
4971_ACEOF
4972rm -f conftest.$ac_objext
4973if { (ac_try="$ac_compile"
4974case "(($ac_try" in
4975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976  *) ac_try_echo=$ac_try;;
4977esac
4978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4979  (eval "$ac_compile") 2>conftest.er1
4980  ac_status=$?
4981  grep -v '^ *+' conftest.er1 >conftest.err
4982  rm -f conftest.er1
4983  cat conftest.err >&5
4984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985  (exit $ac_status); } && {
4986	 test -z "$ac_c_werror_flag" ||
4987	 test ! -s conftest.err
4988       } && test -s conftest.$ac_objext; then
4989  ac_cv_header_stdc=yes
4990else
4991  echo "$as_me: failed program was:" >&5
4992sed 's/^/| /' conftest.$ac_ext >&5
4993
4994	ac_cv_header_stdc=no
4995fi
4996
4997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998
4999if test $ac_cv_header_stdc = yes; then
5000  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5001  cat >conftest.$ac_ext <<_ACEOF
5002/* confdefs.h.  */
5003_ACEOF
5004cat confdefs.h >>conftest.$ac_ext
5005cat >>conftest.$ac_ext <<_ACEOF
5006/* end confdefs.h.  */
5007#include <string.h>
5008
5009_ACEOF
5010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5011  $EGREP "memchr" >/dev/null 2>&1; then
5012  :
5013else
5014  ac_cv_header_stdc=no
5015fi
5016rm -f conftest*
5017
5018fi
5019
5020if test $ac_cv_header_stdc = yes; then
5021  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5022  cat >conftest.$ac_ext <<_ACEOF
5023/* confdefs.h.  */
5024_ACEOF
5025cat confdefs.h >>conftest.$ac_ext
5026cat >>conftest.$ac_ext <<_ACEOF
5027/* end confdefs.h.  */
5028#include <stdlib.h>
5029
5030_ACEOF
5031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5032  $EGREP "free" >/dev/null 2>&1; then
5033  :
5034else
5035  ac_cv_header_stdc=no
5036fi
5037rm -f conftest*
5038
5039fi
5040
5041if test $ac_cv_header_stdc = yes; then
5042  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5043  if test "$cross_compiling" = yes; then
5044  :
5045else
5046  cat >conftest.$ac_ext <<_ACEOF
5047/* confdefs.h.  */
5048_ACEOF
5049cat confdefs.h >>conftest.$ac_ext
5050cat >>conftest.$ac_ext <<_ACEOF
5051/* end confdefs.h.  */
5052#include <ctype.h>
5053#include <stdlib.h>
5054#if ((' ' & 0x0FF) == 0x020)
5055# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5056# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5057#else
5058# define ISLOWER(c) \
5059		   (('a' <= (c) && (c) <= 'i') \
5060		     || ('j' <= (c) && (c) <= 'r') \
5061		     || ('s' <= (c) && (c) <= 'z'))
5062# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5063#endif
5064
5065#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5066int
5067main ()
5068{
5069  int i;
5070  for (i = 0; i < 256; i++)
5071    if (XOR (islower (i), ISLOWER (i))
5072	|| toupper (i) != TOUPPER (i))
5073      return 2;
5074  return 0;
5075}
5076_ACEOF
5077rm -f conftest$ac_exeext
5078if { (ac_try="$ac_link"
5079case "(($ac_try" in
5080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081  *) ac_try_echo=$ac_try;;
5082esac
5083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084  (eval "$ac_link") 2>&5
5085  ac_status=$?
5086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5088  { (case "(($ac_try" in
5089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090  *) ac_try_echo=$ac_try;;
5091esac
5092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5093  (eval "$ac_try") 2>&5
5094  ac_status=$?
5095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096  (exit $ac_status); }; }; then
5097  :
5098else
5099  echo "$as_me: program exited with status $ac_status" >&5
5100echo "$as_me: failed program was:" >&5
5101sed 's/^/| /' conftest.$ac_ext >&5
5102
5103( exit $ac_status )
5104ac_cv_header_stdc=no
5105fi
5106rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5107fi
5108
5109
5110fi
5111fi
5112{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5113echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5114if test $ac_cv_header_stdc = yes; then
5115
5116cat >>confdefs.h <<\_ACEOF
5117#define STDC_HEADERS 1
5118_ACEOF
5119
5120fi
5121
5122# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5133		  inttypes.h stdint.h unistd.h
5134do
5135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5136{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5139  echo $ECHO_N "(cached) $ECHO_C" >&6
5140else
5141  cat >conftest.$ac_ext <<_ACEOF
5142/* confdefs.h.  */
5143_ACEOF
5144cat confdefs.h >>conftest.$ac_ext
5145cat >>conftest.$ac_ext <<_ACEOF
5146/* end confdefs.h.  */
5147$ac_includes_default
5148
5149#include <$ac_header>
5150_ACEOF
5151rm -f conftest.$ac_objext
5152if { (ac_try="$ac_compile"
5153case "(($ac_try" in
5154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155  *) ac_try_echo=$ac_try;;
5156esac
5157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158  (eval "$ac_compile") 2>conftest.er1
5159  ac_status=$?
5160  grep -v '^ *+' conftest.er1 >conftest.err
5161  rm -f conftest.er1
5162  cat conftest.err >&5
5163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164  (exit $ac_status); } && {
5165	 test -z "$ac_c_werror_flag" ||
5166	 test ! -s conftest.err
5167       } && test -s conftest.$ac_objext; then
5168  eval "$as_ac_Header=yes"
5169else
5170  echo "$as_me: failed program was:" >&5
5171sed 's/^/| /' conftest.$ac_ext >&5
5172
5173	eval "$as_ac_Header=no"
5174fi
5175
5176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177fi
5178ac_res=`eval echo '${'$as_ac_Header'}'`
5179	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5180echo "${ECHO_T}$ac_res" >&6; }
5181if test `eval echo '${'$as_ac_Header'}'` = yes; then
5182  cat >>confdefs.h <<_ACEOF
5183#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5184_ACEOF
5185
5186fi
5187
5188done
5189
5190
5191
5192if test "$ac_cv_prog_cc_stdc" != no; then
5193  U= ANSI2KNR=
5194else
5195  U=_ ANSI2KNR=./ansi2knr
5196fi
5197# Ensure some checks needed by ansi2knr itself.
5198
5199
5200for ac_header in string.h
5201do
5202as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5204  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5207  echo $ECHO_N "(cached) $ECHO_C" >&6
5208fi
5209ac_res=`eval echo '${'$as_ac_Header'}'`
5210	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5211echo "${ECHO_T}$ac_res" >&6; }
5212else
5213  # Is the header compilable?
5214{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5215echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5216cat >conftest.$ac_ext <<_ACEOF
5217/* confdefs.h.  */
5218_ACEOF
5219cat confdefs.h >>conftest.$ac_ext
5220cat >>conftest.$ac_ext <<_ACEOF
5221/* end confdefs.h.  */
5222$ac_includes_default
5223#include <$ac_header>
5224_ACEOF
5225rm -f conftest.$ac_objext
5226if { (ac_try="$ac_compile"
5227case "(($ac_try" in
5228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229  *) ac_try_echo=$ac_try;;
5230esac
5231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232  (eval "$ac_compile") 2>conftest.er1
5233  ac_status=$?
5234  grep -v '^ *+' conftest.er1 >conftest.err
5235  rm -f conftest.er1
5236  cat conftest.err >&5
5237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238  (exit $ac_status); } && {
5239	 test -z "$ac_c_werror_flag" ||
5240	 test ! -s conftest.err
5241       } && test -s conftest.$ac_objext; then
5242  ac_header_compiler=yes
5243else
5244  echo "$as_me: failed program was:" >&5
5245sed 's/^/| /' conftest.$ac_ext >&5
5246
5247	ac_header_compiler=no
5248fi
5249
5250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5252echo "${ECHO_T}$ac_header_compiler" >&6; }
5253
5254# Is the header present?
5255{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5256echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5257cat >conftest.$ac_ext <<_ACEOF
5258/* confdefs.h.  */
5259_ACEOF
5260cat confdefs.h >>conftest.$ac_ext
5261cat >>conftest.$ac_ext <<_ACEOF
5262/* end confdefs.h.  */
5263#include <$ac_header>
5264_ACEOF
5265if { (ac_try="$ac_cpp conftest.$ac_ext"
5266case "(($ac_try" in
5267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268  *) ac_try_echo=$ac_try;;
5269esac
5270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5272  ac_status=$?
5273  grep -v '^ *+' conftest.er1 >conftest.err
5274  rm -f conftest.er1
5275  cat conftest.err >&5
5276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277  (exit $ac_status); } >/dev/null && {
5278	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5279	 test ! -s conftest.err
5280       }; then
5281  ac_header_preproc=yes
5282else
5283  echo "$as_me: failed program was:" >&5
5284sed 's/^/| /' conftest.$ac_ext >&5
5285
5286  ac_header_preproc=no
5287fi
5288
5289rm -f conftest.err conftest.$ac_ext
5290{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5291echo "${ECHO_T}$ac_header_preproc" >&6; }
5292
5293# So?  What about this header?
5294case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5295  yes:no: )
5296    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5297echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5298    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5299echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5300    ac_header_preproc=yes
5301    ;;
5302  no:yes:* )
5303    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5304echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5305    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5306echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5307    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5308echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5309    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5310echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5311    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5312echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5313    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5314echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5315
5316    ;;
5317esac
5318{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5321  echo $ECHO_N "(cached) $ECHO_C" >&6
5322else
5323  eval "$as_ac_Header=\$ac_header_preproc"
5324fi
5325ac_res=`eval echo '${'$as_ac_Header'}'`
5326	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5327echo "${ECHO_T}$ac_res" >&6; }
5328
5329fi
5330if test `eval echo '${'$as_ac_Header'}'` = yes; then
5331  cat >>confdefs.h <<_ACEOF
5332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5333_ACEOF
5334
5335fi
5336
5337done
5338
5339
5340
5341# Check whether --enable-shared was given.
5342if test "${enable_shared+set}" = set; then
5343  enableval=$enable_shared; p=${PACKAGE-default}
5344    case $enableval in
5345    yes) enable_shared=yes ;;
5346    no) enable_shared=no ;;
5347    *)
5348      enable_shared=no
5349      # Look at the argument we got.  We use all the common list separators.
5350      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5351      for pkg in $enableval; do
5352	IFS="$lt_save_ifs"
5353	if test "X$pkg" = "X$p"; then
5354	  enable_shared=yes
5355	fi
5356      done
5357      IFS="$lt_save_ifs"
5358      ;;
5359    esac
5360else
5361  enable_shared=yes
5362fi
5363
5364
5365# Check whether --enable-static was given.
5366if test "${enable_static+set}" = set; then
5367  enableval=$enable_static; p=${PACKAGE-default}
5368    case $enableval in
5369    yes) enable_static=yes ;;
5370    no) enable_static=no ;;
5371    *)
5372     enable_static=no
5373      # Look at the argument we got.  We use all the common list separators.
5374      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5375      for pkg in $enableval; do
5376	IFS="$lt_save_ifs"
5377	if test "X$pkg" = "X$p"; then
5378	  enable_static=yes
5379	fi
5380      done
5381      IFS="$lt_save_ifs"
5382      ;;
5383    esac
5384else
5385  enable_static=yes
5386fi
5387
5388
5389# Check whether --enable-fast-install was given.
5390if test "${enable_fast_install+set}" = set; then
5391  enableval=$enable_fast_install; p=${PACKAGE-default}
5392    case $enableval in
5393    yes) enable_fast_install=yes ;;
5394    no) enable_fast_install=no ;;
5395    *)
5396      enable_fast_install=no
5397      # Look at the argument we got.  We use all the common list separators.
5398      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5399      for pkg in $enableval; do
5400	IFS="$lt_save_ifs"
5401	if test "X$pkg" = "X$p"; then
5402	  enable_fast_install=yes
5403	fi
5404      done
5405      IFS="$lt_save_ifs"
5406      ;;
5407    esac
5408else
5409  enable_fast_install=yes
5410fi
5411
5412
5413{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5414echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5415if test "${lt_cv_path_SED+set}" = set; then
5416  echo $ECHO_N "(cached) $ECHO_C" >&6
5417else
5418  # Loop through the user's path and test for sed and gsed.
5419# Then use that list of sed's as ones to test for truncation.
5420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421for as_dir in $PATH
5422do
5423  IFS=$as_save_IFS
5424  test -z "$as_dir" && as_dir=.
5425  for lt_ac_prog in sed gsed; do
5426    for ac_exec_ext in '' $ac_executable_extensions; do
5427      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5428        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5429      fi
5430    done
5431  done
5432done
5433lt_ac_max=0
5434lt_ac_count=0
5435# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5436# along with /bin/sed that truncates output.
5437for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5438  test ! -f $lt_ac_sed && continue
5439  cat /dev/null > conftest.in
5440  lt_ac_count=0
5441  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5442  # Check for GNU sed and select it if it is found.
5443  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5444    lt_cv_path_SED=$lt_ac_sed
5445    break
5446  fi
5447  while true; do
5448    cat conftest.in conftest.in >conftest.tmp
5449    mv conftest.tmp conftest.in
5450    cp conftest.in conftest.nl
5451    echo >>conftest.nl
5452    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5453    cmp -s conftest.out conftest.nl || break
5454    # 10000 chars as input seems more than enough
5455    test $lt_ac_count -gt 10 && break
5456    lt_ac_count=`expr $lt_ac_count + 1`
5457    if test $lt_ac_count -gt $lt_ac_max; then
5458      lt_ac_max=$lt_ac_count
5459      lt_cv_path_SED=$lt_ac_sed
5460    fi
5461  done
5462done
5463
5464fi
5465
5466SED=$lt_cv_path_SED
5467{ echo "$as_me:$LINENO: result: $SED" >&5
5468echo "${ECHO_T}$SED" >&6; }
5469
5470
5471# Check whether --with-gnu-ld was given.
5472if test "${with_gnu_ld+set}" = set; then
5473  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5474else
5475  with_gnu_ld=no
5476fi
5477
5478ac_prog=ld
5479if test "$GCC" = yes; then
5480  # Check if gcc -print-prog-name=ld gives a path.
5481  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5482echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5483  case $host in
5484  *-*-mingw*)
5485    # gcc leaves a trailing carriage return which upsets mingw
5486    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5487  *)
5488    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5489  esac
5490  case $ac_prog in
5491    # Accept absolute paths.
5492    [\\/]* | ?:[\\/]*)
5493      re_direlt='/[^/][^/]*/\.\./'
5494      # Canonicalize the pathname of ld
5495      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5496      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5497	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5498      done
5499      test -z "$LD" && LD="$ac_prog"
5500      ;;
5501  "")
5502    # If it fails, then pretend we aren't using GCC.
5503    ac_prog=ld
5504    ;;
5505  *)
5506    # If it is relative, then search for the first ld in PATH.
5507    with_gnu_ld=unknown
5508    ;;
5509  esac
5510elif test "$with_gnu_ld" = yes; then
5511  { echo "$as_me:$LINENO: checking for GNU ld" >&5
5512echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5513else
5514  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5515echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5516fi
5517if test "${lt_cv_path_LD+set}" = set; then
5518  echo $ECHO_N "(cached) $ECHO_C" >&6
5519else
5520  if test -z "$LD"; then
5521  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5522  for ac_dir in $PATH; do
5523    IFS="$lt_save_ifs"
5524    test -z "$ac_dir" && ac_dir=.
5525    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5526      lt_cv_path_LD="$ac_dir/$ac_prog"
5527      # Check to see if the program is GNU ld.  I'd rather use --version,
5528      # but apparently some variants of GNU ld only accept -v.
5529      # Break only if it was the GNU/non-GNU ld that we prefer.
5530      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5531      *GNU* | *'with BFD'*)
5532	test "$with_gnu_ld" != no && break
5533	;;
5534      *)
5535	test "$with_gnu_ld" != yes && break
5536	;;
5537      esac
5538    fi
5539  done
5540  IFS="$lt_save_ifs"
5541else
5542  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5543fi
5544fi
5545
5546LD="$lt_cv_path_LD"
5547if test -n "$LD"; then
5548  { echo "$as_me:$LINENO: result: $LD" >&5
5549echo "${ECHO_T}$LD" >&6; }
5550else
5551  { echo "$as_me:$LINENO: result: no" >&5
5552echo "${ECHO_T}no" >&6; }
5553fi
5554test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5555echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5556   { (exit 1); exit 1; }; }
5557{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5558echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5559if test "${lt_cv_prog_gnu_ld+set}" = set; then
5560  echo $ECHO_N "(cached) $ECHO_C" >&6
5561else
5562  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5563case `$LD -v 2>&1 </dev/null` in
5564*GNU* | *'with BFD'*)
5565  lt_cv_prog_gnu_ld=yes
5566  ;;
5567*)
5568  lt_cv_prog_gnu_ld=no
5569  ;;
5570esac
5571fi
5572{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5573echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5574with_gnu_ld=$lt_cv_prog_gnu_ld
5575
5576
5577{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5578echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5579if test "${lt_cv_ld_reload_flag+set}" = set; then
5580  echo $ECHO_N "(cached) $ECHO_C" >&6
5581else
5582  lt_cv_ld_reload_flag='-r'
5583fi
5584{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5585echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5586reload_flag=$lt_cv_ld_reload_flag
5587case $reload_flag in
5588"" | " "*) ;;
5589*) reload_flag=" $reload_flag" ;;
5590esac
5591reload_cmds='$LD$reload_flag -o $output$reload_objs'
5592case $host_os in
5593  darwin*)
5594    if test "$GCC" = yes; then
5595      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5596    else
5597      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5598    fi
5599    ;;
5600esac
5601
5602{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5603echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5604if test "${lt_cv_path_NM+set}" = set; then
5605  echo $ECHO_N "(cached) $ECHO_C" >&6
5606else
5607  if test -n "$NM"; then
5608  # Let the user override the test.
5609  lt_cv_path_NM="$NM"
5610else
5611  lt_nm_to_check="${ac_tool_prefix}nm"
5612  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5613    lt_nm_to_check="$lt_nm_to_check nm"
5614  fi
5615  for lt_tmp_nm in $lt_nm_to_check; do
5616    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5617    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5618      IFS="$lt_save_ifs"
5619      test -z "$ac_dir" && ac_dir=.
5620      tmp_nm="$ac_dir/$lt_tmp_nm"
5621      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5622	# Check to see if the nm accepts a BSD-compat flag.
5623	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5624	#   nm: unknown option "B" ignored
5625	# Tru64's nm complains that /dev/null is an invalid object file
5626	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5627	*/dev/null* | *'Invalid file or object type'*)
5628	  lt_cv_path_NM="$tmp_nm -B"
5629	  break
5630	  ;;
5631	*)
5632	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5633	  */dev/null*)
5634	    lt_cv_path_NM="$tmp_nm -p"
5635	    break
5636	    ;;
5637	  *)
5638	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5639	    continue # so that we can try to find one that supports BSD flags
5640	    ;;
5641	  esac
5642	  ;;
5643	esac
5644      fi
5645    done
5646    IFS="$lt_save_ifs"
5647  done
5648  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5649fi
5650fi
5651{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5652echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5653NM="$lt_cv_path_NM"
5654
5655{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5656echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5657LN_S=$as_ln_s
5658if test "$LN_S" = "ln -s"; then
5659  { echo "$as_me:$LINENO: result: yes" >&5
5660echo "${ECHO_T}yes" >&6; }
5661else
5662  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5663echo "${ECHO_T}no, using $LN_S" >&6; }
5664fi
5665
5666{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5667echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5668if test "${lt_cv_deplibs_check_method+set}" = set; then
5669  echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671  lt_cv_file_magic_cmd='$MAGIC_CMD'
5672lt_cv_file_magic_test_file=
5673lt_cv_deplibs_check_method='unknown'
5674# Need to set the preceding variable on all platforms that support
5675# interlibrary dependencies.
5676# 'none' -- dependencies not supported.
5677# `unknown' -- same as none, but documents that we really don't know.
5678# 'pass_all' -- all dependencies passed with no checks.
5679# 'test_compile' -- check by making test program.
5680# 'file_magic [[regex]]' -- check by looking for files in library path
5681# which responds to the $file_magic_cmd with a given extended regex.
5682# If you have `file' or equivalent on your system and you're not sure
5683# whether `pass_all' will *always* work, you probably want this one.
5684
5685case $host_os in
5686aix4* | aix5*)
5687  lt_cv_deplibs_check_method=pass_all
5688  ;;
5689
5690beos*)
5691  lt_cv_deplibs_check_method=pass_all
5692  ;;
5693
5694bsdi[45]*)
5695  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5696  lt_cv_file_magic_cmd='/usr/bin/file -L'
5697  lt_cv_file_magic_test_file=/shlib/libc.so
5698  ;;
5699
5700cygwin*)
5701  # func_win32_libid is a shell function defined in ltmain.sh
5702  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5703  lt_cv_file_magic_cmd='func_win32_libid'
5704  ;;
5705
5706mingw* | pw32*)
5707  # Base MSYS/MinGW do not provide the 'file' command needed by
5708  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5709  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5710  lt_cv_file_magic_cmd='$OBJDUMP -f'
5711  ;;
5712
5713darwin* | rhapsody*)
5714  lt_cv_deplibs_check_method=pass_all
5715  ;;
5716
5717freebsd* | dragonfly*)
5718  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5719    case $host_cpu in
5720    i*86 )
5721      # Not sure whether the presence of OpenBSD here was a mistake.
5722      # Let's accept both of them until this is cleared up.
5723      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5724      lt_cv_file_magic_cmd=/usr/bin/file
5725      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5726      ;;
5727    esac
5728  else
5729    lt_cv_deplibs_check_method=pass_all
5730  fi
5731  ;;
5732
5733gnu*)
5734  lt_cv_deplibs_check_method=pass_all
5735  ;;
5736
5737hpux10.20* | hpux11*)
5738  lt_cv_file_magic_cmd=/usr/bin/file
5739  case $host_cpu in
5740  ia64*)
5741    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5742    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5743    ;;
5744  hppa*64*)
5745    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]'
5746    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5747    ;;
5748  *)
5749    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5750    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5751    ;;
5752  esac
5753  ;;
5754
5755interix3*)
5756  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5757  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5758  ;;
5759
5760irix5* | irix6* | nonstopux*)
5761  case $LD in
5762  *-32|*"-32 ") libmagic=32-bit;;
5763  *-n32|*"-n32 ") libmagic=N32;;
5764  *-64|*"-64 ") libmagic=64-bit;;
5765  *) libmagic=never-match;;
5766  esac
5767  lt_cv_deplibs_check_method=pass_all
5768  ;;
5769
5770# This must be Linux ELF.
5771linux* | k*bsd*-gnu)
5772  lt_cv_deplibs_check_method=pass_all
5773  ;;
5774
5775netbsd* | netbsdelf*-gnu)
5776  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5777    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5778  else
5779    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5780  fi
5781  ;;
5782
5783newos6*)
5784  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5785  lt_cv_file_magic_cmd=/usr/bin/file
5786  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5787  ;;
5788
5789nto-qnx*)
5790  lt_cv_deplibs_check_method=unknown
5791  ;;
5792
5793openbsd*)
5794  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5795    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5796  else
5797    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5798  fi
5799  ;;
5800
5801osf3* | osf4* | osf5*)
5802  lt_cv_deplibs_check_method=pass_all
5803  ;;
5804
5805solaris*)
5806  lt_cv_deplibs_check_method=pass_all
5807  ;;
5808
5809sysv4 | sysv4.3*)
5810  case $host_vendor in
5811  motorola)
5812    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]'
5813    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5814    ;;
5815  ncr)
5816    lt_cv_deplibs_check_method=pass_all
5817    ;;
5818  sequent)
5819    lt_cv_file_magic_cmd='/bin/file'
5820    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5821    ;;
5822  sni)
5823    lt_cv_file_magic_cmd='/bin/file'
5824    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5825    lt_cv_file_magic_test_file=/lib/libc.so
5826    ;;
5827  siemens)
5828    lt_cv_deplibs_check_method=pass_all
5829    ;;
5830  pc)
5831    lt_cv_deplibs_check_method=pass_all
5832    ;;
5833  esac
5834  ;;
5835
5836sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5837  lt_cv_deplibs_check_method=pass_all
5838  ;;
5839esac
5840
5841fi
5842{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5843echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5844file_magic_cmd=$lt_cv_file_magic_cmd
5845deplibs_check_method=$lt_cv_deplibs_check_method
5846test -z "$deplibs_check_method" && deplibs_check_method=unknown
5847
5848
5849
5850
5851# If no C compiler was specified, use CC.
5852LTCC=${LTCC-"$CC"}
5853
5854# If no C compiler flags were specified, use CFLAGS.
5855LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5856
5857# Allow CC to be a program name with arguments.
5858compiler=$CC
5859
5860# Check whether --enable-libtool-lock was given.
5861if test "${enable_libtool_lock+set}" = set; then
5862  enableval=$enable_libtool_lock;
5863fi
5864
5865test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5866
5867# Some flags need to be propagated to the compiler or linker for good
5868# libtool support.
5869case $host in
5870ia64-*-hpux*)
5871  # Find out which ABI we are using.
5872  echo 'int i;' > conftest.$ac_ext
5873  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874  (eval $ac_compile) 2>&5
5875  ac_status=$?
5876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877  (exit $ac_status); }; then
5878    case `/usr/bin/file conftest.$ac_objext` in
5879    *ELF-32*)
5880      HPUX_IA64_MODE="32"
5881      ;;
5882    *ELF-64*)
5883      HPUX_IA64_MODE="64"
5884      ;;
5885    esac
5886  fi
5887  rm -rf conftest*
5888  ;;
5889*-*-irix6*)
5890  # Find out which ABI we are using.
5891  echo '#line 5891 "configure"' > conftest.$ac_ext
5892  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5893  (eval $ac_compile) 2>&5
5894  ac_status=$?
5895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896  (exit $ac_status); }; then
5897   if test "$lt_cv_prog_gnu_ld" = yes; then
5898    case `/usr/bin/file conftest.$ac_objext` in
5899    *32-bit*)
5900      LD="${LD-ld} -melf32bsmip"
5901      ;;
5902    *N32*)
5903      LD="${LD-ld} -melf32bmipn32"
5904      ;;
5905    *64-bit*)
5906      LD="${LD-ld} -melf64bmip"
5907      ;;
5908    esac
5909   else
5910    case `/usr/bin/file conftest.$ac_objext` in
5911    *32-bit*)
5912      LD="${LD-ld} -32"
5913      ;;
5914    *N32*)
5915      LD="${LD-ld} -n32"
5916      ;;
5917    *64-bit*)
5918      LD="${LD-ld} -64"
5919      ;;
5920    esac
5921   fi
5922  fi
5923  rm -rf conftest*
5924  ;;
5925
5926x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5927  # Find out which ABI we are using.
5928  echo 'int i;' > conftest.$ac_ext
5929  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930  (eval $ac_compile) 2>&5
5931  ac_status=$?
5932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933  (exit $ac_status); }; then
5934    case `/usr/bin/file conftest.o` in
5935    *32-bit*)
5936      case $host in
5937        x86_64-*linux*)
5938          LD="${LD-ld} -m elf_i386"
5939          ;;
5940        ppc64-*linux*|powerpc64-*linux*)
5941          LD="${LD-ld} -m elf32ppclinux"
5942          ;;
5943        s390x-*linux*)
5944          LD="${LD-ld} -m elf_s390"
5945          ;;
5946        sparc64-*linux*)
5947          LD="${LD-ld} -m elf32_sparc"
5948          ;;
5949      esac
5950      ;;
5951    *64-bit*)
5952      case $host in
5953        x86_64-*linux*)
5954          LD="${LD-ld} -m elf_x86_64"
5955          ;;
5956        ppc*-*linux*|powerpc*-*linux*)
5957          LD="${LD-ld} -m elf64ppc"
5958          ;;
5959        s390*-*linux*)
5960          LD="${LD-ld} -m elf64_s390"
5961          ;;
5962        sparc*-*linux*)
5963          LD="${LD-ld} -m elf64_sparc"
5964          ;;
5965      esac
5966      ;;
5967    esac
5968  fi
5969  rm -rf conftest*
5970  ;;
5971
5972*-*-sco3.2v5*)
5973  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5974  SAVE_CFLAGS="$CFLAGS"
5975  CFLAGS="$CFLAGS -belf"
5976  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5977echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5978if test "${lt_cv_cc_needs_belf+set}" = set; then
5979  echo $ECHO_N "(cached) $ECHO_C" >&6
5980else
5981  ac_ext=c
5982ac_cpp='$CPP $CPPFLAGS'
5983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5985ac_compiler_gnu=$ac_cv_c_compiler_gnu
5986
5987     cat >conftest.$ac_ext <<_ACEOF
5988/* confdefs.h.  */
5989_ACEOF
5990cat confdefs.h >>conftest.$ac_ext
5991cat >>conftest.$ac_ext <<_ACEOF
5992/* end confdefs.h.  */
5993
5994int
5995main ()
5996{
5997
5998  ;
5999  return 0;
6000}
6001_ACEOF
6002rm -f conftest.$ac_objext conftest$ac_exeext
6003if { (ac_try="$ac_link"
6004case "(($ac_try" in
6005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006  *) ac_try_echo=$ac_try;;
6007esac
6008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009  (eval "$ac_link") 2>conftest.er1
6010  ac_status=$?
6011  grep -v '^ *+' conftest.er1 >conftest.err
6012  rm -f conftest.er1
6013  cat conftest.err >&5
6014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015  (exit $ac_status); } && {
6016	 test -z "$ac_c_werror_flag" ||
6017	 test ! -s conftest.err
6018       } && test -s conftest$ac_exeext &&
6019       $as_test_x conftest$ac_exeext; then
6020  lt_cv_cc_needs_belf=yes
6021else
6022  echo "$as_me: failed program was:" >&5
6023sed 's/^/| /' conftest.$ac_ext >&5
6024
6025	lt_cv_cc_needs_belf=no
6026fi
6027
6028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6029      conftest$ac_exeext conftest.$ac_ext
6030     ac_ext=c
6031ac_cpp='$CPP $CPPFLAGS'
6032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6034ac_compiler_gnu=$ac_cv_c_compiler_gnu
6035
6036fi
6037{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6038echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6039  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6040    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6041    CFLAGS="$SAVE_CFLAGS"
6042  fi
6043  ;;
6044sparc*-*solaris*)
6045  # Find out which ABI we are using.
6046  echo 'int i;' > conftest.$ac_ext
6047  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048  (eval $ac_compile) 2>&5
6049  ac_status=$?
6050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051  (exit $ac_status); }; then
6052    case `/usr/bin/file conftest.o` in
6053    *64-bit*)
6054      case $lt_cv_prog_gnu_ld in
6055      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6056      *)    LD="${LD-ld} -64" ;;
6057      esac
6058      ;;
6059    esac
6060  fi
6061  rm -rf conftest*
6062  ;;
6063
6064
6065esac
6066
6067need_locks="$enable_libtool_lock"
6068
6069
6070
6071for ac_header in dlfcn.h
6072do
6073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6075  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6078  echo $ECHO_N "(cached) $ECHO_C" >&6
6079fi
6080ac_res=`eval echo '${'$as_ac_Header'}'`
6081	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6082echo "${ECHO_T}$ac_res" >&6; }
6083else
6084  # Is the header compilable?
6085{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6086echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6087cat >conftest.$ac_ext <<_ACEOF
6088/* confdefs.h.  */
6089_ACEOF
6090cat confdefs.h >>conftest.$ac_ext
6091cat >>conftest.$ac_ext <<_ACEOF
6092/* end confdefs.h.  */
6093$ac_includes_default
6094#include <$ac_header>
6095_ACEOF
6096rm -f conftest.$ac_objext
6097if { (ac_try="$ac_compile"
6098case "(($ac_try" in
6099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100  *) ac_try_echo=$ac_try;;
6101esac
6102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103  (eval "$ac_compile") 2>conftest.er1
6104  ac_status=$?
6105  grep -v '^ *+' conftest.er1 >conftest.err
6106  rm -f conftest.er1
6107  cat conftest.err >&5
6108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109  (exit $ac_status); } && {
6110	 test -z "$ac_c_werror_flag" ||
6111	 test ! -s conftest.err
6112       } && test -s conftest.$ac_objext; then
6113  ac_header_compiler=yes
6114else
6115  echo "$as_me: failed program was:" >&5
6116sed 's/^/| /' conftest.$ac_ext >&5
6117
6118	ac_header_compiler=no
6119fi
6120
6121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6122{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6123echo "${ECHO_T}$ac_header_compiler" >&6; }
6124
6125# Is the header present?
6126{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6127echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6128cat >conftest.$ac_ext <<_ACEOF
6129/* confdefs.h.  */
6130_ACEOF
6131cat confdefs.h >>conftest.$ac_ext
6132cat >>conftest.$ac_ext <<_ACEOF
6133/* end confdefs.h.  */
6134#include <$ac_header>
6135_ACEOF
6136if { (ac_try="$ac_cpp conftest.$ac_ext"
6137case "(($ac_try" in
6138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139  *) ac_try_echo=$ac_try;;
6140esac
6141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6143  ac_status=$?
6144  grep -v '^ *+' conftest.er1 >conftest.err
6145  rm -f conftest.er1
6146  cat conftest.err >&5
6147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148  (exit $ac_status); } >/dev/null && {
6149	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6150	 test ! -s conftest.err
6151       }; then
6152  ac_header_preproc=yes
6153else
6154  echo "$as_me: failed program was:" >&5
6155sed 's/^/| /' conftest.$ac_ext >&5
6156
6157  ac_header_preproc=no
6158fi
6159
6160rm -f conftest.err conftest.$ac_ext
6161{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6162echo "${ECHO_T}$ac_header_preproc" >&6; }
6163
6164# So?  What about this header?
6165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6166  yes:no: )
6167    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6168echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6169    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6170echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6171    ac_header_preproc=yes
6172    ;;
6173  no:yes:* )
6174    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6175echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6176    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6177echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6178    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6179echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6180    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6181echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6182    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6184    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6185echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6186
6187    ;;
6188esac
6189{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6192  echo $ECHO_N "(cached) $ECHO_C" >&6
6193else
6194  eval "$as_ac_Header=\$ac_header_preproc"
6195fi
6196ac_res=`eval echo '${'$as_ac_Header'}'`
6197	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6198echo "${ECHO_T}$ac_res" >&6; }
6199
6200fi
6201if test `eval echo '${'$as_ac_Header'}'` = yes; then
6202  cat >>confdefs.h <<_ACEOF
6203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6204_ACEOF
6205
6206fi
6207
6208done
6209
6210ac_ext=cpp
6211ac_cpp='$CXXCPP $CPPFLAGS'
6212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6215if test -z "$CXX"; then
6216  if test -n "$CCC"; then
6217    CXX=$CCC
6218  else
6219    if test -n "$ac_tool_prefix"; then
6220  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6221  do
6222    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6223set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6224{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6226if test "${ac_cv_prog_CXX+set}" = set; then
6227  echo $ECHO_N "(cached) $ECHO_C" >&6
6228else
6229  if test -n "$CXX"; then
6230  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6231else
6232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235  IFS=$as_save_IFS
6236  test -z "$as_dir" && as_dir=.
6237  for ac_exec_ext in '' $ac_executable_extensions; do
6238  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6240    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241    break 2
6242  fi
6243done
6244done
6245IFS=$as_save_IFS
6246
6247fi
6248fi
6249CXX=$ac_cv_prog_CXX
6250if test -n "$CXX"; then
6251  { echo "$as_me:$LINENO: result: $CXX" >&5
6252echo "${ECHO_T}$CXX" >&6; }
6253else
6254  { echo "$as_me:$LINENO: result: no" >&5
6255echo "${ECHO_T}no" >&6; }
6256fi
6257
6258
6259    test -n "$CXX" && break
6260  done
6261fi
6262if test -z "$CXX"; then
6263  ac_ct_CXX=$CXX
6264  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6265do
6266  # Extract the first word of "$ac_prog", so it can be a program name with args.
6267set dummy $ac_prog; ac_word=$2
6268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6271  echo $ECHO_N "(cached) $ECHO_C" >&6
6272else
6273  if test -n "$ac_ct_CXX"; then
6274  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6275else
6276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277for as_dir in $PATH
6278do
6279  IFS=$as_save_IFS
6280  test -z "$as_dir" && as_dir=.
6281  for ac_exec_ext in '' $ac_executable_extensions; do
6282  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6283    ac_cv_prog_ac_ct_CXX="$ac_prog"
6284    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6285    break 2
6286  fi
6287done
6288done
6289IFS=$as_save_IFS
6290
6291fi
6292fi
6293ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6294if test -n "$ac_ct_CXX"; then
6295  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6296echo "${ECHO_T}$ac_ct_CXX" >&6; }
6297else
6298  { echo "$as_me:$LINENO: result: no" >&5
6299echo "${ECHO_T}no" >&6; }
6300fi
6301
6302
6303  test -n "$ac_ct_CXX" && break
6304done
6305
6306  if test "x$ac_ct_CXX" = x; then
6307    CXX="g++"
6308  else
6309    case $cross_compiling:$ac_tool_warned in
6310yes:)
6311{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6312whose name does not start with the host triplet.  If you think this
6313configuration is useful to you, please write to autoconf@gnu.org." >&5
6314echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6315whose name does not start with the host triplet.  If you think this
6316configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6317ac_tool_warned=yes ;;
6318esac
6319    CXX=$ac_ct_CXX
6320  fi
6321fi
6322
6323  fi
6324fi
6325# Provide some information about the compiler.
6326echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6327ac_compiler=`set X $ac_compile; echo $2`
6328{ (ac_try="$ac_compiler --version >&5"
6329case "(($ac_try" in
6330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331  *) ac_try_echo=$ac_try;;
6332esac
6333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334  (eval "$ac_compiler --version >&5") 2>&5
6335  ac_status=$?
6336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337  (exit $ac_status); }
6338{ (ac_try="$ac_compiler -v >&5"
6339case "(($ac_try" in
6340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341  *) ac_try_echo=$ac_try;;
6342esac
6343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344  (eval "$ac_compiler -v >&5") 2>&5
6345  ac_status=$?
6346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347  (exit $ac_status); }
6348{ (ac_try="$ac_compiler -V >&5"
6349case "(($ac_try" in
6350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351  *) ac_try_echo=$ac_try;;
6352esac
6353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354  (eval "$ac_compiler -V >&5") 2>&5
6355  ac_status=$?
6356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357  (exit $ac_status); }
6358
6359{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6360echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6361if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6362  echo $ECHO_N "(cached) $ECHO_C" >&6
6363else
6364  cat >conftest.$ac_ext <<_ACEOF
6365/* confdefs.h.  */
6366_ACEOF
6367cat confdefs.h >>conftest.$ac_ext
6368cat >>conftest.$ac_ext <<_ACEOF
6369/* end confdefs.h.  */
6370
6371int
6372main ()
6373{
6374#ifndef __GNUC__
6375       choke me
6376#endif
6377
6378  ;
6379  return 0;
6380}
6381_ACEOF
6382rm -f conftest.$ac_objext
6383if { (ac_try="$ac_compile"
6384case "(($ac_try" in
6385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386  *) ac_try_echo=$ac_try;;
6387esac
6388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389  (eval "$ac_compile") 2>conftest.er1
6390  ac_status=$?
6391  grep -v '^ *+' conftest.er1 >conftest.err
6392  rm -f conftest.er1
6393  cat conftest.err >&5
6394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395  (exit $ac_status); } && {
6396	 test -z "$ac_cxx_werror_flag" ||
6397	 test ! -s conftest.err
6398       } && test -s conftest.$ac_objext; then
6399  ac_compiler_gnu=yes
6400else
6401  echo "$as_me: failed program was:" >&5
6402sed 's/^/| /' conftest.$ac_ext >&5
6403
6404	ac_compiler_gnu=no
6405fi
6406
6407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6409
6410fi
6411{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6412echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6413GXX=`test $ac_compiler_gnu = yes && echo yes`
6414ac_test_CXXFLAGS=${CXXFLAGS+set}
6415ac_save_CXXFLAGS=$CXXFLAGS
6416{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6417echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6418if test "${ac_cv_prog_cxx_g+set}" = set; then
6419  echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6422   ac_cxx_werror_flag=yes
6423   ac_cv_prog_cxx_g=no
6424   CXXFLAGS="-g"
6425   cat >conftest.$ac_ext <<_ACEOF
6426/* confdefs.h.  */
6427_ACEOF
6428cat confdefs.h >>conftest.$ac_ext
6429cat >>conftest.$ac_ext <<_ACEOF
6430/* end confdefs.h.  */
6431
6432int
6433main ()
6434{
6435
6436  ;
6437  return 0;
6438}
6439_ACEOF
6440rm -f conftest.$ac_objext
6441if { (ac_try="$ac_compile"
6442case "(($ac_try" in
6443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444  *) ac_try_echo=$ac_try;;
6445esac
6446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447  (eval "$ac_compile") 2>conftest.er1
6448  ac_status=$?
6449  grep -v '^ *+' conftest.er1 >conftest.err
6450  rm -f conftest.er1
6451  cat conftest.err >&5
6452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453  (exit $ac_status); } && {
6454	 test -z "$ac_cxx_werror_flag" ||
6455	 test ! -s conftest.err
6456       } && test -s conftest.$ac_objext; then
6457  ac_cv_prog_cxx_g=yes
6458else
6459  echo "$as_me: failed program was:" >&5
6460sed 's/^/| /' conftest.$ac_ext >&5
6461
6462	CXXFLAGS=""
6463      cat >conftest.$ac_ext <<_ACEOF
6464/* confdefs.h.  */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
6468/* end confdefs.h.  */
6469
6470int
6471main ()
6472{
6473
6474  ;
6475  return 0;
6476}
6477_ACEOF
6478rm -f conftest.$ac_objext
6479if { (ac_try="$ac_compile"
6480case "(($ac_try" in
6481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482  *) ac_try_echo=$ac_try;;
6483esac
6484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485  (eval "$ac_compile") 2>conftest.er1
6486  ac_status=$?
6487  grep -v '^ *+' conftest.er1 >conftest.err
6488  rm -f conftest.er1
6489  cat conftest.err >&5
6490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491  (exit $ac_status); } && {
6492	 test -z "$ac_cxx_werror_flag" ||
6493	 test ! -s conftest.err
6494       } && test -s conftest.$ac_objext; then
6495  :
6496else
6497  echo "$as_me: failed program was:" >&5
6498sed 's/^/| /' conftest.$ac_ext >&5
6499
6500	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6501	 CXXFLAGS="-g"
6502	 cat >conftest.$ac_ext <<_ACEOF
6503/* confdefs.h.  */
6504_ACEOF
6505cat confdefs.h >>conftest.$ac_ext
6506cat >>conftest.$ac_ext <<_ACEOF
6507/* end confdefs.h.  */
6508
6509int
6510main ()
6511{
6512
6513  ;
6514  return 0;
6515}
6516_ACEOF
6517rm -f conftest.$ac_objext
6518if { (ac_try="$ac_compile"
6519case "(($ac_try" in
6520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521  *) ac_try_echo=$ac_try;;
6522esac
6523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524  (eval "$ac_compile") 2>conftest.er1
6525  ac_status=$?
6526  grep -v '^ *+' conftest.er1 >conftest.err
6527  rm -f conftest.er1
6528  cat conftest.err >&5
6529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530  (exit $ac_status); } && {
6531	 test -z "$ac_cxx_werror_flag" ||
6532	 test ! -s conftest.err
6533       } && test -s conftest.$ac_objext; then
6534  ac_cv_prog_cxx_g=yes
6535else
6536  echo "$as_me: failed program was:" >&5
6537sed 's/^/| /' conftest.$ac_ext >&5
6538
6539
6540fi
6541
6542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543fi
6544
6545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546fi
6547
6548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6550fi
6551{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6552echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6553if test "$ac_test_CXXFLAGS" = set; then
6554  CXXFLAGS=$ac_save_CXXFLAGS
6555elif test $ac_cv_prog_cxx_g = yes; then
6556  if test "$GXX" = yes; then
6557    CXXFLAGS="-g -O2"
6558  else
6559    CXXFLAGS="-g"
6560  fi
6561else
6562  if test "$GXX" = yes; then
6563    CXXFLAGS="-O2"
6564  else
6565    CXXFLAGS=
6566  fi
6567fi
6568ac_ext=cpp
6569ac_cpp='$CXXCPP $CPPFLAGS'
6570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6573
6574depcc="$CXX"  am_compiler_list=
6575
6576{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6577echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6578if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6579  echo $ECHO_N "(cached) $ECHO_C" >&6
6580else
6581  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6582  # We make a subdir and do the tests there.  Otherwise we can end up
6583  # making bogus files that we don't know about and never remove.  For
6584  # instance it was reported that on HP-UX the gcc test will end up
6585  # making a dummy file named `D' -- because `-MD' means `put the output
6586  # in D'.
6587  mkdir conftest.dir
6588  # Copy depcomp to subdir because otherwise we won't find it if we're
6589  # using a relative directory.
6590  cp "$am_depcomp" conftest.dir
6591  cd conftest.dir
6592  # We will build objects and dependencies in a subdirectory because
6593  # it helps to detect inapplicable dependency modes.  For instance
6594  # both Tru64's cc and ICC support -MD to output dependencies as a
6595  # side effect of compilation, but ICC will put the dependencies in
6596  # the current directory while Tru64 will put them in the object
6597  # directory.
6598  mkdir sub
6599
6600  am_cv_CXX_dependencies_compiler_type=none
6601  if test "$am_compiler_list" = ""; then
6602     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6603  fi
6604  for depmode in $am_compiler_list; do
6605    # Setup a source with many dependencies, because some compilers
6606    # like to wrap large dependency lists on column 80 (with \), and
6607    # we should not choose a depcomp mode which is confused by this.
6608    #
6609    # We need to recreate these files for each test, as the compiler may
6610    # overwrite some of them when testing with obscure command lines.
6611    # This happens at least with the AIX C compiler.
6612    : > sub/conftest.c
6613    for i in 1 2 3 4 5 6; do
6614      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6615      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6616      # Solaris 8's {/usr,}/bin/sh.
6617      touch sub/conftst$i.h
6618    done
6619    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6620
6621    case $depmode in
6622    nosideeffect)
6623      # after this tag, mechanisms are not by side-effect, so they'll
6624      # only be used when explicitly requested
6625      if test "x$enable_dependency_tracking" = xyes; then
6626	continue
6627      else
6628	break
6629      fi
6630      ;;
6631    none) break ;;
6632    esac
6633    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6634    # mode.  It turns out that the SunPro C++ compiler does not properly
6635    # handle `-M -o', and we need to detect this.
6636    if depmode=$depmode \
6637       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6638       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6639       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6640         >/dev/null 2>conftest.err &&
6641       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6642       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6643       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6644      # icc doesn't choke on unknown options, it will just issue warnings
6645      # or remarks (even with -Werror).  So we grep stderr for any message
6646      # that says an option was ignored or not supported.
6647      # When given -MP, icc 7.0 and 7.1 complain thusly:
6648      #   icc: Command line warning: ignoring option '-M'; no argument required
6649      # The diagnosis changed in icc 8.0:
6650      #   icc: Command line remark: option '-MP' not supported
6651      if (grep 'ignoring option' conftest.err ||
6652          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6653        am_cv_CXX_dependencies_compiler_type=$depmode
6654        break
6655      fi
6656    fi
6657  done
6658
6659  cd ..
6660  rm -rf conftest.dir
6661else
6662  am_cv_CXX_dependencies_compiler_type=none
6663fi
6664
6665fi
6666{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6667echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6668CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6669
6670
6671
6672if
6673  test "x$enable_dependency_tracking" != xno \
6674  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6675  am__fastdepCXX_TRUE=
6676  am__fastdepCXX_FALSE='#'
6677else
6678  am__fastdepCXX_TRUE='#'
6679  am__fastdepCXX_FALSE=
6680fi
6681
6682
6683
6684
6685if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6686    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6687    (test "X$CXX" != "Xg++"))) ; then
6688  ac_ext=cpp
6689ac_cpp='$CXXCPP $CPPFLAGS'
6690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6693{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6694echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6695if test -z "$CXXCPP"; then
6696  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6697  echo $ECHO_N "(cached) $ECHO_C" >&6
6698else
6699      # Double quotes because CXXCPP needs to be expanded
6700    for CXXCPP in "$CXX -E" "/lib/cpp"
6701    do
6702      ac_preproc_ok=false
6703for ac_cxx_preproc_warn_flag in '' yes
6704do
6705  # Use a header file that comes with gcc, so configuring glibc
6706  # with a fresh cross-compiler works.
6707  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6708  # <limits.h> exists even on freestanding compilers.
6709  # On the NeXT, cc -E runs the code through the compiler's parser,
6710  # not just through cpp. "Syntax error" is here to catch this case.
6711  cat >conftest.$ac_ext <<_ACEOF
6712/* confdefs.h.  */
6713_ACEOF
6714cat confdefs.h >>conftest.$ac_ext
6715cat >>conftest.$ac_ext <<_ACEOF
6716/* end confdefs.h.  */
6717#ifdef __STDC__
6718# include <limits.h>
6719#else
6720# include <assert.h>
6721#endif
6722		     Syntax error
6723_ACEOF
6724if { (ac_try="$ac_cpp conftest.$ac_ext"
6725case "(($ac_try" in
6726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727  *) ac_try_echo=$ac_try;;
6728esac
6729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6731  ac_status=$?
6732  grep -v '^ *+' conftest.er1 >conftest.err
6733  rm -f conftest.er1
6734  cat conftest.err >&5
6735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736  (exit $ac_status); } >/dev/null && {
6737	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6738	 test ! -s conftest.err
6739       }; then
6740  :
6741else
6742  echo "$as_me: failed program was:" >&5
6743sed 's/^/| /' conftest.$ac_ext >&5
6744
6745  # Broken: fails on valid input.
6746continue
6747fi
6748
6749rm -f conftest.err conftest.$ac_ext
6750
6751  # OK, works on sane cases.  Now check whether nonexistent headers
6752  # can be detected and how.
6753  cat >conftest.$ac_ext <<_ACEOF
6754/* confdefs.h.  */
6755_ACEOF
6756cat confdefs.h >>conftest.$ac_ext
6757cat >>conftest.$ac_ext <<_ACEOF
6758/* end confdefs.h.  */
6759#include <ac_nonexistent.h>
6760_ACEOF
6761if { (ac_try="$ac_cpp conftest.$ac_ext"
6762case "(($ac_try" in
6763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764  *) ac_try_echo=$ac_try;;
6765esac
6766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6768  ac_status=$?
6769  grep -v '^ *+' conftest.er1 >conftest.err
6770  rm -f conftest.er1
6771  cat conftest.err >&5
6772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773  (exit $ac_status); } >/dev/null && {
6774	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6775	 test ! -s conftest.err
6776       }; then
6777  # Broken: success on invalid input.
6778continue
6779else
6780  echo "$as_me: failed program was:" >&5
6781sed 's/^/| /' conftest.$ac_ext >&5
6782
6783  # Passes both tests.
6784ac_preproc_ok=:
6785break
6786fi
6787
6788rm -f conftest.err conftest.$ac_ext
6789
6790done
6791# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6792rm -f conftest.err conftest.$ac_ext
6793if $ac_preproc_ok; then
6794  break
6795fi
6796
6797    done
6798    ac_cv_prog_CXXCPP=$CXXCPP
6799
6800fi
6801  CXXCPP=$ac_cv_prog_CXXCPP
6802else
6803  ac_cv_prog_CXXCPP=$CXXCPP
6804fi
6805{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6806echo "${ECHO_T}$CXXCPP" >&6; }
6807ac_preproc_ok=false
6808for ac_cxx_preproc_warn_flag in '' yes
6809do
6810  # Use a header file that comes with gcc, so configuring glibc
6811  # with a fresh cross-compiler works.
6812  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6813  # <limits.h> exists even on freestanding compilers.
6814  # On the NeXT, cc -E runs the code through the compiler's parser,
6815  # not just through cpp. "Syntax error" is here to catch this case.
6816  cat >conftest.$ac_ext <<_ACEOF
6817/* confdefs.h.  */
6818_ACEOF
6819cat confdefs.h >>conftest.$ac_ext
6820cat >>conftest.$ac_ext <<_ACEOF
6821/* end confdefs.h.  */
6822#ifdef __STDC__
6823# include <limits.h>
6824#else
6825# include <assert.h>
6826#endif
6827		     Syntax error
6828_ACEOF
6829if { (ac_try="$ac_cpp conftest.$ac_ext"
6830case "(($ac_try" in
6831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6832  *) ac_try_echo=$ac_try;;
6833esac
6834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6835  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6836  ac_status=$?
6837  grep -v '^ *+' conftest.er1 >conftest.err
6838  rm -f conftest.er1
6839  cat conftest.err >&5
6840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841  (exit $ac_status); } >/dev/null && {
6842	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6843	 test ! -s conftest.err
6844       }; then
6845  :
6846else
6847  echo "$as_me: failed program was:" >&5
6848sed 's/^/| /' conftest.$ac_ext >&5
6849
6850  # Broken: fails on valid input.
6851continue
6852fi
6853
6854rm -f conftest.err conftest.$ac_ext
6855
6856  # OK, works on sane cases.  Now check whether nonexistent headers
6857  # can be detected and how.
6858  cat >conftest.$ac_ext <<_ACEOF
6859/* confdefs.h.  */
6860_ACEOF
6861cat confdefs.h >>conftest.$ac_ext
6862cat >>conftest.$ac_ext <<_ACEOF
6863/* end confdefs.h.  */
6864#include <ac_nonexistent.h>
6865_ACEOF
6866if { (ac_try="$ac_cpp conftest.$ac_ext"
6867case "(($ac_try" in
6868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869  *) ac_try_echo=$ac_try;;
6870esac
6871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6872  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6873  ac_status=$?
6874  grep -v '^ *+' conftest.er1 >conftest.err
6875  rm -f conftest.er1
6876  cat conftest.err >&5
6877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878  (exit $ac_status); } >/dev/null && {
6879	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6880	 test ! -s conftest.err
6881       }; then
6882  # Broken: success on invalid input.
6883continue
6884else
6885  echo "$as_me: failed program was:" >&5
6886sed 's/^/| /' conftest.$ac_ext >&5
6887
6888  # Passes both tests.
6889ac_preproc_ok=:
6890break
6891fi
6892
6893rm -f conftest.err conftest.$ac_ext
6894
6895done
6896# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6897rm -f conftest.err conftest.$ac_ext
6898if $ac_preproc_ok; then
6899  :
6900else
6901  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6902See \`config.log' for more details." >&5
6903echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6904See \`config.log' for more details." >&2;}
6905   { (exit 1); exit 1; }; }
6906fi
6907
6908ac_ext=cpp
6909ac_cpp='$CXXCPP $CPPFLAGS'
6910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6913
6914fi
6915
6916
6917ac_ext=f
6918ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6919ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6921if test -n "$ac_tool_prefix"; then
6922  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
6923  do
6924    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6925set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928if test "${ac_cv_prog_F77+set}" = set; then
6929  echo $ECHO_N "(cached) $ECHO_C" >&6
6930else
6931  if test -n "$F77"; then
6932  ac_cv_prog_F77="$F77" # Let the user override the test.
6933else
6934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935for as_dir in $PATH
6936do
6937  IFS=$as_save_IFS
6938  test -z "$as_dir" && as_dir=.
6939  for ac_exec_ext in '' $ac_executable_extensions; do
6940  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6941    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6942    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943    break 2
6944  fi
6945done
6946done
6947IFS=$as_save_IFS
6948
6949fi
6950fi
6951F77=$ac_cv_prog_F77
6952if test -n "$F77"; then
6953  { echo "$as_me:$LINENO: result: $F77" >&5
6954echo "${ECHO_T}$F77" >&6; }
6955else
6956  { echo "$as_me:$LINENO: result: no" >&5
6957echo "${ECHO_T}no" >&6; }
6958fi
6959
6960
6961    test -n "$F77" && break
6962  done
6963fi
6964if test -z "$F77"; then
6965  ac_ct_F77=$F77
6966  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
6967do
6968  # Extract the first word of "$ac_prog", so it can be a program name with args.
6969set dummy $ac_prog; ac_word=$2
6970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6972if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6973  echo $ECHO_N "(cached) $ECHO_C" >&6
6974else
6975  if test -n "$ac_ct_F77"; then
6976  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6977else
6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979for as_dir in $PATH
6980do
6981  IFS=$as_save_IFS
6982  test -z "$as_dir" && as_dir=.
6983  for ac_exec_ext in '' $ac_executable_extensions; do
6984  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985    ac_cv_prog_ac_ct_F77="$ac_prog"
6986    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987    break 2
6988  fi
6989done
6990done
6991IFS=$as_save_IFS
6992
6993fi
6994fi
6995ac_ct_F77=$ac_cv_prog_ac_ct_F77
6996if test -n "$ac_ct_F77"; then
6997  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6998echo "${ECHO_T}$ac_ct_F77" >&6; }
6999else
7000  { echo "$as_me:$LINENO: result: no" >&5
7001echo "${ECHO_T}no" >&6; }
7002fi
7003
7004
7005  test -n "$ac_ct_F77" && break
7006done
7007
7008  if test "x$ac_ct_F77" = x; then
7009    F77=""
7010  else
7011    case $cross_compiling:$ac_tool_warned in
7012yes:)
7013{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7014whose name does not start with the host triplet.  If you think this
7015configuration is useful to you, please write to autoconf@gnu.org." >&5
7016echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7017whose name does not start with the host triplet.  If you think this
7018configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7019ac_tool_warned=yes ;;
7020esac
7021    F77=$ac_ct_F77
7022  fi
7023fi
7024
7025
7026# Provide some information about the compiler.
7027echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7028ac_compiler=`set X $ac_compile; echo $2`
7029{ (ac_try="$ac_compiler --version >&5"
7030case "(($ac_try" in
7031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7032  *) ac_try_echo=$ac_try;;
7033esac
7034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7035  (eval "$ac_compiler --version >&5") 2>&5
7036  ac_status=$?
7037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038  (exit $ac_status); }
7039{ (ac_try="$ac_compiler -v >&5"
7040case "(($ac_try" in
7041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042  *) ac_try_echo=$ac_try;;
7043esac
7044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7045  (eval "$ac_compiler -v >&5") 2>&5
7046  ac_status=$?
7047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048  (exit $ac_status); }
7049{ (ac_try="$ac_compiler -V >&5"
7050case "(($ac_try" in
7051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052  *) ac_try_echo=$ac_try;;
7053esac
7054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7055  (eval "$ac_compiler -V >&5") 2>&5
7056  ac_status=$?
7057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058  (exit $ac_status); }
7059rm -f a.out
7060
7061# If we don't use `.F' as extension, the preprocessor is not run on the
7062# input file.  (Note that this only needs to work for GNU compilers.)
7063ac_save_ext=$ac_ext
7064ac_ext=F
7065{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7066echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7067if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7068  echo $ECHO_N "(cached) $ECHO_C" >&6
7069else
7070  cat >conftest.$ac_ext <<_ACEOF
7071      program main
7072#ifndef __GNUC__
7073       choke me
7074#endif
7075
7076      end
7077_ACEOF
7078rm -f conftest.$ac_objext
7079if { (ac_try="$ac_compile"
7080case "(($ac_try" in
7081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7082  *) ac_try_echo=$ac_try;;
7083esac
7084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7085  (eval "$ac_compile") 2>conftest.er1
7086  ac_status=$?
7087  grep -v '^ *+' conftest.er1 >conftest.err
7088  rm -f conftest.er1
7089  cat conftest.err >&5
7090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091  (exit $ac_status); } && {
7092	 test -z "$ac_f77_werror_flag" ||
7093	 test ! -s conftest.err
7094       } && test -s conftest.$ac_objext; then
7095  ac_compiler_gnu=yes
7096else
7097  echo "$as_me: failed program was:" >&5
7098sed 's/^/| /' conftest.$ac_ext >&5
7099
7100	ac_compiler_gnu=no
7101fi
7102
7103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7105
7106fi
7107{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7108echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7109ac_ext=$ac_save_ext
7110ac_test_FFLAGS=${FFLAGS+set}
7111ac_save_FFLAGS=$FFLAGS
7112FFLAGS=
7113{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7114echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7115if test "${ac_cv_prog_f77_g+set}" = set; then
7116  echo $ECHO_N "(cached) $ECHO_C" >&6
7117else
7118  FFLAGS=-g
7119cat >conftest.$ac_ext <<_ACEOF
7120      program main
7121
7122      end
7123_ACEOF
7124rm -f conftest.$ac_objext
7125if { (ac_try="$ac_compile"
7126case "(($ac_try" in
7127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128  *) ac_try_echo=$ac_try;;
7129esac
7130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7131  (eval "$ac_compile") 2>conftest.er1
7132  ac_status=$?
7133  grep -v '^ *+' conftest.er1 >conftest.err
7134  rm -f conftest.er1
7135  cat conftest.err >&5
7136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137  (exit $ac_status); } && {
7138	 test -z "$ac_f77_werror_flag" ||
7139	 test ! -s conftest.err
7140       } && test -s conftest.$ac_objext; then
7141  ac_cv_prog_f77_g=yes
7142else
7143  echo "$as_me: failed program was:" >&5
7144sed 's/^/| /' conftest.$ac_ext >&5
7145
7146	ac_cv_prog_f77_g=no
7147fi
7148
7149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150
7151fi
7152{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7153echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7154if test "$ac_test_FFLAGS" = set; then
7155  FFLAGS=$ac_save_FFLAGS
7156elif test $ac_cv_prog_f77_g = yes; then
7157  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7158    FFLAGS="-g -O2"
7159  else
7160    FFLAGS="-g"
7161  fi
7162else
7163  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7164    FFLAGS="-O2"
7165  else
7166    FFLAGS=
7167  fi
7168fi
7169
7170G77=`test $ac_compiler_gnu = yes && echo yes`
7171ac_ext=c
7172ac_cpp='$CPP $CPPFLAGS'
7173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7175ac_compiler_gnu=$ac_cv_c_compiler_gnu
7176
7177
7178
7179# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7180
7181# find the maximum length of command line arguments
7182{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7183echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7184if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7185  echo $ECHO_N "(cached) $ECHO_C" >&6
7186else
7187    i=0
7188  teststring="ABCD"
7189
7190  case $build_os in
7191  msdosdjgpp*)
7192    # On DJGPP, this test can blow up pretty badly due to problems in libc
7193    # (any single argument exceeding 2000 bytes causes a buffer overrun
7194    # during glob expansion).  Even if it were fixed, the result of this
7195    # check would be larger than it should be.
7196    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7197    ;;
7198
7199  gnu*)
7200    # Under GNU Hurd, this test is not required because there is
7201    # no limit to the length of command line arguments.
7202    # Libtool will interpret -1 as no limit whatsoever
7203    lt_cv_sys_max_cmd_len=-1;
7204    ;;
7205
7206  cygwin* | mingw*)
7207    # On Win9x/ME, this test blows up -- it succeeds, but takes
7208    # about 5 minutes as the teststring grows exponentially.
7209    # Worse, since 9x/ME are not pre-emptively multitasking,
7210    # you end up with a "frozen" computer, even though with patience
7211    # the test eventually succeeds (with a max line length of 256k).
7212    # Instead, let's just punt: use the minimum linelength reported by
7213    # all of the supported platforms: 8192 (on NT/2K/XP).
7214    lt_cv_sys_max_cmd_len=8192;
7215    ;;
7216
7217  amigaos*)
7218    # On AmigaOS with pdksh, this test takes hours, literally.
7219    # So we just punt and use a minimum line length of 8192.
7220    lt_cv_sys_max_cmd_len=8192;
7221    ;;
7222
7223  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7224    # This has been around since 386BSD, at least.  Likely further.
7225    if test -x /sbin/sysctl; then
7226      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7227    elif test -x /usr/sbin/sysctl; then
7228      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7229    else
7230      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7231    fi
7232    # And add a safety zone
7233    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7234    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7235    ;;
7236
7237  interix*)
7238    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7239    lt_cv_sys_max_cmd_len=196608
7240    ;;
7241
7242  osf*)
7243    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7244    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7245    # nice to cause kernel panics so lets avoid the loop below.
7246    # First set a reasonable default.
7247    lt_cv_sys_max_cmd_len=16384
7248    #
7249    if test -x /sbin/sysconfig; then
7250      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7251        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7252      esac
7253    fi
7254    ;;
7255  sco3.2v5*)
7256    lt_cv_sys_max_cmd_len=102400
7257    ;;
7258  sysv5* | sco5v6* | sysv4.2uw2*)
7259    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7260    if test -n "$kargmax"; then
7261      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
7262    else
7263      lt_cv_sys_max_cmd_len=32768
7264    fi
7265    ;;
7266  *)
7267    # If test is not a shell built-in, we'll probably end up computing a
7268    # maximum length that is only half of the actual maximum length, but
7269    # we can't tell.
7270    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7271    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7272	       = "XX$teststring") >/dev/null 2>&1 &&
7273	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
7274	    lt_cv_sys_max_cmd_len=$new_result &&
7275	    test $i != 17 # 1/2 MB should be enough
7276    do
7277      i=`expr $i + 1`
7278      teststring=$teststring$teststring
7279    done
7280    teststring=
7281    # Add a significant safety factor because C++ compilers can tack on massive
7282    # amounts of additional arguments before passing them to the linker.
7283    # It appears as though 1/2 is a usable value.
7284    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7285    ;;
7286  esac
7287
7288fi
7289
7290if test -n $lt_cv_sys_max_cmd_len ; then
7291  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7292echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7293else
7294  { echo "$as_me:$LINENO: result: none" >&5
7295echo "${ECHO_T}none" >&6; }
7296fi
7297
7298
7299
7300
7301# Check for command to grab the raw symbol name followed by C symbol from nm.
7302{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7303echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7304if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7305  echo $ECHO_N "(cached) $ECHO_C" >&6
7306else
7307
7308# These are sane defaults that work on at least a few old systems.
7309# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7310
7311# Character class describing NM global symbol codes.
7312symcode='[BCDEGRST]'
7313
7314# Regexp to match symbols that can be accessed directly from C.
7315sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7316
7317# Transform an extracted symbol line into a proper C declaration
7318lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7319
7320# Transform an extracted symbol line into symbol name and symbol address
7321lt_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'"
7322
7323# Define system-specific variables.
7324case $host_os in
7325aix*)
7326  symcode='[BCDT]'
7327  ;;
7328cygwin* | mingw* | pw32*)
7329  symcode='[ABCDGISTW]'
7330  ;;
7331hpux*) # Its linker distinguishes data from code symbols
7332  if test "$host_cpu" = ia64; then
7333    symcode='[ABCDEGRST]'
7334  fi
7335  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7336  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'"
7337  ;;
7338linux* | k*bsd*-gnu)
7339  if test "$host_cpu" = ia64; then
7340    symcode='[ABCDGIRSTW]'
7341    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7342    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'"
7343  fi
7344  ;;
7345irix* | nonstopux*)
7346  symcode='[BCDEGRST]'
7347  ;;
7348osf*)
7349  symcode='[BCDEGQRST]'
7350  ;;
7351solaris*)
7352  symcode='[BDRT]'
7353  ;;
7354sco3.2v5*)
7355  symcode='[DT]'
7356  ;;
7357sysv4.2uw2*)
7358  symcode='[DT]'
7359  ;;
7360sysv5* | sco5v6* | unixware* | OpenUNIX*)
7361  symcode='[ABDT]'
7362  ;;
7363sysv4)
7364  symcode='[DFNSTU]'
7365  ;;
7366esac
7367
7368# Handle CRLF in mingw tool chain
7369opt_cr=
7370case $build_os in
7371mingw*)
7372  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7373  ;;
7374esac
7375
7376# If we're using GNU nm, then use its standard symbol codes.
7377case `$NM -V 2>&1` in
7378*GNU* | *'with BFD'*)
7379  symcode='[ABCDGIRSTW]' ;;
7380esac
7381
7382# Try without a prefix undercore, then with it.
7383for ac_symprfx in "" "_"; do
7384
7385  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7386  symxfrm="\\1 $ac_symprfx\\2 \\2"
7387
7388  # Write the raw and C identifiers.
7389  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7390
7391  # Check to see that the pipe works correctly.
7392  pipe_works=no
7393
7394  rm -f conftest*
7395  cat > conftest.$ac_ext <<EOF
7396#ifdef __cplusplus
7397extern "C" {
7398#endif
7399char nm_test_var;
7400void nm_test_func(){}
7401#ifdef __cplusplus
7402}
7403#endif
7404int main(){nm_test_var='a';nm_test_func();return(0);}
7405EOF
7406
7407  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7408  (eval $ac_compile) 2>&5
7409  ac_status=$?
7410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411  (exit $ac_status); }; then
7412    # Now try to grab the symbols.
7413    nlist=conftest.nm
7414    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7415  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7416  ac_status=$?
7417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418  (exit $ac_status); } && test -s "$nlist"; then
7419      # Try sorting and uniquifying the output.
7420      if sort "$nlist" | uniq > "$nlist"T; then
7421	mv -f "$nlist"T "$nlist"
7422      else
7423	rm -f "$nlist"T
7424      fi
7425
7426      # Make sure that we snagged all the symbols we need.
7427      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7428	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7429	  cat <<EOF > conftest.$ac_ext
7430#ifdef __cplusplus
7431extern "C" {
7432#endif
7433
7434EOF
7435	  # Now generate the symbol file.
7436	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7437
7438	  cat <<EOF >> conftest.$ac_ext
7439#if defined (__STDC__) && __STDC__
7440# define lt_ptr_t void *
7441#else
7442# define lt_ptr_t char *
7443# define const
7444#endif
7445
7446/* The mapping between symbol names and symbols. */
7447const struct {
7448  const char *name;
7449  lt_ptr_t address;
7450}
7451lt_preloaded_symbols[] =
7452{
7453EOF
7454	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7455	  cat <<\EOF >> conftest.$ac_ext
7456  {0, (lt_ptr_t) 0}
7457};
7458
7459#ifdef __cplusplus
7460}
7461#endif
7462EOF
7463	  # Now try linking the two files.
7464	  mv conftest.$ac_objext conftstm.$ac_objext
7465	  lt_save_LIBS="$LIBS"
7466	  lt_save_CFLAGS="$CFLAGS"
7467	  LIBS="conftstm.$ac_objext"
7468	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7469	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7470  (eval $ac_link) 2>&5
7471  ac_status=$?
7472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7474	    pipe_works=yes
7475	  fi
7476	  LIBS="$lt_save_LIBS"
7477	  CFLAGS="$lt_save_CFLAGS"
7478	else
7479	  echo "cannot find nm_test_func in $nlist" >&5
7480	fi
7481      else
7482	echo "cannot find nm_test_var in $nlist" >&5
7483      fi
7484    else
7485      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7486    fi
7487  else
7488    echo "$progname: failed program was:" >&5
7489    cat conftest.$ac_ext >&5
7490  fi
7491  rm -f conftest* conftst*
7492
7493  # Do not use the global_symbol_pipe unless it works.
7494  if test "$pipe_works" = yes; then
7495    break
7496  else
7497    lt_cv_sys_global_symbol_pipe=
7498  fi
7499done
7500
7501fi
7502
7503if test -z "$lt_cv_sys_global_symbol_pipe"; then
7504  lt_cv_sys_global_symbol_to_cdecl=
7505fi
7506if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7507  { echo "$as_me:$LINENO: result: failed" >&5
7508echo "${ECHO_T}failed" >&6; }
7509else
7510  { echo "$as_me:$LINENO: result: ok" >&5
7511echo "${ECHO_T}ok" >&6; }
7512fi
7513
7514{ echo "$as_me:$LINENO: checking for objdir" >&5
7515echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7516if test "${lt_cv_objdir+set}" = set; then
7517  echo $ECHO_N "(cached) $ECHO_C" >&6
7518else
7519  rm -f .libs 2>/dev/null
7520mkdir .libs 2>/dev/null
7521if test -d .libs; then
7522  lt_cv_objdir=.libs
7523else
7524  # MS-DOS does not allow filenames that begin with a dot.
7525  lt_cv_objdir=_libs
7526fi
7527rmdir .libs 2>/dev/null
7528fi
7529{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7530echo "${ECHO_T}$lt_cv_objdir" >&6; }
7531objdir=$lt_cv_objdir
7532
7533
7534
7535
7536
7537case $host_os in
7538aix3*)
7539  # AIX sometimes has problems with the GCC collect2 program.  For some
7540  # reason, if we set the COLLECT_NAMES environment variable, the problems
7541  # vanish in a puff of smoke.
7542  if test "X${COLLECT_NAMES+set}" != Xset; then
7543    COLLECT_NAMES=
7544    export COLLECT_NAMES
7545  fi
7546  ;;
7547esac
7548
7549# Sed substitution that helps us do robust quoting.  It backslashifies
7550# metacharacters that are still active within double-quoted strings.
7551Xsed='sed -e 1s/^X//'
7552sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7553
7554# Same as above, but do not quote variable references.
7555double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7556
7557# Sed substitution to delay expansion of an escaped shell variable in a
7558# double_quote_subst'ed string.
7559delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7560
7561# Sed substitution to avoid accidental globbing in evaled expressions
7562no_glob_subst='s/\*/\\\*/g'
7563
7564# Constants:
7565rm="rm -f"
7566
7567# Global variables:
7568default_ofile=libtool
7569can_build_shared=yes
7570
7571# All known linkers require a `.a' archive for static linking (except MSVC,
7572# which needs '.lib').
7573libext=a
7574ltmain="$ac_aux_dir/ltmain.sh"
7575ofile="$default_ofile"
7576with_gnu_ld="$lt_cv_prog_gnu_ld"
7577
7578if test -n "$ac_tool_prefix"; then
7579  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7580set dummy ${ac_tool_prefix}ar; ac_word=$2
7581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7583if test "${ac_cv_prog_AR+set}" = set; then
7584  echo $ECHO_N "(cached) $ECHO_C" >&6
7585else
7586  if test -n "$AR"; then
7587  ac_cv_prog_AR="$AR" # Let the user override the test.
7588else
7589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590for as_dir in $PATH
7591do
7592  IFS=$as_save_IFS
7593  test -z "$as_dir" && as_dir=.
7594  for ac_exec_ext in '' $ac_executable_extensions; do
7595  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7596    ac_cv_prog_AR="${ac_tool_prefix}ar"
7597    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7598    break 2
7599  fi
7600done
7601done
7602IFS=$as_save_IFS
7603
7604fi
7605fi
7606AR=$ac_cv_prog_AR
7607if test -n "$AR"; then
7608  { echo "$as_me:$LINENO: result: $AR" >&5
7609echo "${ECHO_T}$AR" >&6; }
7610else
7611  { echo "$as_me:$LINENO: result: no" >&5
7612echo "${ECHO_T}no" >&6; }
7613fi
7614
7615
7616fi
7617if test -z "$ac_cv_prog_AR"; then
7618  ac_ct_AR=$AR
7619  # Extract the first word of "ar", so it can be a program name with args.
7620set dummy ar; ac_word=$2
7621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7623if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7624  echo $ECHO_N "(cached) $ECHO_C" >&6
7625else
7626  if test -n "$ac_ct_AR"; then
7627  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7628else
7629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630for as_dir in $PATH
7631do
7632  IFS=$as_save_IFS
7633  test -z "$as_dir" && as_dir=.
7634  for ac_exec_ext in '' $ac_executable_extensions; do
7635  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7636    ac_cv_prog_ac_ct_AR="ar"
7637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638    break 2
7639  fi
7640done
7641done
7642IFS=$as_save_IFS
7643
7644fi
7645fi
7646ac_ct_AR=$ac_cv_prog_ac_ct_AR
7647if test -n "$ac_ct_AR"; then
7648  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7649echo "${ECHO_T}$ac_ct_AR" >&6; }
7650else
7651  { echo "$as_me:$LINENO: result: no" >&5
7652echo "${ECHO_T}no" >&6; }
7653fi
7654
7655  if test "x$ac_ct_AR" = x; then
7656    AR="false"
7657  else
7658    case $cross_compiling:$ac_tool_warned in
7659yes:)
7660{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7661whose name does not start with the host triplet.  If you think this
7662configuration is useful to you, please write to autoconf@gnu.org." >&5
7663echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7664whose name does not start with the host triplet.  If you think this
7665configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7666ac_tool_warned=yes ;;
7667esac
7668    AR=$ac_ct_AR
7669  fi
7670else
7671  AR="$ac_cv_prog_AR"
7672fi
7673
7674if test -n "$ac_tool_prefix"; then
7675  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7676set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7679if test "${ac_cv_prog_RANLIB+set}" = set; then
7680  echo $ECHO_N "(cached) $ECHO_C" >&6
7681else
7682  if test -n "$RANLIB"; then
7683  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7684else
7685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686for as_dir in $PATH
7687do
7688  IFS=$as_save_IFS
7689  test -z "$as_dir" && as_dir=.
7690  for ac_exec_ext in '' $ac_executable_extensions; do
7691  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7692    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7693    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694    break 2
7695  fi
7696done
7697done
7698IFS=$as_save_IFS
7699
7700fi
7701fi
7702RANLIB=$ac_cv_prog_RANLIB
7703if test -n "$RANLIB"; then
7704  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7705echo "${ECHO_T}$RANLIB" >&6; }
7706else
7707  { echo "$as_me:$LINENO: result: no" >&5
7708echo "${ECHO_T}no" >&6; }
7709fi
7710
7711
7712fi
7713if test -z "$ac_cv_prog_RANLIB"; then
7714  ac_ct_RANLIB=$RANLIB
7715  # Extract the first word of "ranlib", so it can be a program name with args.
7716set dummy ranlib; ac_word=$2
7717{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7719if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7720  echo $ECHO_N "(cached) $ECHO_C" >&6
7721else
7722  if test -n "$ac_ct_RANLIB"; then
7723  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7724else
7725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726for as_dir in $PATH
7727do
7728  IFS=$as_save_IFS
7729  test -z "$as_dir" && as_dir=.
7730  for ac_exec_ext in '' $ac_executable_extensions; do
7731  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7732    ac_cv_prog_ac_ct_RANLIB="ranlib"
7733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7734    break 2
7735  fi
7736done
7737done
7738IFS=$as_save_IFS
7739
7740fi
7741fi
7742ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7743if test -n "$ac_ct_RANLIB"; then
7744  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7745echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7746else
7747  { echo "$as_me:$LINENO: result: no" >&5
7748echo "${ECHO_T}no" >&6; }
7749fi
7750
7751  if test "x$ac_ct_RANLIB" = x; then
7752    RANLIB=":"
7753  else
7754    case $cross_compiling:$ac_tool_warned in
7755yes:)
7756{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7757whose name does not start with the host triplet.  If you think this
7758configuration is useful to you, please write to autoconf@gnu.org." >&5
7759echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7760whose name does not start with the host triplet.  If you think this
7761configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7762ac_tool_warned=yes ;;
7763esac
7764    RANLIB=$ac_ct_RANLIB
7765  fi
7766else
7767  RANLIB="$ac_cv_prog_RANLIB"
7768fi
7769
7770if test -n "$ac_tool_prefix"; then
7771  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7772set dummy ${ac_tool_prefix}strip; ac_word=$2
7773{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7775if test "${ac_cv_prog_STRIP+set}" = set; then
7776  echo $ECHO_N "(cached) $ECHO_C" >&6
7777else
7778  if test -n "$STRIP"; then
7779  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7780else
7781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782for as_dir in $PATH
7783do
7784  IFS=$as_save_IFS
7785  test -z "$as_dir" && as_dir=.
7786  for ac_exec_ext in '' $ac_executable_extensions; do
7787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7788    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7789    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7790    break 2
7791  fi
7792done
7793done
7794IFS=$as_save_IFS
7795
7796fi
7797fi
7798STRIP=$ac_cv_prog_STRIP
7799if test -n "$STRIP"; then
7800  { echo "$as_me:$LINENO: result: $STRIP" >&5
7801echo "${ECHO_T}$STRIP" >&6; }
7802else
7803  { echo "$as_me:$LINENO: result: no" >&5
7804echo "${ECHO_T}no" >&6; }
7805fi
7806
7807
7808fi
7809if test -z "$ac_cv_prog_STRIP"; then
7810  ac_ct_STRIP=$STRIP
7811  # Extract the first word of "strip", so it can be a program name with args.
7812set dummy strip; ac_word=$2
7813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7815if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7816  echo $ECHO_N "(cached) $ECHO_C" >&6
7817else
7818  if test -n "$ac_ct_STRIP"; then
7819  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7820else
7821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822for as_dir in $PATH
7823do
7824  IFS=$as_save_IFS
7825  test -z "$as_dir" && as_dir=.
7826  for ac_exec_ext in '' $ac_executable_extensions; do
7827  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7828    ac_cv_prog_ac_ct_STRIP="strip"
7829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7830    break 2
7831  fi
7832done
7833done
7834IFS=$as_save_IFS
7835
7836fi
7837fi
7838ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7839if test -n "$ac_ct_STRIP"; then
7840  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7841echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7842else
7843  { echo "$as_me:$LINENO: result: no" >&5
7844echo "${ECHO_T}no" >&6; }
7845fi
7846
7847  if test "x$ac_ct_STRIP" = x; then
7848    STRIP=":"
7849  else
7850    case $cross_compiling:$ac_tool_warned in
7851yes:)
7852{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7853whose name does not start with the host triplet.  If you think this
7854configuration is useful to you, please write to autoconf@gnu.org." >&5
7855echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7856whose name does not start with the host triplet.  If you think this
7857configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7858ac_tool_warned=yes ;;
7859esac
7860    STRIP=$ac_ct_STRIP
7861  fi
7862else
7863  STRIP="$ac_cv_prog_STRIP"
7864fi
7865
7866
7867old_CC="$CC"
7868old_CFLAGS="$CFLAGS"
7869
7870# Set sane defaults for various variables
7871test -z "$AR" && AR=ar
7872test -z "$AR_FLAGS" && AR_FLAGS=cru
7873test -z "$AS" && AS=as
7874test -z "$CC" && CC=cc
7875test -z "$LTCC" && LTCC=$CC
7876test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7877test -z "$DLLTOOL" && DLLTOOL=dlltool
7878test -z "$LD" && LD=ld
7879test -z "$LN_S" && LN_S="ln -s"
7880test -z "$MAGIC_CMD" && MAGIC_CMD=file
7881test -z "$NM" && NM=nm
7882test -z "$SED" && SED=sed
7883test -z "$OBJDUMP" && OBJDUMP=objdump
7884test -z "$RANLIB" && RANLIB=:
7885test -z "$STRIP" && STRIP=:
7886test -z "$ac_objext" && ac_objext=o
7887
7888# Determine commands to create old-style static archives.
7889old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7890old_postinstall_cmds='chmod 644 $oldlib'
7891old_postuninstall_cmds=
7892
7893if test -n "$RANLIB"; then
7894  case $host_os in
7895  openbsd*)
7896    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7897    ;;
7898  *)
7899    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7900    ;;
7901  esac
7902  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7903fi
7904
7905for cc_temp in $compiler""; do
7906  case $cc_temp in
7907    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7908    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7909    \-*) ;;
7910    *) break;;
7911  esac
7912done
7913cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7914
7915
7916# Only perform the check for file, if the check method requires it
7917case $deplibs_check_method in
7918file_magic*)
7919  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7920    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7921echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7922if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7923  echo $ECHO_N "(cached) $ECHO_C" >&6
7924else
7925  case $MAGIC_CMD in
7926[\\/*] |  ?:[\\/]*)
7927  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7928  ;;
7929*)
7930  lt_save_MAGIC_CMD="$MAGIC_CMD"
7931  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7932  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7933  for ac_dir in $ac_dummy; do
7934    IFS="$lt_save_ifs"
7935    test -z "$ac_dir" && ac_dir=.
7936    if test -f $ac_dir/${ac_tool_prefix}file; then
7937      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7938      if test -n "$file_magic_test_file"; then
7939	case $deplibs_check_method in
7940	"file_magic "*)
7941	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7942	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7943	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7944	    $EGREP "$file_magic_regex" > /dev/null; then
7945	    :
7946	  else
7947	    cat <<EOF 1>&2
7948
7949*** Warning: the command libtool uses to detect shared libraries,
7950*** $file_magic_cmd, produces output that libtool cannot recognize.
7951*** The result is that libtool may fail to recognize shared libraries
7952*** as such.  This will affect the creation of libtool libraries that
7953*** depend on shared libraries, but programs linked with such libtool
7954*** libraries will work regardless of this problem.  Nevertheless, you
7955*** may want to report the problem to your system manager and/or to
7956*** bug-libtool@gnu.org
7957
7958EOF
7959	  fi ;;
7960	esac
7961      fi
7962      break
7963    fi
7964  done
7965  IFS="$lt_save_ifs"
7966  MAGIC_CMD="$lt_save_MAGIC_CMD"
7967  ;;
7968esac
7969fi
7970
7971MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7972if test -n "$MAGIC_CMD"; then
7973  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7974echo "${ECHO_T}$MAGIC_CMD" >&6; }
7975else
7976  { echo "$as_me:$LINENO: result: no" >&5
7977echo "${ECHO_T}no" >&6; }
7978fi
7979
7980if test -z "$lt_cv_path_MAGIC_CMD"; then
7981  if test -n "$ac_tool_prefix"; then
7982    { echo "$as_me:$LINENO: checking for file" >&5
7983echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7984if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7985  echo $ECHO_N "(cached) $ECHO_C" >&6
7986else
7987  case $MAGIC_CMD in
7988[\\/*] |  ?:[\\/]*)
7989  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7990  ;;
7991*)
7992  lt_save_MAGIC_CMD="$MAGIC_CMD"
7993  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7994  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7995  for ac_dir in $ac_dummy; do
7996    IFS="$lt_save_ifs"
7997    test -z "$ac_dir" && ac_dir=.
7998    if test -f $ac_dir/file; then
7999      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8000      if test -n "$file_magic_test_file"; then
8001	case $deplibs_check_method in
8002	"file_magic "*)
8003	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8004	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8005	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8006	    $EGREP "$file_magic_regex" > /dev/null; then
8007	    :
8008	  else
8009	    cat <<EOF 1>&2
8010
8011*** Warning: the command libtool uses to detect shared libraries,
8012*** $file_magic_cmd, produces output that libtool cannot recognize.
8013*** The result is that libtool may fail to recognize shared libraries
8014*** as such.  This will affect the creation of libtool libraries that
8015*** depend on shared libraries, but programs linked with such libtool
8016*** libraries will work regardless of this problem.  Nevertheless, you
8017*** may want to report the problem to your system manager and/or to
8018*** bug-libtool@gnu.org
8019
8020EOF
8021	  fi ;;
8022	esac
8023      fi
8024      break
8025    fi
8026  done
8027  IFS="$lt_save_ifs"
8028  MAGIC_CMD="$lt_save_MAGIC_CMD"
8029  ;;
8030esac
8031fi
8032
8033MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8034if test -n "$MAGIC_CMD"; then
8035  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8036echo "${ECHO_T}$MAGIC_CMD" >&6; }
8037else
8038  { echo "$as_me:$LINENO: result: no" >&5
8039echo "${ECHO_T}no" >&6; }
8040fi
8041
8042  else
8043    MAGIC_CMD=:
8044  fi
8045fi
8046
8047  fi
8048  ;;
8049esac
8050
8051enable_dlopen=no
8052enable_win32_dll=no
8053
8054# Check whether --enable-libtool-lock was given.
8055if test "${enable_libtool_lock+set}" = set; then
8056  enableval=$enable_libtool_lock;
8057fi
8058
8059test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8060
8061
8062# Check whether --with-pic was given.
8063if test "${with_pic+set}" = set; then
8064  withval=$with_pic; pic_mode="$withval"
8065else
8066  pic_mode=default
8067fi
8068
8069test -z "$pic_mode" && pic_mode=default
8070
8071# Use C for the default configuration in the libtool script
8072tagname=
8073lt_save_CC="$CC"
8074ac_ext=c
8075ac_cpp='$CPP $CPPFLAGS'
8076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8078ac_compiler_gnu=$ac_cv_c_compiler_gnu
8079
8080
8081# Source file extension for C test sources.
8082ac_ext=c
8083
8084# Object file extension for compiled C test sources.
8085objext=o
8086objext=$objext
8087
8088# Code to be used in simple compile tests
8089lt_simple_compile_test_code="int some_variable = 0;\n"
8090
8091# Code to be used in simple link tests
8092lt_simple_link_test_code='int main(){return(0);}\n'
8093
8094
8095# If no C compiler was specified, use CC.
8096LTCC=${LTCC-"$CC"}
8097
8098# If no C compiler flags were specified, use CFLAGS.
8099LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8100
8101# Allow CC to be a program name with arguments.
8102compiler=$CC
8103
8104
8105# save warnings/boilerplate of simple test code
8106ac_outfile=conftest.$ac_objext
8107printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8108eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8109_lt_compiler_boilerplate=`cat conftest.err`
8110$rm conftest*
8111
8112ac_outfile=conftest.$ac_objext
8113printf "$lt_simple_link_test_code" >conftest.$ac_ext
8114eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8115_lt_linker_boilerplate=`cat conftest.err`
8116$rm conftest*
8117
8118
8119
8120lt_prog_compiler_no_builtin_flag=
8121
8122if test "$GCC" = yes; then
8123  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8124
8125
8126{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8127echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8128if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8129  echo $ECHO_N "(cached) $ECHO_C" >&6
8130else
8131  lt_cv_prog_compiler_rtti_exceptions=no
8132  ac_outfile=conftest.$ac_objext
8133   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8134   lt_compiler_flag="-fno-rtti -fno-exceptions"
8135   # Insert the option either (1) after the last *FLAGS variable, or
8136   # (2) before a word containing "conftest.", or (3) at the end.
8137   # Note that $ac_compile itself does not contain backslashes and begins
8138   # with a dollar sign (not a hyphen), so the echo should work correctly.
8139   # The option is referenced via a variable to avoid confusing sed.
8140   lt_compile=`echo "$ac_compile" | $SED \
8141   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8142   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8143   -e 's:$: $lt_compiler_flag:'`
8144   (eval echo "\"\$as_me:8144: $lt_compile\"" >&5)
8145   (eval "$lt_compile" 2>conftest.err)
8146   ac_status=$?
8147   cat conftest.err >&5
8148   echo "$as_me:8148: \$? = $ac_status" >&5
8149   if (exit $ac_status) && test -s "$ac_outfile"; then
8150     # The compiler can only warn and ignore the option if not recognized
8151     # So say no if there are warnings other than the usual output.
8152     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8153     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8154     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8155       lt_cv_prog_compiler_rtti_exceptions=yes
8156     fi
8157   fi
8158   $rm conftest*
8159
8160fi
8161{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8162echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8163
8164if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8165    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8166else
8167    :
8168fi
8169
8170fi
8171
8172lt_prog_compiler_wl=
8173lt_prog_compiler_pic=
8174lt_prog_compiler_static=
8175
8176{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8177echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8178
8179  if test "$GCC" = yes; then
8180    lt_prog_compiler_wl='-Wl,'
8181    lt_prog_compiler_static='-static'
8182
8183    case $host_os in
8184      aix*)
8185      # All AIX code is PIC.
8186      if test "$host_cpu" = ia64; then
8187	# AIX 5 now supports IA64 processor
8188	lt_prog_compiler_static='-Bstatic'
8189      fi
8190      ;;
8191
8192    amigaos*)
8193      # FIXME: we need at least 68020 code to build shared libraries, but
8194      # adding the `-m68020' flag to GCC prevents building anything better,
8195      # like `-m68040'.
8196      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8197      ;;
8198
8199    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8200      # PIC is the default for these OSes.
8201      ;;
8202
8203    mingw* | pw32* | os2*)
8204      # This hack is so that the source file can tell whether it is being
8205      # built for inclusion in a dll (and should export symbols for example).
8206      lt_prog_compiler_pic='-DDLL_EXPORT'
8207      ;;
8208
8209    darwin* | rhapsody*)
8210      # PIC is the default on this platform
8211      # Common symbols not allowed in MH_DYLIB files
8212      lt_prog_compiler_pic='-fno-common'
8213      ;;
8214
8215    interix3*)
8216      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8217      # Instead, we relocate shared libraries at runtime.
8218      ;;
8219
8220    msdosdjgpp*)
8221      # Just because we use GCC doesn't mean we suddenly get shared libraries
8222      # on systems that don't support them.
8223      lt_prog_compiler_can_build_shared=no
8224      enable_shared=no
8225      ;;
8226
8227    sysv4*MP*)
8228      if test -d /usr/nec; then
8229	lt_prog_compiler_pic=-Kconform_pic
8230      fi
8231      ;;
8232
8233    hpux*)
8234      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8235      # not for PA HP-UX.
8236      case $host_cpu in
8237      hppa*64*|ia64*)
8238	# +Z the default
8239	;;
8240      *)
8241	lt_prog_compiler_pic='-fPIC'
8242	;;
8243      esac
8244      ;;
8245
8246    *)
8247      lt_prog_compiler_pic='-fPIC'
8248      ;;
8249    esac
8250  else
8251    # PORTME Check for flag to pass linker flags through the system compiler.
8252    case $host_os in
8253    aix*)
8254      lt_prog_compiler_wl='-Wl,'
8255      if test "$host_cpu" = ia64; then
8256	# AIX 5 now supports IA64 processor
8257	lt_prog_compiler_static='-Bstatic'
8258      else
8259	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8260      fi
8261      ;;
8262      darwin*)
8263        # PIC is the default on this platform
8264        # Common symbols not allowed in MH_DYLIB files
8265       case $cc_basename in
8266         xlc*)
8267         lt_prog_compiler_pic='-qnocommon'
8268         lt_prog_compiler_wl='-Wl,'
8269         ;;
8270       esac
8271       ;;
8272
8273    mingw* | pw32* | os2*)
8274      # This hack is so that the source file can tell whether it is being
8275      # built for inclusion in a dll (and should export symbols for example).
8276      lt_prog_compiler_pic='-DDLL_EXPORT'
8277      ;;
8278
8279    hpux9* | hpux10* | hpux11*)
8280      lt_prog_compiler_wl='-Wl,'
8281      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8282      # not for PA HP-UX.
8283      case $host_cpu in
8284      hppa*64*|ia64*)
8285	# +Z the default
8286	;;
8287      *)
8288	lt_prog_compiler_pic='+Z'
8289	;;
8290      esac
8291      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8292      lt_prog_compiler_static='${wl}-a ${wl}archive'
8293      ;;
8294
8295    irix5* | irix6* | nonstopux*)
8296      lt_prog_compiler_wl='-Wl,'
8297      # PIC (with -KPIC) is the default.
8298      lt_prog_compiler_static='-non_shared'
8299      ;;
8300
8301    newsos6)
8302      lt_prog_compiler_pic='-KPIC'
8303      lt_prog_compiler_static='-Bstatic'
8304      ;;
8305
8306    linux* | k*bsd*-gnu)
8307      case $cc_basename in
8308      icc* | ecc*)
8309	lt_prog_compiler_wl='-Wl,'
8310	lt_prog_compiler_pic='-KPIC'
8311	lt_prog_compiler_static='-static'
8312        ;;
8313      pgcc* | pgf77* | pgf90* | pgf95*)
8314        # Portland Group compilers (*not* the Pentium gcc compiler,
8315	# which looks to be a dead project)
8316	lt_prog_compiler_wl='-Wl,'
8317	lt_prog_compiler_pic='-fpic'
8318	lt_prog_compiler_static='-Bstatic'
8319        ;;
8320      ccc*)
8321        lt_prog_compiler_wl='-Wl,'
8322        # All Alpha code is PIC.
8323        lt_prog_compiler_static='-non_shared'
8324        ;;
8325      esac
8326      ;;
8327
8328    osf3* | osf4* | osf5*)
8329      lt_prog_compiler_wl='-Wl,'
8330      # All OSF/1 code is PIC.
8331      lt_prog_compiler_static='-non_shared'
8332      ;;
8333
8334    solaris*)
8335      lt_prog_compiler_pic='-KPIC'
8336      lt_prog_compiler_static='-Bstatic'
8337      case $cc_basename in
8338      f77* | f90* | f95*)
8339	lt_prog_compiler_wl='-Qoption ld ';;
8340      *)
8341	lt_prog_compiler_wl='-Wl,';;
8342      esac
8343      ;;
8344
8345    sunos4*)
8346      lt_prog_compiler_wl='-Qoption ld '
8347      lt_prog_compiler_pic='-PIC'
8348      lt_prog_compiler_static='-Bstatic'
8349      ;;
8350
8351    sysv4 | sysv4.2uw2* | sysv4.3*)
8352      lt_prog_compiler_wl='-Wl,'
8353      lt_prog_compiler_pic='-KPIC'
8354      lt_prog_compiler_static='-Bstatic'
8355      ;;
8356
8357    sysv4*MP*)
8358      if test -d /usr/nec ;then
8359	lt_prog_compiler_pic='-Kconform_pic'
8360	lt_prog_compiler_static='-Bstatic'
8361      fi
8362      ;;
8363
8364    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8365      lt_prog_compiler_wl='-Wl,'
8366      lt_prog_compiler_pic='-KPIC'
8367      lt_prog_compiler_static='-Bstatic'
8368      ;;
8369
8370    unicos*)
8371      lt_prog_compiler_wl='-Wl,'
8372      lt_prog_compiler_can_build_shared=no
8373      ;;
8374
8375    uts4*)
8376      lt_prog_compiler_pic='-pic'
8377      lt_prog_compiler_static='-Bstatic'
8378      ;;
8379
8380    *)
8381      lt_prog_compiler_can_build_shared=no
8382      ;;
8383    esac
8384  fi
8385
8386{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8387echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8388
8389#
8390# Check to make sure the PIC flag actually works.
8391#
8392if test -n "$lt_prog_compiler_pic"; then
8393
8394{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8395echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8396if test "${lt_prog_compiler_pic_works+set}" = set; then
8397  echo $ECHO_N "(cached) $ECHO_C" >&6
8398else
8399  lt_prog_compiler_pic_works=no
8400  ac_outfile=conftest.$ac_objext
8401   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8402   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8403   # Insert the option either (1) after the last *FLAGS variable, or
8404   # (2) before a word containing "conftest.", or (3) at the end.
8405   # Note that $ac_compile itself does not contain backslashes and begins
8406   # with a dollar sign (not a hyphen), so the echo should work correctly.
8407   # The option is referenced via a variable to avoid confusing sed.
8408   lt_compile=`echo "$ac_compile" | $SED \
8409   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8410   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8411   -e 's:$: $lt_compiler_flag:'`
8412   (eval echo "\"\$as_me:8412: $lt_compile\"" >&5)
8413   (eval "$lt_compile" 2>conftest.err)
8414   ac_status=$?
8415   cat conftest.err >&5
8416   echo "$as_me:8416: \$? = $ac_status" >&5
8417   if (exit $ac_status) && test -s "$ac_outfile"; then
8418     # The compiler can only warn and ignore the option if not recognized
8419     # So say no if there are warnings other than the usual output.
8420     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8421     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8422     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8423       lt_prog_compiler_pic_works=yes
8424     fi
8425   fi
8426   $rm conftest*
8427
8428fi
8429{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8430echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8431
8432if test x"$lt_prog_compiler_pic_works" = xyes; then
8433    case $lt_prog_compiler_pic in
8434     "" | " "*) ;;
8435     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8436     esac
8437else
8438    lt_prog_compiler_pic=
8439     lt_prog_compiler_can_build_shared=no
8440fi
8441
8442fi
8443case $host_os in
8444  # For platforms which do not support PIC, -DPIC is meaningless:
8445  *djgpp*)
8446    lt_prog_compiler_pic=
8447    ;;
8448  *)
8449    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8450    ;;
8451esac
8452
8453#
8454# Check to make sure the static flag actually works.
8455#
8456wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8457{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8458echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8459if test "${lt_prog_compiler_static_works+set}" = set; then
8460  echo $ECHO_N "(cached) $ECHO_C" >&6
8461else
8462  lt_prog_compiler_static_works=no
8463   save_LDFLAGS="$LDFLAGS"
8464   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8465   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8466   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8467     # The linker can only warn and ignore the option if not recognized
8468     # So say no if there are warnings
8469     if test -s conftest.err; then
8470       # Append any errors to the config.log.
8471       cat conftest.err 1>&5
8472       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8473       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8474       if diff conftest.exp conftest.er2 >/dev/null; then
8475         lt_prog_compiler_static_works=yes
8476       fi
8477     else
8478       lt_prog_compiler_static_works=yes
8479     fi
8480   fi
8481   $rm conftest*
8482   LDFLAGS="$save_LDFLAGS"
8483
8484fi
8485{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8486echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8487
8488if test x"$lt_prog_compiler_static_works" = xyes; then
8489    :
8490else
8491    lt_prog_compiler_static=
8492fi
8493
8494
8495{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8496echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8497if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8498  echo $ECHO_N "(cached) $ECHO_C" >&6
8499else
8500  lt_cv_prog_compiler_c_o=no
8501   $rm -r conftest 2>/dev/null
8502   mkdir conftest
8503   cd conftest
8504   mkdir out
8505   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8506
8507   lt_compiler_flag="-o out/conftest2.$ac_objext"
8508   # Insert the option either (1) after the last *FLAGS variable, or
8509   # (2) before a word containing "conftest.", or (3) at the end.
8510   # Note that $ac_compile itself does not contain backslashes and begins
8511   # with a dollar sign (not a hyphen), so the echo should work correctly.
8512   lt_compile=`echo "$ac_compile" | $SED \
8513   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8514   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8515   -e 's:$: $lt_compiler_flag:'`
8516   (eval echo "\"\$as_me:8516: $lt_compile\"" >&5)
8517   (eval "$lt_compile" 2>out/conftest.err)
8518   ac_status=$?
8519   cat out/conftest.err >&5
8520   echo "$as_me:8520: \$? = $ac_status" >&5
8521   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8522   then
8523     # The compiler can only warn and ignore the option if not recognized
8524     # So say no if there are warnings
8525     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8526     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8527     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8528       lt_cv_prog_compiler_c_o=yes
8529     fi
8530   fi
8531   chmod u+w . 2>&5
8532   $rm conftest*
8533   # SGI C++ compiler will create directory out/ii_files/ for
8534   # template instantiation
8535   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8536   $rm out/* && rmdir out
8537   cd ..
8538   rmdir conftest
8539   $rm conftest*
8540
8541fi
8542{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8543echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8544
8545
8546hard_links="nottested"
8547if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8548  # do not overwrite the value of need_locks provided by the user
8549  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8550echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8551  hard_links=yes
8552  $rm conftest*
8553  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8554  touch conftest.a
8555  ln conftest.a conftest.b 2>&5 || hard_links=no
8556  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8557  { echo "$as_me:$LINENO: result: $hard_links" >&5
8558echo "${ECHO_T}$hard_links" >&6; }
8559  if test "$hard_links" = no; then
8560    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8561echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8562    need_locks=warn
8563  fi
8564else
8565  need_locks=no
8566fi
8567
8568{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8569echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8570
8571  runpath_var=
8572  allow_undefined_flag=
8573  enable_shared_with_static_runtimes=no
8574  archive_cmds=
8575  archive_expsym_cmds=
8576  old_archive_From_new_cmds=
8577  old_archive_from_expsyms_cmds=
8578  export_dynamic_flag_spec=
8579  whole_archive_flag_spec=
8580  thread_safe_flag_spec=
8581  hardcode_libdir_flag_spec=
8582  hardcode_libdir_flag_spec_ld=
8583  hardcode_libdir_separator=
8584  hardcode_direct=no
8585  hardcode_minus_L=no
8586  hardcode_shlibpath_var=unsupported
8587  link_all_deplibs=unknown
8588  hardcode_automatic=no
8589  module_cmds=
8590  module_expsym_cmds=
8591  always_export_symbols=no
8592  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8593  # include_expsyms should be a list of space-separated symbols to be *always*
8594  # included in the symbol list
8595  include_expsyms=
8596  # exclude_expsyms can be an extended regexp of symbols to exclude
8597  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8598  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8599  # as well as any symbol that contains `d'.
8600  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8601  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8602  # platforms (ab)use it in PIC code, but their linkers get confused if
8603  # the symbol is explicitly referenced.  Since portable code cannot
8604  # rely on this symbol name, it's probably fine to never include it in
8605  # preloaded symbol tables.
8606  extract_expsyms_cmds=
8607  # Just being paranoid about ensuring that cc_basename is set.
8608  for cc_temp in $compiler""; do
8609  case $cc_temp in
8610    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8611    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8612    \-*) ;;
8613    *) break;;
8614  esac
8615done
8616cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8617
8618  case $host_os in
8619  cygwin* | mingw* | pw32*)
8620    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8621    # When not using gcc, we currently assume that we are using
8622    # Microsoft Visual C++.
8623    if test "$GCC" != yes; then
8624      with_gnu_ld=no
8625    fi
8626    ;;
8627  interix*)
8628    # we just hope/assume this is gcc and not c89 (= MSVC++)
8629    with_gnu_ld=yes
8630    ;;
8631  openbsd*)
8632    with_gnu_ld=no
8633    ;;
8634  esac
8635
8636  ld_shlibs=yes
8637  if test "$with_gnu_ld" = yes; then
8638    # If archive_cmds runs LD, not CC, wlarc should be empty
8639    wlarc='${wl}'
8640
8641    # Set some defaults for GNU ld with shared library support. These
8642    # are reset later if shared libraries are not supported. Putting them
8643    # here allows them to be overridden if necessary.
8644    runpath_var=LD_RUN_PATH
8645    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8646    export_dynamic_flag_spec='${wl}--export-dynamic'
8647    # ancient GNU ld didn't support --whole-archive et. al.
8648    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8649	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8650      else
8651  	whole_archive_flag_spec=
8652    fi
8653    supports_anon_versioning=no
8654    case `$LD -v 2>/dev/null` in
8655      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8656      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8657      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8658      *\ 2.11.*) ;; # other 2.11 versions
8659      *) supports_anon_versioning=yes ;;
8660    esac
8661
8662    # See if GNU ld supports shared libraries.
8663    case $host_os in
8664    aix3* | aix4* | aix5*)
8665      # On AIX/PPC, the GNU linker is very broken
8666      if test "$host_cpu" != ia64; then
8667	ld_shlibs=no
8668	cat <<EOF 1>&2
8669
8670*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8671*** to be unable to reliably create shared libraries on AIX.
8672*** Therefore, libtool is disabling shared libraries support.  If you
8673*** really care for shared libraries, you may want to modify your PATH
8674*** so that a non-GNU linker is found, and then restart.
8675
8676EOF
8677      fi
8678      ;;
8679
8680    amigaos*)
8681      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)'
8682      hardcode_libdir_flag_spec='-L$libdir'
8683      hardcode_minus_L=yes
8684
8685      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8686      # that the semantics of dynamic libraries on AmigaOS, at least up
8687      # to version 4, is to share data among multiple programs linked
8688      # with the same dynamic library.  Since this doesn't match the
8689      # behavior of shared libraries on other platforms, we can't use
8690      # them.
8691      ld_shlibs=no
8692      ;;
8693
8694    beos*)
8695      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8696	allow_undefined_flag=unsupported
8697	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8698	# support --undefined.  This deserves some investigation.  FIXME
8699	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8700      else
8701	ld_shlibs=no
8702      fi
8703      ;;
8704
8705    cygwin* | mingw* | pw32*)
8706      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8707      # as there is no search path for DLLs.
8708      hardcode_libdir_flag_spec='-L$libdir'
8709      allow_undefined_flag=unsupported
8710      always_export_symbols=no
8711      enable_shared_with_static_runtimes=yes
8712      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8713
8714      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8715        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8716	# If the export-symbols file already is a .def file (1st line
8717	# is EXPORTS), use it as is; otherwise, prepend...
8718	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8719	  cp $export_symbols $output_objdir/$soname.def;
8720	else
8721	  echo EXPORTS > $output_objdir/$soname.def;
8722	  cat $export_symbols >> $output_objdir/$soname.def;
8723	fi~
8724	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8725      else
8726	ld_shlibs=no
8727      fi
8728      ;;
8729
8730    interix3*)
8731      hardcode_direct=no
8732      hardcode_shlibpath_var=no
8733      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8734      export_dynamic_flag_spec='${wl}-E'
8735      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8736      # Instead, shared libraries are loaded at an image base (0x10000000 by
8737      # default) and relocated if they conflict, which is a slow very memory
8738      # consuming and fragmenting process.  To avoid this, we pick a random,
8739      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8740      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8741      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8742      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'
8743      ;;
8744
8745    linux* | k*bsd*-gnu)
8746      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8747	tmp_addflag=
8748	case $cc_basename,$host_cpu in
8749	pgcc*)				# Portland Group C compiler
8750	  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'
8751	  tmp_addflag=' $pic_flag'
8752	  ;;
8753	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8754	  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'
8755	  tmp_addflag=' $pic_flag -Mnomain' ;;
8756	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8757	  tmp_addflag=' -i_dynamic' ;;
8758	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8759	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8760	ifc* | ifort*)			# Intel Fortran compiler
8761	  tmp_addflag=' -nofor_main' ;;
8762	esac
8763	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8764
8765	if test $supports_anon_versioning = yes; then
8766	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8767  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8768  $echo "local: *; };" >> $output_objdir/$libname.ver~
8769	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8770	fi
8771	link_all_deplibs=no
8772      else
8773	ld_shlibs=no
8774      fi
8775      ;;
8776
8777    netbsd* | netbsdelf*-gnu)
8778      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8779	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8780	wlarc=
8781      else
8782	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8783	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8784      fi
8785      ;;
8786
8787    solaris*)
8788      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8789	ld_shlibs=no
8790	cat <<EOF 1>&2
8791
8792*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8793*** create shared libraries on Solaris systems.  Therefore, libtool
8794*** is disabling shared libraries support.  We urge you to upgrade GNU
8795*** binutils to release 2.9.1 or newer.  Another option is to modify
8796*** your PATH or compiler configuration so that the native linker is
8797*** used, and then restart.
8798
8799EOF
8800      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8801	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8802	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8803      else
8804	ld_shlibs=no
8805      fi
8806      ;;
8807
8808    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8809      case `$LD -v 2>&1` in
8810        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8811	ld_shlibs=no
8812	cat <<_LT_EOF 1>&2
8813
8814*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8815*** reliably create shared libraries on SCO systems.  Therefore, libtool
8816*** is disabling shared libraries support.  We urge you to upgrade GNU
8817*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8818*** your PATH or compiler configuration so that the native linker is
8819*** used, and then restart.
8820
8821_LT_EOF
8822	;;
8823	*)
8824	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8825	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8826	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8827	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8828	  else
8829	    ld_shlibs=no
8830	  fi
8831	;;
8832      esac
8833      ;;
8834
8835    sunos4*)
8836      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8837      wlarc=
8838      hardcode_direct=yes
8839      hardcode_shlibpath_var=no
8840      ;;
8841
8842    *)
8843      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8844	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8845	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8846      else
8847	ld_shlibs=no
8848      fi
8849      ;;
8850    esac
8851
8852    if test "$ld_shlibs" = no; then
8853      runpath_var=
8854      hardcode_libdir_flag_spec=
8855      export_dynamic_flag_spec=
8856      whole_archive_flag_spec=
8857    fi
8858  else
8859    # PORTME fill in a description of your system's linker (not GNU ld)
8860    case $host_os in
8861    aix3*)
8862      allow_undefined_flag=unsupported
8863      always_export_symbols=yes
8864      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'
8865      # Note: this linker hardcodes the directories in LIBPATH if there
8866      # are no directories specified by -L.
8867      hardcode_minus_L=yes
8868      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8869	# Neither direct hardcoding nor static linking is supported with a
8870	# broken collect2.
8871	hardcode_direct=unsupported
8872      fi
8873      ;;
8874
8875    aix4* | aix5*)
8876      if test "$host_cpu" = ia64; then
8877	# On IA64, the linker does run time linking by default, so we don't
8878	# have to do anything special.
8879	aix_use_runtimelinking=no
8880	exp_sym_flag='-Bexport'
8881	no_entry_flag=""
8882      else
8883	# If we're using GNU nm, then we don't want the "-C" option.
8884	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8885	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8886	  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'
8887	else
8888	  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'
8889	fi
8890	aix_use_runtimelinking=no
8891
8892	# Test if we are trying to use run time linking or normal
8893	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8894	# need to do runtime linking.
8895	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8896	  for ld_flag in $LDFLAGS; do
8897  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8898  	    aix_use_runtimelinking=yes
8899  	    break
8900  	  fi
8901	  done
8902	  ;;
8903	esac
8904
8905	exp_sym_flag='-bexport'
8906	no_entry_flag='-bnoentry'
8907      fi
8908
8909      # When large executables or shared objects are built, AIX ld can
8910      # have problems creating the table of contents.  If linking a library
8911      # or program results in "error TOC overflow" add -mminimal-toc to
8912      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8913      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8914
8915      archive_cmds=''
8916      hardcode_direct=yes
8917      hardcode_libdir_separator=':'
8918      link_all_deplibs=yes
8919
8920      if test "$GCC" = yes; then
8921	case $host_os in aix4.[012]|aix4.[012].*)
8922	# We only want to do this on AIX 4.2 and lower, the check
8923	# below for broken collect2 doesn't work under 4.3+
8924	  collect2name=`${CC} -print-prog-name=collect2`
8925	  if test -f "$collect2name" && \
8926  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8927	  then
8928  	  # We have reworked collect2
8929  	  hardcode_direct=yes
8930	  else
8931  	  # We have old collect2
8932  	  hardcode_direct=unsupported
8933  	  # It fails to find uninstalled libraries when the uninstalled
8934  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8935  	  # to unsupported forces relinking
8936  	  hardcode_minus_L=yes
8937  	  hardcode_libdir_flag_spec='-L$libdir'
8938  	  hardcode_libdir_separator=
8939	  fi
8940	  ;;
8941	esac
8942	shared_flag='-shared'
8943	if test "$aix_use_runtimelinking" = yes; then
8944	  shared_flag="$shared_flag "'${wl}-G'
8945	fi
8946      else
8947	# not using gcc
8948	if test "$host_cpu" = ia64; then
8949  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8950  	# chokes on -Wl,-G. The following line is correct:
8951	  shared_flag='-G'
8952	else
8953	  if test "$aix_use_runtimelinking" = yes; then
8954	    shared_flag='${wl}-G'
8955	  else
8956	    shared_flag='${wl}-bM:SRE'
8957	  fi
8958	fi
8959      fi
8960
8961      # It seems that -bexpall does not export symbols beginning with
8962      # underscore (_), so it is better to generate a list of symbols to export.
8963      always_export_symbols=yes
8964      if test "$aix_use_runtimelinking" = yes; then
8965	# Warning - without using the other runtime loading flags (-brtl),
8966	# -berok will link without error, but may produce a broken library.
8967	allow_undefined_flag='-berok'
8968       # Determine the default libpath from the value encoded in an empty executable.
8969       cat >conftest.$ac_ext <<_ACEOF
8970/* confdefs.h.  */
8971_ACEOF
8972cat confdefs.h >>conftest.$ac_ext
8973cat >>conftest.$ac_ext <<_ACEOF
8974/* end confdefs.h.  */
8975
8976int
8977main ()
8978{
8979
8980  ;
8981  return 0;
8982}
8983_ACEOF
8984rm -f conftest.$ac_objext conftest$ac_exeext
8985if { (ac_try="$ac_link"
8986case "(($ac_try" in
8987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988  *) ac_try_echo=$ac_try;;
8989esac
8990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991  (eval "$ac_link") 2>conftest.er1
8992  ac_status=$?
8993  grep -v '^ *+' conftest.er1 >conftest.err
8994  rm -f conftest.er1
8995  cat conftest.err >&5
8996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997  (exit $ac_status); } && {
8998	 test -z "$ac_c_werror_flag" ||
8999	 test ! -s conftest.err
9000       } && test -s conftest$ac_exeext &&
9001       $as_test_x conftest$ac_exeext; then
9002
9003aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9004}'`
9005# Check for a 64-bit object if we didn't find anything.
9006if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9007}'`; fi
9008else
9009  echo "$as_me: failed program was:" >&5
9010sed 's/^/| /' conftest.$ac_ext >&5
9011
9012
9013fi
9014
9015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9016      conftest$ac_exeext conftest.$ac_ext
9017if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9018
9019       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9020	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"
9021       else
9022	if test "$host_cpu" = ia64; then
9023	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9024	  allow_undefined_flag="-z nodefs"
9025	  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"
9026	else
9027	 # Determine the default libpath from the value encoded in an empty executable.
9028	 cat >conftest.$ac_ext <<_ACEOF
9029/* confdefs.h.  */
9030_ACEOF
9031cat confdefs.h >>conftest.$ac_ext
9032cat >>conftest.$ac_ext <<_ACEOF
9033/* end confdefs.h.  */
9034
9035int
9036main ()
9037{
9038
9039  ;
9040  return 0;
9041}
9042_ACEOF
9043rm -f conftest.$ac_objext conftest$ac_exeext
9044if { (ac_try="$ac_link"
9045case "(($ac_try" in
9046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047  *) ac_try_echo=$ac_try;;
9048esac
9049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9050  (eval "$ac_link") 2>conftest.er1
9051  ac_status=$?
9052  grep -v '^ *+' conftest.er1 >conftest.err
9053  rm -f conftest.er1
9054  cat conftest.err >&5
9055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056  (exit $ac_status); } && {
9057	 test -z "$ac_c_werror_flag" ||
9058	 test ! -s conftest.err
9059       } && test -s conftest$ac_exeext &&
9060       $as_test_x conftest$ac_exeext; then
9061
9062aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9063}'`
9064# Check for a 64-bit object if we didn't find anything.
9065if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9066}'`; fi
9067else
9068  echo "$as_me: failed program was:" >&5
9069sed 's/^/| /' conftest.$ac_ext >&5
9070
9071
9072fi
9073
9074rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9075      conftest$ac_exeext conftest.$ac_ext
9076if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9077
9078	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9079	  # Warning - without using the other run time loading flags,
9080	  # -berok will link without error, but may produce a broken library.
9081	  no_undefined_flag=' ${wl}-bernotok'
9082	  allow_undefined_flag=' ${wl}-berok'
9083	  # Exported symbols can be pulled into shared objects from archives
9084	  whole_archive_flag_spec='$convenience'
9085	  archive_cmds_need_lc=yes
9086	  # This is similar to how AIX traditionally builds its shared libraries.
9087	  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'
9088	fi
9089      fi
9090      ;;
9091
9092    amigaos*)
9093      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)'
9094      hardcode_libdir_flag_spec='-L$libdir'
9095      hardcode_minus_L=yes
9096      # see comment about different semantics on the GNU ld section
9097      ld_shlibs=no
9098      ;;
9099
9100    bsdi[45]*)
9101      export_dynamic_flag_spec=-rdynamic
9102      ;;
9103
9104    cygwin* | mingw* | pw32*)
9105      # When not using gcc, we currently assume that we are using
9106      # Microsoft Visual C++.
9107      # hardcode_libdir_flag_spec is actually meaningless, as there is
9108      # no search path for DLLs.
9109      hardcode_libdir_flag_spec=' '
9110      allow_undefined_flag=unsupported
9111      # Tell ltmain to make .lib files, not .a files.
9112      libext=lib
9113      # Tell ltmain to make .dll files, not .so files.
9114      shrext_cmds=".dll"
9115      # FIXME: Setting linknames here is a bad hack.
9116      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9117      # The linker will automatically build a .lib file if we build a DLL.
9118      old_archive_From_new_cmds='true'
9119      # FIXME: Should let the user specify the lib program.
9120      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9121      fix_srcfile_path='`cygpath -w "$srcfile"`'
9122      enable_shared_with_static_runtimes=yes
9123      ;;
9124
9125    darwin* | rhapsody*)
9126      case $host_os in
9127        rhapsody* | darwin1.[012])
9128         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9129         ;;
9130       *) # Darwin 1.3 on
9131         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9132           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9133         else
9134           case ${MACOSX_DEPLOYMENT_TARGET} in
9135             10.[012])
9136               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9137               ;;
9138             10.*)
9139               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9140               ;;
9141           esac
9142         fi
9143         ;;
9144      esac
9145      archive_cmds_need_lc=no
9146      hardcode_direct=no
9147      hardcode_automatic=yes
9148      hardcode_shlibpath_var=unsupported
9149      whole_archive_flag_spec=''
9150      link_all_deplibs=yes
9151    if test "$GCC" = yes ; then
9152    	output_verbose_link_cmd='echo'
9153        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9154      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9155      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9156      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9157      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}'
9158    else
9159      case $cc_basename in
9160        xlc*)
9161         output_verbose_link_cmd='echo'
9162         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9163         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9164          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9165         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9166          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}'
9167          ;;
9168       *)
9169         ld_shlibs=no
9170          ;;
9171      esac
9172    fi
9173      ;;
9174
9175    dgux*)
9176      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9177      hardcode_libdir_flag_spec='-L$libdir'
9178      hardcode_shlibpath_var=no
9179      ;;
9180
9181    freebsd1*)
9182      ld_shlibs=no
9183      ;;
9184
9185    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9186    # support.  Future versions do this automatically, but an explicit c++rt0.o
9187    # does not break anything, and helps significantly (at the cost of a little
9188    # extra space).
9189    freebsd2.2*)
9190      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9191      hardcode_libdir_flag_spec='-R$libdir'
9192      hardcode_direct=yes
9193      hardcode_shlibpath_var=no
9194      ;;
9195
9196    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9197    freebsd2*)
9198      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9199      hardcode_direct=yes
9200      hardcode_minus_L=yes
9201      hardcode_shlibpath_var=no
9202      ;;
9203
9204    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9205    freebsd* | dragonfly*)
9206      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9207      hardcode_libdir_flag_spec='-R$libdir'
9208      hardcode_direct=yes
9209      hardcode_shlibpath_var=no
9210      ;;
9211
9212    hpux9*)
9213      if test "$GCC" = yes; then
9214	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'
9215      else
9216	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'
9217      fi
9218      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9219      hardcode_libdir_separator=:
9220      hardcode_direct=yes
9221
9222      # hardcode_minus_L: Not really in the search PATH,
9223      # but as the default location of the library.
9224      hardcode_minus_L=yes
9225      export_dynamic_flag_spec='${wl}-E'
9226      ;;
9227
9228    hpux10*)
9229      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9230	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9231      else
9232	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9233      fi
9234      if test "$with_gnu_ld" = no; then
9235	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9236	hardcode_libdir_separator=:
9237
9238	hardcode_direct=yes
9239	export_dynamic_flag_spec='${wl}-E'
9240
9241	# hardcode_minus_L: Not really in the search PATH,
9242	# but as the default location of the library.
9243	hardcode_minus_L=yes
9244      fi
9245      ;;
9246
9247    hpux11*)
9248      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9249	case $host_cpu in
9250	hppa*64*)
9251	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9252	  ;;
9253	ia64*)
9254	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9255	  ;;
9256	*)
9257	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9258	  ;;
9259	esac
9260      else
9261	case $host_cpu in
9262	hppa*64*)
9263	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9264	  ;;
9265	ia64*)
9266	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9267	  ;;
9268	*)
9269	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9270	  ;;
9271	esac
9272      fi
9273      if test "$with_gnu_ld" = no; then
9274	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9275	hardcode_libdir_separator=:
9276
9277	case $host_cpu in
9278	hppa*64*|ia64*)
9279	  hardcode_libdir_flag_spec_ld='+b $libdir'
9280	  hardcode_direct=no
9281	  hardcode_shlibpath_var=no
9282	  ;;
9283	*)
9284	  hardcode_direct=yes
9285	  export_dynamic_flag_spec='${wl}-E'
9286
9287	  # hardcode_minus_L: Not really in the search PATH,
9288	  # but as the default location of the library.
9289	  hardcode_minus_L=yes
9290	  ;;
9291	esac
9292      fi
9293      ;;
9294
9295    irix5* | irix6* | nonstopux*)
9296      if test "$GCC" = yes; then
9297	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'
9298      else
9299	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'
9300	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9301      fi
9302      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9303      hardcode_libdir_separator=:
9304      link_all_deplibs=yes
9305      ;;
9306
9307    netbsd* | netbsdelf*-gnu)
9308      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9309	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9310      else
9311	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9312      fi
9313      hardcode_libdir_flag_spec='-R$libdir'
9314      hardcode_direct=yes
9315      hardcode_shlibpath_var=no
9316      ;;
9317
9318    newsos6)
9319      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9320      hardcode_direct=yes
9321      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9322      hardcode_libdir_separator=:
9323      hardcode_shlibpath_var=no
9324      ;;
9325
9326    openbsd*)
9327      hardcode_direct=yes
9328      hardcode_shlibpath_var=no
9329      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9330	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9331	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9332	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9333	export_dynamic_flag_spec='${wl}-E'
9334      else
9335       case $host_os in
9336	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9337	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9338	   hardcode_libdir_flag_spec='-R$libdir'
9339	   ;;
9340	 *)
9341	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9342	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9343	   ;;
9344       esac
9345      fi
9346      ;;
9347
9348    os2*)
9349      hardcode_libdir_flag_spec='-L$libdir'
9350      hardcode_minus_L=yes
9351      allow_undefined_flag=unsupported
9352      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'
9353      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9354      ;;
9355
9356    osf3*)
9357      if test "$GCC" = yes; then
9358	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9359	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'
9360      else
9361	allow_undefined_flag=' -expect_unresolved \*'
9362	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'
9363      fi
9364      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9365      hardcode_libdir_separator=:
9366      ;;
9367
9368    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9369      if test "$GCC" = yes; then
9370	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9371	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'
9372	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9373      else
9374	allow_undefined_flag=' -expect_unresolved \*'
9375	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'
9376	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9377	$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'
9378
9379	# Both c and cxx compiler support -rpath directly
9380	hardcode_libdir_flag_spec='-rpath $libdir'
9381      fi
9382      hardcode_libdir_separator=:
9383      ;;
9384
9385    solaris*)
9386      no_undefined_flag=' -z text'
9387      if test "$GCC" = yes; then
9388	wlarc='${wl}'
9389	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9390	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9391	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9392      else
9393	wlarc=''
9394	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9395	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9396  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9397      fi
9398      hardcode_libdir_flag_spec='-R$libdir'
9399      hardcode_shlibpath_var=no
9400      case $host_os in
9401      solaris2.[0-5] | solaris2.[0-5].*) ;;
9402      *)
9403 	# The compiler driver will combine linker options so we
9404 	# cannot just pass the convience library names through
9405 	# without $wl, iff we do not link with $LD.
9406 	# Luckily, gcc supports the same syntax we need for Sun Studio.
9407 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9408 	case $wlarc in
9409 	'')
9410 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9411 	*)
9412 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9413 	esac ;;
9414      esac
9415      link_all_deplibs=yes
9416      ;;
9417
9418    sunos4*)
9419      if test "x$host_vendor" = xsequent; then
9420	# Use $CC to link under sequent, because it throws in some extra .o
9421	# files that make .init and .fini sections work.
9422	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9423      else
9424	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9425      fi
9426      hardcode_libdir_flag_spec='-L$libdir'
9427      hardcode_direct=yes
9428      hardcode_minus_L=yes
9429      hardcode_shlibpath_var=no
9430      ;;
9431
9432    sysv4)
9433      case $host_vendor in
9434	sni)
9435	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436	  hardcode_direct=yes # is this really true???
9437	;;
9438	siemens)
9439	  ## LD is ld it makes a PLAMLIB
9440	  ## CC just makes a GrossModule.
9441	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9442	  reload_cmds='$CC -r -o $output$reload_objs'
9443	  hardcode_direct=no
9444        ;;
9445	motorola)
9446	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9448	;;
9449      esac
9450      runpath_var='LD_RUN_PATH'
9451      hardcode_shlibpath_var=no
9452      ;;
9453
9454    sysv4.3*)
9455      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9456      hardcode_shlibpath_var=no
9457      export_dynamic_flag_spec='-Bexport'
9458      ;;
9459
9460    sysv4*MP*)
9461      if test -d /usr/nec; then
9462	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9463	hardcode_shlibpath_var=no
9464	runpath_var=LD_RUN_PATH
9465	hardcode_runpath_var=yes
9466	ld_shlibs=yes
9467      fi
9468      ;;
9469
9470    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9471      no_undefined_flag='${wl}-z,text'
9472      archive_cmds_need_lc=no
9473      hardcode_shlibpath_var=no
9474      runpath_var='LD_RUN_PATH'
9475
9476      if test "$GCC" = yes; then
9477	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9478	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9479      else
9480	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9481	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9482      fi
9483      ;;
9484
9485    sysv5* | sco3.2v5* | sco5v6*)
9486      # Note: We can NOT use -z defs as we might desire, because we do not
9487      # link with -lc, and that would cause any symbols used from libc to
9488      # always be unresolved, which means just about no library would
9489      # ever link correctly.  If we're not using GNU ld we use -z text
9490      # though, which does catch some bad symbols but isn't as heavy-handed
9491      # as -z defs.
9492      no_undefined_flag='${wl}-z,text'
9493      allow_undefined_flag='${wl}-z,nodefs'
9494      archive_cmds_need_lc=no
9495      hardcode_shlibpath_var=no
9496      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9497      hardcode_libdir_separator=':'
9498      link_all_deplibs=yes
9499      export_dynamic_flag_spec='${wl}-Bexport'
9500      runpath_var='LD_RUN_PATH'
9501
9502      if test "$GCC" = yes; then
9503	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9504	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9505      else
9506	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9507	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9508      fi
9509      ;;
9510
9511    uts4*)
9512      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9513      hardcode_libdir_flag_spec='-L$libdir'
9514      hardcode_shlibpath_var=no
9515      ;;
9516
9517    *)
9518      ld_shlibs=no
9519      ;;
9520    esac
9521  fi
9522
9523{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9524echo "${ECHO_T}$ld_shlibs" >&6; }
9525test "$ld_shlibs" = no && can_build_shared=no
9526
9527#
9528# Do we need to explicitly link libc?
9529#
9530case "x$archive_cmds_need_lc" in
9531x|xyes)
9532  # Assume -lc should be added
9533  archive_cmds_need_lc=yes
9534
9535  if test "$enable_shared" = yes && test "$GCC" = yes; then
9536    case $archive_cmds in
9537    *'~'*)
9538      # FIXME: we may have to deal with multi-command sequences.
9539      ;;
9540    '$CC '*)
9541      # Test whether the compiler implicitly links with -lc since on some
9542      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9543      # to ld, don't add -lc before -lgcc.
9544      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9545echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9546      $rm conftest*
9547      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9548
9549      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9550  (eval $ac_compile) 2>&5
9551  ac_status=$?
9552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553  (exit $ac_status); } 2>conftest.err; then
9554        soname=conftest
9555        lib=conftest
9556        libobjs=conftest.$ac_objext
9557        deplibs=
9558        wl=$lt_prog_compiler_wl
9559	pic_flag=$lt_prog_compiler_pic
9560        compiler_flags=-v
9561        linker_flags=-v
9562        verstring=
9563        output_objdir=.
9564        libname=conftest
9565        lt_save_allow_undefined_flag=$allow_undefined_flag
9566        allow_undefined_flag=
9567        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9568  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9569  ac_status=$?
9570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571  (exit $ac_status); }
9572        then
9573	  archive_cmds_need_lc=no
9574        else
9575	  archive_cmds_need_lc=yes
9576        fi
9577        allow_undefined_flag=$lt_save_allow_undefined_flag
9578      else
9579        cat conftest.err 1>&5
9580      fi
9581      $rm conftest*
9582      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9583echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9584      ;;
9585    esac
9586  fi
9587  ;;
9588esac
9589
9590{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9591echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9592library_names_spec=
9593libname_spec='lib$name'
9594soname_spec=
9595shrext_cmds=".so"
9596postinstall_cmds=
9597postuninstall_cmds=
9598finish_cmds=
9599finish_eval=
9600shlibpath_var=
9601shlibpath_overrides_runpath=unknown
9602version_type=none
9603dynamic_linker="$host_os ld.so"
9604sys_lib_dlsearch_path_spec="/lib /usr/lib"
9605if test "$GCC" = yes; then
9606  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9607  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9608    # if the path contains ";" then we assume it to be the separator
9609    # otherwise default to the standard path separator (i.e. ":") - it is
9610    # assumed that no part of a normal pathname contains ";" but that should
9611    # okay in the real world where ";" in dirpaths is itself problematic.
9612    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9613  else
9614    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9615  fi
9616else
9617  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9618fi
9619need_lib_prefix=unknown
9620hardcode_into_libs=no
9621
9622# when you set need_version to no, make sure it does not cause -set_version
9623# flags to be left without arguments
9624need_version=unknown
9625
9626case $host_os in
9627aix3*)
9628  version_type=linux
9629  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9630  shlibpath_var=LIBPATH
9631
9632  # AIX 3 has no versioning support, so we append a major version to the name.
9633  soname_spec='${libname}${release}${shared_ext}$major'
9634  ;;
9635
9636aix4* | aix5*)
9637  version_type=linux
9638  need_lib_prefix=no
9639  need_version=no
9640  hardcode_into_libs=yes
9641  if test "$host_cpu" = ia64; then
9642    # AIX 5 supports IA64
9643    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9644    shlibpath_var=LD_LIBRARY_PATH
9645  else
9646    # With GCC up to 2.95.x, collect2 would create an import file
9647    # for dependence libraries.  The import file would start with
9648    # the line `#! .'.  This would cause the generated library to
9649    # depend on `.', always an invalid library.  This was fixed in
9650    # development snapshots of GCC prior to 3.0.
9651    case $host_os in
9652      aix4 | aix4.[01] | aix4.[01].*)
9653      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9654	   echo ' yes '
9655	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9656	:
9657      else
9658	can_build_shared=no
9659      fi
9660      ;;
9661    esac
9662    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9663    # soname into executable. Probably we can add versioning support to
9664    # collect2, so additional links can be useful in future.
9665    if test "$aix_use_runtimelinking" = yes; then
9666      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9667      # instead of lib<name>.a to let people know that these are not
9668      # typical AIX shared libraries.
9669      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9670    else
9671      # We preserve .a as extension for shared libraries through AIX4.2
9672      # and later when we are not doing run time linking.
9673      library_names_spec='${libname}${release}.a $libname.a'
9674      soname_spec='${libname}${release}${shared_ext}$major'
9675    fi
9676    shlibpath_var=LIBPATH
9677  fi
9678  ;;
9679
9680amigaos*)
9681  library_names_spec='$libname.ixlibrary $libname.a'
9682  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9683  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'
9684  ;;
9685
9686beos*)
9687  library_names_spec='${libname}${shared_ext}'
9688  dynamic_linker="$host_os ld.so"
9689  shlibpath_var=LIBRARY_PATH
9690  ;;
9691
9692bsdi[45]*)
9693  version_type=linux
9694  need_version=no
9695  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9696  soname_spec='${libname}${release}${shared_ext}$major'
9697  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9698  shlibpath_var=LD_LIBRARY_PATH
9699  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9700  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9701  # the default ld.so.conf also contains /usr/contrib/lib and
9702  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9703  # libtool to hard-code these into programs
9704  ;;
9705
9706cygwin* | mingw* | pw32*)
9707  version_type=windows
9708  shrext_cmds=".dll"
9709  need_version=no
9710  need_lib_prefix=no
9711
9712  case $GCC,$host_os in
9713  yes,cygwin* | yes,mingw* | yes,pw32*)
9714    library_names_spec='$libname.dll.a'
9715    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9716    postinstall_cmds='base_file=`basename \${file}`~
9717      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9718      dldir=$destdir/`dirname \$dlpath`~
9719      test -d \$dldir || mkdir -p \$dldir~
9720      $install_prog $dir/$dlname \$dldir/$dlname~
9721      chmod a+x \$dldir/$dlname'
9722    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9723      dlpath=$dir/\$dldll~
9724       $rm \$dlpath'
9725    shlibpath_overrides_runpath=yes
9726
9727    case $host_os in
9728    cygwin*)
9729      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9730      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9731      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9732      ;;
9733    mingw*)
9734      # MinGW DLLs use traditional 'lib' prefix
9735      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9736      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9737      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9738        # It is most probably a Windows format PATH printed by
9739        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9740        # path with ; separators, and with drive letters. We can handle the
9741        # drive letters (cygwin fileutils understands them), so leave them,
9742        # especially as we might pass files found there to a mingw objdump,
9743        # which wouldn't understand a cygwinified path. Ahh.
9744        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9745      else
9746        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9747      fi
9748      ;;
9749    pw32*)
9750      # pw32 DLLs use 'pw' prefix rather than 'lib'
9751      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9752      ;;
9753    esac
9754    ;;
9755
9756  *)
9757    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9758    ;;
9759  esac
9760  dynamic_linker='Win32 ld.exe'
9761  # FIXME: first we should search . and the directory the executable is in
9762  shlibpath_var=PATH
9763  ;;
9764
9765darwin* | rhapsody*)
9766  dynamic_linker="$host_os dyld"
9767  version_type=darwin
9768  need_lib_prefix=no
9769  need_version=no
9770  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9771  soname_spec='${libname}${release}${major}$shared_ext'
9772  shlibpath_overrides_runpath=yes
9773  shlibpath_var=DYLD_LIBRARY_PATH
9774  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9775  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9776  if test "$GCC" = yes; then
9777    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9778  else
9779    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9780  fi
9781  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9782  ;;
9783
9784dgux*)
9785  version_type=linux
9786  need_lib_prefix=no
9787  need_version=no
9788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9789  soname_spec='${libname}${release}${shared_ext}$major'
9790  shlibpath_var=LD_LIBRARY_PATH
9791  ;;
9792
9793freebsd1*)
9794  dynamic_linker=no
9795  ;;
9796
9797freebsd* | dragonfly*)
9798  # DragonFly does not have aout.  When/if they implement a new
9799  # versioning mechanism, adjust this.
9800  if test -x /usr/bin/objformat; then
9801    objformat=`/usr/bin/objformat`
9802  else
9803    case $host_os in
9804    freebsd[123]*) objformat=aout ;;
9805    *) objformat=elf ;;
9806    esac
9807  fi
9808  version_type=freebsd-$objformat
9809  case $version_type in
9810    freebsd-elf*)
9811      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9812      need_version=no
9813      need_lib_prefix=no
9814      ;;
9815    freebsd-*)
9816      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9817      need_version=yes
9818      ;;
9819  esac
9820  shlibpath_var=LD_LIBRARY_PATH
9821  case $host_os in
9822  freebsd2*)
9823    shlibpath_overrides_runpath=yes
9824    ;;
9825  freebsd3.[01]* | freebsdelf3.[01]*)
9826    shlibpath_overrides_runpath=yes
9827    hardcode_into_libs=yes
9828    ;;
9829  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9830  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9831    shlibpath_overrides_runpath=no
9832    hardcode_into_libs=yes
9833    ;;
9834  freebsd*) # from 4.6 on
9835    shlibpath_overrides_runpath=yes
9836    hardcode_into_libs=yes
9837    ;;
9838  esac
9839  ;;
9840
9841gnu*)
9842  version_type=linux
9843  need_lib_prefix=no
9844  need_version=no
9845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9846  soname_spec='${libname}${release}${shared_ext}$major'
9847  shlibpath_var=LD_LIBRARY_PATH
9848  hardcode_into_libs=yes
9849  ;;
9850
9851hpux9* | hpux10* | hpux11*)
9852  # Give a soname corresponding to the major version so that dld.sl refuses to
9853  # link against other versions.
9854  version_type=sunos
9855  need_lib_prefix=no
9856  need_version=no
9857  case $host_cpu in
9858  ia64*)
9859    shrext_cmds='.so'
9860    hardcode_into_libs=yes
9861    dynamic_linker="$host_os dld.so"
9862    shlibpath_var=LD_LIBRARY_PATH
9863    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9864    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865    soname_spec='${libname}${release}${shared_ext}$major'
9866    if test "X$HPUX_IA64_MODE" = X32; then
9867      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9868    else
9869      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9870    fi
9871    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9872    ;;
9873   hppa*64*)
9874     shrext_cmds='.sl'
9875     hardcode_into_libs=yes
9876     dynamic_linker="$host_os dld.sl"
9877     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9878     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9879     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880     soname_spec='${libname}${release}${shared_ext}$major'
9881     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9882     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9883     ;;
9884   *)
9885    shrext_cmds='.sl'
9886    dynamic_linker="$host_os dld.sl"
9887    shlibpath_var=SHLIB_PATH
9888    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9889    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890    soname_spec='${libname}${release}${shared_ext}$major'
9891    ;;
9892  esac
9893  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9894  postinstall_cmds='chmod 555 $lib'
9895  ;;
9896
9897interix3*)
9898  version_type=linux
9899  need_lib_prefix=no
9900  need_version=no
9901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9902  soname_spec='${libname}${release}${shared_ext}$major'
9903  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9904  shlibpath_var=LD_LIBRARY_PATH
9905  shlibpath_overrides_runpath=no
9906  hardcode_into_libs=yes
9907  ;;
9908
9909irix5* | irix6* | nonstopux*)
9910  case $host_os in
9911    nonstopux*) version_type=nonstopux ;;
9912    *)
9913	if test "$lt_cv_prog_gnu_ld" = yes; then
9914		version_type=linux
9915	else
9916		version_type=irix
9917	fi ;;
9918  esac
9919  need_lib_prefix=no
9920  need_version=no
9921  soname_spec='${libname}${release}${shared_ext}$major'
9922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9923  case $host_os in
9924  irix5* | nonstopux*)
9925    libsuff= shlibsuff=
9926    ;;
9927  *)
9928    case $LD in # libtool.m4 will add one of these switches to LD
9929    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9930      libsuff= shlibsuff= libmagic=32-bit;;
9931    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9932      libsuff=32 shlibsuff=N32 libmagic=N32;;
9933    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9934      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9935    *) libsuff= shlibsuff= libmagic=never-match;;
9936    esac
9937    ;;
9938  esac
9939  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9940  shlibpath_overrides_runpath=no
9941  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9942  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9943  hardcode_into_libs=yes
9944  ;;
9945
9946# No shared lib support for Linux oldld, aout, or coff.
9947linux*oldld* | linux*aout* | linux*coff*)
9948  dynamic_linker=no
9949  ;;
9950
9951# This must be Linux ELF.
9952linux* | k*bsd*-gnu)
9953  version_type=linux
9954  need_lib_prefix=no
9955  need_version=no
9956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957  soname_spec='${libname}${release}${shared_ext}$major'
9958  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9959  shlibpath_var=LD_LIBRARY_PATH
9960  shlibpath_overrides_runpath=no
9961  # This implies no fast_install, which is unacceptable.
9962  # Some rework will be needed to allow for fast_install
9963  # before this can be enabled.
9964  hardcode_into_libs=yes
9965
9966  # Append ld.so.conf contents to the search path
9967  if test -f /etc/ld.so.conf; then
9968    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9969    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9970  fi
9971
9972  # We used to test for /lib/ld.so.1 and disable shared libraries on
9973  # powerpc, because MkLinux only supported shared libraries with the
9974  # GNU dynamic linker.  Since this was broken with cross compilers,
9975  # most powerpc-linux boxes support dynamic linking these days and
9976  # people can always --disable-shared, the test was removed, and we
9977  # assume the GNU/Linux dynamic linker is in use.
9978  dynamic_linker='GNU/Linux ld.so'
9979  ;;
9980
9981netbsdelf*-gnu)
9982  version_type=linux
9983  need_lib_prefix=no
9984  need_version=no
9985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9986  soname_spec='${libname}${release}${shared_ext}$major'
9987  shlibpath_var=LD_LIBRARY_PATH
9988  shlibpath_overrides_runpath=no
9989  hardcode_into_libs=yes
9990  dynamic_linker='NetBSD ld.elf_so'
9991  ;;
9992
9993netbsd*)
9994  version_type=sunos
9995  need_lib_prefix=no
9996  need_version=no
9997  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9998    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9999    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10000    dynamic_linker='NetBSD (a.out) ld.so'
10001  else
10002    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10003    soname_spec='${libname}${release}${shared_ext}$major'
10004    dynamic_linker='NetBSD ld.elf_so'
10005  fi
10006  shlibpath_var=LD_LIBRARY_PATH
10007  shlibpath_overrides_runpath=yes
10008  hardcode_into_libs=yes
10009  ;;
10010
10011newsos6)
10012  version_type=linux
10013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014  shlibpath_var=LD_LIBRARY_PATH
10015  shlibpath_overrides_runpath=yes
10016  ;;
10017
10018nto-qnx*)
10019  version_type=linux
10020  need_lib_prefix=no
10021  need_version=no
10022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10023  soname_spec='${libname}${release}${shared_ext}$major'
10024  shlibpath_var=LD_LIBRARY_PATH
10025  shlibpath_overrides_runpath=yes
10026  ;;
10027
10028openbsd*)
10029  version_type=sunos
10030  sys_lib_dlsearch_path_spec="/usr/lib"
10031  need_lib_prefix=no
10032  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10033  case $host_os in
10034    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10035    *)                         need_version=no  ;;
10036  esac
10037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10038  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10039  shlibpath_var=LD_LIBRARY_PATH
10040  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10041    case $host_os in
10042      openbsd2.[89] | openbsd2.[89].*)
10043	shlibpath_overrides_runpath=no
10044	;;
10045      *)
10046	shlibpath_overrides_runpath=yes
10047	;;
10048      esac
10049  else
10050    shlibpath_overrides_runpath=yes
10051  fi
10052  ;;
10053
10054os2*)
10055  libname_spec='$name'
10056  shrext_cmds=".dll"
10057  need_lib_prefix=no
10058  library_names_spec='$libname${shared_ext} $libname.a'
10059  dynamic_linker='OS/2 ld.exe'
10060  shlibpath_var=LIBPATH
10061  ;;
10062
10063osf3* | osf4* | osf5*)
10064  version_type=osf
10065  need_lib_prefix=no
10066  need_version=no
10067  soname_spec='${libname}${release}${shared_ext}$major'
10068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10069  shlibpath_var=LD_LIBRARY_PATH
10070  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10071  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10072  ;;
10073
10074solaris*)
10075  version_type=linux
10076  need_lib_prefix=no
10077  need_version=no
10078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079  soname_spec='${libname}${release}${shared_ext}$major'
10080  shlibpath_var=LD_LIBRARY_PATH
10081  shlibpath_overrides_runpath=yes
10082  hardcode_into_libs=yes
10083  # ldd complains unless libraries are executable
10084  postinstall_cmds='chmod +x $lib'
10085  ;;
10086
10087sunos4*)
10088  version_type=sunos
10089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10090  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10091  shlibpath_var=LD_LIBRARY_PATH
10092  shlibpath_overrides_runpath=yes
10093  if test "$with_gnu_ld" = yes; then
10094    need_lib_prefix=no
10095  fi
10096  need_version=yes
10097  ;;
10098
10099sysv4 | sysv4.3*)
10100  version_type=linux
10101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102  soname_spec='${libname}${release}${shared_ext}$major'
10103  shlibpath_var=LD_LIBRARY_PATH
10104  case $host_vendor in
10105    sni)
10106      shlibpath_overrides_runpath=no
10107      need_lib_prefix=no
10108      export_dynamic_flag_spec='${wl}-Blargedynsym'
10109      runpath_var=LD_RUN_PATH
10110      ;;
10111    siemens)
10112      need_lib_prefix=no
10113      ;;
10114    motorola)
10115      need_lib_prefix=no
10116      need_version=no
10117      shlibpath_overrides_runpath=no
10118      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10119      ;;
10120  esac
10121  ;;
10122
10123sysv4*MP*)
10124  if test -d /usr/nec ;then
10125    version_type=linux
10126    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10127    soname_spec='$libname${shared_ext}.$major'
10128    shlibpath_var=LD_LIBRARY_PATH
10129  fi
10130  ;;
10131
10132sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10133  version_type=freebsd-elf
10134  need_lib_prefix=no
10135  need_version=no
10136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10137  soname_spec='${libname}${release}${shared_ext}$major'
10138  shlibpath_var=LD_LIBRARY_PATH
10139  hardcode_into_libs=yes
10140  if test "$with_gnu_ld" = yes; then
10141    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10142    shlibpath_overrides_runpath=no
10143  else
10144    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10145    shlibpath_overrides_runpath=yes
10146    case $host_os in
10147      sco3.2v5*)
10148        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10149	;;
10150    esac
10151  fi
10152  sys_lib_dlsearch_path_spec='/usr/lib'
10153  ;;
10154
10155uts4*)
10156  version_type=linux
10157  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158  soname_spec='${libname}${release}${shared_ext}$major'
10159  shlibpath_var=LD_LIBRARY_PATH
10160  ;;
10161
10162*)
10163  dynamic_linker=no
10164  ;;
10165esac
10166{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10167echo "${ECHO_T}$dynamic_linker" >&6; }
10168test "$dynamic_linker" = no && can_build_shared=no
10169
10170variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10171if test "$GCC" = yes; then
10172  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10173fi
10174
10175{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10176echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10177hardcode_action=
10178if test -n "$hardcode_libdir_flag_spec" || \
10179   test -n "$runpath_var" || \
10180   test "X$hardcode_automatic" = "Xyes" ; then
10181
10182  # We can hardcode non-existant directories.
10183  if test "$hardcode_direct" != no &&
10184     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10185     # have to relink, otherwise we might link with an installed library
10186     # when we should be linking with a yet-to-be-installed one
10187     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10188     test "$hardcode_minus_L" != no; then
10189    # Linking always hardcodes the temporary library directory.
10190    hardcode_action=relink
10191  else
10192    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10193    hardcode_action=immediate
10194  fi
10195else
10196  # We cannot hardcode anything, or else we can only hardcode existing
10197  # directories.
10198  hardcode_action=unsupported
10199fi
10200{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10201echo "${ECHO_T}$hardcode_action" >&6; }
10202
10203if test "$hardcode_action" = relink; then
10204  # Fast installation is not supported
10205  enable_fast_install=no
10206elif test "$shlibpath_overrides_runpath" = yes ||
10207     test "$enable_shared" = no; then
10208  # Fast installation is not necessary
10209  enable_fast_install=needless
10210fi
10211
10212striplib=
10213old_striplib=
10214{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10215echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10216if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10217  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10218  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10219  { echo "$as_me:$LINENO: result: yes" >&5
10220echo "${ECHO_T}yes" >&6; }
10221else
10222# FIXME - insert some real tests, host_os isn't really good enough
10223  case $host_os in
10224   darwin*)
10225       if test -n "$STRIP" ; then
10226         striplib="$STRIP -x"
10227         { echo "$as_me:$LINENO: result: yes" >&5
10228echo "${ECHO_T}yes" >&6; }
10229       else
10230  { echo "$as_me:$LINENO: result: no" >&5
10231echo "${ECHO_T}no" >&6; }
10232fi
10233       ;;
10234   *)
10235  { echo "$as_me:$LINENO: result: no" >&5
10236echo "${ECHO_T}no" >&6; }
10237    ;;
10238  esac
10239fi
10240
10241if test "x$enable_dlopen" != xyes; then
10242  enable_dlopen=unknown
10243  enable_dlopen_self=unknown
10244  enable_dlopen_self_static=unknown
10245else
10246  lt_cv_dlopen=no
10247  lt_cv_dlopen_libs=
10248
10249  case $host_os in
10250  beos*)
10251    lt_cv_dlopen="load_add_on"
10252    lt_cv_dlopen_libs=
10253    lt_cv_dlopen_self=yes
10254    ;;
10255
10256  mingw* | pw32*)
10257    lt_cv_dlopen="LoadLibrary"
10258    lt_cv_dlopen_libs=
10259   ;;
10260
10261  cygwin*)
10262    lt_cv_dlopen="dlopen"
10263    lt_cv_dlopen_libs=
10264   ;;
10265
10266  darwin*)
10267  # if libdl is installed we need to link against it
10268    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10269echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10270if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10271  echo $ECHO_N "(cached) $ECHO_C" >&6
10272else
10273  ac_check_lib_save_LIBS=$LIBS
10274LIBS="-ldl  $LIBS"
10275cat >conftest.$ac_ext <<_ACEOF
10276/* confdefs.h.  */
10277_ACEOF
10278cat confdefs.h >>conftest.$ac_ext
10279cat >>conftest.$ac_ext <<_ACEOF
10280/* end confdefs.h.  */
10281
10282/* Override any GCC internal prototype to avoid an error.
10283   Use char because int might match the return type of a GCC
10284   builtin and then its argument prototype would still apply.  */
10285#ifdef __cplusplus
10286extern "C"
10287#endif
10288char dlopen ();
10289int
10290main ()
10291{
10292return dlopen ();
10293  ;
10294  return 0;
10295}
10296_ACEOF
10297rm -f conftest.$ac_objext conftest$ac_exeext
10298if { (ac_try="$ac_link"
10299case "(($ac_try" in
10300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301  *) ac_try_echo=$ac_try;;
10302esac
10303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304  (eval "$ac_link") 2>conftest.er1
10305  ac_status=$?
10306  grep -v '^ *+' conftest.er1 >conftest.err
10307  rm -f conftest.er1
10308  cat conftest.err >&5
10309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310  (exit $ac_status); } && {
10311	 test -z "$ac_c_werror_flag" ||
10312	 test ! -s conftest.err
10313       } && test -s conftest$ac_exeext &&
10314       $as_test_x conftest$ac_exeext; then
10315  ac_cv_lib_dl_dlopen=yes
10316else
10317  echo "$as_me: failed program was:" >&5
10318sed 's/^/| /' conftest.$ac_ext >&5
10319
10320	ac_cv_lib_dl_dlopen=no
10321fi
10322
10323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10324      conftest$ac_exeext conftest.$ac_ext
10325LIBS=$ac_check_lib_save_LIBS
10326fi
10327{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10328echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10329if test $ac_cv_lib_dl_dlopen = yes; then
10330  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10331else
10332
10333    lt_cv_dlopen="dyld"
10334    lt_cv_dlopen_libs=
10335    lt_cv_dlopen_self=yes
10336
10337fi
10338
10339   ;;
10340
10341  *)
10342    { echo "$as_me:$LINENO: checking for shl_load" >&5
10343echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10344if test "${ac_cv_func_shl_load+set}" = set; then
10345  echo $ECHO_N "(cached) $ECHO_C" >&6
10346else
10347  cat >conftest.$ac_ext <<_ACEOF
10348/* confdefs.h.  */
10349_ACEOF
10350cat confdefs.h >>conftest.$ac_ext
10351cat >>conftest.$ac_ext <<_ACEOF
10352/* end confdefs.h.  */
10353/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10354   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10355#define shl_load innocuous_shl_load
10356
10357/* System header to define __stub macros and hopefully few prototypes,
10358    which can conflict with char shl_load (); below.
10359    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10360    <limits.h> exists even on freestanding compilers.  */
10361
10362#ifdef __STDC__
10363# include <limits.h>
10364#else
10365# include <assert.h>
10366#endif
10367
10368#undef shl_load
10369
10370/* Override any GCC internal prototype to avoid an error.
10371   Use char because int might match the return type of a GCC
10372   builtin and then its argument prototype would still apply.  */
10373#ifdef __cplusplus
10374extern "C"
10375#endif
10376char shl_load ();
10377/* The GNU C library defines this for functions which it implements
10378    to always fail with ENOSYS.  Some functions are actually named
10379    something starting with __ and the normal name is an alias.  */
10380#if defined __stub_shl_load || defined __stub___shl_load
10381choke me
10382#endif
10383
10384int
10385main ()
10386{
10387return shl_load ();
10388  ;
10389  return 0;
10390}
10391_ACEOF
10392rm -f conftest.$ac_objext conftest$ac_exeext
10393if { (ac_try="$ac_link"
10394case "(($ac_try" in
10395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396  *) ac_try_echo=$ac_try;;
10397esac
10398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399  (eval "$ac_link") 2>conftest.er1
10400  ac_status=$?
10401  grep -v '^ *+' conftest.er1 >conftest.err
10402  rm -f conftest.er1
10403  cat conftest.err >&5
10404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405  (exit $ac_status); } && {
10406	 test -z "$ac_c_werror_flag" ||
10407	 test ! -s conftest.err
10408       } && test -s conftest$ac_exeext &&
10409       $as_test_x conftest$ac_exeext; then
10410  ac_cv_func_shl_load=yes
10411else
10412  echo "$as_me: failed program was:" >&5
10413sed 's/^/| /' conftest.$ac_ext >&5
10414
10415	ac_cv_func_shl_load=no
10416fi
10417
10418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10419      conftest$ac_exeext conftest.$ac_ext
10420fi
10421{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10422echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10423if test $ac_cv_func_shl_load = yes; then
10424  lt_cv_dlopen="shl_load"
10425else
10426  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10427echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10428if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10429  echo $ECHO_N "(cached) $ECHO_C" >&6
10430else
10431  ac_check_lib_save_LIBS=$LIBS
10432LIBS="-ldld  $LIBS"
10433cat >conftest.$ac_ext <<_ACEOF
10434/* confdefs.h.  */
10435_ACEOF
10436cat confdefs.h >>conftest.$ac_ext
10437cat >>conftest.$ac_ext <<_ACEOF
10438/* end confdefs.h.  */
10439
10440/* Override any GCC internal prototype to avoid an error.
10441   Use char because int might match the return type of a GCC
10442   builtin and then its argument prototype would still apply.  */
10443#ifdef __cplusplus
10444extern "C"
10445#endif
10446char shl_load ();
10447int
10448main ()
10449{
10450return shl_load ();
10451  ;
10452  return 0;
10453}
10454_ACEOF
10455rm -f conftest.$ac_objext conftest$ac_exeext
10456if { (ac_try="$ac_link"
10457case "(($ac_try" in
10458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459  *) ac_try_echo=$ac_try;;
10460esac
10461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10462  (eval "$ac_link") 2>conftest.er1
10463  ac_status=$?
10464  grep -v '^ *+' conftest.er1 >conftest.err
10465  rm -f conftest.er1
10466  cat conftest.err >&5
10467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468  (exit $ac_status); } && {
10469	 test -z "$ac_c_werror_flag" ||
10470	 test ! -s conftest.err
10471       } && test -s conftest$ac_exeext &&
10472       $as_test_x conftest$ac_exeext; then
10473  ac_cv_lib_dld_shl_load=yes
10474else
10475  echo "$as_me: failed program was:" >&5
10476sed 's/^/| /' conftest.$ac_ext >&5
10477
10478	ac_cv_lib_dld_shl_load=no
10479fi
10480
10481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10482      conftest$ac_exeext conftest.$ac_ext
10483LIBS=$ac_check_lib_save_LIBS
10484fi
10485{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10486echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10487if test $ac_cv_lib_dld_shl_load = yes; then
10488  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10489else
10490  { echo "$as_me:$LINENO: checking for dlopen" >&5
10491echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10492if test "${ac_cv_func_dlopen+set}" = set; then
10493  echo $ECHO_N "(cached) $ECHO_C" >&6
10494else
10495  cat >conftest.$ac_ext <<_ACEOF
10496/* confdefs.h.  */
10497_ACEOF
10498cat confdefs.h >>conftest.$ac_ext
10499cat >>conftest.$ac_ext <<_ACEOF
10500/* end confdefs.h.  */
10501/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10502   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10503#define dlopen innocuous_dlopen
10504
10505/* System header to define __stub macros and hopefully few prototypes,
10506    which can conflict with char dlopen (); below.
10507    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10508    <limits.h> exists even on freestanding compilers.  */
10509
10510#ifdef __STDC__
10511# include <limits.h>
10512#else
10513# include <assert.h>
10514#endif
10515
10516#undef dlopen
10517
10518/* Override any GCC internal prototype to avoid an error.
10519   Use char because int might match the return type of a GCC
10520   builtin and then its argument prototype would still apply.  */
10521#ifdef __cplusplus
10522extern "C"
10523#endif
10524char dlopen ();
10525/* The GNU C library defines this for functions which it implements
10526    to always fail with ENOSYS.  Some functions are actually named
10527    something starting with __ and the normal name is an alias.  */
10528#if defined __stub_dlopen || defined __stub___dlopen
10529choke me
10530#endif
10531
10532int
10533main ()
10534{
10535return dlopen ();
10536  ;
10537  return 0;
10538}
10539_ACEOF
10540rm -f conftest.$ac_objext conftest$ac_exeext
10541if { (ac_try="$ac_link"
10542case "(($ac_try" in
10543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544  *) ac_try_echo=$ac_try;;
10545esac
10546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547  (eval "$ac_link") 2>conftest.er1
10548  ac_status=$?
10549  grep -v '^ *+' conftest.er1 >conftest.err
10550  rm -f conftest.er1
10551  cat conftest.err >&5
10552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553  (exit $ac_status); } && {
10554	 test -z "$ac_c_werror_flag" ||
10555	 test ! -s conftest.err
10556       } && test -s conftest$ac_exeext &&
10557       $as_test_x conftest$ac_exeext; then
10558  ac_cv_func_dlopen=yes
10559else
10560  echo "$as_me: failed program was:" >&5
10561sed 's/^/| /' conftest.$ac_ext >&5
10562
10563	ac_cv_func_dlopen=no
10564fi
10565
10566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10567      conftest$ac_exeext conftest.$ac_ext
10568fi
10569{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10570echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10571if test $ac_cv_func_dlopen = yes; then
10572  lt_cv_dlopen="dlopen"
10573else
10574  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10575echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10576if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10577  echo $ECHO_N "(cached) $ECHO_C" >&6
10578else
10579  ac_check_lib_save_LIBS=$LIBS
10580LIBS="-ldl  $LIBS"
10581cat >conftest.$ac_ext <<_ACEOF
10582/* confdefs.h.  */
10583_ACEOF
10584cat confdefs.h >>conftest.$ac_ext
10585cat >>conftest.$ac_ext <<_ACEOF
10586/* end confdefs.h.  */
10587
10588/* Override any GCC internal prototype to avoid an error.
10589   Use char because int might match the return type of a GCC
10590   builtin and then its argument prototype would still apply.  */
10591#ifdef __cplusplus
10592extern "C"
10593#endif
10594char dlopen ();
10595int
10596main ()
10597{
10598return dlopen ();
10599  ;
10600  return 0;
10601}
10602_ACEOF
10603rm -f conftest.$ac_objext conftest$ac_exeext
10604if { (ac_try="$ac_link"
10605case "(($ac_try" in
10606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607  *) ac_try_echo=$ac_try;;
10608esac
10609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610  (eval "$ac_link") 2>conftest.er1
10611  ac_status=$?
10612  grep -v '^ *+' conftest.er1 >conftest.err
10613  rm -f conftest.er1
10614  cat conftest.err >&5
10615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616  (exit $ac_status); } && {
10617	 test -z "$ac_c_werror_flag" ||
10618	 test ! -s conftest.err
10619       } && test -s conftest$ac_exeext &&
10620       $as_test_x conftest$ac_exeext; then
10621  ac_cv_lib_dl_dlopen=yes
10622else
10623  echo "$as_me: failed program was:" >&5
10624sed 's/^/| /' conftest.$ac_ext >&5
10625
10626	ac_cv_lib_dl_dlopen=no
10627fi
10628
10629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10630      conftest$ac_exeext conftest.$ac_ext
10631LIBS=$ac_check_lib_save_LIBS
10632fi
10633{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10634echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10635if test $ac_cv_lib_dl_dlopen = yes; then
10636  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10637else
10638  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10639echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10640if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10641  echo $ECHO_N "(cached) $ECHO_C" >&6
10642else
10643  ac_check_lib_save_LIBS=$LIBS
10644LIBS="-lsvld  $LIBS"
10645cat >conftest.$ac_ext <<_ACEOF
10646/* confdefs.h.  */
10647_ACEOF
10648cat confdefs.h >>conftest.$ac_ext
10649cat >>conftest.$ac_ext <<_ACEOF
10650/* end confdefs.h.  */
10651
10652/* Override any GCC internal prototype to avoid an error.
10653   Use char because int might match the return type of a GCC
10654   builtin and then its argument prototype would still apply.  */
10655#ifdef __cplusplus
10656extern "C"
10657#endif
10658char dlopen ();
10659int
10660main ()
10661{
10662return dlopen ();
10663  ;
10664  return 0;
10665}
10666_ACEOF
10667rm -f conftest.$ac_objext conftest$ac_exeext
10668if { (ac_try="$ac_link"
10669case "(($ac_try" in
10670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671  *) ac_try_echo=$ac_try;;
10672esac
10673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674  (eval "$ac_link") 2>conftest.er1
10675  ac_status=$?
10676  grep -v '^ *+' conftest.er1 >conftest.err
10677  rm -f conftest.er1
10678  cat conftest.err >&5
10679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680  (exit $ac_status); } && {
10681	 test -z "$ac_c_werror_flag" ||
10682	 test ! -s conftest.err
10683       } && test -s conftest$ac_exeext &&
10684       $as_test_x conftest$ac_exeext; then
10685  ac_cv_lib_svld_dlopen=yes
10686else
10687  echo "$as_me: failed program was:" >&5
10688sed 's/^/| /' conftest.$ac_ext >&5
10689
10690	ac_cv_lib_svld_dlopen=no
10691fi
10692
10693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10694      conftest$ac_exeext conftest.$ac_ext
10695LIBS=$ac_check_lib_save_LIBS
10696fi
10697{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10698echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10699if test $ac_cv_lib_svld_dlopen = yes; then
10700  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10701else
10702  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10703echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10704if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10705  echo $ECHO_N "(cached) $ECHO_C" >&6
10706else
10707  ac_check_lib_save_LIBS=$LIBS
10708LIBS="-ldld  $LIBS"
10709cat >conftest.$ac_ext <<_ACEOF
10710/* confdefs.h.  */
10711_ACEOF
10712cat confdefs.h >>conftest.$ac_ext
10713cat >>conftest.$ac_ext <<_ACEOF
10714/* end confdefs.h.  */
10715
10716/* Override any GCC internal prototype to avoid an error.
10717   Use char because int might match the return type of a GCC
10718   builtin and then its argument prototype would still apply.  */
10719#ifdef __cplusplus
10720extern "C"
10721#endif
10722char dld_link ();
10723int
10724main ()
10725{
10726return dld_link ();
10727  ;
10728  return 0;
10729}
10730_ACEOF
10731rm -f conftest.$ac_objext conftest$ac_exeext
10732if { (ac_try="$ac_link"
10733case "(($ac_try" in
10734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735  *) ac_try_echo=$ac_try;;
10736esac
10737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10738  (eval "$ac_link") 2>conftest.er1
10739  ac_status=$?
10740  grep -v '^ *+' conftest.er1 >conftest.err
10741  rm -f conftest.er1
10742  cat conftest.err >&5
10743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744  (exit $ac_status); } && {
10745	 test -z "$ac_c_werror_flag" ||
10746	 test ! -s conftest.err
10747       } && test -s conftest$ac_exeext &&
10748       $as_test_x conftest$ac_exeext; then
10749  ac_cv_lib_dld_dld_link=yes
10750else
10751  echo "$as_me: failed program was:" >&5
10752sed 's/^/| /' conftest.$ac_ext >&5
10753
10754	ac_cv_lib_dld_dld_link=no
10755fi
10756
10757rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10758      conftest$ac_exeext conftest.$ac_ext
10759LIBS=$ac_check_lib_save_LIBS
10760fi
10761{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10762echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10763if test $ac_cv_lib_dld_dld_link = yes; then
10764  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10765fi
10766
10767
10768fi
10769
10770
10771fi
10772
10773
10774fi
10775
10776
10777fi
10778
10779
10780fi
10781
10782    ;;
10783  esac
10784
10785  if test "x$lt_cv_dlopen" != xno; then
10786    enable_dlopen=yes
10787  else
10788    enable_dlopen=no
10789  fi
10790
10791  case $lt_cv_dlopen in
10792  dlopen)
10793    save_CPPFLAGS="$CPPFLAGS"
10794    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10795
10796    save_LDFLAGS="$LDFLAGS"
10797    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10798
10799    save_LIBS="$LIBS"
10800    LIBS="$lt_cv_dlopen_libs $LIBS"
10801
10802    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10803echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10804if test "${lt_cv_dlopen_self+set}" = set; then
10805  echo $ECHO_N "(cached) $ECHO_C" >&6
10806else
10807  	  if test "$cross_compiling" = yes; then :
10808  lt_cv_dlopen_self=cross
10809else
10810  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10811  lt_status=$lt_dlunknown
10812  cat > conftest.$ac_ext <<EOF
10813#line 10813 "configure"
10814#include "confdefs.h"
10815
10816#if HAVE_DLFCN_H
10817#include <dlfcn.h>
10818#endif
10819
10820#include <stdio.h>
10821
10822#ifdef RTLD_GLOBAL
10823#  define LT_DLGLOBAL		RTLD_GLOBAL
10824#else
10825#  ifdef DL_GLOBAL
10826#    define LT_DLGLOBAL		DL_GLOBAL
10827#  else
10828#    define LT_DLGLOBAL		0
10829#  endif
10830#endif
10831
10832/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10833   find out it does not work in some platform. */
10834#ifndef LT_DLLAZY_OR_NOW
10835#  ifdef RTLD_LAZY
10836#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10837#  else
10838#    ifdef DL_LAZY
10839#      define LT_DLLAZY_OR_NOW		DL_LAZY
10840#    else
10841#      ifdef RTLD_NOW
10842#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10843#      else
10844#        ifdef DL_NOW
10845#          define LT_DLLAZY_OR_NOW	DL_NOW
10846#        else
10847#          define LT_DLLAZY_OR_NOW	0
10848#        endif
10849#      endif
10850#    endif
10851#  endif
10852#endif
10853
10854#ifdef __cplusplus
10855extern "C" void exit (int);
10856#endif
10857
10858void fnord() { int i=42;}
10859int main ()
10860{
10861  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10862  int status = $lt_dlunknown;
10863
10864  if (self)
10865    {
10866      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10867      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10868      /* dlclose (self); */
10869    }
10870  else
10871    puts (dlerror ());
10872
10873    exit (status);
10874}
10875EOF
10876  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10877  (eval $ac_link) 2>&5
10878  ac_status=$?
10879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10881    (./conftest; exit; ) >&5 2>/dev/null
10882    lt_status=$?
10883    case x$lt_status in
10884      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10885      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10886      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10887    esac
10888  else :
10889    # compilation failed
10890    lt_cv_dlopen_self=no
10891  fi
10892fi
10893rm -fr conftest*
10894
10895
10896fi
10897{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10898echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10899
10900    if test "x$lt_cv_dlopen_self" = xyes; then
10901      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10902      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10903echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10904if test "${lt_cv_dlopen_self_static+set}" = set; then
10905  echo $ECHO_N "(cached) $ECHO_C" >&6
10906else
10907  	  if test "$cross_compiling" = yes; then :
10908  lt_cv_dlopen_self_static=cross
10909else
10910  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10911  lt_status=$lt_dlunknown
10912  cat > conftest.$ac_ext <<EOF
10913#line 10913 "configure"
10914#include "confdefs.h"
10915
10916#if HAVE_DLFCN_H
10917#include <dlfcn.h>
10918#endif
10919
10920#include <stdio.h>
10921
10922#ifdef RTLD_GLOBAL
10923#  define LT_DLGLOBAL		RTLD_GLOBAL
10924#else
10925#  ifdef DL_GLOBAL
10926#    define LT_DLGLOBAL		DL_GLOBAL
10927#  else
10928#    define LT_DLGLOBAL		0
10929#  endif
10930#endif
10931
10932/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10933   find out it does not work in some platform. */
10934#ifndef LT_DLLAZY_OR_NOW
10935#  ifdef RTLD_LAZY
10936#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10937#  else
10938#    ifdef DL_LAZY
10939#      define LT_DLLAZY_OR_NOW		DL_LAZY
10940#    else
10941#      ifdef RTLD_NOW
10942#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10943#      else
10944#        ifdef DL_NOW
10945#          define LT_DLLAZY_OR_NOW	DL_NOW
10946#        else
10947#          define LT_DLLAZY_OR_NOW	0
10948#        endif
10949#      endif
10950#    endif
10951#  endif
10952#endif
10953
10954#ifdef __cplusplus
10955extern "C" void exit (int);
10956#endif
10957
10958void fnord() { int i=42;}
10959int main ()
10960{
10961  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10962  int status = $lt_dlunknown;
10963
10964  if (self)
10965    {
10966      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10967      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10968      /* dlclose (self); */
10969    }
10970  else
10971    puts (dlerror ());
10972
10973    exit (status);
10974}
10975EOF
10976  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10977  (eval $ac_link) 2>&5
10978  ac_status=$?
10979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10981    (./conftest; exit; ) >&5 2>/dev/null
10982    lt_status=$?
10983    case x$lt_status in
10984      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10985      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10986      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10987    esac
10988  else :
10989    # compilation failed
10990    lt_cv_dlopen_self_static=no
10991  fi
10992fi
10993rm -fr conftest*
10994
10995
10996fi
10997{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10998echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10999    fi
11000
11001    CPPFLAGS="$save_CPPFLAGS"
11002    LDFLAGS="$save_LDFLAGS"
11003    LIBS="$save_LIBS"
11004    ;;
11005  esac
11006
11007  case $lt_cv_dlopen_self in
11008  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11009  *) enable_dlopen_self=unknown ;;
11010  esac
11011
11012  case $lt_cv_dlopen_self_static in
11013  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11014  *) enable_dlopen_self_static=unknown ;;
11015  esac
11016fi
11017
11018
11019# Report which library types will actually be built
11020{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11021echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11022{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11023echo "${ECHO_T}$can_build_shared" >&6; }
11024
11025{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11026echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11027test "$can_build_shared" = "no" && enable_shared=no
11028
11029# On AIX, shared libraries and static libraries use the same namespace, and
11030# are all built from PIC.
11031case $host_os in
11032aix3*)
11033  test "$enable_shared" = yes && enable_static=no
11034  if test -n "$RANLIB"; then
11035    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11036    postinstall_cmds='$RANLIB $lib'
11037  fi
11038  ;;
11039
11040aix4* | aix5*)
11041  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11042    test "$enable_shared" = yes && enable_static=no
11043  fi
11044    ;;
11045esac
11046{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11047echo "${ECHO_T}$enable_shared" >&6; }
11048
11049{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11050echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11051# Make sure either enable_shared or enable_static is yes.
11052test "$enable_shared" = yes || enable_static=yes
11053{ echo "$as_me:$LINENO: result: $enable_static" >&5
11054echo "${ECHO_T}$enable_static" >&6; }
11055
11056# The else clause should only fire when bootstrapping the
11057# libtool distribution, otherwise you forgot to ship ltmain.sh
11058# with your package, and you will get complaints that there are
11059# no rules to generate ltmain.sh.
11060if test -f "$ltmain"; then
11061  # See if we are running on zsh, and set the options which allow our commands through
11062  # without removal of \ escapes.
11063  if test -n "${ZSH_VERSION+set}" ; then
11064    setopt NO_GLOB_SUBST
11065  fi
11066  # Now quote all the things that may contain metacharacters while being
11067  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11068  # variables and quote the copies for generation of the libtool script.
11069  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11070    SED SHELL STRIP \
11071    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11072    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11073    deplibs_check_method reload_flag reload_cmds need_locks \
11074    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11075    lt_cv_sys_global_symbol_to_c_name_address \
11076    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11077    old_postinstall_cmds old_postuninstall_cmds \
11078    compiler \
11079    CC \
11080    LD \
11081    lt_prog_compiler_wl \
11082    lt_prog_compiler_pic \
11083    lt_prog_compiler_static \
11084    lt_prog_compiler_no_builtin_flag \
11085    export_dynamic_flag_spec \
11086    thread_safe_flag_spec \
11087    whole_archive_flag_spec \
11088    enable_shared_with_static_runtimes \
11089    old_archive_cmds \
11090    old_archive_from_new_cmds \
11091    predep_objects \
11092    postdep_objects \
11093    predeps \
11094    postdeps \
11095    compiler_lib_search_path \
11096    archive_cmds \
11097    archive_expsym_cmds \
11098    postinstall_cmds \
11099    postuninstall_cmds \
11100    old_archive_from_expsyms_cmds \
11101    allow_undefined_flag \
11102    no_undefined_flag \
11103    export_symbols_cmds \
11104    hardcode_libdir_flag_spec \
11105    hardcode_libdir_flag_spec_ld \
11106    hardcode_libdir_separator \
11107    hardcode_automatic \
11108    module_cmds \
11109    module_expsym_cmds \
11110    lt_cv_prog_compiler_c_o \
11111    exclude_expsyms \
11112    include_expsyms; do
11113
11114    case $var in
11115    old_archive_cmds | \
11116    old_archive_from_new_cmds | \
11117    archive_cmds | \
11118    archive_expsym_cmds | \
11119    module_cmds | \
11120    module_expsym_cmds | \
11121    old_archive_from_expsyms_cmds | \
11122    export_symbols_cmds | \
11123    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11124    postinstall_cmds | postuninstall_cmds | \
11125    old_postinstall_cmds | old_postuninstall_cmds | \
11126    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11127      # Double-quote double-evaled strings.
11128      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11129      ;;
11130    *)
11131      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11132      ;;
11133    esac
11134  done
11135
11136  case $lt_echo in
11137  *'\$0 --fallback-echo"')
11138    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11139    ;;
11140  esac
11141
11142cfgfile="${ofile}T"
11143  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11144  $rm -f "$cfgfile"
11145  { echo "$as_me:$LINENO: creating $ofile" >&5
11146echo "$as_me: creating $ofile" >&6;}
11147
11148  cat <<__EOF__ >> "$cfgfile"
11149#! $SHELL
11150
11151# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11152# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11153# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11154#
11155# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11156# Free Software Foundation, Inc.
11157#
11158# This file is part of GNU Libtool:
11159# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11160#
11161# This program is free software; you can redistribute it and/or modify
11162# it under the terms of the GNU General Public License as published by
11163# the Free Software Foundation; either version 2 of the License, or
11164# (at your option) any later version.
11165#
11166# This program is distributed in the hope that it will be useful, but
11167# WITHOUT ANY WARRANTY; without even the implied warranty of
11168# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11169# General Public License for more details.
11170#
11171# You should have received a copy of the GNU General Public License
11172# along with this program; if not, write to the Free Software
11173# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11174#
11175# As a special exception to the GNU General Public License, if you
11176# distribute this file as part of a program that contains a
11177# configuration script generated by Autoconf, you may include it under
11178# the same distribution terms that you use for the rest of that program.
11179
11180# A sed program that does not truncate output.
11181SED=$lt_SED
11182
11183# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11184Xsed="$SED -e 1s/^X//"
11185
11186# The HP-UX ksh and POSIX shell print the target directory to stdout
11187# if CDPATH is set.
11188(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11189
11190# The names of the tagged configurations supported by this script.
11191available_tags=
11192
11193# ### BEGIN LIBTOOL CONFIG
11194
11195# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11196
11197# Shell to use when invoking shell scripts.
11198SHELL=$lt_SHELL
11199
11200# Whether or not to build shared libraries.
11201build_libtool_libs=$enable_shared
11202
11203# Whether or not to build static libraries.
11204build_old_libs=$enable_static
11205
11206# Whether or not to add -lc for building shared libraries.
11207build_libtool_need_lc=$archive_cmds_need_lc
11208
11209# Whether or not to disallow shared libs when runtime libs are static
11210allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11211
11212# Whether or not to optimize for fast installation.
11213fast_install=$enable_fast_install
11214
11215# The host system.
11216host_alias=$host_alias
11217host=$host
11218host_os=$host_os
11219
11220# The build system.
11221build_alias=$build_alias
11222build=$build
11223build_os=$build_os
11224
11225# An echo program that does not interpret backslashes.
11226echo=$lt_echo
11227
11228# The archiver.
11229AR=$lt_AR
11230AR_FLAGS=$lt_AR_FLAGS
11231
11232# A C compiler.
11233LTCC=$lt_LTCC
11234
11235# LTCC compiler flags.
11236LTCFLAGS=$lt_LTCFLAGS
11237
11238# A language-specific compiler.
11239CC=$lt_compiler
11240
11241# Is the compiler the GNU C compiler?
11242with_gcc=$GCC
11243
11244# An ERE matcher.
11245EGREP=$lt_EGREP
11246
11247# The linker used to build libraries.
11248LD=$lt_LD
11249
11250# Whether we need hard or soft links.
11251LN_S=$lt_LN_S
11252
11253# A BSD-compatible nm program.
11254NM=$lt_NM
11255
11256# A symbol stripping program
11257STRIP=$lt_STRIP
11258
11259# Used to examine libraries when file_magic_cmd begins "file"
11260MAGIC_CMD=$MAGIC_CMD
11261
11262# Used on cygwin: DLL creation program.
11263DLLTOOL="$DLLTOOL"
11264
11265# Used on cygwin: object dumper.
11266OBJDUMP="$OBJDUMP"
11267
11268# Used on cygwin: assembler.
11269AS="$AS"
11270
11271# The name of the directory that contains temporary libtool files.
11272objdir=$objdir
11273
11274# How to create reloadable object files.
11275reload_flag=$lt_reload_flag
11276reload_cmds=$lt_reload_cmds
11277
11278# How to pass a linker flag through the compiler.
11279wl=$lt_lt_prog_compiler_wl
11280
11281# Object file suffix (normally "o").
11282objext="$ac_objext"
11283
11284# Old archive suffix (normally "a").
11285libext="$libext"
11286
11287# Shared library suffix (normally ".so").
11288shrext_cmds='$shrext_cmds'
11289
11290# Executable file suffix (normally "").
11291exeext="$exeext"
11292
11293# Additional compiler flags for building library objects.
11294pic_flag=$lt_lt_prog_compiler_pic
11295pic_mode=$pic_mode
11296
11297# What is the maximum length of a command?
11298max_cmd_len=$lt_cv_sys_max_cmd_len
11299
11300# Does compiler simultaneously support -c and -o options?
11301compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11302
11303# Must we lock files when doing compilation?
11304need_locks=$lt_need_locks
11305
11306# Do we need the lib prefix for modules?
11307need_lib_prefix=$need_lib_prefix
11308
11309# Do we need a version for libraries?
11310need_version=$need_version
11311
11312# Whether dlopen is supported.
11313dlopen_support=$enable_dlopen
11314
11315# Whether dlopen of programs is supported.
11316dlopen_self=$enable_dlopen_self
11317
11318# Whether dlopen of statically linked programs is supported.
11319dlopen_self_static=$enable_dlopen_self_static
11320
11321# Compiler flag to prevent dynamic linking.
11322link_static_flag=$lt_lt_prog_compiler_static
11323
11324# Compiler flag to turn off builtin functions.
11325no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11326
11327# Compiler flag to allow reflexive dlopens.
11328export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11329
11330# Compiler flag to generate shared objects directly from archives.
11331whole_archive_flag_spec=$lt_whole_archive_flag_spec
11332
11333# Compiler flag to generate thread-safe objects.
11334thread_safe_flag_spec=$lt_thread_safe_flag_spec
11335
11336# Library versioning type.
11337version_type=$version_type
11338
11339# Format of library name prefix.
11340libname_spec=$lt_libname_spec
11341
11342# List of archive names.  First name is the real one, the rest are links.
11343# The last name is the one that the linker finds with -lNAME.
11344library_names_spec=$lt_library_names_spec
11345
11346# The coded name of the library, if different from the real name.
11347soname_spec=$lt_soname_spec
11348
11349# Commands used to build and install an old-style archive.
11350RANLIB=$lt_RANLIB
11351old_archive_cmds=$lt_old_archive_cmds
11352old_postinstall_cmds=$lt_old_postinstall_cmds
11353old_postuninstall_cmds=$lt_old_postuninstall_cmds
11354
11355# Create an old-style archive from a shared archive.
11356old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11357
11358# Create a temporary old-style archive to link instead of a shared archive.
11359old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11360
11361# Commands used to build and install a shared archive.
11362archive_cmds=$lt_archive_cmds
11363archive_expsym_cmds=$lt_archive_expsym_cmds
11364postinstall_cmds=$lt_postinstall_cmds
11365postuninstall_cmds=$lt_postuninstall_cmds
11366
11367# Commands used to build a loadable module (assumed same as above if empty)
11368module_cmds=$lt_module_cmds
11369module_expsym_cmds=$lt_module_expsym_cmds
11370
11371# Commands to strip libraries.
11372old_striplib=$lt_old_striplib
11373striplib=$lt_striplib
11374
11375# Dependencies to place before the objects being linked to create a
11376# shared library.
11377predep_objects=$lt_predep_objects
11378
11379# Dependencies to place after the objects being linked to create a
11380# shared library.
11381postdep_objects=$lt_postdep_objects
11382
11383# Dependencies to place before the objects being linked to create a
11384# shared library.
11385predeps=$lt_predeps
11386
11387# Dependencies to place after the objects being linked to create a
11388# shared library.
11389postdeps=$lt_postdeps
11390
11391# The library search path used internally by the compiler when linking
11392# a shared library.
11393compiler_lib_search_path=$lt_compiler_lib_search_path
11394
11395# Method to check whether dependent libraries are shared objects.
11396deplibs_check_method=$lt_deplibs_check_method
11397
11398# Command to use when deplibs_check_method == file_magic.
11399file_magic_cmd=$lt_file_magic_cmd
11400
11401# Flag that allows shared libraries with undefined symbols to be built.
11402allow_undefined_flag=$lt_allow_undefined_flag
11403
11404# Flag that forces no undefined symbols.
11405no_undefined_flag=$lt_no_undefined_flag
11406
11407# Commands used to finish a libtool library installation in a directory.
11408finish_cmds=$lt_finish_cmds
11409
11410# Same as above, but a single script fragment to be evaled but not shown.
11411finish_eval=$lt_finish_eval
11412
11413# Take the output of nm and produce a listing of raw symbols and C names.
11414global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11415
11416# Transform the output of nm in a proper C declaration
11417global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11418
11419# Transform the output of nm in a C name address pair
11420global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11421
11422# This is the shared library runtime path variable.
11423runpath_var=$runpath_var
11424
11425# This is the shared library path variable.
11426shlibpath_var=$shlibpath_var
11427
11428# Is shlibpath searched before the hard-coded library search path?
11429shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11430
11431# How to hardcode a shared library path into an executable.
11432hardcode_action=$hardcode_action
11433
11434# Whether we should hardcode library paths into libraries.
11435hardcode_into_libs=$hardcode_into_libs
11436
11437# Flag to hardcode \$libdir into a binary during linking.
11438# This must work even if \$libdir does not exist.
11439hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11440
11441# If ld is used when linking, flag to hardcode \$libdir into
11442# a binary during linking. This must work even if \$libdir does
11443# not exist.
11444hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11445
11446# Whether we need a single -rpath flag with a separated argument.
11447hardcode_libdir_separator=$lt_hardcode_libdir_separator
11448
11449# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11450# resulting binary.
11451hardcode_direct=$hardcode_direct
11452
11453# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11454# resulting binary.
11455hardcode_minus_L=$hardcode_minus_L
11456
11457# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11458# the resulting binary.
11459hardcode_shlibpath_var=$hardcode_shlibpath_var
11460
11461# Set to yes if building a shared library automatically hardcodes DIR into the library
11462# and all subsequent libraries and executables linked against it.
11463hardcode_automatic=$hardcode_automatic
11464
11465# Variables whose values should be saved in libtool wrapper scripts and
11466# restored at relink time.
11467variables_saved_for_relink="$variables_saved_for_relink"
11468
11469# Whether libtool must link a program against all its dependency libraries.
11470link_all_deplibs=$link_all_deplibs
11471
11472# Compile-time system search path for libraries
11473sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11474
11475# Run-time system search path for libraries
11476sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11477
11478# Fix the shell variable \$srcfile for the compiler.
11479fix_srcfile_path="$fix_srcfile_path"
11480
11481# Set to yes if exported symbols are required.
11482always_export_symbols=$always_export_symbols
11483
11484# The commands to list exported symbols.
11485export_symbols_cmds=$lt_export_symbols_cmds
11486
11487# The commands to extract the exported symbol list from a shared archive.
11488extract_expsyms_cmds=$lt_extract_expsyms_cmds
11489
11490# Symbols that should not be listed in the preloaded symbols.
11491exclude_expsyms=$lt_exclude_expsyms
11492
11493# Symbols that must always be exported.
11494include_expsyms=$lt_include_expsyms
11495
11496# ### END LIBTOOL CONFIG
11497
11498__EOF__
11499
11500
11501  case $host_os in
11502  aix3*)
11503    cat <<\EOF >> "$cfgfile"
11504
11505# AIX sometimes has problems with the GCC collect2 program.  For some
11506# reason, if we set the COLLECT_NAMES environment variable, the problems
11507# vanish in a puff of smoke.
11508if test "X${COLLECT_NAMES+set}" != Xset; then
11509  COLLECT_NAMES=
11510  export COLLECT_NAMES
11511fi
11512EOF
11513    ;;
11514  esac
11515
11516  # We use sed instead of cat because bash on DJGPP gets confused if
11517  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11518  # text mode, it properly converts lines to CR/LF.  This bash problem
11519  # is reportedly fixed, but why not run on old versions too?
11520  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11521
11522  mv -f "$cfgfile" "$ofile" || \
11523    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11524  chmod +x "$ofile"
11525
11526else
11527  # If there is no Makefile yet, we rely on a make rule to execute
11528  # `config.status --recheck' to rerun these tests and create the
11529  # libtool script then.
11530  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11531  if test -f "$ltmain_in"; then
11532    test -f Makefile && make "$ltmain"
11533  fi
11534fi
11535
11536
11537ac_ext=c
11538ac_cpp='$CPP $CPPFLAGS'
11539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11541ac_compiler_gnu=$ac_cv_c_compiler_gnu
11542
11543CC="$lt_save_CC"
11544
11545
11546# Check whether --with-tags was given.
11547if test "${with_tags+set}" = set; then
11548  withval=$with_tags; tagnames="$withval"
11549fi
11550
11551
11552if test -f "$ltmain" && test -n "$tagnames"; then
11553  if test ! -f "${ofile}"; then
11554    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11555echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11556  fi
11557
11558  if test -z "$LTCC"; then
11559    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11560    if test -z "$LTCC"; then
11561      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11562echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11563    else
11564      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11565echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11566    fi
11567  fi
11568  if test -z "$LTCFLAGS"; then
11569    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11570  fi
11571
11572  # Extract list of available tagged configurations in $ofile.
11573  # Note that this assumes the entire list is on one line.
11574  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11575
11576  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11577  for tagname in $tagnames; do
11578    IFS="$lt_save_ifs"
11579    # Check whether tagname contains only valid characters
11580    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11581    "") ;;
11582    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11583echo "$as_me: error: invalid tag name: $tagname" >&2;}
11584   { (exit 1); exit 1; }; }
11585	;;
11586    esac
11587
11588    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11589    then
11590      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11591echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11592   { (exit 1); exit 1; }; }
11593    fi
11594
11595    # Update the list of available tags.
11596    if test -n "$tagname"; then
11597      echo appending configuration tag \"$tagname\" to $ofile
11598
11599      case $tagname in
11600      CXX)
11601	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11602	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11603	    (test "X$CXX" != "Xg++"))) ; then
11604	  ac_ext=cpp
11605ac_cpp='$CXXCPP $CPPFLAGS'
11606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11609
11610
11611
11612
11613archive_cmds_need_lc_CXX=no
11614allow_undefined_flag_CXX=
11615always_export_symbols_CXX=no
11616archive_expsym_cmds_CXX=
11617export_dynamic_flag_spec_CXX=
11618hardcode_direct_CXX=no
11619hardcode_libdir_flag_spec_CXX=
11620hardcode_libdir_flag_spec_ld_CXX=
11621hardcode_libdir_separator_CXX=
11622hardcode_minus_L_CXX=no
11623hardcode_shlibpath_var_CXX=unsupported
11624hardcode_automatic_CXX=no
11625module_cmds_CXX=
11626module_expsym_cmds_CXX=
11627link_all_deplibs_CXX=unknown
11628old_archive_cmds_CXX=$old_archive_cmds
11629no_undefined_flag_CXX=
11630whole_archive_flag_spec_CXX=
11631enable_shared_with_static_runtimes_CXX=no
11632
11633# Dependencies to place before and after the object being linked:
11634predep_objects_CXX=
11635postdep_objects_CXX=
11636predeps_CXX=
11637postdeps_CXX=
11638compiler_lib_search_path_CXX=
11639
11640# Source file extension for C++ test sources.
11641ac_ext=cpp
11642
11643# Object file extension for compiled C++ test sources.
11644objext=o
11645objext_CXX=$objext
11646
11647# Code to be used in simple compile tests
11648lt_simple_compile_test_code="int some_variable = 0;\n"
11649
11650# Code to be used in simple link tests
11651lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11652
11653# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11654
11655# If no C compiler was specified, use CC.
11656LTCC=${LTCC-"$CC"}
11657
11658# If no C compiler flags were specified, use CFLAGS.
11659LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11660
11661# Allow CC to be a program name with arguments.
11662compiler=$CC
11663
11664
11665# save warnings/boilerplate of simple test code
11666ac_outfile=conftest.$ac_objext
11667printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11668eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11669_lt_compiler_boilerplate=`cat conftest.err`
11670$rm conftest*
11671
11672ac_outfile=conftest.$ac_objext
11673printf "$lt_simple_link_test_code" >conftest.$ac_ext
11674eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11675_lt_linker_boilerplate=`cat conftest.err`
11676$rm conftest*
11677
11678
11679# Allow CC to be a program name with arguments.
11680lt_save_CC=$CC
11681lt_save_LD=$LD
11682lt_save_GCC=$GCC
11683GCC=$GXX
11684lt_save_with_gnu_ld=$with_gnu_ld
11685lt_save_path_LD=$lt_cv_path_LD
11686if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11687  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11688else
11689  $as_unset lt_cv_prog_gnu_ld
11690fi
11691if test -n "${lt_cv_path_LDCXX+set}"; then
11692  lt_cv_path_LD=$lt_cv_path_LDCXX
11693else
11694  $as_unset lt_cv_path_LD
11695fi
11696test -z "${LDCXX+set}" || LD=$LDCXX
11697CC=${CXX-"c++"}
11698compiler=$CC
11699compiler_CXX=$CC
11700for cc_temp in $compiler""; do
11701  case $cc_temp in
11702    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11703    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11704    \-*) ;;
11705    *) break;;
11706  esac
11707done
11708cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11709
11710
11711# We don't want -fno-exception wen compiling C++ code, so set the
11712# no_builtin_flag separately
11713if test "$GXX" = yes; then
11714  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11715else
11716  lt_prog_compiler_no_builtin_flag_CXX=
11717fi
11718
11719if test "$GXX" = yes; then
11720  # Set up default GNU C++ configuration
11721
11722
11723# Check whether --with-gnu-ld was given.
11724if test "${with_gnu_ld+set}" = set; then
11725  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11726else
11727  with_gnu_ld=no
11728fi
11729
11730ac_prog=ld
11731if test "$GCC" = yes; then
11732  # Check if gcc -print-prog-name=ld gives a path.
11733  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11734echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11735  case $host in
11736  *-*-mingw*)
11737    # gcc leaves a trailing carriage return which upsets mingw
11738    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11739  *)
11740    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11741  esac
11742  case $ac_prog in
11743    # Accept absolute paths.
11744    [\\/]* | ?:[\\/]*)
11745      re_direlt='/[^/][^/]*/\.\./'
11746      # Canonicalize the pathname of ld
11747      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11748      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11749	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11750      done
11751      test -z "$LD" && LD="$ac_prog"
11752      ;;
11753  "")
11754    # If it fails, then pretend we aren't using GCC.
11755    ac_prog=ld
11756    ;;
11757  *)
11758    # If it is relative, then search for the first ld in PATH.
11759    with_gnu_ld=unknown
11760    ;;
11761  esac
11762elif test "$with_gnu_ld" = yes; then
11763  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11764echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11765else
11766  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11767echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11768fi
11769if test "${lt_cv_path_LD+set}" = set; then
11770  echo $ECHO_N "(cached) $ECHO_C" >&6
11771else
11772  if test -z "$LD"; then
11773  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11774  for ac_dir in $PATH; do
11775    IFS="$lt_save_ifs"
11776    test -z "$ac_dir" && ac_dir=.
11777    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11778      lt_cv_path_LD="$ac_dir/$ac_prog"
11779      # Check to see if the program is GNU ld.  I'd rather use --version,
11780      # but apparently some variants of GNU ld only accept -v.
11781      # Break only if it was the GNU/non-GNU ld that we prefer.
11782      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11783      *GNU* | *'with BFD'*)
11784	test "$with_gnu_ld" != no && break
11785	;;
11786      *)
11787	test "$with_gnu_ld" != yes && break
11788	;;
11789      esac
11790    fi
11791  done
11792  IFS="$lt_save_ifs"
11793else
11794  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11795fi
11796fi
11797
11798LD="$lt_cv_path_LD"
11799if test -n "$LD"; then
11800  { echo "$as_me:$LINENO: result: $LD" >&5
11801echo "${ECHO_T}$LD" >&6; }
11802else
11803  { echo "$as_me:$LINENO: result: no" >&5
11804echo "${ECHO_T}no" >&6; }
11805fi
11806test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11807echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11808   { (exit 1); exit 1; }; }
11809{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11810echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11811if test "${lt_cv_prog_gnu_ld+set}" = set; then
11812  echo $ECHO_N "(cached) $ECHO_C" >&6
11813else
11814  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11815case `$LD -v 2>&1 </dev/null` in
11816*GNU* | *'with BFD'*)
11817  lt_cv_prog_gnu_ld=yes
11818  ;;
11819*)
11820  lt_cv_prog_gnu_ld=no
11821  ;;
11822esac
11823fi
11824{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11825echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11826with_gnu_ld=$lt_cv_prog_gnu_ld
11827
11828
11829
11830  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11831  # archiving commands below assume that GNU ld is being used.
11832  if test "$with_gnu_ld" = yes; then
11833    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11834    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'
11835
11836    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11837    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11838
11839    # If archive_cmds runs LD, not CC, wlarc should be empty
11840    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11841    #     investigate it a little bit more. (MM)
11842    wlarc='${wl}'
11843
11844    # ancient GNU ld didn't support --whole-archive et. al.
11845    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11846	grep 'no-whole-archive' > /dev/null; then
11847      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11848    else
11849      whole_archive_flag_spec_CXX=
11850    fi
11851  else
11852    with_gnu_ld=no
11853    wlarc=
11854
11855    # A generic and very simple default shared library creation
11856    # command for GNU C++ for the case where it uses the native
11857    # linker, instead of GNU ld.  If possible, this setting should
11858    # overridden to take advantage of the native linker features on
11859    # the platform it is being used on.
11860    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11861  fi
11862
11863  # Commands to make compiler produce verbose output that lists
11864  # what "hidden" libraries, object files and flags are used when
11865  # linking a shared library.
11866  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11867
11868else
11869  GXX=no
11870  with_gnu_ld=no
11871  wlarc=
11872fi
11873
11874# PORTME: fill in a description of your system's C++ link characteristics
11875{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11876echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11877ld_shlibs_CXX=yes
11878case $host_os in
11879  aix3*)
11880    # FIXME: insert proper C++ library support
11881    ld_shlibs_CXX=no
11882    ;;
11883  aix4* | aix5*)
11884    if test "$host_cpu" = ia64; then
11885      # On IA64, the linker does run time linking by default, so we don't
11886      # have to do anything special.
11887      aix_use_runtimelinking=no
11888      exp_sym_flag='-Bexport'
11889      no_entry_flag=""
11890    else
11891      aix_use_runtimelinking=no
11892
11893      # Test if we are trying to use run time linking or normal
11894      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11895      # need to do runtime linking.
11896      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11897	for ld_flag in $LDFLAGS; do
11898	  case $ld_flag in
11899	  *-brtl*)
11900	    aix_use_runtimelinking=yes
11901	    break
11902	    ;;
11903	  esac
11904	done
11905	;;
11906      esac
11907
11908      exp_sym_flag='-bexport'
11909      no_entry_flag='-bnoentry'
11910    fi
11911
11912    # When large executables or shared objects are built, AIX ld can
11913    # have problems creating the table of contents.  If linking a library
11914    # or program results in "error TOC overflow" add -mminimal-toc to
11915    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11916    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11917
11918    archive_cmds_CXX=''
11919    hardcode_direct_CXX=yes
11920    hardcode_libdir_separator_CXX=':'
11921    link_all_deplibs_CXX=yes
11922
11923    if test "$GXX" = yes; then
11924      case $host_os in aix4.[012]|aix4.[012].*)
11925      # We only want to do this on AIX 4.2 and lower, the check
11926      # below for broken collect2 doesn't work under 4.3+
11927	collect2name=`${CC} -print-prog-name=collect2`
11928	if test -f "$collect2name" && \
11929	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11930	then
11931	  # We have reworked collect2
11932	  hardcode_direct_CXX=yes
11933	else
11934	  # We have old collect2
11935	  hardcode_direct_CXX=unsupported
11936	  # It fails to find uninstalled libraries when the uninstalled
11937	  # path is not listed in the libpath.  Setting hardcode_minus_L
11938	  # to unsupported forces relinking
11939	  hardcode_minus_L_CXX=yes
11940	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11941	  hardcode_libdir_separator_CXX=
11942	fi
11943	;;
11944      esac
11945      shared_flag='-shared'
11946      if test "$aix_use_runtimelinking" = yes; then
11947	shared_flag="$shared_flag "'${wl}-G'
11948      fi
11949    else
11950      # not using gcc
11951      if test "$host_cpu" = ia64; then
11952	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11953	# chokes on -Wl,-G. The following line is correct:
11954	shared_flag='-G'
11955      else
11956	if test "$aix_use_runtimelinking" = yes; then
11957	  shared_flag='${wl}-G'
11958	else
11959	  shared_flag='${wl}-bM:SRE'
11960	fi
11961      fi
11962    fi
11963
11964    # It seems that -bexpall does not export symbols beginning with
11965    # underscore (_), so it is better to generate a list of symbols to export.
11966    always_export_symbols_CXX=yes
11967    if test "$aix_use_runtimelinking" = yes; then
11968      # Warning - without using the other runtime loading flags (-brtl),
11969      # -berok will link without error, but may produce a broken library.
11970      allow_undefined_flag_CXX='-berok'
11971      # Determine the default libpath from the value encoded in an empty executable.
11972      cat >conftest.$ac_ext <<_ACEOF
11973/* confdefs.h.  */
11974_ACEOF
11975cat confdefs.h >>conftest.$ac_ext
11976cat >>conftest.$ac_ext <<_ACEOF
11977/* end confdefs.h.  */
11978
11979int
11980main ()
11981{
11982
11983  ;
11984  return 0;
11985}
11986_ACEOF
11987rm -f conftest.$ac_objext conftest$ac_exeext
11988if { (ac_try="$ac_link"
11989case "(($ac_try" in
11990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991  *) ac_try_echo=$ac_try;;
11992esac
11993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994  (eval "$ac_link") 2>conftest.er1
11995  ac_status=$?
11996  grep -v '^ *+' conftest.er1 >conftest.err
11997  rm -f conftest.er1
11998  cat conftest.err >&5
11999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000  (exit $ac_status); } && {
12001	 test -z "$ac_cxx_werror_flag" ||
12002	 test ! -s conftest.err
12003       } && test -s conftest$ac_exeext &&
12004       $as_test_x conftest$ac_exeext; then
12005
12006aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12007}'`
12008# Check for a 64-bit object if we didn't find anything.
12009if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12010}'`; fi
12011else
12012  echo "$as_me: failed program was:" >&5
12013sed 's/^/| /' conftest.$ac_ext >&5
12014
12015
12016fi
12017
12018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12019      conftest$ac_exeext conftest.$ac_ext
12020if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12021
12022      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12023
12024      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"
12025     else
12026      if test "$host_cpu" = ia64; then
12027	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12028	allow_undefined_flag_CXX="-z nodefs"
12029	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"
12030      else
12031	# Determine the default libpath from the value encoded in an empty executable.
12032	cat >conftest.$ac_ext <<_ACEOF
12033/* confdefs.h.  */
12034_ACEOF
12035cat confdefs.h >>conftest.$ac_ext
12036cat >>conftest.$ac_ext <<_ACEOF
12037/* end confdefs.h.  */
12038
12039int
12040main ()
12041{
12042
12043  ;
12044  return 0;
12045}
12046_ACEOF
12047rm -f conftest.$ac_objext conftest$ac_exeext
12048if { (ac_try="$ac_link"
12049case "(($ac_try" in
12050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051  *) ac_try_echo=$ac_try;;
12052esac
12053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12054  (eval "$ac_link") 2>conftest.er1
12055  ac_status=$?
12056  grep -v '^ *+' conftest.er1 >conftest.err
12057  rm -f conftest.er1
12058  cat conftest.err >&5
12059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060  (exit $ac_status); } && {
12061	 test -z "$ac_cxx_werror_flag" ||
12062	 test ! -s conftest.err
12063       } && test -s conftest$ac_exeext &&
12064       $as_test_x conftest$ac_exeext; then
12065
12066aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12067}'`
12068# Check for a 64-bit object if we didn't find anything.
12069if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12070}'`; fi
12071else
12072  echo "$as_me: failed program was:" >&5
12073sed 's/^/| /' conftest.$ac_ext >&5
12074
12075
12076fi
12077
12078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12079      conftest$ac_exeext conftest.$ac_ext
12080if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12081
12082	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12083	# Warning - without using the other run time loading flags,
12084	# -berok will link without error, but may produce a broken library.
12085	no_undefined_flag_CXX=' ${wl}-bernotok'
12086	allow_undefined_flag_CXX=' ${wl}-berok'
12087	# Exported symbols can be pulled into shared objects from archives
12088	whole_archive_flag_spec_CXX='$convenience'
12089	archive_cmds_need_lc_CXX=yes
12090	# This is similar to how AIX traditionally builds its shared libraries.
12091	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'
12092      fi
12093    fi
12094    ;;
12095
12096  beos*)
12097    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12098      allow_undefined_flag_CXX=unsupported
12099      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12100      # support --undefined.  This deserves some investigation.  FIXME
12101      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12102    else
12103      ld_shlibs_CXX=no
12104    fi
12105    ;;
12106
12107  chorus*)
12108    case $cc_basename in
12109      *)
12110	# FIXME: insert proper C++ library support
12111	ld_shlibs_CXX=no
12112	;;
12113    esac
12114    ;;
12115
12116  cygwin* | mingw* | pw32*)
12117    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12118    # as there is no search path for DLLs.
12119    hardcode_libdir_flag_spec_CXX='-L$libdir'
12120    allow_undefined_flag_CXX=unsupported
12121    always_export_symbols_CXX=no
12122    enable_shared_with_static_runtimes_CXX=yes
12123
12124    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12125      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'
12126      # If the export-symbols file already is a .def file (1st line
12127      # is EXPORTS), use it as is; otherwise, prepend...
12128      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12129	cp $export_symbols $output_objdir/$soname.def;
12130      else
12131	echo EXPORTS > $output_objdir/$soname.def;
12132	cat $export_symbols >> $output_objdir/$soname.def;
12133      fi~
12134      $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'
12135    else
12136      ld_shlibs_CXX=no
12137    fi
12138  ;;
12139      darwin* | rhapsody*)
12140        case $host_os in
12141        rhapsody* | darwin1.[012])
12142         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12143         ;;
12144       *) # Darwin 1.3 on
12145         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12146           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12147         else
12148           case ${MACOSX_DEPLOYMENT_TARGET} in
12149             10.[012])
12150               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12151               ;;
12152             10.*)
12153               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12154               ;;
12155           esac
12156         fi
12157         ;;
12158        esac
12159      archive_cmds_need_lc_CXX=no
12160      hardcode_direct_CXX=no
12161      hardcode_automatic_CXX=yes
12162      hardcode_shlibpath_var_CXX=unsupported
12163      whole_archive_flag_spec_CXX=''
12164      link_all_deplibs_CXX=yes
12165
12166    if test "$GXX" = yes ; then
12167      lt_int_apple_cc_single_mod=no
12168      output_verbose_link_cmd='echo'
12169      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12170       lt_int_apple_cc_single_mod=yes
12171      fi
12172      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12173       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12174      else
12175          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'
12176        fi
12177        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12178        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12179          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12180            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12181          else
12182            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12183          fi
12184            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}'
12185      else
12186      case $cc_basename in
12187        xlc*)
12188         output_verbose_link_cmd='echo'
12189          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12190          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12191          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12192          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12193          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}'
12194          ;;
12195       *)
12196         ld_shlibs_CXX=no
12197          ;;
12198      esac
12199      fi
12200        ;;
12201
12202  dgux*)
12203    case $cc_basename in
12204      ec++*)
12205	# FIXME: insert proper C++ library support
12206	ld_shlibs_CXX=no
12207	;;
12208      ghcx*)
12209	# Green Hills C++ Compiler
12210	# FIXME: insert proper C++ library support
12211	ld_shlibs_CXX=no
12212	;;
12213      *)
12214	# FIXME: insert proper C++ library support
12215	ld_shlibs_CXX=no
12216	;;
12217    esac
12218    ;;
12219  freebsd[12]*)
12220    # C++ shared libraries reported to be fairly broken before switch to ELF
12221    ld_shlibs_CXX=no
12222    ;;
12223  freebsd-elf*)
12224    archive_cmds_need_lc_CXX=no
12225    ;;
12226  freebsd* | dragonfly*)
12227    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12228    # conventions
12229    ld_shlibs_CXX=yes
12230    ;;
12231  gnu*)
12232    ;;
12233  hpux9*)
12234    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12235    hardcode_libdir_separator_CXX=:
12236    export_dynamic_flag_spec_CXX='${wl}-E'
12237    hardcode_direct_CXX=yes
12238    hardcode_minus_L_CXX=yes # Not in the search PATH,
12239				# but as the default
12240				# location of the library.
12241
12242    case $cc_basename in
12243    CC*)
12244      # FIXME: insert proper C++ library support
12245      ld_shlibs_CXX=no
12246      ;;
12247    aCC*)
12248      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'
12249      # Commands to make compiler produce verbose output that lists
12250      # what "hidden" libraries, object files and flags are used when
12251      # linking a shared library.
12252      #
12253      # There doesn't appear to be a way to prevent this compiler from
12254      # explicitly linking system object files so we need to strip them
12255      # from the output so that they don't get included in the library
12256      # dependencies.
12257      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'
12258      ;;
12259    *)
12260      if test "$GXX" = yes; then
12261        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'
12262      else
12263        # FIXME: insert proper C++ library support
12264        ld_shlibs_CXX=no
12265      fi
12266      ;;
12267    esac
12268    ;;
12269  hpux10*|hpux11*)
12270    if test $with_gnu_ld = no; then
12271      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12272      hardcode_libdir_separator_CXX=:
12273
12274      case $host_cpu in
12275      hppa*64*|ia64*)
12276	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12277        ;;
12278      *)
12279	export_dynamic_flag_spec_CXX='${wl}-E'
12280        ;;
12281      esac
12282    fi
12283    case $host_cpu in
12284    hppa*64*|ia64*)
12285      hardcode_direct_CXX=no
12286      hardcode_shlibpath_var_CXX=no
12287      ;;
12288    *)
12289      hardcode_direct_CXX=yes
12290      hardcode_minus_L_CXX=yes # Not in the search PATH,
12291					      # but as the default
12292					      # location of the library.
12293      ;;
12294    esac
12295
12296    case $cc_basename in
12297      CC*)
12298	# FIXME: insert proper C++ library support
12299	ld_shlibs_CXX=no
12300	;;
12301      aCC*)
12302	case $host_cpu in
12303	hppa*64*)
12304	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12305	  ;;
12306	ia64*)
12307	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12308	  ;;
12309	*)
12310	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12311	  ;;
12312	esac
12313	# Commands to make compiler produce verbose output that lists
12314	# what "hidden" libraries, object files and flags are used when
12315	# linking a shared library.
12316	#
12317	# There doesn't appear to be a way to prevent this compiler from
12318	# explicitly linking system object files so we need to strip them
12319	# from the output so that they don't get included in the library
12320	# dependencies.
12321	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'
12322	;;
12323      *)
12324	if test "$GXX" = yes; then
12325	  if test $with_gnu_ld = no; then
12326	    case $host_cpu in
12327	    hppa*64*)
12328	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12329	      ;;
12330	    ia64*)
12331	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12332	      ;;
12333	    *)
12334	      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'
12335	      ;;
12336	    esac
12337	  fi
12338	else
12339	  # FIXME: insert proper C++ library support
12340	  ld_shlibs_CXX=no
12341	fi
12342	;;
12343    esac
12344    ;;
12345  interix3*)
12346    hardcode_direct_CXX=no
12347    hardcode_shlibpath_var_CXX=no
12348    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12349    export_dynamic_flag_spec_CXX='${wl}-E'
12350    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12351    # Instead, shared libraries are loaded at an image base (0x10000000 by
12352    # default) and relocated if they conflict, which is a slow very memory
12353    # consuming and fragmenting process.  To avoid this, we pick a random,
12354    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12355    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12356    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'
12357    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'
12358    ;;
12359  irix5* | irix6*)
12360    case $cc_basename in
12361      CC*)
12362	# SGI C++
12363	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'
12364
12365	# Archives containing C++ object files must be created using
12366	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12367	# necessary to make sure instantiated templates are included
12368	# in the archive.
12369	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12370	;;
12371      *)
12372	if test "$GXX" = yes; then
12373	  if test "$with_gnu_ld" = no; then
12374	    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'
12375	  else
12376	    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'
12377	  fi
12378	fi
12379	link_all_deplibs_CXX=yes
12380	;;
12381    esac
12382    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12383    hardcode_libdir_separator_CXX=:
12384    ;;
12385  linux* | k*bsd*-gnu)
12386    case $cc_basename in
12387      KCC*)
12388	# Kuck and Associates, Inc. (KAI) C++ Compiler
12389
12390	# KCC will only create a shared library if the output file
12391	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12392	# to its proper name (with version) after linking.
12393	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'
12394	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'
12395	# Commands to make compiler produce verbose output that lists
12396	# what "hidden" libraries, object files and flags are used when
12397	# linking a shared library.
12398	#
12399	# There doesn't appear to be a way to prevent this compiler from
12400	# explicitly linking system object files so we need to strip them
12401	# from the output so that they don't get included in the library
12402	# dependencies.
12403	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'
12404
12405	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12406	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12407
12408	# Archives containing C++ object files must be created using
12409	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12410	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12411	;;
12412      icpc*)
12413	# Intel C++
12414	with_gnu_ld=yes
12415	# version 8.0 and above of icpc choke on multiply defined symbols
12416	# if we add $predep_objects and $postdep_objects, however 7.1 and
12417	# earlier do not add the objects themselves.
12418	case `$CC -V 2>&1` in
12419	*"Version 7."*)
12420  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12421  	  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'
12422	  ;;
12423	*)  # Version 8.0 or newer
12424	  tmp_idyn=
12425	  case $host_cpu in
12426	    ia64*) tmp_idyn=' -i_dynamic';;
12427	  esac
12428  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12429	  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'
12430	  ;;
12431	esac
12432	archive_cmds_need_lc_CXX=no
12433	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12434	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12435	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12436	;;
12437      pgCC*)
12438        # Portland Group C++ compiler
12439	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12440  	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'
12441
12442	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12443	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12444	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'
12445        ;;
12446      cxx*)
12447	# Compaq C++
12448	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12449	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'
12450
12451	runpath_var=LD_RUN_PATH
12452	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12453	hardcode_libdir_separator_CXX=:
12454
12455	# Commands to make compiler produce verbose output that lists
12456	# what "hidden" libraries, object files and flags are used when
12457	# linking a shared library.
12458	#
12459	# There doesn't appear to be a way to prevent this compiler from
12460	# explicitly linking system object files so we need to strip them
12461	# from the output so that they don't get included in the library
12462	# dependencies.
12463	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'
12464	;;
12465    esac
12466    ;;
12467  lynxos*)
12468    # FIXME: insert proper C++ library support
12469    ld_shlibs_CXX=no
12470    ;;
12471  m88k*)
12472    # FIXME: insert proper C++ library support
12473    ld_shlibs_CXX=no
12474    ;;
12475  mvs*)
12476    case $cc_basename in
12477      cxx*)
12478	# FIXME: insert proper C++ library support
12479	ld_shlibs_CXX=no
12480	;;
12481      *)
12482	# FIXME: insert proper C++ library support
12483	ld_shlibs_CXX=no
12484	;;
12485    esac
12486    ;;
12487  netbsd* | netbsdelf*-gnu)
12488    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12489      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12490      wlarc=
12491      hardcode_libdir_flag_spec_CXX='-R$libdir'
12492      hardcode_direct_CXX=yes
12493      hardcode_shlibpath_var_CXX=no
12494    fi
12495    # Workaround some broken pre-1.5 toolchains
12496    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12497    ;;
12498  openbsd2*)
12499    # C++ shared libraries are fairly broken
12500    ld_shlibs_CXX=no
12501    ;;
12502  openbsd*)
12503    hardcode_direct_CXX=yes
12504    hardcode_shlibpath_var_CXX=no
12505    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12506    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12507    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12508      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12509      export_dynamic_flag_spec_CXX='${wl}-E'
12510      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12511    fi
12512    output_verbose_link_cmd='echo'
12513    ;;
12514  osf3*)
12515    case $cc_basename in
12516      KCC*)
12517	# Kuck and Associates, Inc. (KAI) C++ Compiler
12518
12519	# KCC will only create a shared library if the output file
12520	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12521	# to its proper name (with version) after linking.
12522	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'
12523
12524	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12525	hardcode_libdir_separator_CXX=:
12526
12527	# Archives containing C++ object files must be created using
12528	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12529	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12530
12531	;;
12532      RCC*)
12533	# Rational C++ 2.4.1
12534	# FIXME: insert proper C++ library support
12535	ld_shlibs_CXX=no
12536	;;
12537      cxx*)
12538	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12539	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'
12540
12541	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12542	hardcode_libdir_separator_CXX=:
12543
12544	# Commands to make compiler produce verbose output that lists
12545	# what "hidden" libraries, object files and flags are used when
12546	# linking a shared library.
12547	#
12548	# There doesn't appear to be a way to prevent this compiler from
12549	# explicitly linking system object files so we need to strip them
12550	# from the output so that they don't get included in the library
12551	# dependencies.
12552	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'
12553	;;
12554      *)
12555	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12556	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12557	  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'
12558
12559	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12560	  hardcode_libdir_separator_CXX=:
12561
12562	  # Commands to make compiler produce verbose output that lists
12563	  # what "hidden" libraries, object files and flags are used when
12564	  # linking a shared library.
12565	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12566
12567	else
12568	  # FIXME: insert proper C++ library support
12569	  ld_shlibs_CXX=no
12570	fi
12571	;;
12572    esac
12573    ;;
12574  osf4* | osf5*)
12575    case $cc_basename in
12576      KCC*)
12577	# Kuck and Associates, Inc. (KAI) C++ Compiler
12578
12579	# KCC will only create a shared library if the output file
12580	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12581	# to its proper name (with version) after linking.
12582	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'
12583
12584	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12585	hardcode_libdir_separator_CXX=:
12586
12587	# Archives containing C++ object files must be created using
12588	# the KAI C++ compiler.
12589	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12590	;;
12591      RCC*)
12592	# Rational C++ 2.4.1
12593	# FIXME: insert proper C++ library support
12594	ld_shlibs_CXX=no
12595	;;
12596      cxx*)
12597	allow_undefined_flag_CXX=' -expect_unresolved \*'
12598	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'
12599	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12600	  echo "-hidden">> $lib.exp~
12601	  $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~
12602	  $rm $lib.exp'
12603
12604	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12605	hardcode_libdir_separator_CXX=:
12606
12607	# Commands to make compiler produce verbose output that lists
12608	# what "hidden" libraries, object files and flags are used when
12609	# linking a shared library.
12610	#
12611	# There doesn't appear to be a way to prevent this compiler from
12612	# explicitly linking system object files so we need to strip them
12613	# from the output so that they don't get included in the library
12614	# dependencies.
12615	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'
12616	;;
12617      *)
12618	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12619	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12620	 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'
12621
12622	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12623	  hardcode_libdir_separator_CXX=:
12624
12625	  # Commands to make compiler produce verbose output that lists
12626	  # what "hidden" libraries, object files and flags are used when
12627	  # linking a shared library.
12628	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12629
12630	else
12631	  # FIXME: insert proper C++ library support
12632	  ld_shlibs_CXX=no
12633	fi
12634	;;
12635    esac
12636    ;;
12637  psos*)
12638    # FIXME: insert proper C++ library support
12639    ld_shlibs_CXX=no
12640    ;;
12641  sunos4*)
12642    case $cc_basename in
12643      CC*)
12644	# Sun C++ 4.x
12645	# FIXME: insert proper C++ library support
12646	ld_shlibs_CXX=no
12647	;;
12648      lcc*)
12649	# Lucid
12650	# FIXME: insert proper C++ library support
12651	ld_shlibs_CXX=no
12652	;;
12653      *)
12654	# FIXME: insert proper C++ library support
12655	ld_shlibs_CXX=no
12656	;;
12657    esac
12658    ;;
12659  solaris*)
12660    case $cc_basename in
12661      CC*)
12662	# Sun C++ 4.2, 5.x and Centerline C++
12663        archive_cmds_need_lc_CXX=yes
12664	no_undefined_flag_CXX=' -zdefs'
12665	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12666	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12667	$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'
12668
12669	hardcode_libdir_flag_spec_CXX='-R$libdir'
12670	hardcode_shlibpath_var_CXX=no
12671	case $host_os in
12672	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12673	  *)
12674	    # The C++ compiler is used as linker so we must use $wl
12675	    # flag to pass the commands to the underlying system
12676	    # linker. We must also pass each convience library through
12677	    # to the system linker between allextract/defaultextract.
12678	    # The C++ compiler will combine linker options so we
12679	    # cannot just pass the convience library names through
12680	    # without $wl.
12681	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12682	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12683	    ;;
12684	esac
12685	link_all_deplibs_CXX=yes
12686
12687	output_verbose_link_cmd='echo'
12688
12689	# Archives containing C++ object files must be created using
12690	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12691	# necessary to make sure instantiated templates are included
12692	# in the archive.
12693	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12694	;;
12695      gcx*)
12696	# Green Hills C++ Compiler
12697	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12698
12699	# The C++ compiler must be used to create the archive.
12700	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12701	;;
12702      *)
12703	# GNU C++ compiler with Solaris linker
12704	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12705	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12706	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12707	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12708	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12709		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12710
12711	    # Commands to make compiler produce verbose output that lists
12712	    # what "hidden" libraries, object files and flags are used when
12713	    # linking a shared library.
12714	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12715	  else
12716	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12717	    # platform.
12718	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12719	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12720		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12721
12722	    # Commands to make compiler produce verbose output that lists
12723	    # what "hidden" libraries, object files and flags are used when
12724	    # linking a shared library.
12725	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12726	  fi
12727
12728	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12729	fi
12730	;;
12731    esac
12732    ;;
12733  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12734    no_undefined_flag_CXX='${wl}-z,text'
12735    archive_cmds_need_lc_CXX=no
12736    hardcode_shlibpath_var_CXX=no
12737    runpath_var='LD_RUN_PATH'
12738
12739    case $cc_basename in
12740      CC*)
12741	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12742	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12743	;;
12744      *)
12745	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12746	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12747	;;
12748    esac
12749    ;;
12750  sysv5* | sco3.2v5* | sco5v6*)
12751    # Note: We can NOT use -z defs as we might desire, because we do not
12752    # link with -lc, and that would cause any symbols used from libc to
12753    # always be unresolved, which means just about no library would
12754    # ever link correctly.  If we're not using GNU ld we use -z text
12755    # though, which does catch some bad symbols but isn't as heavy-handed
12756    # as -z defs.
12757    # For security reasons, it is highly recommended that you always
12758    # use absolute paths for naming shared libraries, and exclude the
12759    # DT_RUNPATH tag from executables and libraries.  But doing so
12760    # requires that you compile everything twice, which is a pain.
12761    # So that behaviour is only enabled if SCOABSPATH is set to a
12762    # non-empty value in the environment.  Most likely only useful for
12763    # creating official distributions of packages.
12764    # This is a hack until libtool officially supports absolute path
12765    # names for shared libraries.
12766    no_undefined_flag_CXX='${wl}-z,text'
12767    allow_undefined_flag_CXX='${wl}-z,nodefs'
12768    archive_cmds_need_lc_CXX=no
12769    hardcode_shlibpath_var_CXX=no
12770    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12771    hardcode_libdir_separator_CXX=':'
12772    link_all_deplibs_CXX=yes
12773    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12774    runpath_var='LD_RUN_PATH'
12775
12776    case $cc_basename in
12777      CC*)
12778	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12779	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12780	;;
12781      *)
12782	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12783	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12784	;;
12785    esac
12786    ;;
12787  tandem*)
12788    case $cc_basename in
12789      NCC*)
12790	# NonStop-UX NCC 3.20
12791	# FIXME: insert proper C++ library support
12792	ld_shlibs_CXX=no
12793	;;
12794      *)
12795	# FIXME: insert proper C++ library support
12796	ld_shlibs_CXX=no
12797	;;
12798    esac
12799    ;;
12800  vxworks*)
12801    # FIXME: insert proper C++ library support
12802    ld_shlibs_CXX=no
12803    ;;
12804  *)
12805    # FIXME: insert proper C++ library support
12806    ld_shlibs_CXX=no
12807    ;;
12808esac
12809{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12810echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12811test "$ld_shlibs_CXX" = no && can_build_shared=no
12812
12813GCC_CXX="$GXX"
12814LD_CXX="$LD"
12815
12816
12817cat > conftest.$ac_ext <<EOF
12818class Foo
12819{
12820public:
12821  Foo (void) { a = 0; }
12822private:
12823  int a;
12824};
12825EOF
12826
12827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12828  (eval $ac_compile) 2>&5
12829  ac_status=$?
12830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831  (exit $ac_status); }; then
12832  # Parse the compiler output and extract the necessary
12833  # objects, libraries and library flags.
12834
12835  # Sentinel used to keep track of whether or not we are before
12836  # the conftest object file.
12837  pre_test_object_deps_done=no
12838
12839  # The `*' in the case matches for architectures that use `case' in
12840  # $output_verbose_cmd can trigger glob expansion during the loop
12841  # eval without this substitution.
12842  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12843
12844  for p in `eval $output_verbose_link_cmd`; do
12845    case $p in
12846
12847    -L* | -R* | -l*)
12848       # Some compilers place space between "-{L,R}" and the path.
12849       # Remove the space.
12850       if test $p = "-L" \
12851	  || test $p = "-R"; then
12852	 prev=$p
12853	 continue
12854       else
12855	 prev=
12856       fi
12857
12858       if test "$pre_test_object_deps_done" = no; then
12859	 case $p in
12860	 -L* | -R*)
12861	   # Internal compiler library paths should come after those
12862	   # provided the user.  The postdeps already come after the
12863	   # user supplied libs so there is no need to process them.
12864	   if test -z "$compiler_lib_search_path_CXX"; then
12865	     compiler_lib_search_path_CXX="${prev}${p}"
12866	   else
12867	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12868	   fi
12869	   ;;
12870	 # The "-l" case would never come before the object being
12871	 # linked, so don't bother handling this case.
12872	 esac
12873       else
12874	 if test -z "$postdeps_CXX"; then
12875	   postdeps_CXX="${prev}${p}"
12876	 else
12877	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12878	 fi
12879       fi
12880       ;;
12881
12882    *.$objext)
12883       # This assumes that the test object file only shows up
12884       # once in the compiler output.
12885       if test "$p" = "conftest.$objext"; then
12886	 pre_test_object_deps_done=yes
12887	 continue
12888       fi
12889
12890       if test "$pre_test_object_deps_done" = no; then
12891	 if test -z "$predep_objects_CXX"; then
12892	   predep_objects_CXX="$p"
12893	 else
12894	   predep_objects_CXX="$predep_objects_CXX $p"
12895	 fi
12896       else
12897	 if test -z "$postdep_objects_CXX"; then
12898	   postdep_objects_CXX="$p"
12899	 else
12900	   postdep_objects_CXX="$postdep_objects_CXX $p"
12901	 fi
12902       fi
12903       ;;
12904
12905    *) ;; # Ignore the rest.
12906
12907    esac
12908  done
12909
12910  # Clean up.
12911  rm -f a.out a.exe
12912else
12913  echo "libtool.m4: error: problem compiling CXX test program"
12914fi
12915
12916$rm -f confest.$objext
12917
12918# PORTME: override above test on systems where it is broken
12919case $host_os in
12920interix3*)
12921  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12922  # hack all around it, let's just trust "g++" to DTRT.
12923  predep_objects_CXX=
12924  postdep_objects_CXX=
12925  postdeps_CXX=
12926  ;;
12927
12928solaris*)
12929  case $cc_basename in
12930  CC*)
12931    # Adding this requires a known-good setup of shared libraries for
12932    # Sun compiler versions before 5.6, else PIC objects from an old
12933    # archive will be linked into the output, leading to subtle bugs.
12934    postdeps_CXX='-lCstd -lCrun'
12935    ;;
12936  esac
12937  ;;
12938esac
12939
12940
12941case " $postdeps_CXX " in
12942*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12943esac
12944
12945lt_prog_compiler_wl_CXX=
12946lt_prog_compiler_pic_CXX=
12947lt_prog_compiler_static_CXX=
12948
12949{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12950echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12951
12952  # C++ specific cases for pic, static, wl, etc.
12953  if test "$GXX" = yes; then
12954    lt_prog_compiler_wl_CXX='-Wl,'
12955    lt_prog_compiler_static_CXX='-static'
12956
12957    case $host_os in
12958    aix*)
12959      # All AIX code is PIC.
12960      if test "$host_cpu" = ia64; then
12961	# AIX 5 now supports IA64 processor
12962	lt_prog_compiler_static_CXX='-Bstatic'
12963      fi
12964      ;;
12965    amigaos*)
12966      # FIXME: we need at least 68020 code to build shared libraries, but
12967      # adding the `-m68020' flag to GCC prevents building anything better,
12968      # like `-m68040'.
12969      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12970      ;;
12971    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12972      # PIC is the default for these OSes.
12973      ;;
12974    mingw* | os2* | pw32*)
12975      # This hack is so that the source file can tell whether it is being
12976      # built for inclusion in a dll (and should export symbols for example).
12977      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12978      ;;
12979    darwin* | rhapsody*)
12980      # PIC is the default on this platform
12981      # Common symbols not allowed in MH_DYLIB files
12982      lt_prog_compiler_pic_CXX='-fno-common'
12983      ;;
12984    *djgpp*)
12985      # DJGPP does not support shared libraries at all
12986      lt_prog_compiler_pic_CXX=
12987      ;;
12988    interix3*)
12989      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12990      # Instead, we relocate shared libraries at runtime.
12991      ;;
12992    sysv4*MP*)
12993      if test -d /usr/nec; then
12994	lt_prog_compiler_pic_CXX=-Kconform_pic
12995      fi
12996      ;;
12997    hpux*)
12998      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12999      # not for PA HP-UX.
13000      case $host_cpu in
13001      hppa*64*|ia64*)
13002	;;
13003      *)
13004	lt_prog_compiler_pic_CXX='-fPIC'
13005	;;
13006      esac
13007      ;;
13008    *)
13009      lt_prog_compiler_pic_CXX='-fPIC'
13010      ;;
13011    esac
13012  else
13013    case $host_os in
13014      aix4* | aix5*)
13015	# All AIX code is PIC.
13016	if test "$host_cpu" = ia64; then
13017	  # AIX 5 now supports IA64 processor
13018	  lt_prog_compiler_static_CXX='-Bstatic'
13019	else
13020	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13021	fi
13022	;;
13023      chorus*)
13024	case $cc_basename in
13025	cxch68*)
13026	  # Green Hills C++ Compiler
13027	  # _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"
13028	  ;;
13029	esac
13030	;;
13031       darwin*)
13032         # PIC is the default on this platform
13033         # Common symbols not allowed in MH_DYLIB files
13034         case $cc_basename in
13035           xlc*)
13036           lt_prog_compiler_pic_CXX='-qnocommon'
13037           lt_prog_compiler_wl_CXX='-Wl,'
13038           ;;
13039         esac
13040       ;;
13041      dgux*)
13042	case $cc_basename in
13043	  ec++*)
13044	    lt_prog_compiler_pic_CXX='-KPIC'
13045	    ;;
13046	  ghcx*)
13047	    # Green Hills C++ Compiler
13048	    lt_prog_compiler_pic_CXX='-pic'
13049	    ;;
13050	  *)
13051	    ;;
13052	esac
13053	;;
13054      freebsd* | dragonfly*)
13055	# FreeBSD uses GNU C++
13056	;;
13057      hpux9* | hpux10* | hpux11*)
13058	case $cc_basename in
13059	  CC*)
13060	    lt_prog_compiler_wl_CXX='-Wl,'
13061	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13062	    if test "$host_cpu" != ia64; then
13063	      lt_prog_compiler_pic_CXX='+Z'
13064	    fi
13065	    ;;
13066	  aCC*)
13067	    lt_prog_compiler_wl_CXX='-Wl,'
13068	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13069	    case $host_cpu in
13070	    hppa*64*|ia64*)
13071	      # +Z the default
13072	      ;;
13073	    *)
13074	      lt_prog_compiler_pic_CXX='+Z'
13075	      ;;
13076	    esac
13077	    ;;
13078	  *)
13079	    ;;
13080	esac
13081	;;
13082      interix*)
13083	# This is c89, which is MS Visual C++ (no shared libs)
13084	# Anyone wants to do a port?
13085	;;
13086      irix5* | irix6* | nonstopux*)
13087	case $cc_basename in
13088	  CC*)
13089	    lt_prog_compiler_wl_CXX='-Wl,'
13090	    lt_prog_compiler_static_CXX='-non_shared'
13091	    # CC pic flag -KPIC is the default.
13092	    ;;
13093	  *)
13094	    ;;
13095	esac
13096	;;
13097      linux* | k*bsd*-gnu)
13098	case $cc_basename in
13099	  KCC*)
13100	    # KAI C++ Compiler
13101	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13102	    lt_prog_compiler_pic_CXX='-fPIC'
13103	    ;;
13104	  icpc* | ecpc*)
13105	    # Intel C++
13106	    lt_prog_compiler_wl_CXX='-Wl,'
13107	    lt_prog_compiler_pic_CXX='-KPIC'
13108	    lt_prog_compiler_static_CXX='-static'
13109	    ;;
13110	  pgCC*)
13111	    # Portland Group C++ compiler.
13112	    lt_prog_compiler_wl_CXX='-Wl,'
13113	    lt_prog_compiler_pic_CXX='-fpic'
13114	    lt_prog_compiler_static_CXX='-Bstatic'
13115	    ;;
13116	  cxx*)
13117	    # Compaq C++
13118	    # Make sure the PIC flag is empty.  It appears that all Alpha
13119	    # Linux and Compaq Tru64 Unix objects are PIC.
13120	    lt_prog_compiler_pic_CXX=
13121	    lt_prog_compiler_static_CXX='-non_shared'
13122	    ;;
13123	  *)
13124	    ;;
13125	esac
13126	;;
13127      lynxos*)
13128	;;
13129      m88k*)
13130	;;
13131      mvs*)
13132	case $cc_basename in
13133	  cxx*)
13134	    lt_prog_compiler_pic_CXX='-W c,exportall'
13135	    ;;
13136	  *)
13137	    ;;
13138	esac
13139	;;
13140      netbsd* | netbsdelf*-gnu)
13141	;;
13142      osf3* | osf4* | osf5*)
13143	case $cc_basename in
13144	  KCC*)
13145	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13146	    ;;
13147	  RCC*)
13148	    # Rational C++ 2.4.1
13149	    lt_prog_compiler_pic_CXX='-pic'
13150	    ;;
13151	  cxx*)
13152	    # Digital/Compaq C++
13153	    lt_prog_compiler_wl_CXX='-Wl,'
13154	    # Make sure the PIC flag is empty.  It appears that all Alpha
13155	    # Linux and Compaq Tru64 Unix objects are PIC.
13156	    lt_prog_compiler_pic_CXX=
13157	    lt_prog_compiler_static_CXX='-non_shared'
13158	    ;;
13159	  *)
13160	    ;;
13161	esac
13162	;;
13163      psos*)
13164	;;
13165      solaris*)
13166	case $cc_basename in
13167	  CC*)
13168	    # Sun C++ 4.2, 5.x and Centerline C++
13169	    lt_prog_compiler_pic_CXX='-KPIC'
13170	    lt_prog_compiler_static_CXX='-Bstatic'
13171	    lt_prog_compiler_wl_CXX='-Qoption ld '
13172	    ;;
13173	  gcx*)
13174	    # Green Hills C++ Compiler
13175	    lt_prog_compiler_pic_CXX='-PIC'
13176	    ;;
13177	  *)
13178	    ;;
13179	esac
13180	;;
13181      sunos4*)
13182	case $cc_basename in
13183	  CC*)
13184	    # Sun C++ 4.x
13185	    lt_prog_compiler_pic_CXX='-pic'
13186	    lt_prog_compiler_static_CXX='-Bstatic'
13187	    ;;
13188	  lcc*)
13189	    # Lucid
13190	    lt_prog_compiler_pic_CXX='-pic'
13191	    ;;
13192	  *)
13193	    ;;
13194	esac
13195	;;
13196      tandem*)
13197	case $cc_basename in
13198	  NCC*)
13199	    # NonStop-UX NCC 3.20
13200	    lt_prog_compiler_pic_CXX='-KPIC'
13201	    ;;
13202	  *)
13203	    ;;
13204	esac
13205	;;
13206      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13207	case $cc_basename in
13208	  CC*)
13209	    lt_prog_compiler_wl_CXX='-Wl,'
13210	    lt_prog_compiler_pic_CXX='-KPIC'
13211	    lt_prog_compiler_static_CXX='-Bstatic'
13212	    ;;
13213	esac
13214	;;
13215      vxworks*)
13216	;;
13217      *)
13218	lt_prog_compiler_can_build_shared_CXX=no
13219	;;
13220    esac
13221  fi
13222
13223{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13224echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13225
13226#
13227# Check to make sure the PIC flag actually works.
13228#
13229if test -n "$lt_prog_compiler_pic_CXX"; then
13230
13231{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13232echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13233if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13234  echo $ECHO_N "(cached) $ECHO_C" >&6
13235else
13236  lt_prog_compiler_pic_works_CXX=no
13237  ac_outfile=conftest.$ac_objext
13238   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13239   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13240   # Insert the option either (1) after the last *FLAGS variable, or
13241   # (2) before a word containing "conftest.", or (3) at the end.
13242   # Note that $ac_compile itself does not contain backslashes and begins
13243   # with a dollar sign (not a hyphen), so the echo should work correctly.
13244   # The option is referenced via a variable to avoid confusing sed.
13245   lt_compile=`echo "$ac_compile" | $SED \
13246   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13247   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13248   -e 's:$: $lt_compiler_flag:'`
13249   (eval echo "\"\$as_me:13249: $lt_compile\"" >&5)
13250   (eval "$lt_compile" 2>conftest.err)
13251   ac_status=$?
13252   cat conftest.err >&5
13253   echo "$as_me:13253: \$? = $ac_status" >&5
13254   if (exit $ac_status) && test -s "$ac_outfile"; then
13255     # The compiler can only warn and ignore the option if not recognized
13256     # So say no if there are warnings other than the usual output.
13257     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13258     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13259     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13260       lt_prog_compiler_pic_works_CXX=yes
13261     fi
13262   fi
13263   $rm conftest*
13264
13265fi
13266{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13267echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13268
13269if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13270    case $lt_prog_compiler_pic_CXX in
13271     "" | " "*) ;;
13272     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13273     esac
13274else
13275    lt_prog_compiler_pic_CXX=
13276     lt_prog_compiler_can_build_shared_CXX=no
13277fi
13278
13279fi
13280case $host_os in
13281  # For platforms which do not support PIC, -DPIC is meaningless:
13282  *djgpp*)
13283    lt_prog_compiler_pic_CXX=
13284    ;;
13285  *)
13286    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13287    ;;
13288esac
13289
13290#
13291# Check to make sure the static flag actually works.
13292#
13293wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13294{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13295echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13296if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13297  echo $ECHO_N "(cached) $ECHO_C" >&6
13298else
13299  lt_prog_compiler_static_works_CXX=no
13300   save_LDFLAGS="$LDFLAGS"
13301   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13302   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13303   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13304     # The linker can only warn and ignore the option if not recognized
13305     # So say no if there are warnings
13306     if test -s conftest.err; then
13307       # Append any errors to the config.log.
13308       cat conftest.err 1>&5
13309       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13310       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13311       if diff conftest.exp conftest.er2 >/dev/null; then
13312         lt_prog_compiler_static_works_CXX=yes
13313       fi
13314     else
13315       lt_prog_compiler_static_works_CXX=yes
13316     fi
13317   fi
13318   $rm conftest*
13319   LDFLAGS="$save_LDFLAGS"
13320
13321fi
13322{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13323echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13324
13325if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13326    :
13327else
13328    lt_prog_compiler_static_CXX=
13329fi
13330
13331
13332{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13333echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13334if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13335  echo $ECHO_N "(cached) $ECHO_C" >&6
13336else
13337  lt_cv_prog_compiler_c_o_CXX=no
13338   $rm -r conftest 2>/dev/null
13339   mkdir conftest
13340   cd conftest
13341   mkdir out
13342   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13343
13344   lt_compiler_flag="-o out/conftest2.$ac_objext"
13345   # Insert the option either (1) after the last *FLAGS variable, or
13346   # (2) before a word containing "conftest.", or (3) at the end.
13347   # Note that $ac_compile itself does not contain backslashes and begins
13348   # with a dollar sign (not a hyphen), so the echo should work correctly.
13349   lt_compile=`echo "$ac_compile" | $SED \
13350   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13351   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13352   -e 's:$: $lt_compiler_flag:'`
13353   (eval echo "\"\$as_me:13353: $lt_compile\"" >&5)
13354   (eval "$lt_compile" 2>out/conftest.err)
13355   ac_status=$?
13356   cat out/conftest.err >&5
13357   echo "$as_me:13357: \$? = $ac_status" >&5
13358   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13359   then
13360     # The compiler can only warn and ignore the option if not recognized
13361     # So say no if there are warnings
13362     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13363     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13364     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13365       lt_cv_prog_compiler_c_o_CXX=yes
13366     fi
13367   fi
13368   chmod u+w . 2>&5
13369   $rm conftest*
13370   # SGI C++ compiler will create directory out/ii_files/ for
13371   # template instantiation
13372   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13373   $rm out/* && rmdir out
13374   cd ..
13375   rmdir conftest
13376   $rm conftest*
13377
13378fi
13379{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13380echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13381
13382
13383hard_links="nottested"
13384if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13385  # do not overwrite the value of need_locks provided by the user
13386  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13387echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13388  hard_links=yes
13389  $rm conftest*
13390  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13391  touch conftest.a
13392  ln conftest.a conftest.b 2>&5 || hard_links=no
13393  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13394  { echo "$as_me:$LINENO: result: $hard_links" >&5
13395echo "${ECHO_T}$hard_links" >&6; }
13396  if test "$hard_links" = no; then
13397    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13398echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13399    need_locks=warn
13400  fi
13401else
13402  need_locks=no
13403fi
13404
13405{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13406echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13407
13408  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13409  case $host_os in
13410  aix4* | aix5*)
13411    # If we're using GNU nm, then we don't want the "-C" option.
13412    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13413    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13414      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'
13415    else
13416      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'
13417    fi
13418    ;;
13419  pw32*)
13420    export_symbols_cmds_CXX="$ltdll_cmds"
13421  ;;
13422  cygwin* | mingw*)
13423    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'
13424  ;;
13425  linux* | k*bsd*-gnu)
13426    link_all_deplibs_CXX=no
13427  ;;
13428  *)
13429    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13430  ;;
13431  esac
13432
13433{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13434echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13435test "$ld_shlibs_CXX" = no && can_build_shared=no
13436
13437#
13438# Do we need to explicitly link libc?
13439#
13440case "x$archive_cmds_need_lc_CXX" in
13441x|xyes)
13442  # Assume -lc should be added
13443  archive_cmds_need_lc_CXX=yes
13444
13445  if test "$enable_shared" = yes && test "$GCC" = yes; then
13446    case $archive_cmds_CXX in
13447    *'~'*)
13448      # FIXME: we may have to deal with multi-command sequences.
13449      ;;
13450    '$CC '*)
13451      # Test whether the compiler implicitly links with -lc since on some
13452      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13453      # to ld, don't add -lc before -lgcc.
13454      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13455echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13456      $rm conftest*
13457      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13458
13459      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13460  (eval $ac_compile) 2>&5
13461  ac_status=$?
13462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463  (exit $ac_status); } 2>conftest.err; then
13464        soname=conftest
13465        lib=conftest
13466        libobjs=conftest.$ac_objext
13467        deplibs=
13468        wl=$lt_prog_compiler_wl_CXX
13469	pic_flag=$lt_prog_compiler_pic_CXX
13470        compiler_flags=-v
13471        linker_flags=-v
13472        verstring=
13473        output_objdir=.
13474        libname=conftest
13475        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13476        allow_undefined_flag_CXX=
13477        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13478  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13479  ac_status=$?
13480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481  (exit $ac_status); }
13482        then
13483	  archive_cmds_need_lc_CXX=no
13484        else
13485	  archive_cmds_need_lc_CXX=yes
13486        fi
13487        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13488      else
13489        cat conftest.err 1>&5
13490      fi
13491      $rm conftest*
13492      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13493echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13494      ;;
13495    esac
13496  fi
13497  ;;
13498esac
13499
13500{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13501echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13502library_names_spec=
13503libname_spec='lib$name'
13504soname_spec=
13505shrext_cmds=".so"
13506postinstall_cmds=
13507postuninstall_cmds=
13508finish_cmds=
13509finish_eval=
13510shlibpath_var=
13511shlibpath_overrides_runpath=unknown
13512version_type=none
13513dynamic_linker="$host_os ld.so"
13514sys_lib_dlsearch_path_spec="/lib /usr/lib"
13515if test "$GCC" = yes; then
13516  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13517  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13518    # if the path contains ";" then we assume it to be the separator
13519    # otherwise default to the standard path separator (i.e. ":") - it is
13520    # assumed that no part of a normal pathname contains ";" but that should
13521    # okay in the real world where ";" in dirpaths is itself problematic.
13522    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13523  else
13524    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13525  fi
13526else
13527  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13528fi
13529need_lib_prefix=unknown
13530hardcode_into_libs=no
13531
13532# when you set need_version to no, make sure it does not cause -set_version
13533# flags to be left without arguments
13534need_version=unknown
13535
13536case $host_os in
13537aix3*)
13538  version_type=linux
13539  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13540  shlibpath_var=LIBPATH
13541
13542  # AIX 3 has no versioning support, so we append a major version to the name.
13543  soname_spec='${libname}${release}${shared_ext}$major'
13544  ;;
13545
13546aix4* | aix5*)
13547  version_type=linux
13548  need_lib_prefix=no
13549  need_version=no
13550  hardcode_into_libs=yes
13551  if test "$host_cpu" = ia64; then
13552    # AIX 5 supports IA64
13553    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13554    shlibpath_var=LD_LIBRARY_PATH
13555  else
13556    # With GCC up to 2.95.x, collect2 would create an import file
13557    # for dependence libraries.  The import file would start with
13558    # the line `#! .'.  This would cause the generated library to
13559    # depend on `.', always an invalid library.  This was fixed in
13560    # development snapshots of GCC prior to 3.0.
13561    case $host_os in
13562      aix4 | aix4.[01] | aix4.[01].*)
13563      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13564	   echo ' yes '
13565	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13566	:
13567      else
13568	can_build_shared=no
13569      fi
13570      ;;
13571    esac
13572    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13573    # soname into executable. Probably we can add versioning support to
13574    # collect2, so additional links can be useful in future.
13575    if test "$aix_use_runtimelinking" = yes; then
13576      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13577      # instead of lib<name>.a to let people know that these are not
13578      # typical AIX shared libraries.
13579      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13580    else
13581      # We preserve .a as extension for shared libraries through AIX4.2
13582      # and later when we are not doing run time linking.
13583      library_names_spec='${libname}${release}.a $libname.a'
13584      soname_spec='${libname}${release}${shared_ext}$major'
13585    fi
13586    shlibpath_var=LIBPATH
13587  fi
13588  ;;
13589
13590amigaos*)
13591  library_names_spec='$libname.ixlibrary $libname.a'
13592  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13593  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'
13594  ;;
13595
13596beos*)
13597  library_names_spec='${libname}${shared_ext}'
13598  dynamic_linker="$host_os ld.so"
13599  shlibpath_var=LIBRARY_PATH
13600  ;;
13601
13602bsdi[45]*)
13603  version_type=linux
13604  need_version=no
13605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13606  soname_spec='${libname}${release}${shared_ext}$major'
13607  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13608  shlibpath_var=LD_LIBRARY_PATH
13609  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13610  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13611  # the default ld.so.conf also contains /usr/contrib/lib and
13612  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13613  # libtool to hard-code these into programs
13614  ;;
13615
13616cygwin* | mingw* | pw32*)
13617  version_type=windows
13618  shrext_cmds=".dll"
13619  need_version=no
13620  need_lib_prefix=no
13621
13622  case $GCC,$host_os in
13623  yes,cygwin* | yes,mingw* | yes,pw32*)
13624    library_names_spec='$libname.dll.a'
13625    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13626    postinstall_cmds='base_file=`basename \${file}`~
13627      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13628      dldir=$destdir/`dirname \$dlpath`~
13629      test -d \$dldir || mkdir -p \$dldir~
13630      $install_prog $dir/$dlname \$dldir/$dlname~
13631      chmod a+x \$dldir/$dlname'
13632    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13633      dlpath=$dir/\$dldll~
13634       $rm \$dlpath'
13635    shlibpath_overrides_runpath=yes
13636
13637    case $host_os in
13638    cygwin*)
13639      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13640      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13641      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13642      ;;
13643    mingw*)
13644      # MinGW DLLs use traditional 'lib' prefix
13645      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13646      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13647      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13648        # It is most probably a Windows format PATH printed by
13649        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13650        # path with ; separators, and with drive letters. We can handle the
13651        # drive letters (cygwin fileutils understands them), so leave them,
13652        # especially as we might pass files found there to a mingw objdump,
13653        # which wouldn't understand a cygwinified path. Ahh.
13654        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13655      else
13656        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13657      fi
13658      ;;
13659    pw32*)
13660      # pw32 DLLs use 'pw' prefix rather than 'lib'
13661      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13662      ;;
13663    esac
13664    ;;
13665
13666  *)
13667    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13668    ;;
13669  esac
13670  dynamic_linker='Win32 ld.exe'
13671  # FIXME: first we should search . and the directory the executable is in
13672  shlibpath_var=PATH
13673  ;;
13674
13675darwin* | rhapsody*)
13676  dynamic_linker="$host_os dyld"
13677  version_type=darwin
13678  need_lib_prefix=no
13679  need_version=no
13680  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13681  soname_spec='${libname}${release}${major}$shared_ext'
13682  shlibpath_overrides_runpath=yes
13683  shlibpath_var=DYLD_LIBRARY_PATH
13684  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13685  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13686  if test "$GCC" = yes; then
13687    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13688  else
13689    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13690  fi
13691  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13692  ;;
13693
13694dgux*)
13695  version_type=linux
13696  need_lib_prefix=no
13697  need_version=no
13698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13699  soname_spec='${libname}${release}${shared_ext}$major'
13700  shlibpath_var=LD_LIBRARY_PATH
13701  ;;
13702
13703freebsd1*)
13704  dynamic_linker=no
13705  ;;
13706
13707freebsd* | dragonfly*)
13708  # DragonFly does not have aout.  When/if they implement a new
13709  # versioning mechanism, adjust this.
13710  if test -x /usr/bin/objformat; then
13711    objformat=`/usr/bin/objformat`
13712  else
13713    case $host_os in
13714    freebsd[123]*) objformat=aout ;;
13715    *) objformat=elf ;;
13716    esac
13717  fi
13718  version_type=freebsd-$objformat
13719  case $version_type in
13720    freebsd-elf*)
13721      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13722      need_version=no
13723      need_lib_prefix=no
13724      ;;
13725    freebsd-*)
13726      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13727      need_version=yes
13728      ;;
13729  esac
13730  shlibpath_var=LD_LIBRARY_PATH
13731  case $host_os in
13732  freebsd2*)
13733    shlibpath_overrides_runpath=yes
13734    ;;
13735  freebsd3.[01]* | freebsdelf3.[01]*)
13736    shlibpath_overrides_runpath=yes
13737    hardcode_into_libs=yes
13738    ;;
13739  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13740  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13741    shlibpath_overrides_runpath=no
13742    hardcode_into_libs=yes
13743    ;;
13744  freebsd*) # from 4.6 on
13745    shlibpath_overrides_runpath=yes
13746    hardcode_into_libs=yes
13747    ;;
13748  esac
13749  ;;
13750
13751gnu*)
13752  version_type=linux
13753  need_lib_prefix=no
13754  need_version=no
13755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13756  soname_spec='${libname}${release}${shared_ext}$major'
13757  shlibpath_var=LD_LIBRARY_PATH
13758  hardcode_into_libs=yes
13759  ;;
13760
13761hpux9* | hpux10* | hpux11*)
13762  # Give a soname corresponding to the major version so that dld.sl refuses to
13763  # link against other versions.
13764  version_type=sunos
13765  need_lib_prefix=no
13766  need_version=no
13767  case $host_cpu in
13768  ia64*)
13769    shrext_cmds='.so'
13770    hardcode_into_libs=yes
13771    dynamic_linker="$host_os dld.so"
13772    shlibpath_var=LD_LIBRARY_PATH
13773    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13774    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13775    soname_spec='${libname}${release}${shared_ext}$major'
13776    if test "X$HPUX_IA64_MODE" = X32; then
13777      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13778    else
13779      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13780    fi
13781    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13782    ;;
13783   hppa*64*)
13784     shrext_cmds='.sl'
13785     hardcode_into_libs=yes
13786     dynamic_linker="$host_os dld.sl"
13787     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13788     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13789     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13790     soname_spec='${libname}${release}${shared_ext}$major'
13791     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13792     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13793     ;;
13794   *)
13795    shrext_cmds='.sl'
13796    dynamic_linker="$host_os dld.sl"
13797    shlibpath_var=SHLIB_PATH
13798    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13799    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13800    soname_spec='${libname}${release}${shared_ext}$major'
13801    ;;
13802  esac
13803  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13804  postinstall_cmds='chmod 555 $lib'
13805  ;;
13806
13807interix3*)
13808  version_type=linux
13809  need_lib_prefix=no
13810  need_version=no
13811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13812  soname_spec='${libname}${release}${shared_ext}$major'
13813  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13814  shlibpath_var=LD_LIBRARY_PATH
13815  shlibpath_overrides_runpath=no
13816  hardcode_into_libs=yes
13817  ;;
13818
13819irix5* | irix6* | nonstopux*)
13820  case $host_os in
13821    nonstopux*) version_type=nonstopux ;;
13822    *)
13823	if test "$lt_cv_prog_gnu_ld" = yes; then
13824		version_type=linux
13825	else
13826		version_type=irix
13827	fi ;;
13828  esac
13829  need_lib_prefix=no
13830  need_version=no
13831  soname_spec='${libname}${release}${shared_ext}$major'
13832  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13833  case $host_os in
13834  irix5* | nonstopux*)
13835    libsuff= shlibsuff=
13836    ;;
13837  *)
13838    case $LD in # libtool.m4 will add one of these switches to LD
13839    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13840      libsuff= shlibsuff= libmagic=32-bit;;
13841    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13842      libsuff=32 shlibsuff=N32 libmagic=N32;;
13843    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13844      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13845    *) libsuff= shlibsuff= libmagic=never-match;;
13846    esac
13847    ;;
13848  esac
13849  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13850  shlibpath_overrides_runpath=no
13851  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13852  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13853  hardcode_into_libs=yes
13854  ;;
13855
13856# No shared lib support for Linux oldld, aout, or coff.
13857linux*oldld* | linux*aout* | linux*coff*)
13858  dynamic_linker=no
13859  ;;
13860
13861# This must be Linux ELF.
13862linux* | k*bsd*-gnu)
13863  version_type=linux
13864  need_lib_prefix=no
13865  need_version=no
13866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13867  soname_spec='${libname}${release}${shared_ext}$major'
13868  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13869  shlibpath_var=LD_LIBRARY_PATH
13870  shlibpath_overrides_runpath=no
13871  # This implies no fast_install, which is unacceptable.
13872  # Some rework will be needed to allow for fast_install
13873  # before this can be enabled.
13874  hardcode_into_libs=yes
13875
13876  # Append ld.so.conf contents to the search path
13877  if test -f /etc/ld.so.conf; then
13878    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13879    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13880  fi
13881
13882  # We used to test for /lib/ld.so.1 and disable shared libraries on
13883  # powerpc, because MkLinux only supported shared libraries with the
13884  # GNU dynamic linker.  Since this was broken with cross compilers,
13885  # most powerpc-linux boxes support dynamic linking these days and
13886  # people can always --disable-shared, the test was removed, and we
13887  # assume the GNU/Linux dynamic linker is in use.
13888  dynamic_linker='GNU/Linux ld.so'
13889  ;;
13890
13891netbsdelf*-gnu)
13892  version_type=linux
13893  need_lib_prefix=no
13894  need_version=no
13895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13896  soname_spec='${libname}${release}${shared_ext}$major'
13897  shlibpath_var=LD_LIBRARY_PATH
13898  shlibpath_overrides_runpath=no
13899  hardcode_into_libs=yes
13900  dynamic_linker='NetBSD ld.elf_so'
13901  ;;
13902
13903netbsd*)
13904  version_type=sunos
13905  need_lib_prefix=no
13906  need_version=no
13907  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13908    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13909    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13910    dynamic_linker='NetBSD (a.out) ld.so'
13911  else
13912    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13913    soname_spec='${libname}${release}${shared_ext}$major'
13914    dynamic_linker='NetBSD ld.elf_so'
13915  fi
13916  shlibpath_var=LD_LIBRARY_PATH
13917  shlibpath_overrides_runpath=yes
13918  hardcode_into_libs=yes
13919  ;;
13920
13921newsos6)
13922  version_type=linux
13923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13924  shlibpath_var=LD_LIBRARY_PATH
13925  shlibpath_overrides_runpath=yes
13926  ;;
13927
13928nto-qnx*)
13929  version_type=linux
13930  need_lib_prefix=no
13931  need_version=no
13932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13933  soname_spec='${libname}${release}${shared_ext}$major'
13934  shlibpath_var=LD_LIBRARY_PATH
13935  shlibpath_overrides_runpath=yes
13936  ;;
13937
13938openbsd*)
13939  version_type=sunos
13940  sys_lib_dlsearch_path_spec="/usr/lib"
13941  need_lib_prefix=no
13942  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13943  case $host_os in
13944    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13945    *)                         need_version=no  ;;
13946  esac
13947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13948  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13949  shlibpath_var=LD_LIBRARY_PATH
13950  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13951    case $host_os in
13952      openbsd2.[89] | openbsd2.[89].*)
13953	shlibpath_overrides_runpath=no
13954	;;
13955      *)
13956	shlibpath_overrides_runpath=yes
13957	;;
13958      esac
13959  else
13960    shlibpath_overrides_runpath=yes
13961  fi
13962  ;;
13963
13964os2*)
13965  libname_spec='$name'
13966  shrext_cmds=".dll"
13967  need_lib_prefix=no
13968  library_names_spec='$libname${shared_ext} $libname.a'
13969  dynamic_linker='OS/2 ld.exe'
13970  shlibpath_var=LIBPATH
13971  ;;
13972
13973osf3* | osf4* | osf5*)
13974  version_type=osf
13975  need_lib_prefix=no
13976  need_version=no
13977  soname_spec='${libname}${release}${shared_ext}$major'
13978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13979  shlibpath_var=LD_LIBRARY_PATH
13980  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13981  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13982  ;;
13983
13984solaris*)
13985  version_type=linux
13986  need_lib_prefix=no
13987  need_version=no
13988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13989  soname_spec='${libname}${release}${shared_ext}$major'
13990  shlibpath_var=LD_LIBRARY_PATH
13991  shlibpath_overrides_runpath=yes
13992  hardcode_into_libs=yes
13993  # ldd complains unless libraries are executable
13994  postinstall_cmds='chmod +x $lib'
13995  ;;
13996
13997sunos4*)
13998  version_type=sunos
13999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14000  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14001  shlibpath_var=LD_LIBRARY_PATH
14002  shlibpath_overrides_runpath=yes
14003  if test "$with_gnu_ld" = yes; then
14004    need_lib_prefix=no
14005  fi
14006  need_version=yes
14007  ;;
14008
14009sysv4 | sysv4.3*)
14010  version_type=linux
14011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14012  soname_spec='${libname}${release}${shared_ext}$major'
14013  shlibpath_var=LD_LIBRARY_PATH
14014  case $host_vendor in
14015    sni)
14016      shlibpath_overrides_runpath=no
14017      need_lib_prefix=no
14018      export_dynamic_flag_spec='${wl}-Blargedynsym'
14019      runpath_var=LD_RUN_PATH
14020      ;;
14021    siemens)
14022      need_lib_prefix=no
14023      ;;
14024    motorola)
14025      need_lib_prefix=no
14026      need_version=no
14027      shlibpath_overrides_runpath=no
14028      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14029      ;;
14030  esac
14031  ;;
14032
14033sysv4*MP*)
14034  if test -d /usr/nec ;then
14035    version_type=linux
14036    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14037    soname_spec='$libname${shared_ext}.$major'
14038    shlibpath_var=LD_LIBRARY_PATH
14039  fi
14040  ;;
14041
14042sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14043  version_type=freebsd-elf
14044  need_lib_prefix=no
14045  need_version=no
14046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14047  soname_spec='${libname}${release}${shared_ext}$major'
14048  shlibpath_var=LD_LIBRARY_PATH
14049  hardcode_into_libs=yes
14050  if test "$with_gnu_ld" = yes; then
14051    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14052    shlibpath_overrides_runpath=no
14053  else
14054    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14055    shlibpath_overrides_runpath=yes
14056    case $host_os in
14057      sco3.2v5*)
14058        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14059	;;
14060    esac
14061  fi
14062  sys_lib_dlsearch_path_spec='/usr/lib'
14063  ;;
14064
14065uts4*)
14066  version_type=linux
14067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068  soname_spec='${libname}${release}${shared_ext}$major'
14069  shlibpath_var=LD_LIBRARY_PATH
14070  ;;
14071
14072*)
14073  dynamic_linker=no
14074  ;;
14075esac
14076{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14077echo "${ECHO_T}$dynamic_linker" >&6; }
14078test "$dynamic_linker" = no && can_build_shared=no
14079
14080variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14081if test "$GCC" = yes; then
14082  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14083fi
14084
14085{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14086echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14087hardcode_action_CXX=
14088if test -n "$hardcode_libdir_flag_spec_CXX" || \
14089   test -n "$runpath_var_CXX" || \
14090   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14091
14092  # We can hardcode non-existant directories.
14093  if test "$hardcode_direct_CXX" != no &&
14094     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14095     # have to relink, otherwise we might link with an installed library
14096     # when we should be linking with a yet-to-be-installed one
14097     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14098     test "$hardcode_minus_L_CXX" != no; then
14099    # Linking always hardcodes the temporary library directory.
14100    hardcode_action_CXX=relink
14101  else
14102    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14103    hardcode_action_CXX=immediate
14104  fi
14105else
14106  # We cannot hardcode anything, or else we can only hardcode existing
14107  # directories.
14108  hardcode_action_CXX=unsupported
14109fi
14110{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14111echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14112
14113if test "$hardcode_action_CXX" = relink; then
14114  # Fast installation is not supported
14115  enable_fast_install=no
14116elif test "$shlibpath_overrides_runpath" = yes ||
14117     test "$enable_shared" = no; then
14118  # Fast installation is not necessary
14119  enable_fast_install=needless
14120fi
14121
14122
14123# The else clause should only fire when bootstrapping the
14124# libtool distribution, otherwise you forgot to ship ltmain.sh
14125# with your package, and you will get complaints that there are
14126# no rules to generate ltmain.sh.
14127if test -f "$ltmain"; then
14128  # See if we are running on zsh, and set the options which allow our commands through
14129  # without removal of \ escapes.
14130  if test -n "${ZSH_VERSION+set}" ; then
14131    setopt NO_GLOB_SUBST
14132  fi
14133  # Now quote all the things that may contain metacharacters while being
14134  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14135  # variables and quote the copies for generation of the libtool script.
14136  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14137    SED SHELL STRIP \
14138    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14139    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14140    deplibs_check_method reload_flag reload_cmds need_locks \
14141    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14142    lt_cv_sys_global_symbol_to_c_name_address \
14143    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14144    old_postinstall_cmds old_postuninstall_cmds \
14145    compiler_CXX \
14146    CC_CXX \
14147    LD_CXX \
14148    lt_prog_compiler_wl_CXX \
14149    lt_prog_compiler_pic_CXX \
14150    lt_prog_compiler_static_CXX \
14151    lt_prog_compiler_no_builtin_flag_CXX \
14152    export_dynamic_flag_spec_CXX \
14153    thread_safe_flag_spec_CXX \
14154    whole_archive_flag_spec_CXX \
14155    enable_shared_with_static_runtimes_CXX \
14156    old_archive_cmds_CXX \
14157    old_archive_from_new_cmds_CXX \
14158    predep_objects_CXX \
14159    postdep_objects_CXX \
14160    predeps_CXX \
14161    postdeps_CXX \
14162    compiler_lib_search_path_CXX \
14163    archive_cmds_CXX \
14164    archive_expsym_cmds_CXX \
14165    postinstall_cmds_CXX \
14166    postuninstall_cmds_CXX \
14167    old_archive_from_expsyms_cmds_CXX \
14168    allow_undefined_flag_CXX \
14169    no_undefined_flag_CXX \
14170    export_symbols_cmds_CXX \
14171    hardcode_libdir_flag_spec_CXX \
14172    hardcode_libdir_flag_spec_ld_CXX \
14173    hardcode_libdir_separator_CXX \
14174    hardcode_automatic_CXX \
14175    module_cmds_CXX \
14176    module_expsym_cmds_CXX \
14177    lt_cv_prog_compiler_c_o_CXX \
14178    exclude_expsyms_CXX \
14179    include_expsyms_CXX; do
14180
14181    case $var in
14182    old_archive_cmds_CXX | \
14183    old_archive_from_new_cmds_CXX | \
14184    archive_cmds_CXX | \
14185    archive_expsym_cmds_CXX | \
14186    module_cmds_CXX | \
14187    module_expsym_cmds_CXX | \
14188    old_archive_from_expsyms_cmds_CXX | \
14189    export_symbols_cmds_CXX | \
14190    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14191    postinstall_cmds | postuninstall_cmds | \
14192    old_postinstall_cmds | old_postuninstall_cmds | \
14193    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14194      # Double-quote double-evaled strings.
14195      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14196      ;;
14197    *)
14198      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14199      ;;
14200    esac
14201  done
14202
14203  case $lt_echo in
14204  *'\$0 --fallback-echo"')
14205    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14206    ;;
14207  esac
14208
14209cfgfile="$ofile"
14210
14211  cat <<__EOF__ >> "$cfgfile"
14212# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14213
14214# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14215
14216# Shell to use when invoking shell scripts.
14217SHELL=$lt_SHELL
14218
14219# Whether or not to build shared libraries.
14220build_libtool_libs=$enable_shared
14221
14222# Whether or not to build static libraries.
14223build_old_libs=$enable_static
14224
14225# Whether or not to add -lc for building shared libraries.
14226build_libtool_need_lc=$archive_cmds_need_lc_CXX
14227
14228# Whether or not to disallow shared libs when runtime libs are static
14229allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14230
14231# Whether or not to optimize for fast installation.
14232fast_install=$enable_fast_install
14233
14234# The host system.
14235host_alias=$host_alias
14236host=$host
14237host_os=$host_os
14238
14239# The build system.
14240build_alias=$build_alias
14241build=$build
14242build_os=$build_os
14243
14244# An echo program that does not interpret backslashes.
14245echo=$lt_echo
14246
14247# The archiver.
14248AR=$lt_AR
14249AR_FLAGS=$lt_AR_FLAGS
14250
14251# A C compiler.
14252LTCC=$lt_LTCC
14253
14254# LTCC compiler flags.
14255LTCFLAGS=$lt_LTCFLAGS
14256
14257# A language-specific compiler.
14258CC=$lt_compiler_CXX
14259
14260# Is the compiler the GNU C compiler?
14261with_gcc=$GCC_CXX
14262
14263# An ERE matcher.
14264EGREP=$lt_EGREP
14265
14266# The linker used to build libraries.
14267LD=$lt_LD_CXX
14268
14269# Whether we need hard or soft links.
14270LN_S=$lt_LN_S
14271
14272# A BSD-compatible nm program.
14273NM=$lt_NM
14274
14275# A symbol stripping program
14276STRIP=$lt_STRIP
14277
14278# Used to examine libraries when file_magic_cmd begins "file"
14279MAGIC_CMD=$MAGIC_CMD
14280
14281# Used on cygwin: DLL creation program.
14282DLLTOOL="$DLLTOOL"
14283
14284# Used on cygwin: object dumper.
14285OBJDUMP="$OBJDUMP"
14286
14287# Used on cygwin: assembler.
14288AS="$AS"
14289
14290# The name of the directory that contains temporary libtool files.
14291objdir=$objdir
14292
14293# How to create reloadable object files.
14294reload_flag=$lt_reload_flag
14295reload_cmds=$lt_reload_cmds
14296
14297# How to pass a linker flag through the compiler.
14298wl=$lt_lt_prog_compiler_wl_CXX
14299
14300# Object file suffix (normally "o").
14301objext="$ac_objext"
14302
14303# Old archive suffix (normally "a").
14304libext="$libext"
14305
14306# Shared library suffix (normally ".so").
14307shrext_cmds='$shrext_cmds'
14308
14309# Executable file suffix (normally "").
14310exeext="$exeext"
14311
14312# Additional compiler flags for building library objects.
14313pic_flag=$lt_lt_prog_compiler_pic_CXX
14314pic_mode=$pic_mode
14315
14316# What is the maximum length of a command?
14317max_cmd_len=$lt_cv_sys_max_cmd_len
14318
14319# Does compiler simultaneously support -c and -o options?
14320compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14321
14322# Must we lock files when doing compilation?
14323need_locks=$lt_need_locks
14324
14325# Do we need the lib prefix for modules?
14326need_lib_prefix=$need_lib_prefix
14327
14328# Do we need a version for libraries?
14329need_version=$need_version
14330
14331# Whether dlopen is supported.
14332dlopen_support=$enable_dlopen
14333
14334# Whether dlopen of programs is supported.
14335dlopen_self=$enable_dlopen_self
14336
14337# Whether dlopen of statically linked programs is supported.
14338dlopen_self_static=$enable_dlopen_self_static
14339
14340# Compiler flag to prevent dynamic linking.
14341link_static_flag=$lt_lt_prog_compiler_static_CXX
14342
14343# Compiler flag to turn off builtin functions.
14344no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14345
14346# Compiler flag to allow reflexive dlopens.
14347export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14348
14349# Compiler flag to generate shared objects directly from archives.
14350whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14351
14352# Compiler flag to generate thread-safe objects.
14353thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14354
14355# Library versioning type.
14356version_type=$version_type
14357
14358# Format of library name prefix.
14359libname_spec=$lt_libname_spec
14360
14361# List of archive names.  First name is the real one, the rest are links.
14362# The last name is the one that the linker finds with -lNAME.
14363library_names_spec=$lt_library_names_spec
14364
14365# The coded name of the library, if different from the real name.
14366soname_spec=$lt_soname_spec
14367
14368# Commands used to build and install an old-style archive.
14369RANLIB=$lt_RANLIB
14370old_archive_cmds=$lt_old_archive_cmds_CXX
14371old_postinstall_cmds=$lt_old_postinstall_cmds
14372old_postuninstall_cmds=$lt_old_postuninstall_cmds
14373
14374# Create an old-style archive from a shared archive.
14375old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14376
14377# Create a temporary old-style archive to link instead of a shared archive.
14378old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14379
14380# Commands used to build and install a shared archive.
14381archive_cmds=$lt_archive_cmds_CXX
14382archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14383postinstall_cmds=$lt_postinstall_cmds
14384postuninstall_cmds=$lt_postuninstall_cmds
14385
14386# Commands used to build a loadable module (assumed same as above if empty)
14387module_cmds=$lt_module_cmds_CXX
14388module_expsym_cmds=$lt_module_expsym_cmds_CXX
14389
14390# Commands to strip libraries.
14391old_striplib=$lt_old_striplib
14392striplib=$lt_striplib
14393
14394# Dependencies to place before the objects being linked to create a
14395# shared library.
14396predep_objects=$lt_predep_objects_CXX
14397
14398# Dependencies to place after the objects being linked to create a
14399# shared library.
14400postdep_objects=$lt_postdep_objects_CXX
14401
14402# Dependencies to place before the objects being linked to create a
14403# shared library.
14404predeps=$lt_predeps_CXX
14405
14406# Dependencies to place after the objects being linked to create a
14407# shared library.
14408postdeps=$lt_postdeps_CXX
14409
14410# The library search path used internally by the compiler when linking
14411# a shared library.
14412compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14413
14414# Method to check whether dependent libraries are shared objects.
14415deplibs_check_method=$lt_deplibs_check_method
14416
14417# Command to use when deplibs_check_method == file_magic.
14418file_magic_cmd=$lt_file_magic_cmd
14419
14420# Flag that allows shared libraries with undefined symbols to be built.
14421allow_undefined_flag=$lt_allow_undefined_flag_CXX
14422
14423# Flag that forces no undefined symbols.
14424no_undefined_flag=$lt_no_undefined_flag_CXX
14425
14426# Commands used to finish a libtool library installation in a directory.
14427finish_cmds=$lt_finish_cmds
14428
14429# Same as above, but a single script fragment to be evaled but not shown.
14430finish_eval=$lt_finish_eval
14431
14432# Take the output of nm and produce a listing of raw symbols and C names.
14433global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14434
14435# Transform the output of nm in a proper C declaration
14436global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14437
14438# Transform the output of nm in a C name address pair
14439global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14440
14441# This is the shared library runtime path variable.
14442runpath_var=$runpath_var
14443
14444# This is the shared library path variable.
14445shlibpath_var=$shlibpath_var
14446
14447# Is shlibpath searched before the hard-coded library search path?
14448shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14449
14450# How to hardcode a shared library path into an executable.
14451hardcode_action=$hardcode_action_CXX
14452
14453# Whether we should hardcode library paths into libraries.
14454hardcode_into_libs=$hardcode_into_libs
14455
14456# Flag to hardcode \$libdir into a binary during linking.
14457# This must work even if \$libdir does not exist.
14458hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14459
14460# If ld is used when linking, flag to hardcode \$libdir into
14461# a binary during linking. This must work even if \$libdir does
14462# not exist.
14463hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14464
14465# Whether we need a single -rpath flag with a separated argument.
14466hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14467
14468# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14469# resulting binary.
14470hardcode_direct=$hardcode_direct_CXX
14471
14472# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14473# resulting binary.
14474hardcode_minus_L=$hardcode_minus_L_CXX
14475
14476# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14477# the resulting binary.
14478hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14479
14480# Set to yes if building a shared library automatically hardcodes DIR into the library
14481# and all subsequent libraries and executables linked against it.
14482hardcode_automatic=$hardcode_automatic_CXX
14483
14484# Variables whose values should be saved in libtool wrapper scripts and
14485# restored at relink time.
14486variables_saved_for_relink="$variables_saved_for_relink"
14487
14488# Whether libtool must link a program against all its dependency libraries.
14489link_all_deplibs=$link_all_deplibs_CXX
14490
14491# Compile-time system search path for libraries
14492sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14493
14494# Run-time system search path for libraries
14495sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14496
14497# Fix the shell variable \$srcfile for the compiler.
14498fix_srcfile_path="$fix_srcfile_path_CXX"
14499
14500# Set to yes if exported symbols are required.
14501always_export_symbols=$always_export_symbols_CXX
14502
14503# The commands to list exported symbols.
14504export_symbols_cmds=$lt_export_symbols_cmds_CXX
14505
14506# The commands to extract the exported symbol list from a shared archive.
14507extract_expsyms_cmds=$lt_extract_expsyms_cmds
14508
14509# Symbols that should not be listed in the preloaded symbols.
14510exclude_expsyms=$lt_exclude_expsyms_CXX
14511
14512# Symbols that must always be exported.
14513include_expsyms=$lt_include_expsyms_CXX
14514
14515# ### END LIBTOOL TAG CONFIG: $tagname
14516
14517__EOF__
14518
14519
14520else
14521  # If there is no Makefile yet, we rely on a make rule to execute
14522  # `config.status --recheck' to rerun these tests and create the
14523  # libtool script then.
14524  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14525  if test -f "$ltmain_in"; then
14526    test -f Makefile && make "$ltmain"
14527  fi
14528fi
14529
14530
14531ac_ext=c
14532ac_cpp='$CPP $CPPFLAGS'
14533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14535ac_compiler_gnu=$ac_cv_c_compiler_gnu
14536
14537CC=$lt_save_CC
14538LDCXX=$LD
14539LD=$lt_save_LD
14540GCC=$lt_save_GCC
14541with_gnu_ldcxx=$with_gnu_ld
14542with_gnu_ld=$lt_save_with_gnu_ld
14543lt_cv_path_LDCXX=$lt_cv_path_LD
14544lt_cv_path_LD=$lt_save_path_LD
14545lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14546lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14547
14548	else
14549	  tagname=""
14550	fi
14551	;;
14552
14553      F77)
14554	if test -n "$F77" && test "X$F77" != "Xno"; then
14555
14556ac_ext=f
14557ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14558ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14559ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14560
14561
14562archive_cmds_need_lc_F77=no
14563allow_undefined_flag_F77=
14564always_export_symbols_F77=no
14565archive_expsym_cmds_F77=
14566export_dynamic_flag_spec_F77=
14567hardcode_direct_F77=no
14568hardcode_libdir_flag_spec_F77=
14569hardcode_libdir_flag_spec_ld_F77=
14570hardcode_libdir_separator_F77=
14571hardcode_minus_L_F77=no
14572hardcode_automatic_F77=no
14573module_cmds_F77=
14574module_expsym_cmds_F77=
14575link_all_deplibs_F77=unknown
14576old_archive_cmds_F77=$old_archive_cmds
14577no_undefined_flag_F77=
14578whole_archive_flag_spec_F77=
14579enable_shared_with_static_runtimes_F77=no
14580
14581# Source file extension for f77 test sources.
14582ac_ext=f
14583
14584# Object file extension for compiled f77 test sources.
14585objext=o
14586objext_F77=$objext
14587
14588# Code to be used in simple compile tests
14589lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14590
14591# Code to be used in simple link tests
14592lt_simple_link_test_code="      program t\n      end\n"
14593
14594# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14595
14596# If no C compiler was specified, use CC.
14597LTCC=${LTCC-"$CC"}
14598
14599# If no C compiler flags were specified, use CFLAGS.
14600LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14601
14602# Allow CC to be a program name with arguments.
14603compiler=$CC
14604
14605
14606# save warnings/boilerplate of simple test code
14607ac_outfile=conftest.$ac_objext
14608printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14609eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14610_lt_compiler_boilerplate=`cat conftest.err`
14611$rm conftest*
14612
14613ac_outfile=conftest.$ac_objext
14614printf "$lt_simple_link_test_code" >conftest.$ac_ext
14615eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14616_lt_linker_boilerplate=`cat conftest.err`
14617$rm conftest*
14618
14619
14620# Allow CC to be a program name with arguments.
14621lt_save_CC="$CC"
14622CC=${F77-"f77"}
14623compiler=$CC
14624compiler_F77=$CC
14625for cc_temp in $compiler""; do
14626  case $cc_temp in
14627    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14628    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14629    \-*) ;;
14630    *) break;;
14631  esac
14632done
14633cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14634
14635
14636{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14637echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14638{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14639echo "${ECHO_T}$can_build_shared" >&6; }
14640
14641{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14642echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14643test "$can_build_shared" = "no" && enable_shared=no
14644
14645# On AIX, shared libraries and static libraries use the same namespace, and
14646# are all built from PIC.
14647case $host_os in
14648aix3*)
14649  test "$enable_shared" = yes && enable_static=no
14650  if test -n "$RANLIB"; then
14651    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14652    postinstall_cmds='$RANLIB $lib'
14653  fi
14654  ;;
14655aix4* | aix5*)
14656  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14657    test "$enable_shared" = yes && enable_static=no
14658  fi
14659  ;;
14660esac
14661{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14662echo "${ECHO_T}$enable_shared" >&6; }
14663
14664{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14665echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14666# Make sure either enable_shared or enable_static is yes.
14667test "$enable_shared" = yes || enable_static=yes
14668{ echo "$as_me:$LINENO: result: $enable_static" >&5
14669echo "${ECHO_T}$enable_static" >&6; }
14670
14671GCC_F77="$G77"
14672LD_F77="$LD"
14673
14674lt_prog_compiler_wl_F77=
14675lt_prog_compiler_pic_F77=
14676lt_prog_compiler_static_F77=
14677
14678{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14679echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14680
14681  if test "$GCC" = yes; then
14682    lt_prog_compiler_wl_F77='-Wl,'
14683    lt_prog_compiler_static_F77='-static'
14684
14685    case $host_os in
14686      aix*)
14687      # All AIX code is PIC.
14688      if test "$host_cpu" = ia64; then
14689	# AIX 5 now supports IA64 processor
14690	lt_prog_compiler_static_F77='-Bstatic'
14691      fi
14692      ;;
14693
14694    amigaos*)
14695      # FIXME: we need at least 68020 code to build shared libraries, but
14696      # adding the `-m68020' flag to GCC prevents building anything better,
14697      # like `-m68040'.
14698      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14699      ;;
14700
14701    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14702      # PIC is the default for these OSes.
14703      ;;
14704
14705    mingw* | pw32* | os2*)
14706      # This hack is so that the source file can tell whether it is being
14707      # built for inclusion in a dll (and should export symbols for example).
14708      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14709      ;;
14710
14711    darwin* | rhapsody*)
14712      # PIC is the default on this platform
14713      # Common symbols not allowed in MH_DYLIB files
14714      lt_prog_compiler_pic_F77='-fno-common'
14715      ;;
14716
14717    interix3*)
14718      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14719      # Instead, we relocate shared libraries at runtime.
14720      ;;
14721
14722    msdosdjgpp*)
14723      # Just because we use GCC doesn't mean we suddenly get shared libraries
14724      # on systems that don't support them.
14725      lt_prog_compiler_can_build_shared_F77=no
14726      enable_shared=no
14727      ;;
14728
14729    sysv4*MP*)
14730      if test -d /usr/nec; then
14731	lt_prog_compiler_pic_F77=-Kconform_pic
14732      fi
14733      ;;
14734
14735    hpux*)
14736      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14737      # not for PA HP-UX.
14738      case $host_cpu in
14739      hppa*64*|ia64*)
14740	# +Z the default
14741	;;
14742      *)
14743	lt_prog_compiler_pic_F77='-fPIC'
14744	;;
14745      esac
14746      ;;
14747
14748    *)
14749      lt_prog_compiler_pic_F77='-fPIC'
14750      ;;
14751    esac
14752  else
14753    # PORTME Check for flag to pass linker flags through the system compiler.
14754    case $host_os in
14755    aix*)
14756      lt_prog_compiler_wl_F77='-Wl,'
14757      if test "$host_cpu" = ia64; then
14758	# AIX 5 now supports IA64 processor
14759	lt_prog_compiler_static_F77='-Bstatic'
14760      else
14761	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14762      fi
14763      ;;
14764      darwin*)
14765        # PIC is the default on this platform
14766        # Common symbols not allowed in MH_DYLIB files
14767       case $cc_basename in
14768         xlc*)
14769         lt_prog_compiler_pic_F77='-qnocommon'
14770         lt_prog_compiler_wl_F77='-Wl,'
14771         ;;
14772       esac
14773       ;;
14774
14775    mingw* | pw32* | os2*)
14776      # This hack is so that the source file can tell whether it is being
14777      # built for inclusion in a dll (and should export symbols for example).
14778      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14779      ;;
14780
14781    hpux9* | hpux10* | hpux11*)
14782      lt_prog_compiler_wl_F77='-Wl,'
14783      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14784      # not for PA HP-UX.
14785      case $host_cpu in
14786      hppa*64*|ia64*)
14787	# +Z the default
14788	;;
14789      *)
14790	lt_prog_compiler_pic_F77='+Z'
14791	;;
14792      esac
14793      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14794      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14795      ;;
14796
14797    irix5* | irix6* | nonstopux*)
14798      lt_prog_compiler_wl_F77='-Wl,'
14799      # PIC (with -KPIC) is the default.
14800      lt_prog_compiler_static_F77='-non_shared'
14801      ;;
14802
14803    newsos6)
14804      lt_prog_compiler_pic_F77='-KPIC'
14805      lt_prog_compiler_static_F77='-Bstatic'
14806      ;;
14807
14808    linux* | k*bsd*-gnu)
14809      case $cc_basename in
14810      icc* | ecc*)
14811	lt_prog_compiler_wl_F77='-Wl,'
14812	lt_prog_compiler_pic_F77='-KPIC'
14813	lt_prog_compiler_static_F77='-static'
14814        ;;
14815      pgcc* | pgf77* | pgf90* | pgf95*)
14816        # Portland Group compilers (*not* the Pentium gcc compiler,
14817	# which looks to be a dead project)
14818	lt_prog_compiler_wl_F77='-Wl,'
14819	lt_prog_compiler_pic_F77='-fpic'
14820	lt_prog_compiler_static_F77='-Bstatic'
14821        ;;
14822      ccc*)
14823        lt_prog_compiler_wl_F77='-Wl,'
14824        # All Alpha code is PIC.
14825        lt_prog_compiler_static_F77='-non_shared'
14826        ;;
14827      esac
14828      ;;
14829
14830    osf3* | osf4* | osf5*)
14831      lt_prog_compiler_wl_F77='-Wl,'
14832      # All OSF/1 code is PIC.
14833      lt_prog_compiler_static_F77='-non_shared'
14834      ;;
14835
14836    solaris*)
14837      lt_prog_compiler_pic_F77='-KPIC'
14838      lt_prog_compiler_static_F77='-Bstatic'
14839      case $cc_basename in
14840      f77* | f90* | f95*)
14841	lt_prog_compiler_wl_F77='-Qoption ld ';;
14842      *)
14843	lt_prog_compiler_wl_F77='-Wl,';;
14844      esac
14845      ;;
14846
14847    sunos4*)
14848      lt_prog_compiler_wl_F77='-Qoption ld '
14849      lt_prog_compiler_pic_F77='-PIC'
14850      lt_prog_compiler_static_F77='-Bstatic'
14851      ;;
14852
14853    sysv4 | sysv4.2uw2* | sysv4.3*)
14854      lt_prog_compiler_wl_F77='-Wl,'
14855      lt_prog_compiler_pic_F77='-KPIC'
14856      lt_prog_compiler_static_F77='-Bstatic'
14857      ;;
14858
14859    sysv4*MP*)
14860      if test -d /usr/nec ;then
14861	lt_prog_compiler_pic_F77='-Kconform_pic'
14862	lt_prog_compiler_static_F77='-Bstatic'
14863      fi
14864      ;;
14865
14866    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14867      lt_prog_compiler_wl_F77='-Wl,'
14868      lt_prog_compiler_pic_F77='-KPIC'
14869      lt_prog_compiler_static_F77='-Bstatic'
14870      ;;
14871
14872    unicos*)
14873      lt_prog_compiler_wl_F77='-Wl,'
14874      lt_prog_compiler_can_build_shared_F77=no
14875      ;;
14876
14877    uts4*)
14878      lt_prog_compiler_pic_F77='-pic'
14879      lt_prog_compiler_static_F77='-Bstatic'
14880      ;;
14881
14882    *)
14883      lt_prog_compiler_can_build_shared_F77=no
14884      ;;
14885    esac
14886  fi
14887
14888{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14889echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14890
14891#
14892# Check to make sure the PIC flag actually works.
14893#
14894if test -n "$lt_prog_compiler_pic_F77"; then
14895
14896{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14897echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14898if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14899  echo $ECHO_N "(cached) $ECHO_C" >&6
14900else
14901  lt_prog_compiler_pic_works_F77=no
14902  ac_outfile=conftest.$ac_objext
14903   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14904   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14905   # Insert the option either (1) after the last *FLAGS variable, or
14906   # (2) before a word containing "conftest.", or (3) at the end.
14907   # Note that $ac_compile itself does not contain backslashes and begins
14908   # with a dollar sign (not a hyphen), so the echo should work correctly.
14909   # The option is referenced via a variable to avoid confusing sed.
14910   lt_compile=`echo "$ac_compile" | $SED \
14911   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14912   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14913   -e 's:$: $lt_compiler_flag:'`
14914   (eval echo "\"\$as_me:14914: $lt_compile\"" >&5)
14915   (eval "$lt_compile" 2>conftest.err)
14916   ac_status=$?
14917   cat conftest.err >&5
14918   echo "$as_me:14918: \$? = $ac_status" >&5
14919   if (exit $ac_status) && test -s "$ac_outfile"; then
14920     # The compiler can only warn and ignore the option if not recognized
14921     # So say no if there are warnings other than the usual output.
14922     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14923     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14924     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14925       lt_prog_compiler_pic_works_F77=yes
14926     fi
14927   fi
14928   $rm conftest*
14929
14930fi
14931{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14932echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14933
14934if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14935    case $lt_prog_compiler_pic_F77 in
14936     "" | " "*) ;;
14937     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14938     esac
14939else
14940    lt_prog_compiler_pic_F77=
14941     lt_prog_compiler_can_build_shared_F77=no
14942fi
14943
14944fi
14945case $host_os in
14946  # For platforms which do not support PIC, -DPIC is meaningless:
14947  *djgpp*)
14948    lt_prog_compiler_pic_F77=
14949    ;;
14950  *)
14951    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14952    ;;
14953esac
14954
14955#
14956# Check to make sure the static flag actually works.
14957#
14958wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14959{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14960echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14961if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14962  echo $ECHO_N "(cached) $ECHO_C" >&6
14963else
14964  lt_prog_compiler_static_works_F77=no
14965   save_LDFLAGS="$LDFLAGS"
14966   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14967   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14968   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14969     # The linker can only warn and ignore the option if not recognized
14970     # So say no if there are warnings
14971     if test -s conftest.err; then
14972       # Append any errors to the config.log.
14973       cat conftest.err 1>&5
14974       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14975       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14976       if diff conftest.exp conftest.er2 >/dev/null; then
14977         lt_prog_compiler_static_works_F77=yes
14978       fi
14979     else
14980       lt_prog_compiler_static_works_F77=yes
14981     fi
14982   fi
14983   $rm conftest*
14984   LDFLAGS="$save_LDFLAGS"
14985
14986fi
14987{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14988echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14989
14990if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14991    :
14992else
14993    lt_prog_compiler_static_F77=
14994fi
14995
14996
14997{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14998echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14999if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15000  echo $ECHO_N "(cached) $ECHO_C" >&6
15001else
15002  lt_cv_prog_compiler_c_o_F77=no
15003   $rm -r conftest 2>/dev/null
15004   mkdir conftest
15005   cd conftest
15006   mkdir out
15007   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15008
15009   lt_compiler_flag="-o out/conftest2.$ac_objext"
15010   # Insert the option either (1) after the last *FLAGS variable, or
15011   # (2) before a word containing "conftest.", or (3) at the end.
15012   # Note that $ac_compile itself does not contain backslashes and begins
15013   # with a dollar sign (not a hyphen), so the echo should work correctly.
15014   lt_compile=`echo "$ac_compile" | $SED \
15015   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15016   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15017   -e 's:$: $lt_compiler_flag:'`
15018   (eval echo "\"\$as_me:15018: $lt_compile\"" >&5)
15019   (eval "$lt_compile" 2>out/conftest.err)
15020   ac_status=$?
15021   cat out/conftest.err >&5
15022   echo "$as_me:15022: \$? = $ac_status" >&5
15023   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15024   then
15025     # The compiler can only warn and ignore the option if not recognized
15026     # So say no if there are warnings
15027     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15028     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15029     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15030       lt_cv_prog_compiler_c_o_F77=yes
15031     fi
15032   fi
15033   chmod u+w . 2>&5
15034   $rm conftest*
15035   # SGI C++ compiler will create directory out/ii_files/ for
15036   # template instantiation
15037   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15038   $rm out/* && rmdir out
15039   cd ..
15040   rmdir conftest
15041   $rm conftest*
15042
15043fi
15044{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15045echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15046
15047
15048hard_links="nottested"
15049if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15050  # do not overwrite the value of need_locks provided by the user
15051  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15052echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15053  hard_links=yes
15054  $rm conftest*
15055  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15056  touch conftest.a
15057  ln conftest.a conftest.b 2>&5 || hard_links=no
15058  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15059  { echo "$as_me:$LINENO: result: $hard_links" >&5
15060echo "${ECHO_T}$hard_links" >&6; }
15061  if test "$hard_links" = no; then
15062    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15063echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15064    need_locks=warn
15065  fi
15066else
15067  need_locks=no
15068fi
15069
15070{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15071echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15072
15073  runpath_var=
15074  allow_undefined_flag_F77=
15075  enable_shared_with_static_runtimes_F77=no
15076  archive_cmds_F77=
15077  archive_expsym_cmds_F77=
15078  old_archive_From_new_cmds_F77=
15079  old_archive_from_expsyms_cmds_F77=
15080  export_dynamic_flag_spec_F77=
15081  whole_archive_flag_spec_F77=
15082  thread_safe_flag_spec_F77=
15083  hardcode_libdir_flag_spec_F77=
15084  hardcode_libdir_flag_spec_ld_F77=
15085  hardcode_libdir_separator_F77=
15086  hardcode_direct_F77=no
15087  hardcode_minus_L_F77=no
15088  hardcode_shlibpath_var_F77=unsupported
15089  link_all_deplibs_F77=unknown
15090  hardcode_automatic_F77=no
15091  module_cmds_F77=
15092  module_expsym_cmds_F77=
15093  always_export_symbols_F77=no
15094  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15095  # include_expsyms should be a list of space-separated symbols to be *always*
15096  # included in the symbol list
15097  include_expsyms_F77=
15098  # exclude_expsyms can be an extended regexp of symbols to exclude
15099  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15100  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15101  # as well as any symbol that contains `d'.
15102  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15103  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15104  # platforms (ab)use it in PIC code, but their linkers get confused if
15105  # the symbol is explicitly referenced.  Since portable code cannot
15106  # rely on this symbol name, it's probably fine to never include it in
15107  # preloaded symbol tables.
15108  extract_expsyms_cmds=
15109  # Just being paranoid about ensuring that cc_basename is set.
15110  for cc_temp in $compiler""; do
15111  case $cc_temp in
15112    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15113    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15114    \-*) ;;
15115    *) break;;
15116  esac
15117done
15118cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15119
15120  case $host_os in
15121  cygwin* | mingw* | pw32*)
15122    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15123    # When not using gcc, we currently assume that we are using
15124    # Microsoft Visual C++.
15125    if test "$GCC" != yes; then
15126      with_gnu_ld=no
15127    fi
15128    ;;
15129  interix*)
15130    # we just hope/assume this is gcc and not c89 (= MSVC++)
15131    with_gnu_ld=yes
15132    ;;
15133  openbsd*)
15134    with_gnu_ld=no
15135    ;;
15136  esac
15137
15138  ld_shlibs_F77=yes
15139  if test "$with_gnu_ld" = yes; then
15140    # If archive_cmds runs LD, not CC, wlarc should be empty
15141    wlarc='${wl}'
15142
15143    # Set some defaults for GNU ld with shared library support. These
15144    # are reset later if shared libraries are not supported. Putting them
15145    # here allows them to be overridden if necessary.
15146    runpath_var=LD_RUN_PATH
15147    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15148    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15149    # ancient GNU ld didn't support --whole-archive et. al.
15150    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15151	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15152      else
15153  	whole_archive_flag_spec_F77=
15154    fi
15155    supports_anon_versioning=no
15156    case `$LD -v 2>/dev/null` in
15157      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15158      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15159      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15160      *\ 2.11.*) ;; # other 2.11 versions
15161      *) supports_anon_versioning=yes ;;
15162    esac
15163
15164    # See if GNU ld supports shared libraries.
15165    case $host_os in
15166    aix3* | aix4* | aix5*)
15167      # On AIX/PPC, the GNU linker is very broken
15168      if test "$host_cpu" != ia64; then
15169	ld_shlibs_F77=no
15170	cat <<EOF 1>&2
15171
15172*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15173*** to be unable to reliably create shared libraries on AIX.
15174*** Therefore, libtool is disabling shared libraries support.  If you
15175*** really care for shared libraries, you may want to modify your PATH
15176*** so that a non-GNU linker is found, and then restart.
15177
15178EOF
15179      fi
15180      ;;
15181
15182    amigaos*)
15183      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)'
15184      hardcode_libdir_flag_spec_F77='-L$libdir'
15185      hardcode_minus_L_F77=yes
15186
15187      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15188      # that the semantics of dynamic libraries on AmigaOS, at least up
15189      # to version 4, is to share data among multiple programs linked
15190      # with the same dynamic library.  Since this doesn't match the
15191      # behavior of shared libraries on other platforms, we can't use
15192      # them.
15193      ld_shlibs_F77=no
15194      ;;
15195
15196    beos*)
15197      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15198	allow_undefined_flag_F77=unsupported
15199	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15200	# support --undefined.  This deserves some investigation.  FIXME
15201	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15202      else
15203	ld_shlibs_F77=no
15204      fi
15205      ;;
15206
15207    cygwin* | mingw* | pw32*)
15208      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15209      # as there is no search path for DLLs.
15210      hardcode_libdir_flag_spec_F77='-L$libdir'
15211      allow_undefined_flag_F77=unsupported
15212      always_export_symbols_F77=no
15213      enable_shared_with_static_runtimes_F77=yes
15214      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15215
15216      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15217        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15218	# If the export-symbols file already is a .def file (1st line
15219	# is EXPORTS), use it as is; otherwise, prepend...
15220	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15221	  cp $export_symbols $output_objdir/$soname.def;
15222	else
15223	  echo EXPORTS > $output_objdir/$soname.def;
15224	  cat $export_symbols >> $output_objdir/$soname.def;
15225	fi~
15226	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15227      else
15228	ld_shlibs_F77=no
15229      fi
15230      ;;
15231
15232    interix3*)
15233      hardcode_direct_F77=no
15234      hardcode_shlibpath_var_F77=no
15235      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15236      export_dynamic_flag_spec_F77='${wl}-E'
15237      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15238      # Instead, shared libraries are loaded at an image base (0x10000000 by
15239      # default) and relocated if they conflict, which is a slow very memory
15240      # consuming and fragmenting process.  To avoid this, we pick a random,
15241      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15242      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15243      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'
15244      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'
15245      ;;
15246
15247    linux* | k*bsd*-gnu)
15248      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15249	tmp_addflag=
15250	case $cc_basename,$host_cpu in
15251	pgcc*)				# Portland Group C compiler
15252	  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'
15253	  tmp_addflag=' $pic_flag'
15254	  ;;
15255	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15256	  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'
15257	  tmp_addflag=' $pic_flag -Mnomain' ;;
15258	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15259	  tmp_addflag=' -i_dynamic' ;;
15260	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15261	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15262	ifc* | ifort*)			# Intel Fortran compiler
15263	  tmp_addflag=' -nofor_main' ;;
15264	esac
15265	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15266
15267	if test $supports_anon_versioning = yes; then
15268	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15269  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15270  $echo "local: *; };" >> $output_objdir/$libname.ver~
15271	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15272	fi
15273	link_all_deplibs_F77=no
15274      else
15275	ld_shlibs_F77=no
15276      fi
15277      ;;
15278
15279    netbsd* | netbsdelf*-gnu)
15280      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15281	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15282	wlarc=
15283      else
15284	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15285	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15286      fi
15287      ;;
15288
15289    solaris*)
15290      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15291	ld_shlibs_F77=no
15292	cat <<EOF 1>&2
15293
15294*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15295*** create shared libraries on Solaris systems.  Therefore, libtool
15296*** is disabling shared libraries support.  We urge you to upgrade GNU
15297*** binutils to release 2.9.1 or newer.  Another option is to modify
15298*** your PATH or compiler configuration so that the native linker is
15299*** used, and then restart.
15300
15301EOF
15302      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15303	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15304	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15305      else
15306	ld_shlibs_F77=no
15307      fi
15308      ;;
15309
15310    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15311      case `$LD -v 2>&1` in
15312        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15313	ld_shlibs_F77=no
15314	cat <<_LT_EOF 1>&2
15315
15316*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15317*** reliably create shared libraries on SCO systems.  Therefore, libtool
15318*** is disabling shared libraries support.  We urge you to upgrade GNU
15319*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15320*** your PATH or compiler configuration so that the native linker is
15321*** used, and then restart.
15322
15323_LT_EOF
15324	;;
15325	*)
15326	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15327	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15328	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15329	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15330	  else
15331	    ld_shlibs_F77=no
15332	  fi
15333	;;
15334      esac
15335      ;;
15336
15337    sunos4*)
15338      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15339      wlarc=
15340      hardcode_direct_F77=yes
15341      hardcode_shlibpath_var_F77=no
15342      ;;
15343
15344    *)
15345      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15346	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15347	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15348      else
15349	ld_shlibs_F77=no
15350      fi
15351      ;;
15352    esac
15353
15354    if test "$ld_shlibs_F77" = no; then
15355      runpath_var=
15356      hardcode_libdir_flag_spec_F77=
15357      export_dynamic_flag_spec_F77=
15358      whole_archive_flag_spec_F77=
15359    fi
15360  else
15361    # PORTME fill in a description of your system's linker (not GNU ld)
15362    case $host_os in
15363    aix3*)
15364      allow_undefined_flag_F77=unsupported
15365      always_export_symbols_F77=yes
15366      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'
15367      # Note: this linker hardcodes the directories in LIBPATH if there
15368      # are no directories specified by -L.
15369      hardcode_minus_L_F77=yes
15370      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15371	# Neither direct hardcoding nor static linking is supported with a
15372	# broken collect2.
15373	hardcode_direct_F77=unsupported
15374      fi
15375      ;;
15376
15377    aix4* | aix5*)
15378      if test "$host_cpu" = ia64; then
15379	# On IA64, the linker does run time linking by default, so we don't
15380	# have to do anything special.
15381	aix_use_runtimelinking=no
15382	exp_sym_flag='-Bexport'
15383	no_entry_flag=""
15384      else
15385	# If we're using GNU nm, then we don't want the "-C" option.
15386	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15387	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15388	  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'
15389	else
15390	  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'
15391	fi
15392	aix_use_runtimelinking=no
15393
15394	# Test if we are trying to use run time linking or normal
15395	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15396	# need to do runtime linking.
15397	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15398	  for ld_flag in $LDFLAGS; do
15399  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15400  	    aix_use_runtimelinking=yes
15401  	    break
15402  	  fi
15403	  done
15404	  ;;
15405	esac
15406
15407	exp_sym_flag='-bexport'
15408	no_entry_flag='-bnoentry'
15409      fi
15410
15411      # When large executables or shared objects are built, AIX ld can
15412      # have problems creating the table of contents.  If linking a library
15413      # or program results in "error TOC overflow" add -mminimal-toc to
15414      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15415      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15416
15417      archive_cmds_F77=''
15418      hardcode_direct_F77=yes
15419      hardcode_libdir_separator_F77=':'
15420      link_all_deplibs_F77=yes
15421
15422      if test "$GCC" = yes; then
15423	case $host_os in aix4.[012]|aix4.[012].*)
15424	# We only want to do this on AIX 4.2 and lower, the check
15425	# below for broken collect2 doesn't work under 4.3+
15426	  collect2name=`${CC} -print-prog-name=collect2`
15427	  if test -f "$collect2name" && \
15428  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15429	  then
15430  	  # We have reworked collect2
15431  	  hardcode_direct_F77=yes
15432	  else
15433  	  # We have old collect2
15434  	  hardcode_direct_F77=unsupported
15435  	  # It fails to find uninstalled libraries when the uninstalled
15436  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15437  	  # to unsupported forces relinking
15438  	  hardcode_minus_L_F77=yes
15439  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15440  	  hardcode_libdir_separator_F77=
15441	  fi
15442	  ;;
15443	esac
15444	shared_flag='-shared'
15445	if test "$aix_use_runtimelinking" = yes; then
15446	  shared_flag="$shared_flag "'${wl}-G'
15447	fi
15448      else
15449	# not using gcc
15450	if test "$host_cpu" = ia64; then
15451  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15452  	# chokes on -Wl,-G. The following line is correct:
15453	  shared_flag='-G'
15454	else
15455	  if test "$aix_use_runtimelinking" = yes; then
15456	    shared_flag='${wl}-G'
15457	  else
15458	    shared_flag='${wl}-bM:SRE'
15459	  fi
15460	fi
15461      fi
15462
15463      # It seems that -bexpall does not export symbols beginning with
15464      # underscore (_), so it is better to generate a list of symbols to export.
15465      always_export_symbols_F77=yes
15466      if test "$aix_use_runtimelinking" = yes; then
15467	# Warning - without using the other runtime loading flags (-brtl),
15468	# -berok will link without error, but may produce a broken library.
15469	allow_undefined_flag_F77='-berok'
15470       # Determine the default libpath from the value encoded in an empty executable.
15471       cat >conftest.$ac_ext <<_ACEOF
15472      program main
15473
15474      end
15475_ACEOF
15476rm -f conftest.$ac_objext conftest$ac_exeext
15477if { (ac_try="$ac_link"
15478case "(($ac_try" in
15479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480  *) ac_try_echo=$ac_try;;
15481esac
15482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483  (eval "$ac_link") 2>conftest.er1
15484  ac_status=$?
15485  grep -v '^ *+' conftest.er1 >conftest.err
15486  rm -f conftest.er1
15487  cat conftest.err >&5
15488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489  (exit $ac_status); } && {
15490	 test -z "$ac_f77_werror_flag" ||
15491	 test ! -s conftest.err
15492       } && test -s conftest$ac_exeext &&
15493       $as_test_x conftest$ac_exeext; then
15494
15495aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15496}'`
15497# Check for a 64-bit object if we didn't find anything.
15498if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15499}'`; fi
15500else
15501  echo "$as_me: failed program was:" >&5
15502sed 's/^/| /' conftest.$ac_ext >&5
15503
15504
15505fi
15506
15507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15508      conftest$ac_exeext conftest.$ac_ext
15509if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15510
15511       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15512	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"
15513       else
15514	if test "$host_cpu" = ia64; then
15515	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15516	  allow_undefined_flag_F77="-z nodefs"
15517	  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"
15518	else
15519	 # Determine the default libpath from the value encoded in an empty executable.
15520	 cat >conftest.$ac_ext <<_ACEOF
15521      program main
15522
15523      end
15524_ACEOF
15525rm -f conftest.$ac_objext conftest$ac_exeext
15526if { (ac_try="$ac_link"
15527case "(($ac_try" in
15528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15529  *) ac_try_echo=$ac_try;;
15530esac
15531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15532  (eval "$ac_link") 2>conftest.er1
15533  ac_status=$?
15534  grep -v '^ *+' conftest.er1 >conftest.err
15535  rm -f conftest.er1
15536  cat conftest.err >&5
15537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538  (exit $ac_status); } && {
15539	 test -z "$ac_f77_werror_flag" ||
15540	 test ! -s conftest.err
15541       } && test -s conftest$ac_exeext &&
15542       $as_test_x conftest$ac_exeext; then
15543
15544aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15545}'`
15546# Check for a 64-bit object if we didn't find anything.
15547if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15548}'`; fi
15549else
15550  echo "$as_me: failed program was:" >&5
15551sed 's/^/| /' conftest.$ac_ext >&5
15552
15553
15554fi
15555
15556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15557      conftest$ac_exeext conftest.$ac_ext
15558if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15559
15560	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15561	  # Warning - without using the other run time loading flags,
15562	  # -berok will link without error, but may produce a broken library.
15563	  no_undefined_flag_F77=' ${wl}-bernotok'
15564	  allow_undefined_flag_F77=' ${wl}-berok'
15565	  # Exported symbols can be pulled into shared objects from archives
15566	  whole_archive_flag_spec_F77='$convenience'
15567	  archive_cmds_need_lc_F77=yes
15568	  # This is similar to how AIX traditionally builds its shared libraries.
15569	  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'
15570	fi
15571      fi
15572      ;;
15573
15574    amigaos*)
15575      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)'
15576      hardcode_libdir_flag_spec_F77='-L$libdir'
15577      hardcode_minus_L_F77=yes
15578      # see comment about different semantics on the GNU ld section
15579      ld_shlibs_F77=no
15580      ;;
15581
15582    bsdi[45]*)
15583      export_dynamic_flag_spec_F77=-rdynamic
15584      ;;
15585
15586    cygwin* | mingw* | pw32*)
15587      # When not using gcc, we currently assume that we are using
15588      # Microsoft Visual C++.
15589      # hardcode_libdir_flag_spec is actually meaningless, as there is
15590      # no search path for DLLs.
15591      hardcode_libdir_flag_spec_F77=' '
15592      allow_undefined_flag_F77=unsupported
15593      # Tell ltmain to make .lib files, not .a files.
15594      libext=lib
15595      # Tell ltmain to make .dll files, not .so files.
15596      shrext_cmds=".dll"
15597      # FIXME: Setting linknames here is a bad hack.
15598      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15599      # The linker will automatically build a .lib file if we build a DLL.
15600      old_archive_From_new_cmds_F77='true'
15601      # FIXME: Should let the user specify the lib program.
15602      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15603      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15604      enable_shared_with_static_runtimes_F77=yes
15605      ;;
15606
15607    darwin* | rhapsody*)
15608      case $host_os in
15609        rhapsody* | darwin1.[012])
15610         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15611         ;;
15612       *) # Darwin 1.3 on
15613         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15614           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15615         else
15616           case ${MACOSX_DEPLOYMENT_TARGET} in
15617             10.[012])
15618               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15619               ;;
15620             10.*)
15621               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15622               ;;
15623           esac
15624         fi
15625         ;;
15626      esac
15627      archive_cmds_need_lc_F77=no
15628      hardcode_direct_F77=no
15629      hardcode_automatic_F77=yes
15630      hardcode_shlibpath_var_F77=unsupported
15631      whole_archive_flag_spec_F77=''
15632      link_all_deplibs_F77=yes
15633    if test "$GCC" = yes ; then
15634    	output_verbose_link_cmd='echo'
15635        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15636      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15637      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15638      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15639      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}'
15640    else
15641      case $cc_basename in
15642        xlc*)
15643         output_verbose_link_cmd='echo'
15644         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15645         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15646          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15647         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15648          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}'
15649          ;;
15650       *)
15651         ld_shlibs_F77=no
15652          ;;
15653      esac
15654    fi
15655      ;;
15656
15657    dgux*)
15658      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15659      hardcode_libdir_flag_spec_F77='-L$libdir'
15660      hardcode_shlibpath_var_F77=no
15661      ;;
15662
15663    freebsd1*)
15664      ld_shlibs_F77=no
15665      ;;
15666
15667    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15668    # support.  Future versions do this automatically, but an explicit c++rt0.o
15669    # does not break anything, and helps significantly (at the cost of a little
15670    # extra space).
15671    freebsd2.2*)
15672      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15673      hardcode_libdir_flag_spec_F77='-R$libdir'
15674      hardcode_direct_F77=yes
15675      hardcode_shlibpath_var_F77=no
15676      ;;
15677
15678    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15679    freebsd2*)
15680      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15681      hardcode_direct_F77=yes
15682      hardcode_minus_L_F77=yes
15683      hardcode_shlibpath_var_F77=no
15684      ;;
15685
15686    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15687    freebsd* | dragonfly*)
15688      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15689      hardcode_libdir_flag_spec_F77='-R$libdir'
15690      hardcode_direct_F77=yes
15691      hardcode_shlibpath_var_F77=no
15692      ;;
15693
15694    hpux9*)
15695      if test "$GCC" = yes; then
15696	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'
15697      else
15698	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'
15699      fi
15700      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15701      hardcode_libdir_separator_F77=:
15702      hardcode_direct_F77=yes
15703
15704      # hardcode_minus_L: Not really in the search PATH,
15705      # but as the default location of the library.
15706      hardcode_minus_L_F77=yes
15707      export_dynamic_flag_spec_F77='${wl}-E'
15708      ;;
15709
15710    hpux10*)
15711      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15712	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15713      else
15714	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15715      fi
15716      if test "$with_gnu_ld" = no; then
15717	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15718	hardcode_libdir_separator_F77=:
15719
15720	hardcode_direct_F77=yes
15721	export_dynamic_flag_spec_F77='${wl}-E'
15722
15723	# hardcode_minus_L: Not really in the search PATH,
15724	# but as the default location of the library.
15725	hardcode_minus_L_F77=yes
15726      fi
15727      ;;
15728
15729    hpux11*)
15730      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15731	case $host_cpu in
15732	hppa*64*)
15733	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15734	  ;;
15735	ia64*)
15736	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15737	  ;;
15738	*)
15739	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15740	  ;;
15741	esac
15742      else
15743	case $host_cpu in
15744	hppa*64*)
15745	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15746	  ;;
15747	ia64*)
15748	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15749	  ;;
15750	*)
15751	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15752	  ;;
15753	esac
15754      fi
15755      if test "$with_gnu_ld" = no; then
15756	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15757	hardcode_libdir_separator_F77=:
15758
15759	case $host_cpu in
15760	hppa*64*|ia64*)
15761	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15762	  hardcode_direct_F77=no
15763	  hardcode_shlibpath_var_F77=no
15764	  ;;
15765	*)
15766	  hardcode_direct_F77=yes
15767	  export_dynamic_flag_spec_F77='${wl}-E'
15768
15769	  # hardcode_minus_L: Not really in the search PATH,
15770	  # but as the default location of the library.
15771	  hardcode_minus_L_F77=yes
15772	  ;;
15773	esac
15774      fi
15775      ;;
15776
15777    irix5* | irix6* | nonstopux*)
15778      if test "$GCC" = yes; then
15779	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'
15780      else
15781	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'
15782	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15783      fi
15784      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15785      hardcode_libdir_separator_F77=:
15786      link_all_deplibs_F77=yes
15787      ;;
15788
15789    netbsd* | netbsdelf*-gnu)
15790      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15791	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15792      else
15793	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15794      fi
15795      hardcode_libdir_flag_spec_F77='-R$libdir'
15796      hardcode_direct_F77=yes
15797      hardcode_shlibpath_var_F77=no
15798      ;;
15799
15800    newsos6)
15801      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802      hardcode_direct_F77=yes
15803      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15804      hardcode_libdir_separator_F77=:
15805      hardcode_shlibpath_var_F77=no
15806      ;;
15807
15808    openbsd*)
15809      hardcode_direct_F77=yes
15810      hardcode_shlibpath_var_F77=no
15811      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15812	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15813	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15814	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15815	export_dynamic_flag_spec_F77='${wl}-E'
15816      else
15817       case $host_os in
15818	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15819	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15820	   hardcode_libdir_flag_spec_F77='-R$libdir'
15821	   ;;
15822	 *)
15823	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15824	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15825	   ;;
15826       esac
15827      fi
15828      ;;
15829
15830    os2*)
15831      hardcode_libdir_flag_spec_F77='-L$libdir'
15832      hardcode_minus_L_F77=yes
15833      allow_undefined_flag_F77=unsupported
15834      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'
15835      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15836      ;;
15837
15838    osf3*)
15839      if test "$GCC" = yes; then
15840	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15841	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'
15842      else
15843	allow_undefined_flag_F77=' -expect_unresolved \*'
15844	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'
15845      fi
15846      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15847      hardcode_libdir_separator_F77=:
15848      ;;
15849
15850    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15851      if test "$GCC" = yes; then
15852	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15853	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'
15854	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15855      else
15856	allow_undefined_flag_F77=' -expect_unresolved \*'
15857	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'
15858	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~
15859	$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'
15860
15861	# Both c and cxx compiler support -rpath directly
15862	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15863      fi
15864      hardcode_libdir_separator_F77=:
15865      ;;
15866
15867    solaris*)
15868      no_undefined_flag_F77=' -z text'
15869      if test "$GCC" = yes; then
15870	wlarc='${wl}'
15871	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15872	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15873	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15874      else
15875	wlarc=''
15876	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15877	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15878  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15879      fi
15880      hardcode_libdir_flag_spec_F77='-R$libdir'
15881      hardcode_shlibpath_var_F77=no
15882      case $host_os in
15883      solaris2.[0-5] | solaris2.[0-5].*) ;;
15884      *)
15885 	# The compiler driver will combine linker options so we
15886 	# cannot just pass the convience library names through
15887 	# without $wl, iff we do not link with $LD.
15888 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15889 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15890 	case $wlarc in
15891 	'')
15892 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15893 	*)
15894 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15895 	esac ;;
15896      esac
15897      link_all_deplibs_F77=yes
15898      ;;
15899
15900    sunos4*)
15901      if test "x$host_vendor" = xsequent; then
15902	# Use $CC to link under sequent, because it throws in some extra .o
15903	# files that make .init and .fini sections work.
15904	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15905      else
15906	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15907      fi
15908      hardcode_libdir_flag_spec_F77='-L$libdir'
15909      hardcode_direct_F77=yes
15910      hardcode_minus_L_F77=yes
15911      hardcode_shlibpath_var_F77=no
15912      ;;
15913
15914    sysv4)
15915      case $host_vendor in
15916	sni)
15917	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15918	  hardcode_direct_F77=yes # is this really true???
15919	;;
15920	siemens)
15921	  ## LD is ld it makes a PLAMLIB
15922	  ## CC just makes a GrossModule.
15923	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15924	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15925	  hardcode_direct_F77=no
15926        ;;
15927	motorola)
15928	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15929	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15930	;;
15931      esac
15932      runpath_var='LD_RUN_PATH'
15933      hardcode_shlibpath_var_F77=no
15934      ;;
15935
15936    sysv4.3*)
15937      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15938      hardcode_shlibpath_var_F77=no
15939      export_dynamic_flag_spec_F77='-Bexport'
15940      ;;
15941
15942    sysv4*MP*)
15943      if test -d /usr/nec; then
15944	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15945	hardcode_shlibpath_var_F77=no
15946	runpath_var=LD_RUN_PATH
15947	hardcode_runpath_var=yes
15948	ld_shlibs_F77=yes
15949      fi
15950      ;;
15951
15952    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15953      no_undefined_flag_F77='${wl}-z,text'
15954      archive_cmds_need_lc_F77=no
15955      hardcode_shlibpath_var_F77=no
15956      runpath_var='LD_RUN_PATH'
15957
15958      if test "$GCC" = yes; then
15959	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15960	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15961      else
15962	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15963	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15964      fi
15965      ;;
15966
15967    sysv5* | sco3.2v5* | sco5v6*)
15968      # Note: We can NOT use -z defs as we might desire, because we do not
15969      # link with -lc, and that would cause any symbols used from libc to
15970      # always be unresolved, which means just about no library would
15971      # ever link correctly.  If we're not using GNU ld we use -z text
15972      # though, which does catch some bad symbols but isn't as heavy-handed
15973      # as -z defs.
15974      no_undefined_flag_F77='${wl}-z,text'
15975      allow_undefined_flag_F77='${wl}-z,nodefs'
15976      archive_cmds_need_lc_F77=no
15977      hardcode_shlibpath_var_F77=no
15978      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15979      hardcode_libdir_separator_F77=':'
15980      link_all_deplibs_F77=yes
15981      export_dynamic_flag_spec_F77='${wl}-Bexport'
15982      runpath_var='LD_RUN_PATH'
15983
15984      if test "$GCC" = yes; then
15985	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15986	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15987      else
15988	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15989	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15990      fi
15991      ;;
15992
15993    uts4*)
15994      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15995      hardcode_libdir_flag_spec_F77='-L$libdir'
15996      hardcode_shlibpath_var_F77=no
15997      ;;
15998
15999    *)
16000      ld_shlibs_F77=no
16001      ;;
16002    esac
16003  fi
16004
16005{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16006echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16007test "$ld_shlibs_F77" = no && can_build_shared=no
16008
16009#
16010# Do we need to explicitly link libc?
16011#
16012case "x$archive_cmds_need_lc_F77" in
16013x|xyes)
16014  # Assume -lc should be added
16015  archive_cmds_need_lc_F77=yes
16016
16017  if test "$enable_shared" = yes && test "$GCC" = yes; then
16018    case $archive_cmds_F77 in
16019    *'~'*)
16020      # FIXME: we may have to deal with multi-command sequences.
16021      ;;
16022    '$CC '*)
16023      # Test whether the compiler implicitly links with -lc since on some
16024      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16025      # to ld, don't add -lc before -lgcc.
16026      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16027echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16028      $rm conftest*
16029      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16030
16031      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16032  (eval $ac_compile) 2>&5
16033  ac_status=$?
16034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035  (exit $ac_status); } 2>conftest.err; then
16036        soname=conftest
16037        lib=conftest
16038        libobjs=conftest.$ac_objext
16039        deplibs=
16040        wl=$lt_prog_compiler_wl_F77
16041	pic_flag=$lt_prog_compiler_pic_F77
16042        compiler_flags=-v
16043        linker_flags=-v
16044        verstring=
16045        output_objdir=.
16046        libname=conftest
16047        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16048        allow_undefined_flag_F77=
16049        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16050  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16051  ac_status=$?
16052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053  (exit $ac_status); }
16054        then
16055	  archive_cmds_need_lc_F77=no
16056        else
16057	  archive_cmds_need_lc_F77=yes
16058        fi
16059        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16060      else
16061        cat conftest.err 1>&5
16062      fi
16063      $rm conftest*
16064      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16065echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16066      ;;
16067    esac
16068  fi
16069  ;;
16070esac
16071
16072{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16073echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16074library_names_spec=
16075libname_spec='lib$name'
16076soname_spec=
16077shrext_cmds=".so"
16078postinstall_cmds=
16079postuninstall_cmds=
16080finish_cmds=
16081finish_eval=
16082shlibpath_var=
16083shlibpath_overrides_runpath=unknown
16084version_type=none
16085dynamic_linker="$host_os ld.so"
16086sys_lib_dlsearch_path_spec="/lib /usr/lib"
16087if test "$GCC" = yes; then
16088  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16089  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16090    # if the path contains ";" then we assume it to be the separator
16091    # otherwise default to the standard path separator (i.e. ":") - it is
16092    # assumed that no part of a normal pathname contains ";" but that should
16093    # okay in the real world where ";" in dirpaths is itself problematic.
16094    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16095  else
16096    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16097  fi
16098else
16099  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16100fi
16101need_lib_prefix=unknown
16102hardcode_into_libs=no
16103
16104# when you set need_version to no, make sure it does not cause -set_version
16105# flags to be left without arguments
16106need_version=unknown
16107
16108case $host_os in
16109aix3*)
16110  version_type=linux
16111  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16112  shlibpath_var=LIBPATH
16113
16114  # AIX 3 has no versioning support, so we append a major version to the name.
16115  soname_spec='${libname}${release}${shared_ext}$major'
16116  ;;
16117
16118aix4* | aix5*)
16119  version_type=linux
16120  need_lib_prefix=no
16121  need_version=no
16122  hardcode_into_libs=yes
16123  if test "$host_cpu" = ia64; then
16124    # AIX 5 supports IA64
16125    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16126    shlibpath_var=LD_LIBRARY_PATH
16127  else
16128    # With GCC up to 2.95.x, collect2 would create an import file
16129    # for dependence libraries.  The import file would start with
16130    # the line `#! .'.  This would cause the generated library to
16131    # depend on `.', always an invalid library.  This was fixed in
16132    # development snapshots of GCC prior to 3.0.
16133    case $host_os in
16134      aix4 | aix4.[01] | aix4.[01].*)
16135      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16136	   echo ' yes '
16137	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16138	:
16139      else
16140	can_build_shared=no
16141      fi
16142      ;;
16143    esac
16144    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16145    # soname into executable. Probably we can add versioning support to
16146    # collect2, so additional links can be useful in future.
16147    if test "$aix_use_runtimelinking" = yes; then
16148      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16149      # instead of lib<name>.a to let people know that these are not
16150      # typical AIX shared libraries.
16151      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152    else
16153      # We preserve .a as extension for shared libraries through AIX4.2
16154      # and later when we are not doing run time linking.
16155      library_names_spec='${libname}${release}.a $libname.a'
16156      soname_spec='${libname}${release}${shared_ext}$major'
16157    fi
16158    shlibpath_var=LIBPATH
16159  fi
16160  ;;
16161
16162amigaos*)
16163  library_names_spec='$libname.ixlibrary $libname.a'
16164  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16165  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'
16166  ;;
16167
16168beos*)
16169  library_names_spec='${libname}${shared_ext}'
16170  dynamic_linker="$host_os ld.so"
16171  shlibpath_var=LIBRARY_PATH
16172  ;;
16173
16174bsdi[45]*)
16175  version_type=linux
16176  need_version=no
16177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178  soname_spec='${libname}${release}${shared_ext}$major'
16179  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16180  shlibpath_var=LD_LIBRARY_PATH
16181  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16182  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16183  # the default ld.so.conf also contains /usr/contrib/lib and
16184  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16185  # libtool to hard-code these into programs
16186  ;;
16187
16188cygwin* | mingw* | pw32*)
16189  version_type=windows
16190  shrext_cmds=".dll"
16191  need_version=no
16192  need_lib_prefix=no
16193
16194  case $GCC,$host_os in
16195  yes,cygwin* | yes,mingw* | yes,pw32*)
16196    library_names_spec='$libname.dll.a'
16197    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16198    postinstall_cmds='base_file=`basename \${file}`~
16199      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16200      dldir=$destdir/`dirname \$dlpath`~
16201      test -d \$dldir || mkdir -p \$dldir~
16202      $install_prog $dir/$dlname \$dldir/$dlname~
16203      chmod a+x \$dldir/$dlname'
16204    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16205      dlpath=$dir/\$dldll~
16206       $rm \$dlpath'
16207    shlibpath_overrides_runpath=yes
16208
16209    case $host_os in
16210    cygwin*)
16211      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16212      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16213      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16214      ;;
16215    mingw*)
16216      # MinGW DLLs use traditional 'lib' prefix
16217      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16218      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16219      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16220        # It is most probably a Windows format PATH printed by
16221        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16222        # path with ; separators, and with drive letters. We can handle the
16223        # drive letters (cygwin fileutils understands them), so leave them,
16224        # especially as we might pass files found there to a mingw objdump,
16225        # which wouldn't understand a cygwinified path. Ahh.
16226        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16227      else
16228        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16229      fi
16230      ;;
16231    pw32*)
16232      # pw32 DLLs use 'pw' prefix rather than 'lib'
16233      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16234      ;;
16235    esac
16236    ;;
16237
16238  *)
16239    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16240    ;;
16241  esac
16242  dynamic_linker='Win32 ld.exe'
16243  # FIXME: first we should search . and the directory the executable is in
16244  shlibpath_var=PATH
16245  ;;
16246
16247darwin* | rhapsody*)
16248  dynamic_linker="$host_os dyld"
16249  version_type=darwin
16250  need_lib_prefix=no
16251  need_version=no
16252  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16253  soname_spec='${libname}${release}${major}$shared_ext'
16254  shlibpath_overrides_runpath=yes
16255  shlibpath_var=DYLD_LIBRARY_PATH
16256  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16257  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16258  if test "$GCC" = yes; then
16259    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16260  else
16261    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16262  fi
16263  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16264  ;;
16265
16266dgux*)
16267  version_type=linux
16268  need_lib_prefix=no
16269  need_version=no
16270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16271  soname_spec='${libname}${release}${shared_ext}$major'
16272  shlibpath_var=LD_LIBRARY_PATH
16273  ;;
16274
16275freebsd1*)
16276  dynamic_linker=no
16277  ;;
16278
16279freebsd* | dragonfly*)
16280  # DragonFly does not have aout.  When/if they implement a new
16281  # versioning mechanism, adjust this.
16282  if test -x /usr/bin/objformat; then
16283    objformat=`/usr/bin/objformat`
16284  else
16285    case $host_os in
16286    freebsd[123]*) objformat=aout ;;
16287    *) objformat=elf ;;
16288    esac
16289  fi
16290  version_type=freebsd-$objformat
16291  case $version_type in
16292    freebsd-elf*)
16293      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16294      need_version=no
16295      need_lib_prefix=no
16296      ;;
16297    freebsd-*)
16298      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16299      need_version=yes
16300      ;;
16301  esac
16302  shlibpath_var=LD_LIBRARY_PATH
16303  case $host_os in
16304  freebsd2*)
16305    shlibpath_overrides_runpath=yes
16306    ;;
16307  freebsd3.[01]* | freebsdelf3.[01]*)
16308    shlibpath_overrides_runpath=yes
16309    hardcode_into_libs=yes
16310    ;;
16311  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16312  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16313    shlibpath_overrides_runpath=no
16314    hardcode_into_libs=yes
16315    ;;
16316  freebsd*) # from 4.6 on
16317    shlibpath_overrides_runpath=yes
16318    hardcode_into_libs=yes
16319    ;;
16320  esac
16321  ;;
16322
16323gnu*)
16324  version_type=linux
16325  need_lib_prefix=no
16326  need_version=no
16327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16328  soname_spec='${libname}${release}${shared_ext}$major'
16329  shlibpath_var=LD_LIBRARY_PATH
16330  hardcode_into_libs=yes
16331  ;;
16332
16333hpux9* | hpux10* | hpux11*)
16334  # Give a soname corresponding to the major version so that dld.sl refuses to
16335  # link against other versions.
16336  version_type=sunos
16337  need_lib_prefix=no
16338  need_version=no
16339  case $host_cpu in
16340  ia64*)
16341    shrext_cmds='.so'
16342    hardcode_into_libs=yes
16343    dynamic_linker="$host_os dld.so"
16344    shlibpath_var=LD_LIBRARY_PATH
16345    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16346    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347    soname_spec='${libname}${release}${shared_ext}$major'
16348    if test "X$HPUX_IA64_MODE" = X32; then
16349      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16350    else
16351      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16352    fi
16353    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16354    ;;
16355   hppa*64*)
16356     shrext_cmds='.sl'
16357     hardcode_into_libs=yes
16358     dynamic_linker="$host_os dld.sl"
16359     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16360     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16362     soname_spec='${libname}${release}${shared_ext}$major'
16363     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16364     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16365     ;;
16366   *)
16367    shrext_cmds='.sl'
16368    dynamic_linker="$host_os dld.sl"
16369    shlibpath_var=SHLIB_PATH
16370    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16371    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16372    soname_spec='${libname}${release}${shared_ext}$major'
16373    ;;
16374  esac
16375  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16376  postinstall_cmds='chmod 555 $lib'
16377  ;;
16378
16379interix3*)
16380  version_type=linux
16381  need_lib_prefix=no
16382  need_version=no
16383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16384  soname_spec='${libname}${release}${shared_ext}$major'
16385  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16386  shlibpath_var=LD_LIBRARY_PATH
16387  shlibpath_overrides_runpath=no
16388  hardcode_into_libs=yes
16389  ;;
16390
16391irix5* | irix6* | nonstopux*)
16392  case $host_os in
16393    nonstopux*) version_type=nonstopux ;;
16394    *)
16395	if test "$lt_cv_prog_gnu_ld" = yes; then
16396		version_type=linux
16397	else
16398		version_type=irix
16399	fi ;;
16400  esac
16401  need_lib_prefix=no
16402  need_version=no
16403  soname_spec='${libname}${release}${shared_ext}$major'
16404  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16405  case $host_os in
16406  irix5* | nonstopux*)
16407    libsuff= shlibsuff=
16408    ;;
16409  *)
16410    case $LD in # libtool.m4 will add one of these switches to LD
16411    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16412      libsuff= shlibsuff= libmagic=32-bit;;
16413    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16414      libsuff=32 shlibsuff=N32 libmagic=N32;;
16415    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16416      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16417    *) libsuff= shlibsuff= libmagic=never-match;;
16418    esac
16419    ;;
16420  esac
16421  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16422  shlibpath_overrides_runpath=no
16423  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16424  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16425  hardcode_into_libs=yes
16426  ;;
16427
16428# No shared lib support for Linux oldld, aout, or coff.
16429linux*oldld* | linux*aout* | linux*coff*)
16430  dynamic_linker=no
16431  ;;
16432
16433# This must be Linux ELF.
16434linux* | k*bsd*-gnu)
16435  version_type=linux
16436  need_lib_prefix=no
16437  need_version=no
16438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16439  soname_spec='${libname}${release}${shared_ext}$major'
16440  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16441  shlibpath_var=LD_LIBRARY_PATH
16442  shlibpath_overrides_runpath=no
16443  # This implies no fast_install, which is unacceptable.
16444  # Some rework will be needed to allow for fast_install
16445  # before this can be enabled.
16446  hardcode_into_libs=yes
16447
16448  # Append ld.so.conf contents to the search path
16449  if test -f /etc/ld.so.conf; then
16450    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16451    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16452  fi
16453
16454  # We used to test for /lib/ld.so.1 and disable shared libraries on
16455  # powerpc, because MkLinux only supported shared libraries with the
16456  # GNU dynamic linker.  Since this was broken with cross compilers,
16457  # most powerpc-linux boxes support dynamic linking these days and
16458  # people can always --disable-shared, the test was removed, and we
16459  # assume the GNU/Linux dynamic linker is in use.
16460  dynamic_linker='GNU/Linux ld.so'
16461  ;;
16462
16463netbsdelf*-gnu)
16464  version_type=linux
16465  need_lib_prefix=no
16466  need_version=no
16467  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16468  soname_spec='${libname}${release}${shared_ext}$major'
16469  shlibpath_var=LD_LIBRARY_PATH
16470  shlibpath_overrides_runpath=no
16471  hardcode_into_libs=yes
16472  dynamic_linker='NetBSD ld.elf_so'
16473  ;;
16474
16475netbsd*)
16476  version_type=sunos
16477  need_lib_prefix=no
16478  need_version=no
16479  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16480    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16481    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16482    dynamic_linker='NetBSD (a.out) ld.so'
16483  else
16484    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16485    soname_spec='${libname}${release}${shared_ext}$major'
16486    dynamic_linker='NetBSD ld.elf_so'
16487  fi
16488  shlibpath_var=LD_LIBRARY_PATH
16489  shlibpath_overrides_runpath=yes
16490  hardcode_into_libs=yes
16491  ;;
16492
16493newsos6)
16494  version_type=linux
16495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16496  shlibpath_var=LD_LIBRARY_PATH
16497  shlibpath_overrides_runpath=yes
16498  ;;
16499
16500nto-qnx*)
16501  version_type=linux
16502  need_lib_prefix=no
16503  need_version=no
16504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16505  soname_spec='${libname}${release}${shared_ext}$major'
16506  shlibpath_var=LD_LIBRARY_PATH
16507  shlibpath_overrides_runpath=yes
16508  ;;
16509
16510openbsd*)
16511  version_type=sunos
16512  sys_lib_dlsearch_path_spec="/usr/lib"
16513  need_lib_prefix=no
16514  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16515  case $host_os in
16516    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16517    *)                         need_version=no  ;;
16518  esac
16519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16520  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16521  shlibpath_var=LD_LIBRARY_PATH
16522  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16523    case $host_os in
16524      openbsd2.[89] | openbsd2.[89].*)
16525	shlibpath_overrides_runpath=no
16526	;;
16527      *)
16528	shlibpath_overrides_runpath=yes
16529	;;
16530      esac
16531  else
16532    shlibpath_overrides_runpath=yes
16533  fi
16534  ;;
16535
16536os2*)
16537  libname_spec='$name'
16538  shrext_cmds=".dll"
16539  need_lib_prefix=no
16540  library_names_spec='$libname${shared_ext} $libname.a'
16541  dynamic_linker='OS/2 ld.exe'
16542  shlibpath_var=LIBPATH
16543  ;;
16544
16545osf3* | osf4* | osf5*)
16546  version_type=osf
16547  need_lib_prefix=no
16548  need_version=no
16549  soname_spec='${libname}${release}${shared_ext}$major'
16550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16551  shlibpath_var=LD_LIBRARY_PATH
16552  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16553  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16554  ;;
16555
16556solaris*)
16557  version_type=linux
16558  need_lib_prefix=no
16559  need_version=no
16560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16561  soname_spec='${libname}${release}${shared_ext}$major'
16562  shlibpath_var=LD_LIBRARY_PATH
16563  shlibpath_overrides_runpath=yes
16564  hardcode_into_libs=yes
16565  # ldd complains unless libraries are executable
16566  postinstall_cmds='chmod +x $lib'
16567  ;;
16568
16569sunos4*)
16570  version_type=sunos
16571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16572  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16573  shlibpath_var=LD_LIBRARY_PATH
16574  shlibpath_overrides_runpath=yes
16575  if test "$with_gnu_ld" = yes; then
16576    need_lib_prefix=no
16577  fi
16578  need_version=yes
16579  ;;
16580
16581sysv4 | sysv4.3*)
16582  version_type=linux
16583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16584  soname_spec='${libname}${release}${shared_ext}$major'
16585  shlibpath_var=LD_LIBRARY_PATH
16586  case $host_vendor in
16587    sni)
16588      shlibpath_overrides_runpath=no
16589      need_lib_prefix=no
16590      export_dynamic_flag_spec='${wl}-Blargedynsym'
16591      runpath_var=LD_RUN_PATH
16592      ;;
16593    siemens)
16594      need_lib_prefix=no
16595      ;;
16596    motorola)
16597      need_lib_prefix=no
16598      need_version=no
16599      shlibpath_overrides_runpath=no
16600      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16601      ;;
16602  esac
16603  ;;
16604
16605sysv4*MP*)
16606  if test -d /usr/nec ;then
16607    version_type=linux
16608    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16609    soname_spec='$libname${shared_ext}.$major'
16610    shlibpath_var=LD_LIBRARY_PATH
16611  fi
16612  ;;
16613
16614sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16615  version_type=freebsd-elf
16616  need_lib_prefix=no
16617  need_version=no
16618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16619  soname_spec='${libname}${release}${shared_ext}$major'
16620  shlibpath_var=LD_LIBRARY_PATH
16621  hardcode_into_libs=yes
16622  if test "$with_gnu_ld" = yes; then
16623    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16624    shlibpath_overrides_runpath=no
16625  else
16626    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16627    shlibpath_overrides_runpath=yes
16628    case $host_os in
16629      sco3.2v5*)
16630        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16631	;;
16632    esac
16633  fi
16634  sys_lib_dlsearch_path_spec='/usr/lib'
16635  ;;
16636
16637uts4*)
16638  version_type=linux
16639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16640  soname_spec='${libname}${release}${shared_ext}$major'
16641  shlibpath_var=LD_LIBRARY_PATH
16642  ;;
16643
16644*)
16645  dynamic_linker=no
16646  ;;
16647esac
16648{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16649echo "${ECHO_T}$dynamic_linker" >&6; }
16650test "$dynamic_linker" = no && can_build_shared=no
16651
16652variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16653if test "$GCC" = yes; then
16654  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16655fi
16656
16657{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16658echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16659hardcode_action_F77=
16660if test -n "$hardcode_libdir_flag_spec_F77" || \
16661   test -n "$runpath_var_F77" || \
16662   test "X$hardcode_automatic_F77" = "Xyes" ; then
16663
16664  # We can hardcode non-existant directories.
16665  if test "$hardcode_direct_F77" != no &&
16666     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16667     # have to relink, otherwise we might link with an installed library
16668     # when we should be linking with a yet-to-be-installed one
16669     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16670     test "$hardcode_minus_L_F77" != no; then
16671    # Linking always hardcodes the temporary library directory.
16672    hardcode_action_F77=relink
16673  else
16674    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16675    hardcode_action_F77=immediate
16676  fi
16677else
16678  # We cannot hardcode anything, or else we can only hardcode existing
16679  # directories.
16680  hardcode_action_F77=unsupported
16681fi
16682{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16683echo "${ECHO_T}$hardcode_action_F77" >&6; }
16684
16685if test "$hardcode_action_F77" = relink; then
16686  # Fast installation is not supported
16687  enable_fast_install=no
16688elif test "$shlibpath_overrides_runpath" = yes ||
16689     test "$enable_shared" = no; then
16690  # Fast installation is not necessary
16691  enable_fast_install=needless
16692fi
16693
16694
16695# The else clause should only fire when bootstrapping the
16696# libtool distribution, otherwise you forgot to ship ltmain.sh
16697# with your package, and you will get complaints that there are
16698# no rules to generate ltmain.sh.
16699if test -f "$ltmain"; then
16700  # See if we are running on zsh, and set the options which allow our commands through
16701  # without removal of \ escapes.
16702  if test -n "${ZSH_VERSION+set}" ; then
16703    setopt NO_GLOB_SUBST
16704  fi
16705  # Now quote all the things that may contain metacharacters while being
16706  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16707  # variables and quote the copies for generation of the libtool script.
16708  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16709    SED SHELL STRIP \
16710    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16711    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16712    deplibs_check_method reload_flag reload_cmds need_locks \
16713    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16714    lt_cv_sys_global_symbol_to_c_name_address \
16715    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16716    old_postinstall_cmds old_postuninstall_cmds \
16717    compiler_F77 \
16718    CC_F77 \
16719    LD_F77 \
16720    lt_prog_compiler_wl_F77 \
16721    lt_prog_compiler_pic_F77 \
16722    lt_prog_compiler_static_F77 \
16723    lt_prog_compiler_no_builtin_flag_F77 \
16724    export_dynamic_flag_spec_F77 \
16725    thread_safe_flag_spec_F77 \
16726    whole_archive_flag_spec_F77 \
16727    enable_shared_with_static_runtimes_F77 \
16728    old_archive_cmds_F77 \
16729    old_archive_from_new_cmds_F77 \
16730    predep_objects_F77 \
16731    postdep_objects_F77 \
16732    predeps_F77 \
16733    postdeps_F77 \
16734    compiler_lib_search_path_F77 \
16735    archive_cmds_F77 \
16736    archive_expsym_cmds_F77 \
16737    postinstall_cmds_F77 \
16738    postuninstall_cmds_F77 \
16739    old_archive_from_expsyms_cmds_F77 \
16740    allow_undefined_flag_F77 \
16741    no_undefined_flag_F77 \
16742    export_symbols_cmds_F77 \
16743    hardcode_libdir_flag_spec_F77 \
16744    hardcode_libdir_flag_spec_ld_F77 \
16745    hardcode_libdir_separator_F77 \
16746    hardcode_automatic_F77 \
16747    module_cmds_F77 \
16748    module_expsym_cmds_F77 \
16749    lt_cv_prog_compiler_c_o_F77 \
16750    exclude_expsyms_F77 \
16751    include_expsyms_F77; do
16752
16753    case $var in
16754    old_archive_cmds_F77 | \
16755    old_archive_from_new_cmds_F77 | \
16756    archive_cmds_F77 | \
16757    archive_expsym_cmds_F77 | \
16758    module_cmds_F77 | \
16759    module_expsym_cmds_F77 | \
16760    old_archive_from_expsyms_cmds_F77 | \
16761    export_symbols_cmds_F77 | \
16762    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16763    postinstall_cmds | postuninstall_cmds | \
16764    old_postinstall_cmds | old_postuninstall_cmds | \
16765    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16766      # Double-quote double-evaled strings.
16767      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16768      ;;
16769    *)
16770      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16771      ;;
16772    esac
16773  done
16774
16775  case $lt_echo in
16776  *'\$0 --fallback-echo"')
16777    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16778    ;;
16779  esac
16780
16781cfgfile="$ofile"
16782
16783  cat <<__EOF__ >> "$cfgfile"
16784# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16785
16786# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16787
16788# Shell to use when invoking shell scripts.
16789SHELL=$lt_SHELL
16790
16791# Whether or not to build shared libraries.
16792build_libtool_libs=$enable_shared
16793
16794# Whether or not to build static libraries.
16795build_old_libs=$enable_static
16796
16797# Whether or not to add -lc for building shared libraries.
16798build_libtool_need_lc=$archive_cmds_need_lc_F77
16799
16800# Whether or not to disallow shared libs when runtime libs are static
16801allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16802
16803# Whether or not to optimize for fast installation.
16804fast_install=$enable_fast_install
16805
16806# The host system.
16807host_alias=$host_alias
16808host=$host
16809host_os=$host_os
16810
16811# The build system.
16812build_alias=$build_alias
16813build=$build
16814build_os=$build_os
16815
16816# An echo program that does not interpret backslashes.
16817echo=$lt_echo
16818
16819# The archiver.
16820AR=$lt_AR
16821AR_FLAGS=$lt_AR_FLAGS
16822
16823# A C compiler.
16824LTCC=$lt_LTCC
16825
16826# LTCC compiler flags.
16827LTCFLAGS=$lt_LTCFLAGS
16828
16829# A language-specific compiler.
16830CC=$lt_compiler_F77
16831
16832# Is the compiler the GNU C compiler?
16833with_gcc=$GCC_F77
16834
16835# An ERE matcher.
16836EGREP=$lt_EGREP
16837
16838# The linker used to build libraries.
16839LD=$lt_LD_F77
16840
16841# Whether we need hard or soft links.
16842LN_S=$lt_LN_S
16843
16844# A BSD-compatible nm program.
16845NM=$lt_NM
16846
16847# A symbol stripping program
16848STRIP=$lt_STRIP
16849
16850# Used to examine libraries when file_magic_cmd begins "file"
16851MAGIC_CMD=$MAGIC_CMD
16852
16853# Used on cygwin: DLL creation program.
16854DLLTOOL="$DLLTOOL"
16855
16856# Used on cygwin: object dumper.
16857OBJDUMP="$OBJDUMP"
16858
16859# Used on cygwin: assembler.
16860AS="$AS"
16861
16862# The name of the directory that contains temporary libtool files.
16863objdir=$objdir
16864
16865# How to create reloadable object files.
16866reload_flag=$lt_reload_flag
16867reload_cmds=$lt_reload_cmds
16868
16869# How to pass a linker flag through the compiler.
16870wl=$lt_lt_prog_compiler_wl_F77
16871
16872# Object file suffix (normally "o").
16873objext="$ac_objext"
16874
16875# Old archive suffix (normally "a").
16876libext="$libext"
16877
16878# Shared library suffix (normally ".so").
16879shrext_cmds='$shrext_cmds'
16880
16881# Executable file suffix (normally "").
16882exeext="$exeext"
16883
16884# Additional compiler flags for building library objects.
16885pic_flag=$lt_lt_prog_compiler_pic_F77
16886pic_mode=$pic_mode
16887
16888# What is the maximum length of a command?
16889max_cmd_len=$lt_cv_sys_max_cmd_len
16890
16891# Does compiler simultaneously support -c and -o options?
16892compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16893
16894# Must we lock files when doing compilation?
16895need_locks=$lt_need_locks
16896
16897# Do we need the lib prefix for modules?
16898need_lib_prefix=$need_lib_prefix
16899
16900# Do we need a version for libraries?
16901need_version=$need_version
16902
16903# Whether dlopen is supported.
16904dlopen_support=$enable_dlopen
16905
16906# Whether dlopen of programs is supported.
16907dlopen_self=$enable_dlopen_self
16908
16909# Whether dlopen of statically linked programs is supported.
16910dlopen_self_static=$enable_dlopen_self_static
16911
16912# Compiler flag to prevent dynamic linking.
16913link_static_flag=$lt_lt_prog_compiler_static_F77
16914
16915# Compiler flag to turn off builtin functions.
16916no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16917
16918# Compiler flag to allow reflexive dlopens.
16919export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16920
16921# Compiler flag to generate shared objects directly from archives.
16922whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16923
16924# Compiler flag to generate thread-safe objects.
16925thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16926
16927# Library versioning type.
16928version_type=$version_type
16929
16930# Format of library name prefix.
16931libname_spec=$lt_libname_spec
16932
16933# List of archive names.  First name is the real one, the rest are links.
16934# The last name is the one that the linker finds with -lNAME.
16935library_names_spec=$lt_library_names_spec
16936
16937# The coded name of the library, if different from the real name.
16938soname_spec=$lt_soname_spec
16939
16940# Commands used to build and install an old-style archive.
16941RANLIB=$lt_RANLIB
16942old_archive_cmds=$lt_old_archive_cmds_F77
16943old_postinstall_cmds=$lt_old_postinstall_cmds
16944old_postuninstall_cmds=$lt_old_postuninstall_cmds
16945
16946# Create an old-style archive from a shared archive.
16947old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16948
16949# Create a temporary old-style archive to link instead of a shared archive.
16950old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16951
16952# Commands used to build and install a shared archive.
16953archive_cmds=$lt_archive_cmds_F77
16954archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16955postinstall_cmds=$lt_postinstall_cmds
16956postuninstall_cmds=$lt_postuninstall_cmds
16957
16958# Commands used to build a loadable module (assumed same as above if empty)
16959module_cmds=$lt_module_cmds_F77
16960module_expsym_cmds=$lt_module_expsym_cmds_F77
16961
16962# Commands to strip libraries.
16963old_striplib=$lt_old_striplib
16964striplib=$lt_striplib
16965
16966# Dependencies to place before the objects being linked to create a
16967# shared library.
16968predep_objects=$lt_predep_objects_F77
16969
16970# Dependencies to place after the objects being linked to create a
16971# shared library.
16972postdep_objects=$lt_postdep_objects_F77
16973
16974# Dependencies to place before the objects being linked to create a
16975# shared library.
16976predeps=$lt_predeps_F77
16977
16978# Dependencies to place after the objects being linked to create a
16979# shared library.
16980postdeps=$lt_postdeps_F77
16981
16982# The library search path used internally by the compiler when linking
16983# a shared library.
16984compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16985
16986# Method to check whether dependent libraries are shared objects.
16987deplibs_check_method=$lt_deplibs_check_method
16988
16989# Command to use when deplibs_check_method == file_magic.
16990file_magic_cmd=$lt_file_magic_cmd
16991
16992# Flag that allows shared libraries with undefined symbols to be built.
16993allow_undefined_flag=$lt_allow_undefined_flag_F77
16994
16995# Flag that forces no undefined symbols.
16996no_undefined_flag=$lt_no_undefined_flag_F77
16997
16998# Commands used to finish a libtool library installation in a directory.
16999finish_cmds=$lt_finish_cmds
17000
17001# Same as above, but a single script fragment to be evaled but not shown.
17002finish_eval=$lt_finish_eval
17003
17004# Take the output of nm and produce a listing of raw symbols and C names.
17005global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17006
17007# Transform the output of nm in a proper C declaration
17008global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17009
17010# Transform the output of nm in a C name address pair
17011global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17012
17013# This is the shared library runtime path variable.
17014runpath_var=$runpath_var
17015
17016# This is the shared library path variable.
17017shlibpath_var=$shlibpath_var
17018
17019# Is shlibpath searched before the hard-coded library search path?
17020shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17021
17022# How to hardcode a shared library path into an executable.
17023hardcode_action=$hardcode_action_F77
17024
17025# Whether we should hardcode library paths into libraries.
17026hardcode_into_libs=$hardcode_into_libs
17027
17028# Flag to hardcode \$libdir into a binary during linking.
17029# This must work even if \$libdir does not exist.
17030hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17031
17032# If ld is used when linking, flag to hardcode \$libdir into
17033# a binary during linking. This must work even if \$libdir does
17034# not exist.
17035hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17036
17037# Whether we need a single -rpath flag with a separated argument.
17038hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17039
17040# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17041# resulting binary.
17042hardcode_direct=$hardcode_direct_F77
17043
17044# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17045# resulting binary.
17046hardcode_minus_L=$hardcode_minus_L_F77
17047
17048# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17049# the resulting binary.
17050hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17051
17052# Set to yes if building a shared library automatically hardcodes DIR into the library
17053# and all subsequent libraries and executables linked against it.
17054hardcode_automatic=$hardcode_automatic_F77
17055
17056# Variables whose values should be saved in libtool wrapper scripts and
17057# restored at relink time.
17058variables_saved_for_relink="$variables_saved_for_relink"
17059
17060# Whether libtool must link a program against all its dependency libraries.
17061link_all_deplibs=$link_all_deplibs_F77
17062
17063# Compile-time system search path for libraries
17064sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17065
17066# Run-time system search path for libraries
17067sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17068
17069# Fix the shell variable \$srcfile for the compiler.
17070fix_srcfile_path="$fix_srcfile_path_F77"
17071
17072# Set to yes if exported symbols are required.
17073always_export_symbols=$always_export_symbols_F77
17074
17075# The commands to list exported symbols.
17076export_symbols_cmds=$lt_export_symbols_cmds_F77
17077
17078# The commands to extract the exported symbol list from a shared archive.
17079extract_expsyms_cmds=$lt_extract_expsyms_cmds
17080
17081# Symbols that should not be listed in the preloaded symbols.
17082exclude_expsyms=$lt_exclude_expsyms_F77
17083
17084# Symbols that must always be exported.
17085include_expsyms=$lt_include_expsyms_F77
17086
17087# ### END LIBTOOL TAG CONFIG: $tagname
17088
17089__EOF__
17090
17091
17092else
17093  # If there is no Makefile yet, we rely on a make rule to execute
17094  # `config.status --recheck' to rerun these tests and create the
17095  # libtool script then.
17096  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17097  if test -f "$ltmain_in"; then
17098    test -f Makefile && make "$ltmain"
17099  fi
17100fi
17101
17102
17103ac_ext=c
17104ac_cpp='$CPP $CPPFLAGS'
17105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17107ac_compiler_gnu=$ac_cv_c_compiler_gnu
17108
17109CC="$lt_save_CC"
17110
17111	else
17112	  tagname=""
17113	fi
17114	;;
17115
17116      GCJ)
17117	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17118
17119
17120# Source file extension for Java test sources.
17121ac_ext=java
17122
17123# Object file extension for compiled Java test sources.
17124objext=o
17125objext_GCJ=$objext
17126
17127# Code to be used in simple compile tests
17128lt_simple_compile_test_code="class foo {}\n"
17129
17130# Code to be used in simple link tests
17131lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17132
17133# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17134
17135# If no C compiler was specified, use CC.
17136LTCC=${LTCC-"$CC"}
17137
17138# If no C compiler flags were specified, use CFLAGS.
17139LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17140
17141# Allow CC to be a program name with arguments.
17142compiler=$CC
17143
17144
17145# save warnings/boilerplate of simple test code
17146ac_outfile=conftest.$ac_objext
17147printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17148eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17149_lt_compiler_boilerplate=`cat conftest.err`
17150$rm conftest*
17151
17152ac_outfile=conftest.$ac_objext
17153printf "$lt_simple_link_test_code" >conftest.$ac_ext
17154eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17155_lt_linker_boilerplate=`cat conftest.err`
17156$rm conftest*
17157
17158
17159# Allow CC to be a program name with arguments.
17160lt_save_CC="$CC"
17161CC=${GCJ-"gcj"}
17162compiler=$CC
17163compiler_GCJ=$CC
17164for cc_temp in $compiler""; do
17165  case $cc_temp in
17166    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17167    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17168    \-*) ;;
17169    *) break;;
17170  esac
17171done
17172cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17173
17174
17175# GCJ did not exist at the time GCC didn't implicitly link libc in.
17176archive_cmds_need_lc_GCJ=no
17177
17178old_archive_cmds_GCJ=$old_archive_cmds
17179
17180
17181lt_prog_compiler_no_builtin_flag_GCJ=
17182
17183if test "$GCC" = yes; then
17184  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17185
17186
17187{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17188echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17189if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17190  echo $ECHO_N "(cached) $ECHO_C" >&6
17191else
17192  lt_cv_prog_compiler_rtti_exceptions=no
17193  ac_outfile=conftest.$ac_objext
17194   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17195   lt_compiler_flag="-fno-rtti -fno-exceptions"
17196   # Insert the option either (1) after the last *FLAGS variable, or
17197   # (2) before a word containing "conftest.", or (3) at the end.
17198   # Note that $ac_compile itself does not contain backslashes and begins
17199   # with a dollar sign (not a hyphen), so the echo should work correctly.
17200   # The option is referenced via a variable to avoid confusing sed.
17201   lt_compile=`echo "$ac_compile" | $SED \
17202   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17203   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17204   -e 's:$: $lt_compiler_flag:'`
17205   (eval echo "\"\$as_me:17205: $lt_compile\"" >&5)
17206   (eval "$lt_compile" 2>conftest.err)
17207   ac_status=$?
17208   cat conftest.err >&5
17209   echo "$as_me:17209: \$? = $ac_status" >&5
17210   if (exit $ac_status) && test -s "$ac_outfile"; then
17211     # The compiler can only warn and ignore the option if not recognized
17212     # So say no if there are warnings other than the usual output.
17213     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17214     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17215     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17216       lt_cv_prog_compiler_rtti_exceptions=yes
17217     fi
17218   fi
17219   $rm conftest*
17220
17221fi
17222{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17223echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17224
17225if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17226    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17227else
17228    :
17229fi
17230
17231fi
17232
17233lt_prog_compiler_wl_GCJ=
17234lt_prog_compiler_pic_GCJ=
17235lt_prog_compiler_static_GCJ=
17236
17237{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17238echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17239
17240  if test "$GCC" = yes; then
17241    lt_prog_compiler_wl_GCJ='-Wl,'
17242    lt_prog_compiler_static_GCJ='-static'
17243
17244    case $host_os in
17245      aix*)
17246      # All AIX code is PIC.
17247      if test "$host_cpu" = ia64; then
17248	# AIX 5 now supports IA64 processor
17249	lt_prog_compiler_static_GCJ='-Bstatic'
17250      fi
17251      ;;
17252
17253    amigaos*)
17254      # FIXME: we need at least 68020 code to build shared libraries, but
17255      # adding the `-m68020' flag to GCC prevents building anything better,
17256      # like `-m68040'.
17257      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17258      ;;
17259
17260    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17261      # PIC is the default for these OSes.
17262      ;;
17263
17264    mingw* | pw32* | os2*)
17265      # This hack is so that the source file can tell whether it is being
17266      # built for inclusion in a dll (and should export symbols for example).
17267      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17268      ;;
17269
17270    darwin* | rhapsody*)
17271      # PIC is the default on this platform
17272      # Common symbols not allowed in MH_DYLIB files
17273      lt_prog_compiler_pic_GCJ='-fno-common'
17274      ;;
17275
17276    interix3*)
17277      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17278      # Instead, we relocate shared libraries at runtime.
17279      ;;
17280
17281    msdosdjgpp*)
17282      # Just because we use GCC doesn't mean we suddenly get shared libraries
17283      # on systems that don't support them.
17284      lt_prog_compiler_can_build_shared_GCJ=no
17285      enable_shared=no
17286      ;;
17287
17288    sysv4*MP*)
17289      if test -d /usr/nec; then
17290	lt_prog_compiler_pic_GCJ=-Kconform_pic
17291      fi
17292      ;;
17293
17294    hpux*)
17295      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17296      # not for PA HP-UX.
17297      case $host_cpu in
17298      hppa*64*|ia64*)
17299	# +Z the default
17300	;;
17301      *)
17302	lt_prog_compiler_pic_GCJ='-fPIC'
17303	;;
17304      esac
17305      ;;
17306
17307    *)
17308      lt_prog_compiler_pic_GCJ='-fPIC'
17309      ;;
17310    esac
17311  else
17312    # PORTME Check for flag to pass linker flags through the system compiler.
17313    case $host_os in
17314    aix*)
17315      lt_prog_compiler_wl_GCJ='-Wl,'
17316      if test "$host_cpu" = ia64; then
17317	# AIX 5 now supports IA64 processor
17318	lt_prog_compiler_static_GCJ='-Bstatic'
17319      else
17320	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17321      fi
17322      ;;
17323      darwin*)
17324        # PIC is the default on this platform
17325        # Common symbols not allowed in MH_DYLIB files
17326       case $cc_basename in
17327         xlc*)
17328         lt_prog_compiler_pic_GCJ='-qnocommon'
17329         lt_prog_compiler_wl_GCJ='-Wl,'
17330         ;;
17331       esac
17332       ;;
17333
17334    mingw* | pw32* | os2*)
17335      # This hack is so that the source file can tell whether it is being
17336      # built for inclusion in a dll (and should export symbols for example).
17337      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17338      ;;
17339
17340    hpux9* | hpux10* | hpux11*)
17341      lt_prog_compiler_wl_GCJ='-Wl,'
17342      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17343      # not for PA HP-UX.
17344      case $host_cpu in
17345      hppa*64*|ia64*)
17346	# +Z the default
17347	;;
17348      *)
17349	lt_prog_compiler_pic_GCJ='+Z'
17350	;;
17351      esac
17352      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17353      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17354      ;;
17355
17356    irix5* | irix6* | nonstopux*)
17357      lt_prog_compiler_wl_GCJ='-Wl,'
17358      # PIC (with -KPIC) is the default.
17359      lt_prog_compiler_static_GCJ='-non_shared'
17360      ;;
17361
17362    newsos6)
17363      lt_prog_compiler_pic_GCJ='-KPIC'
17364      lt_prog_compiler_static_GCJ='-Bstatic'
17365      ;;
17366
17367    linux* | k*bsd*-gnu)
17368      case $cc_basename in
17369      icc* | ecc*)
17370	lt_prog_compiler_wl_GCJ='-Wl,'
17371	lt_prog_compiler_pic_GCJ='-KPIC'
17372	lt_prog_compiler_static_GCJ='-static'
17373        ;;
17374      pgcc* | pgf77* | pgf90* | pgf95*)
17375        # Portland Group compilers (*not* the Pentium gcc compiler,
17376	# which looks to be a dead project)
17377	lt_prog_compiler_wl_GCJ='-Wl,'
17378	lt_prog_compiler_pic_GCJ='-fpic'
17379	lt_prog_compiler_static_GCJ='-Bstatic'
17380        ;;
17381      ccc*)
17382        lt_prog_compiler_wl_GCJ='-Wl,'
17383        # All Alpha code is PIC.
17384        lt_prog_compiler_static_GCJ='-non_shared'
17385        ;;
17386      esac
17387      ;;
17388
17389    osf3* | osf4* | osf5*)
17390      lt_prog_compiler_wl_GCJ='-Wl,'
17391      # All OSF/1 code is PIC.
17392      lt_prog_compiler_static_GCJ='-non_shared'
17393      ;;
17394
17395    solaris*)
17396      lt_prog_compiler_pic_GCJ='-KPIC'
17397      lt_prog_compiler_static_GCJ='-Bstatic'
17398      case $cc_basename in
17399      f77* | f90* | f95*)
17400	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17401      *)
17402	lt_prog_compiler_wl_GCJ='-Wl,';;
17403      esac
17404      ;;
17405
17406    sunos4*)
17407      lt_prog_compiler_wl_GCJ='-Qoption ld '
17408      lt_prog_compiler_pic_GCJ='-PIC'
17409      lt_prog_compiler_static_GCJ='-Bstatic'
17410      ;;
17411
17412    sysv4 | sysv4.2uw2* | sysv4.3*)
17413      lt_prog_compiler_wl_GCJ='-Wl,'
17414      lt_prog_compiler_pic_GCJ='-KPIC'
17415      lt_prog_compiler_static_GCJ='-Bstatic'
17416      ;;
17417
17418    sysv4*MP*)
17419      if test -d /usr/nec ;then
17420	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17421	lt_prog_compiler_static_GCJ='-Bstatic'
17422      fi
17423      ;;
17424
17425    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17426      lt_prog_compiler_wl_GCJ='-Wl,'
17427      lt_prog_compiler_pic_GCJ='-KPIC'
17428      lt_prog_compiler_static_GCJ='-Bstatic'
17429      ;;
17430
17431    unicos*)
17432      lt_prog_compiler_wl_GCJ='-Wl,'
17433      lt_prog_compiler_can_build_shared_GCJ=no
17434      ;;
17435
17436    uts4*)
17437      lt_prog_compiler_pic_GCJ='-pic'
17438      lt_prog_compiler_static_GCJ='-Bstatic'
17439      ;;
17440
17441    *)
17442      lt_prog_compiler_can_build_shared_GCJ=no
17443      ;;
17444    esac
17445  fi
17446
17447{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17448echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17449
17450#
17451# Check to make sure the PIC flag actually works.
17452#
17453if test -n "$lt_prog_compiler_pic_GCJ"; then
17454
17455{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17456echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17457if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17458  echo $ECHO_N "(cached) $ECHO_C" >&6
17459else
17460  lt_prog_compiler_pic_works_GCJ=no
17461  ac_outfile=conftest.$ac_objext
17462   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17463   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17464   # Insert the option either (1) after the last *FLAGS variable, or
17465   # (2) before a word containing "conftest.", or (3) at the end.
17466   # Note that $ac_compile itself does not contain backslashes and begins
17467   # with a dollar sign (not a hyphen), so the echo should work correctly.
17468   # The option is referenced via a variable to avoid confusing sed.
17469   lt_compile=`echo "$ac_compile" | $SED \
17470   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17471   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17472   -e 's:$: $lt_compiler_flag:'`
17473   (eval echo "\"\$as_me:17473: $lt_compile\"" >&5)
17474   (eval "$lt_compile" 2>conftest.err)
17475   ac_status=$?
17476   cat conftest.err >&5
17477   echo "$as_me:17477: \$? = $ac_status" >&5
17478   if (exit $ac_status) && test -s "$ac_outfile"; then
17479     # The compiler can only warn and ignore the option if not recognized
17480     # So say no if there are warnings other than the usual output.
17481     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17482     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17483     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17484       lt_prog_compiler_pic_works_GCJ=yes
17485     fi
17486   fi
17487   $rm conftest*
17488
17489fi
17490{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17491echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17492
17493if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17494    case $lt_prog_compiler_pic_GCJ in
17495     "" | " "*) ;;
17496     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17497     esac
17498else
17499    lt_prog_compiler_pic_GCJ=
17500     lt_prog_compiler_can_build_shared_GCJ=no
17501fi
17502
17503fi
17504case $host_os in
17505  # For platforms which do not support PIC, -DPIC is meaningless:
17506  *djgpp*)
17507    lt_prog_compiler_pic_GCJ=
17508    ;;
17509  *)
17510    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17511    ;;
17512esac
17513
17514#
17515# Check to make sure the static flag actually works.
17516#
17517wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17518{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17519echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17520if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17521  echo $ECHO_N "(cached) $ECHO_C" >&6
17522else
17523  lt_prog_compiler_static_works_GCJ=no
17524   save_LDFLAGS="$LDFLAGS"
17525   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17526   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17527   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17528     # The linker can only warn and ignore the option if not recognized
17529     # So say no if there are warnings
17530     if test -s conftest.err; then
17531       # Append any errors to the config.log.
17532       cat conftest.err 1>&5
17533       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17534       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17535       if diff conftest.exp conftest.er2 >/dev/null; then
17536         lt_prog_compiler_static_works_GCJ=yes
17537       fi
17538     else
17539       lt_prog_compiler_static_works_GCJ=yes
17540     fi
17541   fi
17542   $rm conftest*
17543   LDFLAGS="$save_LDFLAGS"
17544
17545fi
17546{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17547echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17548
17549if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17550    :
17551else
17552    lt_prog_compiler_static_GCJ=
17553fi
17554
17555
17556{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17557echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17558if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17559  echo $ECHO_N "(cached) $ECHO_C" >&6
17560else
17561  lt_cv_prog_compiler_c_o_GCJ=no
17562   $rm -r conftest 2>/dev/null
17563   mkdir conftest
17564   cd conftest
17565   mkdir out
17566   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17567
17568   lt_compiler_flag="-o out/conftest2.$ac_objext"
17569   # Insert the option either (1) after the last *FLAGS variable, or
17570   # (2) before a word containing "conftest.", or (3) at the end.
17571   # Note that $ac_compile itself does not contain backslashes and begins
17572   # with a dollar sign (not a hyphen), so the echo should work correctly.
17573   lt_compile=`echo "$ac_compile" | $SED \
17574   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17575   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17576   -e 's:$: $lt_compiler_flag:'`
17577   (eval echo "\"\$as_me:17577: $lt_compile\"" >&5)
17578   (eval "$lt_compile" 2>out/conftest.err)
17579   ac_status=$?
17580   cat out/conftest.err >&5
17581   echo "$as_me:17581: \$? = $ac_status" >&5
17582   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17583   then
17584     # The compiler can only warn and ignore the option if not recognized
17585     # So say no if there are warnings
17586     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17587     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17588     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17589       lt_cv_prog_compiler_c_o_GCJ=yes
17590     fi
17591   fi
17592   chmod u+w . 2>&5
17593   $rm conftest*
17594   # SGI C++ compiler will create directory out/ii_files/ for
17595   # template instantiation
17596   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17597   $rm out/* && rmdir out
17598   cd ..
17599   rmdir conftest
17600   $rm conftest*
17601
17602fi
17603{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17604echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17605
17606
17607hard_links="nottested"
17608if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17609  # do not overwrite the value of need_locks provided by the user
17610  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17611echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17612  hard_links=yes
17613  $rm conftest*
17614  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17615  touch conftest.a
17616  ln conftest.a conftest.b 2>&5 || hard_links=no
17617  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17618  { echo "$as_me:$LINENO: result: $hard_links" >&5
17619echo "${ECHO_T}$hard_links" >&6; }
17620  if test "$hard_links" = no; then
17621    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17622echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17623    need_locks=warn
17624  fi
17625else
17626  need_locks=no
17627fi
17628
17629{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17630echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17631
17632  runpath_var=
17633  allow_undefined_flag_GCJ=
17634  enable_shared_with_static_runtimes_GCJ=no
17635  archive_cmds_GCJ=
17636  archive_expsym_cmds_GCJ=
17637  old_archive_From_new_cmds_GCJ=
17638  old_archive_from_expsyms_cmds_GCJ=
17639  export_dynamic_flag_spec_GCJ=
17640  whole_archive_flag_spec_GCJ=
17641  thread_safe_flag_spec_GCJ=
17642  hardcode_libdir_flag_spec_GCJ=
17643  hardcode_libdir_flag_spec_ld_GCJ=
17644  hardcode_libdir_separator_GCJ=
17645  hardcode_direct_GCJ=no
17646  hardcode_minus_L_GCJ=no
17647  hardcode_shlibpath_var_GCJ=unsupported
17648  link_all_deplibs_GCJ=unknown
17649  hardcode_automatic_GCJ=no
17650  module_cmds_GCJ=
17651  module_expsym_cmds_GCJ=
17652  always_export_symbols_GCJ=no
17653  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17654  # include_expsyms should be a list of space-separated symbols to be *always*
17655  # included in the symbol list
17656  include_expsyms_GCJ=
17657  # exclude_expsyms can be an extended regexp of symbols to exclude
17658  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17659  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17660  # as well as any symbol that contains `d'.
17661  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17662  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17663  # platforms (ab)use it in PIC code, but their linkers get confused if
17664  # the symbol is explicitly referenced.  Since portable code cannot
17665  # rely on this symbol name, it's probably fine to never include it in
17666  # preloaded symbol tables.
17667  extract_expsyms_cmds=
17668  # Just being paranoid about ensuring that cc_basename is set.
17669  for cc_temp in $compiler""; do
17670  case $cc_temp in
17671    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17672    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17673    \-*) ;;
17674    *) break;;
17675  esac
17676done
17677cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17678
17679  case $host_os in
17680  cygwin* | mingw* | pw32*)
17681    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17682    # When not using gcc, we currently assume that we are using
17683    # Microsoft Visual C++.
17684    if test "$GCC" != yes; then
17685      with_gnu_ld=no
17686    fi
17687    ;;
17688  interix*)
17689    # we just hope/assume this is gcc and not c89 (= MSVC++)
17690    with_gnu_ld=yes
17691    ;;
17692  openbsd*)
17693    with_gnu_ld=no
17694    ;;
17695  esac
17696
17697  ld_shlibs_GCJ=yes
17698  if test "$with_gnu_ld" = yes; then
17699    # If archive_cmds runs LD, not CC, wlarc should be empty
17700    wlarc='${wl}'
17701
17702    # Set some defaults for GNU ld with shared library support. These
17703    # are reset later if shared libraries are not supported. Putting them
17704    # here allows them to be overridden if necessary.
17705    runpath_var=LD_RUN_PATH
17706    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17707    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17708    # ancient GNU ld didn't support --whole-archive et. al.
17709    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17710	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17711      else
17712  	whole_archive_flag_spec_GCJ=
17713    fi
17714    supports_anon_versioning=no
17715    case `$LD -v 2>/dev/null` in
17716      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17717      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17718      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17719      *\ 2.11.*) ;; # other 2.11 versions
17720      *) supports_anon_versioning=yes ;;
17721    esac
17722
17723    # See if GNU ld supports shared libraries.
17724    case $host_os in
17725    aix3* | aix4* | aix5*)
17726      # On AIX/PPC, the GNU linker is very broken
17727      if test "$host_cpu" != ia64; then
17728	ld_shlibs_GCJ=no
17729	cat <<EOF 1>&2
17730
17731*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17732*** to be unable to reliably create shared libraries on AIX.
17733*** Therefore, libtool is disabling shared libraries support.  If you
17734*** really care for shared libraries, you may want to modify your PATH
17735*** so that a non-GNU linker is found, and then restart.
17736
17737EOF
17738      fi
17739      ;;
17740
17741    amigaos*)
17742      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)'
17743      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17744      hardcode_minus_L_GCJ=yes
17745
17746      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17747      # that the semantics of dynamic libraries on AmigaOS, at least up
17748      # to version 4, is to share data among multiple programs linked
17749      # with the same dynamic library.  Since this doesn't match the
17750      # behavior of shared libraries on other platforms, we can't use
17751      # them.
17752      ld_shlibs_GCJ=no
17753      ;;
17754
17755    beos*)
17756      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17757	allow_undefined_flag_GCJ=unsupported
17758	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17759	# support --undefined.  This deserves some investigation.  FIXME
17760	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17761      else
17762	ld_shlibs_GCJ=no
17763      fi
17764      ;;
17765
17766    cygwin* | mingw* | pw32*)
17767      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17768      # as there is no search path for DLLs.
17769      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17770      allow_undefined_flag_GCJ=unsupported
17771      always_export_symbols_GCJ=no
17772      enable_shared_with_static_runtimes_GCJ=yes
17773      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17774
17775      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17776        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17777	# If the export-symbols file already is a .def file (1st line
17778	# is EXPORTS), use it as is; otherwise, prepend...
17779	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17780	  cp $export_symbols $output_objdir/$soname.def;
17781	else
17782	  echo EXPORTS > $output_objdir/$soname.def;
17783	  cat $export_symbols >> $output_objdir/$soname.def;
17784	fi~
17785	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17786      else
17787	ld_shlibs_GCJ=no
17788      fi
17789      ;;
17790
17791    interix3*)
17792      hardcode_direct_GCJ=no
17793      hardcode_shlibpath_var_GCJ=no
17794      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17795      export_dynamic_flag_spec_GCJ='${wl}-E'
17796      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17797      # Instead, shared libraries are loaded at an image base (0x10000000 by
17798      # default) and relocated if they conflict, which is a slow very memory
17799      # consuming and fragmenting process.  To avoid this, we pick a random,
17800      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17801      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17802      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'
17803      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'
17804      ;;
17805
17806    linux* | k*bsd*-gnu)
17807      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17808	tmp_addflag=
17809	case $cc_basename,$host_cpu in
17810	pgcc*)				# Portland Group C compiler
17811	  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'
17812	  tmp_addflag=' $pic_flag'
17813	  ;;
17814	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17815	  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'
17816	  tmp_addflag=' $pic_flag -Mnomain' ;;
17817	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17818	  tmp_addflag=' -i_dynamic' ;;
17819	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17820	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17821	ifc* | ifort*)			# Intel Fortran compiler
17822	  tmp_addflag=' -nofor_main' ;;
17823	esac
17824	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17825
17826	if test $supports_anon_versioning = yes; then
17827	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17828  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17829  $echo "local: *; };" >> $output_objdir/$libname.ver~
17830	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17831	fi
17832	link_all_deplibs_GCJ=no
17833      else
17834	ld_shlibs_GCJ=no
17835      fi
17836      ;;
17837
17838    netbsd* | netbsdelf*-gnu)
17839      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17840	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17841	wlarc=
17842      else
17843	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17844	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17845      fi
17846      ;;
17847
17848    solaris*)
17849      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17850	ld_shlibs_GCJ=no
17851	cat <<EOF 1>&2
17852
17853*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17854*** create shared libraries on Solaris systems.  Therefore, libtool
17855*** is disabling shared libraries support.  We urge you to upgrade GNU
17856*** binutils to release 2.9.1 or newer.  Another option is to modify
17857*** your PATH or compiler configuration so that the native linker is
17858*** used, and then restart.
17859
17860EOF
17861      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17862	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17863	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17864      else
17865	ld_shlibs_GCJ=no
17866      fi
17867      ;;
17868
17869    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17870      case `$LD -v 2>&1` in
17871        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17872	ld_shlibs_GCJ=no
17873	cat <<_LT_EOF 1>&2
17874
17875*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17876*** reliably create shared libraries on SCO systems.  Therefore, libtool
17877*** is disabling shared libraries support.  We urge you to upgrade GNU
17878*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17879*** your PATH or compiler configuration so that the native linker is
17880*** used, and then restart.
17881
17882_LT_EOF
17883	;;
17884	*)
17885	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17886	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17887	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17888	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17889	  else
17890	    ld_shlibs_GCJ=no
17891	  fi
17892	;;
17893      esac
17894      ;;
17895
17896    sunos4*)
17897      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17898      wlarc=
17899      hardcode_direct_GCJ=yes
17900      hardcode_shlibpath_var_GCJ=no
17901      ;;
17902
17903    *)
17904      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17905	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17906	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17907      else
17908	ld_shlibs_GCJ=no
17909      fi
17910      ;;
17911    esac
17912
17913    if test "$ld_shlibs_GCJ" = no; then
17914      runpath_var=
17915      hardcode_libdir_flag_spec_GCJ=
17916      export_dynamic_flag_spec_GCJ=
17917      whole_archive_flag_spec_GCJ=
17918    fi
17919  else
17920    # PORTME fill in a description of your system's linker (not GNU ld)
17921    case $host_os in
17922    aix3*)
17923      allow_undefined_flag_GCJ=unsupported
17924      always_export_symbols_GCJ=yes
17925      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'
17926      # Note: this linker hardcodes the directories in LIBPATH if there
17927      # are no directories specified by -L.
17928      hardcode_minus_L_GCJ=yes
17929      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17930	# Neither direct hardcoding nor static linking is supported with a
17931	# broken collect2.
17932	hardcode_direct_GCJ=unsupported
17933      fi
17934      ;;
17935
17936    aix4* | aix5*)
17937      if test "$host_cpu" = ia64; then
17938	# On IA64, the linker does run time linking by default, so we don't
17939	# have to do anything special.
17940	aix_use_runtimelinking=no
17941	exp_sym_flag='-Bexport'
17942	no_entry_flag=""
17943      else
17944	# If we're using GNU nm, then we don't want the "-C" option.
17945	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17946	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17947	  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'
17948	else
17949	  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'
17950	fi
17951	aix_use_runtimelinking=no
17952
17953	# Test if we are trying to use run time linking or normal
17954	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17955	# need to do runtime linking.
17956	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17957	  for ld_flag in $LDFLAGS; do
17958  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17959  	    aix_use_runtimelinking=yes
17960  	    break
17961  	  fi
17962	  done
17963	  ;;
17964	esac
17965
17966	exp_sym_flag='-bexport'
17967	no_entry_flag='-bnoentry'
17968      fi
17969
17970      # When large executables or shared objects are built, AIX ld can
17971      # have problems creating the table of contents.  If linking a library
17972      # or program results in "error TOC overflow" add -mminimal-toc to
17973      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17974      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17975
17976      archive_cmds_GCJ=''
17977      hardcode_direct_GCJ=yes
17978      hardcode_libdir_separator_GCJ=':'
17979      link_all_deplibs_GCJ=yes
17980
17981      if test "$GCC" = yes; then
17982	case $host_os in aix4.[012]|aix4.[012].*)
17983	# We only want to do this on AIX 4.2 and lower, the check
17984	# below for broken collect2 doesn't work under 4.3+
17985	  collect2name=`${CC} -print-prog-name=collect2`
17986	  if test -f "$collect2name" && \
17987  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17988	  then
17989  	  # We have reworked collect2
17990  	  hardcode_direct_GCJ=yes
17991	  else
17992  	  # We have old collect2
17993  	  hardcode_direct_GCJ=unsupported
17994  	  # It fails to find uninstalled libraries when the uninstalled
17995  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17996  	  # to unsupported forces relinking
17997  	  hardcode_minus_L_GCJ=yes
17998  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17999  	  hardcode_libdir_separator_GCJ=
18000	  fi
18001	  ;;
18002	esac
18003	shared_flag='-shared'
18004	if test "$aix_use_runtimelinking" = yes; then
18005	  shared_flag="$shared_flag "'${wl}-G'
18006	fi
18007      else
18008	# not using gcc
18009	if test "$host_cpu" = ia64; then
18010  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18011  	# chokes on -Wl,-G. The following line is correct:
18012	  shared_flag='-G'
18013	else
18014	  if test "$aix_use_runtimelinking" = yes; then
18015	    shared_flag='${wl}-G'
18016	  else
18017	    shared_flag='${wl}-bM:SRE'
18018	  fi
18019	fi
18020      fi
18021
18022      # It seems that -bexpall does not export symbols beginning with
18023      # underscore (_), so it is better to generate a list of symbols to export.
18024      always_export_symbols_GCJ=yes
18025      if test "$aix_use_runtimelinking" = yes; then
18026	# Warning - without using the other runtime loading flags (-brtl),
18027	# -berok will link without error, but may produce a broken library.
18028	allow_undefined_flag_GCJ='-berok'
18029       # Determine the default libpath from the value encoded in an empty executable.
18030       cat >conftest.$ac_ext <<_ACEOF
18031/* confdefs.h.  */
18032_ACEOF
18033cat confdefs.h >>conftest.$ac_ext
18034cat >>conftest.$ac_ext <<_ACEOF
18035/* end confdefs.h.  */
18036
18037int
18038main ()
18039{
18040
18041  ;
18042  return 0;
18043}
18044_ACEOF
18045rm -f conftest.$ac_objext conftest$ac_exeext
18046if { (ac_try="$ac_link"
18047case "(($ac_try" in
18048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049  *) ac_try_echo=$ac_try;;
18050esac
18051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052  (eval "$ac_link") 2>conftest.er1
18053  ac_status=$?
18054  grep -v '^ *+' conftest.er1 >conftest.err
18055  rm -f conftest.er1
18056  cat conftest.err >&5
18057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058  (exit $ac_status); } && {
18059	 test -z "$ac_c_werror_flag" ||
18060	 test ! -s conftest.err
18061       } && test -s conftest$ac_exeext &&
18062       $as_test_x conftest$ac_exeext; then
18063
18064aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18065}'`
18066# Check for a 64-bit object if we didn't find anything.
18067if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18068}'`; fi
18069else
18070  echo "$as_me: failed program was:" >&5
18071sed 's/^/| /' conftest.$ac_ext >&5
18072
18073
18074fi
18075
18076rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18077      conftest$ac_exeext conftest.$ac_ext
18078if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18079
18080       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18081	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"
18082       else
18083	if test "$host_cpu" = ia64; then
18084	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18085	  allow_undefined_flag_GCJ="-z nodefs"
18086	  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"
18087	else
18088	 # Determine the default libpath from the value encoded in an empty executable.
18089	 cat >conftest.$ac_ext <<_ACEOF
18090/* confdefs.h.  */
18091_ACEOF
18092cat confdefs.h >>conftest.$ac_ext
18093cat >>conftest.$ac_ext <<_ACEOF
18094/* end confdefs.h.  */
18095
18096int
18097main ()
18098{
18099
18100  ;
18101  return 0;
18102}
18103_ACEOF
18104rm -f conftest.$ac_objext conftest$ac_exeext
18105if { (ac_try="$ac_link"
18106case "(($ac_try" in
18107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108  *) ac_try_echo=$ac_try;;
18109esac
18110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111  (eval "$ac_link") 2>conftest.er1
18112  ac_status=$?
18113  grep -v '^ *+' conftest.er1 >conftest.err
18114  rm -f conftest.er1
18115  cat conftest.err >&5
18116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117  (exit $ac_status); } && {
18118	 test -z "$ac_c_werror_flag" ||
18119	 test ! -s conftest.err
18120       } && test -s conftest$ac_exeext &&
18121       $as_test_x conftest$ac_exeext; then
18122
18123aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18124}'`
18125# Check for a 64-bit object if we didn't find anything.
18126if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18127}'`; fi
18128else
18129  echo "$as_me: failed program was:" >&5
18130sed 's/^/| /' conftest.$ac_ext >&5
18131
18132
18133fi
18134
18135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18136      conftest$ac_exeext conftest.$ac_ext
18137if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18138
18139	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18140	  # Warning - without using the other run time loading flags,
18141	  # -berok will link without error, but may produce a broken library.
18142	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18143	  allow_undefined_flag_GCJ=' ${wl}-berok'
18144	  # Exported symbols can be pulled into shared objects from archives
18145	  whole_archive_flag_spec_GCJ='$convenience'
18146	  archive_cmds_need_lc_GCJ=yes
18147	  # This is similar to how AIX traditionally builds its shared libraries.
18148	  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'
18149	fi
18150      fi
18151      ;;
18152
18153    amigaos*)
18154      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)'
18155      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18156      hardcode_minus_L_GCJ=yes
18157      # see comment about different semantics on the GNU ld section
18158      ld_shlibs_GCJ=no
18159      ;;
18160
18161    bsdi[45]*)
18162      export_dynamic_flag_spec_GCJ=-rdynamic
18163      ;;
18164
18165    cygwin* | mingw* | pw32*)
18166      # When not using gcc, we currently assume that we are using
18167      # Microsoft Visual C++.
18168      # hardcode_libdir_flag_spec is actually meaningless, as there is
18169      # no search path for DLLs.
18170      hardcode_libdir_flag_spec_GCJ=' '
18171      allow_undefined_flag_GCJ=unsupported
18172      # Tell ltmain to make .lib files, not .a files.
18173      libext=lib
18174      # Tell ltmain to make .dll files, not .so files.
18175      shrext_cmds=".dll"
18176      # FIXME: Setting linknames here is a bad hack.
18177      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18178      # The linker will automatically build a .lib file if we build a DLL.
18179      old_archive_From_new_cmds_GCJ='true'
18180      # FIXME: Should let the user specify the lib program.
18181      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18182      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18183      enable_shared_with_static_runtimes_GCJ=yes
18184      ;;
18185
18186    darwin* | rhapsody*)
18187      case $host_os in
18188        rhapsody* | darwin1.[012])
18189         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18190         ;;
18191       *) # Darwin 1.3 on
18192         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18193           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18194         else
18195           case ${MACOSX_DEPLOYMENT_TARGET} in
18196             10.[012])
18197               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18198               ;;
18199             10.*)
18200               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18201               ;;
18202           esac
18203         fi
18204         ;;
18205      esac
18206      archive_cmds_need_lc_GCJ=no
18207      hardcode_direct_GCJ=no
18208      hardcode_automatic_GCJ=yes
18209      hardcode_shlibpath_var_GCJ=unsupported
18210      whole_archive_flag_spec_GCJ=''
18211      link_all_deplibs_GCJ=yes
18212    if test "$GCC" = yes ; then
18213    	output_verbose_link_cmd='echo'
18214        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18215      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18216      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18217      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18218      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}'
18219    else
18220      case $cc_basename in
18221        xlc*)
18222         output_verbose_link_cmd='echo'
18223         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18224         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18225          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18226         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18227          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}'
18228          ;;
18229       *)
18230         ld_shlibs_GCJ=no
18231          ;;
18232      esac
18233    fi
18234      ;;
18235
18236    dgux*)
18237      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18238      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18239      hardcode_shlibpath_var_GCJ=no
18240      ;;
18241
18242    freebsd1*)
18243      ld_shlibs_GCJ=no
18244      ;;
18245
18246    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18247    # support.  Future versions do this automatically, but an explicit c++rt0.o
18248    # does not break anything, and helps significantly (at the cost of a little
18249    # extra space).
18250    freebsd2.2*)
18251      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18252      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18253      hardcode_direct_GCJ=yes
18254      hardcode_shlibpath_var_GCJ=no
18255      ;;
18256
18257    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18258    freebsd2*)
18259      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18260      hardcode_direct_GCJ=yes
18261      hardcode_minus_L_GCJ=yes
18262      hardcode_shlibpath_var_GCJ=no
18263      ;;
18264
18265    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18266    freebsd* | dragonfly*)
18267      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18268      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18269      hardcode_direct_GCJ=yes
18270      hardcode_shlibpath_var_GCJ=no
18271      ;;
18272
18273    hpux9*)
18274      if test "$GCC" = yes; then
18275	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'
18276      else
18277	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'
18278      fi
18279      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18280      hardcode_libdir_separator_GCJ=:
18281      hardcode_direct_GCJ=yes
18282
18283      # hardcode_minus_L: Not really in the search PATH,
18284      # but as the default location of the library.
18285      hardcode_minus_L_GCJ=yes
18286      export_dynamic_flag_spec_GCJ='${wl}-E'
18287      ;;
18288
18289    hpux10*)
18290      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18291	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18292      else
18293	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18294      fi
18295      if test "$with_gnu_ld" = no; then
18296	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18297	hardcode_libdir_separator_GCJ=:
18298
18299	hardcode_direct_GCJ=yes
18300	export_dynamic_flag_spec_GCJ='${wl}-E'
18301
18302	# hardcode_minus_L: Not really in the search PATH,
18303	# but as the default location of the library.
18304	hardcode_minus_L_GCJ=yes
18305      fi
18306      ;;
18307
18308    hpux11*)
18309      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18310	case $host_cpu in
18311	hppa*64*)
18312	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18313	  ;;
18314	ia64*)
18315	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18316	  ;;
18317	*)
18318	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18319	  ;;
18320	esac
18321      else
18322	case $host_cpu in
18323	hppa*64*)
18324	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18325	  ;;
18326	ia64*)
18327	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18328	  ;;
18329	*)
18330	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18331	  ;;
18332	esac
18333      fi
18334      if test "$with_gnu_ld" = no; then
18335	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18336	hardcode_libdir_separator_GCJ=:
18337
18338	case $host_cpu in
18339	hppa*64*|ia64*)
18340	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18341	  hardcode_direct_GCJ=no
18342	  hardcode_shlibpath_var_GCJ=no
18343	  ;;
18344	*)
18345	  hardcode_direct_GCJ=yes
18346	  export_dynamic_flag_spec_GCJ='${wl}-E'
18347
18348	  # hardcode_minus_L: Not really in the search PATH,
18349	  # but as the default location of the library.
18350	  hardcode_minus_L_GCJ=yes
18351	  ;;
18352	esac
18353      fi
18354      ;;
18355
18356    irix5* | irix6* | nonstopux*)
18357      if test "$GCC" = yes; then
18358	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'
18359      else
18360	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'
18361	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18362      fi
18363      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18364      hardcode_libdir_separator_GCJ=:
18365      link_all_deplibs_GCJ=yes
18366      ;;
18367
18368    netbsd* | netbsdelf*-gnu)
18369      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18370	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18371      else
18372	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18373      fi
18374      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18375      hardcode_direct_GCJ=yes
18376      hardcode_shlibpath_var_GCJ=no
18377      ;;
18378
18379    newsos6)
18380      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18381      hardcode_direct_GCJ=yes
18382      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18383      hardcode_libdir_separator_GCJ=:
18384      hardcode_shlibpath_var_GCJ=no
18385      ;;
18386
18387    openbsd*)
18388      hardcode_direct_GCJ=yes
18389      hardcode_shlibpath_var_GCJ=no
18390      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18391	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18392	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18393	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18394	export_dynamic_flag_spec_GCJ='${wl}-E'
18395      else
18396       case $host_os in
18397	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18398	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18399	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18400	   ;;
18401	 *)
18402	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18403	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18404	   ;;
18405       esac
18406      fi
18407      ;;
18408
18409    os2*)
18410      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18411      hardcode_minus_L_GCJ=yes
18412      allow_undefined_flag_GCJ=unsupported
18413      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'
18414      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18415      ;;
18416
18417    osf3*)
18418      if test "$GCC" = yes; then
18419	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18420	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'
18421      else
18422	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18423	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'
18424      fi
18425      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18426      hardcode_libdir_separator_GCJ=:
18427      ;;
18428
18429    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18430      if test "$GCC" = yes; then
18431	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18432	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'
18433	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18434      else
18435	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18436	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'
18437	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~
18438	$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'
18439
18440	# Both c and cxx compiler support -rpath directly
18441	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18442      fi
18443      hardcode_libdir_separator_GCJ=:
18444      ;;
18445
18446    solaris*)
18447      no_undefined_flag_GCJ=' -z text'
18448      if test "$GCC" = yes; then
18449	wlarc='${wl}'
18450	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18451	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18452	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18453      else
18454	wlarc=''
18455	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18456	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18457  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18458      fi
18459      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18460      hardcode_shlibpath_var_GCJ=no
18461      case $host_os in
18462      solaris2.[0-5] | solaris2.[0-5].*) ;;
18463      *)
18464 	# The compiler driver will combine linker options so we
18465 	# cannot just pass the convience library names through
18466 	# without $wl, iff we do not link with $LD.
18467 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18468 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18469 	case $wlarc in
18470 	'')
18471 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18472 	*)
18473 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18474 	esac ;;
18475      esac
18476      link_all_deplibs_GCJ=yes
18477      ;;
18478
18479    sunos4*)
18480      if test "x$host_vendor" = xsequent; then
18481	# Use $CC to link under sequent, because it throws in some extra .o
18482	# files that make .init and .fini sections work.
18483	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18484      else
18485	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18486      fi
18487      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18488      hardcode_direct_GCJ=yes
18489      hardcode_minus_L_GCJ=yes
18490      hardcode_shlibpath_var_GCJ=no
18491      ;;
18492
18493    sysv4)
18494      case $host_vendor in
18495	sni)
18496	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18497	  hardcode_direct_GCJ=yes # is this really true???
18498	;;
18499	siemens)
18500	  ## LD is ld it makes a PLAMLIB
18501	  ## CC just makes a GrossModule.
18502	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18503	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18504	  hardcode_direct_GCJ=no
18505        ;;
18506	motorola)
18507	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18508	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18509	;;
18510      esac
18511      runpath_var='LD_RUN_PATH'
18512      hardcode_shlibpath_var_GCJ=no
18513      ;;
18514
18515    sysv4.3*)
18516      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18517      hardcode_shlibpath_var_GCJ=no
18518      export_dynamic_flag_spec_GCJ='-Bexport'
18519      ;;
18520
18521    sysv4*MP*)
18522      if test -d /usr/nec; then
18523	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18524	hardcode_shlibpath_var_GCJ=no
18525	runpath_var=LD_RUN_PATH
18526	hardcode_runpath_var=yes
18527	ld_shlibs_GCJ=yes
18528      fi
18529      ;;
18530
18531    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18532      no_undefined_flag_GCJ='${wl}-z,text'
18533      archive_cmds_need_lc_GCJ=no
18534      hardcode_shlibpath_var_GCJ=no
18535      runpath_var='LD_RUN_PATH'
18536
18537      if test "$GCC" = yes; then
18538	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18539	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18540      else
18541	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18542	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18543      fi
18544      ;;
18545
18546    sysv5* | sco3.2v5* | sco5v6*)
18547      # Note: We can NOT use -z defs as we might desire, because we do not
18548      # link with -lc, and that would cause any symbols used from libc to
18549      # always be unresolved, which means just about no library would
18550      # ever link correctly.  If we're not using GNU ld we use -z text
18551      # though, which does catch some bad symbols but isn't as heavy-handed
18552      # as -z defs.
18553      no_undefined_flag_GCJ='${wl}-z,text'
18554      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18555      archive_cmds_need_lc_GCJ=no
18556      hardcode_shlibpath_var_GCJ=no
18557      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18558      hardcode_libdir_separator_GCJ=':'
18559      link_all_deplibs_GCJ=yes
18560      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18561      runpath_var='LD_RUN_PATH'
18562
18563      if test "$GCC" = yes; then
18564	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18565	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18566      else
18567	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18568	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18569      fi
18570      ;;
18571
18572    uts4*)
18573      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18574      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18575      hardcode_shlibpath_var_GCJ=no
18576      ;;
18577
18578    *)
18579      ld_shlibs_GCJ=no
18580      ;;
18581    esac
18582  fi
18583
18584{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18585echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18586test "$ld_shlibs_GCJ" = no && can_build_shared=no
18587
18588#
18589# Do we need to explicitly link libc?
18590#
18591case "x$archive_cmds_need_lc_GCJ" in
18592x|xyes)
18593  # Assume -lc should be added
18594  archive_cmds_need_lc_GCJ=yes
18595
18596  if test "$enable_shared" = yes && test "$GCC" = yes; then
18597    case $archive_cmds_GCJ in
18598    *'~'*)
18599      # FIXME: we may have to deal with multi-command sequences.
18600      ;;
18601    '$CC '*)
18602      # Test whether the compiler implicitly links with -lc since on some
18603      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18604      # to ld, don't add -lc before -lgcc.
18605      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18606echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18607      $rm conftest*
18608      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18609
18610      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18611  (eval $ac_compile) 2>&5
18612  ac_status=$?
18613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614  (exit $ac_status); } 2>conftest.err; then
18615        soname=conftest
18616        lib=conftest
18617        libobjs=conftest.$ac_objext
18618        deplibs=
18619        wl=$lt_prog_compiler_wl_GCJ
18620	pic_flag=$lt_prog_compiler_pic_GCJ
18621        compiler_flags=-v
18622        linker_flags=-v
18623        verstring=
18624        output_objdir=.
18625        libname=conftest
18626        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18627        allow_undefined_flag_GCJ=
18628        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18629  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18630  ac_status=$?
18631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632  (exit $ac_status); }
18633        then
18634	  archive_cmds_need_lc_GCJ=no
18635        else
18636	  archive_cmds_need_lc_GCJ=yes
18637        fi
18638        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18639      else
18640        cat conftest.err 1>&5
18641      fi
18642      $rm conftest*
18643      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18644echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18645      ;;
18646    esac
18647  fi
18648  ;;
18649esac
18650
18651{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18652echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18653library_names_spec=
18654libname_spec='lib$name'
18655soname_spec=
18656shrext_cmds=".so"
18657postinstall_cmds=
18658postuninstall_cmds=
18659finish_cmds=
18660finish_eval=
18661shlibpath_var=
18662shlibpath_overrides_runpath=unknown
18663version_type=none
18664dynamic_linker="$host_os ld.so"
18665sys_lib_dlsearch_path_spec="/lib /usr/lib"
18666if test "$GCC" = yes; then
18667  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18668  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18669    # if the path contains ";" then we assume it to be the separator
18670    # otherwise default to the standard path separator (i.e. ":") - it is
18671    # assumed that no part of a normal pathname contains ";" but that should
18672    # okay in the real world where ";" in dirpaths is itself problematic.
18673    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18674  else
18675    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18676  fi
18677else
18678  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18679fi
18680need_lib_prefix=unknown
18681hardcode_into_libs=no
18682
18683# when you set need_version to no, make sure it does not cause -set_version
18684# flags to be left without arguments
18685need_version=unknown
18686
18687case $host_os in
18688aix3*)
18689  version_type=linux
18690  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18691  shlibpath_var=LIBPATH
18692
18693  # AIX 3 has no versioning support, so we append a major version to the name.
18694  soname_spec='${libname}${release}${shared_ext}$major'
18695  ;;
18696
18697aix4* | aix5*)
18698  version_type=linux
18699  need_lib_prefix=no
18700  need_version=no
18701  hardcode_into_libs=yes
18702  if test "$host_cpu" = ia64; then
18703    # AIX 5 supports IA64
18704    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18705    shlibpath_var=LD_LIBRARY_PATH
18706  else
18707    # With GCC up to 2.95.x, collect2 would create an import file
18708    # for dependence libraries.  The import file would start with
18709    # the line `#! .'.  This would cause the generated library to
18710    # depend on `.', always an invalid library.  This was fixed in
18711    # development snapshots of GCC prior to 3.0.
18712    case $host_os in
18713      aix4 | aix4.[01] | aix4.[01].*)
18714      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18715	   echo ' yes '
18716	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18717	:
18718      else
18719	can_build_shared=no
18720      fi
18721      ;;
18722    esac
18723    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18724    # soname into executable. Probably we can add versioning support to
18725    # collect2, so additional links can be useful in future.
18726    if test "$aix_use_runtimelinking" = yes; then
18727      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18728      # instead of lib<name>.a to let people know that these are not
18729      # typical AIX shared libraries.
18730      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18731    else
18732      # We preserve .a as extension for shared libraries through AIX4.2
18733      # and later when we are not doing run time linking.
18734      library_names_spec='${libname}${release}.a $libname.a'
18735      soname_spec='${libname}${release}${shared_ext}$major'
18736    fi
18737    shlibpath_var=LIBPATH
18738  fi
18739  ;;
18740
18741amigaos*)
18742  library_names_spec='$libname.ixlibrary $libname.a'
18743  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18744  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'
18745  ;;
18746
18747beos*)
18748  library_names_spec='${libname}${shared_ext}'
18749  dynamic_linker="$host_os ld.so"
18750  shlibpath_var=LIBRARY_PATH
18751  ;;
18752
18753bsdi[45]*)
18754  version_type=linux
18755  need_version=no
18756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18757  soname_spec='${libname}${release}${shared_ext}$major'
18758  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18759  shlibpath_var=LD_LIBRARY_PATH
18760  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18761  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18762  # the default ld.so.conf also contains /usr/contrib/lib and
18763  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18764  # libtool to hard-code these into programs
18765  ;;
18766
18767cygwin* | mingw* | pw32*)
18768  version_type=windows
18769  shrext_cmds=".dll"
18770  need_version=no
18771  need_lib_prefix=no
18772
18773  case $GCC,$host_os in
18774  yes,cygwin* | yes,mingw* | yes,pw32*)
18775    library_names_spec='$libname.dll.a'
18776    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18777    postinstall_cmds='base_file=`basename \${file}`~
18778      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18779      dldir=$destdir/`dirname \$dlpath`~
18780      test -d \$dldir || mkdir -p \$dldir~
18781      $install_prog $dir/$dlname \$dldir/$dlname~
18782      chmod a+x \$dldir/$dlname'
18783    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18784      dlpath=$dir/\$dldll~
18785       $rm \$dlpath'
18786    shlibpath_overrides_runpath=yes
18787
18788    case $host_os in
18789    cygwin*)
18790      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18791      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18792      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18793      ;;
18794    mingw*)
18795      # MinGW DLLs use traditional 'lib' prefix
18796      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18797      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18798      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18799        # It is most probably a Windows format PATH printed by
18800        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18801        # path with ; separators, and with drive letters. We can handle the
18802        # drive letters (cygwin fileutils understands them), so leave them,
18803        # especially as we might pass files found there to a mingw objdump,
18804        # which wouldn't understand a cygwinified path. Ahh.
18805        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18806      else
18807        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18808      fi
18809      ;;
18810    pw32*)
18811      # pw32 DLLs use 'pw' prefix rather than 'lib'
18812      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18813      ;;
18814    esac
18815    ;;
18816
18817  *)
18818    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18819    ;;
18820  esac
18821  dynamic_linker='Win32 ld.exe'
18822  # FIXME: first we should search . and the directory the executable is in
18823  shlibpath_var=PATH
18824  ;;
18825
18826darwin* | rhapsody*)
18827  dynamic_linker="$host_os dyld"
18828  version_type=darwin
18829  need_lib_prefix=no
18830  need_version=no
18831  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18832  soname_spec='${libname}${release}${major}$shared_ext'
18833  shlibpath_overrides_runpath=yes
18834  shlibpath_var=DYLD_LIBRARY_PATH
18835  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18836  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18837  if test "$GCC" = yes; then
18838    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18839  else
18840    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18841  fi
18842  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18843  ;;
18844
18845dgux*)
18846  version_type=linux
18847  need_lib_prefix=no
18848  need_version=no
18849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18850  soname_spec='${libname}${release}${shared_ext}$major'
18851  shlibpath_var=LD_LIBRARY_PATH
18852  ;;
18853
18854freebsd1*)
18855  dynamic_linker=no
18856  ;;
18857
18858freebsd* | dragonfly*)
18859  # DragonFly does not have aout.  When/if they implement a new
18860  # versioning mechanism, adjust this.
18861  if test -x /usr/bin/objformat; then
18862    objformat=`/usr/bin/objformat`
18863  else
18864    case $host_os in
18865    freebsd[123]*) objformat=aout ;;
18866    *) objformat=elf ;;
18867    esac
18868  fi
18869  version_type=freebsd-$objformat
18870  case $version_type in
18871    freebsd-elf*)
18872      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18873      need_version=no
18874      need_lib_prefix=no
18875      ;;
18876    freebsd-*)
18877      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18878      need_version=yes
18879      ;;
18880  esac
18881  shlibpath_var=LD_LIBRARY_PATH
18882  case $host_os in
18883  freebsd2*)
18884    shlibpath_overrides_runpath=yes
18885    ;;
18886  freebsd3.[01]* | freebsdelf3.[01]*)
18887    shlibpath_overrides_runpath=yes
18888    hardcode_into_libs=yes
18889    ;;
18890  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18891  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18892    shlibpath_overrides_runpath=no
18893    hardcode_into_libs=yes
18894    ;;
18895  freebsd*) # from 4.6 on
18896    shlibpath_overrides_runpath=yes
18897    hardcode_into_libs=yes
18898    ;;
18899  esac
18900  ;;
18901
18902gnu*)
18903  version_type=linux
18904  need_lib_prefix=no
18905  need_version=no
18906  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18907  soname_spec='${libname}${release}${shared_ext}$major'
18908  shlibpath_var=LD_LIBRARY_PATH
18909  hardcode_into_libs=yes
18910  ;;
18911
18912hpux9* | hpux10* | hpux11*)
18913  # Give a soname corresponding to the major version so that dld.sl refuses to
18914  # link against other versions.
18915  version_type=sunos
18916  need_lib_prefix=no
18917  need_version=no
18918  case $host_cpu in
18919  ia64*)
18920    shrext_cmds='.so'
18921    hardcode_into_libs=yes
18922    dynamic_linker="$host_os dld.so"
18923    shlibpath_var=LD_LIBRARY_PATH
18924    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18925    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18926    soname_spec='${libname}${release}${shared_ext}$major'
18927    if test "X$HPUX_IA64_MODE" = X32; then
18928      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18929    else
18930      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18931    fi
18932    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18933    ;;
18934   hppa*64*)
18935     shrext_cmds='.sl'
18936     hardcode_into_libs=yes
18937     dynamic_linker="$host_os dld.sl"
18938     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18939     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18940     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18941     soname_spec='${libname}${release}${shared_ext}$major'
18942     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18943     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18944     ;;
18945   *)
18946    shrext_cmds='.sl'
18947    dynamic_linker="$host_os dld.sl"
18948    shlibpath_var=SHLIB_PATH
18949    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18950    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18951    soname_spec='${libname}${release}${shared_ext}$major'
18952    ;;
18953  esac
18954  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18955  postinstall_cmds='chmod 555 $lib'
18956  ;;
18957
18958interix3*)
18959  version_type=linux
18960  need_lib_prefix=no
18961  need_version=no
18962  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18963  soname_spec='${libname}${release}${shared_ext}$major'
18964  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18965  shlibpath_var=LD_LIBRARY_PATH
18966  shlibpath_overrides_runpath=no
18967  hardcode_into_libs=yes
18968  ;;
18969
18970irix5* | irix6* | nonstopux*)
18971  case $host_os in
18972    nonstopux*) version_type=nonstopux ;;
18973    *)
18974	if test "$lt_cv_prog_gnu_ld" = yes; then
18975		version_type=linux
18976	else
18977		version_type=irix
18978	fi ;;
18979  esac
18980  need_lib_prefix=no
18981  need_version=no
18982  soname_spec='${libname}${release}${shared_ext}$major'
18983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18984  case $host_os in
18985  irix5* | nonstopux*)
18986    libsuff= shlibsuff=
18987    ;;
18988  *)
18989    case $LD in # libtool.m4 will add one of these switches to LD
18990    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18991      libsuff= shlibsuff= libmagic=32-bit;;
18992    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18993      libsuff=32 shlibsuff=N32 libmagic=N32;;
18994    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18995      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18996    *) libsuff= shlibsuff= libmagic=never-match;;
18997    esac
18998    ;;
18999  esac
19000  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19001  shlibpath_overrides_runpath=no
19002  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19003  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19004  hardcode_into_libs=yes
19005  ;;
19006
19007# No shared lib support for Linux oldld, aout, or coff.
19008linux*oldld* | linux*aout* | linux*coff*)
19009  dynamic_linker=no
19010  ;;
19011
19012# This must be Linux ELF.
19013linux* | k*bsd*-gnu)
19014  version_type=linux
19015  need_lib_prefix=no
19016  need_version=no
19017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19018  soname_spec='${libname}${release}${shared_ext}$major'
19019  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19020  shlibpath_var=LD_LIBRARY_PATH
19021  shlibpath_overrides_runpath=no
19022  # This implies no fast_install, which is unacceptable.
19023  # Some rework will be needed to allow for fast_install
19024  # before this can be enabled.
19025  hardcode_into_libs=yes
19026
19027  # Append ld.so.conf contents to the search path
19028  if test -f /etc/ld.so.conf; then
19029    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19030    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19031  fi
19032
19033  # We used to test for /lib/ld.so.1 and disable shared libraries on
19034  # powerpc, because MkLinux only supported shared libraries with the
19035  # GNU dynamic linker.  Since this was broken with cross compilers,
19036  # most powerpc-linux boxes support dynamic linking these days and
19037  # people can always --disable-shared, the test was removed, and we
19038  # assume the GNU/Linux dynamic linker is in use.
19039  dynamic_linker='GNU/Linux ld.so'
19040  ;;
19041
19042netbsdelf*-gnu)
19043  version_type=linux
19044  need_lib_prefix=no
19045  need_version=no
19046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19047  soname_spec='${libname}${release}${shared_ext}$major'
19048  shlibpath_var=LD_LIBRARY_PATH
19049  shlibpath_overrides_runpath=no
19050  hardcode_into_libs=yes
19051  dynamic_linker='NetBSD ld.elf_so'
19052  ;;
19053
19054netbsd*)
19055  version_type=sunos
19056  need_lib_prefix=no
19057  need_version=no
19058  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19059    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19060    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19061    dynamic_linker='NetBSD (a.out) ld.so'
19062  else
19063    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19064    soname_spec='${libname}${release}${shared_ext}$major'
19065    dynamic_linker='NetBSD ld.elf_so'
19066  fi
19067  shlibpath_var=LD_LIBRARY_PATH
19068  shlibpath_overrides_runpath=yes
19069  hardcode_into_libs=yes
19070  ;;
19071
19072newsos6)
19073  version_type=linux
19074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19075  shlibpath_var=LD_LIBRARY_PATH
19076  shlibpath_overrides_runpath=yes
19077  ;;
19078
19079nto-qnx*)
19080  version_type=linux
19081  need_lib_prefix=no
19082  need_version=no
19083  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19084  soname_spec='${libname}${release}${shared_ext}$major'
19085  shlibpath_var=LD_LIBRARY_PATH
19086  shlibpath_overrides_runpath=yes
19087  ;;
19088
19089openbsd*)
19090  version_type=sunos
19091  sys_lib_dlsearch_path_spec="/usr/lib"
19092  need_lib_prefix=no
19093  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19094  case $host_os in
19095    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19096    *)                         need_version=no  ;;
19097  esac
19098  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19099  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19100  shlibpath_var=LD_LIBRARY_PATH
19101  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19102    case $host_os in
19103      openbsd2.[89] | openbsd2.[89].*)
19104	shlibpath_overrides_runpath=no
19105	;;
19106      *)
19107	shlibpath_overrides_runpath=yes
19108	;;
19109      esac
19110  else
19111    shlibpath_overrides_runpath=yes
19112  fi
19113  ;;
19114
19115os2*)
19116  libname_spec='$name'
19117  shrext_cmds=".dll"
19118  need_lib_prefix=no
19119  library_names_spec='$libname${shared_ext} $libname.a'
19120  dynamic_linker='OS/2 ld.exe'
19121  shlibpath_var=LIBPATH
19122  ;;
19123
19124osf3* | osf4* | osf5*)
19125  version_type=osf
19126  need_lib_prefix=no
19127  need_version=no
19128  soname_spec='${libname}${release}${shared_ext}$major'
19129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19130  shlibpath_var=LD_LIBRARY_PATH
19131  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19132  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19133  ;;
19134
19135solaris*)
19136  version_type=linux
19137  need_lib_prefix=no
19138  need_version=no
19139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19140  soname_spec='${libname}${release}${shared_ext}$major'
19141  shlibpath_var=LD_LIBRARY_PATH
19142  shlibpath_overrides_runpath=yes
19143  hardcode_into_libs=yes
19144  # ldd complains unless libraries are executable
19145  postinstall_cmds='chmod +x $lib'
19146  ;;
19147
19148sunos4*)
19149  version_type=sunos
19150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19151  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19152  shlibpath_var=LD_LIBRARY_PATH
19153  shlibpath_overrides_runpath=yes
19154  if test "$with_gnu_ld" = yes; then
19155    need_lib_prefix=no
19156  fi
19157  need_version=yes
19158  ;;
19159
19160sysv4 | sysv4.3*)
19161  version_type=linux
19162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19163  soname_spec='${libname}${release}${shared_ext}$major'
19164  shlibpath_var=LD_LIBRARY_PATH
19165  case $host_vendor in
19166    sni)
19167      shlibpath_overrides_runpath=no
19168      need_lib_prefix=no
19169      export_dynamic_flag_spec='${wl}-Blargedynsym'
19170      runpath_var=LD_RUN_PATH
19171      ;;
19172    siemens)
19173      need_lib_prefix=no
19174      ;;
19175    motorola)
19176      need_lib_prefix=no
19177      need_version=no
19178      shlibpath_overrides_runpath=no
19179      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19180      ;;
19181  esac
19182  ;;
19183
19184sysv4*MP*)
19185  if test -d /usr/nec ;then
19186    version_type=linux
19187    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19188    soname_spec='$libname${shared_ext}.$major'
19189    shlibpath_var=LD_LIBRARY_PATH
19190  fi
19191  ;;
19192
19193sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19194  version_type=freebsd-elf
19195  need_lib_prefix=no
19196  need_version=no
19197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19198  soname_spec='${libname}${release}${shared_ext}$major'
19199  shlibpath_var=LD_LIBRARY_PATH
19200  hardcode_into_libs=yes
19201  if test "$with_gnu_ld" = yes; then
19202    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19203    shlibpath_overrides_runpath=no
19204  else
19205    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19206    shlibpath_overrides_runpath=yes
19207    case $host_os in
19208      sco3.2v5*)
19209        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19210	;;
19211    esac
19212  fi
19213  sys_lib_dlsearch_path_spec='/usr/lib'
19214  ;;
19215
19216uts4*)
19217  version_type=linux
19218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19219  soname_spec='${libname}${release}${shared_ext}$major'
19220  shlibpath_var=LD_LIBRARY_PATH
19221  ;;
19222
19223*)
19224  dynamic_linker=no
19225  ;;
19226esac
19227{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19228echo "${ECHO_T}$dynamic_linker" >&6; }
19229test "$dynamic_linker" = no && can_build_shared=no
19230
19231variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19232if test "$GCC" = yes; then
19233  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19234fi
19235
19236{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19237echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19238hardcode_action_GCJ=
19239if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19240   test -n "$runpath_var_GCJ" || \
19241   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19242
19243  # We can hardcode non-existant directories.
19244  if test "$hardcode_direct_GCJ" != no &&
19245     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19246     # have to relink, otherwise we might link with an installed library
19247     # when we should be linking with a yet-to-be-installed one
19248     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19249     test "$hardcode_minus_L_GCJ" != no; then
19250    # Linking always hardcodes the temporary library directory.
19251    hardcode_action_GCJ=relink
19252  else
19253    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19254    hardcode_action_GCJ=immediate
19255  fi
19256else
19257  # We cannot hardcode anything, or else we can only hardcode existing
19258  # directories.
19259  hardcode_action_GCJ=unsupported
19260fi
19261{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19262echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19263
19264if test "$hardcode_action_GCJ" = relink; then
19265  # Fast installation is not supported
19266  enable_fast_install=no
19267elif test "$shlibpath_overrides_runpath" = yes ||
19268     test "$enable_shared" = no; then
19269  # Fast installation is not necessary
19270  enable_fast_install=needless
19271fi
19272
19273
19274# The else clause should only fire when bootstrapping the
19275# libtool distribution, otherwise you forgot to ship ltmain.sh
19276# with your package, and you will get complaints that there are
19277# no rules to generate ltmain.sh.
19278if test -f "$ltmain"; then
19279  # See if we are running on zsh, and set the options which allow our commands through
19280  # without removal of \ escapes.
19281  if test -n "${ZSH_VERSION+set}" ; then
19282    setopt NO_GLOB_SUBST
19283  fi
19284  # Now quote all the things that may contain metacharacters while being
19285  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19286  # variables and quote the copies for generation of the libtool script.
19287  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19288    SED SHELL STRIP \
19289    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19290    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19291    deplibs_check_method reload_flag reload_cmds need_locks \
19292    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19293    lt_cv_sys_global_symbol_to_c_name_address \
19294    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19295    old_postinstall_cmds old_postuninstall_cmds \
19296    compiler_GCJ \
19297    CC_GCJ \
19298    LD_GCJ \
19299    lt_prog_compiler_wl_GCJ \
19300    lt_prog_compiler_pic_GCJ \
19301    lt_prog_compiler_static_GCJ \
19302    lt_prog_compiler_no_builtin_flag_GCJ \
19303    export_dynamic_flag_spec_GCJ \
19304    thread_safe_flag_spec_GCJ \
19305    whole_archive_flag_spec_GCJ \
19306    enable_shared_with_static_runtimes_GCJ \
19307    old_archive_cmds_GCJ \
19308    old_archive_from_new_cmds_GCJ \
19309    predep_objects_GCJ \
19310    postdep_objects_GCJ \
19311    predeps_GCJ \
19312    postdeps_GCJ \
19313    compiler_lib_search_path_GCJ \
19314    archive_cmds_GCJ \
19315    archive_expsym_cmds_GCJ \
19316    postinstall_cmds_GCJ \
19317    postuninstall_cmds_GCJ \
19318    old_archive_from_expsyms_cmds_GCJ \
19319    allow_undefined_flag_GCJ \
19320    no_undefined_flag_GCJ \
19321    export_symbols_cmds_GCJ \
19322    hardcode_libdir_flag_spec_GCJ \
19323    hardcode_libdir_flag_spec_ld_GCJ \
19324    hardcode_libdir_separator_GCJ \
19325    hardcode_automatic_GCJ \
19326    module_cmds_GCJ \
19327    module_expsym_cmds_GCJ \
19328    lt_cv_prog_compiler_c_o_GCJ \
19329    exclude_expsyms_GCJ \
19330    include_expsyms_GCJ; do
19331
19332    case $var in
19333    old_archive_cmds_GCJ | \
19334    old_archive_from_new_cmds_GCJ | \
19335    archive_cmds_GCJ | \
19336    archive_expsym_cmds_GCJ | \
19337    module_cmds_GCJ | \
19338    module_expsym_cmds_GCJ | \
19339    old_archive_from_expsyms_cmds_GCJ | \
19340    export_symbols_cmds_GCJ | \
19341    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19342    postinstall_cmds | postuninstall_cmds | \
19343    old_postinstall_cmds | old_postuninstall_cmds | \
19344    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19345      # Double-quote double-evaled strings.
19346      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19347      ;;
19348    *)
19349      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19350      ;;
19351    esac
19352  done
19353
19354  case $lt_echo in
19355  *'\$0 --fallback-echo"')
19356    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19357    ;;
19358  esac
19359
19360cfgfile="$ofile"
19361
19362  cat <<__EOF__ >> "$cfgfile"
19363# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19364
19365# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19366
19367# Shell to use when invoking shell scripts.
19368SHELL=$lt_SHELL
19369
19370# Whether or not to build shared libraries.
19371build_libtool_libs=$enable_shared
19372
19373# Whether or not to build static libraries.
19374build_old_libs=$enable_static
19375
19376# Whether or not to add -lc for building shared libraries.
19377build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19378
19379# Whether or not to disallow shared libs when runtime libs are static
19380allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19381
19382# Whether or not to optimize for fast installation.
19383fast_install=$enable_fast_install
19384
19385# The host system.
19386host_alias=$host_alias
19387host=$host
19388host_os=$host_os
19389
19390# The build system.
19391build_alias=$build_alias
19392build=$build
19393build_os=$build_os
19394
19395# An echo program that does not interpret backslashes.
19396echo=$lt_echo
19397
19398# The archiver.
19399AR=$lt_AR
19400AR_FLAGS=$lt_AR_FLAGS
19401
19402# A C compiler.
19403LTCC=$lt_LTCC
19404
19405# LTCC compiler flags.
19406LTCFLAGS=$lt_LTCFLAGS
19407
19408# A language-specific compiler.
19409CC=$lt_compiler_GCJ
19410
19411# Is the compiler the GNU C compiler?
19412with_gcc=$GCC_GCJ
19413
19414# An ERE matcher.
19415EGREP=$lt_EGREP
19416
19417# The linker used to build libraries.
19418LD=$lt_LD_GCJ
19419
19420# Whether we need hard or soft links.
19421LN_S=$lt_LN_S
19422
19423# A BSD-compatible nm program.
19424NM=$lt_NM
19425
19426# A symbol stripping program
19427STRIP=$lt_STRIP
19428
19429# Used to examine libraries when file_magic_cmd begins "file"
19430MAGIC_CMD=$MAGIC_CMD
19431
19432# Used on cygwin: DLL creation program.
19433DLLTOOL="$DLLTOOL"
19434
19435# Used on cygwin: object dumper.
19436OBJDUMP="$OBJDUMP"
19437
19438# Used on cygwin: assembler.
19439AS="$AS"
19440
19441# The name of the directory that contains temporary libtool files.
19442objdir=$objdir
19443
19444# How to create reloadable object files.
19445reload_flag=$lt_reload_flag
19446reload_cmds=$lt_reload_cmds
19447
19448# How to pass a linker flag through the compiler.
19449wl=$lt_lt_prog_compiler_wl_GCJ
19450
19451# Object file suffix (normally "o").
19452objext="$ac_objext"
19453
19454# Old archive suffix (normally "a").
19455libext="$libext"
19456
19457# Shared library suffix (normally ".so").
19458shrext_cmds='$shrext_cmds'
19459
19460# Executable file suffix (normally "").
19461exeext="$exeext"
19462
19463# Additional compiler flags for building library objects.
19464pic_flag=$lt_lt_prog_compiler_pic_GCJ
19465pic_mode=$pic_mode
19466
19467# What is the maximum length of a command?
19468max_cmd_len=$lt_cv_sys_max_cmd_len
19469
19470# Does compiler simultaneously support -c and -o options?
19471compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19472
19473# Must we lock files when doing compilation?
19474need_locks=$lt_need_locks
19475
19476# Do we need the lib prefix for modules?
19477need_lib_prefix=$need_lib_prefix
19478
19479# Do we need a version for libraries?
19480need_version=$need_version
19481
19482# Whether dlopen is supported.
19483dlopen_support=$enable_dlopen
19484
19485# Whether dlopen of programs is supported.
19486dlopen_self=$enable_dlopen_self
19487
19488# Whether dlopen of statically linked programs is supported.
19489dlopen_self_static=$enable_dlopen_self_static
19490
19491# Compiler flag to prevent dynamic linking.
19492link_static_flag=$lt_lt_prog_compiler_static_GCJ
19493
19494# Compiler flag to turn off builtin functions.
19495no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19496
19497# Compiler flag to allow reflexive dlopens.
19498export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19499
19500# Compiler flag to generate shared objects directly from archives.
19501whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19502
19503# Compiler flag to generate thread-safe objects.
19504thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19505
19506# Library versioning type.
19507version_type=$version_type
19508
19509# Format of library name prefix.
19510libname_spec=$lt_libname_spec
19511
19512# List of archive names.  First name is the real one, the rest are links.
19513# The last name is the one that the linker finds with -lNAME.
19514library_names_spec=$lt_library_names_spec
19515
19516# The coded name of the library, if different from the real name.
19517soname_spec=$lt_soname_spec
19518
19519# Commands used to build and install an old-style archive.
19520RANLIB=$lt_RANLIB
19521old_archive_cmds=$lt_old_archive_cmds_GCJ
19522old_postinstall_cmds=$lt_old_postinstall_cmds
19523old_postuninstall_cmds=$lt_old_postuninstall_cmds
19524
19525# Create an old-style archive from a shared archive.
19526old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19527
19528# Create a temporary old-style archive to link instead of a shared archive.
19529old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19530
19531# Commands used to build and install a shared archive.
19532archive_cmds=$lt_archive_cmds_GCJ
19533archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19534postinstall_cmds=$lt_postinstall_cmds
19535postuninstall_cmds=$lt_postuninstall_cmds
19536
19537# Commands used to build a loadable module (assumed same as above if empty)
19538module_cmds=$lt_module_cmds_GCJ
19539module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19540
19541# Commands to strip libraries.
19542old_striplib=$lt_old_striplib
19543striplib=$lt_striplib
19544
19545# Dependencies to place before the objects being linked to create a
19546# shared library.
19547predep_objects=$lt_predep_objects_GCJ
19548
19549# Dependencies to place after the objects being linked to create a
19550# shared library.
19551postdep_objects=$lt_postdep_objects_GCJ
19552
19553# Dependencies to place before the objects being linked to create a
19554# shared library.
19555predeps=$lt_predeps_GCJ
19556
19557# Dependencies to place after the objects being linked to create a
19558# shared library.
19559postdeps=$lt_postdeps_GCJ
19560
19561# The library search path used internally by the compiler when linking
19562# a shared library.
19563compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19564
19565# Method to check whether dependent libraries are shared objects.
19566deplibs_check_method=$lt_deplibs_check_method
19567
19568# Command to use when deplibs_check_method == file_magic.
19569file_magic_cmd=$lt_file_magic_cmd
19570
19571# Flag that allows shared libraries with undefined symbols to be built.
19572allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19573
19574# Flag that forces no undefined symbols.
19575no_undefined_flag=$lt_no_undefined_flag_GCJ
19576
19577# Commands used to finish a libtool library installation in a directory.
19578finish_cmds=$lt_finish_cmds
19579
19580# Same as above, but a single script fragment to be evaled but not shown.
19581finish_eval=$lt_finish_eval
19582
19583# Take the output of nm and produce a listing of raw symbols and C names.
19584global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19585
19586# Transform the output of nm in a proper C declaration
19587global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19588
19589# Transform the output of nm in a C name address pair
19590global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19591
19592# This is the shared library runtime path variable.
19593runpath_var=$runpath_var
19594
19595# This is the shared library path variable.
19596shlibpath_var=$shlibpath_var
19597
19598# Is shlibpath searched before the hard-coded library search path?
19599shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19600
19601# How to hardcode a shared library path into an executable.
19602hardcode_action=$hardcode_action_GCJ
19603
19604# Whether we should hardcode library paths into libraries.
19605hardcode_into_libs=$hardcode_into_libs
19606
19607# Flag to hardcode \$libdir into a binary during linking.
19608# This must work even if \$libdir does not exist.
19609hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19610
19611# If ld is used when linking, flag to hardcode \$libdir into
19612# a binary during linking. This must work even if \$libdir does
19613# not exist.
19614hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19615
19616# Whether we need a single -rpath flag with a separated argument.
19617hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19618
19619# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19620# resulting binary.
19621hardcode_direct=$hardcode_direct_GCJ
19622
19623# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19624# resulting binary.
19625hardcode_minus_L=$hardcode_minus_L_GCJ
19626
19627# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19628# the resulting binary.
19629hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19630
19631# Set to yes if building a shared library automatically hardcodes DIR into the library
19632# and all subsequent libraries and executables linked against it.
19633hardcode_automatic=$hardcode_automatic_GCJ
19634
19635# Variables whose values should be saved in libtool wrapper scripts and
19636# restored at relink time.
19637variables_saved_for_relink="$variables_saved_for_relink"
19638
19639# Whether libtool must link a program against all its dependency libraries.
19640link_all_deplibs=$link_all_deplibs_GCJ
19641
19642# Compile-time system search path for libraries
19643sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19644
19645# Run-time system search path for libraries
19646sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19647
19648# Fix the shell variable \$srcfile for the compiler.
19649fix_srcfile_path="$fix_srcfile_path_GCJ"
19650
19651# Set to yes if exported symbols are required.
19652always_export_symbols=$always_export_symbols_GCJ
19653
19654# The commands to list exported symbols.
19655export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19656
19657# The commands to extract the exported symbol list from a shared archive.
19658extract_expsyms_cmds=$lt_extract_expsyms_cmds
19659
19660# Symbols that should not be listed in the preloaded symbols.
19661exclude_expsyms=$lt_exclude_expsyms_GCJ
19662
19663# Symbols that must always be exported.
19664include_expsyms=$lt_include_expsyms_GCJ
19665
19666# ### END LIBTOOL TAG CONFIG: $tagname
19667
19668__EOF__
19669
19670
19671else
19672  # If there is no Makefile yet, we rely on a make rule to execute
19673  # `config.status --recheck' to rerun these tests and create the
19674  # libtool script then.
19675  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19676  if test -f "$ltmain_in"; then
19677    test -f Makefile && make "$ltmain"
19678  fi
19679fi
19680
19681
19682ac_ext=c
19683ac_cpp='$CPP $CPPFLAGS'
19684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19686ac_compiler_gnu=$ac_cv_c_compiler_gnu
19687
19688CC="$lt_save_CC"
19689
19690	else
19691	  tagname=""
19692	fi
19693	;;
19694
19695      RC)
19696
19697
19698# Source file extension for RC test sources.
19699ac_ext=rc
19700
19701# Object file extension for compiled RC test sources.
19702objext=o
19703objext_RC=$objext
19704
19705# Code to be used in simple compile tests
19706lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19707
19708# Code to be used in simple link tests
19709lt_simple_link_test_code="$lt_simple_compile_test_code"
19710
19711# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19712
19713# If no C compiler was specified, use CC.
19714LTCC=${LTCC-"$CC"}
19715
19716# If no C compiler flags were specified, use CFLAGS.
19717LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19718
19719# Allow CC to be a program name with arguments.
19720compiler=$CC
19721
19722
19723# save warnings/boilerplate of simple test code
19724ac_outfile=conftest.$ac_objext
19725printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19726eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19727_lt_compiler_boilerplate=`cat conftest.err`
19728$rm conftest*
19729
19730ac_outfile=conftest.$ac_objext
19731printf "$lt_simple_link_test_code" >conftest.$ac_ext
19732eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19733_lt_linker_boilerplate=`cat conftest.err`
19734$rm conftest*
19735
19736
19737# Allow CC to be a program name with arguments.
19738lt_save_CC="$CC"
19739CC=${RC-"windres"}
19740compiler=$CC
19741compiler_RC=$CC
19742for cc_temp in $compiler""; do
19743  case $cc_temp in
19744    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19745    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19746    \-*) ;;
19747    *) break;;
19748  esac
19749done
19750cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19751
19752lt_cv_prog_compiler_c_o_RC=yes
19753
19754# The else clause should only fire when bootstrapping the
19755# libtool distribution, otherwise you forgot to ship ltmain.sh
19756# with your package, and you will get complaints that there are
19757# no rules to generate ltmain.sh.
19758if test -f "$ltmain"; then
19759  # See if we are running on zsh, and set the options which allow our commands through
19760  # without removal of \ escapes.
19761  if test -n "${ZSH_VERSION+set}" ; then
19762    setopt NO_GLOB_SUBST
19763  fi
19764  # Now quote all the things that may contain metacharacters while being
19765  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19766  # variables and quote the copies for generation of the libtool script.
19767  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19768    SED SHELL STRIP \
19769    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19770    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19771    deplibs_check_method reload_flag reload_cmds need_locks \
19772    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19773    lt_cv_sys_global_symbol_to_c_name_address \
19774    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19775    old_postinstall_cmds old_postuninstall_cmds \
19776    compiler_RC \
19777    CC_RC \
19778    LD_RC \
19779    lt_prog_compiler_wl_RC \
19780    lt_prog_compiler_pic_RC \
19781    lt_prog_compiler_static_RC \
19782    lt_prog_compiler_no_builtin_flag_RC \
19783    export_dynamic_flag_spec_RC \
19784    thread_safe_flag_spec_RC \
19785    whole_archive_flag_spec_RC \
19786    enable_shared_with_static_runtimes_RC \
19787    old_archive_cmds_RC \
19788    old_archive_from_new_cmds_RC \
19789    predep_objects_RC \
19790    postdep_objects_RC \
19791    predeps_RC \
19792    postdeps_RC \
19793    compiler_lib_search_path_RC \
19794    archive_cmds_RC \
19795    archive_expsym_cmds_RC \
19796    postinstall_cmds_RC \
19797    postuninstall_cmds_RC \
19798    old_archive_from_expsyms_cmds_RC \
19799    allow_undefined_flag_RC \
19800    no_undefined_flag_RC \
19801    export_symbols_cmds_RC \
19802    hardcode_libdir_flag_spec_RC \
19803    hardcode_libdir_flag_spec_ld_RC \
19804    hardcode_libdir_separator_RC \
19805    hardcode_automatic_RC \
19806    module_cmds_RC \
19807    module_expsym_cmds_RC \
19808    lt_cv_prog_compiler_c_o_RC \
19809    exclude_expsyms_RC \
19810    include_expsyms_RC; do
19811
19812    case $var in
19813    old_archive_cmds_RC | \
19814    old_archive_from_new_cmds_RC | \
19815    archive_cmds_RC | \
19816    archive_expsym_cmds_RC | \
19817    module_cmds_RC | \
19818    module_expsym_cmds_RC | \
19819    old_archive_from_expsyms_cmds_RC | \
19820    export_symbols_cmds_RC | \
19821    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19822    postinstall_cmds | postuninstall_cmds | \
19823    old_postinstall_cmds | old_postuninstall_cmds | \
19824    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19825      # Double-quote double-evaled strings.
19826      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19827      ;;
19828    *)
19829      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19830      ;;
19831    esac
19832  done
19833
19834  case $lt_echo in
19835  *'\$0 --fallback-echo"')
19836    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19837    ;;
19838  esac
19839
19840cfgfile="$ofile"
19841
19842  cat <<__EOF__ >> "$cfgfile"
19843# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19844
19845# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19846
19847# Shell to use when invoking shell scripts.
19848SHELL=$lt_SHELL
19849
19850# Whether or not to build shared libraries.
19851build_libtool_libs=$enable_shared
19852
19853# Whether or not to build static libraries.
19854build_old_libs=$enable_static
19855
19856# Whether or not to add -lc for building shared libraries.
19857build_libtool_need_lc=$archive_cmds_need_lc_RC
19858
19859# Whether or not to disallow shared libs when runtime libs are static
19860allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19861
19862# Whether or not to optimize for fast installation.
19863fast_install=$enable_fast_install
19864
19865# The host system.
19866host_alias=$host_alias
19867host=$host
19868host_os=$host_os
19869
19870# The build system.
19871build_alias=$build_alias
19872build=$build
19873build_os=$build_os
19874
19875# An echo program that does not interpret backslashes.
19876echo=$lt_echo
19877
19878# The archiver.
19879AR=$lt_AR
19880AR_FLAGS=$lt_AR_FLAGS
19881
19882# A C compiler.
19883LTCC=$lt_LTCC
19884
19885# LTCC compiler flags.
19886LTCFLAGS=$lt_LTCFLAGS
19887
19888# A language-specific compiler.
19889CC=$lt_compiler_RC
19890
19891# Is the compiler the GNU C compiler?
19892with_gcc=$GCC_RC
19893
19894# An ERE matcher.
19895EGREP=$lt_EGREP
19896
19897# The linker used to build libraries.
19898LD=$lt_LD_RC
19899
19900# Whether we need hard or soft links.
19901LN_S=$lt_LN_S
19902
19903# A BSD-compatible nm program.
19904NM=$lt_NM
19905
19906# A symbol stripping program
19907STRIP=$lt_STRIP
19908
19909# Used to examine libraries when file_magic_cmd begins "file"
19910MAGIC_CMD=$MAGIC_CMD
19911
19912# Used on cygwin: DLL creation program.
19913DLLTOOL="$DLLTOOL"
19914
19915# Used on cygwin: object dumper.
19916OBJDUMP="$OBJDUMP"
19917
19918# Used on cygwin: assembler.
19919AS="$AS"
19920
19921# The name of the directory that contains temporary libtool files.
19922objdir=$objdir
19923
19924# How to create reloadable object files.
19925reload_flag=$lt_reload_flag
19926reload_cmds=$lt_reload_cmds
19927
19928# How to pass a linker flag through the compiler.
19929wl=$lt_lt_prog_compiler_wl_RC
19930
19931# Object file suffix (normally "o").
19932objext="$ac_objext"
19933
19934# Old archive suffix (normally "a").
19935libext="$libext"
19936
19937# Shared library suffix (normally ".so").
19938shrext_cmds='$shrext_cmds'
19939
19940# Executable file suffix (normally "").
19941exeext="$exeext"
19942
19943# Additional compiler flags for building library objects.
19944pic_flag=$lt_lt_prog_compiler_pic_RC
19945pic_mode=$pic_mode
19946
19947# What is the maximum length of a command?
19948max_cmd_len=$lt_cv_sys_max_cmd_len
19949
19950# Does compiler simultaneously support -c and -o options?
19951compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19952
19953# Must we lock files when doing compilation?
19954need_locks=$lt_need_locks
19955
19956# Do we need the lib prefix for modules?
19957need_lib_prefix=$need_lib_prefix
19958
19959# Do we need a version for libraries?
19960need_version=$need_version
19961
19962# Whether dlopen is supported.
19963dlopen_support=$enable_dlopen
19964
19965# Whether dlopen of programs is supported.
19966dlopen_self=$enable_dlopen_self
19967
19968# Whether dlopen of statically linked programs is supported.
19969dlopen_self_static=$enable_dlopen_self_static
19970
19971# Compiler flag to prevent dynamic linking.
19972link_static_flag=$lt_lt_prog_compiler_static_RC
19973
19974# Compiler flag to turn off builtin functions.
19975no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19976
19977# Compiler flag to allow reflexive dlopens.
19978export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19979
19980# Compiler flag to generate shared objects directly from archives.
19981whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19982
19983# Compiler flag to generate thread-safe objects.
19984thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19985
19986# Library versioning type.
19987version_type=$version_type
19988
19989# Format of library name prefix.
19990libname_spec=$lt_libname_spec
19991
19992# List of archive names.  First name is the real one, the rest are links.
19993# The last name is the one that the linker finds with -lNAME.
19994library_names_spec=$lt_library_names_spec
19995
19996# The coded name of the library, if different from the real name.
19997soname_spec=$lt_soname_spec
19998
19999# Commands used to build and install an old-style archive.
20000RANLIB=$lt_RANLIB
20001old_archive_cmds=$lt_old_archive_cmds_RC
20002old_postinstall_cmds=$lt_old_postinstall_cmds
20003old_postuninstall_cmds=$lt_old_postuninstall_cmds
20004
20005# Create an old-style archive from a shared archive.
20006old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20007
20008# Create a temporary old-style archive to link instead of a shared archive.
20009old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20010
20011# Commands used to build and install a shared archive.
20012archive_cmds=$lt_archive_cmds_RC
20013archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20014postinstall_cmds=$lt_postinstall_cmds
20015postuninstall_cmds=$lt_postuninstall_cmds
20016
20017# Commands used to build a loadable module (assumed same as above if empty)
20018module_cmds=$lt_module_cmds_RC
20019module_expsym_cmds=$lt_module_expsym_cmds_RC
20020
20021# Commands to strip libraries.
20022old_striplib=$lt_old_striplib
20023striplib=$lt_striplib
20024
20025# Dependencies to place before the objects being linked to create a
20026# shared library.
20027predep_objects=$lt_predep_objects_RC
20028
20029# Dependencies to place after the objects being linked to create a
20030# shared library.
20031postdep_objects=$lt_postdep_objects_RC
20032
20033# Dependencies to place before the objects being linked to create a
20034# shared library.
20035predeps=$lt_predeps_RC
20036
20037# Dependencies to place after the objects being linked to create a
20038# shared library.
20039postdeps=$lt_postdeps_RC
20040
20041# The library search path used internally by the compiler when linking
20042# a shared library.
20043compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20044
20045# Method to check whether dependent libraries are shared objects.
20046deplibs_check_method=$lt_deplibs_check_method
20047
20048# Command to use when deplibs_check_method == file_magic.
20049file_magic_cmd=$lt_file_magic_cmd
20050
20051# Flag that allows shared libraries with undefined symbols to be built.
20052allow_undefined_flag=$lt_allow_undefined_flag_RC
20053
20054# Flag that forces no undefined symbols.
20055no_undefined_flag=$lt_no_undefined_flag_RC
20056
20057# Commands used to finish a libtool library installation in a directory.
20058finish_cmds=$lt_finish_cmds
20059
20060# Same as above, but a single script fragment to be evaled but not shown.
20061finish_eval=$lt_finish_eval
20062
20063# Take the output of nm and produce a listing of raw symbols and C names.
20064global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20065
20066# Transform the output of nm in a proper C declaration
20067global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20068
20069# Transform the output of nm in a C name address pair
20070global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20071
20072# This is the shared library runtime path variable.
20073runpath_var=$runpath_var
20074
20075# This is the shared library path variable.
20076shlibpath_var=$shlibpath_var
20077
20078# Is shlibpath searched before the hard-coded library search path?
20079shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20080
20081# How to hardcode a shared library path into an executable.
20082hardcode_action=$hardcode_action_RC
20083
20084# Whether we should hardcode library paths into libraries.
20085hardcode_into_libs=$hardcode_into_libs
20086
20087# Flag to hardcode \$libdir into a binary during linking.
20088# This must work even if \$libdir does not exist.
20089hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20090
20091# If ld is used when linking, flag to hardcode \$libdir into
20092# a binary during linking. This must work even if \$libdir does
20093# not exist.
20094hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20095
20096# Whether we need a single -rpath flag with a separated argument.
20097hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20098
20099# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20100# resulting binary.
20101hardcode_direct=$hardcode_direct_RC
20102
20103# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20104# resulting binary.
20105hardcode_minus_L=$hardcode_minus_L_RC
20106
20107# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20108# the resulting binary.
20109hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20110
20111# Set to yes if building a shared library automatically hardcodes DIR into the library
20112# and all subsequent libraries and executables linked against it.
20113hardcode_automatic=$hardcode_automatic_RC
20114
20115# Variables whose values should be saved in libtool wrapper scripts and
20116# restored at relink time.
20117variables_saved_for_relink="$variables_saved_for_relink"
20118
20119# Whether libtool must link a program against all its dependency libraries.
20120link_all_deplibs=$link_all_deplibs_RC
20121
20122# Compile-time system search path for libraries
20123sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20124
20125# Run-time system search path for libraries
20126sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20127
20128# Fix the shell variable \$srcfile for the compiler.
20129fix_srcfile_path="$fix_srcfile_path_RC"
20130
20131# Set to yes if exported symbols are required.
20132always_export_symbols=$always_export_symbols_RC
20133
20134# The commands to list exported symbols.
20135export_symbols_cmds=$lt_export_symbols_cmds_RC
20136
20137# The commands to extract the exported symbol list from a shared archive.
20138extract_expsyms_cmds=$lt_extract_expsyms_cmds
20139
20140# Symbols that should not be listed in the preloaded symbols.
20141exclude_expsyms=$lt_exclude_expsyms_RC
20142
20143# Symbols that must always be exported.
20144include_expsyms=$lt_include_expsyms_RC
20145
20146# ### END LIBTOOL TAG CONFIG: $tagname
20147
20148__EOF__
20149
20150
20151else
20152  # If there is no Makefile yet, we rely on a make rule to execute
20153  # `config.status --recheck' to rerun these tests and create the
20154  # libtool script then.
20155  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20156  if test -f "$ltmain_in"; then
20157    test -f Makefile && make "$ltmain"
20158  fi
20159fi
20160
20161
20162ac_ext=c
20163ac_cpp='$CPP $CPPFLAGS'
20164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20166ac_compiler_gnu=$ac_cv_c_compiler_gnu
20167
20168CC="$lt_save_CC"
20169
20170	;;
20171
20172      *)
20173	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20174echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20175   { (exit 1); exit 1; }; }
20176	;;
20177      esac
20178
20179      # Append the new tag name to the list of available tags.
20180      if test -n "$tagname" ; then
20181      available_tags="$available_tags $tagname"
20182    fi
20183    fi
20184  done
20185  IFS="$lt_save_ifs"
20186
20187  # Now substitute the updated list of available tags.
20188  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20189    mv "${ofile}T" "$ofile"
20190    chmod +x "$ofile"
20191  else
20192    rm -f "${ofile}T"
20193    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20194echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20195   { (exit 1); exit 1; }; }
20196  fi
20197fi
20198
20199
20200
20201# This can be used to rebuild libtool when needed
20202LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20203
20204# Always use our own libtool.
20205LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20206
20207# Prevent multiple expansion
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229# Find a good install program.  We prefer a C program (faster),
20230# so one script is as good as another.  But avoid the broken or
20231# incompatible versions:
20232# SysV /etc/install, /usr/sbin/install
20233# SunOS /usr/etc/install
20234# IRIX /sbin/install
20235# AIX /bin/install
20236# AmigaOS /C/install, which installs bootblocks on floppy discs
20237# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20238# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20239# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20240# OS/2's system install, which has a completely different semantic
20241# ./install, which can be erroneously created by make from ./install.sh.
20242{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20243echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
20244if test -z "$INSTALL"; then
20245if test "${ac_cv_path_install+set}" = set; then
20246  echo $ECHO_N "(cached) $ECHO_C" >&6
20247else
20248  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20249for as_dir in $PATH
20250do
20251  IFS=$as_save_IFS
20252  test -z "$as_dir" && as_dir=.
20253  # Account for people who put trailing slashes in PATH elements.
20254case $as_dir/ in
20255  ./ | .// | /cC/* | \
20256  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20257  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20258  /usr/ucb/* ) ;;
20259  *)
20260    # OSF1 and SCO ODT 3.0 have their own names for install.
20261    # Don't use installbsd from OSF since it installs stuff as root
20262    # by default.
20263    for ac_prog in ginstall scoinst install; do
20264      for ac_exec_ext in '' $ac_executable_extensions; do
20265	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20266	  if test $ac_prog = install &&
20267	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20268	    # AIX install.  It has an incompatible calling convention.
20269	    :
20270	  elif test $ac_prog = install &&
20271	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20272	    # program-specific install script used by HP pwplus--don't use.
20273	    :
20274	  else
20275	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20276	    break 3
20277	  fi
20278	fi
20279      done
20280    done
20281    ;;
20282esac
20283done
20284IFS=$as_save_IFS
20285
20286
20287fi
20288  if test "${ac_cv_path_install+set}" = set; then
20289    INSTALL=$ac_cv_path_install
20290  else
20291    # As a last resort, use the slow shell script.  Don't cache a
20292    # value for INSTALL within a source directory, because that will
20293    # break other packages using the cache if that directory is
20294    # removed, or if the value is a relative name.
20295    INSTALL=$ac_install_sh
20296  fi
20297fi
20298{ echo "$as_me:$LINENO: result: $INSTALL" >&5
20299echo "${ECHO_T}$INSTALL" >&6; }
20300
20301# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20302# It thinks the first close brace ends the variable substitution.
20303test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20304
20305test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20306
20307test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20308
20309
20310if test "X$CC" = Xgcc; then
20311    CFLAGS="-Wall $CFLAGS"
20312fi
20313
20314LIBS=
20315addlib() {
20316  l=$1
20317  shift
20318  case "$target" in
20319    *-*-solaris*)	LIBS="$LIBS -L$l -R $l $*";;
20320    *)		LIBS="$LIBS -L$l $*";;
20321  esac
20322}
20323
20324
20325
20326
20327
20328
20329
20330for ac_header in alloca.h float.h libintl.h mcheck.h unistd.h
20331do
20332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20334  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20337  echo $ECHO_N "(cached) $ECHO_C" >&6
20338fi
20339ac_res=`eval echo '${'$as_ac_Header'}'`
20340	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20341echo "${ECHO_T}$ac_res" >&6; }
20342else
20343  # Is the header compilable?
20344{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20345echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20346cat >conftest.$ac_ext <<_ACEOF
20347/* confdefs.h.  */
20348_ACEOF
20349cat confdefs.h >>conftest.$ac_ext
20350cat >>conftest.$ac_ext <<_ACEOF
20351/* end confdefs.h.  */
20352$ac_includes_default
20353#include <$ac_header>
20354_ACEOF
20355rm -f conftest.$ac_objext
20356if { (ac_try="$ac_compile"
20357case "(($ac_try" in
20358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359  *) ac_try_echo=$ac_try;;
20360esac
20361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362  (eval "$ac_compile") 2>conftest.er1
20363  ac_status=$?
20364  grep -v '^ *+' conftest.er1 >conftest.err
20365  rm -f conftest.er1
20366  cat conftest.err >&5
20367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368  (exit $ac_status); } && {
20369	 test -z "$ac_c_werror_flag" ||
20370	 test ! -s conftest.err
20371       } && test -s conftest.$ac_objext; then
20372  ac_header_compiler=yes
20373else
20374  echo "$as_me: failed program was:" >&5
20375sed 's/^/| /' conftest.$ac_ext >&5
20376
20377	ac_header_compiler=no
20378fi
20379
20380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20381{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20382echo "${ECHO_T}$ac_header_compiler" >&6; }
20383
20384# Is the header present?
20385{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20386echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20387cat >conftest.$ac_ext <<_ACEOF
20388/* confdefs.h.  */
20389_ACEOF
20390cat confdefs.h >>conftest.$ac_ext
20391cat >>conftest.$ac_ext <<_ACEOF
20392/* end confdefs.h.  */
20393#include <$ac_header>
20394_ACEOF
20395if { (ac_try="$ac_cpp conftest.$ac_ext"
20396case "(($ac_try" in
20397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398  *) ac_try_echo=$ac_try;;
20399esac
20400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20401  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20402  ac_status=$?
20403  grep -v '^ *+' conftest.er1 >conftest.err
20404  rm -f conftest.er1
20405  cat conftest.err >&5
20406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407  (exit $ac_status); } >/dev/null && {
20408	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20409	 test ! -s conftest.err
20410       }; then
20411  ac_header_preproc=yes
20412else
20413  echo "$as_me: failed program was:" >&5
20414sed 's/^/| /' conftest.$ac_ext >&5
20415
20416  ac_header_preproc=no
20417fi
20418
20419rm -f conftest.err conftest.$ac_ext
20420{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20421echo "${ECHO_T}$ac_header_preproc" >&6; }
20422
20423# So?  What about this header?
20424case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20425  yes:no: )
20426    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20427echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20428    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20429echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20430    ac_header_preproc=yes
20431    ;;
20432  no:yes:* )
20433    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20434echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20435    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20436echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20437    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20438echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20439    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20440echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20441    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20442echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20443    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20444echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20445
20446    ;;
20447esac
20448{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20451  echo $ECHO_N "(cached) $ECHO_C" >&6
20452else
20453  eval "$as_ac_Header=\$ac_header_preproc"
20454fi
20455ac_res=`eval echo '${'$as_ac_Header'}'`
20456	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20457echo "${ECHO_T}$ac_res" >&6; }
20458
20459fi
20460if test `eval echo '${'$as_ac_Header'}'` = yes; then
20461  cat >>confdefs.h <<_ACEOF
20462#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20463_ACEOF
20464
20465fi
20466
20467done
20468
20469{ echo "$as_me:$LINENO: checking for /usr/ucblib in LIBS" >&5
20470echo $ECHO_N "checking for /usr/ucblib in LIBS... $ECHO_C" >&6; }
20471if test -d /usr/ucblib ; then
20472	if test "$build" = "mips-sni-sysv4" ; then
20473		addlib /usr/ccs/lib -lc
20474	fi
20475
20476	addlib /usr/ucblib
20477
20478	{ echo "$as_me:$LINENO: result: yes" >&5
20479echo "${ECHO_T}yes" >&6; }
20480else
20481	{ echo "$as_me:$LINENO: result: no" >&5
20482echo "${ECHO_T}no" >&6; }
20483fi
20484
20485
20486
20487
20488
20489for ac_func in strerror mtrace getuid geteuid
20490do
20491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20492{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20494if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20495  echo $ECHO_N "(cached) $ECHO_C" >&6
20496else
20497  cat >conftest.$ac_ext <<_ACEOF
20498/* confdefs.h.  */
20499_ACEOF
20500cat confdefs.h >>conftest.$ac_ext
20501cat >>conftest.$ac_ext <<_ACEOF
20502/* end confdefs.h.  */
20503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20504   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20505#define $ac_func innocuous_$ac_func
20506
20507/* System header to define __stub macros and hopefully few prototypes,
20508    which can conflict with char $ac_func (); below.
20509    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20510    <limits.h> exists even on freestanding compilers.  */
20511
20512#ifdef __STDC__
20513# include <limits.h>
20514#else
20515# include <assert.h>
20516#endif
20517
20518#undef $ac_func
20519
20520/* Override any GCC internal prototype to avoid an error.
20521   Use char because int might match the return type of a GCC
20522   builtin and then its argument prototype would still apply.  */
20523#ifdef __cplusplus
20524extern "C"
20525#endif
20526char $ac_func ();
20527/* The GNU C library defines this for functions which it implements
20528    to always fail with ENOSYS.  Some functions are actually named
20529    something starting with __ and the normal name is an alias.  */
20530#if defined __stub_$ac_func || defined __stub___$ac_func
20531choke me
20532#endif
20533
20534int
20535main ()
20536{
20537return $ac_func ();
20538  ;
20539  return 0;
20540}
20541_ACEOF
20542rm -f conftest.$ac_objext conftest$ac_exeext
20543if { (ac_try="$ac_link"
20544case "(($ac_try" in
20545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546  *) ac_try_echo=$ac_try;;
20547esac
20548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549  (eval "$ac_link") 2>conftest.er1
20550  ac_status=$?
20551  grep -v '^ *+' conftest.er1 >conftest.err
20552  rm -f conftest.er1
20553  cat conftest.err >&5
20554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555  (exit $ac_status); } && {
20556	 test -z "$ac_c_werror_flag" ||
20557	 test ! -s conftest.err
20558       } && test -s conftest$ac_exeext &&
20559       $as_test_x conftest$ac_exeext; then
20560  eval "$as_ac_var=yes"
20561else
20562  echo "$as_me: failed program was:" >&5
20563sed 's/^/| /' conftest.$ac_ext >&5
20564
20565	eval "$as_ac_var=no"
20566fi
20567
20568rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20569      conftest$ac_exeext conftest.$ac_ext
20570fi
20571ac_res=`eval echo '${'$as_ac_var'}'`
20572	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20573echo "${ECHO_T}$ac_res" >&6; }
20574if test `eval echo '${'$as_ac_var'}'` = yes; then
20575  cat >>confdefs.h <<_ACEOF
20576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20577_ACEOF
20578
20579fi
20580done
20581
20582{ echo "$as_me:$LINENO: checking for setreuid" >&5
20583echo $ECHO_N "checking for setreuid... $ECHO_C" >&6; }
20584if test "${ac_cv_func_setreuid+set}" = set; then
20585  echo $ECHO_N "(cached) $ECHO_C" >&6
20586else
20587  cat >conftest.$ac_ext <<_ACEOF
20588/* confdefs.h.  */
20589_ACEOF
20590cat confdefs.h >>conftest.$ac_ext
20591cat >>conftest.$ac_ext <<_ACEOF
20592/* end confdefs.h.  */
20593/* Define setreuid to an innocuous variant, in case <limits.h> declares setreuid.
20594   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20595#define setreuid innocuous_setreuid
20596
20597/* System header to define __stub macros and hopefully few prototypes,
20598    which can conflict with char setreuid (); below.
20599    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20600    <limits.h> exists even on freestanding compilers.  */
20601
20602#ifdef __STDC__
20603# include <limits.h>
20604#else
20605# include <assert.h>
20606#endif
20607
20608#undef setreuid
20609
20610/* Override any GCC internal prototype to avoid an error.
20611   Use char because int might match the return type of a GCC
20612   builtin and then its argument prototype would still apply.  */
20613#ifdef __cplusplus
20614extern "C"
20615#endif
20616char setreuid ();
20617/* The GNU C library defines this for functions which it implements
20618    to always fail with ENOSYS.  Some functions are actually named
20619    something starting with __ and the normal name is an alias.  */
20620#if defined __stub_setreuid || defined __stub___setreuid
20621choke me
20622#endif
20623
20624int
20625main ()
20626{
20627return setreuid ();
20628  ;
20629  return 0;
20630}
20631_ACEOF
20632rm -f conftest.$ac_objext conftest$ac_exeext
20633if { (ac_try="$ac_link"
20634case "(($ac_try" in
20635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636  *) ac_try_echo=$ac_try;;
20637esac
20638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639  (eval "$ac_link") 2>conftest.er1
20640  ac_status=$?
20641  grep -v '^ *+' conftest.er1 >conftest.err
20642  rm -f conftest.er1
20643  cat conftest.err >&5
20644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645  (exit $ac_status); } && {
20646	 test -z "$ac_c_werror_flag" ||
20647	 test ! -s conftest.err
20648       } && test -s conftest$ac_exeext &&
20649       $as_test_x conftest$ac_exeext; then
20650  ac_cv_func_setreuid=yes
20651else
20652  echo "$as_me: failed program was:" >&5
20653sed 's/^/| /' conftest.$ac_ext >&5
20654
20655	ac_cv_func_setreuid=no
20656fi
20657
20658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20659      conftest$ac_exeext conftest.$ac_ext
20660fi
20661{ echo "$as_me:$LINENO: result: $ac_cv_func_setreuid" >&5
20662echo "${ECHO_T}$ac_cv_func_setreuid" >&6; }
20663if test $ac_cv_func_setreuid = yes; then
20664  :
20665else
20666
20667    { echo "$as_me:$LINENO: checking for setreuid in -lucb" >&5
20668echo $ECHO_N "checking for setreuid in -lucb... $ECHO_C" >&6; }
20669if test "${ac_cv_lib_ucb_setreuid+set}" = set; then
20670  echo $ECHO_N "(cached) $ECHO_C" >&6
20671else
20672  ac_check_lib_save_LIBS=$LIBS
20673LIBS="-lucb  $LIBS"
20674cat >conftest.$ac_ext <<_ACEOF
20675/* confdefs.h.  */
20676_ACEOF
20677cat confdefs.h >>conftest.$ac_ext
20678cat >>conftest.$ac_ext <<_ACEOF
20679/* end confdefs.h.  */
20680
20681/* Override any GCC internal prototype to avoid an error.
20682   Use char because int might match the return type of a GCC
20683   builtin and then its argument prototype would still apply.  */
20684#ifdef __cplusplus
20685extern "C"
20686#endif
20687char setreuid ();
20688int
20689main ()
20690{
20691return setreuid ();
20692  ;
20693  return 0;
20694}
20695_ACEOF
20696rm -f conftest.$ac_objext conftest$ac_exeext
20697if { (ac_try="$ac_link"
20698case "(($ac_try" in
20699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700  *) ac_try_echo=$ac_try;;
20701esac
20702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703  (eval "$ac_link") 2>conftest.er1
20704  ac_status=$?
20705  grep -v '^ *+' conftest.er1 >conftest.err
20706  rm -f conftest.er1
20707  cat conftest.err >&5
20708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709  (exit $ac_status); } && {
20710	 test -z "$ac_c_werror_flag" ||
20711	 test ! -s conftest.err
20712       } && test -s conftest$ac_exeext &&
20713       $as_test_x conftest$ac_exeext; then
20714  ac_cv_lib_ucb_setreuid=yes
20715else
20716  echo "$as_me: failed program was:" >&5
20717sed 's/^/| /' conftest.$ac_ext >&5
20718
20719	ac_cv_lib_ucb_setreuid=no
20720fi
20721
20722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20723      conftest$ac_exeext conftest.$ac_ext
20724LIBS=$ac_check_lib_save_LIBS
20725fi
20726{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_setreuid" >&5
20727echo "${ECHO_T}$ac_cv_lib_ucb_setreuid" >&6; }
20728if test $ac_cv_lib_ucb_setreuid = yes; then
20729  if echo $LIBS | grep -- -lucb >/dev/null ;then :; else LIBS="$LIBS -lc -lucb" USEUCB=y;fi
20730fi
20731
20732
20733fi
20734
20735
20736# Check whether --enable-convenience-only-libpopt was given.
20737if test "${enable_convenience_only_libpopt+set}" = set; then
20738  enableval=$enable_convenience_only_libpopt;
20739fi
20740
20741
20742
20743if test "$enable_convenience_only_libpopt" = "yes"; then
20744  CONV_ONLY_LIBPOPT_TRUE=
20745  CONV_ONLY_LIBPOPT_FALSE='#'
20746else
20747  CONV_ONLY_LIBPOPT_TRUE='#'
20748  CONV_ONLY_LIBPOPT_FALSE=
20749fi
20750
20751
20752POPT_SOURCE_PATH="`pwd`"
20753
20754cat >>confdefs.h <<_ACEOF
20755#define POPT_SOURCE_PATH "$POPT_SOURCE_PATH"
20756_ACEOF
20757
20758
20759
20760ac_config_files="$ac_config_files Makefile"
20761
20762cat >confcache <<\_ACEOF
20763# This file is a shell script that caches the results of configure
20764# tests run on this system so they can be shared between configure
20765# scripts and configure runs, see configure's option --config-cache.
20766# It is not useful on other systems.  If it contains results you don't
20767# want to keep, you may remove or edit it.
20768#
20769# config.status only pays attention to the cache file if you give it
20770# the --recheck option to rerun configure.
20771#
20772# `ac_cv_env_foo' variables (set or unset) will be overridden when
20773# loading this file, other *unset* `ac_cv_foo' will be assigned the
20774# following values.
20775
20776_ACEOF
20777
20778# The following way of writing the cache mishandles newlines in values,
20779# but we know of no workaround that is simple, portable, and efficient.
20780# So, we kill variables containing newlines.
20781# Ultrix sh set writes to stderr and can't be redirected directly,
20782# and sets the high bit in the cache file unless we assign to the vars.
20783(
20784  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20785    eval ac_val=\$$ac_var
20786    case $ac_val in #(
20787    *${as_nl}*)
20788      case $ac_var in #(
20789      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20790echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20791      esac
20792      case $ac_var in #(
20793      _ | IFS | as_nl) ;; #(
20794      *) $as_unset $ac_var ;;
20795      esac ;;
20796    esac
20797  done
20798
20799  (set) 2>&1 |
20800    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20801    *${as_nl}ac_space=\ *)
20802      # `set' does not quote correctly, so add quotes (double-quote
20803      # substitution turns \\\\ into \\, and sed turns \\ into \).
20804      sed -n \
20805	"s/'/'\\\\''/g;
20806	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20807      ;; #(
20808    *)
20809      # `set' quotes correctly as required by POSIX, so do not add quotes.
20810      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20811      ;;
20812    esac |
20813    sort
20814) |
20815  sed '
20816     /^ac_cv_env_/b end
20817     t clear
20818     :clear
20819     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20820     t end
20821     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20822     :end' >>confcache
20823if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20824  if test -w "$cache_file"; then
20825    test "x$cache_file" != "x/dev/null" &&
20826      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20827echo "$as_me: updating cache $cache_file" >&6;}
20828    cat confcache >$cache_file
20829  else
20830    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20831echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20832  fi
20833fi
20834rm -f confcache
20835
20836test "x$prefix" = xNONE && prefix=$ac_default_prefix
20837# Let make expand exec_prefix.
20838test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20839
20840DEFS=-DHAVE_CONFIG_H
20841
20842ac_libobjs=
20843ac_ltlibobjs=
20844for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20845  # 1. Remove the extension, and $U if already installed.
20846  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20847  ac_i=`echo "$ac_i" | sed "$ac_script"`
20848  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20849  #    will be set to the directory where LIBOBJS objects are built.
20850  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20851  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20852done
20853LIBOBJS=$ac_libobjs
20854
20855LTLIBOBJS=$ac_ltlibobjs
20856
20857
20858if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20859  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20860Usually this means the macro was only invoked conditionally." >&5
20861echo "$as_me: error: conditional \"AMDEP\" was never defined.
20862Usually this means the macro was only invoked conditionally." >&2;}
20863   { (exit 1); exit 1; }; }
20864fi
20865if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20866  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20867Usually this means the macro was only invoked conditionally." >&5
20868echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20869Usually this means the macro was only invoked conditionally." >&2;}
20870   { (exit 1); exit 1; }; }
20871fi
20872if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20873  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20874Usually this means the macro was only invoked conditionally." >&5
20875echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20876Usually this means the macro was only invoked conditionally." >&2;}
20877   { (exit 1); exit 1; }; }
20878fi
20879if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20880  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20881Usually this means the macro was only invoked conditionally." >&5
20882echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20883Usually this means the macro was only invoked conditionally." >&2;}
20884   { (exit 1); exit 1; }; }
20885fi
20886if test -z "${CONV_ONLY_LIBPOPT_TRUE}" && test -z "${CONV_ONLY_LIBPOPT_FALSE}"; then
20887  { { echo "$as_me:$LINENO: error: conditional \"CONV_ONLY_LIBPOPT\" was never defined.
20888Usually this means the macro was only invoked conditionally." >&5
20889echo "$as_me: error: conditional \"CONV_ONLY_LIBPOPT\" was never defined.
20890Usually this means the macro was only invoked conditionally." >&2;}
20891   { (exit 1); exit 1; }; }
20892fi
20893
20894: ${CONFIG_STATUS=./config.status}
20895ac_clean_files_save=$ac_clean_files
20896ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20897{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20898echo "$as_me: creating $CONFIG_STATUS" >&6;}
20899cat >$CONFIG_STATUS <<_ACEOF
20900#! $SHELL
20901# Generated by $as_me.
20902# Run this file to recreate the current configuration.
20903# Compiler output produced by configure, useful for debugging
20904# configure, is in config.log if it exists.
20905
20906debug=false
20907ac_cs_recheck=false
20908ac_cs_silent=false
20909SHELL=\${CONFIG_SHELL-$SHELL}
20910_ACEOF
20911
20912cat >>$CONFIG_STATUS <<\_ACEOF
20913## --------------------- ##
20914## M4sh Initialization.  ##
20915## --------------------- ##
20916
20917# Be more Bourne compatible
20918DUALCASE=1; export DUALCASE # for MKS sh
20919if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20920  emulate sh
20921  NULLCMD=:
20922  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20923  # is contrary to our usage.  Disable this feature.
20924  alias -g '${1+"$@"}'='"$@"'
20925  setopt NO_GLOB_SUBST
20926else
20927  case `(set -o) 2>/dev/null` in
20928  *posix*) set -o posix ;;
20929esac
20930
20931fi
20932
20933
20934
20935
20936# PATH needs CR
20937# Avoid depending upon Character Ranges.
20938as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20939as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20940as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20941as_cr_digits='0123456789'
20942as_cr_alnum=$as_cr_Letters$as_cr_digits
20943
20944# The user is always right.
20945if test "${PATH_SEPARATOR+set}" != set; then
20946  echo "#! /bin/sh" >conf$$.sh
20947  echo  "exit 0"   >>conf$$.sh
20948  chmod +x conf$$.sh
20949  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20950    PATH_SEPARATOR=';'
20951  else
20952    PATH_SEPARATOR=:
20953  fi
20954  rm -f conf$$.sh
20955fi
20956
20957# Support unset when possible.
20958if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20959  as_unset=unset
20960else
20961  as_unset=false
20962fi
20963
20964
20965# IFS
20966# We need space, tab and new line, in precisely that order.  Quoting is
20967# there to prevent editors from complaining about space-tab.
20968# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20969# splitting by setting IFS to empty value.)
20970as_nl='
20971'
20972IFS=" ""	$as_nl"
20973
20974# Find who we are.  Look in the path if we contain no directory separator.
20975case $0 in
20976  *[\\/]* ) as_myself=$0 ;;
20977  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20978for as_dir in $PATH
20979do
20980  IFS=$as_save_IFS
20981  test -z "$as_dir" && as_dir=.
20982  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20983done
20984IFS=$as_save_IFS
20985
20986     ;;
20987esac
20988# We did not find ourselves, most probably we were run as `sh COMMAND'
20989# in which case we are not to be found in the path.
20990if test "x$as_myself" = x; then
20991  as_myself=$0
20992fi
20993if test ! -f "$as_myself"; then
20994  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20995  { (exit 1); exit 1; }
20996fi
20997
20998# Work around bugs in pre-3.0 UWIN ksh.
20999for as_var in ENV MAIL MAILPATH
21000do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21001done
21002PS1='$ '
21003PS2='> '
21004PS4='+ '
21005
21006# NLS nuisances.
21007for as_var in \
21008  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21009  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21010  LC_TELEPHONE LC_TIME
21011do
21012  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21013    eval $as_var=C; export $as_var
21014  else
21015    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21016  fi
21017done
21018
21019# Required to use basename.
21020if expr a : '\(a\)' >/dev/null 2>&1 &&
21021   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21022  as_expr=expr
21023else
21024  as_expr=false
21025fi
21026
21027if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21028  as_basename=basename
21029else
21030  as_basename=false
21031fi
21032
21033
21034# Name of the executable.
21035as_me=`$as_basename -- "$0" ||
21036$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21037	 X"$0" : 'X\(//\)$' \| \
21038	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21039echo X/"$0" |
21040    sed '/^.*\/\([^/][^/]*\)\/*$/{
21041	    s//\1/
21042	    q
21043	  }
21044	  /^X\/\(\/\/\)$/{
21045	    s//\1/
21046	    q
21047	  }
21048	  /^X\/\(\/\).*/{
21049	    s//\1/
21050	    q
21051	  }
21052	  s/.*/./; q'`
21053
21054# CDPATH.
21055$as_unset CDPATH
21056
21057
21058
21059  as_lineno_1=$LINENO
21060  as_lineno_2=$LINENO
21061  test "x$as_lineno_1" != "x$as_lineno_2" &&
21062  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21063
21064  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21065  # uniformly replaced by the line number.  The first 'sed' inserts a
21066  # line-number line after each line using $LINENO; the second 'sed'
21067  # does the real work.  The second script uses 'N' to pair each
21068  # line-number line with the line containing $LINENO, and appends
21069  # trailing '-' during substitution so that $LINENO is not a special
21070  # case at line end.
21071  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21072  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21073  # E. McMahon (1931-1989) for sed's syntax.  :-)
21074  sed -n '
21075    p
21076    /[$]LINENO/=
21077  ' <$as_myself |
21078    sed '
21079      s/[$]LINENO.*/&-/
21080      t lineno
21081      b
21082      :lineno
21083      N
21084      :loop
21085      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21086      t loop
21087      s/-\n.*//
21088    ' >$as_me.lineno &&
21089  chmod +x "$as_me.lineno" ||
21090    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21091   { (exit 1); exit 1; }; }
21092
21093  # Don't try to exec as it changes $[0], causing all sort of problems
21094  # (the dirname of $[0] is not the place where we might find the
21095  # original and so on.  Autoconf is especially sensitive to this).
21096  . "./$as_me.lineno"
21097  # Exit status is that of the last command.
21098  exit
21099}
21100
21101
21102if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21103  as_dirname=dirname
21104else
21105  as_dirname=false
21106fi
21107
21108ECHO_C= ECHO_N= ECHO_T=
21109case `echo -n x` in
21110-n*)
21111  case `echo 'x\c'` in
21112  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21113  *)   ECHO_C='\c';;
21114  esac;;
21115*)
21116  ECHO_N='-n';;
21117esac
21118
21119if expr a : '\(a\)' >/dev/null 2>&1 &&
21120   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21121  as_expr=expr
21122else
21123  as_expr=false
21124fi
21125
21126rm -f conf$$ conf$$.exe conf$$.file
21127if test -d conf$$.dir; then
21128  rm -f conf$$.dir/conf$$.file
21129else
21130  rm -f conf$$.dir
21131  mkdir conf$$.dir
21132fi
21133echo >conf$$.file
21134if ln -s conf$$.file conf$$ 2>/dev/null; then
21135  as_ln_s='ln -s'
21136  # ... but there are two gotchas:
21137  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21138  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21139  # In both cases, we have to default to `cp -p'.
21140  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21141    as_ln_s='cp -p'
21142elif ln conf$$.file conf$$ 2>/dev/null; then
21143  as_ln_s=ln
21144else
21145  as_ln_s='cp -p'
21146fi
21147rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21148rmdir conf$$.dir 2>/dev/null
21149
21150if mkdir -p . 2>/dev/null; then
21151  as_mkdir_p=:
21152else
21153  test -d ./-p && rmdir ./-p
21154  as_mkdir_p=false
21155fi
21156
21157if test -x / >/dev/null 2>&1; then
21158  as_test_x='test -x'
21159else
21160  if ls -dL / >/dev/null 2>&1; then
21161    as_ls_L_option=L
21162  else
21163    as_ls_L_option=
21164  fi
21165  as_test_x='
21166    eval sh -c '\''
21167      if test -d "$1"; then
21168        test -d "$1/.";
21169      else
21170	case $1 in
21171        -*)set "./$1";;
21172	esac;
21173	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21174	???[sx]*):;;*)false;;esac;fi
21175    '\'' sh
21176  '
21177fi
21178as_executable_p=$as_test_x
21179
21180# Sed expression to map a string onto a valid CPP name.
21181as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21182
21183# Sed expression to map a string onto a valid variable name.
21184as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21185
21186
21187exec 6>&1
21188
21189# Save the log message, to keep $[0] and so on meaningful, and to
21190# report actual input values of CONFIG_FILES etc. instead of their
21191# values after options handling.
21192ac_log="
21193This file was extended by $as_me, which was
21194generated by GNU Autoconf 2.61.  Invocation command line was
21195
21196  CONFIG_FILES    = $CONFIG_FILES
21197  CONFIG_HEADERS  = $CONFIG_HEADERS
21198  CONFIG_LINKS    = $CONFIG_LINKS
21199  CONFIG_COMMANDS = $CONFIG_COMMANDS
21200  $ $0 $@
21201
21202on `(hostname || uname -n) 2>/dev/null | sed 1q`
21203"
21204
21205_ACEOF
21206
21207cat >>$CONFIG_STATUS <<_ACEOF
21208# Files that config.status was made for.
21209config_files="$ac_config_files"
21210config_headers="$ac_config_headers"
21211config_commands="$ac_config_commands"
21212
21213_ACEOF
21214
21215cat >>$CONFIG_STATUS <<\_ACEOF
21216ac_cs_usage="\
21217\`$as_me' instantiates files from templates according to the
21218current configuration.
21219
21220Usage: $0 [OPTIONS] [FILE]...
21221
21222  -h, --help       print this help, then exit
21223  -V, --version    print version number and configuration settings, then exit
21224  -q, --quiet      do not print progress messages
21225  -d, --debug      don't remove temporary files
21226      --recheck    update $as_me by reconfiguring in the same conditions
21227  --file=FILE[:TEMPLATE]
21228		   instantiate the configuration file FILE
21229  --header=FILE[:TEMPLATE]
21230		   instantiate the configuration header FILE
21231
21232Configuration files:
21233$config_files
21234
21235Configuration headers:
21236$config_headers
21237
21238Configuration commands:
21239$config_commands
21240
21241Report bugs to <bug-autoconf@gnu.org>."
21242
21243_ACEOF
21244cat >>$CONFIG_STATUS <<_ACEOF
21245ac_cs_version="\\
21246config.status
21247configured by $0, generated by GNU Autoconf 2.61,
21248  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21249
21250Copyright (C) 2006 Free Software Foundation, Inc.
21251This config.status script is free software; the Free Software Foundation
21252gives unlimited permission to copy, distribute and modify it."
21253
21254ac_pwd='$ac_pwd'
21255srcdir='$srcdir'
21256INSTALL='$INSTALL'
21257_ACEOF
21258
21259cat >>$CONFIG_STATUS <<\_ACEOF
21260# If no file are specified by the user, then we need to provide default
21261# value.  By we need to know if files were specified by the user.
21262ac_need_defaults=:
21263while test $# != 0
21264do
21265  case $1 in
21266  --*=*)
21267    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21268    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21269    ac_shift=:
21270    ;;
21271  *)
21272    ac_option=$1
21273    ac_optarg=$2
21274    ac_shift=shift
21275    ;;
21276  esac
21277
21278  case $ac_option in
21279  # Handling of the options.
21280  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21281    ac_cs_recheck=: ;;
21282  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21283    echo "$ac_cs_version"; exit ;;
21284  --debug | --debu | --deb | --de | --d | -d )
21285    debug=: ;;
21286  --file | --fil | --fi | --f )
21287    $ac_shift
21288    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21289    ac_need_defaults=false;;
21290  --header | --heade | --head | --hea )
21291    $ac_shift
21292    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21293    ac_need_defaults=false;;
21294  --he | --h)
21295    # Conflict between --help and --header
21296    { echo "$as_me: error: ambiguous option: $1
21297Try \`$0 --help' for more information." >&2
21298   { (exit 1); exit 1; }; };;
21299  --help | --hel | -h )
21300    echo "$ac_cs_usage"; exit ;;
21301  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21302  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21303    ac_cs_silent=: ;;
21304
21305  # This is an error.
21306  -*) { echo "$as_me: error: unrecognized option: $1
21307Try \`$0 --help' for more information." >&2
21308   { (exit 1); exit 1; }; } ;;
21309
21310  *) ac_config_targets="$ac_config_targets $1"
21311     ac_need_defaults=false ;;
21312
21313  esac
21314  shift
21315done
21316
21317ac_configure_extra_args=
21318
21319if $ac_cs_silent; then
21320  exec 6>/dev/null
21321  ac_configure_extra_args="$ac_configure_extra_args --silent"
21322fi
21323
21324_ACEOF
21325cat >>$CONFIG_STATUS <<_ACEOF
21326if \$ac_cs_recheck; then
21327  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21328  CONFIG_SHELL=$SHELL
21329  export CONFIG_SHELL
21330  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21331fi
21332
21333_ACEOF
21334cat >>$CONFIG_STATUS <<\_ACEOF
21335exec 5>>config.log
21336{
21337  echo
21338  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21339## Running $as_me. ##
21340_ASBOX
21341  echo "$ac_log"
21342} >&5
21343
21344_ACEOF
21345cat >>$CONFIG_STATUS <<_ACEOF
21346#
21347# INIT-COMMANDS
21348#
21349AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21350
21351_ACEOF
21352
21353cat >>$CONFIG_STATUS <<\_ACEOF
21354
21355# Handling of arguments.
21356for ac_config_target in $ac_config_targets
21357do
21358  case $ac_config_target in
21359    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21360    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21361    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21362
21363  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21364echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21365   { (exit 1); exit 1; }; };;
21366  esac
21367done
21368
21369
21370# If the user did not use the arguments to specify the items to instantiate,
21371# then the envvar interface is used.  Set only those that are not.
21372# We use the long form for the default assignment because of an extremely
21373# bizarre bug on SunOS 4.1.3.
21374if $ac_need_defaults; then
21375  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21376  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21377  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21378fi
21379
21380# Have a temporary directory for convenience.  Make it in the build tree
21381# simply because there is no reason against having it here, and in addition,
21382# creating and moving files from /tmp can sometimes cause problems.
21383# Hook for its removal unless debugging.
21384# Note that there is a small window in which the directory will not be cleaned:
21385# after its creation but before its name has been assigned to `$tmp'.
21386$debug ||
21387{
21388  tmp=
21389  trap 'exit_status=$?
21390  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21391' 0
21392  trap '{ (exit 1); exit 1; }' 1 2 13 15
21393}
21394# Create a (secure) tmp directory for tmp files.
21395
21396{
21397  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21398  test -n "$tmp" && test -d "$tmp"
21399}  ||
21400{
21401  tmp=./conf$$-$RANDOM
21402  (umask 077 && mkdir "$tmp")
21403} ||
21404{
21405   echo "$me: cannot create a temporary directory in ." >&2
21406   { (exit 1); exit 1; }
21407}
21408
21409#
21410# Set up the sed scripts for CONFIG_FILES section.
21411#
21412
21413# No need to generate the scripts if there are no CONFIG_FILES.
21414# This happens for instance when ./config.status config.h
21415if test -n "$CONFIG_FILES"; then
21416
21417_ACEOF
21418
21419
21420
21421ac_delim='%!_!# '
21422for ac_last_try in false false false false false :; do
21423  cat >conf$$subs.sed <<_ACEOF
21424SHELL!$SHELL$ac_delim
21425PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21426PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21427PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21428PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21429PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21430PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21431exec_prefix!$exec_prefix$ac_delim
21432prefix!$prefix$ac_delim
21433program_transform_name!$program_transform_name$ac_delim
21434bindir!$bindir$ac_delim
21435sbindir!$sbindir$ac_delim
21436libexecdir!$libexecdir$ac_delim
21437datarootdir!$datarootdir$ac_delim
21438datadir!$datadir$ac_delim
21439sysconfdir!$sysconfdir$ac_delim
21440sharedstatedir!$sharedstatedir$ac_delim
21441localstatedir!$localstatedir$ac_delim
21442includedir!$includedir$ac_delim
21443oldincludedir!$oldincludedir$ac_delim
21444docdir!$docdir$ac_delim
21445infodir!$infodir$ac_delim
21446htmldir!$htmldir$ac_delim
21447dvidir!$dvidir$ac_delim
21448pdfdir!$pdfdir$ac_delim
21449psdir!$psdir$ac_delim
21450libdir!$libdir$ac_delim
21451localedir!$localedir$ac_delim
21452mandir!$mandir$ac_delim
21453DEFS!$DEFS$ac_delim
21454ECHO_C!$ECHO_C$ac_delim
21455ECHO_N!$ECHO_N$ac_delim
21456ECHO_T!$ECHO_T$ac_delim
21457LIBS!$LIBS$ac_delim
21458build_alias!$build_alias$ac_delim
21459host_alias!$host_alias$ac_delim
21460target_alias!$target_alias$ac_delim
21461build!$build$ac_delim
21462build_cpu!$build_cpu$ac_delim
21463build_vendor!$build_vendor$ac_delim
21464build_os!$build_os$ac_delim
21465host!$host$ac_delim
21466host_cpu!$host_cpu$ac_delim
21467host_vendor!$host_vendor$ac_delim
21468host_os!$host_os$ac_delim
21469target!$target$ac_delim
21470target_cpu!$target_cpu$ac_delim
21471target_vendor!$target_vendor$ac_delim
21472target_os!$target_os$ac_delim
21473INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21474INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21475INSTALL_DATA!$INSTALL_DATA$ac_delim
21476CYGPATH_W!$CYGPATH_W$ac_delim
21477PACKAGE!$PACKAGE$ac_delim
21478VERSION!$VERSION$ac_delim
21479ACLOCAL!$ACLOCAL$ac_delim
21480AUTOCONF!$AUTOCONF$ac_delim
21481AUTOMAKE!$AUTOMAKE$ac_delim
21482AUTOHEADER!$AUTOHEADER$ac_delim
21483MAKEINFO!$MAKEINFO$ac_delim
21484install_sh!$install_sh$ac_delim
21485STRIP!$STRIP$ac_delim
21486INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21487mkdir_p!$mkdir_p$ac_delim
21488AWK!$AWK$ac_delim
21489SET_MAKE!$SET_MAKE$ac_delim
21490am__leading_dot!$am__leading_dot$ac_delim
21491AMTAR!$AMTAR$ac_delim
21492am__tar!$am__tar$ac_delim
21493am__untar!$am__untar$ac_delim
21494CC!$CC$ac_delim
21495CFLAGS!$CFLAGS$ac_delim
21496LDFLAGS!$LDFLAGS$ac_delim
21497CPPFLAGS!$CPPFLAGS$ac_delim
21498ac_ct_CC!$ac_ct_CC$ac_delim
21499EXEEXT!$EXEEXT$ac_delim
21500OBJEXT!$OBJEXT$ac_delim
21501DEPDIR!$DEPDIR$ac_delim
21502am__include!$am__include$ac_delim
21503am__quote!$am__quote$ac_delim
21504AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21505AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21506AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21507CCDEPMODE!$CCDEPMODE$ac_delim
21508am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21509am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21510CPP!$CPP$ac_delim
21511GREP!$GREP$ac_delim
21512EGREP!$EGREP$ac_delim
21513U!$U$ac_delim
21514ANSI2KNR!$ANSI2KNR$ac_delim
21515LN_S!$LN_S$ac_delim
21516ECHO!$ECHO$ac_delim
21517AR!$AR$ac_delim
21518RANLIB!$RANLIB$ac_delim
21519CXX!$CXX$ac_delim
21520CXXFLAGS!$CXXFLAGS$ac_delim
21521_ACEOF
21522
21523  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21524    break
21525  elif $ac_last_try; then
21526    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21527echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21528   { (exit 1); exit 1; }; }
21529  else
21530    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21531  fi
21532done
21533
21534ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21535if test -n "$ac_eof"; then
21536  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21537  ac_eof=`expr $ac_eof + 1`
21538fi
21539
21540cat >>$CONFIG_STATUS <<_ACEOF
21541cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21542/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21543_ACEOF
21544sed '
21545s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21546s/^/s,@/; s/!/@,|#_!!_#|/
21547:n
21548t n
21549s/'"$ac_delim"'$/,g/; t
21550s/$/\\/; p
21551N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21552' >>$CONFIG_STATUS <conf$$subs.sed
21553rm -f conf$$subs.sed
21554cat >>$CONFIG_STATUS <<_ACEOF
21555CEOF$ac_eof
21556_ACEOF
21557
21558
21559ac_delim='%!_!# '
21560for ac_last_try in false false false false false :; do
21561  cat >conf$$subs.sed <<_ACEOF
21562ac_ct_CXX!$ac_ct_CXX$ac_delim
21563CXXDEPMODE!$CXXDEPMODE$ac_delim
21564am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21565am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21566CXXCPP!$CXXCPP$ac_delim
21567F77!$F77$ac_delim
21568FFLAGS!$FFLAGS$ac_delim
21569ac_ct_F77!$ac_ct_F77$ac_delim
21570LIBTOOL!$LIBTOOL$ac_delim
21571CONV_ONLY_LIBPOPT_TRUE!$CONV_ONLY_LIBPOPT_TRUE$ac_delim
21572CONV_ONLY_LIBPOPT_FALSE!$CONV_ONLY_LIBPOPT_FALSE$ac_delim
21573POPT_SOURCE_PATH!$POPT_SOURCE_PATH$ac_delim
21574LIBOBJS!$LIBOBJS$ac_delim
21575LTLIBOBJS!$LTLIBOBJS$ac_delim
21576_ACEOF
21577
21578  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
21579    break
21580  elif $ac_last_try; then
21581    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21582echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21583   { (exit 1); exit 1; }; }
21584  else
21585    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21586  fi
21587done
21588
21589ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21590if test -n "$ac_eof"; then
21591  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21592  ac_eof=`expr $ac_eof + 1`
21593fi
21594
21595cat >>$CONFIG_STATUS <<_ACEOF
21596cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21597/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21598_ACEOF
21599sed '
21600s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21601s/^/s,@/; s/!/@,|#_!!_#|/
21602:n
21603t n
21604s/'"$ac_delim"'$/,g/; t
21605s/$/\\/; p
21606N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21607' >>$CONFIG_STATUS <conf$$subs.sed
21608rm -f conf$$subs.sed
21609cat >>$CONFIG_STATUS <<_ACEOF
21610:end
21611s/|#_!!_#|//g
21612CEOF$ac_eof
21613_ACEOF
21614
21615
21616# VPATH may cause trouble with some makes, so we remove $(srcdir),
21617# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21618# trailing colons and then remove the whole line if VPATH becomes empty
21619# (actually we leave an empty line to preserve line numbers).
21620if test "x$srcdir" = x.; then
21621  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21622s/:*\$(srcdir):*/:/
21623s/:*\${srcdir}:*/:/
21624s/:*@srcdir@:*/:/
21625s/^\([^=]*=[	 ]*\):*/\1/
21626s/:*$//
21627s/^[^=]*=[	 ]*$//
21628}'
21629fi
21630
21631cat >>$CONFIG_STATUS <<\_ACEOF
21632fi # test -n "$CONFIG_FILES"
21633
21634
21635for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21636do
21637  case $ac_tag in
21638  :[FHLC]) ac_mode=$ac_tag; continue;;
21639  esac
21640  case $ac_mode$ac_tag in
21641  :[FHL]*:*);;
21642  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21643echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21644   { (exit 1); exit 1; }; };;
21645  :[FH]-) ac_tag=-:-;;
21646  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21647  esac
21648  ac_save_IFS=$IFS
21649  IFS=:
21650  set x $ac_tag
21651  IFS=$ac_save_IFS
21652  shift
21653  ac_file=$1
21654  shift
21655
21656  case $ac_mode in
21657  :L) ac_source=$1;;
21658  :[FH])
21659    ac_file_inputs=
21660    for ac_f
21661    do
21662      case $ac_f in
21663      -) ac_f="$tmp/stdin";;
21664      *) # Look for the file first in the build tree, then in the source tree
21665	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21666	 # because $ac_f cannot contain `:'.
21667	 test -f "$ac_f" ||
21668	   case $ac_f in
21669	   [\\/$]*) false;;
21670	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21671	   esac ||
21672	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21673echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21674   { (exit 1); exit 1; }; };;
21675      esac
21676      ac_file_inputs="$ac_file_inputs $ac_f"
21677    done
21678
21679    # Let's still pretend it is `configure' which instantiates (i.e., don't
21680    # use $as_me), people would be surprised to read:
21681    #    /* config.h.  Generated by config.status.  */
21682    configure_input="Generated from "`IFS=:
21683	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21684    if test x"$ac_file" != x-; then
21685      configure_input="$ac_file.  $configure_input"
21686      { echo "$as_me:$LINENO: creating $ac_file" >&5
21687echo "$as_me: creating $ac_file" >&6;}
21688    fi
21689
21690    case $ac_tag in
21691    *:-:* | *:-) cat >"$tmp/stdin";;
21692    esac
21693    ;;
21694  esac
21695
21696  ac_dir=`$as_dirname -- "$ac_file" ||
21697$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21698	 X"$ac_file" : 'X\(//\)[^/]' \| \
21699	 X"$ac_file" : 'X\(//\)$' \| \
21700	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21701echo X"$ac_file" |
21702    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21703	    s//\1/
21704	    q
21705	  }
21706	  /^X\(\/\/\)[^/].*/{
21707	    s//\1/
21708	    q
21709	  }
21710	  /^X\(\/\/\)$/{
21711	    s//\1/
21712	    q
21713	  }
21714	  /^X\(\/\).*/{
21715	    s//\1/
21716	    q
21717	  }
21718	  s/.*/./; q'`
21719  { as_dir="$ac_dir"
21720  case $as_dir in #(
21721  -*) as_dir=./$as_dir;;
21722  esac
21723  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21724    as_dirs=
21725    while :; do
21726      case $as_dir in #(
21727      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21728      *) as_qdir=$as_dir;;
21729      esac
21730      as_dirs="'$as_qdir' $as_dirs"
21731      as_dir=`$as_dirname -- "$as_dir" ||
21732$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21733	 X"$as_dir" : 'X\(//\)[^/]' \| \
21734	 X"$as_dir" : 'X\(//\)$' \| \
21735	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21736echo X"$as_dir" |
21737    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21738	    s//\1/
21739	    q
21740	  }
21741	  /^X\(\/\/\)[^/].*/{
21742	    s//\1/
21743	    q
21744	  }
21745	  /^X\(\/\/\)$/{
21746	    s//\1/
21747	    q
21748	  }
21749	  /^X\(\/\).*/{
21750	    s//\1/
21751	    q
21752	  }
21753	  s/.*/./; q'`
21754      test -d "$as_dir" && break
21755    done
21756    test -z "$as_dirs" || eval "mkdir $as_dirs"
21757  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21758echo "$as_me: error: cannot create directory $as_dir" >&2;}
21759   { (exit 1); exit 1; }; }; }
21760  ac_builddir=.
21761
21762case "$ac_dir" in
21763.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21764*)
21765  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21766  # A ".." for each directory in $ac_dir_suffix.
21767  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21768  case $ac_top_builddir_sub in
21769  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21770  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21771  esac ;;
21772esac
21773ac_abs_top_builddir=$ac_pwd
21774ac_abs_builddir=$ac_pwd$ac_dir_suffix
21775# for backward compatibility:
21776ac_top_builddir=$ac_top_build_prefix
21777
21778case $srcdir in
21779  .)  # We are building in place.
21780    ac_srcdir=.
21781    ac_top_srcdir=$ac_top_builddir_sub
21782    ac_abs_top_srcdir=$ac_pwd ;;
21783  [\\/]* | ?:[\\/]* )  # Absolute name.
21784    ac_srcdir=$srcdir$ac_dir_suffix;
21785    ac_top_srcdir=$srcdir
21786    ac_abs_top_srcdir=$srcdir ;;
21787  *) # Relative name.
21788    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21789    ac_top_srcdir=$ac_top_build_prefix$srcdir
21790    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21791esac
21792ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21793
21794
21795  case $ac_mode in
21796  :F)
21797  #
21798  # CONFIG_FILE
21799  #
21800
21801  case $INSTALL in
21802  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21803  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21804  esac
21805_ACEOF
21806
21807cat >>$CONFIG_STATUS <<\_ACEOF
21808# If the template does not know about datarootdir, expand it.
21809# FIXME: This hack should be removed a few years after 2.60.
21810ac_datarootdir_hack=; ac_datarootdir_seen=
21811
21812case `sed -n '/datarootdir/ {
21813  p
21814  q
21815}
21816/@datadir@/p
21817/@docdir@/p
21818/@infodir@/p
21819/@localedir@/p
21820/@mandir@/p
21821' $ac_file_inputs` in
21822*datarootdir*) ac_datarootdir_seen=yes;;
21823*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21824  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21825echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21826_ACEOF
21827cat >>$CONFIG_STATUS <<_ACEOF
21828  ac_datarootdir_hack='
21829  s&@datadir@&$datadir&g
21830  s&@docdir@&$docdir&g
21831  s&@infodir@&$infodir&g
21832  s&@localedir@&$localedir&g
21833  s&@mandir@&$mandir&g
21834    s&\\\${datarootdir}&$datarootdir&g' ;;
21835esac
21836_ACEOF
21837
21838# Neutralize VPATH when `$srcdir' = `.'.
21839# Shell code in configure.ac might set extrasub.
21840# FIXME: do we really want to maintain this feature?
21841cat >>$CONFIG_STATUS <<_ACEOF
21842  sed "$ac_vpsub
21843$extrasub
21844_ACEOF
21845cat >>$CONFIG_STATUS <<\_ACEOF
21846:t
21847/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21848s&@configure_input@&$configure_input&;t t
21849s&@top_builddir@&$ac_top_builddir_sub&;t t
21850s&@srcdir@&$ac_srcdir&;t t
21851s&@abs_srcdir@&$ac_abs_srcdir&;t t
21852s&@top_srcdir@&$ac_top_srcdir&;t t
21853s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21854s&@builddir@&$ac_builddir&;t t
21855s&@abs_builddir@&$ac_abs_builddir&;t t
21856s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21857s&@INSTALL@&$ac_INSTALL&;t t
21858$ac_datarootdir_hack
21859" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21860
21861test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21862  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21863  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21864  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21865which seems to be undefined.  Please make sure it is defined." >&5
21866echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21867which seems to be undefined.  Please make sure it is defined." >&2;}
21868
21869  rm -f "$tmp/stdin"
21870  case $ac_file in
21871  -) cat "$tmp/out"; rm -f "$tmp/out";;
21872  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21873  esac
21874 ;;
21875  :H)
21876  #
21877  # CONFIG_HEADER
21878  #
21879_ACEOF
21880
21881# Transform confdefs.h into a sed script `conftest.defines', that
21882# substitutes the proper values into config.h.in to produce config.h.
21883rm -f conftest.defines conftest.tail
21884# First, append a space to every undef/define line, to ease matching.
21885echo 's/$/ /' >conftest.defines
21886# Then, protect against being on the right side of a sed subst, or in
21887# an unquoted here document, in config.status.  If some macros were
21888# called several times there might be several #defines for the same
21889# symbol, which is useless.  But do not sort them, since the last
21890# AC_DEFINE must be honored.
21891ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21892# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21893# NAME is the cpp macro being defined, VALUE is the value it is being given.
21894# PARAMS is the parameter list in the macro definition--in most cases, it's
21895# just an empty string.
21896ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
21897ac_dB='\\)[	 (].*,\\1define\\2'
21898ac_dC=' '
21899ac_dD=' ,'
21900
21901uniq confdefs.h |
21902  sed -n '
21903	t rset
21904	:rset
21905	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
21906	t ok
21907	d
21908	:ok
21909	s/[\\&,]/\\&/g
21910	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21911	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21912  ' >>conftest.defines
21913
21914# Remove the space that was appended to ease matching.
21915# Then replace #undef with comments.  This is necessary, for
21916# example, in the case of _POSIX_SOURCE, which is predefined and required
21917# on some systems where configure will not decide to define it.
21918# (The regexp can be short, since the line contains either #define or #undef.)
21919echo 's/ $//
21920s,^[	 #]*u.*,/* & */,' >>conftest.defines
21921
21922# Break up conftest.defines:
21923ac_max_sed_lines=50
21924
21925# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21926# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21927# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21928# et cetera.
21929ac_in='$ac_file_inputs'
21930ac_out='"$tmp/out1"'
21931ac_nxt='"$tmp/out2"'
21932
21933while :
21934do
21935  # Write a here document:
21936    cat >>$CONFIG_STATUS <<_ACEOF
21937    # First, check the format of the line:
21938    cat >"\$tmp/defines.sed" <<\\CEOF
21939/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
21940/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
21941b
21942:def
21943_ACEOF
21944  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21945  echo 'CEOF
21946    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21947  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21948  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21949  grep . conftest.tail >/dev/null || break
21950  rm -f conftest.defines
21951  mv conftest.tail conftest.defines
21952done
21953rm -f conftest.defines conftest.tail
21954
21955echo "ac_result=$ac_in" >>$CONFIG_STATUS
21956cat >>$CONFIG_STATUS <<\_ACEOF
21957  if test x"$ac_file" != x-; then
21958    echo "/* $configure_input  */" >"$tmp/config.h"
21959    cat "$ac_result" >>"$tmp/config.h"
21960    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21961      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21962echo "$as_me: $ac_file is unchanged" >&6;}
21963    else
21964      rm -f $ac_file
21965      mv "$tmp/config.h" $ac_file
21966    fi
21967  else
21968    echo "/* $configure_input  */"
21969    cat "$ac_result"
21970  fi
21971  rm -f "$tmp/out12"
21972# Compute $ac_file's index in $config_headers.
21973_am_stamp_count=1
21974for _am_header in $config_headers :; do
21975  case $_am_header in
21976    $ac_file | $ac_file:* )
21977      break ;;
21978    * )
21979      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21980  esac
21981done
21982echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21983$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21984	 X$ac_file : 'X\(//\)[^/]' \| \
21985	 X$ac_file : 'X\(//\)$' \| \
21986	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21987echo X$ac_file |
21988    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21989	    s//\1/
21990	    q
21991	  }
21992	  /^X\(\/\/\)[^/].*/{
21993	    s//\1/
21994	    q
21995	  }
21996	  /^X\(\/\/\)$/{
21997	    s//\1/
21998	    q
21999	  }
22000	  /^X\(\/\).*/{
22001	    s//\1/
22002	    q
22003	  }
22004	  s/.*/./; q'`/stamp-h$_am_stamp_count
22005 ;;
22006
22007  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22008echo "$as_me: executing $ac_file commands" >&6;}
22009 ;;
22010  esac
22011
22012
22013  case $ac_file$ac_mode in
22014    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22015  # Strip MF so we end up with the name of the file.
22016  mf=`echo "$mf" | sed -e 's/:.*$//'`
22017  # Check whether this is an Automake generated Makefile or not.
22018  # We used to match only the files named `Makefile.in', but
22019  # some people rename them; so instead we look at the file content.
22020  # Grep'ing the first line is not enough: some people post-process
22021  # each Makefile.in and add a new line on top of each file to say so.
22022  # So let's grep whole file.
22023  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22024    dirpart=`$as_dirname -- "$mf" ||
22025$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22026	 X"$mf" : 'X\(//\)[^/]' \| \
22027	 X"$mf" : 'X\(//\)$' \| \
22028	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22029echo X"$mf" |
22030    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22031	    s//\1/
22032	    q
22033	  }
22034	  /^X\(\/\/\)[^/].*/{
22035	    s//\1/
22036	    q
22037	  }
22038	  /^X\(\/\/\)$/{
22039	    s//\1/
22040	    q
22041	  }
22042	  /^X\(\/\).*/{
22043	    s//\1/
22044	    q
22045	  }
22046	  s/.*/./; q'`
22047  else
22048    continue
22049  fi
22050  # Extract the definition of DEPDIR, am__include, and am__quote
22051  # from the Makefile without running `make'.
22052  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22053  test -z "$DEPDIR" && continue
22054  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22055  test -z "am__include" && continue
22056  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22057  # When using ansi2knr, U may be empty or an underscore; expand it
22058  U=`sed -n 's/^U = //p' < "$mf"`
22059  # Find all dependency output files, they are included files with
22060  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22061  # simplest approach to changing $(DEPDIR) to its actual value in the
22062  # expansion.
22063  for file in `sed -n "
22064    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22065       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22066    # Make sure the directory exists.
22067    test -f "$dirpart/$file" && continue
22068    fdir=`$as_dirname -- "$file" ||
22069$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22070	 X"$file" : 'X\(//\)[^/]' \| \
22071	 X"$file" : 'X\(//\)$' \| \
22072	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22073echo X"$file" |
22074    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22075	    s//\1/
22076	    q
22077	  }
22078	  /^X\(\/\/\)[^/].*/{
22079	    s//\1/
22080	    q
22081	  }
22082	  /^X\(\/\/\)$/{
22083	    s//\1/
22084	    q
22085	  }
22086	  /^X\(\/\).*/{
22087	    s//\1/
22088	    q
22089	  }
22090	  s/.*/./; q'`
22091    { as_dir=$dirpart/$fdir
22092  case $as_dir in #(
22093  -*) as_dir=./$as_dir;;
22094  esac
22095  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22096    as_dirs=
22097    while :; do
22098      case $as_dir in #(
22099      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22100      *) as_qdir=$as_dir;;
22101      esac
22102      as_dirs="'$as_qdir' $as_dirs"
22103      as_dir=`$as_dirname -- "$as_dir" ||
22104$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22105	 X"$as_dir" : 'X\(//\)[^/]' \| \
22106	 X"$as_dir" : 'X\(//\)$' \| \
22107	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22108echo X"$as_dir" |
22109    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22110	    s//\1/
22111	    q
22112	  }
22113	  /^X\(\/\/\)[^/].*/{
22114	    s//\1/
22115	    q
22116	  }
22117	  /^X\(\/\/\)$/{
22118	    s//\1/
22119	    q
22120	  }
22121	  /^X\(\/\).*/{
22122	    s//\1/
22123	    q
22124	  }
22125	  s/.*/./; q'`
22126      test -d "$as_dir" && break
22127    done
22128    test -z "$as_dirs" || eval "mkdir $as_dirs"
22129  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22130echo "$as_me: error: cannot create directory $as_dir" >&2;}
22131   { (exit 1); exit 1; }; }; }
22132    # echo "creating $dirpart/$file"
22133    echo '# dummy' > "$dirpart/$file"
22134  done
22135done
22136 ;;
22137
22138  esac
22139done # for ac_tag
22140
22141
22142{ (exit 0); exit 0; }
22143_ACEOF
22144chmod +x $CONFIG_STATUS
22145ac_clean_files=$ac_clean_files_save
22146
22147
22148# configure is writing to config.log, and then calls config.status.
22149# config.status does its own redirection, appending to config.log.
22150# Unfortunately, on DOS this fails, as config.log is still kept open
22151# by configure, so config.status won't be able to write to it; its
22152# output is simply discarded.  So we exec the FD to /dev/null,
22153# effectively closing config.log, so it can be properly (re)opened and
22154# appended to by config.status.  When coming back to configure, we
22155# need to make the FD available again.
22156if test "$no_create" != yes; then
22157  ac_cs_success=:
22158  ac_config_status_args=
22159  test "$silent" = yes &&
22160    ac_config_status_args="$ac_config_status_args --quiet"
22161  exec 5>/dev/null
22162  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22163  exec 5>>config.log
22164  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22165  # would make configure fail if this is the last instruction.
22166  $ac_cs_success || { (exit 1); exit 1; }
22167fi
22168
22169