configure revision 173144
1#! /bin/sh
2# From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#35 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61 for OpenBSM 1.0.
5#
6# Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization.  ##
14## --------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19  emulate sh
20  NULLCMD=:
21  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22  # is contrary to our usage.  Disable this feature.
23  alias -g '${1+"$@"}'='"$@"'
24  setopt NO_GLOB_SUBST
25else
26  case `(set -o) 2>/dev/null` in
27  *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
45  echo "#! /bin/sh" >conf$$.sh
46  echo  "exit 0"   >>conf$$.sh
47  chmod +x conf$$.sh
48  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49    PATH_SEPARATOR=';'
50  else
51    PATH_SEPARATOR=:
52  fi
53  rm -f conf$$.sh
54fi
55
56# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58  as_unset=unset
59else
60  as_unset=false
61fi
62
63
64# IFS
65# We need space, tab and new line, in precisely that order.  Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" ""	$as_nl"
72
73# Find who we are.  Look in the path if we contain no directory separator.
74case $0 in
75  *[\\/]* ) as_myself=$0 ;;
76  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79  IFS=$as_save_IFS
80  test -z "$as_dir" && as_dir=.
81  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85     ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90  as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94  { (exit 1); exit 1; }
95fi
96
97# Work around bugs in pre-3.0 UWIN ksh.
98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for as_var in \
107  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109  LC_TELEPHONE LC_TIME
110do
111  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112    eval $as_var=C; export $as_var
113  else
114    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115  fi
116done
117
118# Required to use basename.
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120   test "X`expr 00001 : '.*\(...\)'`" = X001; then
121  as_expr=expr
122else
123  as_expr=false
124fi
125
126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127  as_basename=basename
128else
129  as_basename=false
130fi
131
132
133# Name of the executable.
134as_me=`$as_basename -- "$0" ||
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136	 X"$0" : 'X\(//\)$' \| \
137	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138echo X/"$0" |
139    sed '/^.*\/\([^/][^/]*\)\/*$/{
140	    s//\1/
141	    q
142	  }
143	  /^X\/\(\/\/\)$/{
144	    s//\1/
145	    q
146	  }
147	  /^X\/\(\/\).*/{
148	    s//\1/
149	    q
150	  }
151	  s/.*/./; q'`
152
153# CDPATH.
154$as_unset CDPATH
155
156
157if test "x$CONFIG_SHELL" = x; then
158  if (eval ":") 2>/dev/null; then
159  as_have_required=yes
160else
161  as_have_required=no
162fi
163
164  if test $as_have_required = yes && 	 (eval ":
165(as_func_return () {
166  (exit \$1)
167}
168as_func_success () {
169  as_func_return 0
170}
171as_func_failure () {
172  as_func_return 1
173}
174as_func_ret_success () {
175  return 0
176}
177as_func_ret_failure () {
178  return 1
179}
180
181exitcode=0
182if as_func_success; then
183  :
184else
185  exitcode=1
186  echo as_func_success failed.
187fi
188
189if as_func_failure; then
190  exitcode=1
191  echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195  :
196else
197  exitcode=1
198  echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202  exitcode=1
203  echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207  :
208else
209  exitcode=1
210  echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216  as_lineno_1=\$LINENO
217  as_lineno_2=\$LINENO
218  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221  :
222else
223  as_candidate_shells=
224    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226do
227  IFS=$as_save_IFS
228  test -z "$as_dir" && as_dir=.
229  case $as_dir in
230	 /*)
231	   for as_base in sh bash ksh sh5; do
232	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233	   done;;
234       esac
235done
236IFS=$as_save_IFS
237
238
239      for as_shell in $as_candidate_shells $SHELL; do
240	 # Try only shells that exist, to save several forks.
241	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242		{ ("$as_shell") 2> /dev/null <<\_ASEOF
243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244  emulate sh
245  NULLCMD=:
246  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247  # is contrary to our usage.  Disable this feature.
248  alias -g '${1+"$@"}'='"$@"'
249  setopt NO_GLOB_SUBST
250else
251  case `(set -o) 2>/dev/null` in
252  *posix*) set -o posix ;;
253esac
254
255fi
256
257
258:
259_ASEOF
260}; then
261  CONFIG_SHELL=$as_shell
262	       as_have_required=yes
263	       if { "$as_shell" 2> /dev/null <<\_ASEOF
264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265  emulate sh
266  NULLCMD=:
267  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268  # is contrary to our usage.  Disable this feature.
269  alias -g '${1+"$@"}'='"$@"'
270  setopt NO_GLOB_SUBST
271else
272  case `(set -o) 2>/dev/null` in
273  *posix*) set -o posix ;;
274esac
275
276fi
277
278
279:
280(as_func_return () {
281  (exit $1)
282}
283as_func_success () {
284  as_func_return 0
285}
286as_func_failure () {
287  as_func_return 1
288}
289as_func_ret_success () {
290  return 0
291}
292as_func_ret_failure () {
293  return 1
294}
295
296exitcode=0
297if as_func_success; then
298  :
299else
300  exitcode=1
301  echo as_func_success failed.
302fi
303
304if as_func_failure; then
305  exitcode=1
306  echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310  :
311else
312  exitcode=1
313  echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317  exitcode=1
318  echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322  :
323else
324  exitcode=1
325  echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
331  as_lineno_1=$LINENO
332  as_lineno_2=$LINENO
333  test "x$as_lineno_1" != "x$as_lineno_2" &&
334  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338  break
339fi
340
341fi
342
343      done
344
345      if test "x$CONFIG_SHELL" != x; then
346  for as_var in BASH_ENV ENV
347        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348        done
349        export CONFIG_SHELL
350        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354    if test $as_have_required = no; then
355  echo This script requires a shell more modern than all the
356      echo shells that I found on your system.  Please install a
357      echo modern shell, or manually run the script under such a
358      echo shell if you do have one.
359      { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370  (exit \$1)
371}
372as_func_success () {
373  as_func_return 0
374}
375as_func_failure () {
376  as_func_return 1
377}
378as_func_ret_success () {
379  return 0
380}
381as_func_ret_failure () {
382  return 1
383}
384
385exitcode=0
386if as_func_success; then
387  :
388else
389  exitcode=1
390  echo as_func_success failed.
391fi
392
393if as_func_failure; then
394  exitcode=1
395  echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399  :
400else
401  exitcode=1
402  echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406  exitcode=1
407  echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411  :
412else
413  exitcode=1
414  echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418  echo No shell found that supports shell functions.
419  echo Please tell autoconf@gnu.org about your system,
420  echo including any error possibly output before this
421  echo message
422}
423
424
425
426  as_lineno_1=$LINENO
427  as_lineno_2=$LINENO
428  test "x$as_lineno_1" != "x$as_lineno_2" &&
429  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432  # uniformly replaced by the line number.  The first 'sed' inserts a
433  # line-number line after each line using $LINENO; the second 'sed'
434  # does the real work.  The second script uses 'N' to pair each
435  # line-number line with the line containing $LINENO, and appends
436  # trailing '-' during substitution so that $LINENO is not a special
437  # case at line end.
438  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439  # scripts with optimization help from Paolo Bonzini.  Blame Lee
440  # E. McMahon (1931-1989) for sed's syntax.  :-)
441  sed -n '
442    p
443    /[$]LINENO/=
444  ' <$as_myself |
445    sed '
446      s/[$]LINENO.*/&-/
447      t lineno
448      b
449      :lineno
450      N
451      :loop
452      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453      t loop
454      s/-\n.*//
455    ' >$as_me.lineno &&
456  chmod +x "$as_me.lineno" ||
457    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458   { (exit 1); exit 1; }; }
459
460  # Don't try to exec as it changes $[0], causing all sort of problems
461  # (the dirname of $[0] is not the place where we might find the
462  # original and so on.  Autoconf is especially sensitive to this).
463  . "./$as_me.lineno"
464  # Exit status is that of the last command.
465  exit
466}
467
468
469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470  as_dirname=dirname
471else
472  as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478  case `echo 'x\c'` in
479  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
480  *)   ECHO_C='\c';;
481  esac;;
482*)
483  ECHO_N='-n';;
484esac
485
486if expr a : '\(a\)' >/dev/null 2>&1 &&
487   test "X`expr 00001 : '.*\(...\)'`" = X001; then
488  as_expr=expr
489else
490  as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
494if test -d conf$$.dir; then
495  rm -f conf$$.dir/conf$$.file
496else
497  rm -f conf$$.dir
498  mkdir conf$$.dir
499fi
500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
502  as_ln_s='ln -s'
503  # ... but there are two gotchas:
504  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506  # In both cases, we have to default to `cp -p'.
507  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508    as_ln_s='cp -p'
509elif ln conf$$.file conf$$ 2>/dev/null; then
510  as_ln_s=ln
511else
512  as_ln_s='cp -p'
513fi
514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
516
517if mkdir -p . 2>/dev/null; then
518  as_mkdir_p=:
519else
520  test -d ./-p && rmdir ./-p
521  as_mkdir_p=false
522fi
523
524if test -x / >/dev/null 2>&1; then
525  as_test_x='test -x'
526else
527  if ls -dL / >/dev/null 2>&1; then
528    as_ls_L_option=L
529  else
530    as_ls_L_option=
531  fi
532  as_test_x='
533    eval sh -c '\''
534      if test -d "$1"; then
535        test -d "$1/.";
536      else
537	case $1 in
538        -*)set "./$1";;
539	esac;
540	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541	???[sx]*):;;*)false;;esac;fi
542    '\'' sh
543  '
544fi
545as_executable_p=$as_test_x
546
547# Sed expression to map a string onto a valid CPP name.
548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550# Sed expression to map a string onto a valid variable name.
551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556# Check that we are running under the correct shell.
557SHELL=${CONFIG_SHELL-/bin/sh}
558
559case X$ECHO in
560X*--fallback-echo)
561  # Remove one level of quotation (which was required for Make).
562  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563  ;;
564esac
565
566echo=${ECHO-echo}
567if test "X$1" = X--no-reexec; then
568  # Discard the --no-reexec flag, and continue.
569  shift
570elif test "X$1" = X--fallback-echo; then
571  # Avoid inline document here, it may be left over
572  :
573elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574  # Yippee, $echo works!
575  :
576else
577  # Restart under the correct shell.
578  exec $SHELL "$0" --no-reexec ${1+"$@"}
579fi
580
581if test "X$1" = X--fallback-echo; then
582  # used as fallback echo
583  shift
584  cat <<EOF
585$*
586EOF
587  exit 0
588fi
589
590# The HP-UX ksh and POSIX shell print the target directory to stdout
591# if CDPATH is set.
592(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594if test -z "$ECHO"; then
595if test "X${echo_test_string+set}" != Xset; then
596# find a string as large as possible, as long as the shell can cope with it
597  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600       echo_test_string=`eval $cmd` &&
601       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602    then
603      break
604    fi
605  done
606fi
607
608if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610   test "X$echo_testing_string" = "X$echo_test_string"; then
611  :
612else
613  # The Solaris, AIX, and Digital Unix default echo programs unquote
614  # backslashes.  This makes it impossible to quote backslashes using
615  #   echo "$something" | sed 's/\\/\\\\/g'
616  #
617  # So, first we look for a working echo in the user's PATH.
618
619  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620  for dir in $PATH /usr/ucb; do
621    IFS="$lt_save_ifs"
622    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625       test "X$echo_testing_string" = "X$echo_test_string"; then
626      echo="$dir/echo"
627      break
628    fi
629  done
630  IFS="$lt_save_ifs"
631
632  if test "X$echo" = Xecho; then
633    # We didn't find a better echo, so look for alternatives.
634    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636       test "X$echo_testing_string" = "X$echo_test_string"; then
637      # This shell has a builtin print -r that does the trick.
638      echo='print -r'
639    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640	 test "X$CONFIG_SHELL" != X/bin/ksh; then
641      # If we have ksh, try running configure again with it.
642      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643      export ORIGINAL_CONFIG_SHELL
644      CONFIG_SHELL=/bin/ksh
645      export CONFIG_SHELL
646      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647    else
648      # Try using printf.
649      echo='printf %s\n'
650      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652	 test "X$echo_testing_string" = "X$echo_test_string"; then
653	# Cool, printf works
654	:
655      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656	   test "X$echo_testing_string" = 'X\t' &&
657	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658	   test "X$echo_testing_string" = "X$echo_test_string"; then
659	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660	export CONFIG_SHELL
661	SHELL="$CONFIG_SHELL"
662	export SHELL
663	echo="$CONFIG_SHELL $0 --fallback-echo"
664      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665	   test "X$echo_testing_string" = 'X\t' &&
666	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667	   test "X$echo_testing_string" = "X$echo_test_string"; then
668	echo="$CONFIG_SHELL $0 --fallback-echo"
669      else
670	# maybe with a smaller string...
671	prev=:
672
673	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675	  then
676	    break
677	  fi
678	  prev="$cmd"
679	done
680
681	if test "$prev" != 'sed 50q "$0"'; then
682	  echo_test_string=`eval $prev`
683	  export echo_test_string
684	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685	else
686	  # Oops.  We lost completely, so just stick with echo.
687	  echo=echo
688	fi
689      fi
690    fi
691  fi
692fi
693fi
694
695# Copy echo and quote the copy suitably for passing to libtool from
696# the Makefile, instead of quoting the original, which is used later.
697ECHO=$echo
698if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700fi
701
702
703
704
705tagnames=${tagnames+${tagnames},}CXX
706
707tagnames=${tagnames+${tagnames},}F77
708
709exec 7<&0 </dev/null 6>&1
710
711# Name of the host.
712# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713# so uname gets run too.
714ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
716#
717# Initializations.
718#
719ac_default_prefix=/usr/local
720ac_clean_files=
721ac_config_libobj_dir=.
722LIBOBJS=
723cross_compiling=no
724subdirs=
725MFLAGS=
726MAKEFLAGS=
727SHELL=${CONFIG_SHELL-/bin/sh}
728
729# Identity of this package.
730PACKAGE_NAME='OpenBSM'
731PACKAGE_TARNAME='openbsm'
732PACKAGE_VERSION='1.0'
733PACKAGE_STRING='OpenBSM 1.0'
734PACKAGE_BUGREPORT='trustedbsd-audit@TrustesdBSD.org'
735
736ac_unique_file="bin/auditreduce/auditreduce.c"
737# Factoring default headers for most tests.
738ac_includes_default="\
739#include <stdio.h>
740#ifdef HAVE_SYS_TYPES_H
741# include <sys/types.h>
742#endif
743#ifdef HAVE_SYS_STAT_H
744# include <sys/stat.h>
745#endif
746#ifdef STDC_HEADERS
747# include <stdlib.h>
748# include <stddef.h>
749#else
750# ifdef HAVE_STDLIB_H
751#  include <stdlib.h>
752# endif
753#endif
754#ifdef HAVE_STRING_H
755# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756#  include <memory.h>
757# endif
758# include <string.h>
759#endif
760#ifdef HAVE_STRINGS_H
761# include <strings.h>
762#endif
763#ifdef HAVE_INTTYPES_H
764# include <inttypes.h>
765#endif
766#ifdef HAVE_STDINT_H
767# include <stdint.h>
768#endif
769#ifdef HAVE_UNISTD_H
770# include <unistd.h>
771#endif"
772
773ac_header_list=
774ac_func_list=
775ac_subst_vars='SHELL
776PATH_SEPARATOR
777PACKAGE_NAME
778PACKAGE_TARNAME
779PACKAGE_VERSION
780PACKAGE_STRING
781PACKAGE_BUGREPORT
782exec_prefix
783prefix
784program_transform_name
785bindir
786sbindir
787libexecdir
788datarootdir
789datadir
790sysconfdir
791sharedstatedir
792localstatedir
793includedir
794oldincludedir
795docdir
796infodir
797htmldir
798dvidir
799pdfdir
800psdir
801libdir
802localedir
803mandir
804DEFS
805ECHO_C
806ECHO_N
807ECHO_T
808LIBS
809build_alias
810host_alias
811target_alias
812MAINTAINER_MODE_TRUE
813MAINTAINER_MODE_FALSE
814MAINT
815CC
816CFLAGS
817LDFLAGS
818CPPFLAGS
819ac_ct_CC
820EXEEXT
821OBJEXT
822INSTALL_PROGRAM
823INSTALL_SCRIPT
824INSTALL_DATA
825build
826build_cpu
827build_vendor
828build_os
829host
830host_cpu
831host_vendor
832host_os
833SED
834GREP
835EGREP
836LN_S
837ECHO
838AR
839RANLIB
840STRIP
841CPP
842CXX
843CXXFLAGS
844ac_ct_CXX
845CXXCPP
846F77
847FFLAGS
848ac_ct_F77
849LIBTOOL
850am__isrc
851CYGPATH_W
852PACKAGE
853VERSION
854ACLOCAL
855AUTOCONF
856AUTOMAKE
857AUTOHEADER
858MAKEINFO
859install_sh
860INSTALL_STRIP_PROGRAM
861mkdir_p
862AWK
863SET_MAKE
864am__leading_dot
865AMTAR
866am__tar
867am__untar
868DEPDIR
869am__include
870am__quote
871AMDEP_TRUE
872AMDEP_FALSE
873AMDEPBACKSLASH
874CCDEPMODE
875am__fastdepCC_TRUE
876am__fastdepCC_FALSE
877CXXDEPMODE
878am__fastdepCXX_TRUE
879am__fastdepCXX_FALSE
880LIBOBJS
881HAVE_AUDIT_SYSCALLS_TRUE
882HAVE_AUDIT_SYSCALLS_FALSE
883LTLIBOBJS'
884ac_subst_files=''
885      ac_precious_vars='build_alias
886host_alias
887target_alias
888CC
889CFLAGS
890LDFLAGS
891LIBS
892CPPFLAGS
893CPP
894CXX
895CXXFLAGS
896CCC
897CXXCPP
898F77
899FFLAGS'
900
901
902# Initialize some variables set by options.
903ac_init_help=
904ac_init_version=false
905# The variables have the same names as the options, with
906# dashes changed to underlines.
907cache_file=/dev/null
908exec_prefix=NONE
909no_create=
910no_recursion=
911prefix=NONE
912program_prefix=NONE
913program_suffix=NONE
914program_transform_name=s,x,x,
915silent=
916site=
917srcdir=
918verbose=
919x_includes=NONE
920x_libraries=NONE
921
922# Installation directory options.
923# These are left unexpanded so users can "make install exec_prefix=/foo"
924# and all the variables that are supposed to be based on exec_prefix
925# by default will actually change.
926# Use braces instead of parens because sh, perl, etc. also accept them.
927# (The list follows the same order as the GNU Coding Standards.)
928bindir='${exec_prefix}/bin'
929sbindir='${exec_prefix}/sbin'
930libexecdir='${exec_prefix}/libexec'
931datarootdir='${prefix}/share'
932datadir='${datarootdir}'
933sysconfdir='${prefix}/etc'
934sharedstatedir='${prefix}/com'
935localstatedir='${prefix}/var'
936includedir='${prefix}/include'
937oldincludedir='/usr/include'
938docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939infodir='${datarootdir}/info'
940htmldir='${docdir}'
941dvidir='${docdir}'
942pdfdir='${docdir}'
943psdir='${docdir}'
944libdir='${exec_prefix}/lib'
945localedir='${datarootdir}/locale'
946mandir='${datarootdir}/man'
947
948ac_prev=
949ac_dashdash=
950for ac_option
951do
952  # If the previous option needs an argument, assign it.
953  if test -n "$ac_prev"; then
954    eval $ac_prev=\$ac_option
955    ac_prev=
956    continue
957  fi
958
959  case $ac_option in
960  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961  *)	ac_optarg=yes ;;
962  esac
963
964  # Accept the important Cygnus configure options, so we can diagnose typos.
965
966  case $ac_dashdash$ac_option in
967  --)
968    ac_dashdash=yes ;;
969
970  -bindir | --bindir | --bindi | --bind | --bin | --bi)
971    ac_prev=bindir ;;
972  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973    bindir=$ac_optarg ;;
974
975  -build | --build | --buil | --bui | --bu)
976    ac_prev=build_alias ;;
977  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978    build_alias=$ac_optarg ;;
979
980  -cache-file | --cache-file | --cache-fil | --cache-fi \
981  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982    ac_prev=cache_file ;;
983  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985    cache_file=$ac_optarg ;;
986
987  --config-cache | -C)
988    cache_file=config.cache ;;
989
990  -datadir | --datadir | --datadi | --datad)
991    ac_prev=datadir ;;
992  -datadir=* | --datadir=* | --datadi=* | --datad=*)
993    datadir=$ac_optarg ;;
994
995  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996  | --dataroo | --dataro | --datar)
997    ac_prev=datarootdir ;;
998  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000    datarootdir=$ac_optarg ;;
1001
1002  -disable-* | --disable-*)
1003    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004    # Reject names that are not valid shell variable names.
1005    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007   { (exit 1); exit 1; }; }
1008    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009    eval enable_$ac_feature=no ;;
1010
1011  -docdir | --docdir | --docdi | --doc | --do)
1012    ac_prev=docdir ;;
1013  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014    docdir=$ac_optarg ;;
1015
1016  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017    ac_prev=dvidir ;;
1018  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019    dvidir=$ac_optarg ;;
1020
1021  -enable-* | --enable-*)
1022    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023    # Reject names that are not valid shell variable names.
1024    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026   { (exit 1); exit 1; }; }
1027    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028    eval enable_$ac_feature=\$ac_optarg ;;
1029
1030  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032  | --exec | --exe | --ex)
1033    ac_prev=exec_prefix ;;
1034  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036  | --exec=* | --exe=* | --ex=*)
1037    exec_prefix=$ac_optarg ;;
1038
1039  -gas | --gas | --ga | --g)
1040    # Obsolete; use --with-gas.
1041    with_gas=yes ;;
1042
1043  -help | --help | --hel | --he | -h)
1044    ac_init_help=long ;;
1045  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046    ac_init_help=recursive ;;
1047  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048    ac_init_help=short ;;
1049
1050  -host | --host | --hos | --ho)
1051    ac_prev=host_alias ;;
1052  -host=* | --host=* | --hos=* | --ho=*)
1053    host_alias=$ac_optarg ;;
1054
1055  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056    ac_prev=htmldir ;;
1057  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058  | --ht=*)
1059    htmldir=$ac_optarg ;;
1060
1061  -includedir | --includedir | --includedi | --included | --include \
1062  | --includ | --inclu | --incl | --inc)
1063    ac_prev=includedir ;;
1064  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065  | --includ=* | --inclu=* | --incl=* | --inc=*)
1066    includedir=$ac_optarg ;;
1067
1068  -infodir | --infodir | --infodi | --infod | --info | --inf)
1069    ac_prev=infodir ;;
1070  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071    infodir=$ac_optarg ;;
1072
1073  -libdir | --libdir | --libdi | --libd)
1074    ac_prev=libdir ;;
1075  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076    libdir=$ac_optarg ;;
1077
1078  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079  | --libexe | --libex | --libe)
1080    ac_prev=libexecdir ;;
1081  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082  | --libexe=* | --libex=* | --libe=*)
1083    libexecdir=$ac_optarg ;;
1084
1085  -localedir | --localedir | --localedi | --localed | --locale)
1086    ac_prev=localedir ;;
1087  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088    localedir=$ac_optarg ;;
1089
1090  -localstatedir | --localstatedir | --localstatedi | --localstated \
1091  | --localstate | --localstat | --localsta | --localst | --locals)
1092    ac_prev=localstatedir ;;
1093  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095    localstatedir=$ac_optarg ;;
1096
1097  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098    ac_prev=mandir ;;
1099  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100    mandir=$ac_optarg ;;
1101
1102  -nfp | --nfp | --nf)
1103    # Obsolete; use --without-fp.
1104    with_fp=no ;;
1105
1106  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107  | --no-cr | --no-c | -n)
1108    no_create=yes ;;
1109
1110  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112    no_recursion=yes ;;
1113
1114  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116  | --oldin | --oldi | --old | --ol | --o)
1117    ac_prev=oldincludedir ;;
1118  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121    oldincludedir=$ac_optarg ;;
1122
1123  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124    ac_prev=prefix ;;
1125  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126    prefix=$ac_optarg ;;
1127
1128  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129  | --program-pre | --program-pr | --program-p)
1130    ac_prev=program_prefix ;;
1131  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133    program_prefix=$ac_optarg ;;
1134
1135  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136  | --program-suf | --program-su | --program-s)
1137    ac_prev=program_suffix ;;
1138  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140    program_suffix=$ac_optarg ;;
1141
1142  -program-transform-name | --program-transform-name \
1143  | --program-transform-nam | --program-transform-na \
1144  | --program-transform-n | --program-transform- \
1145  | --program-transform | --program-transfor \
1146  | --program-transfo | --program-transf \
1147  | --program-trans | --program-tran \
1148  | --progr-tra | --program-tr | --program-t)
1149    ac_prev=program_transform_name ;;
1150  -program-transform-name=* | --program-transform-name=* \
1151  | --program-transform-nam=* | --program-transform-na=* \
1152  | --program-transform-n=* | --program-transform-=* \
1153  | --program-transform=* | --program-transfor=* \
1154  | --program-transfo=* | --program-transf=* \
1155  | --program-trans=* | --program-tran=* \
1156  | --progr-tra=* | --program-tr=* | --program-t=*)
1157    program_transform_name=$ac_optarg ;;
1158
1159  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160    ac_prev=pdfdir ;;
1161  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162    pdfdir=$ac_optarg ;;
1163
1164  -psdir | --psdir | --psdi | --psd | --ps)
1165    ac_prev=psdir ;;
1166  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167    psdir=$ac_optarg ;;
1168
1169  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170  | -silent | --silent | --silen | --sile | --sil)
1171    silent=yes ;;
1172
1173  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174    ac_prev=sbindir ;;
1175  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176  | --sbi=* | --sb=*)
1177    sbindir=$ac_optarg ;;
1178
1179  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181  | --sharedst | --shareds | --shared | --share | --shar \
1182  | --sha | --sh)
1183    ac_prev=sharedstatedir ;;
1184  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187  | --sha=* | --sh=*)
1188    sharedstatedir=$ac_optarg ;;
1189
1190  -site | --site | --sit)
1191    ac_prev=site ;;
1192  -site=* | --site=* | --sit=*)
1193    site=$ac_optarg ;;
1194
1195  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196    ac_prev=srcdir ;;
1197  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198    srcdir=$ac_optarg ;;
1199
1200  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201  | --syscon | --sysco | --sysc | --sys | --sy)
1202    ac_prev=sysconfdir ;;
1203  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205    sysconfdir=$ac_optarg ;;
1206
1207  -target | --target | --targe | --targ | --tar | --ta | --t)
1208    ac_prev=target_alias ;;
1209  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210    target_alias=$ac_optarg ;;
1211
1212  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213    verbose=yes ;;
1214
1215  -version | --version | --versio | --versi | --vers | -V)
1216    ac_init_version=: ;;
1217
1218  -with-* | --with-*)
1219    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220    # Reject names that are not valid shell variable names.
1221    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222      { echo "$as_me: error: invalid package name: $ac_package" >&2
1223   { (exit 1); exit 1; }; }
1224    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225    eval with_$ac_package=\$ac_optarg ;;
1226
1227  -without-* | --without-*)
1228    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229    # Reject names that are not valid shell variable names.
1230    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231      { echo "$as_me: error: invalid package name: $ac_package" >&2
1232   { (exit 1); exit 1; }; }
1233    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234    eval with_$ac_package=no ;;
1235
1236  --x)
1237    # Obsolete; use --with-x.
1238    with_x=yes ;;
1239
1240  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241  | --x-incl | --x-inc | --x-in | --x-i)
1242    ac_prev=x_includes ;;
1243  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245    x_includes=$ac_optarg ;;
1246
1247  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249    ac_prev=x_libraries ;;
1250  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252    x_libraries=$ac_optarg ;;
1253
1254  -*) { echo "$as_me: error: unrecognized option: $ac_option
1255Try \`$0 --help' for more information." >&2
1256   { (exit 1); exit 1; }; }
1257    ;;
1258
1259  *=*)
1260    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261    # Reject names that are not valid shell variable names.
1262    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264   { (exit 1); exit 1; }; }
1265    eval $ac_envvar=\$ac_optarg
1266    export $ac_envvar ;;
1267
1268  *)
1269    # FIXME: should be removed in autoconf 3.0.
1270    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274    ;;
1275
1276  esac
1277done
1278
1279if test -n "$ac_prev"; then
1280  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281  { echo "$as_me: error: missing argument to $ac_option" >&2
1282   { (exit 1); exit 1; }; }
1283fi
1284
1285# Be sure to have absolute directory names.
1286for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287		datadir sysconfdir sharedstatedir localstatedir includedir \
1288		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289		libdir localedir mandir
1290do
1291  eval ac_val=\$$ac_var
1292  case $ac_val in
1293    [\\/$]* | ?:[\\/]* )  continue;;
1294    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295  esac
1296  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297   { (exit 1); exit 1; }; }
1298done
1299
1300# There might be people who depend on the old broken behavior: `$host'
1301# used to hold the argument of --host etc.
1302# FIXME: To remove some day.
1303build=$build_alias
1304host=$host_alias
1305target=$target_alias
1306
1307# FIXME: To remove some day.
1308if test "x$host_alias" != x; then
1309  if test "x$build_alias" = x; then
1310    cross_compiling=maybe
1311    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312    If a cross compiler is detected then cross compile mode will be used." >&2
1313  elif test "x$build_alias" != "x$host_alias"; then
1314    cross_compiling=yes
1315  fi
1316fi
1317
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
1322
1323
1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327  { echo "$as_me: error: Working directory cannot be determined" >&2
1328   { (exit 1); exit 1; }; }
1329test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330  { echo "$as_me: error: pwd does not report name of working directory" >&2
1331   { (exit 1); exit 1; }; }
1332
1333
1334# Find the source files, if location was not specified.
1335if test -z "$srcdir"; then
1336  ac_srcdir_defaulted=yes
1337  # Try the directory containing this script, then the parent directory.
1338  ac_confdir=`$as_dirname -- "$0" ||
1339$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340	 X"$0" : 'X\(//\)[^/]' \| \
1341	 X"$0" : 'X\(//\)$' \| \
1342	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1343echo X"$0" |
1344    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\/\)[^/].*/{
1349	    s//\1/
1350	    q
1351	  }
1352	  /^X\(\/\/\)$/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\).*/{
1357	    s//\1/
1358	    q
1359	  }
1360	  s/.*/./; q'`
1361  srcdir=$ac_confdir
1362  if test ! -r "$srcdir/$ac_unique_file"; then
1363    srcdir=..
1364  fi
1365else
1366  ac_srcdir_defaulted=no
1367fi
1368if test ! -r "$srcdir/$ac_unique_file"; then
1369  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371   { (exit 1); exit 1; }; }
1372fi
1373ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374ac_abs_confdir=`(
1375	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376   { (exit 1); exit 1; }; }
1377	pwd)`
1378# When building in place, set srcdir=.
1379if test "$ac_abs_confdir" = "$ac_pwd"; then
1380  srcdir=.
1381fi
1382# Remove unnecessary trailing slashes from srcdir.
1383# Double slashes in file names in object file debugging info
1384# mess up M-x gdb in Emacs.
1385case $srcdir in
1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387esac
1388for ac_var in $ac_precious_vars; do
1389  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390  eval ac_env_${ac_var}_value=\$${ac_var}
1391  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393done
1394
1395#
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399  # Omit some internal or obsolete options to make the list less imposing.
1400  # This message is too long to be a string in the A/UX 3.1 sh.
1401  cat <<_ACEOF
1402\`configure' configures OpenBSM 1.0 to adapt to many kinds of systems.
1403
1404Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE.  See below for descriptions of some of the useful variables.
1408
1409Defaults for the options are specified in brackets.
1410
1411Configuration:
1412  -h, --help              display this help and exit
1413      --help=short        display options specific to this package
1414      --help=recursive    display the short help of all the included packages
1415  -V, --version           display version information and exit
1416  -q, --quiet, --silent   do not print \`checking...' messages
1417      --cache-file=FILE   cache test results in FILE [disabled]
1418  -C, --config-cache      alias for \`--cache-file=config.cache'
1419  -n, --no-create         do not create output files
1420      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1421
1422Installation directories:
1423  --prefix=PREFIX         install architecture-independent files in PREFIX
1424			  [$ac_default_prefix]
1425  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1426			  [PREFIX]
1427
1428By default, \`make install' will install all the files in
1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1430an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431for instance \`--prefix=\$HOME'.
1432
1433For better control, use the options below.
1434
1435Fine tuning of the installation directories:
1436  --bindir=DIR           user executables [EPREFIX/bin]
1437  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1438  --libexecdir=DIR       program executables [EPREFIX/libexec]
1439  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1440  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1441  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1442  --libdir=DIR           object code libraries [EPREFIX/lib]
1443  --includedir=DIR       C header files [PREFIX/include]
1444  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1445  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1446  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1447  --infodir=DIR          info documentation [DATAROOTDIR/info]
1448  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1449  --mandir=DIR           man documentation [DATAROOTDIR/man]
1450  --docdir=DIR           documentation root [DATAROOTDIR/doc/openbsm]
1451  --htmldir=DIR          html documentation [DOCDIR]
1452  --dvidir=DIR           dvi documentation [DOCDIR]
1453  --pdfdir=DIR           pdf documentation [DOCDIR]
1454  --psdir=DIR            ps documentation [DOCDIR]
1455_ACEOF
1456
1457  cat <<\_ACEOF
1458
1459Program names:
1460  --program-prefix=PREFIX            prepend PREFIX to installed program names
1461  --program-suffix=SUFFIX            append SUFFIX to installed program names
1462  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1463
1464System types:
1465  --build=BUILD     configure for building on BUILD [guessed]
1466  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1467_ACEOF
1468fi
1469
1470if test -n "$ac_init_help"; then
1471  case $ac_init_help in
1472     short | recursive ) echo "Configuration of OpenBSM 1.0:";;
1473   esac
1474  cat <<\_ACEOF
1475
1476Optional Features:
1477  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1478  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1479  --enable-maintainer-mode  enable make rules and dependencies not useful
1480			  (and sometimes confusing) to the casual installer
1481  --enable-shared[=PKGS]  build shared libraries [default=yes]
1482  --enable-static[=PKGS]  build static libraries [default=yes]
1483  --enable-fast-install[=PKGS]
1484                          optimize for fast installation [default=yes]
1485  --disable-libtool-lock  avoid locking (might break parallel builds)
1486  --disable-dependency-tracking  speeds up one-time build
1487  --enable-dependency-tracking   do not reject slow dependency extractors
1488
1489Optional Packages:
1490  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1491  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1492  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1493  --with-pic              try to use only PIC/non-PIC objects [default=use
1494                          both]
1495  --with-tags[=TAGS]      include additional configurations [automatic]
1496
1497Some influential environment variables:
1498  CC          C compiler command
1499  CFLAGS      C compiler flags
1500  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1501              nonstandard directory <lib dir>
1502  LIBS        libraries to pass to the linker, e.g. -l<library>
1503  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1504              you have headers in a nonstandard directory <include dir>
1505  CPP         C preprocessor
1506  CXX         C++ compiler command
1507  CXXFLAGS    C++ compiler flags
1508  CXXCPP      C++ preprocessor
1509  F77         Fortran 77 compiler command
1510  FFLAGS      Fortran 77 compiler flags
1511
1512Use these variables to override the choices made by `configure' or to help
1513it to find libraries and programs with nonstandard names/locations.
1514
1515Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
1516_ACEOF
1517ac_status=$?
1518fi
1519
1520if test "$ac_init_help" = "recursive"; then
1521  # If there are subdirs, report their specific --help.
1522  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523    test -d "$ac_dir" || continue
1524    ac_builddir=.
1525
1526case "$ac_dir" in
1527.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528*)
1529  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1530  # A ".." for each directory in $ac_dir_suffix.
1531  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1532  case $ac_top_builddir_sub in
1533  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535  esac ;;
1536esac
1537ac_abs_top_builddir=$ac_pwd
1538ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539# for backward compatibility:
1540ac_top_builddir=$ac_top_build_prefix
1541
1542case $srcdir in
1543  .)  # We are building in place.
1544    ac_srcdir=.
1545    ac_top_srcdir=$ac_top_builddir_sub
1546    ac_abs_top_srcdir=$ac_pwd ;;
1547  [\\/]* | ?:[\\/]* )  # Absolute name.
1548    ac_srcdir=$srcdir$ac_dir_suffix;
1549    ac_top_srcdir=$srcdir
1550    ac_abs_top_srcdir=$srcdir ;;
1551  *) # Relative name.
1552    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553    ac_top_srcdir=$ac_top_build_prefix$srcdir
1554    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555esac
1556ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558    cd "$ac_dir" || { ac_status=$?; continue; }
1559    # Check for guested configure.
1560    if test -f "$ac_srcdir/configure.gnu"; then
1561      echo &&
1562      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563    elif test -f "$ac_srcdir/configure"; then
1564      echo &&
1565      $SHELL "$ac_srcdir/configure" --help=recursive
1566    else
1567      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568    fi || ac_status=$?
1569    cd "$ac_pwd" || { ac_status=$?; break; }
1570  done
1571fi
1572
1573test -n "$ac_init_help" && exit $ac_status
1574if $ac_init_version; then
1575  cat <<\_ACEOF
1576OpenBSM configure 1.0
1577generated by GNU Autoconf 2.61
1578
1579Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15802002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1581This configure script is free software; the Free Software Foundation
1582gives unlimited permission to copy, distribute and modify it.
1583_ACEOF
1584  exit
1585fi
1586cat >config.log <<_ACEOF
1587This file contains any messages produced by compilers while
1588running configure, to aid debugging if configure makes a mistake.
1589
1590It was created by OpenBSM $as_me 1.0, which was
1591generated by GNU Autoconf 2.61.  Invocation command line was
1592
1593  $ $0 $@
1594
1595_ACEOF
1596exec 5>>config.log
1597{
1598cat <<_ASUNAME
1599## --------- ##
1600## Platform. ##
1601## --------- ##
1602
1603hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1604uname -m = `(uname -m) 2>/dev/null || echo unknown`
1605uname -r = `(uname -r) 2>/dev/null || echo unknown`
1606uname -s = `(uname -s) 2>/dev/null || echo unknown`
1607uname -v = `(uname -v) 2>/dev/null || echo unknown`
1608
1609/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1610/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1611
1612/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1613/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1614/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1615/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1616/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1617/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1618/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1619
1620_ASUNAME
1621
1622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623for as_dir in $PATH
1624do
1625  IFS=$as_save_IFS
1626  test -z "$as_dir" && as_dir=.
1627  echo "PATH: $as_dir"
1628done
1629IFS=$as_save_IFS
1630
1631} >&5
1632
1633cat >&5 <<_ACEOF
1634
1635
1636## ----------- ##
1637## Core tests. ##
1638## ----------- ##
1639
1640_ACEOF
1641
1642
1643# Keep a trace of the command line.
1644# Strip out --no-create and --no-recursion so they do not pile up.
1645# Strip out --silent because we don't want to record it for future runs.
1646# Also quote any args containing shell meta-characters.
1647# Make two passes to allow for proper duplicate-argument suppression.
1648ac_configure_args=
1649ac_configure_args0=
1650ac_configure_args1=
1651ac_must_keep_next=false
1652for ac_pass in 1 2
1653do
1654  for ac_arg
1655  do
1656    case $ac_arg in
1657    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1658    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1659    | -silent | --silent | --silen | --sile | --sil)
1660      continue ;;
1661    *\'*)
1662      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1663    esac
1664    case $ac_pass in
1665    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1666    2)
1667      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1668      if test $ac_must_keep_next = true; then
1669	ac_must_keep_next=false # Got value, back to normal.
1670      else
1671	case $ac_arg in
1672	  *=* | --config-cache | -C | -disable-* | --disable-* \
1673	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1674	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1675	  | -with-* | --with-* | -without-* | --without-* | --x)
1676	    case "$ac_configure_args0 " in
1677	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1678	    esac
1679	    ;;
1680	  -* ) ac_must_keep_next=true ;;
1681	esac
1682      fi
1683      ac_configure_args="$ac_configure_args '$ac_arg'"
1684      ;;
1685    esac
1686  done
1687done
1688$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1689$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1690
1691# When interrupted or exit'd, cleanup temporary files, and complete
1692# config.log.  We remove comments because anyway the quotes in there
1693# would cause problems or look ugly.
1694# WARNING: Use '\'' to represent an apostrophe within the trap.
1695# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1696trap 'exit_status=$?
1697  # Save into config.log some information that might help in debugging.
1698  {
1699    echo
1700
1701    cat <<\_ASBOX
1702## ---------------- ##
1703## Cache variables. ##
1704## ---------------- ##
1705_ASBOX
1706    echo
1707    # The following way of writing the cache mishandles newlines in values,
1708(
1709  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1710    eval ac_val=\$$ac_var
1711    case $ac_val in #(
1712    *${as_nl}*)
1713      case $ac_var in #(
1714      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1715echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1716      esac
1717      case $ac_var in #(
1718      _ | IFS | as_nl) ;; #(
1719      *) $as_unset $ac_var ;;
1720      esac ;;
1721    esac
1722  done
1723  (set) 2>&1 |
1724    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1725    *${as_nl}ac_space=\ *)
1726      sed -n \
1727	"s/'\''/'\''\\\\'\'''\''/g;
1728	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1729      ;; #(
1730    *)
1731      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1732      ;;
1733    esac |
1734    sort
1735)
1736    echo
1737
1738    cat <<\_ASBOX
1739## ----------------- ##
1740## Output variables. ##
1741## ----------------- ##
1742_ASBOX
1743    echo
1744    for ac_var in $ac_subst_vars
1745    do
1746      eval ac_val=\$$ac_var
1747      case $ac_val in
1748      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749      esac
1750      echo "$ac_var='\''$ac_val'\''"
1751    done | sort
1752    echo
1753
1754    if test -n "$ac_subst_files"; then
1755      cat <<\_ASBOX
1756## ------------------- ##
1757## File substitutions. ##
1758## ------------------- ##
1759_ASBOX
1760      echo
1761      for ac_var in $ac_subst_files
1762      do
1763	eval ac_val=\$$ac_var
1764	case $ac_val in
1765	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766	esac
1767	echo "$ac_var='\''$ac_val'\''"
1768      done | sort
1769      echo
1770    fi
1771
1772    if test -s confdefs.h; then
1773      cat <<\_ASBOX
1774## ----------- ##
1775## confdefs.h. ##
1776## ----------- ##
1777_ASBOX
1778      echo
1779      cat confdefs.h
1780      echo
1781    fi
1782    test "$ac_signal" != 0 &&
1783      echo "$as_me: caught signal $ac_signal"
1784    echo "$as_me: exit $exit_status"
1785  } >&5
1786  rm -f core *.core core.conftest.* &&
1787    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1788    exit $exit_status
1789' 0
1790for ac_signal in 1 2 13 15; do
1791  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1792done
1793ac_signal=0
1794
1795# confdefs.h avoids OS command line length limits that DEFS can exceed.
1796rm -f -r conftest* confdefs.h
1797
1798# Predefined preprocessor variables.
1799
1800cat >>confdefs.h <<_ACEOF
1801#define PACKAGE_NAME "$PACKAGE_NAME"
1802_ACEOF
1803
1804
1805cat >>confdefs.h <<_ACEOF
1806#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1807_ACEOF
1808
1809
1810cat >>confdefs.h <<_ACEOF
1811#define PACKAGE_VERSION "$PACKAGE_VERSION"
1812_ACEOF
1813
1814
1815cat >>confdefs.h <<_ACEOF
1816#define PACKAGE_STRING "$PACKAGE_STRING"
1817_ACEOF
1818
1819
1820cat >>confdefs.h <<_ACEOF
1821#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1822_ACEOF
1823
1824
1825# Let the site file select an alternate cache file if it wants to.
1826# Prefer explicitly selected file to automatically selected ones.
1827if test -n "$CONFIG_SITE"; then
1828  set x "$CONFIG_SITE"
1829elif test "x$prefix" != xNONE; then
1830  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1831else
1832  set x "$ac_default_prefix/share/config.site" \
1833	"$ac_default_prefix/etc/config.site"
1834fi
1835shift
1836for ac_site_file
1837do
1838  if test -r "$ac_site_file"; then
1839    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1840echo "$as_me: loading site script $ac_site_file" >&6;}
1841    sed 's/^/| /' "$ac_site_file" >&5
1842    . "$ac_site_file"
1843  fi
1844done
1845
1846if test -r "$cache_file"; then
1847  # Some versions of bash will fail to source /dev/null (special
1848  # files actually), so we avoid doing that.
1849  if test -f "$cache_file"; then
1850    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1851echo "$as_me: loading cache $cache_file" >&6;}
1852    case $cache_file in
1853      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1854      *)                      . "./$cache_file";;
1855    esac
1856  fi
1857else
1858  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1859echo "$as_me: creating cache $cache_file" >&6;}
1860  >$cache_file
1861fi
1862
1863ac_header_list="$ac_header_list sys/time.h"
1864ac_header_list="$ac_header_list unistd.h"
1865ac_func_list="$ac_func_list alarm"
1866# Check that the precious variables saved in the cache have kept the same
1867# value.
1868ac_cache_corrupted=false
1869for ac_var in $ac_precious_vars; do
1870  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1871  eval ac_new_set=\$ac_env_${ac_var}_set
1872  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1873  eval ac_new_val=\$ac_env_${ac_var}_value
1874  case $ac_old_set,$ac_new_set in
1875    set,)
1876      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1877echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1878      ac_cache_corrupted=: ;;
1879    ,set)
1880      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1881echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1882      ac_cache_corrupted=: ;;
1883    ,);;
1884    *)
1885      if test "x$ac_old_val" != "x$ac_new_val"; then
1886	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1887echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1888	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1889echo "$as_me:   former value:  $ac_old_val" >&2;}
1890	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1891echo "$as_me:   current value: $ac_new_val" >&2;}
1892	ac_cache_corrupted=:
1893      fi;;
1894  esac
1895  # Pass precious variables to config.status.
1896  if test "$ac_new_set" = set; then
1897    case $ac_new_val in
1898    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1899    *) ac_arg=$ac_var=$ac_new_val ;;
1900    esac
1901    case " $ac_configure_args " in
1902      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1903      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1904    esac
1905  fi
1906done
1907if $ac_cache_corrupted; then
1908  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1909echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1910  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1911echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1912   { (exit 1); exit 1; }; }
1913fi
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939ac_ext=c
1940ac_cpp='$CPP $CPPFLAGS'
1941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943ac_compiler_gnu=$ac_cv_c_compiler_gnu
1944
1945
1946
1947
1948ac_aux_dir=
1949for ac_dir in config "$srcdir"/config; do
1950  if test -f "$ac_dir/install-sh"; then
1951    ac_aux_dir=$ac_dir
1952    ac_install_sh="$ac_aux_dir/install-sh -c"
1953    break
1954  elif test -f "$ac_dir/install.sh"; then
1955    ac_aux_dir=$ac_dir
1956    ac_install_sh="$ac_aux_dir/install.sh -c"
1957    break
1958  elif test -f "$ac_dir/shtool"; then
1959    ac_aux_dir=$ac_dir
1960    ac_install_sh="$ac_aux_dir/shtool install -c"
1961    break
1962  fi
1963done
1964if test -z "$ac_aux_dir"; then
1965  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1966echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1967   { (exit 1); exit 1; }; }
1968fi
1969
1970# These three variables are undocumented and unsupported,
1971# and are intended to be withdrawn in a future Autoconf release.
1972# They can cause serious problems if a builder's source tree is in a directory
1973# whose full name contains unusual characters.
1974ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1975ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1976ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1977
1978
1979ac_config_headers="$ac_config_headers config/config.h"
1980
1981{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1982echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
1983    # Check whether --enable-maintainer-mode was given.
1984if test "${enable_maintainer_mode+set}" = set; then
1985  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1986else
1987  USE_MAINTAINER_MODE=no
1988fi
1989
1990  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1991echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
1992   if test $USE_MAINTAINER_MODE = yes; then
1993  MAINTAINER_MODE_TRUE=
1994  MAINTAINER_MODE_FALSE='#'
1995else
1996  MAINTAINER_MODE_TRUE='#'
1997  MAINTAINER_MODE_FALSE=
1998fi
1999
2000  MAINT=$MAINTAINER_MODE_TRUE
2001
2002
2003
2004# Checks for programs.
2005ac_ext=c
2006ac_cpp='$CPP $CPPFLAGS'
2007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010if test -n "$ac_tool_prefix"; then
2011  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2012set dummy ${ac_tool_prefix}gcc; ac_word=$2
2013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015if test "${ac_cv_prog_CC+set}" = set; then
2016  echo $ECHO_N "(cached) $ECHO_C" >&6
2017else
2018  if test -n "$CC"; then
2019  ac_cv_prog_CC="$CC" # Let the user override the test.
2020else
2021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022for as_dir in $PATH
2023do
2024  IFS=$as_save_IFS
2025  test -z "$as_dir" && as_dir=.
2026  for ac_exec_ext in '' $ac_executable_extensions; do
2027  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2029    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030    break 2
2031  fi
2032done
2033done
2034IFS=$as_save_IFS
2035
2036fi
2037fi
2038CC=$ac_cv_prog_CC
2039if test -n "$CC"; then
2040  { echo "$as_me:$LINENO: result: $CC" >&5
2041echo "${ECHO_T}$CC" >&6; }
2042else
2043  { echo "$as_me:$LINENO: result: no" >&5
2044echo "${ECHO_T}no" >&6; }
2045fi
2046
2047
2048fi
2049if test -z "$ac_cv_prog_CC"; then
2050  ac_ct_CC=$CC
2051  # Extract the first word of "gcc", so it can be a program name with args.
2052set dummy gcc; ac_word=$2
2053{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056  echo $ECHO_N "(cached) $ECHO_C" >&6
2057else
2058  if test -n "$ac_ct_CC"; then
2059  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060else
2061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062for as_dir in $PATH
2063do
2064  IFS=$as_save_IFS
2065  test -z "$as_dir" && as_dir=.
2066  for ac_exec_ext in '' $ac_executable_extensions; do
2067  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068    ac_cv_prog_ac_ct_CC="gcc"
2069    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070    break 2
2071  fi
2072done
2073done
2074IFS=$as_save_IFS
2075
2076fi
2077fi
2078ac_ct_CC=$ac_cv_prog_ac_ct_CC
2079if test -n "$ac_ct_CC"; then
2080  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2081echo "${ECHO_T}$ac_ct_CC" >&6; }
2082else
2083  { echo "$as_me:$LINENO: result: no" >&5
2084echo "${ECHO_T}no" >&6; }
2085fi
2086
2087  if test "x$ac_ct_CC" = x; then
2088    CC=""
2089  else
2090    case $cross_compiling:$ac_tool_warned in
2091yes:)
2092{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2093whose name does not start with the host triplet.  If you think this
2094configuration is useful to you, please write to autoconf@gnu.org." >&5
2095echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2096whose name does not start with the host triplet.  If you think this
2097configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2098ac_tool_warned=yes ;;
2099esac
2100    CC=$ac_ct_CC
2101  fi
2102else
2103  CC="$ac_cv_prog_CC"
2104fi
2105
2106if test -z "$CC"; then
2107          if test -n "$ac_tool_prefix"; then
2108    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2109set dummy ${ac_tool_prefix}cc; ac_word=$2
2110{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112if test "${ac_cv_prog_CC+set}" = set; then
2113  echo $ECHO_N "(cached) $ECHO_C" >&6
2114else
2115  if test -n "$CC"; then
2116  ac_cv_prog_CC="$CC" # Let the user override the test.
2117else
2118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119for as_dir in $PATH
2120do
2121  IFS=$as_save_IFS
2122  test -z "$as_dir" && as_dir=.
2123  for ac_exec_ext in '' $ac_executable_extensions; do
2124  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2125    ac_cv_prog_CC="${ac_tool_prefix}cc"
2126    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127    break 2
2128  fi
2129done
2130done
2131IFS=$as_save_IFS
2132
2133fi
2134fi
2135CC=$ac_cv_prog_CC
2136if test -n "$CC"; then
2137  { echo "$as_me:$LINENO: result: $CC" >&5
2138echo "${ECHO_T}$CC" >&6; }
2139else
2140  { echo "$as_me:$LINENO: result: no" >&5
2141echo "${ECHO_T}no" >&6; }
2142fi
2143
2144
2145  fi
2146fi
2147if test -z "$CC"; then
2148  # Extract the first word of "cc", so it can be a program name with args.
2149set dummy cc; ac_word=$2
2150{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2152if test "${ac_cv_prog_CC+set}" = set; then
2153  echo $ECHO_N "(cached) $ECHO_C" >&6
2154else
2155  if test -n "$CC"; then
2156  ac_cv_prog_CC="$CC" # Let the user override the test.
2157else
2158  ac_prog_rejected=no
2159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160for as_dir in $PATH
2161do
2162  IFS=$as_save_IFS
2163  test -z "$as_dir" && as_dir=.
2164  for ac_exec_ext in '' $ac_executable_extensions; do
2165  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2166    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2167       ac_prog_rejected=yes
2168       continue
2169     fi
2170    ac_cv_prog_CC="cc"
2171    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172    break 2
2173  fi
2174done
2175done
2176IFS=$as_save_IFS
2177
2178if test $ac_prog_rejected = yes; then
2179  # We found a bogon in the path, so make sure we never use it.
2180  set dummy $ac_cv_prog_CC
2181  shift
2182  if test $# != 0; then
2183    # We chose a different compiler from the bogus one.
2184    # However, it has the same basename, so the bogon will be chosen
2185    # first if we set CC to just the basename; use the full file name.
2186    shift
2187    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2188  fi
2189fi
2190fi
2191fi
2192CC=$ac_cv_prog_CC
2193if test -n "$CC"; then
2194  { echo "$as_me:$LINENO: result: $CC" >&5
2195echo "${ECHO_T}$CC" >&6; }
2196else
2197  { echo "$as_me:$LINENO: result: no" >&5
2198echo "${ECHO_T}no" >&6; }
2199fi
2200
2201
2202fi
2203if test -z "$CC"; then
2204  if test -n "$ac_tool_prefix"; then
2205  for ac_prog in cl.exe
2206  do
2207    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2208set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2209{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2211if test "${ac_cv_prog_CC+set}" = set; then
2212  echo $ECHO_N "(cached) $ECHO_C" >&6
2213else
2214  if test -n "$CC"; then
2215  ac_cv_prog_CC="$CC" # Let the user override the test.
2216else
2217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218for as_dir in $PATH
2219do
2220  IFS=$as_save_IFS
2221  test -z "$as_dir" && as_dir=.
2222  for ac_exec_ext in '' $ac_executable_extensions; do
2223  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2224    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2225    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2226    break 2
2227  fi
2228done
2229done
2230IFS=$as_save_IFS
2231
2232fi
2233fi
2234CC=$ac_cv_prog_CC
2235if test -n "$CC"; then
2236  { echo "$as_me:$LINENO: result: $CC" >&5
2237echo "${ECHO_T}$CC" >&6; }
2238else
2239  { echo "$as_me:$LINENO: result: no" >&5
2240echo "${ECHO_T}no" >&6; }
2241fi
2242
2243
2244    test -n "$CC" && break
2245  done
2246fi
2247if test -z "$CC"; then
2248  ac_ct_CC=$CC
2249  for ac_prog in cl.exe
2250do
2251  # Extract the first word of "$ac_prog", so it can be a program name with args.
2252set dummy $ac_prog; ac_word=$2
2253{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2255if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2256  echo $ECHO_N "(cached) $ECHO_C" >&6
2257else
2258  if test -n "$ac_ct_CC"; then
2259  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2260else
2261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262for as_dir in $PATH
2263do
2264  IFS=$as_save_IFS
2265  test -z "$as_dir" && as_dir=.
2266  for ac_exec_ext in '' $ac_executable_extensions; do
2267  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2268    ac_cv_prog_ac_ct_CC="$ac_prog"
2269    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270    break 2
2271  fi
2272done
2273done
2274IFS=$as_save_IFS
2275
2276fi
2277fi
2278ac_ct_CC=$ac_cv_prog_ac_ct_CC
2279if test -n "$ac_ct_CC"; then
2280  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2281echo "${ECHO_T}$ac_ct_CC" >&6; }
2282else
2283  { echo "$as_me:$LINENO: result: no" >&5
2284echo "${ECHO_T}no" >&6; }
2285fi
2286
2287
2288  test -n "$ac_ct_CC" && break
2289done
2290
2291  if test "x$ac_ct_CC" = x; then
2292    CC=""
2293  else
2294    case $cross_compiling:$ac_tool_warned in
2295yes:)
2296{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2297whose name does not start with the host triplet.  If you think this
2298configuration is useful to you, please write to autoconf@gnu.org." >&5
2299echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2300whose name does not start with the host triplet.  If you think this
2301configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2302ac_tool_warned=yes ;;
2303esac
2304    CC=$ac_ct_CC
2305  fi
2306fi
2307
2308fi
2309
2310
2311test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2312See \`config.log' for more details." >&5
2313echo "$as_me: error: no acceptable C compiler found in \$PATH
2314See \`config.log' for more details." >&2;}
2315   { (exit 1); exit 1; }; }
2316
2317# Provide some information about the compiler.
2318echo "$as_me:$LINENO: checking for C compiler version" >&5
2319ac_compiler=`set X $ac_compile; echo $2`
2320{ (ac_try="$ac_compiler --version >&5"
2321case "(($ac_try" in
2322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323  *) ac_try_echo=$ac_try;;
2324esac
2325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326  (eval "$ac_compiler --version >&5") 2>&5
2327  ac_status=$?
2328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329  (exit $ac_status); }
2330{ (ac_try="$ac_compiler -v >&5"
2331case "(($ac_try" in
2332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333  *) ac_try_echo=$ac_try;;
2334esac
2335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2336  (eval "$ac_compiler -v >&5") 2>&5
2337  ac_status=$?
2338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339  (exit $ac_status); }
2340{ (ac_try="$ac_compiler -V >&5"
2341case "(($ac_try" in
2342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343  *) ac_try_echo=$ac_try;;
2344esac
2345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2346  (eval "$ac_compiler -V >&5") 2>&5
2347  ac_status=$?
2348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349  (exit $ac_status); }
2350
2351cat >conftest.$ac_ext <<_ACEOF
2352/* confdefs.h.  */
2353_ACEOF
2354cat confdefs.h >>conftest.$ac_ext
2355cat >>conftest.$ac_ext <<_ACEOF
2356/* end confdefs.h.  */
2357
2358int
2359main ()
2360{
2361
2362  ;
2363  return 0;
2364}
2365_ACEOF
2366ac_clean_files_save=$ac_clean_files
2367ac_clean_files="$ac_clean_files a.out a.exe b.out"
2368# Try to create an executable without -o first, disregard a.out.
2369# It will help us diagnose broken compilers, and finding out an intuition
2370# of exeext.
2371{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2372echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2373ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2374#
2375# List of possible output files, starting from the most likely.
2376# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2377# only as a last resort.  b.out is created by i960 compilers.
2378ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2379#
2380# The IRIX 6 linker writes into existing files which may not be
2381# executable, retaining their permissions.  Remove them first so a
2382# subsequent execution test works.
2383ac_rmfiles=
2384for ac_file in $ac_files
2385do
2386  case $ac_file in
2387    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2388    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2389  esac
2390done
2391rm -f $ac_rmfiles
2392
2393if { (ac_try="$ac_link_default"
2394case "(($ac_try" in
2395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396  *) ac_try_echo=$ac_try;;
2397esac
2398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399  (eval "$ac_link_default") 2>&5
2400  ac_status=$?
2401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402  (exit $ac_status); }; then
2403  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2404# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2405# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2406# so that the user can short-circuit this test for compilers unknown to
2407# Autoconf.
2408for ac_file in $ac_files ''
2409do
2410  test -f "$ac_file" || continue
2411  case $ac_file in
2412    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2413	;;
2414    [ab].out )
2415	# We found the default executable, but exeext='' is most
2416	# certainly right.
2417	break;;
2418    *.* )
2419        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2420	then :; else
2421	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422	fi
2423	# We set ac_cv_exeext here because the later test for it is not
2424	# safe: cross compilers may not add the suffix if given an `-o'
2425	# argument, so we may need to know it at that point already.
2426	# Even if this section looks crufty: it has the advantage of
2427	# actually working.
2428	break;;
2429    * )
2430	break;;
2431  esac
2432done
2433test "$ac_cv_exeext" = no && ac_cv_exeext=
2434
2435else
2436  ac_file=''
2437fi
2438
2439{ echo "$as_me:$LINENO: result: $ac_file" >&5
2440echo "${ECHO_T}$ac_file" >&6; }
2441if test -z "$ac_file"; then
2442  echo "$as_me: failed program was:" >&5
2443sed 's/^/| /' conftest.$ac_ext >&5
2444
2445{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2446See \`config.log' for more details." >&5
2447echo "$as_me: error: C compiler cannot create executables
2448See \`config.log' for more details." >&2;}
2449   { (exit 77); exit 77; }; }
2450fi
2451
2452ac_exeext=$ac_cv_exeext
2453
2454# Check that the compiler produces executables we can run.  If not, either
2455# the compiler is broken, or we cross compile.
2456{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2457echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2458# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2459# If not cross compiling, check that we can run a simple program.
2460if test "$cross_compiling" != yes; then
2461  if { ac_try='./$ac_file'
2462  { (case "(($ac_try" in
2463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464  *) ac_try_echo=$ac_try;;
2465esac
2466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467  (eval "$ac_try") 2>&5
2468  ac_status=$?
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); }; }; then
2471    cross_compiling=no
2472  else
2473    if test "$cross_compiling" = maybe; then
2474	cross_compiling=yes
2475    else
2476	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2477If you meant to cross compile, use \`--host'.
2478See \`config.log' for more details." >&5
2479echo "$as_me: error: cannot run C compiled programs.
2480If you meant to cross compile, use \`--host'.
2481See \`config.log' for more details." >&2;}
2482   { (exit 1); exit 1; }; }
2483    fi
2484  fi
2485fi
2486{ echo "$as_me:$LINENO: result: yes" >&5
2487echo "${ECHO_T}yes" >&6; }
2488
2489rm -f a.out a.exe conftest$ac_cv_exeext b.out
2490ac_clean_files=$ac_clean_files_save
2491# Check that the compiler produces executables we can run.  If not, either
2492# the compiler is broken, or we cross compile.
2493{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2494echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2495{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2496echo "${ECHO_T}$cross_compiling" >&6; }
2497
2498{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2499echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2500if { (ac_try="$ac_link"
2501case "(($ac_try" in
2502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503  *) ac_try_echo=$ac_try;;
2504esac
2505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2506  (eval "$ac_link") 2>&5
2507  ac_status=$?
2508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509  (exit $ac_status); }; then
2510  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2511# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2512# work properly (i.e., refer to `conftest.exe'), while it won't with
2513# `rm'.
2514for ac_file in conftest.exe conftest conftest.*; do
2515  test -f "$ac_file" || continue
2516  case $ac_file in
2517    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2518    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2519	  break;;
2520    * ) break;;
2521  esac
2522done
2523else
2524  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2525See \`config.log' for more details." >&5
2526echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2527See \`config.log' for more details." >&2;}
2528   { (exit 1); exit 1; }; }
2529fi
2530
2531rm -f conftest$ac_cv_exeext
2532{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2533echo "${ECHO_T}$ac_cv_exeext" >&6; }
2534
2535rm -f conftest.$ac_ext
2536EXEEXT=$ac_cv_exeext
2537ac_exeext=$EXEEXT
2538{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2539echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2540if test "${ac_cv_objext+set}" = set; then
2541  echo $ECHO_N "(cached) $ECHO_C" >&6
2542else
2543  cat >conftest.$ac_ext <<_ACEOF
2544/* confdefs.h.  */
2545_ACEOF
2546cat confdefs.h >>conftest.$ac_ext
2547cat >>conftest.$ac_ext <<_ACEOF
2548/* end confdefs.h.  */
2549
2550int
2551main ()
2552{
2553
2554  ;
2555  return 0;
2556}
2557_ACEOF
2558rm -f conftest.o conftest.obj
2559if { (ac_try="$ac_compile"
2560case "(($ac_try" in
2561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562  *) ac_try_echo=$ac_try;;
2563esac
2564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565  (eval "$ac_compile") 2>&5
2566  ac_status=$?
2567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568  (exit $ac_status); }; then
2569  for ac_file in conftest.o conftest.obj conftest.*; do
2570  test -f "$ac_file" || continue;
2571  case $ac_file in
2572    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2573    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2574       break;;
2575  esac
2576done
2577else
2578  echo "$as_me: failed program was:" >&5
2579sed 's/^/| /' conftest.$ac_ext >&5
2580
2581{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2582See \`config.log' for more details." >&5
2583echo "$as_me: error: cannot compute suffix of object files: cannot compile
2584See \`config.log' for more details." >&2;}
2585   { (exit 1); exit 1; }; }
2586fi
2587
2588rm -f conftest.$ac_cv_objext conftest.$ac_ext
2589fi
2590{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2591echo "${ECHO_T}$ac_cv_objext" >&6; }
2592OBJEXT=$ac_cv_objext
2593ac_objext=$OBJEXT
2594{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2595echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2596if test "${ac_cv_c_compiler_gnu+set}" = set; then
2597  echo $ECHO_N "(cached) $ECHO_C" >&6
2598else
2599  cat >conftest.$ac_ext <<_ACEOF
2600/* confdefs.h.  */
2601_ACEOF
2602cat confdefs.h >>conftest.$ac_ext
2603cat >>conftest.$ac_ext <<_ACEOF
2604/* end confdefs.h.  */
2605
2606int
2607main ()
2608{
2609#ifndef __GNUC__
2610       choke me
2611#endif
2612
2613  ;
2614  return 0;
2615}
2616_ACEOF
2617rm -f conftest.$ac_objext
2618if { (ac_try="$ac_compile"
2619case "(($ac_try" in
2620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621  *) ac_try_echo=$ac_try;;
2622esac
2623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624  (eval "$ac_compile") 2>conftest.er1
2625  ac_status=$?
2626  grep -v '^ *+' conftest.er1 >conftest.err
2627  rm -f conftest.er1
2628  cat conftest.err >&5
2629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630  (exit $ac_status); } && {
2631	 test -z "$ac_c_werror_flag" ||
2632	 test ! -s conftest.err
2633       } && test -s conftest.$ac_objext; then
2634  ac_compiler_gnu=yes
2635else
2636  echo "$as_me: failed program was:" >&5
2637sed 's/^/| /' conftest.$ac_ext >&5
2638
2639	ac_compiler_gnu=no
2640fi
2641
2642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643ac_cv_c_compiler_gnu=$ac_compiler_gnu
2644
2645fi
2646{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2647echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2648GCC=`test $ac_compiler_gnu = yes && echo yes`
2649ac_test_CFLAGS=${CFLAGS+set}
2650ac_save_CFLAGS=$CFLAGS
2651{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2652echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2653if test "${ac_cv_prog_cc_g+set}" = set; then
2654  echo $ECHO_N "(cached) $ECHO_C" >&6
2655else
2656  ac_save_c_werror_flag=$ac_c_werror_flag
2657   ac_c_werror_flag=yes
2658   ac_cv_prog_cc_g=no
2659   CFLAGS="-g"
2660   cat >conftest.$ac_ext <<_ACEOF
2661/* confdefs.h.  */
2662_ACEOF
2663cat confdefs.h >>conftest.$ac_ext
2664cat >>conftest.$ac_ext <<_ACEOF
2665/* end confdefs.h.  */
2666
2667int
2668main ()
2669{
2670
2671  ;
2672  return 0;
2673}
2674_ACEOF
2675rm -f conftest.$ac_objext
2676if { (ac_try="$ac_compile"
2677case "(($ac_try" in
2678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679  *) ac_try_echo=$ac_try;;
2680esac
2681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682  (eval "$ac_compile") 2>conftest.er1
2683  ac_status=$?
2684  grep -v '^ *+' conftest.er1 >conftest.err
2685  rm -f conftest.er1
2686  cat conftest.err >&5
2687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688  (exit $ac_status); } && {
2689	 test -z "$ac_c_werror_flag" ||
2690	 test ! -s conftest.err
2691       } && test -s conftest.$ac_objext; then
2692  ac_cv_prog_cc_g=yes
2693else
2694  echo "$as_me: failed program was:" >&5
2695sed 's/^/| /' conftest.$ac_ext >&5
2696
2697	CFLAGS=""
2698      cat >conftest.$ac_ext <<_ACEOF
2699/* confdefs.h.  */
2700_ACEOF
2701cat confdefs.h >>conftest.$ac_ext
2702cat >>conftest.$ac_ext <<_ACEOF
2703/* end confdefs.h.  */
2704
2705int
2706main ()
2707{
2708
2709  ;
2710  return 0;
2711}
2712_ACEOF
2713rm -f conftest.$ac_objext
2714if { (ac_try="$ac_compile"
2715case "(($ac_try" in
2716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717  *) ac_try_echo=$ac_try;;
2718esac
2719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720  (eval "$ac_compile") 2>conftest.er1
2721  ac_status=$?
2722  grep -v '^ *+' conftest.er1 >conftest.err
2723  rm -f conftest.er1
2724  cat conftest.err >&5
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); } && {
2727	 test -z "$ac_c_werror_flag" ||
2728	 test ! -s conftest.err
2729       } && test -s conftest.$ac_objext; then
2730  :
2731else
2732  echo "$as_me: failed program was:" >&5
2733sed 's/^/| /' conftest.$ac_ext >&5
2734
2735	ac_c_werror_flag=$ac_save_c_werror_flag
2736	 CFLAGS="-g"
2737	 cat >conftest.$ac_ext <<_ACEOF
2738/* confdefs.h.  */
2739_ACEOF
2740cat confdefs.h >>conftest.$ac_ext
2741cat >>conftest.$ac_ext <<_ACEOF
2742/* end confdefs.h.  */
2743
2744int
2745main ()
2746{
2747
2748  ;
2749  return 0;
2750}
2751_ACEOF
2752rm -f conftest.$ac_objext
2753if { (ac_try="$ac_compile"
2754case "(($ac_try" in
2755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756  *) ac_try_echo=$ac_try;;
2757esac
2758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759  (eval "$ac_compile") 2>conftest.er1
2760  ac_status=$?
2761  grep -v '^ *+' conftest.er1 >conftest.err
2762  rm -f conftest.er1
2763  cat conftest.err >&5
2764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765  (exit $ac_status); } && {
2766	 test -z "$ac_c_werror_flag" ||
2767	 test ! -s conftest.err
2768       } && test -s conftest.$ac_objext; then
2769  ac_cv_prog_cc_g=yes
2770else
2771  echo "$as_me: failed program was:" >&5
2772sed 's/^/| /' conftest.$ac_ext >&5
2773
2774
2775fi
2776
2777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778fi
2779
2780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2781fi
2782
2783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784   ac_c_werror_flag=$ac_save_c_werror_flag
2785fi
2786{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2787echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2788if test "$ac_test_CFLAGS" = set; then
2789  CFLAGS=$ac_save_CFLAGS
2790elif test $ac_cv_prog_cc_g = yes; then
2791  if test "$GCC" = yes; then
2792    CFLAGS="-g -O2"
2793  else
2794    CFLAGS="-g"
2795  fi
2796else
2797  if test "$GCC" = yes; then
2798    CFLAGS="-O2"
2799  else
2800    CFLAGS=
2801  fi
2802fi
2803{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2804echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2805if test "${ac_cv_prog_cc_c89+set}" = set; then
2806  echo $ECHO_N "(cached) $ECHO_C" >&6
2807else
2808  ac_cv_prog_cc_c89=no
2809ac_save_CC=$CC
2810cat >conftest.$ac_ext <<_ACEOF
2811/* confdefs.h.  */
2812_ACEOF
2813cat confdefs.h >>conftest.$ac_ext
2814cat >>conftest.$ac_ext <<_ACEOF
2815/* end confdefs.h.  */
2816#include <stdarg.h>
2817#include <stdio.h>
2818#include <sys/types.h>
2819#include <sys/stat.h>
2820/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2821struct buf { int x; };
2822FILE * (*rcsopen) (struct buf *, struct stat *, int);
2823static char *e (p, i)
2824     char **p;
2825     int i;
2826{
2827  return p[i];
2828}
2829static char *f (char * (*g) (char **, int), char **p, ...)
2830{
2831  char *s;
2832  va_list v;
2833  va_start (v,p);
2834  s = g (p, va_arg (v,int));
2835  va_end (v);
2836  return s;
2837}
2838
2839/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2840   function prototypes and stuff, but not '\xHH' hex character constants.
2841   These don't provoke an error unfortunately, instead are silently treated
2842   as 'x'.  The following induces an error, until -std is added to get
2843   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2844   array size at least.  It's necessary to write '\x00'==0 to get something
2845   that's true only with -std.  */
2846int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2847
2848/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2849   inside strings and character constants.  */
2850#define FOO(x) 'x'
2851int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2852
2853int test (int i, double x);
2854struct s1 {int (*f) (int a);};
2855struct s2 {int (*f) (double a);};
2856int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2857int argc;
2858char **argv;
2859int
2860main ()
2861{
2862return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2863  ;
2864  return 0;
2865}
2866_ACEOF
2867for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2868	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2869do
2870  CC="$ac_save_CC $ac_arg"
2871  rm -f conftest.$ac_objext
2872if { (ac_try="$ac_compile"
2873case "(($ac_try" in
2874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875  *) ac_try_echo=$ac_try;;
2876esac
2877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878  (eval "$ac_compile") 2>conftest.er1
2879  ac_status=$?
2880  grep -v '^ *+' conftest.er1 >conftest.err
2881  rm -f conftest.er1
2882  cat conftest.err >&5
2883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884  (exit $ac_status); } && {
2885	 test -z "$ac_c_werror_flag" ||
2886	 test ! -s conftest.err
2887       } && test -s conftest.$ac_objext; then
2888  ac_cv_prog_cc_c89=$ac_arg
2889else
2890  echo "$as_me: failed program was:" >&5
2891sed 's/^/| /' conftest.$ac_ext >&5
2892
2893
2894fi
2895
2896rm -f core conftest.err conftest.$ac_objext
2897  test "x$ac_cv_prog_cc_c89" != "xno" && break
2898done
2899rm -f conftest.$ac_ext
2900CC=$ac_save_CC
2901
2902fi
2903# AC_CACHE_VAL
2904case "x$ac_cv_prog_cc_c89" in
2905  x)
2906    { echo "$as_me:$LINENO: result: none needed" >&5
2907echo "${ECHO_T}none needed" >&6; } ;;
2908  xno)
2909    { echo "$as_me:$LINENO: result: unsupported" >&5
2910echo "${ECHO_T}unsupported" >&6; } ;;
2911  *)
2912    CC="$CC $ac_cv_prog_cc_c89"
2913    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2914echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2915esac
2916
2917
2918ac_ext=c
2919ac_cpp='$CPP $CPPFLAGS'
2920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922ac_compiler_gnu=$ac_cv_c_compiler_gnu
2923
2924# Find a good install program.  We prefer a C program (faster),
2925# so one script is as good as another.  But avoid the broken or
2926# incompatible versions:
2927# SysV /etc/install, /usr/sbin/install
2928# SunOS /usr/etc/install
2929# IRIX /sbin/install
2930# AIX /bin/install
2931# AmigaOS /C/install, which installs bootblocks on floppy discs
2932# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2933# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2934# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2935# OS/2's system install, which has a completely different semantic
2936# ./install, which can be erroneously created by make from ./install.sh.
2937{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2938echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2939if test -z "$INSTALL"; then
2940if test "${ac_cv_path_install+set}" = set; then
2941  echo $ECHO_N "(cached) $ECHO_C" >&6
2942else
2943  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944for as_dir in $PATH
2945do
2946  IFS=$as_save_IFS
2947  test -z "$as_dir" && as_dir=.
2948  # Account for people who put trailing slashes in PATH elements.
2949case $as_dir/ in
2950  ./ | .// | /cC/* | \
2951  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2952  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2953  /usr/ucb/* ) ;;
2954  *)
2955    # OSF1 and SCO ODT 3.0 have their own names for install.
2956    # Don't use installbsd from OSF since it installs stuff as root
2957    # by default.
2958    for ac_prog in ginstall scoinst install; do
2959      for ac_exec_ext in '' $ac_executable_extensions; do
2960	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2961	  if test $ac_prog = install &&
2962	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2963	    # AIX install.  It has an incompatible calling convention.
2964	    :
2965	  elif test $ac_prog = install &&
2966	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2967	    # program-specific install script used by HP pwplus--don't use.
2968	    :
2969	  else
2970	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2971	    break 3
2972	  fi
2973	fi
2974      done
2975    done
2976    ;;
2977esac
2978done
2979IFS=$as_save_IFS
2980
2981
2982fi
2983  if test "${ac_cv_path_install+set}" = set; then
2984    INSTALL=$ac_cv_path_install
2985  else
2986    # As a last resort, use the slow shell script.  Don't cache a
2987    # value for INSTALL within a source directory, because that will
2988    # break other packages using the cache if that directory is
2989    # removed, or if the value is a relative name.
2990    INSTALL=$ac_install_sh
2991  fi
2992fi
2993{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2994echo "${ECHO_T}$INSTALL" >&6; }
2995
2996# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2997# It thinks the first close brace ends the variable substitution.
2998test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2999
3000test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3001
3002test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3003
3004# Check whether --enable-shared was given.
3005if test "${enable_shared+set}" = set; then
3006  enableval=$enable_shared; p=${PACKAGE-default}
3007    case $enableval in
3008    yes) enable_shared=yes ;;
3009    no) enable_shared=no ;;
3010    *)
3011      enable_shared=no
3012      # Look at the argument we got.  We use all the common list separators.
3013      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3014      for pkg in $enableval; do
3015	IFS="$lt_save_ifs"
3016	if test "X$pkg" = "X$p"; then
3017	  enable_shared=yes
3018	fi
3019      done
3020      IFS="$lt_save_ifs"
3021      ;;
3022    esac
3023else
3024  enable_shared=yes
3025fi
3026
3027
3028# Check whether --enable-static was given.
3029if test "${enable_static+set}" = set; then
3030  enableval=$enable_static; p=${PACKAGE-default}
3031    case $enableval in
3032    yes) enable_static=yes ;;
3033    no) enable_static=no ;;
3034    *)
3035     enable_static=no
3036      # Look at the argument we got.  We use all the common list separators.
3037      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3038      for pkg in $enableval; do
3039	IFS="$lt_save_ifs"
3040	if test "X$pkg" = "X$p"; then
3041	  enable_static=yes
3042	fi
3043      done
3044      IFS="$lt_save_ifs"
3045      ;;
3046    esac
3047else
3048  enable_static=yes
3049fi
3050
3051
3052# Check whether --enable-fast-install was given.
3053if test "${enable_fast_install+set}" = set; then
3054  enableval=$enable_fast_install; p=${PACKAGE-default}
3055    case $enableval in
3056    yes) enable_fast_install=yes ;;
3057    no) enable_fast_install=no ;;
3058    *)
3059      enable_fast_install=no
3060      # Look at the argument we got.  We use all the common list separators.
3061      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3062      for pkg in $enableval; do
3063	IFS="$lt_save_ifs"
3064	if test "X$pkg" = "X$p"; then
3065	  enable_fast_install=yes
3066	fi
3067      done
3068      IFS="$lt_save_ifs"
3069      ;;
3070    esac
3071else
3072  enable_fast_install=yes
3073fi
3074
3075
3076# Make sure we can run config.sub.
3077$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3078  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3079echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3080   { (exit 1); exit 1; }; }
3081
3082{ echo "$as_me:$LINENO: checking build system type" >&5
3083echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3084if test "${ac_cv_build+set}" = set; then
3085  echo $ECHO_N "(cached) $ECHO_C" >&6
3086else
3087  ac_build_alias=$build_alias
3088test "x$ac_build_alias" = x &&
3089  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3090test "x$ac_build_alias" = x &&
3091  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3092echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3093   { (exit 1); exit 1; }; }
3094ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3095  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3096echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3097   { (exit 1); exit 1; }; }
3098
3099fi
3100{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3101echo "${ECHO_T}$ac_cv_build" >&6; }
3102case $ac_cv_build in
3103*-*-*) ;;
3104*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3105echo "$as_me: error: invalid value of canonical build" >&2;}
3106   { (exit 1); exit 1; }; };;
3107esac
3108build=$ac_cv_build
3109ac_save_IFS=$IFS; IFS='-'
3110set x $ac_cv_build
3111shift
3112build_cpu=$1
3113build_vendor=$2
3114shift; shift
3115# Remember, the first character of IFS is used to create $*,
3116# except with old shells:
3117build_os=$*
3118IFS=$ac_save_IFS
3119case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3120
3121
3122{ echo "$as_me:$LINENO: checking host system type" >&5
3123echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3124if test "${ac_cv_host+set}" = set; then
3125  echo $ECHO_N "(cached) $ECHO_C" >&6
3126else
3127  if test "x$host_alias" = x; then
3128  ac_cv_host=$ac_cv_build
3129else
3130  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3131    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3132echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3133   { (exit 1); exit 1; }; }
3134fi
3135
3136fi
3137{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3138echo "${ECHO_T}$ac_cv_host" >&6; }
3139case $ac_cv_host in
3140*-*-*) ;;
3141*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3142echo "$as_me: error: invalid value of canonical host" >&2;}
3143   { (exit 1); exit 1; }; };;
3144esac
3145host=$ac_cv_host
3146ac_save_IFS=$IFS; IFS='-'
3147set x $ac_cv_host
3148shift
3149host_cpu=$1
3150host_vendor=$2
3151shift; shift
3152# Remember, the first character of IFS is used to create $*,
3153# except with old shells:
3154host_os=$*
3155IFS=$ac_save_IFS
3156case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3157
3158
3159{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3160echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3161if test "${lt_cv_path_SED+set}" = set; then
3162  echo $ECHO_N "(cached) $ECHO_C" >&6
3163else
3164  # Loop through the user's path and test for sed and gsed.
3165# Then use that list of sed's as ones to test for truncation.
3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167for as_dir in $PATH
3168do
3169  IFS=$as_save_IFS
3170  test -z "$as_dir" && as_dir=.
3171  for lt_ac_prog in sed gsed; do
3172    for ac_exec_ext in '' $ac_executable_extensions; do
3173      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3174        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3175      fi
3176    done
3177  done
3178done
3179IFS=$as_save_IFS
3180lt_ac_max=0
3181lt_ac_count=0
3182# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3183# along with /bin/sed that truncates output.
3184for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3185  test ! -f $lt_ac_sed && continue
3186  cat /dev/null > conftest.in
3187  lt_ac_count=0
3188  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3189  # Check for GNU sed and select it if it is found.
3190  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3191    lt_cv_path_SED=$lt_ac_sed
3192    break
3193  fi
3194  while true; do
3195    cat conftest.in conftest.in >conftest.tmp
3196    mv conftest.tmp conftest.in
3197    cp conftest.in conftest.nl
3198    echo >>conftest.nl
3199    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3200    cmp -s conftest.out conftest.nl || break
3201    # 10000 chars as input seems more than enough
3202    test $lt_ac_count -gt 10 && break
3203    lt_ac_count=`expr $lt_ac_count + 1`
3204    if test $lt_ac_count -gt $lt_ac_max; then
3205      lt_ac_max=$lt_ac_count
3206      lt_cv_path_SED=$lt_ac_sed
3207    fi
3208  done
3209done
3210
3211fi
3212
3213SED=$lt_cv_path_SED
3214
3215{ echo "$as_me:$LINENO: result: $SED" >&5
3216echo "${ECHO_T}$SED" >&6; }
3217
3218{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3219echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3220if test "${ac_cv_path_GREP+set}" = set; then
3221  echo $ECHO_N "(cached) $ECHO_C" >&6
3222else
3223  # Extract the first word of "grep ggrep" to use in msg output
3224if test -z "$GREP"; then
3225set dummy grep ggrep; ac_prog_name=$2
3226if test "${ac_cv_path_GREP+set}" = set; then
3227  echo $ECHO_N "(cached) $ECHO_C" >&6
3228else
3229  ac_path_GREP_found=false
3230# Loop through the user's path and test for each of PROGNAME-LIST
3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3233do
3234  IFS=$as_save_IFS
3235  test -z "$as_dir" && as_dir=.
3236  for ac_prog in grep ggrep; do
3237  for ac_exec_ext in '' $ac_executable_extensions; do
3238    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3239    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3240    # Check for GNU ac_path_GREP and select it if it is found.
3241  # Check for GNU $ac_path_GREP
3242case `"$ac_path_GREP" --version 2>&1` in
3243*GNU*)
3244  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3245*)
3246  ac_count=0
3247  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3248  while :
3249  do
3250    cat "conftest.in" "conftest.in" >"conftest.tmp"
3251    mv "conftest.tmp" "conftest.in"
3252    cp "conftest.in" "conftest.nl"
3253    echo 'GREP' >> "conftest.nl"
3254    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3255    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3256    ac_count=`expr $ac_count + 1`
3257    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3258      # Best one so far, save it but keep looking for a better one
3259      ac_cv_path_GREP="$ac_path_GREP"
3260      ac_path_GREP_max=$ac_count
3261    fi
3262    # 10*(2^10) chars as input seems more than enough
3263    test $ac_count -gt 10 && break
3264  done
3265  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3266esac
3267
3268
3269    $ac_path_GREP_found && break 3
3270  done
3271done
3272
3273done
3274IFS=$as_save_IFS
3275
3276
3277fi
3278
3279GREP="$ac_cv_path_GREP"
3280if test -z "$GREP"; then
3281  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3282echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3283   { (exit 1); exit 1; }; }
3284fi
3285
3286else
3287  ac_cv_path_GREP=$GREP
3288fi
3289
3290
3291fi
3292{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3293echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3294 GREP="$ac_cv_path_GREP"
3295
3296
3297{ echo "$as_me:$LINENO: checking for egrep" >&5
3298echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3299if test "${ac_cv_path_EGREP+set}" = set; then
3300  echo $ECHO_N "(cached) $ECHO_C" >&6
3301else
3302  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3303   then ac_cv_path_EGREP="$GREP -E"
3304   else
3305     # Extract the first word of "egrep" to use in msg output
3306if test -z "$EGREP"; then
3307set dummy egrep; ac_prog_name=$2
3308if test "${ac_cv_path_EGREP+set}" = set; then
3309  echo $ECHO_N "(cached) $ECHO_C" >&6
3310else
3311  ac_path_EGREP_found=false
3312# Loop through the user's path and test for each of PROGNAME-LIST
3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3315do
3316  IFS=$as_save_IFS
3317  test -z "$as_dir" && as_dir=.
3318  for ac_prog in egrep; do
3319  for ac_exec_ext in '' $ac_executable_extensions; do
3320    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3321    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3322    # Check for GNU ac_path_EGREP and select it if it is found.
3323  # Check for GNU $ac_path_EGREP
3324case `"$ac_path_EGREP" --version 2>&1` in
3325*GNU*)
3326  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3327*)
3328  ac_count=0
3329  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3330  while :
3331  do
3332    cat "conftest.in" "conftest.in" >"conftest.tmp"
3333    mv "conftest.tmp" "conftest.in"
3334    cp "conftest.in" "conftest.nl"
3335    echo 'EGREP' >> "conftest.nl"
3336    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3337    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3338    ac_count=`expr $ac_count + 1`
3339    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3340      # Best one so far, save it but keep looking for a better one
3341      ac_cv_path_EGREP="$ac_path_EGREP"
3342      ac_path_EGREP_max=$ac_count
3343    fi
3344    # 10*(2^10) chars as input seems more than enough
3345    test $ac_count -gt 10 && break
3346  done
3347  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3348esac
3349
3350
3351    $ac_path_EGREP_found && break 3
3352  done
3353done
3354
3355done
3356IFS=$as_save_IFS
3357
3358
3359fi
3360
3361EGREP="$ac_cv_path_EGREP"
3362if test -z "$EGREP"; then
3363  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3364echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3365   { (exit 1); exit 1; }; }
3366fi
3367
3368else
3369  ac_cv_path_EGREP=$EGREP
3370fi
3371
3372
3373   fi
3374fi
3375{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3376echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3377 EGREP="$ac_cv_path_EGREP"
3378
3379
3380
3381# Check whether --with-gnu-ld was given.
3382if test "${with_gnu_ld+set}" = set; then
3383  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3384else
3385  with_gnu_ld=no
3386fi
3387
3388ac_prog=ld
3389if test "$GCC" = yes; then
3390  # Check if gcc -print-prog-name=ld gives a path.
3391  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3392echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3393  case $host in
3394  *-*-mingw*)
3395    # gcc leaves a trailing carriage return which upsets mingw
3396    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3397  *)
3398    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3399  esac
3400  case $ac_prog in
3401    # Accept absolute paths.
3402    [\\/]* | ?:[\\/]*)
3403      re_direlt='/[^/][^/]*/\.\./'
3404      # Canonicalize the pathname of ld
3405      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3406      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3407	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3408      done
3409      test -z "$LD" && LD="$ac_prog"
3410      ;;
3411  "")
3412    # If it fails, then pretend we aren't using GCC.
3413    ac_prog=ld
3414    ;;
3415  *)
3416    # If it is relative, then search for the first ld in PATH.
3417    with_gnu_ld=unknown
3418    ;;
3419  esac
3420elif test "$with_gnu_ld" = yes; then
3421  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3422echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3423else
3424  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3425echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3426fi
3427if test "${lt_cv_path_LD+set}" = set; then
3428  echo $ECHO_N "(cached) $ECHO_C" >&6
3429else
3430  if test -z "$LD"; then
3431  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3432  for ac_dir in $PATH; do
3433    IFS="$lt_save_ifs"
3434    test -z "$ac_dir" && ac_dir=.
3435    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3436      lt_cv_path_LD="$ac_dir/$ac_prog"
3437      # Check to see if the program is GNU ld.  I'd rather use --version,
3438      # but apparently some variants of GNU ld only accept -v.
3439      # Break only if it was the GNU/non-GNU ld that we prefer.
3440      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3441      *GNU* | *'with BFD'*)
3442	test "$with_gnu_ld" != no && break
3443	;;
3444      *)
3445	test "$with_gnu_ld" != yes && break
3446	;;
3447      esac
3448    fi
3449  done
3450  IFS="$lt_save_ifs"
3451else
3452  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3453fi
3454fi
3455
3456LD="$lt_cv_path_LD"
3457if test -n "$LD"; then
3458  { echo "$as_me:$LINENO: result: $LD" >&5
3459echo "${ECHO_T}$LD" >&6; }
3460else
3461  { echo "$as_me:$LINENO: result: no" >&5
3462echo "${ECHO_T}no" >&6; }
3463fi
3464test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3465echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3466   { (exit 1); exit 1; }; }
3467{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3468echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3469if test "${lt_cv_prog_gnu_ld+set}" = set; then
3470  echo $ECHO_N "(cached) $ECHO_C" >&6
3471else
3472  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3473case `$LD -v 2>&1 </dev/null` in
3474*GNU* | *'with BFD'*)
3475  lt_cv_prog_gnu_ld=yes
3476  ;;
3477*)
3478  lt_cv_prog_gnu_ld=no
3479  ;;
3480esac
3481fi
3482{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3483echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3484with_gnu_ld=$lt_cv_prog_gnu_ld
3485
3486
3487{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3488echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3489if test "${lt_cv_ld_reload_flag+set}" = set; then
3490  echo $ECHO_N "(cached) $ECHO_C" >&6
3491else
3492  lt_cv_ld_reload_flag='-r'
3493fi
3494{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3495echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3496reload_flag=$lt_cv_ld_reload_flag
3497case $reload_flag in
3498"" | " "*) ;;
3499*) reload_flag=" $reload_flag" ;;
3500esac
3501reload_cmds='$LD$reload_flag -o $output$reload_objs'
3502case $host_os in
3503  darwin*)
3504    if test "$GCC" = yes; then
3505      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3506    else
3507      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3508    fi
3509    ;;
3510esac
3511
3512{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3513echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3514if test "${lt_cv_path_NM+set}" = set; then
3515  echo $ECHO_N "(cached) $ECHO_C" >&6
3516else
3517  if test -n "$NM"; then
3518  # Let the user override the test.
3519  lt_cv_path_NM="$NM"
3520else
3521  lt_nm_to_check="${ac_tool_prefix}nm"
3522  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3523    lt_nm_to_check="$lt_nm_to_check nm"
3524  fi
3525  for lt_tmp_nm in $lt_nm_to_check; do
3526    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3527    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3528      IFS="$lt_save_ifs"
3529      test -z "$ac_dir" && ac_dir=.
3530      tmp_nm="$ac_dir/$lt_tmp_nm"
3531      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3532	# Check to see if the nm accepts a BSD-compat flag.
3533	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3534	#   nm: unknown option "B" ignored
3535	# Tru64's nm complains that /dev/null is an invalid object file
3536	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3537	*/dev/null* | *'Invalid file or object type'*)
3538	  lt_cv_path_NM="$tmp_nm -B"
3539	  break
3540	  ;;
3541	*)
3542	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3543	  */dev/null*)
3544	    lt_cv_path_NM="$tmp_nm -p"
3545	    break
3546	    ;;
3547	  *)
3548	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3549	    continue # so that we can try to find one that supports BSD flags
3550	    ;;
3551	  esac
3552	  ;;
3553	esac
3554      fi
3555    done
3556    IFS="$lt_save_ifs"
3557  done
3558  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3559fi
3560fi
3561{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3562echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3563NM="$lt_cv_path_NM"
3564
3565{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3566echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3567LN_S=$as_ln_s
3568if test "$LN_S" = "ln -s"; then
3569  { echo "$as_me:$LINENO: result: yes" >&5
3570echo "${ECHO_T}yes" >&6; }
3571else
3572  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3573echo "${ECHO_T}no, using $LN_S" >&6; }
3574fi
3575
3576{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3577echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
3578if test "${lt_cv_deplibs_check_method+set}" = set; then
3579  echo $ECHO_N "(cached) $ECHO_C" >&6
3580else
3581  lt_cv_file_magic_cmd='$MAGIC_CMD'
3582lt_cv_file_magic_test_file=
3583lt_cv_deplibs_check_method='unknown'
3584# Need to set the preceding variable on all platforms that support
3585# interlibrary dependencies.
3586# 'none' -- dependencies not supported.
3587# `unknown' -- same as none, but documents that we really don't know.
3588# 'pass_all' -- all dependencies passed with no checks.
3589# 'test_compile' -- check by making test program.
3590# 'file_magic [[regex]]' -- check by looking for files in library path
3591# which responds to the $file_magic_cmd with a given extended regex.
3592# If you have `file' or equivalent on your system and you're not sure
3593# whether `pass_all' will *always* work, you probably want this one.
3594
3595case $host_os in
3596aix4* | aix5*)
3597  lt_cv_deplibs_check_method=pass_all
3598  ;;
3599
3600beos*)
3601  lt_cv_deplibs_check_method=pass_all
3602  ;;
3603
3604bsdi[45]*)
3605  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3606  lt_cv_file_magic_cmd='/usr/bin/file -L'
3607  lt_cv_file_magic_test_file=/shlib/libc.so
3608  ;;
3609
3610cygwin*)
3611  # func_win32_libid is a shell function defined in ltmain.sh
3612  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3613  lt_cv_file_magic_cmd='func_win32_libid'
3614  ;;
3615
3616mingw* | pw32*)
3617  # Base MSYS/MinGW do not provide the 'file' command needed by
3618  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3619  # unless we find 'file', for example because we are cross-compiling.
3620  if ( file / ) >/dev/null 2>&1; then
3621    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3622    lt_cv_file_magic_cmd='func_win32_libid'
3623  else
3624    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3625    lt_cv_file_magic_cmd='$OBJDUMP -f'
3626  fi
3627  ;;
3628
3629darwin* | rhapsody*)
3630  lt_cv_deplibs_check_method=pass_all
3631  ;;
3632
3633freebsd* | dragonfly*)
3634  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3635    case $host_cpu in
3636    i*86 )
3637      # Not sure whether the presence of OpenBSD here was a mistake.
3638      # Let's accept both of them until this is cleared up.
3639      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3640      lt_cv_file_magic_cmd=/usr/bin/file
3641      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3642      ;;
3643    esac
3644  else
3645    lt_cv_deplibs_check_method=pass_all
3646  fi
3647  ;;
3648
3649gnu*)
3650  lt_cv_deplibs_check_method=pass_all
3651  ;;
3652
3653hpux10.20* | hpux11*)
3654  lt_cv_file_magic_cmd=/usr/bin/file
3655  case $host_cpu in
3656  ia64*)
3657    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3658    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3659    ;;
3660  hppa*64*)
3661    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]'
3662    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3663    ;;
3664  *)
3665    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3666    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3667    ;;
3668  esac
3669  ;;
3670
3671interix[3-9]*)
3672  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3673  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3674  ;;
3675
3676irix5* | irix6* | nonstopux*)
3677  case $LD in
3678  *-32|*"-32 ") libmagic=32-bit;;
3679  *-n32|*"-n32 ") libmagic=N32;;
3680  *-64|*"-64 ") libmagic=64-bit;;
3681  *) libmagic=never-match;;
3682  esac
3683  lt_cv_deplibs_check_method=pass_all
3684  ;;
3685
3686# This must be Linux ELF.
3687linux* | k*bsd*-gnu)
3688  lt_cv_deplibs_check_method=pass_all
3689  ;;
3690
3691netbsd*)
3692  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3693    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3694  else
3695    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3696  fi
3697  ;;
3698
3699newos6*)
3700  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3701  lt_cv_file_magic_cmd=/usr/bin/file
3702  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3703  ;;
3704
3705nto-qnx*)
3706  lt_cv_deplibs_check_method=unknown
3707  ;;
3708
3709openbsd*)
3710  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3711    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3712  else
3713    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3714  fi
3715  ;;
3716
3717osf3* | osf4* | osf5*)
3718  lt_cv_deplibs_check_method=pass_all
3719  ;;
3720
3721rdos*)
3722  lt_cv_deplibs_check_method=pass_all
3723  ;;
3724
3725solaris*)
3726  lt_cv_deplibs_check_method=pass_all
3727  ;;
3728
3729sysv4 | sysv4.3*)
3730  case $host_vendor in
3731  motorola)
3732    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]'
3733    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3734    ;;
3735  ncr)
3736    lt_cv_deplibs_check_method=pass_all
3737    ;;
3738  sequent)
3739    lt_cv_file_magic_cmd='/bin/file'
3740    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3741    ;;
3742  sni)
3743    lt_cv_file_magic_cmd='/bin/file'
3744    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3745    lt_cv_file_magic_test_file=/lib/libc.so
3746    ;;
3747  siemens)
3748    lt_cv_deplibs_check_method=pass_all
3749    ;;
3750  pc)
3751    lt_cv_deplibs_check_method=pass_all
3752    ;;
3753  esac
3754  ;;
3755
3756sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3757  lt_cv_deplibs_check_method=pass_all
3758  ;;
3759esac
3760
3761fi
3762{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3763echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3764file_magic_cmd=$lt_cv_file_magic_cmd
3765deplibs_check_method=$lt_cv_deplibs_check_method
3766test -z "$deplibs_check_method" && deplibs_check_method=unknown
3767
3768
3769
3770
3771# If no C compiler was specified, use CC.
3772LTCC=${LTCC-"$CC"}
3773
3774# If no C compiler flags were specified, use CFLAGS.
3775LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3776
3777# Allow CC to be a program name with arguments.
3778compiler=$CC
3779
3780
3781# Check whether --enable-libtool-lock was given.
3782if test "${enable_libtool_lock+set}" = set; then
3783  enableval=$enable_libtool_lock;
3784fi
3785
3786test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3787
3788# Some flags need to be propagated to the compiler or linker for good
3789# libtool support.
3790case $host in
3791ia64-*-hpux*)
3792  # Find out which ABI we are using.
3793  echo 'int i;' > conftest.$ac_ext
3794  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3795  (eval $ac_compile) 2>&5
3796  ac_status=$?
3797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798  (exit $ac_status); }; then
3799    case `/usr/bin/file conftest.$ac_objext` in
3800    *ELF-32*)
3801      HPUX_IA64_MODE="32"
3802      ;;
3803    *ELF-64*)
3804      HPUX_IA64_MODE="64"
3805      ;;
3806    esac
3807  fi
3808  rm -rf conftest*
3809  ;;
3810*-*-irix6*)
3811  # Find out which ABI we are using.
3812  echo '#line 3812 "configure"' > conftest.$ac_ext
3813  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3814  (eval $ac_compile) 2>&5
3815  ac_status=$?
3816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817  (exit $ac_status); }; then
3818   if test "$lt_cv_prog_gnu_ld" = yes; then
3819    case `/usr/bin/file conftest.$ac_objext` in
3820    *32-bit*)
3821      LD="${LD-ld} -melf32bsmip"
3822      ;;
3823    *N32*)
3824      LD="${LD-ld} -melf32bmipn32"
3825      ;;
3826    *64-bit*)
3827      LD="${LD-ld} -melf64bmip"
3828      ;;
3829    esac
3830   else
3831    case `/usr/bin/file conftest.$ac_objext` in
3832    *32-bit*)
3833      LD="${LD-ld} -32"
3834      ;;
3835    *N32*)
3836      LD="${LD-ld} -n32"
3837      ;;
3838    *64-bit*)
3839      LD="${LD-ld} -64"
3840      ;;
3841    esac
3842   fi
3843  fi
3844  rm -rf conftest*
3845  ;;
3846
3847x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3848s390*-*linux*|sparc*-*linux*)
3849  # Find out which ABI we are using.
3850  echo 'int i;' > conftest.$ac_ext
3851  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3852  (eval $ac_compile) 2>&5
3853  ac_status=$?
3854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855  (exit $ac_status); }; then
3856    case `/usr/bin/file conftest.o` in
3857    *32-bit*)
3858      case $host in
3859        x86_64-*kfreebsd*-gnu)
3860          LD="${LD-ld} -m elf_i386_fbsd"
3861          ;;
3862        x86_64-*linux*)
3863          LD="${LD-ld} -m elf_i386"
3864          ;;
3865        ppc64-*linux*|powerpc64-*linux*)
3866          LD="${LD-ld} -m elf32ppclinux"
3867          ;;
3868        s390x-*linux*)
3869          LD="${LD-ld} -m elf_s390"
3870          ;;
3871        sparc64-*linux*)
3872          LD="${LD-ld} -m elf32_sparc"
3873          ;;
3874      esac
3875      ;;
3876    *64-bit*)
3877      case $host in
3878        x86_64-*kfreebsd*-gnu)
3879          LD="${LD-ld} -m elf_x86_64_fbsd"
3880          ;;
3881        x86_64-*linux*)
3882          LD="${LD-ld} -m elf_x86_64"
3883          ;;
3884        ppc*-*linux*|powerpc*-*linux*)
3885          LD="${LD-ld} -m elf64ppc"
3886          ;;
3887        s390*-*linux*)
3888          LD="${LD-ld} -m elf64_s390"
3889          ;;
3890        sparc*-*linux*)
3891          LD="${LD-ld} -m elf64_sparc"
3892          ;;
3893      esac
3894      ;;
3895    esac
3896  fi
3897  rm -rf conftest*
3898  ;;
3899
3900*-*-sco3.2v5*)
3901  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3902  SAVE_CFLAGS="$CFLAGS"
3903  CFLAGS="$CFLAGS -belf"
3904  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3905echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3906if test "${lt_cv_cc_needs_belf+set}" = set; then
3907  echo $ECHO_N "(cached) $ECHO_C" >&6
3908else
3909  ac_ext=c
3910ac_cpp='$CPP $CPPFLAGS'
3911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914
3915     cat >conftest.$ac_ext <<_ACEOF
3916/* confdefs.h.  */
3917_ACEOF
3918cat confdefs.h >>conftest.$ac_ext
3919cat >>conftest.$ac_ext <<_ACEOF
3920/* end confdefs.h.  */
3921
3922int
3923main ()
3924{
3925
3926  ;
3927  return 0;
3928}
3929_ACEOF
3930rm -f conftest.$ac_objext conftest$ac_exeext
3931if { (ac_try="$ac_link"
3932case "(($ac_try" in
3933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934  *) ac_try_echo=$ac_try;;
3935esac
3936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3937  (eval "$ac_link") 2>conftest.er1
3938  ac_status=$?
3939  grep -v '^ *+' conftest.er1 >conftest.err
3940  rm -f conftest.er1
3941  cat conftest.err >&5
3942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943  (exit $ac_status); } && {
3944	 test -z "$ac_c_werror_flag" ||
3945	 test ! -s conftest.err
3946       } && test -s conftest$ac_exeext &&
3947       $as_test_x conftest$ac_exeext; then
3948  lt_cv_cc_needs_belf=yes
3949else
3950  echo "$as_me: failed program was:" >&5
3951sed 's/^/| /' conftest.$ac_ext >&5
3952
3953	lt_cv_cc_needs_belf=no
3954fi
3955
3956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3957      conftest$ac_exeext conftest.$ac_ext
3958     ac_ext=c
3959ac_cpp='$CPP $CPPFLAGS'
3960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964fi
3965{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3966echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3967  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3968    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3969    CFLAGS="$SAVE_CFLAGS"
3970  fi
3971  ;;
3972sparc*-*solaris*)
3973  # Find out which ABI we are using.
3974  echo 'int i;' > conftest.$ac_ext
3975  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976  (eval $ac_compile) 2>&5
3977  ac_status=$?
3978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979  (exit $ac_status); }; then
3980    case `/usr/bin/file conftest.o` in
3981    *64-bit*)
3982      case $lt_cv_prog_gnu_ld in
3983      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3984      *)    LD="${LD-ld} -64" ;;
3985      esac
3986      ;;
3987    esac
3988  fi
3989  rm -rf conftest*
3990  ;;
3991
3992
3993esac
3994
3995need_locks="$enable_libtool_lock"
3996
3997
3998ac_ext=c
3999ac_cpp='$CPP $CPPFLAGS'
4000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002ac_compiler_gnu=$ac_cv_c_compiler_gnu
4003{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4004echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4005# On Suns, sometimes $CPP names a directory.
4006if test -n "$CPP" && test -d "$CPP"; then
4007  CPP=
4008fi
4009if test -z "$CPP"; then
4010  if test "${ac_cv_prog_CPP+set}" = set; then
4011  echo $ECHO_N "(cached) $ECHO_C" >&6
4012else
4013      # Double quotes because CPP needs to be expanded
4014    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4015    do
4016      ac_preproc_ok=false
4017for ac_c_preproc_warn_flag in '' yes
4018do
4019  # Use a header file that comes with gcc, so configuring glibc
4020  # with a fresh cross-compiler works.
4021  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4022  # <limits.h> exists even on freestanding compilers.
4023  # On the NeXT, cc -E runs the code through the compiler's parser,
4024  # not just through cpp. "Syntax error" is here to catch this case.
4025  cat >conftest.$ac_ext <<_ACEOF
4026/* confdefs.h.  */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h.  */
4031#ifdef __STDC__
4032# include <limits.h>
4033#else
4034# include <assert.h>
4035#endif
4036		     Syntax error
4037_ACEOF
4038if { (ac_try="$ac_cpp conftest.$ac_ext"
4039case "(($ac_try" in
4040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041  *) ac_try_echo=$ac_try;;
4042esac
4043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4045  ac_status=$?
4046  grep -v '^ *+' conftest.er1 >conftest.err
4047  rm -f conftest.er1
4048  cat conftest.err >&5
4049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050  (exit $ac_status); } >/dev/null && {
4051	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4052	 test ! -s conftest.err
4053       }; then
4054  :
4055else
4056  echo "$as_me: failed program was:" >&5
4057sed 's/^/| /' conftest.$ac_ext >&5
4058
4059  # Broken: fails on valid input.
4060continue
4061fi
4062
4063rm -f conftest.err conftest.$ac_ext
4064
4065  # OK, works on sane cases.  Now check whether nonexistent headers
4066  # can be detected and how.
4067  cat >conftest.$ac_ext <<_ACEOF
4068/* confdefs.h.  */
4069_ACEOF
4070cat confdefs.h >>conftest.$ac_ext
4071cat >>conftest.$ac_ext <<_ACEOF
4072/* end confdefs.h.  */
4073#include <ac_nonexistent.h>
4074_ACEOF
4075if { (ac_try="$ac_cpp conftest.$ac_ext"
4076case "(($ac_try" in
4077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078  *) ac_try_echo=$ac_try;;
4079esac
4080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4082  ac_status=$?
4083  grep -v '^ *+' conftest.er1 >conftest.err
4084  rm -f conftest.er1
4085  cat conftest.err >&5
4086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087  (exit $ac_status); } >/dev/null && {
4088	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4089	 test ! -s conftest.err
4090       }; then
4091  # Broken: success on invalid input.
4092continue
4093else
4094  echo "$as_me: failed program was:" >&5
4095sed 's/^/| /' conftest.$ac_ext >&5
4096
4097  # Passes both tests.
4098ac_preproc_ok=:
4099break
4100fi
4101
4102rm -f conftest.err conftest.$ac_ext
4103
4104done
4105# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4106rm -f conftest.err conftest.$ac_ext
4107if $ac_preproc_ok; then
4108  break
4109fi
4110
4111    done
4112    ac_cv_prog_CPP=$CPP
4113
4114fi
4115  CPP=$ac_cv_prog_CPP
4116else
4117  ac_cv_prog_CPP=$CPP
4118fi
4119{ echo "$as_me:$LINENO: result: $CPP" >&5
4120echo "${ECHO_T}$CPP" >&6; }
4121ac_preproc_ok=false
4122for ac_c_preproc_warn_flag in '' yes
4123do
4124  # Use a header file that comes with gcc, so configuring glibc
4125  # with a fresh cross-compiler works.
4126  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4127  # <limits.h> exists even on freestanding compilers.
4128  # On the NeXT, cc -E runs the code through the compiler's parser,
4129  # not just through cpp. "Syntax error" is here to catch this case.
4130  cat >conftest.$ac_ext <<_ACEOF
4131/* confdefs.h.  */
4132_ACEOF
4133cat confdefs.h >>conftest.$ac_ext
4134cat >>conftest.$ac_ext <<_ACEOF
4135/* end confdefs.h.  */
4136#ifdef __STDC__
4137# include <limits.h>
4138#else
4139# include <assert.h>
4140#endif
4141		     Syntax error
4142_ACEOF
4143if { (ac_try="$ac_cpp conftest.$ac_ext"
4144case "(($ac_try" in
4145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146  *) ac_try_echo=$ac_try;;
4147esac
4148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4149  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4150  ac_status=$?
4151  grep -v '^ *+' conftest.er1 >conftest.err
4152  rm -f conftest.er1
4153  cat conftest.err >&5
4154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155  (exit $ac_status); } >/dev/null && {
4156	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4157	 test ! -s conftest.err
4158       }; then
4159  :
4160else
4161  echo "$as_me: failed program was:" >&5
4162sed 's/^/| /' conftest.$ac_ext >&5
4163
4164  # Broken: fails on valid input.
4165continue
4166fi
4167
4168rm -f conftest.err conftest.$ac_ext
4169
4170  # OK, works on sane cases.  Now check whether nonexistent headers
4171  # can be detected and how.
4172  cat >conftest.$ac_ext <<_ACEOF
4173/* confdefs.h.  */
4174_ACEOF
4175cat confdefs.h >>conftest.$ac_ext
4176cat >>conftest.$ac_ext <<_ACEOF
4177/* end confdefs.h.  */
4178#include <ac_nonexistent.h>
4179_ACEOF
4180if { (ac_try="$ac_cpp conftest.$ac_ext"
4181case "(($ac_try" in
4182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183  *) ac_try_echo=$ac_try;;
4184esac
4185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4187  ac_status=$?
4188  grep -v '^ *+' conftest.er1 >conftest.err
4189  rm -f conftest.er1
4190  cat conftest.err >&5
4191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192  (exit $ac_status); } >/dev/null && {
4193	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4194	 test ! -s conftest.err
4195       }; then
4196  # Broken: success on invalid input.
4197continue
4198else
4199  echo "$as_me: failed program was:" >&5
4200sed 's/^/| /' conftest.$ac_ext >&5
4201
4202  # Passes both tests.
4203ac_preproc_ok=:
4204break
4205fi
4206
4207rm -f conftest.err conftest.$ac_ext
4208
4209done
4210# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4211rm -f conftest.err conftest.$ac_ext
4212if $ac_preproc_ok; then
4213  :
4214else
4215  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4216See \`config.log' for more details." >&5
4217echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4218See \`config.log' for more details." >&2;}
4219   { (exit 1); exit 1; }; }
4220fi
4221
4222ac_ext=c
4223ac_cpp='$CPP $CPPFLAGS'
4224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227
4228
4229{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4230echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4231if test "${ac_cv_header_stdc+set}" = set; then
4232  echo $ECHO_N "(cached) $ECHO_C" >&6
4233else
4234  cat >conftest.$ac_ext <<_ACEOF
4235/* confdefs.h.  */
4236_ACEOF
4237cat confdefs.h >>conftest.$ac_ext
4238cat >>conftest.$ac_ext <<_ACEOF
4239/* end confdefs.h.  */
4240#include <stdlib.h>
4241#include <stdarg.h>
4242#include <string.h>
4243#include <float.h>
4244
4245int
4246main ()
4247{
4248
4249  ;
4250  return 0;
4251}
4252_ACEOF
4253rm -f conftest.$ac_objext
4254if { (ac_try="$ac_compile"
4255case "(($ac_try" in
4256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257  *) ac_try_echo=$ac_try;;
4258esac
4259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260  (eval "$ac_compile") 2>conftest.er1
4261  ac_status=$?
4262  grep -v '^ *+' conftest.er1 >conftest.err
4263  rm -f conftest.er1
4264  cat conftest.err >&5
4265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266  (exit $ac_status); } && {
4267	 test -z "$ac_c_werror_flag" ||
4268	 test ! -s conftest.err
4269       } && test -s conftest.$ac_objext; then
4270  ac_cv_header_stdc=yes
4271else
4272  echo "$as_me: failed program was:" >&5
4273sed 's/^/| /' conftest.$ac_ext >&5
4274
4275	ac_cv_header_stdc=no
4276fi
4277
4278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279
4280if test $ac_cv_header_stdc = yes; then
4281  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4282  cat >conftest.$ac_ext <<_ACEOF
4283/* confdefs.h.  */
4284_ACEOF
4285cat confdefs.h >>conftest.$ac_ext
4286cat >>conftest.$ac_ext <<_ACEOF
4287/* end confdefs.h.  */
4288#include <string.h>
4289
4290_ACEOF
4291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4292  $EGREP "memchr" >/dev/null 2>&1; then
4293  :
4294else
4295  ac_cv_header_stdc=no
4296fi
4297rm -f conftest*
4298
4299fi
4300
4301if test $ac_cv_header_stdc = yes; then
4302  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4303  cat >conftest.$ac_ext <<_ACEOF
4304/* confdefs.h.  */
4305_ACEOF
4306cat confdefs.h >>conftest.$ac_ext
4307cat >>conftest.$ac_ext <<_ACEOF
4308/* end confdefs.h.  */
4309#include <stdlib.h>
4310
4311_ACEOF
4312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4313  $EGREP "free" >/dev/null 2>&1; then
4314  :
4315else
4316  ac_cv_header_stdc=no
4317fi
4318rm -f conftest*
4319
4320fi
4321
4322if test $ac_cv_header_stdc = yes; then
4323  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4324  if test "$cross_compiling" = yes; then
4325  :
4326else
4327  cat >conftest.$ac_ext <<_ACEOF
4328/* confdefs.h.  */
4329_ACEOF
4330cat confdefs.h >>conftest.$ac_ext
4331cat >>conftest.$ac_ext <<_ACEOF
4332/* end confdefs.h.  */
4333#include <ctype.h>
4334#include <stdlib.h>
4335#if ((' ' & 0x0FF) == 0x020)
4336# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4337# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4338#else
4339# define ISLOWER(c) \
4340		   (('a' <= (c) && (c) <= 'i') \
4341		     || ('j' <= (c) && (c) <= 'r') \
4342		     || ('s' <= (c) && (c) <= 'z'))
4343# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4344#endif
4345
4346#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4347int
4348main ()
4349{
4350  int i;
4351  for (i = 0; i < 256; i++)
4352    if (XOR (islower (i), ISLOWER (i))
4353	|| toupper (i) != TOUPPER (i))
4354      return 2;
4355  return 0;
4356}
4357_ACEOF
4358rm -f conftest$ac_exeext
4359if { (ac_try="$ac_link"
4360case "(($ac_try" in
4361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362  *) ac_try_echo=$ac_try;;
4363esac
4364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365  (eval "$ac_link") 2>&5
4366  ac_status=$?
4367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4369  { (case "(($ac_try" in
4370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371  *) ac_try_echo=$ac_try;;
4372esac
4373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374  (eval "$ac_try") 2>&5
4375  ac_status=$?
4376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377  (exit $ac_status); }; }; then
4378  :
4379else
4380  echo "$as_me: program exited with status $ac_status" >&5
4381echo "$as_me: failed program was:" >&5
4382sed 's/^/| /' conftest.$ac_ext >&5
4383
4384( exit $ac_status )
4385ac_cv_header_stdc=no
4386fi
4387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4388fi
4389
4390
4391fi
4392fi
4393{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4394echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4395if test $ac_cv_header_stdc = yes; then
4396
4397cat >>confdefs.h <<\_ACEOF
4398#define STDC_HEADERS 1
4399_ACEOF
4400
4401fi
4402
4403# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4414		  inttypes.h stdint.h unistd.h
4415do
4416as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4417{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4419if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4420  echo $ECHO_N "(cached) $ECHO_C" >&6
4421else
4422  cat >conftest.$ac_ext <<_ACEOF
4423/* confdefs.h.  */
4424_ACEOF
4425cat confdefs.h >>conftest.$ac_ext
4426cat >>conftest.$ac_ext <<_ACEOF
4427/* end confdefs.h.  */
4428$ac_includes_default
4429
4430#include <$ac_header>
4431_ACEOF
4432rm -f conftest.$ac_objext
4433if { (ac_try="$ac_compile"
4434case "(($ac_try" in
4435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436  *) ac_try_echo=$ac_try;;
4437esac
4438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439  (eval "$ac_compile") 2>conftest.er1
4440  ac_status=$?
4441  grep -v '^ *+' conftest.er1 >conftest.err
4442  rm -f conftest.er1
4443  cat conftest.err >&5
4444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445  (exit $ac_status); } && {
4446	 test -z "$ac_c_werror_flag" ||
4447	 test ! -s conftest.err
4448       } && test -s conftest.$ac_objext; then
4449  eval "$as_ac_Header=yes"
4450else
4451  echo "$as_me: failed program was:" >&5
4452sed 's/^/| /' conftest.$ac_ext >&5
4453
4454	eval "$as_ac_Header=no"
4455fi
4456
4457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458fi
4459ac_res=`eval echo '${'$as_ac_Header'}'`
4460	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4461echo "${ECHO_T}$ac_res" >&6; }
4462if test `eval echo '${'$as_ac_Header'}'` = yes; then
4463  cat >>confdefs.h <<_ACEOF
4464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4465_ACEOF
4466
4467fi
4468
4469done
4470
4471
4472
4473for ac_header in dlfcn.h
4474do
4475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4477  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4480  echo $ECHO_N "(cached) $ECHO_C" >&6
4481fi
4482ac_res=`eval echo '${'$as_ac_Header'}'`
4483	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4484echo "${ECHO_T}$ac_res" >&6; }
4485else
4486  # Is the header compilable?
4487{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4488echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4489cat >conftest.$ac_ext <<_ACEOF
4490/* confdefs.h.  */
4491_ACEOF
4492cat confdefs.h >>conftest.$ac_ext
4493cat >>conftest.$ac_ext <<_ACEOF
4494/* end confdefs.h.  */
4495$ac_includes_default
4496#include <$ac_header>
4497_ACEOF
4498rm -f conftest.$ac_objext
4499if { (ac_try="$ac_compile"
4500case "(($ac_try" in
4501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502  *) ac_try_echo=$ac_try;;
4503esac
4504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505  (eval "$ac_compile") 2>conftest.er1
4506  ac_status=$?
4507  grep -v '^ *+' conftest.er1 >conftest.err
4508  rm -f conftest.er1
4509  cat conftest.err >&5
4510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511  (exit $ac_status); } && {
4512	 test -z "$ac_c_werror_flag" ||
4513	 test ! -s conftest.err
4514       } && test -s conftest.$ac_objext; then
4515  ac_header_compiler=yes
4516else
4517  echo "$as_me: failed program was:" >&5
4518sed 's/^/| /' conftest.$ac_ext >&5
4519
4520	ac_header_compiler=no
4521fi
4522
4523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4525echo "${ECHO_T}$ac_header_compiler" >&6; }
4526
4527# Is the header present?
4528{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4529echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4530cat >conftest.$ac_ext <<_ACEOF
4531/* confdefs.h.  */
4532_ACEOF
4533cat confdefs.h >>conftest.$ac_ext
4534cat >>conftest.$ac_ext <<_ACEOF
4535/* end confdefs.h.  */
4536#include <$ac_header>
4537_ACEOF
4538if { (ac_try="$ac_cpp conftest.$ac_ext"
4539case "(($ac_try" in
4540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541  *) ac_try_echo=$ac_try;;
4542esac
4543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4545  ac_status=$?
4546  grep -v '^ *+' conftest.er1 >conftest.err
4547  rm -f conftest.er1
4548  cat conftest.err >&5
4549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550  (exit $ac_status); } >/dev/null && {
4551	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4552	 test ! -s conftest.err
4553       }; then
4554  ac_header_preproc=yes
4555else
4556  echo "$as_me: failed program was:" >&5
4557sed 's/^/| /' conftest.$ac_ext >&5
4558
4559  ac_header_preproc=no
4560fi
4561
4562rm -f conftest.err conftest.$ac_ext
4563{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4564echo "${ECHO_T}$ac_header_preproc" >&6; }
4565
4566# So?  What about this header?
4567case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4568  yes:no: )
4569    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4570echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4571    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4572echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4573    ac_header_preproc=yes
4574    ;;
4575  no:yes:* )
4576    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4577echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4578    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4579echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4580    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4581echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4582    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4583echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4584    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4585echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4586    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4587echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4588    ( cat <<\_ASBOX
4589## ----------------------------------------------- ##
4590## Report this to trustedbsd-audit@TrustesdBSD.org ##
4591## ----------------------------------------------- ##
4592_ASBOX
4593     ) | sed "s/^/$as_me: WARNING:     /" >&2
4594    ;;
4595esac
4596{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4599  echo $ECHO_N "(cached) $ECHO_C" >&6
4600else
4601  eval "$as_ac_Header=\$ac_header_preproc"
4602fi
4603ac_res=`eval echo '${'$as_ac_Header'}'`
4604	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4605echo "${ECHO_T}$ac_res" >&6; }
4606
4607fi
4608if test `eval echo '${'$as_ac_Header'}'` = yes; then
4609  cat >>confdefs.h <<_ACEOF
4610#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4611_ACEOF
4612
4613fi
4614
4615done
4616
4617ac_ext=cpp
4618ac_cpp='$CXXCPP $CPPFLAGS'
4619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4622if test -z "$CXX"; then
4623  if test -n "$CCC"; then
4624    CXX=$CCC
4625  else
4626    if test -n "$ac_tool_prefix"; then
4627  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4628  do
4629    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4630set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4633if test "${ac_cv_prog_CXX+set}" = set; then
4634  echo $ECHO_N "(cached) $ECHO_C" >&6
4635else
4636  if test -n "$CXX"; then
4637  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4638else
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642  IFS=$as_save_IFS
4643  test -z "$as_dir" && as_dir=.
4644  for ac_exec_ext in '' $ac_executable_extensions; do
4645  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648    break 2
4649  fi
4650done
4651done
4652IFS=$as_save_IFS
4653
4654fi
4655fi
4656CXX=$ac_cv_prog_CXX
4657if test -n "$CXX"; then
4658  { echo "$as_me:$LINENO: result: $CXX" >&5
4659echo "${ECHO_T}$CXX" >&6; }
4660else
4661  { echo "$as_me:$LINENO: result: no" >&5
4662echo "${ECHO_T}no" >&6; }
4663fi
4664
4665
4666    test -n "$CXX" && break
4667  done
4668fi
4669if test -z "$CXX"; then
4670  ac_ct_CXX=$CXX
4671  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4672do
4673  # Extract the first word of "$ac_prog", so it can be a program name with args.
4674set dummy $ac_prog; ac_word=$2
4675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4678  echo $ECHO_N "(cached) $ECHO_C" >&6
4679else
4680  if test -n "$ac_ct_CXX"; then
4681  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4682else
4683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684for as_dir in $PATH
4685do
4686  IFS=$as_save_IFS
4687  test -z "$as_dir" && as_dir=.
4688  for ac_exec_ext in '' $ac_executable_extensions; do
4689  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690    ac_cv_prog_ac_ct_CXX="$ac_prog"
4691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692    break 2
4693  fi
4694done
4695done
4696IFS=$as_save_IFS
4697
4698fi
4699fi
4700ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4701if test -n "$ac_ct_CXX"; then
4702  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4703echo "${ECHO_T}$ac_ct_CXX" >&6; }
4704else
4705  { echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6; }
4707fi
4708
4709
4710  test -n "$ac_ct_CXX" && break
4711done
4712
4713  if test "x$ac_ct_CXX" = x; then
4714    CXX="g++"
4715  else
4716    case $cross_compiling:$ac_tool_warned in
4717yes:)
4718{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4719whose name does not start with the host triplet.  If you think this
4720configuration is useful to you, please write to autoconf@gnu.org." >&5
4721echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4722whose name does not start with the host triplet.  If you think this
4723configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4724ac_tool_warned=yes ;;
4725esac
4726    CXX=$ac_ct_CXX
4727  fi
4728fi
4729
4730  fi
4731fi
4732# Provide some information about the compiler.
4733echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4734ac_compiler=`set X $ac_compile; echo $2`
4735{ (ac_try="$ac_compiler --version >&5"
4736case "(($ac_try" in
4737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738  *) ac_try_echo=$ac_try;;
4739esac
4740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4741  (eval "$ac_compiler --version >&5") 2>&5
4742  ac_status=$?
4743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744  (exit $ac_status); }
4745{ (ac_try="$ac_compiler -v >&5"
4746case "(($ac_try" in
4747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748  *) ac_try_echo=$ac_try;;
4749esac
4750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751  (eval "$ac_compiler -v >&5") 2>&5
4752  ac_status=$?
4753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754  (exit $ac_status); }
4755{ (ac_try="$ac_compiler -V >&5"
4756case "(($ac_try" in
4757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758  *) ac_try_echo=$ac_try;;
4759esac
4760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761  (eval "$ac_compiler -V >&5") 2>&5
4762  ac_status=$?
4763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764  (exit $ac_status); }
4765
4766{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4767echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4768if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4769  echo $ECHO_N "(cached) $ECHO_C" >&6
4770else
4771  cat >conftest.$ac_ext <<_ACEOF
4772/* confdefs.h.  */
4773_ACEOF
4774cat confdefs.h >>conftest.$ac_ext
4775cat >>conftest.$ac_ext <<_ACEOF
4776/* end confdefs.h.  */
4777
4778int
4779main ()
4780{
4781#ifndef __GNUC__
4782       choke me
4783#endif
4784
4785  ;
4786  return 0;
4787}
4788_ACEOF
4789rm -f conftest.$ac_objext
4790if { (ac_try="$ac_compile"
4791case "(($ac_try" in
4792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793  *) ac_try_echo=$ac_try;;
4794esac
4795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796  (eval "$ac_compile") 2>conftest.er1
4797  ac_status=$?
4798  grep -v '^ *+' conftest.er1 >conftest.err
4799  rm -f conftest.er1
4800  cat conftest.err >&5
4801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802  (exit $ac_status); } && {
4803	 test -z "$ac_cxx_werror_flag" ||
4804	 test ! -s conftest.err
4805       } && test -s conftest.$ac_objext; then
4806  ac_compiler_gnu=yes
4807else
4808  echo "$as_me: failed program was:" >&5
4809sed 's/^/| /' conftest.$ac_ext >&5
4810
4811	ac_compiler_gnu=no
4812fi
4813
4814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4816
4817fi
4818{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4819echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4820GXX=`test $ac_compiler_gnu = yes && echo yes`
4821ac_test_CXXFLAGS=${CXXFLAGS+set}
4822ac_save_CXXFLAGS=$CXXFLAGS
4823{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4824echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4825if test "${ac_cv_prog_cxx_g+set}" = set; then
4826  echo $ECHO_N "(cached) $ECHO_C" >&6
4827else
4828  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4829   ac_cxx_werror_flag=yes
4830   ac_cv_prog_cxx_g=no
4831   CXXFLAGS="-g"
4832   cat >conftest.$ac_ext <<_ACEOF
4833/* confdefs.h.  */
4834_ACEOF
4835cat confdefs.h >>conftest.$ac_ext
4836cat >>conftest.$ac_ext <<_ACEOF
4837/* end confdefs.h.  */
4838
4839int
4840main ()
4841{
4842
4843  ;
4844  return 0;
4845}
4846_ACEOF
4847rm -f conftest.$ac_objext
4848if { (ac_try="$ac_compile"
4849case "(($ac_try" in
4850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851  *) ac_try_echo=$ac_try;;
4852esac
4853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854  (eval "$ac_compile") 2>conftest.er1
4855  ac_status=$?
4856  grep -v '^ *+' conftest.er1 >conftest.err
4857  rm -f conftest.er1
4858  cat conftest.err >&5
4859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860  (exit $ac_status); } && {
4861	 test -z "$ac_cxx_werror_flag" ||
4862	 test ! -s conftest.err
4863       } && test -s conftest.$ac_objext; then
4864  ac_cv_prog_cxx_g=yes
4865else
4866  echo "$as_me: failed program was:" >&5
4867sed 's/^/| /' conftest.$ac_ext >&5
4868
4869	CXXFLAGS=""
4870      cat >conftest.$ac_ext <<_ACEOF
4871/* confdefs.h.  */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h.  */
4876
4877int
4878main ()
4879{
4880
4881  ;
4882  return 0;
4883}
4884_ACEOF
4885rm -f conftest.$ac_objext
4886if { (ac_try="$ac_compile"
4887case "(($ac_try" in
4888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889  *) ac_try_echo=$ac_try;;
4890esac
4891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892  (eval "$ac_compile") 2>conftest.er1
4893  ac_status=$?
4894  grep -v '^ *+' conftest.er1 >conftest.err
4895  rm -f conftest.er1
4896  cat conftest.err >&5
4897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898  (exit $ac_status); } && {
4899	 test -z "$ac_cxx_werror_flag" ||
4900	 test ! -s conftest.err
4901       } && test -s conftest.$ac_objext; then
4902  :
4903else
4904  echo "$as_me: failed program was:" >&5
4905sed 's/^/| /' conftest.$ac_ext >&5
4906
4907	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4908	 CXXFLAGS="-g"
4909	 cat >conftest.$ac_ext <<_ACEOF
4910/* confdefs.h.  */
4911_ACEOF
4912cat confdefs.h >>conftest.$ac_ext
4913cat >>conftest.$ac_ext <<_ACEOF
4914/* end confdefs.h.  */
4915
4916int
4917main ()
4918{
4919
4920  ;
4921  return 0;
4922}
4923_ACEOF
4924rm -f conftest.$ac_objext
4925if { (ac_try="$ac_compile"
4926case "(($ac_try" in
4927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928  *) ac_try_echo=$ac_try;;
4929esac
4930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931  (eval "$ac_compile") 2>conftest.er1
4932  ac_status=$?
4933  grep -v '^ *+' conftest.er1 >conftest.err
4934  rm -f conftest.er1
4935  cat conftest.err >&5
4936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937  (exit $ac_status); } && {
4938	 test -z "$ac_cxx_werror_flag" ||
4939	 test ! -s conftest.err
4940       } && test -s conftest.$ac_objext; then
4941  ac_cv_prog_cxx_g=yes
4942else
4943  echo "$as_me: failed program was:" >&5
4944sed 's/^/| /' conftest.$ac_ext >&5
4945
4946
4947fi
4948
4949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950fi
4951
4952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953fi
4954
4955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4957fi
4958{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4959echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4960if test "$ac_test_CXXFLAGS" = set; then
4961  CXXFLAGS=$ac_save_CXXFLAGS
4962elif test $ac_cv_prog_cxx_g = yes; then
4963  if test "$GXX" = yes; then
4964    CXXFLAGS="-g -O2"
4965  else
4966    CXXFLAGS="-g"
4967  fi
4968else
4969  if test "$GXX" = yes; then
4970    CXXFLAGS="-O2"
4971  else
4972    CXXFLAGS=
4973  fi
4974fi
4975ac_ext=cpp
4976ac_cpp='$CXXCPP $CPPFLAGS'
4977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4980
4981
4982
4983if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4984    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4985    (test "X$CXX" != "Xg++"))) ; then
4986  ac_ext=cpp
4987ac_cpp='$CXXCPP $CPPFLAGS'
4988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4991{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4992echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4993if test -z "$CXXCPP"; then
4994  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4995  echo $ECHO_N "(cached) $ECHO_C" >&6
4996else
4997      # Double quotes because CXXCPP needs to be expanded
4998    for CXXCPP in "$CXX -E" "/lib/cpp"
4999    do
5000      ac_preproc_ok=false
5001for ac_cxx_preproc_warn_flag in '' yes
5002do
5003  # Use a header file that comes with gcc, so configuring glibc
5004  # with a fresh cross-compiler works.
5005  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006  # <limits.h> exists even on freestanding compilers.
5007  # On the NeXT, cc -E runs the code through the compiler's parser,
5008  # not just through cpp. "Syntax error" is here to catch this case.
5009  cat >conftest.$ac_ext <<_ACEOF
5010/* confdefs.h.  */
5011_ACEOF
5012cat confdefs.h >>conftest.$ac_ext
5013cat >>conftest.$ac_ext <<_ACEOF
5014/* end confdefs.h.  */
5015#ifdef __STDC__
5016# include <limits.h>
5017#else
5018# include <assert.h>
5019#endif
5020		     Syntax error
5021_ACEOF
5022if { (ac_try="$ac_cpp conftest.$ac_ext"
5023case "(($ac_try" in
5024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025  *) ac_try_echo=$ac_try;;
5026esac
5027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5029  ac_status=$?
5030  grep -v '^ *+' conftest.er1 >conftest.err
5031  rm -f conftest.er1
5032  cat conftest.err >&5
5033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034  (exit $ac_status); } >/dev/null && {
5035	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5036	 test ! -s conftest.err
5037       }; then
5038  :
5039else
5040  echo "$as_me: failed program was:" >&5
5041sed 's/^/| /' conftest.$ac_ext >&5
5042
5043  # Broken: fails on valid input.
5044continue
5045fi
5046
5047rm -f conftest.err conftest.$ac_ext
5048
5049  # OK, works on sane cases.  Now check whether nonexistent headers
5050  # can be detected and how.
5051  cat >conftest.$ac_ext <<_ACEOF
5052/* confdefs.h.  */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
5056/* end confdefs.h.  */
5057#include <ac_nonexistent.h>
5058_ACEOF
5059if { (ac_try="$ac_cpp conftest.$ac_ext"
5060case "(($ac_try" in
5061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062  *) ac_try_echo=$ac_try;;
5063esac
5064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5066  ac_status=$?
5067  grep -v '^ *+' conftest.er1 >conftest.err
5068  rm -f conftest.er1
5069  cat conftest.err >&5
5070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071  (exit $ac_status); } >/dev/null && {
5072	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5073	 test ! -s conftest.err
5074       }; then
5075  # Broken: success on invalid input.
5076continue
5077else
5078  echo "$as_me: failed program was:" >&5
5079sed 's/^/| /' conftest.$ac_ext >&5
5080
5081  # Passes both tests.
5082ac_preproc_ok=:
5083break
5084fi
5085
5086rm -f conftest.err conftest.$ac_ext
5087
5088done
5089# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090rm -f conftest.err conftest.$ac_ext
5091if $ac_preproc_ok; then
5092  break
5093fi
5094
5095    done
5096    ac_cv_prog_CXXCPP=$CXXCPP
5097
5098fi
5099  CXXCPP=$ac_cv_prog_CXXCPP
5100else
5101  ac_cv_prog_CXXCPP=$CXXCPP
5102fi
5103{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5104echo "${ECHO_T}$CXXCPP" >&6; }
5105ac_preproc_ok=false
5106for ac_cxx_preproc_warn_flag in '' yes
5107do
5108  # Use a header file that comes with gcc, so configuring glibc
5109  # with a fresh cross-compiler works.
5110  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5111  # <limits.h> exists even on freestanding compilers.
5112  # On the NeXT, cc -E runs the code through the compiler's parser,
5113  # not just through cpp. "Syntax error" is here to catch this case.
5114  cat >conftest.$ac_ext <<_ACEOF
5115/* confdefs.h.  */
5116_ACEOF
5117cat confdefs.h >>conftest.$ac_ext
5118cat >>conftest.$ac_ext <<_ACEOF
5119/* end confdefs.h.  */
5120#ifdef __STDC__
5121# include <limits.h>
5122#else
5123# include <assert.h>
5124#endif
5125		     Syntax error
5126_ACEOF
5127if { (ac_try="$ac_cpp conftest.$ac_ext"
5128case "(($ac_try" in
5129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130  *) ac_try_echo=$ac_try;;
5131esac
5132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5134  ac_status=$?
5135  grep -v '^ *+' conftest.er1 >conftest.err
5136  rm -f conftest.er1
5137  cat conftest.err >&5
5138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139  (exit $ac_status); } >/dev/null && {
5140	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5141	 test ! -s conftest.err
5142       }; then
5143  :
5144else
5145  echo "$as_me: failed program was:" >&5
5146sed 's/^/| /' conftest.$ac_ext >&5
5147
5148  # Broken: fails on valid input.
5149continue
5150fi
5151
5152rm -f conftest.err conftest.$ac_ext
5153
5154  # OK, works on sane cases.  Now check whether nonexistent headers
5155  # can be detected and how.
5156  cat >conftest.$ac_ext <<_ACEOF
5157/* confdefs.h.  */
5158_ACEOF
5159cat confdefs.h >>conftest.$ac_ext
5160cat >>conftest.$ac_ext <<_ACEOF
5161/* end confdefs.h.  */
5162#include <ac_nonexistent.h>
5163_ACEOF
5164if { (ac_try="$ac_cpp conftest.$ac_ext"
5165case "(($ac_try" in
5166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167  *) ac_try_echo=$ac_try;;
5168esac
5169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5170  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5171  ac_status=$?
5172  grep -v '^ *+' conftest.er1 >conftest.err
5173  rm -f conftest.er1
5174  cat conftest.err >&5
5175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176  (exit $ac_status); } >/dev/null && {
5177	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5178	 test ! -s conftest.err
5179       }; then
5180  # Broken: success on invalid input.
5181continue
5182else
5183  echo "$as_me: failed program was:" >&5
5184sed 's/^/| /' conftest.$ac_ext >&5
5185
5186  # Passes both tests.
5187ac_preproc_ok=:
5188break
5189fi
5190
5191rm -f conftest.err conftest.$ac_ext
5192
5193done
5194# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5195rm -f conftest.err conftest.$ac_ext
5196if $ac_preproc_ok; then
5197  :
5198else
5199  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5200See \`config.log' for more details." >&5
5201echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5202See \`config.log' for more details." >&2;}
5203   { (exit 1); exit 1; }; }
5204fi
5205
5206ac_ext=cpp
5207ac_cpp='$CXXCPP $CPPFLAGS'
5208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5211
5212fi
5213
5214
5215ac_ext=f
5216ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5217ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5219if test -n "$ac_tool_prefix"; then
5220  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
5221  do
5222    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5223set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5224{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5226if test "${ac_cv_prog_F77+set}" = set; then
5227  echo $ECHO_N "(cached) $ECHO_C" >&6
5228else
5229  if test -n "$F77"; then
5230  ac_cv_prog_F77="$F77" # Let the user override the test.
5231else
5232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233for as_dir in $PATH
5234do
5235  IFS=$as_save_IFS
5236  test -z "$as_dir" && as_dir=.
5237  for ac_exec_ext in '' $ac_executable_extensions; do
5238  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5240    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241    break 2
5242  fi
5243done
5244done
5245IFS=$as_save_IFS
5246
5247fi
5248fi
5249F77=$ac_cv_prog_F77
5250if test -n "$F77"; then
5251  { echo "$as_me:$LINENO: result: $F77" >&5
5252echo "${ECHO_T}$F77" >&6; }
5253else
5254  { echo "$as_me:$LINENO: result: no" >&5
5255echo "${ECHO_T}no" >&6; }
5256fi
5257
5258
5259    test -n "$F77" && break
5260  done
5261fi
5262if test -z "$F77"; then
5263  ac_ct_F77=$F77
5264  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
5265do
5266  # Extract the first word of "$ac_prog", so it can be a program name with args.
5267set dummy $ac_prog; ac_word=$2
5268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5270if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5271  echo $ECHO_N "(cached) $ECHO_C" >&6
5272else
5273  if test -n "$ac_ct_F77"; then
5274  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5275else
5276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH
5278do
5279  IFS=$as_save_IFS
5280  test -z "$as_dir" && as_dir=.
5281  for ac_exec_ext in '' $ac_executable_extensions; do
5282  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283    ac_cv_prog_ac_ct_F77="$ac_prog"
5284    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285    break 2
5286  fi
5287done
5288done
5289IFS=$as_save_IFS
5290
5291fi
5292fi
5293ac_ct_F77=$ac_cv_prog_ac_ct_F77
5294if test -n "$ac_ct_F77"; then
5295  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5296echo "${ECHO_T}$ac_ct_F77" >&6; }
5297else
5298  { echo "$as_me:$LINENO: result: no" >&5
5299echo "${ECHO_T}no" >&6; }
5300fi
5301
5302
5303  test -n "$ac_ct_F77" && break
5304done
5305
5306  if test "x$ac_ct_F77" = x; then
5307    F77=""
5308  else
5309    case $cross_compiling:$ac_tool_warned in
5310yes:)
5311{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5312whose name does not start with the host triplet.  If you think this
5313configuration is useful to you, please write to autoconf@gnu.org." >&5
5314echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5315whose name does not start with the host triplet.  If you think this
5316configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5317ac_tool_warned=yes ;;
5318esac
5319    F77=$ac_ct_F77
5320  fi
5321fi
5322
5323
5324# Provide some information about the compiler.
5325echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5326ac_compiler=`set X $ac_compile; echo $2`
5327{ (ac_try="$ac_compiler --version >&5"
5328case "(($ac_try" in
5329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330  *) ac_try_echo=$ac_try;;
5331esac
5332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333  (eval "$ac_compiler --version >&5") 2>&5
5334  ac_status=$?
5335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336  (exit $ac_status); }
5337{ (ac_try="$ac_compiler -v >&5"
5338case "(($ac_try" in
5339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340  *) ac_try_echo=$ac_try;;
5341esac
5342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343  (eval "$ac_compiler -v >&5") 2>&5
5344  ac_status=$?
5345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346  (exit $ac_status); }
5347{ (ac_try="$ac_compiler -V >&5"
5348case "(($ac_try" in
5349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350  *) ac_try_echo=$ac_try;;
5351esac
5352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353  (eval "$ac_compiler -V >&5") 2>&5
5354  ac_status=$?
5355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356  (exit $ac_status); }
5357rm -f a.out
5358
5359# If we don't use `.F' as extension, the preprocessor is not run on the
5360# input file.  (Note that this only needs to work for GNU compilers.)
5361ac_save_ext=$ac_ext
5362ac_ext=F
5363{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5364echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5365if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5366  echo $ECHO_N "(cached) $ECHO_C" >&6
5367else
5368  cat >conftest.$ac_ext <<_ACEOF
5369      program main
5370#ifndef __GNUC__
5371       choke me
5372#endif
5373
5374      end
5375_ACEOF
5376rm -f conftest.$ac_objext
5377if { (ac_try="$ac_compile"
5378case "(($ac_try" in
5379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380  *) ac_try_echo=$ac_try;;
5381esac
5382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383  (eval "$ac_compile") 2>conftest.er1
5384  ac_status=$?
5385  grep -v '^ *+' conftest.er1 >conftest.err
5386  rm -f conftest.er1
5387  cat conftest.err >&5
5388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389  (exit $ac_status); } && {
5390	 test -z "$ac_f77_werror_flag" ||
5391	 test ! -s conftest.err
5392       } && test -s conftest.$ac_objext; then
5393  ac_compiler_gnu=yes
5394else
5395  echo "$as_me: failed program was:" >&5
5396sed 's/^/| /' conftest.$ac_ext >&5
5397
5398	ac_compiler_gnu=no
5399fi
5400
5401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5403
5404fi
5405{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5406echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5407ac_ext=$ac_save_ext
5408ac_test_FFLAGS=${FFLAGS+set}
5409ac_save_FFLAGS=$FFLAGS
5410FFLAGS=
5411{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5412echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5413if test "${ac_cv_prog_f77_g+set}" = set; then
5414  echo $ECHO_N "(cached) $ECHO_C" >&6
5415else
5416  FFLAGS=-g
5417cat >conftest.$ac_ext <<_ACEOF
5418      program main
5419
5420      end
5421_ACEOF
5422rm -f conftest.$ac_objext
5423if { (ac_try="$ac_compile"
5424case "(($ac_try" in
5425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426  *) ac_try_echo=$ac_try;;
5427esac
5428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429  (eval "$ac_compile") 2>conftest.er1
5430  ac_status=$?
5431  grep -v '^ *+' conftest.er1 >conftest.err
5432  rm -f conftest.er1
5433  cat conftest.err >&5
5434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435  (exit $ac_status); } && {
5436	 test -z "$ac_f77_werror_flag" ||
5437	 test ! -s conftest.err
5438       } && test -s conftest.$ac_objext; then
5439  ac_cv_prog_f77_g=yes
5440else
5441  echo "$as_me: failed program was:" >&5
5442sed 's/^/| /' conftest.$ac_ext >&5
5443
5444	ac_cv_prog_f77_g=no
5445fi
5446
5447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448
5449fi
5450{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5451echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5452if test "$ac_test_FFLAGS" = set; then
5453  FFLAGS=$ac_save_FFLAGS
5454elif test $ac_cv_prog_f77_g = yes; then
5455  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5456    FFLAGS="-g -O2"
5457  else
5458    FFLAGS="-g"
5459  fi
5460else
5461  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5462    FFLAGS="-O2"
5463  else
5464    FFLAGS=
5465  fi
5466fi
5467
5468G77=`test $ac_compiler_gnu = yes && echo yes`
5469ac_ext=c
5470ac_cpp='$CPP $CPPFLAGS'
5471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474
5475
5476
5477# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5478
5479# find the maximum length of command line arguments
5480{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5481echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5482if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5483  echo $ECHO_N "(cached) $ECHO_C" >&6
5484else
5485    i=0
5486  teststring="ABCD"
5487
5488  case $build_os in
5489  msdosdjgpp*)
5490    # On DJGPP, this test can blow up pretty badly due to problems in libc
5491    # (any single argument exceeding 2000 bytes causes a buffer overrun
5492    # during glob expansion).  Even if it were fixed, the result of this
5493    # check would be larger than it should be.
5494    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5495    ;;
5496
5497  gnu*)
5498    # Under GNU Hurd, this test is not required because there is
5499    # no limit to the length of command line arguments.
5500    # Libtool will interpret -1 as no limit whatsoever
5501    lt_cv_sys_max_cmd_len=-1;
5502    ;;
5503
5504  cygwin* | mingw*)
5505    # On Win9x/ME, this test blows up -- it succeeds, but takes
5506    # about 5 minutes as the teststring grows exponentially.
5507    # Worse, since 9x/ME are not pre-emptively multitasking,
5508    # you end up with a "frozen" computer, even though with patience
5509    # the test eventually succeeds (with a max line length of 256k).
5510    # Instead, let's just punt: use the minimum linelength reported by
5511    # all of the supported platforms: 8192 (on NT/2K/XP).
5512    lt_cv_sys_max_cmd_len=8192;
5513    ;;
5514
5515  amigaos*)
5516    # On AmigaOS with pdksh, this test takes hours, literally.
5517    # So we just punt and use a minimum line length of 8192.
5518    lt_cv_sys_max_cmd_len=8192;
5519    ;;
5520
5521  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5522    # This has been around since 386BSD, at least.  Likely further.
5523    if test -x /sbin/sysctl; then
5524      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5525    elif test -x /usr/sbin/sysctl; then
5526      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5527    else
5528      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5529    fi
5530    # And add a safety zone
5531    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5532    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5533    ;;
5534
5535  interix*)
5536    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5537    lt_cv_sys_max_cmd_len=196608
5538    ;;
5539
5540  osf*)
5541    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5542    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5543    # nice to cause kernel panics so lets avoid the loop below.
5544    # First set a reasonable default.
5545    lt_cv_sys_max_cmd_len=16384
5546    #
5547    if test -x /sbin/sysconfig; then
5548      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5549        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5550      esac
5551    fi
5552    ;;
5553  sco3.2v5*)
5554    lt_cv_sys_max_cmd_len=102400
5555    ;;
5556  sysv5* | sco5v6* | sysv4.2uw2*)
5557    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5558    if test -n "$kargmax"; then
5559      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5560    else
5561      lt_cv_sys_max_cmd_len=32768
5562    fi
5563    ;;
5564  *)
5565    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5566    if test -n "$lt_cv_sys_max_cmd_len"; then
5567      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5568      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5569    else
5570      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5571      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5572	       = "XX$teststring") >/dev/null 2>&1 &&
5573	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
5574	      lt_cv_sys_max_cmd_len=$new_result &&
5575	      test $i != 17 # 1/2 MB should be enough
5576      do
5577        i=`expr $i + 1`
5578        teststring=$teststring$teststring
5579      done
5580      teststring=
5581      # Add a significant safety factor because C++ compilers can tack on massive
5582      # amounts of additional arguments before passing them to the linker.
5583      # It appears as though 1/2 is a usable value.
5584      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5585    fi
5586    ;;
5587  esac
5588
5589fi
5590
5591if test -n $lt_cv_sys_max_cmd_len ; then
5592  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5593echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5594else
5595  { echo "$as_me:$LINENO: result: none" >&5
5596echo "${ECHO_T}none" >&6; }
5597fi
5598
5599
5600
5601
5602
5603# Check for command to grab the raw symbol name followed by C symbol from nm.
5604{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5605echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5606if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5607  echo $ECHO_N "(cached) $ECHO_C" >&6
5608else
5609
5610# These are sane defaults that work on at least a few old systems.
5611# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5612
5613# Character class describing NM global symbol codes.
5614symcode='[BCDEGRST]'
5615
5616# Regexp to match symbols that can be accessed directly from C.
5617sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5618
5619# Transform an extracted symbol line into a proper C declaration
5620lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5621
5622# Transform an extracted symbol line into symbol name and symbol address
5623lt_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'"
5624
5625# Define system-specific variables.
5626case $host_os in
5627aix*)
5628  symcode='[BCDT]'
5629  ;;
5630cygwin* | mingw* | pw32*)
5631  symcode='[ABCDGISTW]'
5632  ;;
5633hpux*) # Its linker distinguishes data from code symbols
5634  if test "$host_cpu" = ia64; then
5635    symcode='[ABCDEGRST]'
5636  fi
5637  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5638  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'"
5639  ;;
5640linux* | k*bsd*-gnu)
5641  if test "$host_cpu" = ia64; then
5642    symcode='[ABCDGIRSTW]'
5643    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5644    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'"
5645  fi
5646  ;;
5647irix* | nonstopux*)
5648  symcode='[BCDEGRST]'
5649  ;;
5650osf*)
5651  symcode='[BCDEGQRST]'
5652  ;;
5653solaris*)
5654  symcode='[BDRT]'
5655  ;;
5656sco3.2v5*)
5657  symcode='[DT]'
5658  ;;
5659sysv4.2uw2*)
5660  symcode='[DT]'
5661  ;;
5662sysv5* | sco5v6* | unixware* | OpenUNIX*)
5663  symcode='[ABDT]'
5664  ;;
5665sysv4)
5666  symcode='[DFNSTU]'
5667  ;;
5668esac
5669
5670# Handle CRLF in mingw tool chain
5671opt_cr=
5672case $build_os in
5673mingw*)
5674  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5675  ;;
5676esac
5677
5678# If we're using GNU nm, then use its standard symbol codes.
5679case `$NM -V 2>&1` in
5680*GNU* | *'with BFD'*)
5681  symcode='[ABCDGIRSTW]' ;;
5682esac
5683
5684# Try without a prefix undercore, then with it.
5685for ac_symprfx in "" "_"; do
5686
5687  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5688  symxfrm="\\1 $ac_symprfx\\2 \\2"
5689
5690  # Write the raw and C identifiers.
5691  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5692
5693  # Check to see that the pipe works correctly.
5694  pipe_works=no
5695
5696  rm -f conftest*
5697  cat > conftest.$ac_ext <<EOF
5698#ifdef __cplusplus
5699extern "C" {
5700#endif
5701char nm_test_var;
5702void nm_test_func(){}
5703#ifdef __cplusplus
5704}
5705#endif
5706int main(){nm_test_var='a';nm_test_func();return(0);}
5707EOF
5708
5709  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710  (eval $ac_compile) 2>&5
5711  ac_status=$?
5712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713  (exit $ac_status); }; then
5714    # Now try to grab the symbols.
5715    nlist=conftest.nm
5716    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5717  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5718  ac_status=$?
5719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720  (exit $ac_status); } && test -s "$nlist"; then
5721      # Try sorting and uniquifying the output.
5722      if sort "$nlist" | uniq > "$nlist"T; then
5723	mv -f "$nlist"T "$nlist"
5724      else
5725	rm -f "$nlist"T
5726      fi
5727
5728      # Make sure that we snagged all the symbols we need.
5729      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5730	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5731	  cat <<EOF > conftest.$ac_ext
5732#ifdef __cplusplus
5733extern "C" {
5734#endif
5735
5736EOF
5737	  # Now generate the symbol file.
5738	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5739
5740	  cat <<EOF >> conftest.$ac_ext
5741#if defined (__STDC__) && __STDC__
5742# define lt_ptr_t void *
5743#else
5744# define lt_ptr_t char *
5745# define const
5746#endif
5747
5748/* The mapping between symbol names and symbols. */
5749const struct {
5750  const char *name;
5751  lt_ptr_t address;
5752}
5753lt_preloaded_symbols[] =
5754{
5755EOF
5756	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5757	  cat <<\EOF >> conftest.$ac_ext
5758  {0, (lt_ptr_t) 0}
5759};
5760
5761#ifdef __cplusplus
5762}
5763#endif
5764EOF
5765	  # Now try linking the two files.
5766	  mv conftest.$ac_objext conftstm.$ac_objext
5767	  lt_save_LIBS="$LIBS"
5768	  lt_save_CFLAGS="$CFLAGS"
5769	  LIBS="conftstm.$ac_objext"
5770	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5771	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5772  (eval $ac_link) 2>&5
5773  ac_status=$?
5774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5776	    pipe_works=yes
5777	  fi
5778	  LIBS="$lt_save_LIBS"
5779	  CFLAGS="$lt_save_CFLAGS"
5780	else
5781	  echo "cannot find nm_test_func in $nlist" >&5
5782	fi
5783      else
5784	echo "cannot find nm_test_var in $nlist" >&5
5785      fi
5786    else
5787      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5788    fi
5789  else
5790    echo "$progname: failed program was:" >&5
5791    cat conftest.$ac_ext >&5
5792  fi
5793  rm -f conftest* conftst*
5794
5795  # Do not use the global_symbol_pipe unless it works.
5796  if test "$pipe_works" = yes; then
5797    break
5798  else
5799    lt_cv_sys_global_symbol_pipe=
5800  fi
5801done
5802
5803fi
5804
5805if test -z "$lt_cv_sys_global_symbol_pipe"; then
5806  lt_cv_sys_global_symbol_to_cdecl=
5807fi
5808if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5809  { echo "$as_me:$LINENO: result: failed" >&5
5810echo "${ECHO_T}failed" >&6; }
5811else
5812  { echo "$as_me:$LINENO: result: ok" >&5
5813echo "${ECHO_T}ok" >&6; }
5814fi
5815
5816{ echo "$as_me:$LINENO: checking for objdir" >&5
5817echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5818if test "${lt_cv_objdir+set}" = set; then
5819  echo $ECHO_N "(cached) $ECHO_C" >&6
5820else
5821  rm -f .libs 2>/dev/null
5822mkdir .libs 2>/dev/null
5823if test -d .libs; then
5824  lt_cv_objdir=.libs
5825else
5826  # MS-DOS does not allow filenames that begin with a dot.
5827  lt_cv_objdir=_libs
5828fi
5829rmdir .libs 2>/dev/null
5830fi
5831{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5832echo "${ECHO_T}$lt_cv_objdir" >&6; }
5833objdir=$lt_cv_objdir
5834
5835
5836
5837
5838
5839case $host_os in
5840aix3*)
5841  # AIX sometimes has problems with the GCC collect2 program.  For some
5842  # reason, if we set the COLLECT_NAMES environment variable, the problems
5843  # vanish in a puff of smoke.
5844  if test "X${COLLECT_NAMES+set}" != Xset; then
5845    COLLECT_NAMES=
5846    export COLLECT_NAMES
5847  fi
5848  ;;
5849esac
5850
5851# Sed substitution that helps us do robust quoting.  It backslashifies
5852# metacharacters that are still active within double-quoted strings.
5853Xsed='sed -e 1s/^X//'
5854sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5855
5856# Same as above, but do not quote variable references.
5857double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5858
5859# Sed substitution to delay expansion of an escaped shell variable in a
5860# double_quote_subst'ed string.
5861delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5862
5863# Sed substitution to avoid accidental globbing in evaled expressions
5864no_glob_subst='s/\*/\\\*/g'
5865
5866# Constants:
5867rm="rm -f"
5868
5869# Global variables:
5870default_ofile=libtool
5871can_build_shared=yes
5872
5873# All known linkers require a `.a' archive for static linking (except MSVC,
5874# which needs '.lib').
5875libext=a
5876ltmain="$ac_aux_dir/ltmain.sh"
5877ofile="$default_ofile"
5878with_gnu_ld="$lt_cv_prog_gnu_ld"
5879
5880if test -n "$ac_tool_prefix"; then
5881  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5882set dummy ${ac_tool_prefix}ar; ac_word=$2
5883{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885if test "${ac_cv_prog_AR+set}" = set; then
5886  echo $ECHO_N "(cached) $ECHO_C" >&6
5887else
5888  if test -n "$AR"; then
5889  ac_cv_prog_AR="$AR" # Let the user override the test.
5890else
5891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892for as_dir in $PATH
5893do
5894  IFS=$as_save_IFS
5895  test -z "$as_dir" && as_dir=.
5896  for ac_exec_ext in '' $ac_executable_extensions; do
5897  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898    ac_cv_prog_AR="${ac_tool_prefix}ar"
5899    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900    break 2
5901  fi
5902done
5903done
5904IFS=$as_save_IFS
5905
5906fi
5907fi
5908AR=$ac_cv_prog_AR
5909if test -n "$AR"; then
5910  { echo "$as_me:$LINENO: result: $AR" >&5
5911echo "${ECHO_T}$AR" >&6; }
5912else
5913  { echo "$as_me:$LINENO: result: no" >&5
5914echo "${ECHO_T}no" >&6; }
5915fi
5916
5917
5918fi
5919if test -z "$ac_cv_prog_AR"; then
5920  ac_ct_AR=$AR
5921  # Extract the first word of "ar", so it can be a program name with args.
5922set dummy ar; ac_word=$2
5923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5926  echo $ECHO_N "(cached) $ECHO_C" >&6
5927else
5928  if test -n "$ac_ct_AR"; then
5929  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5930else
5931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932for as_dir in $PATH
5933do
5934  IFS=$as_save_IFS
5935  test -z "$as_dir" && as_dir=.
5936  for ac_exec_ext in '' $ac_executable_extensions; do
5937  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938    ac_cv_prog_ac_ct_AR="ar"
5939    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940    break 2
5941  fi
5942done
5943done
5944IFS=$as_save_IFS
5945
5946fi
5947fi
5948ac_ct_AR=$ac_cv_prog_ac_ct_AR
5949if test -n "$ac_ct_AR"; then
5950  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5951echo "${ECHO_T}$ac_ct_AR" >&6; }
5952else
5953  { echo "$as_me:$LINENO: result: no" >&5
5954echo "${ECHO_T}no" >&6; }
5955fi
5956
5957  if test "x$ac_ct_AR" = x; then
5958    AR="false"
5959  else
5960    case $cross_compiling:$ac_tool_warned in
5961yes:)
5962{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5963whose name does not start with the host triplet.  If you think this
5964configuration is useful to you, please write to autoconf@gnu.org." >&5
5965echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5966whose name does not start with the host triplet.  If you think this
5967configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5968ac_tool_warned=yes ;;
5969esac
5970    AR=$ac_ct_AR
5971  fi
5972else
5973  AR="$ac_cv_prog_AR"
5974fi
5975
5976if test -n "$ac_tool_prefix"; then
5977  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5978set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5981if test "${ac_cv_prog_RANLIB+set}" = set; then
5982  echo $ECHO_N "(cached) $ECHO_C" >&6
5983else
5984  if test -n "$RANLIB"; then
5985  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5986else
5987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988for as_dir in $PATH
5989do
5990  IFS=$as_save_IFS
5991  test -z "$as_dir" && as_dir=.
5992  for ac_exec_ext in '' $ac_executable_extensions; do
5993  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5994    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996    break 2
5997  fi
5998done
5999done
6000IFS=$as_save_IFS
6001
6002fi
6003fi
6004RANLIB=$ac_cv_prog_RANLIB
6005if test -n "$RANLIB"; then
6006  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6007echo "${ECHO_T}$RANLIB" >&6; }
6008else
6009  { echo "$as_me:$LINENO: result: no" >&5
6010echo "${ECHO_T}no" >&6; }
6011fi
6012
6013
6014fi
6015if test -z "$ac_cv_prog_RANLIB"; then
6016  ac_ct_RANLIB=$RANLIB
6017  # Extract the first word of "ranlib", so it can be a program name with args.
6018set dummy ranlib; ac_word=$2
6019{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6021if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6022  echo $ECHO_N "(cached) $ECHO_C" >&6
6023else
6024  if test -n "$ac_ct_RANLIB"; then
6025  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6026else
6027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028for as_dir in $PATH
6029do
6030  IFS=$as_save_IFS
6031  test -z "$as_dir" && as_dir=.
6032  for ac_exec_ext in '' $ac_executable_extensions; do
6033  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6034    ac_cv_prog_ac_ct_RANLIB="ranlib"
6035    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036    break 2
6037  fi
6038done
6039done
6040IFS=$as_save_IFS
6041
6042fi
6043fi
6044ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6045if test -n "$ac_ct_RANLIB"; then
6046  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6047echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6048else
6049  { echo "$as_me:$LINENO: result: no" >&5
6050echo "${ECHO_T}no" >&6; }
6051fi
6052
6053  if test "x$ac_ct_RANLIB" = x; then
6054    RANLIB=":"
6055  else
6056    case $cross_compiling:$ac_tool_warned in
6057yes:)
6058{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6059whose name does not start with the host triplet.  If you think this
6060configuration is useful to you, please write to autoconf@gnu.org." >&5
6061echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6062whose name does not start with the host triplet.  If you think this
6063configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6064ac_tool_warned=yes ;;
6065esac
6066    RANLIB=$ac_ct_RANLIB
6067  fi
6068else
6069  RANLIB="$ac_cv_prog_RANLIB"
6070fi
6071
6072if test -n "$ac_tool_prefix"; then
6073  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6074set dummy ${ac_tool_prefix}strip; ac_word=$2
6075{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6077if test "${ac_cv_prog_STRIP+set}" = set; then
6078  echo $ECHO_N "(cached) $ECHO_C" >&6
6079else
6080  if test -n "$STRIP"; then
6081  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6082else
6083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084for as_dir in $PATH
6085do
6086  IFS=$as_save_IFS
6087  test -z "$as_dir" && as_dir=.
6088  for ac_exec_ext in '' $ac_executable_extensions; do
6089  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6090    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6091    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092    break 2
6093  fi
6094done
6095done
6096IFS=$as_save_IFS
6097
6098fi
6099fi
6100STRIP=$ac_cv_prog_STRIP
6101if test -n "$STRIP"; then
6102  { echo "$as_me:$LINENO: result: $STRIP" >&5
6103echo "${ECHO_T}$STRIP" >&6; }
6104else
6105  { echo "$as_me:$LINENO: result: no" >&5
6106echo "${ECHO_T}no" >&6; }
6107fi
6108
6109
6110fi
6111if test -z "$ac_cv_prog_STRIP"; then
6112  ac_ct_STRIP=$STRIP
6113  # Extract the first word of "strip", so it can be a program name with args.
6114set dummy strip; ac_word=$2
6115{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6117if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6118  echo $ECHO_N "(cached) $ECHO_C" >&6
6119else
6120  if test -n "$ac_ct_STRIP"; then
6121  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6122else
6123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124for as_dir in $PATH
6125do
6126  IFS=$as_save_IFS
6127  test -z "$as_dir" && as_dir=.
6128  for ac_exec_ext in '' $ac_executable_extensions; do
6129  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130    ac_cv_prog_ac_ct_STRIP="strip"
6131    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132    break 2
6133  fi
6134done
6135done
6136IFS=$as_save_IFS
6137
6138fi
6139fi
6140ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6141if test -n "$ac_ct_STRIP"; then
6142  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6143echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6144else
6145  { echo "$as_me:$LINENO: result: no" >&5
6146echo "${ECHO_T}no" >&6; }
6147fi
6148
6149  if test "x$ac_ct_STRIP" = x; then
6150    STRIP=":"
6151  else
6152    case $cross_compiling:$ac_tool_warned in
6153yes:)
6154{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6155whose name does not start with the host triplet.  If you think this
6156configuration is useful to you, please write to autoconf@gnu.org." >&5
6157echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6158whose name does not start with the host triplet.  If you think this
6159configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6160ac_tool_warned=yes ;;
6161esac
6162    STRIP=$ac_ct_STRIP
6163  fi
6164else
6165  STRIP="$ac_cv_prog_STRIP"
6166fi
6167
6168
6169old_CC="$CC"
6170old_CFLAGS="$CFLAGS"
6171
6172# Set sane defaults for various variables
6173test -z "$AR" && AR=ar
6174test -z "$AR_FLAGS" && AR_FLAGS=cru
6175test -z "$AS" && AS=as
6176test -z "$CC" && CC=cc
6177test -z "$LTCC" && LTCC=$CC
6178test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6179test -z "$DLLTOOL" && DLLTOOL=dlltool
6180test -z "$LD" && LD=ld
6181test -z "$LN_S" && LN_S="ln -s"
6182test -z "$MAGIC_CMD" && MAGIC_CMD=file
6183test -z "$NM" && NM=nm
6184test -z "$SED" && SED=sed
6185test -z "$OBJDUMP" && OBJDUMP=objdump
6186test -z "$RANLIB" && RANLIB=:
6187test -z "$STRIP" && STRIP=:
6188test -z "$ac_objext" && ac_objext=o
6189
6190# Determine commands to create old-style static archives.
6191old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6192old_postinstall_cmds='chmod 644 $oldlib'
6193old_postuninstall_cmds=
6194
6195if test -n "$RANLIB"; then
6196  case $host_os in
6197  openbsd*)
6198    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6199    ;;
6200  *)
6201    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6202    ;;
6203  esac
6204  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6205fi
6206
6207for cc_temp in $compiler""; do
6208  case $cc_temp in
6209    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6210    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6211    \-*) ;;
6212    *) break;;
6213  esac
6214done
6215cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6216
6217
6218# Only perform the check for file, if the check method requires it
6219case $deplibs_check_method in
6220file_magic*)
6221  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6222    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6223echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6224if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6225  echo $ECHO_N "(cached) $ECHO_C" >&6
6226else
6227  case $MAGIC_CMD in
6228[\\/*] |  ?:[\\/]*)
6229  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6230  ;;
6231*)
6232  lt_save_MAGIC_CMD="$MAGIC_CMD"
6233  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6234  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6235  for ac_dir in $ac_dummy; do
6236    IFS="$lt_save_ifs"
6237    test -z "$ac_dir" && ac_dir=.
6238    if test -f $ac_dir/${ac_tool_prefix}file; then
6239      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6240      if test -n "$file_magic_test_file"; then
6241	case $deplibs_check_method in
6242	"file_magic "*)
6243	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6244	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6245	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6246	    $EGREP "$file_magic_regex" > /dev/null; then
6247	    :
6248	  else
6249	    cat <<EOF 1>&2
6250
6251*** Warning: the command libtool uses to detect shared libraries,
6252*** $file_magic_cmd, produces output that libtool cannot recognize.
6253*** The result is that libtool may fail to recognize shared libraries
6254*** as such.  This will affect the creation of libtool libraries that
6255*** depend on shared libraries, but programs linked with such libtool
6256*** libraries will work regardless of this problem.  Nevertheless, you
6257*** may want to report the problem to your system manager and/or to
6258*** bug-libtool@gnu.org
6259
6260EOF
6261	  fi ;;
6262	esac
6263      fi
6264      break
6265    fi
6266  done
6267  IFS="$lt_save_ifs"
6268  MAGIC_CMD="$lt_save_MAGIC_CMD"
6269  ;;
6270esac
6271fi
6272
6273MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6274if test -n "$MAGIC_CMD"; then
6275  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6276echo "${ECHO_T}$MAGIC_CMD" >&6; }
6277else
6278  { echo "$as_me:$LINENO: result: no" >&5
6279echo "${ECHO_T}no" >&6; }
6280fi
6281
6282if test -z "$lt_cv_path_MAGIC_CMD"; then
6283  if test -n "$ac_tool_prefix"; then
6284    { echo "$as_me:$LINENO: checking for file" >&5
6285echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6286if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6287  echo $ECHO_N "(cached) $ECHO_C" >&6
6288else
6289  case $MAGIC_CMD in
6290[\\/*] |  ?:[\\/]*)
6291  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6292  ;;
6293*)
6294  lt_save_MAGIC_CMD="$MAGIC_CMD"
6295  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6296  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6297  for ac_dir in $ac_dummy; do
6298    IFS="$lt_save_ifs"
6299    test -z "$ac_dir" && ac_dir=.
6300    if test -f $ac_dir/file; then
6301      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6302      if test -n "$file_magic_test_file"; then
6303	case $deplibs_check_method in
6304	"file_magic "*)
6305	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6306	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6307	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6308	    $EGREP "$file_magic_regex" > /dev/null; then
6309	    :
6310	  else
6311	    cat <<EOF 1>&2
6312
6313*** Warning: the command libtool uses to detect shared libraries,
6314*** $file_magic_cmd, produces output that libtool cannot recognize.
6315*** The result is that libtool may fail to recognize shared libraries
6316*** as such.  This will affect the creation of libtool libraries that
6317*** depend on shared libraries, but programs linked with such libtool
6318*** libraries will work regardless of this problem.  Nevertheless, you
6319*** may want to report the problem to your system manager and/or to
6320*** bug-libtool@gnu.org
6321
6322EOF
6323	  fi ;;
6324	esac
6325      fi
6326      break
6327    fi
6328  done
6329  IFS="$lt_save_ifs"
6330  MAGIC_CMD="$lt_save_MAGIC_CMD"
6331  ;;
6332esac
6333fi
6334
6335MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6336if test -n "$MAGIC_CMD"; then
6337  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6338echo "${ECHO_T}$MAGIC_CMD" >&6; }
6339else
6340  { echo "$as_me:$LINENO: result: no" >&5
6341echo "${ECHO_T}no" >&6; }
6342fi
6343
6344  else
6345    MAGIC_CMD=:
6346  fi
6347fi
6348
6349  fi
6350  ;;
6351esac
6352
6353enable_dlopen=no
6354enable_win32_dll=no
6355
6356# Check whether --enable-libtool-lock was given.
6357if test "${enable_libtool_lock+set}" = set; then
6358  enableval=$enable_libtool_lock;
6359fi
6360
6361test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6362
6363
6364# Check whether --with-pic was given.
6365if test "${with_pic+set}" = set; then
6366  withval=$with_pic; pic_mode="$withval"
6367else
6368  pic_mode=default
6369fi
6370
6371test -z "$pic_mode" && pic_mode=default
6372
6373# Use C for the default configuration in the libtool script
6374tagname=
6375lt_save_CC="$CC"
6376ac_ext=c
6377ac_cpp='$CPP $CPPFLAGS'
6378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381
6382
6383# Source file extension for C test sources.
6384ac_ext=c
6385
6386# Object file extension for compiled C test sources.
6387objext=o
6388objext=$objext
6389
6390# Code to be used in simple compile tests
6391lt_simple_compile_test_code="int some_variable = 0;"
6392
6393# Code to be used in simple link tests
6394lt_simple_link_test_code='int main(){return(0);}'
6395
6396
6397# If no C compiler was specified, use CC.
6398LTCC=${LTCC-"$CC"}
6399
6400# If no C compiler flags were specified, use CFLAGS.
6401LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6402
6403# Allow CC to be a program name with arguments.
6404compiler=$CC
6405
6406
6407# save warnings/boilerplate of simple test code
6408ac_outfile=conftest.$ac_objext
6409echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6410eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6411_lt_compiler_boilerplate=`cat conftest.err`
6412$rm conftest*
6413
6414ac_outfile=conftest.$ac_objext
6415echo "$lt_simple_link_test_code" >conftest.$ac_ext
6416eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6417_lt_linker_boilerplate=`cat conftest.err`
6418$rm conftest*
6419
6420
6421
6422lt_prog_compiler_no_builtin_flag=
6423
6424if test "$GCC" = yes; then
6425  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6426
6427
6428{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6429echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6430if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6431  echo $ECHO_N "(cached) $ECHO_C" >&6
6432else
6433  lt_cv_prog_compiler_rtti_exceptions=no
6434  ac_outfile=conftest.$ac_objext
6435   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6436   lt_compiler_flag="-fno-rtti -fno-exceptions"
6437   # Insert the option either (1) after the last *FLAGS variable, or
6438   # (2) before a word containing "conftest.", or (3) at the end.
6439   # Note that $ac_compile itself does not contain backslashes and begins
6440   # with a dollar sign (not a hyphen), so the echo should work correctly.
6441   # The option is referenced via a variable to avoid confusing sed.
6442   lt_compile=`echo "$ac_compile" | $SED \
6443   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6444   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6445   -e 's:$: $lt_compiler_flag:'`
6446   (eval echo "\"\$as_me:6446: $lt_compile\"" >&5)
6447   (eval "$lt_compile" 2>conftest.err)
6448   ac_status=$?
6449   cat conftest.err >&5
6450   echo "$as_me:6450: \$? = $ac_status" >&5
6451   if (exit $ac_status) && test -s "$ac_outfile"; then
6452     # The compiler can only warn and ignore the option if not recognized
6453     # So say no if there are warnings other than the usual output.
6454     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6455     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6456     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6457       lt_cv_prog_compiler_rtti_exceptions=yes
6458     fi
6459   fi
6460   $rm conftest*
6461
6462fi
6463{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6464echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6465
6466if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6467    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6468else
6469    :
6470fi
6471
6472fi
6473
6474lt_prog_compiler_wl=
6475lt_prog_compiler_pic=
6476lt_prog_compiler_static=
6477
6478{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6479echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6480
6481  if test "$GCC" = yes; then
6482    lt_prog_compiler_wl='-Wl,'
6483    lt_prog_compiler_static='-static'
6484
6485    case $host_os in
6486      aix*)
6487      # All AIX code is PIC.
6488      if test "$host_cpu" = ia64; then
6489	# AIX 5 now supports IA64 processor
6490	lt_prog_compiler_static='-Bstatic'
6491      fi
6492      ;;
6493
6494    amigaos*)
6495      # FIXME: we need at least 68020 code to build shared libraries, but
6496      # adding the `-m68020' flag to GCC prevents building anything better,
6497      # like `-m68040'.
6498      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6499      ;;
6500
6501    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6502      # PIC is the default for these OSes.
6503      ;;
6504
6505    mingw* | cygwin* | pw32* | os2*)
6506      # This hack is so that the source file can tell whether it is being
6507      # built for inclusion in a dll (and should export symbols for example).
6508      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6509      # (--disable-auto-import) libraries
6510      lt_prog_compiler_pic='-DDLL_EXPORT'
6511      ;;
6512
6513    darwin* | rhapsody*)
6514      # PIC is the default on this platform
6515      # Common symbols not allowed in MH_DYLIB files
6516      lt_prog_compiler_pic='-fno-common'
6517      ;;
6518
6519    interix[3-9]*)
6520      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6521      # Instead, we relocate shared libraries at runtime.
6522      ;;
6523
6524    msdosdjgpp*)
6525      # Just because we use GCC doesn't mean we suddenly get shared libraries
6526      # on systems that don't support them.
6527      lt_prog_compiler_can_build_shared=no
6528      enable_shared=no
6529      ;;
6530
6531    sysv4*MP*)
6532      if test -d /usr/nec; then
6533	lt_prog_compiler_pic=-Kconform_pic
6534      fi
6535      ;;
6536
6537    hpux*)
6538      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6539      # not for PA HP-UX.
6540      case $host_cpu in
6541      hppa*64*|ia64*)
6542	# +Z the default
6543	;;
6544      *)
6545	lt_prog_compiler_pic='-fPIC'
6546	;;
6547      esac
6548      ;;
6549
6550    *)
6551      lt_prog_compiler_pic='-fPIC'
6552      ;;
6553    esac
6554  else
6555    # PORTME Check for flag to pass linker flags through the system compiler.
6556    case $host_os in
6557    aix*)
6558      lt_prog_compiler_wl='-Wl,'
6559      if test "$host_cpu" = ia64; then
6560	# AIX 5 now supports IA64 processor
6561	lt_prog_compiler_static='-Bstatic'
6562      else
6563	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6564      fi
6565      ;;
6566      darwin*)
6567        # PIC is the default on this platform
6568        # Common symbols not allowed in MH_DYLIB files
6569       case $cc_basename in
6570         xlc*)
6571         lt_prog_compiler_pic='-qnocommon'
6572         lt_prog_compiler_wl='-Wl,'
6573         ;;
6574       esac
6575       ;;
6576
6577    mingw* | cygwin* | pw32* | os2*)
6578      # This hack is so that the source file can tell whether it is being
6579      # built for inclusion in a dll (and should export symbols for example).
6580      lt_prog_compiler_pic='-DDLL_EXPORT'
6581      ;;
6582
6583    hpux9* | hpux10* | hpux11*)
6584      lt_prog_compiler_wl='-Wl,'
6585      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6586      # not for PA HP-UX.
6587      case $host_cpu in
6588      hppa*64*|ia64*)
6589	# +Z the default
6590	;;
6591      *)
6592	lt_prog_compiler_pic='+Z'
6593	;;
6594      esac
6595      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6596      lt_prog_compiler_static='${wl}-a ${wl}archive'
6597      ;;
6598
6599    irix5* | irix6* | nonstopux*)
6600      lt_prog_compiler_wl='-Wl,'
6601      # PIC (with -KPIC) is the default.
6602      lt_prog_compiler_static='-non_shared'
6603      ;;
6604
6605    newsos6)
6606      lt_prog_compiler_pic='-KPIC'
6607      lt_prog_compiler_static='-Bstatic'
6608      ;;
6609
6610    linux* | k*bsd*-gnu)
6611      case $cc_basename in
6612      icc* | ecc*)
6613	lt_prog_compiler_wl='-Wl,'
6614	lt_prog_compiler_pic='-KPIC'
6615	lt_prog_compiler_static='-static'
6616        ;;
6617      pgcc* | pgf77* | pgf90* | pgf95*)
6618        # Portland Group compilers (*not* the Pentium gcc compiler,
6619	# which looks to be a dead project)
6620	lt_prog_compiler_wl='-Wl,'
6621	lt_prog_compiler_pic='-fpic'
6622	lt_prog_compiler_static='-Bstatic'
6623        ;;
6624      ccc*)
6625        lt_prog_compiler_wl='-Wl,'
6626        # All Alpha code is PIC.
6627        lt_prog_compiler_static='-non_shared'
6628        ;;
6629      *)
6630        case `$CC -V 2>&1 | sed 5q` in
6631	*Sun\ C*)
6632	  # Sun C 5.9
6633	  lt_prog_compiler_pic='-KPIC'
6634	  lt_prog_compiler_static='-Bstatic'
6635	  lt_prog_compiler_wl='-Wl,'
6636	  ;;
6637	*Sun\ F*)
6638	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
6639	  lt_prog_compiler_pic='-KPIC'
6640	  lt_prog_compiler_static='-Bstatic'
6641	  lt_prog_compiler_wl=''
6642	  ;;
6643	esac
6644	;;
6645      esac
6646      ;;
6647
6648    osf3* | osf4* | osf5*)
6649      lt_prog_compiler_wl='-Wl,'
6650      # All OSF/1 code is PIC.
6651      lt_prog_compiler_static='-non_shared'
6652      ;;
6653
6654    rdos*)
6655      lt_prog_compiler_static='-non_shared'
6656      ;;
6657
6658    solaris*)
6659      lt_prog_compiler_pic='-KPIC'
6660      lt_prog_compiler_static='-Bstatic'
6661      case $cc_basename in
6662      f77* | f90* | f95*)
6663	lt_prog_compiler_wl='-Qoption ld ';;
6664      *)
6665	lt_prog_compiler_wl='-Wl,';;
6666      esac
6667      ;;
6668
6669    sunos4*)
6670      lt_prog_compiler_wl='-Qoption ld '
6671      lt_prog_compiler_pic='-PIC'
6672      lt_prog_compiler_static='-Bstatic'
6673      ;;
6674
6675    sysv4 | sysv4.2uw2* | sysv4.3*)
6676      lt_prog_compiler_wl='-Wl,'
6677      lt_prog_compiler_pic='-KPIC'
6678      lt_prog_compiler_static='-Bstatic'
6679      ;;
6680
6681    sysv4*MP*)
6682      if test -d /usr/nec ;then
6683	lt_prog_compiler_pic='-Kconform_pic'
6684	lt_prog_compiler_static='-Bstatic'
6685      fi
6686      ;;
6687
6688    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6689      lt_prog_compiler_wl='-Wl,'
6690      lt_prog_compiler_pic='-KPIC'
6691      lt_prog_compiler_static='-Bstatic'
6692      ;;
6693
6694    unicos*)
6695      lt_prog_compiler_wl='-Wl,'
6696      lt_prog_compiler_can_build_shared=no
6697      ;;
6698
6699    uts4*)
6700      lt_prog_compiler_pic='-pic'
6701      lt_prog_compiler_static='-Bstatic'
6702      ;;
6703
6704    *)
6705      lt_prog_compiler_can_build_shared=no
6706      ;;
6707    esac
6708  fi
6709
6710{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6711echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6712
6713#
6714# Check to make sure the PIC flag actually works.
6715#
6716if test -n "$lt_prog_compiler_pic"; then
6717
6718{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6719echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6720if test "${lt_prog_compiler_pic_works+set}" = set; then
6721  echo $ECHO_N "(cached) $ECHO_C" >&6
6722else
6723  lt_prog_compiler_pic_works=no
6724  ac_outfile=conftest.$ac_objext
6725   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6726   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6727   # Insert the option either (1) after the last *FLAGS variable, or
6728   # (2) before a word containing "conftest.", or (3) at the end.
6729   # Note that $ac_compile itself does not contain backslashes and begins
6730   # with a dollar sign (not a hyphen), so the echo should work correctly.
6731   # The option is referenced via a variable to avoid confusing sed.
6732   lt_compile=`echo "$ac_compile" | $SED \
6733   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6734   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6735   -e 's:$: $lt_compiler_flag:'`
6736   (eval echo "\"\$as_me:6736: $lt_compile\"" >&5)
6737   (eval "$lt_compile" 2>conftest.err)
6738   ac_status=$?
6739   cat conftest.err >&5
6740   echo "$as_me:6740: \$? = $ac_status" >&5
6741   if (exit $ac_status) && test -s "$ac_outfile"; then
6742     # The compiler can only warn and ignore the option if not recognized
6743     # So say no if there are warnings other than the usual output.
6744     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6745     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6746     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6747       lt_prog_compiler_pic_works=yes
6748     fi
6749   fi
6750   $rm conftest*
6751
6752fi
6753{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6754echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6755
6756if test x"$lt_prog_compiler_pic_works" = xyes; then
6757    case $lt_prog_compiler_pic in
6758     "" | " "*) ;;
6759     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6760     esac
6761else
6762    lt_prog_compiler_pic=
6763     lt_prog_compiler_can_build_shared=no
6764fi
6765
6766fi
6767case $host_os in
6768  # For platforms which do not support PIC, -DPIC is meaningless:
6769  *djgpp*)
6770    lt_prog_compiler_pic=
6771    ;;
6772  *)
6773    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6774    ;;
6775esac
6776
6777#
6778# Check to make sure the static flag actually works.
6779#
6780wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6781{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6782echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6783if test "${lt_prog_compiler_static_works+set}" = set; then
6784  echo $ECHO_N "(cached) $ECHO_C" >&6
6785else
6786  lt_prog_compiler_static_works=no
6787   save_LDFLAGS="$LDFLAGS"
6788   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6789   echo "$lt_simple_link_test_code" > conftest.$ac_ext
6790   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6791     # The linker can only warn and ignore the option if not recognized
6792     # So say no if there are warnings
6793     if test -s conftest.err; then
6794       # Append any errors to the config.log.
6795       cat conftest.err 1>&5
6796       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6797       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6798       if diff conftest.exp conftest.er2 >/dev/null; then
6799         lt_prog_compiler_static_works=yes
6800       fi
6801     else
6802       lt_prog_compiler_static_works=yes
6803     fi
6804   fi
6805   $rm conftest*
6806   LDFLAGS="$save_LDFLAGS"
6807
6808fi
6809{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6810echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6811
6812if test x"$lt_prog_compiler_static_works" = xyes; then
6813    :
6814else
6815    lt_prog_compiler_static=
6816fi
6817
6818
6819{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6820echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6821if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6822  echo $ECHO_N "(cached) $ECHO_C" >&6
6823else
6824  lt_cv_prog_compiler_c_o=no
6825   $rm -r conftest 2>/dev/null
6826   mkdir conftest
6827   cd conftest
6828   mkdir out
6829   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6830
6831   lt_compiler_flag="-o out/conftest2.$ac_objext"
6832   # Insert the option either (1) after the last *FLAGS variable, or
6833   # (2) before a word containing "conftest.", or (3) at the end.
6834   # Note that $ac_compile itself does not contain backslashes and begins
6835   # with a dollar sign (not a hyphen), so the echo should work correctly.
6836   lt_compile=`echo "$ac_compile" | $SED \
6837   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6838   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6839   -e 's:$: $lt_compiler_flag:'`
6840   (eval echo "\"\$as_me:6840: $lt_compile\"" >&5)
6841   (eval "$lt_compile" 2>out/conftest.err)
6842   ac_status=$?
6843   cat out/conftest.err >&5
6844   echo "$as_me:6844: \$? = $ac_status" >&5
6845   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6846   then
6847     # The compiler can only warn and ignore the option if not recognized
6848     # So say no if there are warnings
6849     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6850     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6851     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6852       lt_cv_prog_compiler_c_o=yes
6853     fi
6854   fi
6855   chmod u+w . 2>&5
6856   $rm conftest*
6857   # SGI C++ compiler will create directory out/ii_files/ for
6858   # template instantiation
6859   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6860   $rm out/* && rmdir out
6861   cd ..
6862   rmdir conftest
6863   $rm conftest*
6864
6865fi
6866{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6867echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6868
6869
6870hard_links="nottested"
6871if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6872  # do not overwrite the value of need_locks provided by the user
6873  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6874echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6875  hard_links=yes
6876  $rm conftest*
6877  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6878  touch conftest.a
6879  ln conftest.a conftest.b 2>&5 || hard_links=no
6880  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6881  { echo "$as_me:$LINENO: result: $hard_links" >&5
6882echo "${ECHO_T}$hard_links" >&6; }
6883  if test "$hard_links" = no; then
6884    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6885echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6886    need_locks=warn
6887  fi
6888else
6889  need_locks=no
6890fi
6891
6892{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6893echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6894
6895  runpath_var=
6896  allow_undefined_flag=
6897  enable_shared_with_static_runtimes=no
6898  archive_cmds=
6899  archive_expsym_cmds=
6900  old_archive_From_new_cmds=
6901  old_archive_from_expsyms_cmds=
6902  export_dynamic_flag_spec=
6903  whole_archive_flag_spec=
6904  thread_safe_flag_spec=
6905  hardcode_libdir_flag_spec=
6906  hardcode_libdir_flag_spec_ld=
6907  hardcode_libdir_separator=
6908  hardcode_direct=no
6909  hardcode_minus_L=no
6910  hardcode_shlibpath_var=unsupported
6911  link_all_deplibs=unknown
6912  hardcode_automatic=no
6913  module_cmds=
6914  module_expsym_cmds=
6915  always_export_symbols=no
6916  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6917  # include_expsyms should be a list of space-separated symbols to be *always*
6918  # included in the symbol list
6919  include_expsyms=
6920  # exclude_expsyms can be an extended regexp of symbols to exclude
6921  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6922  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6923  # as well as any symbol that contains `d'.
6924  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6925  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6926  # platforms (ab)use it in PIC code, but their linkers get confused if
6927  # the symbol is explicitly referenced.  Since portable code cannot
6928  # rely on this symbol name, it's probably fine to never include it in
6929  # preloaded symbol tables.
6930  extract_expsyms_cmds=
6931  # Just being paranoid about ensuring that cc_basename is set.
6932  for cc_temp in $compiler""; do
6933  case $cc_temp in
6934    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6935    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6936    \-*) ;;
6937    *) break;;
6938  esac
6939done
6940cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6941
6942  case $host_os in
6943  cygwin* | mingw* | pw32*)
6944    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6945    # When not using gcc, we currently assume that we are using
6946    # Microsoft Visual C++.
6947    if test "$GCC" != yes; then
6948      with_gnu_ld=no
6949    fi
6950    ;;
6951  interix*)
6952    # we just hope/assume this is gcc and not c89 (= MSVC++)
6953    with_gnu_ld=yes
6954    ;;
6955  openbsd*)
6956    with_gnu_ld=no
6957    ;;
6958  esac
6959
6960  ld_shlibs=yes
6961  if test "$with_gnu_ld" = yes; then
6962    # If archive_cmds runs LD, not CC, wlarc should be empty
6963    wlarc='${wl}'
6964
6965    # Set some defaults for GNU ld with shared library support. These
6966    # are reset later if shared libraries are not supported. Putting them
6967    # here allows them to be overridden if necessary.
6968    runpath_var=LD_RUN_PATH
6969    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6970    export_dynamic_flag_spec='${wl}--export-dynamic'
6971    # ancient GNU ld didn't support --whole-archive et. al.
6972    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6973	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6974      else
6975  	whole_archive_flag_spec=
6976    fi
6977    supports_anon_versioning=no
6978    case `$LD -v 2>/dev/null` in
6979      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6980      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6981      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6982      *\ 2.11.*) ;; # other 2.11 versions
6983      *) supports_anon_versioning=yes ;;
6984    esac
6985
6986    # See if GNU ld supports shared libraries.
6987    case $host_os in
6988    aix3* | aix4* | aix5*)
6989      # On AIX/PPC, the GNU linker is very broken
6990      if test "$host_cpu" != ia64; then
6991	ld_shlibs=no
6992	cat <<EOF 1>&2
6993
6994*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6995*** to be unable to reliably create shared libraries on AIX.
6996*** Therefore, libtool is disabling shared libraries support.  If you
6997*** really care for shared libraries, you may want to modify your PATH
6998*** so that a non-GNU linker is found, and then restart.
6999
7000EOF
7001      fi
7002      ;;
7003
7004    amigaos*)
7005      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)'
7006      hardcode_libdir_flag_spec='-L$libdir'
7007      hardcode_minus_L=yes
7008
7009      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7010      # that the semantics of dynamic libraries on AmigaOS, at least up
7011      # to version 4, is to share data among multiple programs linked
7012      # with the same dynamic library.  Since this doesn't match the
7013      # behavior of shared libraries on other platforms, we can't use
7014      # them.
7015      ld_shlibs=no
7016      ;;
7017
7018    beos*)
7019      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7020	allow_undefined_flag=unsupported
7021	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7022	# support --undefined.  This deserves some investigation.  FIXME
7023	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7024      else
7025	ld_shlibs=no
7026      fi
7027      ;;
7028
7029    cygwin* | mingw* | pw32*)
7030      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7031      # as there is no search path for DLLs.
7032      hardcode_libdir_flag_spec='-L$libdir'
7033      allow_undefined_flag=unsupported
7034      always_export_symbols=no
7035      enable_shared_with_static_runtimes=yes
7036      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7037
7038      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7039        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7040	# If the export-symbols file already is a .def file (1st line
7041	# is EXPORTS), use it as is; otherwise, prepend...
7042	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7043	  cp $export_symbols $output_objdir/$soname.def;
7044	else
7045	  echo EXPORTS > $output_objdir/$soname.def;
7046	  cat $export_symbols >> $output_objdir/$soname.def;
7047	fi~
7048	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7049      else
7050	ld_shlibs=no
7051      fi
7052      ;;
7053
7054    interix[3-9]*)
7055      hardcode_direct=no
7056      hardcode_shlibpath_var=no
7057      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7058      export_dynamic_flag_spec='${wl}-E'
7059      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7060      # Instead, shared libraries are loaded at an image base (0x10000000 by
7061      # default) and relocated if they conflict, which is a slow very memory
7062      # consuming and fragmenting process.  To avoid this, we pick a random,
7063      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7064      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7065      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7066      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'
7067      ;;
7068
7069    gnu* | linux* | k*bsd*-gnu)
7070      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7071	tmp_addflag=
7072	case $cc_basename,$host_cpu in
7073	pgcc*)				# Portland Group C compiler
7074	  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'
7075	  tmp_addflag=' $pic_flag'
7076	  ;;
7077	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7078	  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'
7079	  tmp_addflag=' $pic_flag -Mnomain' ;;
7080	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7081	  tmp_addflag=' -i_dynamic' ;;
7082	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7083	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7084	ifc* | ifort*)			# Intel Fortran compiler
7085	  tmp_addflag=' -nofor_main' ;;
7086	esac
7087	case `$CC -V 2>&1 | sed 5q` in
7088	*Sun\ C*)			# Sun C 5.9
7089	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7090	  tmp_sharedflag='-G' ;;
7091	*Sun\ F*)			# Sun Fortran 8.3
7092	  tmp_sharedflag='-G' ;;
7093	*)
7094	  tmp_sharedflag='-shared' ;;
7095	esac
7096	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7097
7098	if test $supports_anon_versioning = yes; then
7099	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7100  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7101  $echo "local: *; };" >> $output_objdir/$libname.ver~
7102	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7103	fi
7104      else
7105	ld_shlibs=no
7106      fi
7107      ;;
7108
7109    netbsd*)
7110      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7111	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7112	wlarc=
7113      else
7114	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7115	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7116      fi
7117      ;;
7118
7119    solaris*)
7120      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7121	ld_shlibs=no
7122	cat <<EOF 1>&2
7123
7124*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7125*** create shared libraries on Solaris systems.  Therefore, libtool
7126*** is disabling shared libraries support.  We urge you to upgrade GNU
7127*** binutils to release 2.9.1 or newer.  Another option is to modify
7128*** your PATH or compiler configuration so that the native linker is
7129*** used, and then restart.
7130
7131EOF
7132      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7133	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7134	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7135      else
7136	ld_shlibs=no
7137      fi
7138      ;;
7139
7140    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7141      case `$LD -v 2>&1` in
7142        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7143	ld_shlibs=no
7144	cat <<_LT_EOF 1>&2
7145
7146*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7147*** reliably create shared libraries on SCO systems.  Therefore, libtool
7148*** is disabling shared libraries support.  We urge you to upgrade GNU
7149*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7150*** your PATH or compiler configuration so that the native linker is
7151*** used, and then restart.
7152
7153_LT_EOF
7154	;;
7155	*)
7156	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7157	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7158	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7159	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7160	  else
7161	    ld_shlibs=no
7162	  fi
7163	;;
7164      esac
7165      ;;
7166
7167    sunos4*)
7168      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7169      wlarc=
7170      hardcode_direct=yes
7171      hardcode_shlibpath_var=no
7172      ;;
7173
7174    *)
7175      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7176	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7177	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7178      else
7179	ld_shlibs=no
7180      fi
7181      ;;
7182    esac
7183
7184    if test "$ld_shlibs" = no; then
7185      runpath_var=
7186      hardcode_libdir_flag_spec=
7187      export_dynamic_flag_spec=
7188      whole_archive_flag_spec=
7189    fi
7190  else
7191    # PORTME fill in a description of your system's linker (not GNU ld)
7192    case $host_os in
7193    aix3*)
7194      allow_undefined_flag=unsupported
7195      always_export_symbols=yes
7196      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'
7197      # Note: this linker hardcodes the directories in LIBPATH if there
7198      # are no directories specified by -L.
7199      hardcode_minus_L=yes
7200      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7201	# Neither direct hardcoding nor static linking is supported with a
7202	# broken collect2.
7203	hardcode_direct=unsupported
7204      fi
7205      ;;
7206
7207    aix4* | aix5*)
7208      if test "$host_cpu" = ia64; then
7209	# On IA64, the linker does run time linking by default, so we don't
7210	# have to do anything special.
7211	aix_use_runtimelinking=no
7212	exp_sym_flag='-Bexport'
7213	no_entry_flag=""
7214      else
7215	# If we're using GNU nm, then we don't want the "-C" option.
7216	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7217	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7218	  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'
7219	else
7220	  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'
7221	fi
7222	aix_use_runtimelinking=no
7223
7224	# Test if we are trying to use run time linking or normal
7225	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7226	# need to do runtime linking.
7227	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7228	  for ld_flag in $LDFLAGS; do
7229  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7230  	    aix_use_runtimelinking=yes
7231  	    break
7232  	  fi
7233	  done
7234	  ;;
7235	esac
7236
7237	exp_sym_flag='-bexport'
7238	no_entry_flag='-bnoentry'
7239      fi
7240
7241      # When large executables or shared objects are built, AIX ld can
7242      # have problems creating the table of contents.  If linking a library
7243      # or program results in "error TOC overflow" add -mminimal-toc to
7244      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7245      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7246
7247      archive_cmds=''
7248      hardcode_direct=yes
7249      hardcode_libdir_separator=':'
7250      link_all_deplibs=yes
7251
7252      if test "$GCC" = yes; then
7253	case $host_os in aix4.[012]|aix4.[012].*)
7254	# We only want to do this on AIX 4.2 and lower, the check
7255	# below for broken collect2 doesn't work under 4.3+
7256	  collect2name=`${CC} -print-prog-name=collect2`
7257	  if test -f "$collect2name" && \
7258  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7259	  then
7260  	  # We have reworked collect2
7261  	  :
7262	  else
7263  	  # We have old collect2
7264  	  hardcode_direct=unsupported
7265  	  # It fails to find uninstalled libraries when the uninstalled
7266  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7267  	  # to unsupported forces relinking
7268  	  hardcode_minus_L=yes
7269  	  hardcode_libdir_flag_spec='-L$libdir'
7270  	  hardcode_libdir_separator=
7271	  fi
7272	  ;;
7273	esac
7274	shared_flag='-shared'
7275	if test "$aix_use_runtimelinking" = yes; then
7276	  shared_flag="$shared_flag "'${wl}-G'
7277	fi
7278      else
7279	# not using gcc
7280	if test "$host_cpu" = ia64; then
7281  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7282  	# chokes on -Wl,-G. The following line is correct:
7283	  shared_flag='-G'
7284	else
7285	  if test "$aix_use_runtimelinking" = yes; then
7286	    shared_flag='${wl}-G'
7287	  else
7288	    shared_flag='${wl}-bM:SRE'
7289	  fi
7290	fi
7291      fi
7292
7293      # It seems that -bexpall does not export symbols beginning with
7294      # underscore (_), so it is better to generate a list of symbols to export.
7295      always_export_symbols=yes
7296      if test "$aix_use_runtimelinking" = yes; then
7297	# Warning - without using the other runtime loading flags (-brtl),
7298	# -berok will link without error, but may produce a broken library.
7299	allow_undefined_flag='-berok'
7300       # Determine the default libpath from the value encoded in an empty executable.
7301       cat >conftest.$ac_ext <<_ACEOF
7302/* confdefs.h.  */
7303_ACEOF
7304cat confdefs.h >>conftest.$ac_ext
7305cat >>conftest.$ac_ext <<_ACEOF
7306/* end confdefs.h.  */
7307
7308int
7309main ()
7310{
7311
7312  ;
7313  return 0;
7314}
7315_ACEOF
7316rm -f conftest.$ac_objext conftest$ac_exeext
7317if { (ac_try="$ac_link"
7318case "(($ac_try" in
7319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320  *) ac_try_echo=$ac_try;;
7321esac
7322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323  (eval "$ac_link") 2>conftest.er1
7324  ac_status=$?
7325  grep -v '^ *+' conftest.er1 >conftest.err
7326  rm -f conftest.er1
7327  cat conftest.err >&5
7328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329  (exit $ac_status); } && {
7330	 test -z "$ac_c_werror_flag" ||
7331	 test ! -s conftest.err
7332       } && test -s conftest$ac_exeext &&
7333       $as_test_x conftest$ac_exeext; then
7334
7335lt_aix_libpath_sed='
7336    /Import File Strings/,/^$/ {
7337	/^0/ {
7338	    s/^0  *\(.*\)$/\1/
7339	    p
7340	}
7341    }'
7342aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7343# Check for a 64-bit object if we didn't find anything.
7344if test -z "$aix_libpath"; then
7345  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7346fi
7347else
7348  echo "$as_me: failed program was:" >&5
7349sed 's/^/| /' conftest.$ac_ext >&5
7350
7351
7352fi
7353
7354rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7355      conftest$ac_exeext conftest.$ac_ext
7356if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7357
7358       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7359	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"
7360       else
7361	if test "$host_cpu" = ia64; then
7362	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7363	  allow_undefined_flag="-z nodefs"
7364	  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"
7365	else
7366	 # Determine the default libpath from the value encoded in an empty executable.
7367	 cat >conftest.$ac_ext <<_ACEOF
7368/* confdefs.h.  */
7369_ACEOF
7370cat confdefs.h >>conftest.$ac_ext
7371cat >>conftest.$ac_ext <<_ACEOF
7372/* end confdefs.h.  */
7373
7374int
7375main ()
7376{
7377
7378  ;
7379  return 0;
7380}
7381_ACEOF
7382rm -f conftest.$ac_objext conftest$ac_exeext
7383if { (ac_try="$ac_link"
7384case "(($ac_try" in
7385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7386  *) ac_try_echo=$ac_try;;
7387esac
7388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7389  (eval "$ac_link") 2>conftest.er1
7390  ac_status=$?
7391  grep -v '^ *+' conftest.er1 >conftest.err
7392  rm -f conftest.er1
7393  cat conftest.err >&5
7394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395  (exit $ac_status); } && {
7396	 test -z "$ac_c_werror_flag" ||
7397	 test ! -s conftest.err
7398       } && test -s conftest$ac_exeext &&
7399       $as_test_x conftest$ac_exeext; then
7400
7401lt_aix_libpath_sed='
7402    /Import File Strings/,/^$/ {
7403	/^0/ {
7404	    s/^0  *\(.*\)$/\1/
7405	    p
7406	}
7407    }'
7408aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7409# Check for a 64-bit object if we didn't find anything.
7410if test -z "$aix_libpath"; then
7411  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7412fi
7413else
7414  echo "$as_me: failed program was:" >&5
7415sed 's/^/| /' conftest.$ac_ext >&5
7416
7417
7418fi
7419
7420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7421      conftest$ac_exeext conftest.$ac_ext
7422if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7423
7424	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7425	  # Warning - without using the other run time loading flags,
7426	  # -berok will link without error, but may produce a broken library.
7427	  no_undefined_flag=' ${wl}-bernotok'
7428	  allow_undefined_flag=' ${wl}-berok'
7429	  # Exported symbols can be pulled into shared objects from archives
7430	  whole_archive_flag_spec='$convenience'
7431	  archive_cmds_need_lc=yes
7432	  # This is similar to how AIX traditionally builds its shared libraries.
7433	  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'
7434	fi
7435      fi
7436      ;;
7437
7438    amigaos*)
7439      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)'
7440      hardcode_libdir_flag_spec='-L$libdir'
7441      hardcode_minus_L=yes
7442      # see comment about different semantics on the GNU ld section
7443      ld_shlibs=no
7444      ;;
7445
7446    bsdi[45]*)
7447      export_dynamic_flag_spec=-rdynamic
7448      ;;
7449
7450    cygwin* | mingw* | pw32*)
7451      # When not using gcc, we currently assume that we are using
7452      # Microsoft Visual C++.
7453      # hardcode_libdir_flag_spec is actually meaningless, as there is
7454      # no search path for DLLs.
7455      hardcode_libdir_flag_spec=' '
7456      allow_undefined_flag=unsupported
7457      # Tell ltmain to make .lib files, not .a files.
7458      libext=lib
7459      # Tell ltmain to make .dll files, not .so files.
7460      shrext_cmds=".dll"
7461      # FIXME: Setting linknames here is a bad hack.
7462      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7463      # The linker will automatically build a .lib file if we build a DLL.
7464      old_archive_From_new_cmds='true'
7465      # FIXME: Should let the user specify the lib program.
7466      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7467      fix_srcfile_path='`cygpath -w "$srcfile"`'
7468      enable_shared_with_static_runtimes=yes
7469      ;;
7470
7471    darwin* | rhapsody*)
7472      case $host_os in
7473        rhapsody* | darwin1.[012])
7474         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7475         ;;
7476       *) # Darwin 1.3 on
7477         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7478           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7479         else
7480           case ${MACOSX_DEPLOYMENT_TARGET} in
7481             10.[012])
7482               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7483               ;;
7484             10.*)
7485               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7486               ;;
7487           esac
7488         fi
7489         ;;
7490      esac
7491      archive_cmds_need_lc=no
7492      hardcode_direct=no
7493      hardcode_automatic=yes
7494      hardcode_shlibpath_var=unsupported
7495      whole_archive_flag_spec=''
7496      link_all_deplibs=yes
7497    if test "$GCC" = yes ; then
7498    	output_verbose_link_cmd='echo'
7499        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7500      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7501      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7502      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}'
7503      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}'
7504    else
7505      case $cc_basename in
7506        xlc*)
7507         output_verbose_link_cmd='echo'
7508         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7509         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7510          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7511         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7512          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}'
7513          ;;
7514       *)
7515         ld_shlibs=no
7516          ;;
7517      esac
7518    fi
7519      ;;
7520
7521    dgux*)
7522      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7523      hardcode_libdir_flag_spec='-L$libdir'
7524      hardcode_shlibpath_var=no
7525      ;;
7526
7527    freebsd1*)
7528      ld_shlibs=no
7529      ;;
7530
7531    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7532    # support.  Future versions do this automatically, but an explicit c++rt0.o
7533    # does not break anything, and helps significantly (at the cost of a little
7534    # extra space).
7535    freebsd2.2*)
7536      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7537      hardcode_libdir_flag_spec='-R$libdir'
7538      hardcode_direct=yes
7539      hardcode_shlibpath_var=no
7540      ;;
7541
7542    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7543    freebsd2*)
7544      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7545      hardcode_direct=yes
7546      hardcode_minus_L=yes
7547      hardcode_shlibpath_var=no
7548      ;;
7549
7550    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7551    freebsd* | dragonfly*)
7552      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7553      hardcode_libdir_flag_spec='-R$libdir'
7554      hardcode_direct=yes
7555      hardcode_shlibpath_var=no
7556      ;;
7557
7558    hpux9*)
7559      if test "$GCC" = yes; then
7560	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'
7561      else
7562	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'
7563      fi
7564      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7565      hardcode_libdir_separator=:
7566      hardcode_direct=yes
7567
7568      # hardcode_minus_L: Not really in the search PATH,
7569      # but as the default location of the library.
7570      hardcode_minus_L=yes
7571      export_dynamic_flag_spec='${wl}-E'
7572      ;;
7573
7574    hpux10*)
7575      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7576	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7577      else
7578	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7579      fi
7580      if test "$with_gnu_ld" = no; then
7581	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7582	hardcode_libdir_separator=:
7583
7584	hardcode_direct=yes
7585	export_dynamic_flag_spec='${wl}-E'
7586
7587	# hardcode_minus_L: Not really in the search PATH,
7588	# but as the default location of the library.
7589	hardcode_minus_L=yes
7590      fi
7591      ;;
7592
7593    hpux11*)
7594      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7595	case $host_cpu in
7596	hppa*64*)
7597	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7598	  ;;
7599	ia64*)
7600	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7601	  ;;
7602	*)
7603	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7604	  ;;
7605	esac
7606      else
7607	case $host_cpu in
7608	hppa*64*)
7609	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7610	  ;;
7611	ia64*)
7612	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7613	  ;;
7614	*)
7615	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7616	  ;;
7617	esac
7618      fi
7619      if test "$with_gnu_ld" = no; then
7620	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7621	hardcode_libdir_separator=:
7622
7623	case $host_cpu in
7624	hppa*64*|ia64*)
7625	  hardcode_libdir_flag_spec_ld='+b $libdir'
7626	  hardcode_direct=no
7627	  hardcode_shlibpath_var=no
7628	  ;;
7629	*)
7630	  hardcode_direct=yes
7631	  export_dynamic_flag_spec='${wl}-E'
7632
7633	  # hardcode_minus_L: Not really in the search PATH,
7634	  # but as the default location of the library.
7635	  hardcode_minus_L=yes
7636	  ;;
7637	esac
7638      fi
7639      ;;
7640
7641    irix5* | irix6* | nonstopux*)
7642      if test "$GCC" = yes; then
7643	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'
7644      else
7645	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'
7646	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7647      fi
7648      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7649      hardcode_libdir_separator=:
7650      link_all_deplibs=yes
7651      ;;
7652
7653    netbsd*)
7654      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7655	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7656      else
7657	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7658      fi
7659      hardcode_libdir_flag_spec='-R$libdir'
7660      hardcode_direct=yes
7661      hardcode_shlibpath_var=no
7662      ;;
7663
7664    newsos6)
7665      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7666      hardcode_direct=yes
7667      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7668      hardcode_libdir_separator=:
7669      hardcode_shlibpath_var=no
7670      ;;
7671
7672    openbsd*)
7673      if test -f /usr/libexec/ld.so; then
7674	hardcode_direct=yes
7675	hardcode_shlibpath_var=no
7676	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7677	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7678	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7679	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7680	  export_dynamic_flag_spec='${wl}-E'
7681	else
7682	  case $host_os in
7683	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7684	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7685	     hardcode_libdir_flag_spec='-R$libdir'
7686	     ;;
7687	   *)
7688	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7689	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7690	     ;;
7691	  esac
7692        fi
7693      else
7694	ld_shlibs=no
7695      fi
7696      ;;
7697
7698    os2*)
7699      hardcode_libdir_flag_spec='-L$libdir'
7700      hardcode_minus_L=yes
7701      allow_undefined_flag=unsupported
7702      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'
7703      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7704      ;;
7705
7706    osf3*)
7707      if test "$GCC" = yes; then
7708	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7709	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'
7710      else
7711	allow_undefined_flag=' -expect_unresolved \*'
7712	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'
7713      fi
7714      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7715      hardcode_libdir_separator=:
7716      ;;
7717
7718    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7719      if test "$GCC" = yes; then
7720	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7721	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'
7722	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7723      else
7724	allow_undefined_flag=' -expect_unresolved \*'
7725	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'
7726	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7727	$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'
7728
7729	# Both c and cxx compiler support -rpath directly
7730	hardcode_libdir_flag_spec='-rpath $libdir'
7731      fi
7732      hardcode_libdir_separator=:
7733      ;;
7734
7735    solaris*)
7736      no_undefined_flag=' -z text'
7737      if test "$GCC" = yes; then
7738	wlarc='${wl}'
7739	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7740	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7741	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7742      else
7743	wlarc=''
7744	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7745	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7746  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7747      fi
7748      hardcode_libdir_flag_spec='-R$libdir'
7749      hardcode_shlibpath_var=no
7750      case $host_os in
7751      solaris2.[0-5] | solaris2.[0-5].*) ;;
7752      *)
7753	# The compiler driver will combine and reorder linker options,
7754	# but understands `-z linker_flag'.  GCC discards it without `$wl',
7755	# but is careful enough not to reorder.
7756 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7757	if test "$GCC" = yes; then
7758	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7759	else
7760	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7761	fi
7762	;;
7763      esac
7764      link_all_deplibs=yes
7765      ;;
7766
7767    sunos4*)
7768      if test "x$host_vendor" = xsequent; then
7769	# Use $CC to link under sequent, because it throws in some extra .o
7770	# files that make .init and .fini sections work.
7771	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7772      else
7773	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7774      fi
7775      hardcode_libdir_flag_spec='-L$libdir'
7776      hardcode_direct=yes
7777      hardcode_minus_L=yes
7778      hardcode_shlibpath_var=no
7779      ;;
7780
7781    sysv4)
7782      case $host_vendor in
7783	sni)
7784	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7785	  hardcode_direct=yes # is this really true???
7786	;;
7787	siemens)
7788	  ## LD is ld it makes a PLAMLIB
7789	  ## CC just makes a GrossModule.
7790	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7791	  reload_cmds='$CC -r -o $output$reload_objs'
7792	  hardcode_direct=no
7793        ;;
7794	motorola)
7795	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7796	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7797	;;
7798      esac
7799      runpath_var='LD_RUN_PATH'
7800      hardcode_shlibpath_var=no
7801      ;;
7802
7803    sysv4.3*)
7804      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7805      hardcode_shlibpath_var=no
7806      export_dynamic_flag_spec='-Bexport'
7807      ;;
7808
7809    sysv4*MP*)
7810      if test -d /usr/nec; then
7811	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7812	hardcode_shlibpath_var=no
7813	runpath_var=LD_RUN_PATH
7814	hardcode_runpath_var=yes
7815	ld_shlibs=yes
7816      fi
7817      ;;
7818
7819    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7820      no_undefined_flag='${wl}-z,text'
7821      archive_cmds_need_lc=no
7822      hardcode_shlibpath_var=no
7823      runpath_var='LD_RUN_PATH'
7824
7825      if test "$GCC" = yes; then
7826	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7827	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7828      else
7829	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7830	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7831      fi
7832      ;;
7833
7834    sysv5* | sco3.2v5* | sco5v6*)
7835      # Note: We can NOT use -z defs as we might desire, because we do not
7836      # link with -lc, and that would cause any symbols used from libc to
7837      # always be unresolved, which means just about no library would
7838      # ever link correctly.  If we're not using GNU ld we use -z text
7839      # though, which does catch some bad symbols but isn't as heavy-handed
7840      # as -z defs.
7841      no_undefined_flag='${wl}-z,text'
7842      allow_undefined_flag='${wl}-z,nodefs'
7843      archive_cmds_need_lc=no
7844      hardcode_shlibpath_var=no
7845      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7846      hardcode_libdir_separator=':'
7847      link_all_deplibs=yes
7848      export_dynamic_flag_spec='${wl}-Bexport'
7849      runpath_var='LD_RUN_PATH'
7850
7851      if test "$GCC" = yes; then
7852	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7853	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7854      else
7855	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7856	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7857      fi
7858      ;;
7859
7860    uts4*)
7861      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7862      hardcode_libdir_flag_spec='-L$libdir'
7863      hardcode_shlibpath_var=no
7864      ;;
7865
7866    *)
7867      ld_shlibs=no
7868      ;;
7869    esac
7870  fi
7871
7872{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7873echo "${ECHO_T}$ld_shlibs" >&6; }
7874test "$ld_shlibs" = no && can_build_shared=no
7875
7876#
7877# Do we need to explicitly link libc?
7878#
7879case "x$archive_cmds_need_lc" in
7880x|xyes)
7881  # Assume -lc should be added
7882  archive_cmds_need_lc=yes
7883
7884  if test "$enable_shared" = yes && test "$GCC" = yes; then
7885    case $archive_cmds in
7886    *'~'*)
7887      # FIXME: we may have to deal with multi-command sequences.
7888      ;;
7889    '$CC '*)
7890      # Test whether the compiler implicitly links with -lc since on some
7891      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7892      # to ld, don't add -lc before -lgcc.
7893      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7894echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7895      $rm conftest*
7896      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7897
7898      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7899  (eval $ac_compile) 2>&5
7900  ac_status=$?
7901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902  (exit $ac_status); } 2>conftest.err; then
7903        soname=conftest
7904        lib=conftest
7905        libobjs=conftest.$ac_objext
7906        deplibs=
7907        wl=$lt_prog_compiler_wl
7908	pic_flag=$lt_prog_compiler_pic
7909        compiler_flags=-v
7910        linker_flags=-v
7911        verstring=
7912        output_objdir=.
7913        libname=conftest
7914        lt_save_allow_undefined_flag=$allow_undefined_flag
7915        allow_undefined_flag=
7916        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7917  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7918  ac_status=$?
7919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920  (exit $ac_status); }
7921        then
7922	  archive_cmds_need_lc=no
7923        else
7924	  archive_cmds_need_lc=yes
7925        fi
7926        allow_undefined_flag=$lt_save_allow_undefined_flag
7927      else
7928        cat conftest.err 1>&5
7929      fi
7930      $rm conftest*
7931      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7932echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7933      ;;
7934    esac
7935  fi
7936  ;;
7937esac
7938
7939{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7940echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7941library_names_spec=
7942libname_spec='lib$name'
7943soname_spec=
7944shrext_cmds=".so"
7945postinstall_cmds=
7946postuninstall_cmds=
7947finish_cmds=
7948finish_eval=
7949shlibpath_var=
7950shlibpath_overrides_runpath=unknown
7951version_type=none
7952dynamic_linker="$host_os ld.so"
7953sys_lib_dlsearch_path_spec="/lib /usr/lib"
7954
7955if test "$GCC" = yes; then
7956  case $host_os in
7957    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7958    *) lt_awk_arg="/^libraries:/" ;;
7959  esac
7960  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7961  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
7962    # if the path contains ";" then we assume it to be the separator
7963    # otherwise default to the standard path separator (i.e. ":") - it is
7964    # assumed that no part of a normal pathname contains ";" but that should
7965    # okay in the real world where ";" in dirpaths is itself problematic.
7966    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7967  else
7968    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7969  fi
7970  # Ok, now we have the path, separated by spaces, we can step through it
7971  # and add multilib dir if necessary.
7972  lt_tmp_lt_search_path_spec=
7973  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7974  for lt_sys_path in $lt_search_path_spec; do
7975    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7976      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7977    else
7978      test -d "$lt_sys_path" && \
7979	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7980    fi
7981  done
7982  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
7983BEGIN {RS=" "; FS="/|\n";} {
7984  lt_foo="";
7985  lt_count=0;
7986  for (lt_i = NF; lt_i > 0; lt_i--) {
7987    if ($lt_i != "" && $lt_i != ".") {
7988      if ($lt_i == "..") {
7989        lt_count++;
7990      } else {
7991        if (lt_count == 0) {
7992          lt_foo="/" $lt_i lt_foo;
7993        } else {
7994          lt_count--;
7995        }
7996      }
7997    }
7998  }
7999  if (lt_foo != "") { lt_freq[lt_foo]++; }
8000  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8001}'`
8002  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8003else
8004  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8005fi
8006need_lib_prefix=unknown
8007hardcode_into_libs=no
8008
8009# when you set need_version to no, make sure it does not cause -set_version
8010# flags to be left without arguments
8011need_version=unknown
8012
8013case $host_os in
8014aix3*)
8015  version_type=linux
8016  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8017  shlibpath_var=LIBPATH
8018
8019  # AIX 3 has no versioning support, so we append a major version to the name.
8020  soname_spec='${libname}${release}${shared_ext}$major'
8021  ;;
8022
8023aix4* | aix5*)
8024  version_type=linux
8025  need_lib_prefix=no
8026  need_version=no
8027  hardcode_into_libs=yes
8028  if test "$host_cpu" = ia64; then
8029    # AIX 5 supports IA64
8030    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8031    shlibpath_var=LD_LIBRARY_PATH
8032  else
8033    # With GCC up to 2.95.x, collect2 would create an import file
8034    # for dependence libraries.  The import file would start with
8035    # the line `#! .'.  This would cause the generated library to
8036    # depend on `.', always an invalid library.  This was fixed in
8037    # development snapshots of GCC prior to 3.0.
8038    case $host_os in
8039      aix4 | aix4.[01] | aix4.[01].*)
8040      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8041	   echo ' yes '
8042	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8043	:
8044      else
8045	can_build_shared=no
8046      fi
8047      ;;
8048    esac
8049    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8050    # soname into executable. Probably we can add versioning support to
8051    # collect2, so additional links can be useful in future.
8052    if test "$aix_use_runtimelinking" = yes; then
8053      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8054      # instead of lib<name>.a to let people know that these are not
8055      # typical AIX shared libraries.
8056      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8057    else
8058      # We preserve .a as extension for shared libraries through AIX4.2
8059      # and later when we are not doing run time linking.
8060      library_names_spec='${libname}${release}.a $libname.a'
8061      soname_spec='${libname}${release}${shared_ext}$major'
8062    fi
8063    shlibpath_var=LIBPATH
8064  fi
8065  ;;
8066
8067amigaos*)
8068  library_names_spec='$libname.ixlibrary $libname.a'
8069  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8070  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'
8071  ;;
8072
8073beos*)
8074  library_names_spec='${libname}${shared_ext}'
8075  dynamic_linker="$host_os ld.so"
8076  shlibpath_var=LIBRARY_PATH
8077  ;;
8078
8079bsdi[45]*)
8080  version_type=linux
8081  need_version=no
8082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8083  soname_spec='${libname}${release}${shared_ext}$major'
8084  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8085  shlibpath_var=LD_LIBRARY_PATH
8086  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8087  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8088  # the default ld.so.conf also contains /usr/contrib/lib and
8089  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8090  # libtool to hard-code these into programs
8091  ;;
8092
8093cygwin* | mingw* | pw32*)
8094  version_type=windows
8095  shrext_cmds=".dll"
8096  need_version=no
8097  need_lib_prefix=no
8098
8099  case $GCC,$host_os in
8100  yes,cygwin* | yes,mingw* | yes,pw32*)
8101    library_names_spec='$libname.dll.a'
8102    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8103    postinstall_cmds='base_file=`basename \${file}`~
8104      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8105      dldir=$destdir/`dirname \$dlpath`~
8106      test -d \$dldir || mkdir -p \$dldir~
8107      $install_prog $dir/$dlname \$dldir/$dlname~
8108      chmod a+x \$dldir/$dlname'
8109    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8110      dlpath=$dir/\$dldll~
8111       $rm \$dlpath'
8112    shlibpath_overrides_runpath=yes
8113
8114    case $host_os in
8115    cygwin*)
8116      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8117      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8118      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8119      ;;
8120    mingw*)
8121      # MinGW DLLs use traditional 'lib' prefix
8122      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8123      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8124      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8125        # It is most probably a Windows format PATH printed by
8126        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8127        # path with ; separators, and with drive letters. We can handle the
8128        # drive letters (cygwin fileutils understands them), so leave them,
8129        # especially as we might pass files found there to a mingw objdump,
8130        # which wouldn't understand a cygwinified path. Ahh.
8131        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8132      else
8133        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8134      fi
8135      ;;
8136    pw32*)
8137      # pw32 DLLs use 'pw' prefix rather than 'lib'
8138      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8139      ;;
8140    esac
8141    ;;
8142
8143  *)
8144    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8145    ;;
8146  esac
8147  dynamic_linker='Win32 ld.exe'
8148  # FIXME: first we should search . and the directory the executable is in
8149  shlibpath_var=PATH
8150  ;;
8151
8152darwin* | rhapsody*)
8153  dynamic_linker="$host_os dyld"
8154  version_type=darwin
8155  need_lib_prefix=no
8156  need_version=no
8157  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8158  soname_spec='${libname}${release}${major}$shared_ext'
8159  shlibpath_overrides_runpath=yes
8160  shlibpath_var=DYLD_LIBRARY_PATH
8161  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8162
8163  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8164  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8165  ;;
8166
8167dgux*)
8168  version_type=linux
8169  need_lib_prefix=no
8170  need_version=no
8171  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8172  soname_spec='${libname}${release}${shared_ext}$major'
8173  shlibpath_var=LD_LIBRARY_PATH
8174  ;;
8175
8176freebsd1*)
8177  dynamic_linker=no
8178  ;;
8179
8180freebsd* | dragonfly*)
8181  # DragonFly does not have aout.  When/if they implement a new
8182  # versioning mechanism, adjust this.
8183  if test -x /usr/bin/objformat; then
8184    objformat=`/usr/bin/objformat`
8185  else
8186    case $host_os in
8187    freebsd[123]*) objformat=aout ;;
8188    *) objformat=elf ;;
8189    esac
8190  fi
8191  version_type=freebsd-$objformat
8192  case $version_type in
8193    freebsd-elf*)
8194      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8195      need_version=no
8196      need_lib_prefix=no
8197      ;;
8198    freebsd-*)
8199      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8200      need_version=yes
8201      ;;
8202  esac
8203  shlibpath_var=LD_LIBRARY_PATH
8204  case $host_os in
8205  freebsd2*)
8206    shlibpath_overrides_runpath=yes
8207    ;;
8208  freebsd3.[01]* | freebsdelf3.[01]*)
8209    shlibpath_overrides_runpath=yes
8210    hardcode_into_libs=yes
8211    ;;
8212  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8213  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8214    shlibpath_overrides_runpath=no
8215    hardcode_into_libs=yes
8216    ;;
8217  *) # from 4.6 on, and DragonFly
8218    shlibpath_overrides_runpath=yes
8219    hardcode_into_libs=yes
8220    ;;
8221  esac
8222  ;;
8223
8224gnu*)
8225  version_type=linux
8226  need_lib_prefix=no
8227  need_version=no
8228  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8229  soname_spec='${libname}${release}${shared_ext}$major'
8230  shlibpath_var=LD_LIBRARY_PATH
8231  hardcode_into_libs=yes
8232  ;;
8233
8234hpux9* | hpux10* | hpux11*)
8235  # Give a soname corresponding to the major version so that dld.sl refuses to
8236  # link against other versions.
8237  version_type=sunos
8238  need_lib_prefix=no
8239  need_version=no
8240  case $host_cpu in
8241  ia64*)
8242    shrext_cmds='.so'
8243    hardcode_into_libs=yes
8244    dynamic_linker="$host_os dld.so"
8245    shlibpath_var=LD_LIBRARY_PATH
8246    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8247    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8248    soname_spec='${libname}${release}${shared_ext}$major'
8249    if test "X$HPUX_IA64_MODE" = X32; then
8250      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8251    else
8252      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8253    fi
8254    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8255    ;;
8256   hppa*64*)
8257     shrext_cmds='.sl'
8258     hardcode_into_libs=yes
8259     dynamic_linker="$host_os dld.sl"
8260     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8261     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8262     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8263     soname_spec='${libname}${release}${shared_ext}$major'
8264     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8265     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8266     ;;
8267   *)
8268    shrext_cmds='.sl'
8269    dynamic_linker="$host_os dld.sl"
8270    shlibpath_var=SHLIB_PATH
8271    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8272    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8273    soname_spec='${libname}${release}${shared_ext}$major'
8274    ;;
8275  esac
8276  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8277  postinstall_cmds='chmod 555 $lib'
8278  ;;
8279
8280interix[3-9]*)
8281  version_type=linux
8282  need_lib_prefix=no
8283  need_version=no
8284  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8285  soname_spec='${libname}${release}${shared_ext}$major'
8286  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8287  shlibpath_var=LD_LIBRARY_PATH
8288  shlibpath_overrides_runpath=no
8289  hardcode_into_libs=yes
8290  ;;
8291
8292irix5* | irix6* | nonstopux*)
8293  case $host_os in
8294    nonstopux*) version_type=nonstopux ;;
8295    *)
8296	if test "$lt_cv_prog_gnu_ld" = yes; then
8297		version_type=linux
8298	else
8299		version_type=irix
8300	fi ;;
8301  esac
8302  need_lib_prefix=no
8303  need_version=no
8304  soname_spec='${libname}${release}${shared_ext}$major'
8305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8306  case $host_os in
8307  irix5* | nonstopux*)
8308    libsuff= shlibsuff=
8309    ;;
8310  *)
8311    case $LD in # libtool.m4 will add one of these switches to LD
8312    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8313      libsuff= shlibsuff= libmagic=32-bit;;
8314    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8315      libsuff=32 shlibsuff=N32 libmagic=N32;;
8316    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8317      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8318    *) libsuff= shlibsuff= libmagic=never-match;;
8319    esac
8320    ;;
8321  esac
8322  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8323  shlibpath_overrides_runpath=no
8324  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8325  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8326  hardcode_into_libs=yes
8327  ;;
8328
8329# No shared lib support for Linux oldld, aout, or coff.
8330linux*oldld* | linux*aout* | linux*coff*)
8331  dynamic_linker=no
8332  ;;
8333
8334# This must be Linux ELF.
8335linux* | k*bsd*-gnu)
8336  version_type=linux
8337  need_lib_prefix=no
8338  need_version=no
8339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8340  soname_spec='${libname}${release}${shared_ext}$major'
8341  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8342  shlibpath_var=LD_LIBRARY_PATH
8343  shlibpath_overrides_runpath=no
8344  # This implies no fast_install, which is unacceptable.
8345  # Some rework will be needed to allow for fast_install
8346  # before this can be enabled.
8347  hardcode_into_libs=yes
8348
8349  # Append ld.so.conf contents to the search path
8350  if test -f /etc/ld.so.conf; then
8351    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8352    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8353  fi
8354
8355  # We used to test for /lib/ld.so.1 and disable shared libraries on
8356  # powerpc, because MkLinux only supported shared libraries with the
8357  # GNU dynamic linker.  Since this was broken with cross compilers,
8358  # most powerpc-linux boxes support dynamic linking these days and
8359  # people can always --disable-shared, the test was removed, and we
8360  # assume the GNU/Linux dynamic linker is in use.
8361  dynamic_linker='GNU/Linux ld.so'
8362  ;;
8363
8364netbsd*)
8365  version_type=sunos
8366  need_lib_prefix=no
8367  need_version=no
8368  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8369    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8370    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8371    dynamic_linker='NetBSD (a.out) ld.so'
8372  else
8373    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8374    soname_spec='${libname}${release}${shared_ext}$major'
8375    dynamic_linker='NetBSD ld.elf_so'
8376  fi
8377  shlibpath_var=LD_LIBRARY_PATH
8378  shlibpath_overrides_runpath=yes
8379  hardcode_into_libs=yes
8380  ;;
8381
8382newsos6)
8383  version_type=linux
8384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8385  shlibpath_var=LD_LIBRARY_PATH
8386  shlibpath_overrides_runpath=yes
8387  ;;
8388
8389nto-qnx*)
8390  version_type=linux
8391  need_lib_prefix=no
8392  need_version=no
8393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8394  soname_spec='${libname}${release}${shared_ext}$major'
8395  shlibpath_var=LD_LIBRARY_PATH
8396  shlibpath_overrides_runpath=yes
8397  ;;
8398
8399openbsd*)
8400  version_type=sunos
8401  sys_lib_dlsearch_path_spec="/usr/lib"
8402  need_lib_prefix=no
8403  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8404  case $host_os in
8405    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8406    *)                         need_version=no  ;;
8407  esac
8408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8409  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8410  shlibpath_var=LD_LIBRARY_PATH
8411  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8412    case $host_os in
8413      openbsd2.[89] | openbsd2.[89].*)
8414	shlibpath_overrides_runpath=no
8415	;;
8416      *)
8417	shlibpath_overrides_runpath=yes
8418	;;
8419      esac
8420  else
8421    shlibpath_overrides_runpath=yes
8422  fi
8423  ;;
8424
8425os2*)
8426  libname_spec='$name'
8427  shrext_cmds=".dll"
8428  need_lib_prefix=no
8429  library_names_spec='$libname${shared_ext} $libname.a'
8430  dynamic_linker='OS/2 ld.exe'
8431  shlibpath_var=LIBPATH
8432  ;;
8433
8434osf3* | osf4* | osf5*)
8435  version_type=osf
8436  need_lib_prefix=no
8437  need_version=no
8438  soname_spec='${libname}${release}${shared_ext}$major'
8439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8440  shlibpath_var=LD_LIBRARY_PATH
8441  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8442  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8443  ;;
8444
8445rdos*)
8446  dynamic_linker=no
8447  ;;
8448
8449solaris*)
8450  version_type=linux
8451  need_lib_prefix=no
8452  need_version=no
8453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8454  soname_spec='${libname}${release}${shared_ext}$major'
8455  shlibpath_var=LD_LIBRARY_PATH
8456  shlibpath_overrides_runpath=yes
8457  hardcode_into_libs=yes
8458  # ldd complains unless libraries are executable
8459  postinstall_cmds='chmod +x $lib'
8460  ;;
8461
8462sunos4*)
8463  version_type=sunos
8464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8465  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8466  shlibpath_var=LD_LIBRARY_PATH
8467  shlibpath_overrides_runpath=yes
8468  if test "$with_gnu_ld" = yes; then
8469    need_lib_prefix=no
8470  fi
8471  need_version=yes
8472  ;;
8473
8474sysv4 | sysv4.3*)
8475  version_type=linux
8476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8477  soname_spec='${libname}${release}${shared_ext}$major'
8478  shlibpath_var=LD_LIBRARY_PATH
8479  case $host_vendor in
8480    sni)
8481      shlibpath_overrides_runpath=no
8482      need_lib_prefix=no
8483      export_dynamic_flag_spec='${wl}-Blargedynsym'
8484      runpath_var=LD_RUN_PATH
8485      ;;
8486    siemens)
8487      need_lib_prefix=no
8488      ;;
8489    motorola)
8490      need_lib_prefix=no
8491      need_version=no
8492      shlibpath_overrides_runpath=no
8493      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8494      ;;
8495  esac
8496  ;;
8497
8498sysv4*MP*)
8499  if test -d /usr/nec ;then
8500    version_type=linux
8501    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8502    soname_spec='$libname${shared_ext}.$major'
8503    shlibpath_var=LD_LIBRARY_PATH
8504  fi
8505  ;;
8506
8507sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8508  version_type=freebsd-elf
8509  need_lib_prefix=no
8510  need_version=no
8511  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8512  soname_spec='${libname}${release}${shared_ext}$major'
8513  shlibpath_var=LD_LIBRARY_PATH
8514  hardcode_into_libs=yes
8515  if test "$with_gnu_ld" = yes; then
8516    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8517    shlibpath_overrides_runpath=no
8518  else
8519    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8520    shlibpath_overrides_runpath=yes
8521    case $host_os in
8522      sco3.2v5*)
8523        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8524	;;
8525    esac
8526  fi
8527  sys_lib_dlsearch_path_spec='/usr/lib'
8528  ;;
8529
8530uts4*)
8531  version_type=linux
8532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8533  soname_spec='${libname}${release}${shared_ext}$major'
8534  shlibpath_var=LD_LIBRARY_PATH
8535  ;;
8536
8537*)
8538  dynamic_linker=no
8539  ;;
8540esac
8541{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8542echo "${ECHO_T}$dynamic_linker" >&6; }
8543test "$dynamic_linker" = no && can_build_shared=no
8544
8545variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8546if test "$GCC" = yes; then
8547  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8548fi
8549
8550{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8551echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8552hardcode_action=
8553if test -n "$hardcode_libdir_flag_spec" || \
8554   test -n "$runpath_var" || \
8555   test "X$hardcode_automatic" = "Xyes" ; then
8556
8557  # We can hardcode non-existant directories.
8558  if test "$hardcode_direct" != no &&
8559     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8560     # have to relink, otherwise we might link with an installed library
8561     # when we should be linking with a yet-to-be-installed one
8562     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8563     test "$hardcode_minus_L" != no; then
8564    # Linking always hardcodes the temporary library directory.
8565    hardcode_action=relink
8566  else
8567    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8568    hardcode_action=immediate
8569  fi
8570else
8571  # We cannot hardcode anything, or else we can only hardcode existing
8572  # directories.
8573  hardcode_action=unsupported
8574fi
8575{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8576echo "${ECHO_T}$hardcode_action" >&6; }
8577
8578if test "$hardcode_action" = relink; then
8579  # Fast installation is not supported
8580  enable_fast_install=no
8581elif test "$shlibpath_overrides_runpath" = yes ||
8582     test "$enable_shared" = no; then
8583  # Fast installation is not necessary
8584  enable_fast_install=needless
8585fi
8586
8587striplib=
8588old_striplib=
8589{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8590echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8591if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8592  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8593  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8594  { echo "$as_me:$LINENO: result: yes" >&5
8595echo "${ECHO_T}yes" >&6; }
8596else
8597# FIXME - insert some real tests, host_os isn't really good enough
8598  case $host_os in
8599   darwin*)
8600       if test -n "$STRIP" ; then
8601         striplib="$STRIP -x"
8602         old_striplib="$STRIP -S"
8603         { echo "$as_me:$LINENO: result: yes" >&5
8604echo "${ECHO_T}yes" >&6; }
8605       else
8606  { echo "$as_me:$LINENO: result: no" >&5
8607echo "${ECHO_T}no" >&6; }
8608fi
8609       ;;
8610   *)
8611  { echo "$as_me:$LINENO: result: no" >&5
8612echo "${ECHO_T}no" >&6; }
8613    ;;
8614  esac
8615fi
8616
8617if test "x$enable_dlopen" != xyes; then
8618  enable_dlopen=unknown
8619  enable_dlopen_self=unknown
8620  enable_dlopen_self_static=unknown
8621else
8622  lt_cv_dlopen=no
8623  lt_cv_dlopen_libs=
8624
8625  case $host_os in
8626  beos*)
8627    lt_cv_dlopen="load_add_on"
8628    lt_cv_dlopen_libs=
8629    lt_cv_dlopen_self=yes
8630    ;;
8631
8632  mingw* | pw32*)
8633    lt_cv_dlopen="LoadLibrary"
8634    lt_cv_dlopen_libs=
8635   ;;
8636
8637  cygwin*)
8638    lt_cv_dlopen="dlopen"
8639    lt_cv_dlopen_libs=
8640   ;;
8641
8642  darwin*)
8643  # if libdl is installed we need to link against it
8644    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8645echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8646if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8647  echo $ECHO_N "(cached) $ECHO_C" >&6
8648else
8649  ac_check_lib_save_LIBS=$LIBS
8650LIBS="-ldl  $LIBS"
8651cat >conftest.$ac_ext <<_ACEOF
8652/* confdefs.h.  */
8653_ACEOF
8654cat confdefs.h >>conftest.$ac_ext
8655cat >>conftest.$ac_ext <<_ACEOF
8656/* end confdefs.h.  */
8657
8658/* Override any GCC internal prototype to avoid an error.
8659   Use char because int might match the return type of a GCC
8660   builtin and then its argument prototype would still apply.  */
8661#ifdef __cplusplus
8662extern "C"
8663#endif
8664char dlopen ();
8665int
8666main ()
8667{
8668return dlopen ();
8669  ;
8670  return 0;
8671}
8672_ACEOF
8673rm -f conftest.$ac_objext conftest$ac_exeext
8674if { (ac_try="$ac_link"
8675case "(($ac_try" in
8676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677  *) ac_try_echo=$ac_try;;
8678esac
8679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680  (eval "$ac_link") 2>conftest.er1
8681  ac_status=$?
8682  grep -v '^ *+' conftest.er1 >conftest.err
8683  rm -f conftest.er1
8684  cat conftest.err >&5
8685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686  (exit $ac_status); } && {
8687	 test -z "$ac_c_werror_flag" ||
8688	 test ! -s conftest.err
8689       } && test -s conftest$ac_exeext &&
8690       $as_test_x conftest$ac_exeext; then
8691  ac_cv_lib_dl_dlopen=yes
8692else
8693  echo "$as_me: failed program was:" >&5
8694sed 's/^/| /' conftest.$ac_ext >&5
8695
8696	ac_cv_lib_dl_dlopen=no
8697fi
8698
8699rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8700      conftest$ac_exeext conftest.$ac_ext
8701LIBS=$ac_check_lib_save_LIBS
8702fi
8703{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8704echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8705if test $ac_cv_lib_dl_dlopen = yes; then
8706  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8707else
8708
8709    lt_cv_dlopen="dyld"
8710    lt_cv_dlopen_libs=
8711    lt_cv_dlopen_self=yes
8712
8713fi
8714
8715   ;;
8716
8717  *)
8718    { echo "$as_me:$LINENO: checking for shl_load" >&5
8719echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8720if test "${ac_cv_func_shl_load+set}" = set; then
8721  echo $ECHO_N "(cached) $ECHO_C" >&6
8722else
8723  cat >conftest.$ac_ext <<_ACEOF
8724/* confdefs.h.  */
8725_ACEOF
8726cat confdefs.h >>conftest.$ac_ext
8727cat >>conftest.$ac_ext <<_ACEOF
8728/* end confdefs.h.  */
8729/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8730   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8731#define shl_load innocuous_shl_load
8732
8733/* System header to define __stub macros and hopefully few prototypes,
8734    which can conflict with char shl_load (); below.
8735    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8736    <limits.h> exists even on freestanding compilers.  */
8737
8738#ifdef __STDC__
8739# include <limits.h>
8740#else
8741# include <assert.h>
8742#endif
8743
8744#undef shl_load
8745
8746/* Override any GCC internal prototype to avoid an error.
8747   Use char because int might match the return type of a GCC
8748   builtin and then its argument prototype would still apply.  */
8749#ifdef __cplusplus
8750extern "C"
8751#endif
8752char shl_load ();
8753/* The GNU C library defines this for functions which it implements
8754    to always fail with ENOSYS.  Some functions are actually named
8755    something starting with __ and the normal name is an alias.  */
8756#if defined __stub_shl_load || defined __stub___shl_load
8757choke me
8758#endif
8759
8760int
8761main ()
8762{
8763return shl_load ();
8764  ;
8765  return 0;
8766}
8767_ACEOF
8768rm -f conftest.$ac_objext conftest$ac_exeext
8769if { (ac_try="$ac_link"
8770case "(($ac_try" in
8771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772  *) ac_try_echo=$ac_try;;
8773esac
8774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775  (eval "$ac_link") 2>conftest.er1
8776  ac_status=$?
8777  grep -v '^ *+' conftest.er1 >conftest.err
8778  rm -f conftest.er1
8779  cat conftest.err >&5
8780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781  (exit $ac_status); } && {
8782	 test -z "$ac_c_werror_flag" ||
8783	 test ! -s conftest.err
8784       } && test -s conftest$ac_exeext &&
8785       $as_test_x conftest$ac_exeext; then
8786  ac_cv_func_shl_load=yes
8787else
8788  echo "$as_me: failed program was:" >&5
8789sed 's/^/| /' conftest.$ac_ext >&5
8790
8791	ac_cv_func_shl_load=no
8792fi
8793
8794rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8795      conftest$ac_exeext conftest.$ac_ext
8796fi
8797{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8798echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8799if test $ac_cv_func_shl_load = yes; then
8800  lt_cv_dlopen="shl_load"
8801else
8802  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8803echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8804if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8805  echo $ECHO_N "(cached) $ECHO_C" >&6
8806else
8807  ac_check_lib_save_LIBS=$LIBS
8808LIBS="-ldld  $LIBS"
8809cat >conftest.$ac_ext <<_ACEOF
8810/* confdefs.h.  */
8811_ACEOF
8812cat confdefs.h >>conftest.$ac_ext
8813cat >>conftest.$ac_ext <<_ACEOF
8814/* end confdefs.h.  */
8815
8816/* Override any GCC internal prototype to avoid an error.
8817   Use char because int might match the return type of a GCC
8818   builtin and then its argument prototype would still apply.  */
8819#ifdef __cplusplus
8820extern "C"
8821#endif
8822char shl_load ();
8823int
8824main ()
8825{
8826return shl_load ();
8827  ;
8828  return 0;
8829}
8830_ACEOF
8831rm -f conftest.$ac_objext conftest$ac_exeext
8832if { (ac_try="$ac_link"
8833case "(($ac_try" in
8834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8835  *) ac_try_echo=$ac_try;;
8836esac
8837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8838  (eval "$ac_link") 2>conftest.er1
8839  ac_status=$?
8840  grep -v '^ *+' conftest.er1 >conftest.err
8841  rm -f conftest.er1
8842  cat conftest.err >&5
8843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844  (exit $ac_status); } && {
8845	 test -z "$ac_c_werror_flag" ||
8846	 test ! -s conftest.err
8847       } && test -s conftest$ac_exeext &&
8848       $as_test_x conftest$ac_exeext; then
8849  ac_cv_lib_dld_shl_load=yes
8850else
8851  echo "$as_me: failed program was:" >&5
8852sed 's/^/| /' conftest.$ac_ext >&5
8853
8854	ac_cv_lib_dld_shl_load=no
8855fi
8856
8857rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8858      conftest$ac_exeext conftest.$ac_ext
8859LIBS=$ac_check_lib_save_LIBS
8860fi
8861{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8862echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8863if test $ac_cv_lib_dld_shl_load = yes; then
8864  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8865else
8866  { echo "$as_me:$LINENO: checking for dlopen" >&5
8867echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8868if test "${ac_cv_func_dlopen+set}" = set; then
8869  echo $ECHO_N "(cached) $ECHO_C" >&6
8870else
8871  cat >conftest.$ac_ext <<_ACEOF
8872/* confdefs.h.  */
8873_ACEOF
8874cat confdefs.h >>conftest.$ac_ext
8875cat >>conftest.$ac_ext <<_ACEOF
8876/* end confdefs.h.  */
8877/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8878   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8879#define dlopen innocuous_dlopen
8880
8881/* System header to define __stub macros and hopefully few prototypes,
8882    which can conflict with char dlopen (); below.
8883    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8884    <limits.h> exists even on freestanding compilers.  */
8885
8886#ifdef __STDC__
8887# include <limits.h>
8888#else
8889# include <assert.h>
8890#endif
8891
8892#undef dlopen
8893
8894/* Override any GCC internal prototype to avoid an error.
8895   Use char because int might match the return type of a GCC
8896   builtin and then its argument prototype would still apply.  */
8897#ifdef __cplusplus
8898extern "C"
8899#endif
8900char dlopen ();
8901/* The GNU C library defines this for functions which it implements
8902    to always fail with ENOSYS.  Some functions are actually named
8903    something starting with __ and the normal name is an alias.  */
8904#if defined __stub_dlopen || defined __stub___dlopen
8905choke me
8906#endif
8907
8908int
8909main ()
8910{
8911return dlopen ();
8912  ;
8913  return 0;
8914}
8915_ACEOF
8916rm -f conftest.$ac_objext conftest$ac_exeext
8917if { (ac_try="$ac_link"
8918case "(($ac_try" in
8919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920  *) ac_try_echo=$ac_try;;
8921esac
8922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923  (eval "$ac_link") 2>conftest.er1
8924  ac_status=$?
8925  grep -v '^ *+' conftest.er1 >conftest.err
8926  rm -f conftest.er1
8927  cat conftest.err >&5
8928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929  (exit $ac_status); } && {
8930	 test -z "$ac_c_werror_flag" ||
8931	 test ! -s conftest.err
8932       } && test -s conftest$ac_exeext &&
8933       $as_test_x conftest$ac_exeext; then
8934  ac_cv_func_dlopen=yes
8935else
8936  echo "$as_me: failed program was:" >&5
8937sed 's/^/| /' conftest.$ac_ext >&5
8938
8939	ac_cv_func_dlopen=no
8940fi
8941
8942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8943      conftest$ac_exeext conftest.$ac_ext
8944fi
8945{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8946echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8947if test $ac_cv_func_dlopen = yes; then
8948  lt_cv_dlopen="dlopen"
8949else
8950  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8951echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8952if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8953  echo $ECHO_N "(cached) $ECHO_C" >&6
8954else
8955  ac_check_lib_save_LIBS=$LIBS
8956LIBS="-ldl  $LIBS"
8957cat >conftest.$ac_ext <<_ACEOF
8958/* confdefs.h.  */
8959_ACEOF
8960cat confdefs.h >>conftest.$ac_ext
8961cat >>conftest.$ac_ext <<_ACEOF
8962/* end confdefs.h.  */
8963
8964/* Override any GCC internal prototype to avoid an error.
8965   Use char because int might match the return type of a GCC
8966   builtin and then its argument prototype would still apply.  */
8967#ifdef __cplusplus
8968extern "C"
8969#endif
8970char dlopen ();
8971int
8972main ()
8973{
8974return dlopen ();
8975  ;
8976  return 0;
8977}
8978_ACEOF
8979rm -f conftest.$ac_objext conftest$ac_exeext
8980if { (ac_try="$ac_link"
8981case "(($ac_try" in
8982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983  *) ac_try_echo=$ac_try;;
8984esac
8985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986  (eval "$ac_link") 2>conftest.er1
8987  ac_status=$?
8988  grep -v '^ *+' conftest.er1 >conftest.err
8989  rm -f conftest.er1
8990  cat conftest.err >&5
8991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992  (exit $ac_status); } && {
8993	 test -z "$ac_c_werror_flag" ||
8994	 test ! -s conftest.err
8995       } && test -s conftest$ac_exeext &&
8996       $as_test_x conftest$ac_exeext; then
8997  ac_cv_lib_dl_dlopen=yes
8998else
8999  echo "$as_me: failed program was:" >&5
9000sed 's/^/| /' conftest.$ac_ext >&5
9001
9002	ac_cv_lib_dl_dlopen=no
9003fi
9004
9005rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9006      conftest$ac_exeext conftest.$ac_ext
9007LIBS=$ac_check_lib_save_LIBS
9008fi
9009{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9010echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9011if test $ac_cv_lib_dl_dlopen = yes; then
9012  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9013else
9014  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9015echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9016if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9017  echo $ECHO_N "(cached) $ECHO_C" >&6
9018else
9019  ac_check_lib_save_LIBS=$LIBS
9020LIBS="-lsvld  $LIBS"
9021cat >conftest.$ac_ext <<_ACEOF
9022/* confdefs.h.  */
9023_ACEOF
9024cat confdefs.h >>conftest.$ac_ext
9025cat >>conftest.$ac_ext <<_ACEOF
9026/* end confdefs.h.  */
9027
9028/* Override any GCC internal prototype to avoid an error.
9029   Use char because int might match the return type of a GCC
9030   builtin and then its argument prototype would still apply.  */
9031#ifdef __cplusplus
9032extern "C"
9033#endif
9034char dlopen ();
9035int
9036main ()
9037{
9038return dlopen ();
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  ac_cv_lib_svld_dlopen=yes
9062else
9063  echo "$as_me: failed program was:" >&5
9064sed 's/^/| /' conftest.$ac_ext >&5
9065
9066	ac_cv_lib_svld_dlopen=no
9067fi
9068
9069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9070      conftest$ac_exeext conftest.$ac_ext
9071LIBS=$ac_check_lib_save_LIBS
9072fi
9073{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9074echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9075if test $ac_cv_lib_svld_dlopen = yes; then
9076  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9077else
9078  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9079echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9080if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9081  echo $ECHO_N "(cached) $ECHO_C" >&6
9082else
9083  ac_check_lib_save_LIBS=$LIBS
9084LIBS="-ldld  $LIBS"
9085cat >conftest.$ac_ext <<_ACEOF
9086/* confdefs.h.  */
9087_ACEOF
9088cat confdefs.h >>conftest.$ac_ext
9089cat >>conftest.$ac_ext <<_ACEOF
9090/* end confdefs.h.  */
9091
9092/* Override any GCC internal prototype to avoid an error.
9093   Use char because int might match the return type of a GCC
9094   builtin and then its argument prototype would still apply.  */
9095#ifdef __cplusplus
9096extern "C"
9097#endif
9098char dld_link ();
9099int
9100main ()
9101{
9102return dld_link ();
9103  ;
9104  return 0;
9105}
9106_ACEOF
9107rm -f conftest.$ac_objext conftest$ac_exeext
9108if { (ac_try="$ac_link"
9109case "(($ac_try" in
9110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111  *) ac_try_echo=$ac_try;;
9112esac
9113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114  (eval "$ac_link") 2>conftest.er1
9115  ac_status=$?
9116  grep -v '^ *+' conftest.er1 >conftest.err
9117  rm -f conftest.er1
9118  cat conftest.err >&5
9119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120  (exit $ac_status); } && {
9121	 test -z "$ac_c_werror_flag" ||
9122	 test ! -s conftest.err
9123       } && test -s conftest$ac_exeext &&
9124       $as_test_x conftest$ac_exeext; then
9125  ac_cv_lib_dld_dld_link=yes
9126else
9127  echo "$as_me: failed program was:" >&5
9128sed 's/^/| /' conftest.$ac_ext >&5
9129
9130	ac_cv_lib_dld_dld_link=no
9131fi
9132
9133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9134      conftest$ac_exeext conftest.$ac_ext
9135LIBS=$ac_check_lib_save_LIBS
9136fi
9137{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9138echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9139if test $ac_cv_lib_dld_dld_link = yes; then
9140  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9141fi
9142
9143
9144fi
9145
9146
9147fi
9148
9149
9150fi
9151
9152
9153fi
9154
9155
9156fi
9157
9158    ;;
9159  esac
9160
9161  if test "x$lt_cv_dlopen" != xno; then
9162    enable_dlopen=yes
9163  else
9164    enable_dlopen=no
9165  fi
9166
9167  case $lt_cv_dlopen in
9168  dlopen)
9169    save_CPPFLAGS="$CPPFLAGS"
9170    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9171
9172    save_LDFLAGS="$LDFLAGS"
9173    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9174
9175    save_LIBS="$LIBS"
9176    LIBS="$lt_cv_dlopen_libs $LIBS"
9177
9178    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9179echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9180if test "${lt_cv_dlopen_self+set}" = set; then
9181  echo $ECHO_N "(cached) $ECHO_C" >&6
9182else
9183  	  if test "$cross_compiling" = yes; then :
9184  lt_cv_dlopen_self=cross
9185else
9186  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9187  lt_status=$lt_dlunknown
9188  cat > conftest.$ac_ext <<EOF
9189#line 9189 "configure"
9190#include "confdefs.h"
9191
9192#if HAVE_DLFCN_H
9193#include <dlfcn.h>
9194#endif
9195
9196#include <stdio.h>
9197
9198#ifdef RTLD_GLOBAL
9199#  define LT_DLGLOBAL		RTLD_GLOBAL
9200#else
9201#  ifdef DL_GLOBAL
9202#    define LT_DLGLOBAL		DL_GLOBAL
9203#  else
9204#    define LT_DLGLOBAL		0
9205#  endif
9206#endif
9207
9208/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9209   find out it does not work in some platform. */
9210#ifndef LT_DLLAZY_OR_NOW
9211#  ifdef RTLD_LAZY
9212#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9213#  else
9214#    ifdef DL_LAZY
9215#      define LT_DLLAZY_OR_NOW		DL_LAZY
9216#    else
9217#      ifdef RTLD_NOW
9218#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9219#      else
9220#        ifdef DL_NOW
9221#          define LT_DLLAZY_OR_NOW	DL_NOW
9222#        else
9223#          define LT_DLLAZY_OR_NOW	0
9224#        endif
9225#      endif
9226#    endif
9227#  endif
9228#endif
9229
9230#ifdef __cplusplus
9231extern "C" void exit (int);
9232#endif
9233
9234void fnord() { int i=42;}
9235int main ()
9236{
9237  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9238  int status = $lt_dlunknown;
9239
9240  if (self)
9241    {
9242      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9243      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9244      /* dlclose (self); */
9245    }
9246  else
9247    puts (dlerror ());
9248
9249    exit (status);
9250}
9251EOF
9252  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253  (eval $ac_link) 2>&5
9254  ac_status=$?
9255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9257    (./conftest; exit; ) >&5 2>/dev/null
9258    lt_status=$?
9259    case x$lt_status in
9260      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9261      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9262      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9263    esac
9264  else :
9265    # compilation failed
9266    lt_cv_dlopen_self=no
9267  fi
9268fi
9269rm -fr conftest*
9270
9271
9272fi
9273{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9274echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9275
9276    if test "x$lt_cv_dlopen_self" = xyes; then
9277      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9278      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9279echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9280if test "${lt_cv_dlopen_self_static+set}" = set; then
9281  echo $ECHO_N "(cached) $ECHO_C" >&6
9282else
9283  	  if test "$cross_compiling" = yes; then :
9284  lt_cv_dlopen_self_static=cross
9285else
9286  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9287  lt_status=$lt_dlunknown
9288  cat > conftest.$ac_ext <<EOF
9289#line 9289 "configure"
9290#include "confdefs.h"
9291
9292#if HAVE_DLFCN_H
9293#include <dlfcn.h>
9294#endif
9295
9296#include <stdio.h>
9297
9298#ifdef RTLD_GLOBAL
9299#  define LT_DLGLOBAL		RTLD_GLOBAL
9300#else
9301#  ifdef DL_GLOBAL
9302#    define LT_DLGLOBAL		DL_GLOBAL
9303#  else
9304#    define LT_DLGLOBAL		0
9305#  endif
9306#endif
9307
9308/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9309   find out it does not work in some platform. */
9310#ifndef LT_DLLAZY_OR_NOW
9311#  ifdef RTLD_LAZY
9312#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9313#  else
9314#    ifdef DL_LAZY
9315#      define LT_DLLAZY_OR_NOW		DL_LAZY
9316#    else
9317#      ifdef RTLD_NOW
9318#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9319#      else
9320#        ifdef DL_NOW
9321#          define LT_DLLAZY_OR_NOW	DL_NOW
9322#        else
9323#          define LT_DLLAZY_OR_NOW	0
9324#        endif
9325#      endif
9326#    endif
9327#  endif
9328#endif
9329
9330#ifdef __cplusplus
9331extern "C" void exit (int);
9332#endif
9333
9334void fnord() { int i=42;}
9335int main ()
9336{
9337  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9338  int status = $lt_dlunknown;
9339
9340  if (self)
9341    {
9342      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9343      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9344      /* dlclose (self); */
9345    }
9346  else
9347    puts (dlerror ());
9348
9349    exit (status);
9350}
9351EOF
9352  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9353  (eval $ac_link) 2>&5
9354  ac_status=$?
9355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9357    (./conftest; exit; ) >&5 2>/dev/null
9358    lt_status=$?
9359    case x$lt_status in
9360      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9361      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9362      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9363    esac
9364  else :
9365    # compilation failed
9366    lt_cv_dlopen_self_static=no
9367  fi
9368fi
9369rm -fr conftest*
9370
9371
9372fi
9373{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9374echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9375    fi
9376
9377    CPPFLAGS="$save_CPPFLAGS"
9378    LDFLAGS="$save_LDFLAGS"
9379    LIBS="$save_LIBS"
9380    ;;
9381  esac
9382
9383  case $lt_cv_dlopen_self in
9384  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9385  *) enable_dlopen_self=unknown ;;
9386  esac
9387
9388  case $lt_cv_dlopen_self_static in
9389  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9390  *) enable_dlopen_self_static=unknown ;;
9391  esac
9392fi
9393
9394
9395# Report which library types will actually be built
9396{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9397echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9398{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9399echo "${ECHO_T}$can_build_shared" >&6; }
9400
9401{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9402echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9403test "$can_build_shared" = "no" && enable_shared=no
9404
9405# On AIX, shared libraries and static libraries use the same namespace, and
9406# are all built from PIC.
9407case $host_os in
9408aix3*)
9409  test "$enable_shared" = yes && enable_static=no
9410  if test -n "$RANLIB"; then
9411    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9412    postinstall_cmds='$RANLIB $lib'
9413  fi
9414  ;;
9415
9416aix4* | aix5*)
9417  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9418    test "$enable_shared" = yes && enable_static=no
9419  fi
9420    ;;
9421esac
9422{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9423echo "${ECHO_T}$enable_shared" >&6; }
9424
9425{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9426echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9427# Make sure either enable_shared or enable_static is yes.
9428test "$enable_shared" = yes || enable_static=yes
9429{ echo "$as_me:$LINENO: result: $enable_static" >&5
9430echo "${ECHO_T}$enable_static" >&6; }
9431
9432# The else clause should only fire when bootstrapping the
9433# libtool distribution, otherwise you forgot to ship ltmain.sh
9434# with your package, and you will get complaints that there are
9435# no rules to generate ltmain.sh.
9436if test -f "$ltmain"; then
9437  # See if we are running on zsh, and set the options which allow our commands through
9438  # without removal of \ escapes.
9439  if test -n "${ZSH_VERSION+set}" ; then
9440    setopt NO_GLOB_SUBST
9441  fi
9442  # Now quote all the things that may contain metacharacters while being
9443  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9444  # variables and quote the copies for generation of the libtool script.
9445  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9446    SED SHELL STRIP \
9447    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9448    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9449    deplibs_check_method reload_flag reload_cmds need_locks \
9450    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9451    lt_cv_sys_global_symbol_to_c_name_address \
9452    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9453    old_postinstall_cmds old_postuninstall_cmds \
9454    compiler \
9455    CC \
9456    LD \
9457    lt_prog_compiler_wl \
9458    lt_prog_compiler_pic \
9459    lt_prog_compiler_static \
9460    lt_prog_compiler_no_builtin_flag \
9461    export_dynamic_flag_spec \
9462    thread_safe_flag_spec \
9463    whole_archive_flag_spec \
9464    enable_shared_with_static_runtimes \
9465    old_archive_cmds \
9466    old_archive_from_new_cmds \
9467    predep_objects \
9468    postdep_objects \
9469    predeps \
9470    postdeps \
9471    compiler_lib_search_path \
9472    archive_cmds \
9473    archive_expsym_cmds \
9474    postinstall_cmds \
9475    postuninstall_cmds \
9476    old_archive_from_expsyms_cmds \
9477    allow_undefined_flag \
9478    no_undefined_flag \
9479    export_symbols_cmds \
9480    hardcode_libdir_flag_spec \
9481    hardcode_libdir_flag_spec_ld \
9482    hardcode_libdir_separator \
9483    hardcode_automatic \
9484    module_cmds \
9485    module_expsym_cmds \
9486    lt_cv_prog_compiler_c_o \
9487    fix_srcfile_path \
9488    exclude_expsyms \
9489    include_expsyms; do
9490
9491    case $var in
9492    old_archive_cmds | \
9493    old_archive_from_new_cmds | \
9494    archive_cmds | \
9495    archive_expsym_cmds | \
9496    module_cmds | \
9497    module_expsym_cmds | \
9498    old_archive_from_expsyms_cmds | \
9499    export_symbols_cmds | \
9500    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9501    postinstall_cmds | postuninstall_cmds | \
9502    old_postinstall_cmds | old_postuninstall_cmds | \
9503    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9504      # Double-quote double-evaled strings.
9505      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9506      ;;
9507    *)
9508      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9509      ;;
9510    esac
9511  done
9512
9513  case $lt_echo in
9514  *'\$0 --fallback-echo"')
9515    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9516    ;;
9517  esac
9518
9519cfgfile="${ofile}T"
9520  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9521  $rm -f "$cfgfile"
9522  { echo "$as_me:$LINENO: creating $ofile" >&5
9523echo "$as_me: creating $ofile" >&6;}
9524
9525  cat <<__EOF__ >> "$cfgfile"
9526#! $SHELL
9527
9528# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9529# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9530# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9531#
9532# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
9533# Free Software Foundation, Inc.
9534#
9535# This file is part of GNU Libtool:
9536# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9537#
9538# This program is free software; you can redistribute it and/or modify
9539# it under the terms of the GNU General Public License as published by
9540# the Free Software Foundation; either version 2 of the License, or
9541# (at your option) any later version.
9542#
9543# This program is distributed in the hope that it will be useful, but
9544# WITHOUT ANY WARRANTY; without even the implied warranty of
9545# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9546# General Public License for more details.
9547#
9548# You should have received a copy of the GNU General Public License
9549# along with this program; if not, write to the Free Software
9550# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9551#
9552# As a special exception to the GNU General Public License, if you
9553# distribute this file as part of a program that contains a
9554# configuration script generated by Autoconf, you may include it under
9555# the same distribution terms that you use for the rest of that program.
9556
9557# A sed program that does not truncate output.
9558SED=$lt_SED
9559
9560# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9561Xsed="$SED -e 1s/^X//"
9562
9563# The HP-UX ksh and POSIX shell print the target directory to stdout
9564# if CDPATH is set.
9565(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9566
9567# The names of the tagged configurations supported by this script.
9568available_tags=
9569
9570# ### BEGIN LIBTOOL CONFIG
9571
9572# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9573
9574# Shell to use when invoking shell scripts.
9575SHELL=$lt_SHELL
9576
9577# Whether or not to build shared libraries.
9578build_libtool_libs=$enable_shared
9579
9580# Whether or not to build static libraries.
9581build_old_libs=$enable_static
9582
9583# Whether or not to add -lc for building shared libraries.
9584build_libtool_need_lc=$archive_cmds_need_lc
9585
9586# Whether or not to disallow shared libs when runtime libs are static
9587allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9588
9589# Whether or not to optimize for fast installation.
9590fast_install=$enable_fast_install
9591
9592# The host system.
9593host_alias=$host_alias
9594host=$host
9595host_os=$host_os
9596
9597# The build system.
9598build_alias=$build_alias
9599build=$build
9600build_os=$build_os
9601
9602# An echo program that does not interpret backslashes.
9603echo=$lt_echo
9604
9605# The archiver.
9606AR=$lt_AR
9607AR_FLAGS=$lt_AR_FLAGS
9608
9609# A C compiler.
9610LTCC=$lt_LTCC
9611
9612# LTCC compiler flags.
9613LTCFLAGS=$lt_LTCFLAGS
9614
9615# A language-specific compiler.
9616CC=$lt_compiler
9617
9618# Is the compiler the GNU C compiler?
9619with_gcc=$GCC
9620
9621# An ERE matcher.
9622EGREP=$lt_EGREP
9623
9624# The linker used to build libraries.
9625LD=$lt_LD
9626
9627# Whether we need hard or soft links.
9628LN_S=$lt_LN_S
9629
9630# A BSD-compatible nm program.
9631NM=$lt_NM
9632
9633# A symbol stripping program
9634STRIP=$lt_STRIP
9635
9636# Used to examine libraries when file_magic_cmd begins "file"
9637MAGIC_CMD=$MAGIC_CMD
9638
9639# Used on cygwin: DLL creation program.
9640DLLTOOL="$DLLTOOL"
9641
9642# Used on cygwin: object dumper.
9643OBJDUMP="$OBJDUMP"
9644
9645# Used on cygwin: assembler.
9646AS="$AS"
9647
9648# The name of the directory that contains temporary libtool files.
9649objdir=$objdir
9650
9651# How to create reloadable object files.
9652reload_flag=$lt_reload_flag
9653reload_cmds=$lt_reload_cmds
9654
9655# How to pass a linker flag through the compiler.
9656wl=$lt_lt_prog_compiler_wl
9657
9658# Object file suffix (normally "o").
9659objext="$ac_objext"
9660
9661# Old archive suffix (normally "a").
9662libext="$libext"
9663
9664# Shared library suffix (normally ".so").
9665shrext_cmds='$shrext_cmds'
9666
9667# Executable file suffix (normally "").
9668exeext="$exeext"
9669
9670# Additional compiler flags for building library objects.
9671pic_flag=$lt_lt_prog_compiler_pic
9672pic_mode=$pic_mode
9673
9674# What is the maximum length of a command?
9675max_cmd_len=$lt_cv_sys_max_cmd_len
9676
9677# Does compiler simultaneously support -c and -o options?
9678compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9679
9680# Must we lock files when doing compilation?
9681need_locks=$lt_need_locks
9682
9683# Do we need the lib prefix for modules?
9684need_lib_prefix=$need_lib_prefix
9685
9686# Do we need a version for libraries?
9687need_version=$need_version
9688
9689# Whether dlopen is supported.
9690dlopen_support=$enable_dlopen
9691
9692# Whether dlopen of programs is supported.
9693dlopen_self=$enable_dlopen_self
9694
9695# Whether dlopen of statically linked programs is supported.
9696dlopen_self_static=$enable_dlopen_self_static
9697
9698# Compiler flag to prevent dynamic linking.
9699link_static_flag=$lt_lt_prog_compiler_static
9700
9701# Compiler flag to turn off builtin functions.
9702no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9703
9704# Compiler flag to allow reflexive dlopens.
9705export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9706
9707# Compiler flag to generate shared objects directly from archives.
9708whole_archive_flag_spec=$lt_whole_archive_flag_spec
9709
9710# Compiler flag to generate thread-safe objects.
9711thread_safe_flag_spec=$lt_thread_safe_flag_spec
9712
9713# Library versioning type.
9714version_type=$version_type
9715
9716# Format of library name prefix.
9717libname_spec=$lt_libname_spec
9718
9719# List of archive names.  First name is the real one, the rest are links.
9720# The last name is the one that the linker finds with -lNAME.
9721library_names_spec=$lt_library_names_spec
9722
9723# The coded name of the library, if different from the real name.
9724soname_spec=$lt_soname_spec
9725
9726# Commands used to build and install an old-style archive.
9727RANLIB=$lt_RANLIB
9728old_archive_cmds=$lt_old_archive_cmds
9729old_postinstall_cmds=$lt_old_postinstall_cmds
9730old_postuninstall_cmds=$lt_old_postuninstall_cmds
9731
9732# Create an old-style archive from a shared archive.
9733old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9734
9735# Create a temporary old-style archive to link instead of a shared archive.
9736old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9737
9738# Commands used to build and install a shared archive.
9739archive_cmds=$lt_archive_cmds
9740archive_expsym_cmds=$lt_archive_expsym_cmds
9741postinstall_cmds=$lt_postinstall_cmds
9742postuninstall_cmds=$lt_postuninstall_cmds
9743
9744# Commands used to build a loadable module (assumed same as above if empty)
9745module_cmds=$lt_module_cmds
9746module_expsym_cmds=$lt_module_expsym_cmds
9747
9748# Commands to strip libraries.
9749old_striplib=$lt_old_striplib
9750striplib=$lt_striplib
9751
9752# Dependencies to place before the objects being linked to create a
9753# shared library.
9754predep_objects=$lt_predep_objects
9755
9756# Dependencies to place after the objects being linked to create a
9757# shared library.
9758postdep_objects=$lt_postdep_objects
9759
9760# Dependencies to place before the objects being linked to create a
9761# shared library.
9762predeps=$lt_predeps
9763
9764# Dependencies to place after the objects being linked to create a
9765# shared library.
9766postdeps=$lt_postdeps
9767
9768# The library search path used internally by the compiler when linking
9769# a shared library.
9770compiler_lib_search_path=$lt_compiler_lib_search_path
9771
9772# Method to check whether dependent libraries are shared objects.
9773deplibs_check_method=$lt_deplibs_check_method
9774
9775# Command to use when deplibs_check_method == file_magic.
9776file_magic_cmd=$lt_file_magic_cmd
9777
9778# Flag that allows shared libraries with undefined symbols to be built.
9779allow_undefined_flag=$lt_allow_undefined_flag
9780
9781# Flag that forces no undefined symbols.
9782no_undefined_flag=$lt_no_undefined_flag
9783
9784# Commands used to finish a libtool library installation in a directory.
9785finish_cmds=$lt_finish_cmds
9786
9787# Same as above, but a single script fragment to be evaled but not shown.
9788finish_eval=$lt_finish_eval
9789
9790# Take the output of nm and produce a listing of raw symbols and C names.
9791global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9792
9793# Transform the output of nm in a proper C declaration
9794global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9795
9796# Transform the output of nm in a C name address pair
9797global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9798
9799# This is the shared library runtime path variable.
9800runpath_var=$runpath_var
9801
9802# This is the shared library path variable.
9803shlibpath_var=$shlibpath_var
9804
9805# Is shlibpath searched before the hard-coded library search path?
9806shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9807
9808# How to hardcode a shared library path into an executable.
9809hardcode_action=$hardcode_action
9810
9811# Whether we should hardcode library paths into libraries.
9812hardcode_into_libs=$hardcode_into_libs
9813
9814# Flag to hardcode \$libdir into a binary during linking.
9815# This must work even if \$libdir does not exist.
9816hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9817
9818# If ld is used when linking, flag to hardcode \$libdir into
9819# a binary during linking. This must work even if \$libdir does
9820# not exist.
9821hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9822
9823# Whether we need a single -rpath flag with a separated argument.
9824hardcode_libdir_separator=$lt_hardcode_libdir_separator
9825
9826# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9827# resulting binary.
9828hardcode_direct=$hardcode_direct
9829
9830# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9831# resulting binary.
9832hardcode_minus_L=$hardcode_minus_L
9833
9834# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9835# the resulting binary.
9836hardcode_shlibpath_var=$hardcode_shlibpath_var
9837
9838# Set to yes if building a shared library automatically hardcodes DIR into the library
9839# and all subsequent libraries and executables linked against it.
9840hardcode_automatic=$hardcode_automatic
9841
9842# Variables whose values should be saved in libtool wrapper scripts and
9843# restored at relink time.
9844variables_saved_for_relink="$variables_saved_for_relink"
9845
9846# Whether libtool must link a program against all its dependency libraries.
9847link_all_deplibs=$link_all_deplibs
9848
9849# Compile-time system search path for libraries
9850sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9851
9852# Run-time system search path for libraries
9853sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9854
9855# Fix the shell variable \$srcfile for the compiler.
9856fix_srcfile_path=$lt_fix_srcfile_path
9857
9858# Set to yes if exported symbols are required.
9859always_export_symbols=$always_export_symbols
9860
9861# The commands to list exported symbols.
9862export_symbols_cmds=$lt_export_symbols_cmds
9863
9864# The commands to extract the exported symbol list from a shared archive.
9865extract_expsyms_cmds=$lt_extract_expsyms_cmds
9866
9867# Symbols that should not be listed in the preloaded symbols.
9868exclude_expsyms=$lt_exclude_expsyms
9869
9870# Symbols that must always be exported.
9871include_expsyms=$lt_include_expsyms
9872
9873# ### END LIBTOOL CONFIG
9874
9875__EOF__
9876
9877
9878  case $host_os in
9879  aix3*)
9880    cat <<\EOF >> "$cfgfile"
9881
9882# AIX sometimes has problems with the GCC collect2 program.  For some
9883# reason, if we set the COLLECT_NAMES environment variable, the problems
9884# vanish in a puff of smoke.
9885if test "X${COLLECT_NAMES+set}" != Xset; then
9886  COLLECT_NAMES=
9887  export COLLECT_NAMES
9888fi
9889EOF
9890    ;;
9891  esac
9892
9893  # We use sed instead of cat because bash on DJGPP gets confused if
9894  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9895  # text mode, it properly converts lines to CR/LF.  This bash problem
9896  # is reportedly fixed, but why not run on old versions too?
9897  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9898
9899  mv -f "$cfgfile" "$ofile" || \
9900    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9901  chmod +x "$ofile"
9902
9903else
9904  # If there is no Makefile yet, we rely on a make rule to execute
9905  # `config.status --recheck' to rerun these tests and create the
9906  # libtool script then.
9907  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9908  if test -f "$ltmain_in"; then
9909    test -f Makefile && make "$ltmain"
9910  fi
9911fi
9912
9913
9914ac_ext=c
9915ac_cpp='$CPP $CPPFLAGS'
9916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9918ac_compiler_gnu=$ac_cv_c_compiler_gnu
9919
9920CC="$lt_save_CC"
9921
9922
9923# Check whether --with-tags was given.
9924if test "${with_tags+set}" = set; then
9925  withval=$with_tags; tagnames="$withval"
9926fi
9927
9928
9929if test -f "$ltmain" && test -n "$tagnames"; then
9930  if test ! -f "${ofile}"; then
9931    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9932echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9933  fi
9934
9935  if test -z "$LTCC"; then
9936    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9937    if test -z "$LTCC"; then
9938      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9939echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9940    else
9941      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9942echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9943    fi
9944  fi
9945  if test -z "$LTCFLAGS"; then
9946    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9947  fi
9948
9949  # Extract list of available tagged configurations in $ofile.
9950  # Note that this assumes the entire list is on one line.
9951  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9952
9953  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9954  for tagname in $tagnames; do
9955    IFS="$lt_save_ifs"
9956    # Check whether tagname contains only valid characters
9957    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9958    "") ;;
9959    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9960echo "$as_me: error: invalid tag name: $tagname" >&2;}
9961   { (exit 1); exit 1; }; }
9962	;;
9963    esac
9964
9965    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9966    then
9967      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9968echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9969   { (exit 1); exit 1; }; }
9970    fi
9971
9972    # Update the list of available tags.
9973    if test -n "$tagname"; then
9974      echo appending configuration tag \"$tagname\" to $ofile
9975
9976      case $tagname in
9977      CXX)
9978	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9979	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9980	    (test "X$CXX" != "Xg++"))) ; then
9981	  ac_ext=cpp
9982ac_cpp='$CXXCPP $CPPFLAGS'
9983ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9984ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9985ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9986
9987
9988
9989
9990archive_cmds_need_lc_CXX=no
9991allow_undefined_flag_CXX=
9992always_export_symbols_CXX=no
9993archive_expsym_cmds_CXX=
9994export_dynamic_flag_spec_CXX=
9995hardcode_direct_CXX=no
9996hardcode_libdir_flag_spec_CXX=
9997hardcode_libdir_flag_spec_ld_CXX=
9998hardcode_libdir_separator_CXX=
9999hardcode_minus_L_CXX=no
10000hardcode_shlibpath_var_CXX=unsupported
10001hardcode_automatic_CXX=no
10002module_cmds_CXX=
10003module_expsym_cmds_CXX=
10004link_all_deplibs_CXX=unknown
10005old_archive_cmds_CXX=$old_archive_cmds
10006no_undefined_flag_CXX=
10007whole_archive_flag_spec_CXX=
10008enable_shared_with_static_runtimes_CXX=no
10009
10010# Dependencies to place before and after the object being linked:
10011predep_objects_CXX=
10012postdep_objects_CXX=
10013predeps_CXX=
10014postdeps_CXX=
10015compiler_lib_search_path_CXX=
10016
10017# Source file extension for C++ test sources.
10018ac_ext=cpp
10019
10020# Object file extension for compiled C++ test sources.
10021objext=o
10022objext_CXX=$objext
10023
10024# Code to be used in simple compile tests
10025lt_simple_compile_test_code="int some_variable = 0;"
10026
10027# Code to be used in simple link tests
10028lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10029
10030# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10031
10032# If no C compiler was specified, use CC.
10033LTCC=${LTCC-"$CC"}
10034
10035# If no C compiler flags were specified, use CFLAGS.
10036LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10037
10038# Allow CC to be a program name with arguments.
10039compiler=$CC
10040
10041
10042# save warnings/boilerplate of simple test code
10043ac_outfile=conftest.$ac_objext
10044echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10045eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10046_lt_compiler_boilerplate=`cat conftest.err`
10047$rm conftest*
10048
10049ac_outfile=conftest.$ac_objext
10050echo "$lt_simple_link_test_code" >conftest.$ac_ext
10051eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10052_lt_linker_boilerplate=`cat conftest.err`
10053$rm conftest*
10054
10055
10056# Allow CC to be a program name with arguments.
10057lt_save_CC=$CC
10058lt_save_LD=$LD
10059lt_save_GCC=$GCC
10060GCC=$GXX
10061lt_save_with_gnu_ld=$with_gnu_ld
10062lt_save_path_LD=$lt_cv_path_LD
10063if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10064  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10065else
10066  $as_unset lt_cv_prog_gnu_ld
10067fi
10068if test -n "${lt_cv_path_LDCXX+set}"; then
10069  lt_cv_path_LD=$lt_cv_path_LDCXX
10070else
10071  $as_unset lt_cv_path_LD
10072fi
10073test -z "${LDCXX+set}" || LD=$LDCXX
10074CC=${CXX-"c++"}
10075compiler=$CC
10076compiler_CXX=$CC
10077for cc_temp in $compiler""; do
10078  case $cc_temp in
10079    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10080    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10081    \-*) ;;
10082    *) break;;
10083  esac
10084done
10085cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10086
10087
10088# We don't want -fno-exception wen compiling C++ code, so set the
10089# no_builtin_flag separately
10090if test "$GXX" = yes; then
10091  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10092else
10093  lt_prog_compiler_no_builtin_flag_CXX=
10094fi
10095
10096if test "$GXX" = yes; then
10097  # Set up default GNU C++ configuration
10098
10099
10100# Check whether --with-gnu-ld was given.
10101if test "${with_gnu_ld+set}" = set; then
10102  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10103else
10104  with_gnu_ld=no
10105fi
10106
10107ac_prog=ld
10108if test "$GCC" = yes; then
10109  # Check if gcc -print-prog-name=ld gives a path.
10110  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10111echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10112  case $host in
10113  *-*-mingw*)
10114    # gcc leaves a trailing carriage return which upsets mingw
10115    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10116  *)
10117    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10118  esac
10119  case $ac_prog in
10120    # Accept absolute paths.
10121    [\\/]* | ?:[\\/]*)
10122      re_direlt='/[^/][^/]*/\.\./'
10123      # Canonicalize the pathname of ld
10124      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10125      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10126	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10127      done
10128      test -z "$LD" && LD="$ac_prog"
10129      ;;
10130  "")
10131    # If it fails, then pretend we aren't using GCC.
10132    ac_prog=ld
10133    ;;
10134  *)
10135    # If it is relative, then search for the first ld in PATH.
10136    with_gnu_ld=unknown
10137    ;;
10138  esac
10139elif test "$with_gnu_ld" = yes; then
10140  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10141echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10142else
10143  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10144echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10145fi
10146if test "${lt_cv_path_LD+set}" = set; then
10147  echo $ECHO_N "(cached) $ECHO_C" >&6
10148else
10149  if test -z "$LD"; then
10150  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10151  for ac_dir in $PATH; do
10152    IFS="$lt_save_ifs"
10153    test -z "$ac_dir" && ac_dir=.
10154    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10155      lt_cv_path_LD="$ac_dir/$ac_prog"
10156      # Check to see if the program is GNU ld.  I'd rather use --version,
10157      # but apparently some variants of GNU ld only accept -v.
10158      # Break only if it was the GNU/non-GNU ld that we prefer.
10159      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10160      *GNU* | *'with BFD'*)
10161	test "$with_gnu_ld" != no && break
10162	;;
10163      *)
10164	test "$with_gnu_ld" != yes && break
10165	;;
10166      esac
10167    fi
10168  done
10169  IFS="$lt_save_ifs"
10170else
10171  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10172fi
10173fi
10174
10175LD="$lt_cv_path_LD"
10176if test -n "$LD"; then
10177  { echo "$as_me:$LINENO: result: $LD" >&5
10178echo "${ECHO_T}$LD" >&6; }
10179else
10180  { echo "$as_me:$LINENO: result: no" >&5
10181echo "${ECHO_T}no" >&6; }
10182fi
10183test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10184echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10185   { (exit 1); exit 1; }; }
10186{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10187echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10188if test "${lt_cv_prog_gnu_ld+set}" = set; then
10189  echo $ECHO_N "(cached) $ECHO_C" >&6
10190else
10191  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10192case `$LD -v 2>&1 </dev/null` in
10193*GNU* | *'with BFD'*)
10194  lt_cv_prog_gnu_ld=yes
10195  ;;
10196*)
10197  lt_cv_prog_gnu_ld=no
10198  ;;
10199esac
10200fi
10201{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10202echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10203with_gnu_ld=$lt_cv_prog_gnu_ld
10204
10205
10206
10207  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10208  # archiving commands below assume that GNU ld is being used.
10209  if test "$with_gnu_ld" = yes; then
10210    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10211    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'
10212
10213    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10214    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10215
10216    # If archive_cmds runs LD, not CC, wlarc should be empty
10217    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10218    #     investigate it a little bit more. (MM)
10219    wlarc='${wl}'
10220
10221    # ancient GNU ld didn't support --whole-archive et. al.
10222    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10223	grep 'no-whole-archive' > /dev/null; then
10224      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10225    else
10226      whole_archive_flag_spec_CXX=
10227    fi
10228  else
10229    with_gnu_ld=no
10230    wlarc=
10231
10232    # A generic and very simple default shared library creation
10233    # command for GNU C++ for the case where it uses the native
10234    # linker, instead of GNU ld.  If possible, this setting should
10235    # overridden to take advantage of the native linker features on
10236    # the platform it is being used on.
10237    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10238  fi
10239
10240  # Commands to make compiler produce verbose output that lists
10241  # what "hidden" libraries, object files and flags are used when
10242  # linking a shared library.
10243  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10244
10245else
10246  GXX=no
10247  with_gnu_ld=no
10248  wlarc=
10249fi
10250
10251# PORTME: fill in a description of your system's C++ link characteristics
10252{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10253echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10254ld_shlibs_CXX=yes
10255case $host_os in
10256  aix3*)
10257    # FIXME: insert proper C++ library support
10258    ld_shlibs_CXX=no
10259    ;;
10260  aix4* | aix5*)
10261    if test "$host_cpu" = ia64; then
10262      # On IA64, the linker does run time linking by default, so we don't
10263      # have to do anything special.
10264      aix_use_runtimelinking=no
10265      exp_sym_flag='-Bexport'
10266      no_entry_flag=""
10267    else
10268      aix_use_runtimelinking=no
10269
10270      # Test if we are trying to use run time linking or normal
10271      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10272      # need to do runtime linking.
10273      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10274	for ld_flag in $LDFLAGS; do
10275	  case $ld_flag in
10276	  *-brtl*)
10277	    aix_use_runtimelinking=yes
10278	    break
10279	    ;;
10280	  esac
10281	done
10282	;;
10283      esac
10284
10285      exp_sym_flag='-bexport'
10286      no_entry_flag='-bnoentry'
10287    fi
10288
10289    # When large executables or shared objects are built, AIX ld can
10290    # have problems creating the table of contents.  If linking a library
10291    # or program results in "error TOC overflow" add -mminimal-toc to
10292    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10293    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10294
10295    archive_cmds_CXX=''
10296    hardcode_direct_CXX=yes
10297    hardcode_libdir_separator_CXX=':'
10298    link_all_deplibs_CXX=yes
10299
10300    if test "$GXX" = yes; then
10301      case $host_os in aix4.[012]|aix4.[012].*)
10302      # We only want to do this on AIX 4.2 and lower, the check
10303      # below for broken collect2 doesn't work under 4.3+
10304	collect2name=`${CC} -print-prog-name=collect2`
10305	if test -f "$collect2name" && \
10306	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10307	then
10308	  # We have reworked collect2
10309	  :
10310	else
10311	  # We have old collect2
10312	  hardcode_direct_CXX=unsupported
10313	  # It fails to find uninstalled libraries when the uninstalled
10314	  # path is not listed in the libpath.  Setting hardcode_minus_L
10315	  # to unsupported forces relinking
10316	  hardcode_minus_L_CXX=yes
10317	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10318	  hardcode_libdir_separator_CXX=
10319	fi
10320	;;
10321      esac
10322      shared_flag='-shared'
10323      if test "$aix_use_runtimelinking" = yes; then
10324	shared_flag="$shared_flag "'${wl}-G'
10325      fi
10326    else
10327      # not using gcc
10328      if test "$host_cpu" = ia64; then
10329	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10330	# chokes on -Wl,-G. The following line is correct:
10331	shared_flag='-G'
10332      else
10333	if test "$aix_use_runtimelinking" = yes; then
10334	  shared_flag='${wl}-G'
10335	else
10336	  shared_flag='${wl}-bM:SRE'
10337	fi
10338      fi
10339    fi
10340
10341    # It seems that -bexpall does not export symbols beginning with
10342    # underscore (_), so it is better to generate a list of symbols to export.
10343    always_export_symbols_CXX=yes
10344    if test "$aix_use_runtimelinking" = yes; then
10345      # Warning - without using the other runtime loading flags (-brtl),
10346      # -berok will link without error, but may produce a broken library.
10347      allow_undefined_flag_CXX='-berok'
10348      # Determine the default libpath from the value encoded in an empty executable.
10349      cat >conftest.$ac_ext <<_ACEOF
10350/* confdefs.h.  */
10351_ACEOF
10352cat confdefs.h >>conftest.$ac_ext
10353cat >>conftest.$ac_ext <<_ACEOF
10354/* end confdefs.h.  */
10355
10356int
10357main ()
10358{
10359
10360  ;
10361  return 0;
10362}
10363_ACEOF
10364rm -f conftest.$ac_objext conftest$ac_exeext
10365if { (ac_try="$ac_link"
10366case "(($ac_try" in
10367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368  *) ac_try_echo=$ac_try;;
10369esac
10370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371  (eval "$ac_link") 2>conftest.er1
10372  ac_status=$?
10373  grep -v '^ *+' conftest.er1 >conftest.err
10374  rm -f conftest.er1
10375  cat conftest.err >&5
10376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377  (exit $ac_status); } && {
10378	 test -z "$ac_cxx_werror_flag" ||
10379	 test ! -s conftest.err
10380       } && test -s conftest$ac_exeext &&
10381       $as_test_x conftest$ac_exeext; then
10382
10383lt_aix_libpath_sed='
10384    /Import File Strings/,/^$/ {
10385	/^0/ {
10386	    s/^0  *\(.*\)$/\1/
10387	    p
10388	}
10389    }'
10390aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10391# Check for a 64-bit object if we didn't find anything.
10392if test -z "$aix_libpath"; then
10393  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10394fi
10395else
10396  echo "$as_me: failed program was:" >&5
10397sed 's/^/| /' conftest.$ac_ext >&5
10398
10399
10400fi
10401
10402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10403      conftest$ac_exeext conftest.$ac_ext
10404if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10405
10406      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10407
10408      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"
10409     else
10410      if test "$host_cpu" = ia64; then
10411	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10412	allow_undefined_flag_CXX="-z nodefs"
10413	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"
10414      else
10415	# Determine the default libpath from the value encoded in an empty executable.
10416	cat >conftest.$ac_ext <<_ACEOF
10417/* confdefs.h.  */
10418_ACEOF
10419cat confdefs.h >>conftest.$ac_ext
10420cat >>conftest.$ac_ext <<_ACEOF
10421/* end confdefs.h.  */
10422
10423int
10424main ()
10425{
10426
10427  ;
10428  return 0;
10429}
10430_ACEOF
10431rm -f conftest.$ac_objext conftest$ac_exeext
10432if { (ac_try="$ac_link"
10433case "(($ac_try" in
10434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435  *) ac_try_echo=$ac_try;;
10436esac
10437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438  (eval "$ac_link") 2>conftest.er1
10439  ac_status=$?
10440  grep -v '^ *+' conftest.er1 >conftest.err
10441  rm -f conftest.er1
10442  cat conftest.err >&5
10443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444  (exit $ac_status); } && {
10445	 test -z "$ac_cxx_werror_flag" ||
10446	 test ! -s conftest.err
10447       } && test -s conftest$ac_exeext &&
10448       $as_test_x conftest$ac_exeext; then
10449
10450lt_aix_libpath_sed='
10451    /Import File Strings/,/^$/ {
10452	/^0/ {
10453	    s/^0  *\(.*\)$/\1/
10454	    p
10455	}
10456    }'
10457aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10458# Check for a 64-bit object if we didn't find anything.
10459if test -z "$aix_libpath"; then
10460  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10461fi
10462else
10463  echo "$as_me: failed program was:" >&5
10464sed 's/^/| /' conftest.$ac_ext >&5
10465
10466
10467fi
10468
10469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10470      conftest$ac_exeext conftest.$ac_ext
10471if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10472
10473	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10474	# Warning - without using the other run time loading flags,
10475	# -berok will link without error, but may produce a broken library.
10476	no_undefined_flag_CXX=' ${wl}-bernotok'
10477	allow_undefined_flag_CXX=' ${wl}-berok'
10478	# Exported symbols can be pulled into shared objects from archives
10479	whole_archive_flag_spec_CXX='$convenience'
10480	archive_cmds_need_lc_CXX=yes
10481	# This is similar to how AIX traditionally builds its shared libraries.
10482	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'
10483      fi
10484    fi
10485    ;;
10486
10487  beos*)
10488    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10489      allow_undefined_flag_CXX=unsupported
10490      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10491      # support --undefined.  This deserves some investigation.  FIXME
10492      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10493    else
10494      ld_shlibs_CXX=no
10495    fi
10496    ;;
10497
10498  chorus*)
10499    case $cc_basename in
10500      *)
10501	# FIXME: insert proper C++ library support
10502	ld_shlibs_CXX=no
10503	;;
10504    esac
10505    ;;
10506
10507  cygwin* | mingw* | pw32*)
10508    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10509    # as there is no search path for DLLs.
10510    hardcode_libdir_flag_spec_CXX='-L$libdir'
10511    allow_undefined_flag_CXX=unsupported
10512    always_export_symbols_CXX=no
10513    enable_shared_with_static_runtimes_CXX=yes
10514
10515    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10516      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'
10517      # If the export-symbols file already is a .def file (1st line
10518      # is EXPORTS), use it as is; otherwise, prepend...
10519      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10520	cp $export_symbols $output_objdir/$soname.def;
10521      else
10522	echo EXPORTS > $output_objdir/$soname.def;
10523	cat $export_symbols >> $output_objdir/$soname.def;
10524      fi~
10525      $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'
10526    else
10527      ld_shlibs_CXX=no
10528    fi
10529  ;;
10530      darwin* | rhapsody*)
10531        case $host_os in
10532        rhapsody* | darwin1.[012])
10533         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10534         ;;
10535       *) # Darwin 1.3 on
10536         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10537           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10538         else
10539           case ${MACOSX_DEPLOYMENT_TARGET} in
10540             10.[012])
10541               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10542               ;;
10543             10.*)
10544               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10545               ;;
10546           esac
10547         fi
10548         ;;
10549        esac
10550      archive_cmds_need_lc_CXX=no
10551      hardcode_direct_CXX=no
10552      hardcode_automatic_CXX=yes
10553      hardcode_shlibpath_var_CXX=unsupported
10554      whole_archive_flag_spec_CXX=''
10555      link_all_deplibs_CXX=yes
10556
10557    if test "$GXX" = yes ; then
10558      lt_int_apple_cc_single_mod=no
10559      output_verbose_link_cmd='echo'
10560      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10561       lt_int_apple_cc_single_mod=yes
10562      fi
10563      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10564       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10565      else
10566          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'
10567        fi
10568        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10569        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10570          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10571            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}'
10572          else
10573            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}'
10574          fi
10575            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}'
10576      else
10577      case $cc_basename in
10578        xlc*)
10579         output_verbose_link_cmd='echo'
10580          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10581          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10582          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10583          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10584          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}'
10585          ;;
10586       *)
10587         ld_shlibs_CXX=no
10588          ;;
10589      esac
10590      fi
10591        ;;
10592
10593  dgux*)
10594    case $cc_basename in
10595      ec++*)
10596	# FIXME: insert proper C++ library support
10597	ld_shlibs_CXX=no
10598	;;
10599      ghcx*)
10600	# Green Hills C++ Compiler
10601	# FIXME: insert proper C++ library support
10602	ld_shlibs_CXX=no
10603	;;
10604      *)
10605	# FIXME: insert proper C++ library support
10606	ld_shlibs_CXX=no
10607	;;
10608    esac
10609    ;;
10610  freebsd[12]*)
10611    # C++ shared libraries reported to be fairly broken before switch to ELF
10612    ld_shlibs_CXX=no
10613    ;;
10614  freebsd-elf*)
10615    archive_cmds_need_lc_CXX=no
10616    ;;
10617  freebsd* | dragonfly*)
10618    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10619    # conventions
10620    ld_shlibs_CXX=yes
10621    ;;
10622  gnu*)
10623    ;;
10624  hpux9*)
10625    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10626    hardcode_libdir_separator_CXX=:
10627    export_dynamic_flag_spec_CXX='${wl}-E'
10628    hardcode_direct_CXX=yes
10629    hardcode_minus_L_CXX=yes # Not in the search PATH,
10630				# but as the default
10631				# location of the library.
10632
10633    case $cc_basename in
10634    CC*)
10635      # FIXME: insert proper C++ library support
10636      ld_shlibs_CXX=no
10637      ;;
10638    aCC*)
10639      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'
10640      # Commands to make compiler produce verbose output that lists
10641      # what "hidden" libraries, object files and flags are used when
10642      # linking a shared library.
10643      #
10644      # There doesn't appear to be a way to prevent this compiler from
10645      # explicitly linking system object files so we need to strip them
10646      # from the output so that they don't get included in the library
10647      # dependencies.
10648      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'
10649      ;;
10650    *)
10651      if test "$GXX" = yes; then
10652        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'
10653      else
10654        # FIXME: insert proper C++ library support
10655        ld_shlibs_CXX=no
10656      fi
10657      ;;
10658    esac
10659    ;;
10660  hpux10*|hpux11*)
10661    if test $with_gnu_ld = no; then
10662      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10663      hardcode_libdir_separator_CXX=:
10664
10665      case $host_cpu in
10666      hppa*64*|ia64*) ;;
10667      *)
10668	export_dynamic_flag_spec_CXX='${wl}-E'
10669        ;;
10670      esac
10671    fi
10672    case $host_cpu in
10673    hppa*64*|ia64*)
10674      hardcode_direct_CXX=no
10675      hardcode_shlibpath_var_CXX=no
10676      ;;
10677    *)
10678      hardcode_direct_CXX=yes
10679      hardcode_minus_L_CXX=yes # Not in the search PATH,
10680					      # but as the default
10681					      # location of the library.
10682      ;;
10683    esac
10684
10685    case $cc_basename in
10686      CC*)
10687	# FIXME: insert proper C++ library support
10688	ld_shlibs_CXX=no
10689	;;
10690      aCC*)
10691	case $host_cpu in
10692	hppa*64*)
10693	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10694	  ;;
10695	ia64*)
10696	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10697	  ;;
10698	*)
10699	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10700	  ;;
10701	esac
10702	# Commands to make compiler produce verbose output that lists
10703	# what "hidden" libraries, object files and flags are used when
10704	# linking a shared library.
10705	#
10706	# There doesn't appear to be a way to prevent this compiler from
10707	# explicitly linking system object files so we need to strip them
10708	# from the output so that they don't get included in the library
10709	# dependencies.
10710	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'
10711	;;
10712      *)
10713	if test "$GXX" = yes; then
10714	  if test $with_gnu_ld = no; then
10715	    case $host_cpu in
10716	    hppa*64*)
10717	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10718	      ;;
10719	    ia64*)
10720	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10721	      ;;
10722	    *)
10723	      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'
10724	      ;;
10725	    esac
10726	  fi
10727	else
10728	  # FIXME: insert proper C++ library support
10729	  ld_shlibs_CXX=no
10730	fi
10731	;;
10732    esac
10733    ;;
10734  interix[3-9]*)
10735    hardcode_direct_CXX=no
10736    hardcode_shlibpath_var_CXX=no
10737    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10738    export_dynamic_flag_spec_CXX='${wl}-E'
10739    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10740    # Instead, shared libraries are loaded at an image base (0x10000000 by
10741    # default) and relocated if they conflict, which is a slow very memory
10742    # consuming and fragmenting process.  To avoid this, we pick a random,
10743    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10744    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10745    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'
10746    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'
10747    ;;
10748  irix5* | irix6*)
10749    case $cc_basename in
10750      CC*)
10751	# SGI C++
10752	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'
10753
10754	# Archives containing C++ object files must be created using
10755	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10756	# necessary to make sure instantiated templates are included
10757	# in the archive.
10758	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10759	;;
10760      *)
10761	if test "$GXX" = yes; then
10762	  if test "$with_gnu_ld" = no; then
10763	    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'
10764	  else
10765	    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'
10766	  fi
10767	fi
10768	link_all_deplibs_CXX=yes
10769	;;
10770    esac
10771    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10772    hardcode_libdir_separator_CXX=:
10773    ;;
10774  linux* | k*bsd*-gnu)
10775    case $cc_basename in
10776      KCC*)
10777	# Kuck and Associates, Inc. (KAI) C++ Compiler
10778
10779	# KCC will only create a shared library if the output file
10780	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10781	# to its proper name (with version) after linking.
10782	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'
10783	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'
10784	# Commands to make compiler produce verbose output that lists
10785	# what "hidden" libraries, object files and flags are used when
10786	# linking a shared library.
10787	#
10788	# There doesn't appear to be a way to prevent this compiler from
10789	# explicitly linking system object files so we need to strip them
10790	# from the output so that they don't get included in the library
10791	# dependencies.
10792	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'
10793
10794	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10795	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10796
10797	# Archives containing C++ object files must be created using
10798	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10799	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10800	;;
10801      icpc*)
10802	# Intel C++
10803	with_gnu_ld=yes
10804	# version 8.0 and above of icpc choke on multiply defined symbols
10805	# if we add $predep_objects and $postdep_objects, however 7.1 and
10806	# earlier do not add the objects themselves.
10807	case `$CC -V 2>&1` in
10808	*"Version 7."*)
10809  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10810  	  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'
10811	  ;;
10812	*)  # Version 8.0 or newer
10813	  tmp_idyn=
10814	  case $host_cpu in
10815	    ia64*) tmp_idyn=' -i_dynamic';;
10816	  esac
10817  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10818	  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'
10819	  ;;
10820	esac
10821	archive_cmds_need_lc_CXX=no
10822	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10823	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10824	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10825	;;
10826      pgCC*)
10827        # Portland Group C++ compiler
10828	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10829  	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'
10830
10831	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10832	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10833	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'
10834        ;;
10835      cxx*)
10836	# Compaq C++
10837	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10838	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'
10839
10840	runpath_var=LD_RUN_PATH
10841	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10842	hardcode_libdir_separator_CXX=:
10843
10844	# Commands to make compiler produce verbose output that lists
10845	# what "hidden" libraries, object files and flags are used when
10846	# linking a shared library.
10847	#
10848	# There doesn't appear to be a way to prevent this compiler from
10849	# explicitly linking system object files so we need to strip them
10850	# from the output so that they don't get included in the library
10851	# dependencies.
10852	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'
10853	;;
10854      *)
10855	case `$CC -V 2>&1 | sed 5q` in
10856	*Sun\ C*)
10857	  # Sun C++ 5.9
10858	  no_undefined_flag_CXX=' -zdefs'
10859	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10860	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
10861	  hardcode_libdir_flag_spec_CXX='-R$libdir'
10862	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10863
10864	  # Not sure whether something based on
10865	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
10866	  # would be better.
10867	  output_verbose_link_cmd='echo'
10868
10869	  # Archives containing C++ object files must be created using
10870	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10871	  # necessary to make sure instantiated templates are included
10872	  # in the archive.
10873	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10874	  ;;
10875	esac
10876	;;
10877    esac
10878    ;;
10879  lynxos*)
10880    # FIXME: insert proper C++ library support
10881    ld_shlibs_CXX=no
10882    ;;
10883  m88k*)
10884    # FIXME: insert proper C++ library support
10885    ld_shlibs_CXX=no
10886    ;;
10887  mvs*)
10888    case $cc_basename in
10889      cxx*)
10890	# FIXME: insert proper C++ library support
10891	ld_shlibs_CXX=no
10892	;;
10893      *)
10894	# FIXME: insert proper C++ library support
10895	ld_shlibs_CXX=no
10896	;;
10897    esac
10898    ;;
10899  netbsd*)
10900    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10901      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10902      wlarc=
10903      hardcode_libdir_flag_spec_CXX='-R$libdir'
10904      hardcode_direct_CXX=yes
10905      hardcode_shlibpath_var_CXX=no
10906    fi
10907    # Workaround some broken pre-1.5 toolchains
10908    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10909    ;;
10910  openbsd2*)
10911    # C++ shared libraries are fairly broken
10912    ld_shlibs_CXX=no
10913    ;;
10914  openbsd*)
10915    if test -f /usr/libexec/ld.so; then
10916      hardcode_direct_CXX=yes
10917      hardcode_shlibpath_var_CXX=no
10918      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10919      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10920      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10921	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10922	export_dynamic_flag_spec_CXX='${wl}-E'
10923	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10924      fi
10925      output_verbose_link_cmd='echo'
10926    else
10927      ld_shlibs_CXX=no
10928    fi
10929    ;;
10930  osf3*)
10931    case $cc_basename in
10932      KCC*)
10933	# Kuck and Associates, Inc. (KAI) C++ Compiler
10934
10935	# KCC will only create a shared library if the output file
10936	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10937	# to its proper name (with version) after linking.
10938	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'
10939
10940	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10941	hardcode_libdir_separator_CXX=:
10942
10943	# Archives containing C++ object files must be created using
10944	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10945	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10946
10947	;;
10948      RCC*)
10949	# Rational C++ 2.4.1
10950	# FIXME: insert proper C++ library support
10951	ld_shlibs_CXX=no
10952	;;
10953      cxx*)
10954	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10955	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'
10956
10957	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10958	hardcode_libdir_separator_CXX=:
10959
10960	# Commands to make compiler produce verbose output that lists
10961	# what "hidden" libraries, object files and flags are used when
10962	# linking a shared library.
10963	#
10964	# There doesn't appear to be a way to prevent this compiler from
10965	# explicitly linking system object files so we need to strip them
10966	# from the output so that they don't get included in the library
10967	# dependencies.
10968	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'
10969	;;
10970      *)
10971	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10972	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10973	  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'
10974
10975	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10976	  hardcode_libdir_separator_CXX=:
10977
10978	  # Commands to make compiler produce verbose output that lists
10979	  # what "hidden" libraries, object files and flags are used when
10980	  # linking a shared library.
10981	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10982
10983	else
10984	  # FIXME: insert proper C++ library support
10985	  ld_shlibs_CXX=no
10986	fi
10987	;;
10988    esac
10989    ;;
10990  osf4* | osf5*)
10991    case $cc_basename in
10992      KCC*)
10993	# Kuck and Associates, Inc. (KAI) C++ Compiler
10994
10995	# KCC will only create a shared library if the output file
10996	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10997	# to its proper name (with version) after linking.
10998	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'
10999
11000	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11001	hardcode_libdir_separator_CXX=:
11002
11003	# Archives containing C++ object files must be created using
11004	# the KAI C++ compiler.
11005	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11006	;;
11007      RCC*)
11008	# Rational C++ 2.4.1
11009	# FIXME: insert proper C++ library support
11010	ld_shlibs_CXX=no
11011	;;
11012      cxx*)
11013	allow_undefined_flag_CXX=' -expect_unresolved \*'
11014	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'
11015	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11016	  echo "-hidden">> $lib.exp~
11017	  $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~
11018	  $rm $lib.exp'
11019
11020	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11021	hardcode_libdir_separator_CXX=:
11022
11023	# Commands to make compiler produce verbose output that lists
11024	# what "hidden" libraries, object files and flags are used when
11025	# linking a shared library.
11026	#
11027	# There doesn't appear to be a way to prevent this compiler from
11028	# explicitly linking system object files so we need to strip them
11029	# from the output so that they don't get included in the library
11030	# dependencies.
11031	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'
11032	;;
11033      *)
11034	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11035	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11036	 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'
11037
11038	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11039	  hardcode_libdir_separator_CXX=:
11040
11041	  # Commands to make compiler produce verbose output that lists
11042	  # what "hidden" libraries, object files and flags are used when
11043	  # linking a shared library.
11044	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11045
11046	else
11047	  # FIXME: insert proper C++ library support
11048	  ld_shlibs_CXX=no
11049	fi
11050	;;
11051    esac
11052    ;;
11053  psos*)
11054    # FIXME: insert proper C++ library support
11055    ld_shlibs_CXX=no
11056    ;;
11057  sunos4*)
11058    case $cc_basename in
11059      CC*)
11060	# Sun C++ 4.x
11061	# FIXME: insert proper C++ library support
11062	ld_shlibs_CXX=no
11063	;;
11064      lcc*)
11065	# Lucid
11066	# FIXME: insert proper C++ library support
11067	ld_shlibs_CXX=no
11068	;;
11069      *)
11070	# FIXME: insert proper C++ library support
11071	ld_shlibs_CXX=no
11072	;;
11073    esac
11074    ;;
11075  solaris*)
11076    case $cc_basename in
11077      CC*)
11078	# Sun C++ 4.2, 5.x and Centerline C++
11079        archive_cmds_need_lc_CXX=yes
11080	no_undefined_flag_CXX=' -zdefs'
11081	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11082	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11083	$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'
11084
11085	hardcode_libdir_flag_spec_CXX='-R$libdir'
11086	hardcode_shlibpath_var_CXX=no
11087	case $host_os in
11088	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11089	  *)
11090	    # The compiler driver will combine and reorder linker options,
11091	    # but understands `-z linker_flag'.
11092	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11093	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11094	    ;;
11095	esac
11096	link_all_deplibs_CXX=yes
11097
11098	output_verbose_link_cmd='echo'
11099
11100	# Archives containing C++ object files must be created using
11101	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11102	# necessary to make sure instantiated templates are included
11103	# in the archive.
11104	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11105	;;
11106      gcx*)
11107	# Green Hills C++ Compiler
11108	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11109
11110	# The C++ compiler must be used to create the archive.
11111	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11112	;;
11113      *)
11114	# GNU C++ compiler with Solaris linker
11115	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11116	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11117	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11118	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11119	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11120		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11121
11122	    # Commands to make compiler produce verbose output that lists
11123	    # what "hidden" libraries, object files and flags are used when
11124	    # linking a shared library.
11125	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11126	  else
11127	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11128	    # platform.
11129	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11130	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11131		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11132
11133	    # Commands to make compiler produce verbose output that lists
11134	    # what "hidden" libraries, object files and flags are used when
11135	    # linking a shared library.
11136	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11137	  fi
11138
11139	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11140	  case $host_os in
11141	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11142	  *)
11143	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11144	    ;;
11145	  esac
11146	fi
11147	;;
11148    esac
11149    ;;
11150  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11151    no_undefined_flag_CXX='${wl}-z,text'
11152    archive_cmds_need_lc_CXX=no
11153    hardcode_shlibpath_var_CXX=no
11154    runpath_var='LD_RUN_PATH'
11155
11156    case $cc_basename in
11157      CC*)
11158	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11159	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11160	;;
11161      *)
11162	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11163	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11164	;;
11165    esac
11166    ;;
11167  sysv5* | sco3.2v5* | sco5v6*)
11168    # Note: We can NOT use -z defs as we might desire, because we do not
11169    # link with -lc, and that would cause any symbols used from libc to
11170    # always be unresolved, which means just about no library would
11171    # ever link correctly.  If we're not using GNU ld we use -z text
11172    # though, which does catch some bad symbols but isn't as heavy-handed
11173    # as -z defs.
11174    # For security reasons, it is highly recommended that you always
11175    # use absolute paths for naming shared libraries, and exclude the
11176    # DT_RUNPATH tag from executables and libraries.  But doing so
11177    # requires that you compile everything twice, which is a pain.
11178    # So that behaviour is only enabled if SCOABSPATH is set to a
11179    # non-empty value in the environment.  Most likely only useful for
11180    # creating official distributions of packages.
11181    # This is a hack until libtool officially supports absolute path
11182    # names for shared libraries.
11183    no_undefined_flag_CXX='${wl}-z,text'
11184    allow_undefined_flag_CXX='${wl}-z,nodefs'
11185    archive_cmds_need_lc_CXX=no
11186    hardcode_shlibpath_var_CXX=no
11187    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11188    hardcode_libdir_separator_CXX=':'
11189    link_all_deplibs_CXX=yes
11190    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11191    runpath_var='LD_RUN_PATH'
11192
11193    case $cc_basename in
11194      CC*)
11195	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11196	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11197	;;
11198      *)
11199	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11200	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11201	;;
11202    esac
11203    ;;
11204  tandem*)
11205    case $cc_basename in
11206      NCC*)
11207	# NonStop-UX NCC 3.20
11208	# FIXME: insert proper C++ library support
11209	ld_shlibs_CXX=no
11210	;;
11211      *)
11212	# FIXME: insert proper C++ library support
11213	ld_shlibs_CXX=no
11214	;;
11215    esac
11216    ;;
11217  vxworks*)
11218    # FIXME: insert proper C++ library support
11219    ld_shlibs_CXX=no
11220    ;;
11221  *)
11222    # FIXME: insert proper C++ library support
11223    ld_shlibs_CXX=no
11224    ;;
11225esac
11226{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11227echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11228test "$ld_shlibs_CXX" = no && can_build_shared=no
11229
11230GCC_CXX="$GXX"
11231LD_CXX="$LD"
11232
11233
11234cat > conftest.$ac_ext <<EOF
11235class Foo
11236{
11237public:
11238  Foo (void) { a = 0; }
11239private:
11240  int a;
11241};
11242EOF
11243
11244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11245  (eval $ac_compile) 2>&5
11246  ac_status=$?
11247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248  (exit $ac_status); }; then
11249  # Parse the compiler output and extract the necessary
11250  # objects, libraries and library flags.
11251
11252  # Sentinel used to keep track of whether or not we are before
11253  # the conftest object file.
11254  pre_test_object_deps_done=no
11255
11256  # The `*' in the case matches for architectures that use `case' in
11257  # $output_verbose_cmd can trigger glob expansion during the loop
11258  # eval without this substitution.
11259  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11260
11261  for p in `eval $output_verbose_link_cmd`; do
11262    case $p in
11263
11264    -L* | -R* | -l*)
11265       # Some compilers place space between "-{L,R}" and the path.
11266       # Remove the space.
11267       if test $p = "-L" \
11268	  || test $p = "-R"; then
11269	 prev=$p
11270	 continue
11271       else
11272	 prev=
11273       fi
11274
11275       if test "$pre_test_object_deps_done" = no; then
11276	 case $p in
11277	 -L* | -R*)
11278	   # Internal compiler library paths should come after those
11279	   # provided the user.  The postdeps already come after the
11280	   # user supplied libs so there is no need to process them.
11281	   if test -z "$compiler_lib_search_path_CXX"; then
11282	     compiler_lib_search_path_CXX="${prev}${p}"
11283	   else
11284	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11285	   fi
11286	   ;;
11287	 # The "-l" case would never come before the object being
11288	 # linked, so don't bother handling this case.
11289	 esac
11290       else
11291	 if test -z "$postdeps_CXX"; then
11292	   postdeps_CXX="${prev}${p}"
11293	 else
11294	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11295	 fi
11296       fi
11297       ;;
11298
11299    *.$objext)
11300       # This assumes that the test object file only shows up
11301       # once in the compiler output.
11302       if test "$p" = "conftest.$objext"; then
11303	 pre_test_object_deps_done=yes
11304	 continue
11305       fi
11306
11307       if test "$pre_test_object_deps_done" = no; then
11308	 if test -z "$predep_objects_CXX"; then
11309	   predep_objects_CXX="$p"
11310	 else
11311	   predep_objects_CXX="$predep_objects_CXX $p"
11312	 fi
11313       else
11314	 if test -z "$postdep_objects_CXX"; then
11315	   postdep_objects_CXX="$p"
11316	 else
11317	   postdep_objects_CXX="$postdep_objects_CXX $p"
11318	 fi
11319       fi
11320       ;;
11321
11322    *) ;; # Ignore the rest.
11323
11324    esac
11325  done
11326
11327  # Clean up.
11328  rm -f a.out a.exe
11329else
11330  echo "libtool.m4: error: problem compiling CXX test program"
11331fi
11332
11333$rm -f confest.$objext
11334
11335# PORTME: override above test on systems where it is broken
11336case $host_os in
11337interix[3-9]*)
11338  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11339  # hack all around it, let's just trust "g++" to DTRT.
11340  predep_objects_CXX=
11341  postdep_objects_CXX=
11342  postdeps_CXX=
11343  ;;
11344
11345linux*)
11346  case `$CC -V 2>&1 | sed 5q` in
11347  *Sun\ C*)
11348    # Sun C++ 5.9
11349    #
11350    # The more standards-conforming stlport4 library is
11351    # incompatible with the Cstd library. Avoid specifying
11352    # it if it's in CXXFLAGS. Ignore libCrun as
11353    # -library=stlport4 depends on it.
11354    case " $CXX $CXXFLAGS " in
11355    *" -library=stlport4 "*)
11356      solaris_use_stlport4=yes
11357      ;;
11358    esac
11359    if test "$solaris_use_stlport4" != yes; then
11360      postdeps_CXX='-library=Cstd -library=Crun'
11361    fi
11362    ;;
11363  esac
11364  ;;
11365
11366solaris*)
11367  case $cc_basename in
11368  CC*)
11369    # The more standards-conforming stlport4 library is
11370    # incompatible with the Cstd library. Avoid specifying
11371    # it if it's in CXXFLAGS. Ignore libCrun as
11372    # -library=stlport4 depends on it.
11373    case " $CXX $CXXFLAGS " in
11374    *" -library=stlport4 "*)
11375      solaris_use_stlport4=yes
11376      ;;
11377    esac
11378
11379    # Adding this requires a known-good setup of shared libraries for
11380    # Sun compiler versions before 5.6, else PIC objects from an old
11381    # archive will be linked into the output, leading to subtle bugs.
11382    if test "$solaris_use_stlport4" != yes; then
11383      postdeps_CXX='-library=Cstd -library=Crun'
11384    fi
11385    ;;
11386  esac
11387  ;;
11388esac
11389
11390
11391case " $postdeps_CXX " in
11392*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11393esac
11394
11395lt_prog_compiler_wl_CXX=
11396lt_prog_compiler_pic_CXX=
11397lt_prog_compiler_static_CXX=
11398
11399{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11400echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11401
11402  # C++ specific cases for pic, static, wl, etc.
11403  if test "$GXX" = yes; then
11404    lt_prog_compiler_wl_CXX='-Wl,'
11405    lt_prog_compiler_static_CXX='-static'
11406
11407    case $host_os in
11408    aix*)
11409      # All AIX code is PIC.
11410      if test "$host_cpu" = ia64; then
11411	# AIX 5 now supports IA64 processor
11412	lt_prog_compiler_static_CXX='-Bstatic'
11413      fi
11414      ;;
11415    amigaos*)
11416      # FIXME: we need at least 68020 code to build shared libraries, but
11417      # adding the `-m68020' flag to GCC prevents building anything better,
11418      # like `-m68040'.
11419      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11420      ;;
11421    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11422      # PIC is the default for these OSes.
11423      ;;
11424    mingw* | cygwin* | os2* | pw32*)
11425      # This hack is so that the source file can tell whether it is being
11426      # built for inclusion in a dll (and should export symbols for example).
11427      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11428      # (--disable-auto-import) libraries
11429      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11430      ;;
11431    darwin* | rhapsody*)
11432      # PIC is the default on this platform
11433      # Common symbols not allowed in MH_DYLIB files
11434      lt_prog_compiler_pic_CXX='-fno-common'
11435      ;;
11436    *djgpp*)
11437      # DJGPP does not support shared libraries at all
11438      lt_prog_compiler_pic_CXX=
11439      ;;
11440    interix[3-9]*)
11441      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11442      # Instead, we relocate shared libraries at runtime.
11443      ;;
11444    sysv4*MP*)
11445      if test -d /usr/nec; then
11446	lt_prog_compiler_pic_CXX=-Kconform_pic
11447      fi
11448      ;;
11449    hpux*)
11450      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11451      # not for PA HP-UX.
11452      case $host_cpu in
11453      hppa*64*|ia64*)
11454	;;
11455      *)
11456	lt_prog_compiler_pic_CXX='-fPIC'
11457	;;
11458      esac
11459      ;;
11460    *)
11461      lt_prog_compiler_pic_CXX='-fPIC'
11462      ;;
11463    esac
11464  else
11465    case $host_os in
11466      aix4* | aix5*)
11467	# All AIX code is PIC.
11468	if test "$host_cpu" = ia64; then
11469	  # AIX 5 now supports IA64 processor
11470	  lt_prog_compiler_static_CXX='-Bstatic'
11471	else
11472	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11473	fi
11474	;;
11475      chorus*)
11476	case $cc_basename in
11477	cxch68*)
11478	  # Green Hills C++ Compiler
11479	  # _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"
11480	  ;;
11481	esac
11482	;;
11483       darwin*)
11484         # PIC is the default on this platform
11485         # Common symbols not allowed in MH_DYLIB files
11486         case $cc_basename in
11487           xlc*)
11488           lt_prog_compiler_pic_CXX='-qnocommon'
11489           lt_prog_compiler_wl_CXX='-Wl,'
11490           ;;
11491         esac
11492       ;;
11493      dgux*)
11494	case $cc_basename in
11495	  ec++*)
11496	    lt_prog_compiler_pic_CXX='-KPIC'
11497	    ;;
11498	  ghcx*)
11499	    # Green Hills C++ Compiler
11500	    lt_prog_compiler_pic_CXX='-pic'
11501	    ;;
11502	  *)
11503	    ;;
11504	esac
11505	;;
11506      freebsd* | dragonfly*)
11507	# FreeBSD uses GNU C++
11508	;;
11509      hpux9* | hpux10* | hpux11*)
11510	case $cc_basename in
11511	  CC*)
11512	    lt_prog_compiler_wl_CXX='-Wl,'
11513	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11514	    if test "$host_cpu" != ia64; then
11515	      lt_prog_compiler_pic_CXX='+Z'
11516	    fi
11517	    ;;
11518	  aCC*)
11519	    lt_prog_compiler_wl_CXX='-Wl,'
11520	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11521	    case $host_cpu in
11522	    hppa*64*|ia64*)
11523	      # +Z the default
11524	      ;;
11525	    *)
11526	      lt_prog_compiler_pic_CXX='+Z'
11527	      ;;
11528	    esac
11529	    ;;
11530	  *)
11531	    ;;
11532	esac
11533	;;
11534      interix*)
11535	# This is c89, which is MS Visual C++ (no shared libs)
11536	# Anyone wants to do a port?
11537	;;
11538      irix5* | irix6* | nonstopux*)
11539	case $cc_basename in
11540	  CC*)
11541	    lt_prog_compiler_wl_CXX='-Wl,'
11542	    lt_prog_compiler_static_CXX='-non_shared'
11543	    # CC pic flag -KPIC is the default.
11544	    ;;
11545	  *)
11546	    ;;
11547	esac
11548	;;
11549      linux* | k*bsd*-gnu)
11550	case $cc_basename in
11551	  KCC*)
11552	    # KAI C++ Compiler
11553	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11554	    lt_prog_compiler_pic_CXX='-fPIC'
11555	    ;;
11556	  icpc* | ecpc*)
11557	    # Intel C++
11558	    lt_prog_compiler_wl_CXX='-Wl,'
11559	    lt_prog_compiler_pic_CXX='-KPIC'
11560	    lt_prog_compiler_static_CXX='-static'
11561	    ;;
11562	  pgCC*)
11563	    # Portland Group C++ compiler.
11564	    lt_prog_compiler_wl_CXX='-Wl,'
11565	    lt_prog_compiler_pic_CXX='-fpic'
11566	    lt_prog_compiler_static_CXX='-Bstatic'
11567	    ;;
11568	  cxx*)
11569	    # Compaq C++
11570	    # Make sure the PIC flag is empty.  It appears that all Alpha
11571	    # Linux and Compaq Tru64 Unix objects are PIC.
11572	    lt_prog_compiler_pic_CXX=
11573	    lt_prog_compiler_static_CXX='-non_shared'
11574	    ;;
11575	  *)
11576	    case `$CC -V 2>&1 | sed 5q` in
11577	    *Sun\ C*)
11578	      # Sun C++ 5.9
11579	      lt_prog_compiler_pic_CXX='-KPIC'
11580	      lt_prog_compiler_static_CXX='-Bstatic'
11581	      lt_prog_compiler_wl_CXX='-Qoption ld '
11582	      ;;
11583	    esac
11584	    ;;
11585	esac
11586	;;
11587      lynxos*)
11588	;;
11589      m88k*)
11590	;;
11591      mvs*)
11592	case $cc_basename in
11593	  cxx*)
11594	    lt_prog_compiler_pic_CXX='-W c,exportall'
11595	    ;;
11596	  *)
11597	    ;;
11598	esac
11599	;;
11600      netbsd*)
11601	;;
11602      osf3* | osf4* | osf5*)
11603	case $cc_basename in
11604	  KCC*)
11605	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11606	    ;;
11607	  RCC*)
11608	    # Rational C++ 2.4.1
11609	    lt_prog_compiler_pic_CXX='-pic'
11610	    ;;
11611	  cxx*)
11612	    # Digital/Compaq C++
11613	    lt_prog_compiler_wl_CXX='-Wl,'
11614	    # Make sure the PIC flag is empty.  It appears that all Alpha
11615	    # Linux and Compaq Tru64 Unix objects are PIC.
11616	    lt_prog_compiler_pic_CXX=
11617	    lt_prog_compiler_static_CXX='-non_shared'
11618	    ;;
11619	  *)
11620	    ;;
11621	esac
11622	;;
11623      psos*)
11624	;;
11625      solaris*)
11626	case $cc_basename in
11627	  CC*)
11628	    # Sun C++ 4.2, 5.x and Centerline C++
11629	    lt_prog_compiler_pic_CXX='-KPIC'
11630	    lt_prog_compiler_static_CXX='-Bstatic'
11631	    lt_prog_compiler_wl_CXX='-Qoption ld '
11632	    ;;
11633	  gcx*)
11634	    # Green Hills C++ Compiler
11635	    lt_prog_compiler_pic_CXX='-PIC'
11636	    ;;
11637	  *)
11638	    ;;
11639	esac
11640	;;
11641      sunos4*)
11642	case $cc_basename in
11643	  CC*)
11644	    # Sun C++ 4.x
11645	    lt_prog_compiler_pic_CXX='-pic'
11646	    lt_prog_compiler_static_CXX='-Bstatic'
11647	    ;;
11648	  lcc*)
11649	    # Lucid
11650	    lt_prog_compiler_pic_CXX='-pic'
11651	    ;;
11652	  *)
11653	    ;;
11654	esac
11655	;;
11656      tandem*)
11657	case $cc_basename in
11658	  NCC*)
11659	    # NonStop-UX NCC 3.20
11660	    lt_prog_compiler_pic_CXX='-KPIC'
11661	    ;;
11662	  *)
11663	    ;;
11664	esac
11665	;;
11666      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11667	case $cc_basename in
11668	  CC*)
11669	    lt_prog_compiler_wl_CXX='-Wl,'
11670	    lt_prog_compiler_pic_CXX='-KPIC'
11671	    lt_prog_compiler_static_CXX='-Bstatic'
11672	    ;;
11673	esac
11674	;;
11675      vxworks*)
11676	;;
11677      *)
11678	lt_prog_compiler_can_build_shared_CXX=no
11679	;;
11680    esac
11681  fi
11682
11683{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11684echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11685
11686#
11687# Check to make sure the PIC flag actually works.
11688#
11689if test -n "$lt_prog_compiler_pic_CXX"; then
11690
11691{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11692echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11693if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11694  echo $ECHO_N "(cached) $ECHO_C" >&6
11695else
11696  lt_prog_compiler_pic_works_CXX=no
11697  ac_outfile=conftest.$ac_objext
11698   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11699   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11700   # Insert the option either (1) after the last *FLAGS variable, or
11701   # (2) before a word containing "conftest.", or (3) at the end.
11702   # Note that $ac_compile itself does not contain backslashes and begins
11703   # with a dollar sign (not a hyphen), so the echo should work correctly.
11704   # The option is referenced via a variable to avoid confusing sed.
11705   lt_compile=`echo "$ac_compile" | $SED \
11706   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11707   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11708   -e 's:$: $lt_compiler_flag:'`
11709   (eval echo "\"\$as_me:11709: $lt_compile\"" >&5)
11710   (eval "$lt_compile" 2>conftest.err)
11711   ac_status=$?
11712   cat conftest.err >&5
11713   echo "$as_me:11713: \$? = $ac_status" >&5
11714   if (exit $ac_status) && test -s "$ac_outfile"; then
11715     # The compiler can only warn and ignore the option if not recognized
11716     # So say no if there are warnings other than the usual output.
11717     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11718     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11719     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11720       lt_prog_compiler_pic_works_CXX=yes
11721     fi
11722   fi
11723   $rm conftest*
11724
11725fi
11726{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11727echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11728
11729if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11730    case $lt_prog_compiler_pic_CXX in
11731     "" | " "*) ;;
11732     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11733     esac
11734else
11735    lt_prog_compiler_pic_CXX=
11736     lt_prog_compiler_can_build_shared_CXX=no
11737fi
11738
11739fi
11740case $host_os in
11741  # For platforms which do not support PIC, -DPIC is meaningless:
11742  *djgpp*)
11743    lt_prog_compiler_pic_CXX=
11744    ;;
11745  *)
11746    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11747    ;;
11748esac
11749
11750#
11751# Check to make sure the static flag actually works.
11752#
11753wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11754{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11755echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11756if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11757  echo $ECHO_N "(cached) $ECHO_C" >&6
11758else
11759  lt_prog_compiler_static_works_CXX=no
11760   save_LDFLAGS="$LDFLAGS"
11761   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11762   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11763   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11764     # The linker can only warn and ignore the option if not recognized
11765     # So say no if there are warnings
11766     if test -s conftest.err; then
11767       # Append any errors to the config.log.
11768       cat conftest.err 1>&5
11769       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11770       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11771       if diff conftest.exp conftest.er2 >/dev/null; then
11772         lt_prog_compiler_static_works_CXX=yes
11773       fi
11774     else
11775       lt_prog_compiler_static_works_CXX=yes
11776     fi
11777   fi
11778   $rm conftest*
11779   LDFLAGS="$save_LDFLAGS"
11780
11781fi
11782{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11783echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
11784
11785if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11786    :
11787else
11788    lt_prog_compiler_static_CXX=
11789fi
11790
11791
11792{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11793echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11794if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11795  echo $ECHO_N "(cached) $ECHO_C" >&6
11796else
11797  lt_cv_prog_compiler_c_o_CXX=no
11798   $rm -r conftest 2>/dev/null
11799   mkdir conftest
11800   cd conftest
11801   mkdir out
11802   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11803
11804   lt_compiler_flag="-o out/conftest2.$ac_objext"
11805   # Insert the option either (1) after the last *FLAGS variable, or
11806   # (2) before a word containing "conftest.", or (3) at the end.
11807   # Note that $ac_compile itself does not contain backslashes and begins
11808   # with a dollar sign (not a hyphen), so the echo should work correctly.
11809   lt_compile=`echo "$ac_compile" | $SED \
11810   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11811   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11812   -e 's:$: $lt_compiler_flag:'`
11813   (eval echo "\"\$as_me:11813: $lt_compile\"" >&5)
11814   (eval "$lt_compile" 2>out/conftest.err)
11815   ac_status=$?
11816   cat out/conftest.err >&5
11817   echo "$as_me:11817: \$? = $ac_status" >&5
11818   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11819   then
11820     # The compiler can only warn and ignore the option if not recognized
11821     # So say no if there are warnings
11822     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11823     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11824     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11825       lt_cv_prog_compiler_c_o_CXX=yes
11826     fi
11827   fi
11828   chmod u+w . 2>&5
11829   $rm conftest*
11830   # SGI C++ compiler will create directory out/ii_files/ for
11831   # template instantiation
11832   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11833   $rm out/* && rmdir out
11834   cd ..
11835   rmdir conftest
11836   $rm conftest*
11837
11838fi
11839{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11840echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11841
11842
11843hard_links="nottested"
11844if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11845  # do not overwrite the value of need_locks provided by the user
11846  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11847echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11848  hard_links=yes
11849  $rm conftest*
11850  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11851  touch conftest.a
11852  ln conftest.a conftest.b 2>&5 || hard_links=no
11853  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11854  { echo "$as_me:$LINENO: result: $hard_links" >&5
11855echo "${ECHO_T}$hard_links" >&6; }
11856  if test "$hard_links" = no; then
11857    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11858echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11859    need_locks=warn
11860  fi
11861else
11862  need_locks=no
11863fi
11864
11865{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11866echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11867
11868  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11869  case $host_os in
11870  aix4* | aix5*)
11871    # If we're using GNU nm, then we don't want the "-C" option.
11872    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11873    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11874      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'
11875    else
11876      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'
11877    fi
11878    ;;
11879  pw32*)
11880    export_symbols_cmds_CXX="$ltdll_cmds"
11881  ;;
11882  cygwin* | mingw*)
11883    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'
11884  ;;
11885  *)
11886    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11887  ;;
11888  esac
11889
11890{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11891echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11892test "$ld_shlibs_CXX" = no && can_build_shared=no
11893
11894#
11895# Do we need to explicitly link libc?
11896#
11897case "x$archive_cmds_need_lc_CXX" in
11898x|xyes)
11899  # Assume -lc should be added
11900  archive_cmds_need_lc_CXX=yes
11901
11902  if test "$enable_shared" = yes && test "$GCC" = yes; then
11903    case $archive_cmds_CXX in
11904    *'~'*)
11905      # FIXME: we may have to deal with multi-command sequences.
11906      ;;
11907    '$CC '*)
11908      # Test whether the compiler implicitly links with -lc since on some
11909      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11910      # to ld, don't add -lc before -lgcc.
11911      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11912echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11913      $rm conftest*
11914      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11915
11916      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11917  (eval $ac_compile) 2>&5
11918  ac_status=$?
11919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920  (exit $ac_status); } 2>conftest.err; then
11921        soname=conftest
11922        lib=conftest
11923        libobjs=conftest.$ac_objext
11924        deplibs=
11925        wl=$lt_prog_compiler_wl_CXX
11926	pic_flag=$lt_prog_compiler_pic_CXX
11927        compiler_flags=-v
11928        linker_flags=-v
11929        verstring=
11930        output_objdir=.
11931        libname=conftest
11932        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11933        allow_undefined_flag_CXX=
11934        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11935  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11936  ac_status=$?
11937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938  (exit $ac_status); }
11939        then
11940	  archive_cmds_need_lc_CXX=no
11941        else
11942	  archive_cmds_need_lc_CXX=yes
11943        fi
11944        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11945      else
11946        cat conftest.err 1>&5
11947      fi
11948      $rm conftest*
11949      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11950echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11951      ;;
11952    esac
11953  fi
11954  ;;
11955esac
11956
11957{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11958echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11959library_names_spec=
11960libname_spec='lib$name'
11961soname_spec=
11962shrext_cmds=".so"
11963postinstall_cmds=
11964postuninstall_cmds=
11965finish_cmds=
11966finish_eval=
11967shlibpath_var=
11968shlibpath_overrides_runpath=unknown
11969version_type=none
11970dynamic_linker="$host_os ld.so"
11971sys_lib_dlsearch_path_spec="/lib /usr/lib"
11972
11973need_lib_prefix=unknown
11974hardcode_into_libs=no
11975
11976# when you set need_version to no, make sure it does not cause -set_version
11977# flags to be left without arguments
11978need_version=unknown
11979
11980case $host_os in
11981aix3*)
11982  version_type=linux
11983  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11984  shlibpath_var=LIBPATH
11985
11986  # AIX 3 has no versioning support, so we append a major version to the name.
11987  soname_spec='${libname}${release}${shared_ext}$major'
11988  ;;
11989
11990aix4* | aix5*)
11991  version_type=linux
11992  need_lib_prefix=no
11993  need_version=no
11994  hardcode_into_libs=yes
11995  if test "$host_cpu" = ia64; then
11996    # AIX 5 supports IA64
11997    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11998    shlibpath_var=LD_LIBRARY_PATH
11999  else
12000    # With GCC up to 2.95.x, collect2 would create an import file
12001    # for dependence libraries.  The import file would start with
12002    # the line `#! .'.  This would cause the generated library to
12003    # depend on `.', always an invalid library.  This was fixed in
12004    # development snapshots of GCC prior to 3.0.
12005    case $host_os in
12006      aix4 | aix4.[01] | aix4.[01].*)
12007      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12008	   echo ' yes '
12009	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12010	:
12011      else
12012	can_build_shared=no
12013      fi
12014      ;;
12015    esac
12016    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12017    # soname into executable. Probably we can add versioning support to
12018    # collect2, so additional links can be useful in future.
12019    if test "$aix_use_runtimelinking" = yes; then
12020      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12021      # instead of lib<name>.a to let people know that these are not
12022      # typical AIX shared libraries.
12023      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12024    else
12025      # We preserve .a as extension for shared libraries through AIX4.2
12026      # and later when we are not doing run time linking.
12027      library_names_spec='${libname}${release}.a $libname.a'
12028      soname_spec='${libname}${release}${shared_ext}$major'
12029    fi
12030    shlibpath_var=LIBPATH
12031  fi
12032  ;;
12033
12034amigaos*)
12035  library_names_spec='$libname.ixlibrary $libname.a'
12036  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12037  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'
12038  ;;
12039
12040beos*)
12041  library_names_spec='${libname}${shared_ext}'
12042  dynamic_linker="$host_os ld.so"
12043  shlibpath_var=LIBRARY_PATH
12044  ;;
12045
12046bsdi[45]*)
12047  version_type=linux
12048  need_version=no
12049  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12050  soname_spec='${libname}${release}${shared_ext}$major'
12051  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12052  shlibpath_var=LD_LIBRARY_PATH
12053  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12054  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12055  # the default ld.so.conf also contains /usr/contrib/lib and
12056  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12057  # libtool to hard-code these into programs
12058  ;;
12059
12060cygwin* | mingw* | pw32*)
12061  version_type=windows
12062  shrext_cmds=".dll"
12063  need_version=no
12064  need_lib_prefix=no
12065
12066  case $GCC,$host_os in
12067  yes,cygwin* | yes,mingw* | yes,pw32*)
12068    library_names_spec='$libname.dll.a'
12069    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12070    postinstall_cmds='base_file=`basename \${file}`~
12071      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12072      dldir=$destdir/`dirname \$dlpath`~
12073      test -d \$dldir || mkdir -p \$dldir~
12074      $install_prog $dir/$dlname \$dldir/$dlname~
12075      chmod a+x \$dldir/$dlname'
12076    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12077      dlpath=$dir/\$dldll~
12078       $rm \$dlpath'
12079    shlibpath_overrides_runpath=yes
12080
12081    case $host_os in
12082    cygwin*)
12083      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12084      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12085      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12086      ;;
12087    mingw*)
12088      # MinGW DLLs use traditional 'lib' prefix
12089      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12090      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12091      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12092        # It is most probably a Windows format PATH printed by
12093        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12094        # path with ; separators, and with drive letters. We can handle the
12095        # drive letters (cygwin fileutils understands them), so leave them,
12096        # especially as we might pass files found there to a mingw objdump,
12097        # which wouldn't understand a cygwinified path. Ahh.
12098        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12099      else
12100        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12101      fi
12102      ;;
12103    pw32*)
12104      # pw32 DLLs use 'pw' prefix rather than 'lib'
12105      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12106      ;;
12107    esac
12108    ;;
12109
12110  *)
12111    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12112    ;;
12113  esac
12114  dynamic_linker='Win32 ld.exe'
12115  # FIXME: first we should search . and the directory the executable is in
12116  shlibpath_var=PATH
12117  ;;
12118
12119darwin* | rhapsody*)
12120  dynamic_linker="$host_os dyld"
12121  version_type=darwin
12122  need_lib_prefix=no
12123  need_version=no
12124  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12125  soname_spec='${libname}${release}${major}$shared_ext'
12126  shlibpath_overrides_runpath=yes
12127  shlibpath_var=DYLD_LIBRARY_PATH
12128  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12129
12130  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12131  ;;
12132
12133dgux*)
12134  version_type=linux
12135  need_lib_prefix=no
12136  need_version=no
12137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12138  soname_spec='${libname}${release}${shared_ext}$major'
12139  shlibpath_var=LD_LIBRARY_PATH
12140  ;;
12141
12142freebsd1*)
12143  dynamic_linker=no
12144  ;;
12145
12146freebsd* | dragonfly*)
12147  # DragonFly does not have aout.  When/if they implement a new
12148  # versioning mechanism, adjust this.
12149  if test -x /usr/bin/objformat; then
12150    objformat=`/usr/bin/objformat`
12151  else
12152    case $host_os in
12153    freebsd[123]*) objformat=aout ;;
12154    *) objformat=elf ;;
12155    esac
12156  fi
12157  version_type=freebsd-$objformat
12158  case $version_type in
12159    freebsd-elf*)
12160      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12161      need_version=no
12162      need_lib_prefix=no
12163      ;;
12164    freebsd-*)
12165      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12166      need_version=yes
12167      ;;
12168  esac
12169  shlibpath_var=LD_LIBRARY_PATH
12170  case $host_os in
12171  freebsd2*)
12172    shlibpath_overrides_runpath=yes
12173    ;;
12174  freebsd3.[01]* | freebsdelf3.[01]*)
12175    shlibpath_overrides_runpath=yes
12176    hardcode_into_libs=yes
12177    ;;
12178  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12179  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12180    shlibpath_overrides_runpath=no
12181    hardcode_into_libs=yes
12182    ;;
12183  *) # from 4.6 on, and DragonFly
12184    shlibpath_overrides_runpath=yes
12185    hardcode_into_libs=yes
12186    ;;
12187  esac
12188  ;;
12189
12190gnu*)
12191  version_type=linux
12192  need_lib_prefix=no
12193  need_version=no
12194  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12195  soname_spec='${libname}${release}${shared_ext}$major'
12196  shlibpath_var=LD_LIBRARY_PATH
12197  hardcode_into_libs=yes
12198  ;;
12199
12200hpux9* | hpux10* | hpux11*)
12201  # Give a soname corresponding to the major version so that dld.sl refuses to
12202  # link against other versions.
12203  version_type=sunos
12204  need_lib_prefix=no
12205  need_version=no
12206  case $host_cpu in
12207  ia64*)
12208    shrext_cmds='.so'
12209    hardcode_into_libs=yes
12210    dynamic_linker="$host_os dld.so"
12211    shlibpath_var=LD_LIBRARY_PATH
12212    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12213    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12214    soname_spec='${libname}${release}${shared_ext}$major'
12215    if test "X$HPUX_IA64_MODE" = X32; then
12216      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12217    else
12218      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12219    fi
12220    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12221    ;;
12222   hppa*64*)
12223     shrext_cmds='.sl'
12224     hardcode_into_libs=yes
12225     dynamic_linker="$host_os dld.sl"
12226     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12227     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12229     soname_spec='${libname}${release}${shared_ext}$major'
12230     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12231     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12232     ;;
12233   *)
12234    shrext_cmds='.sl'
12235    dynamic_linker="$host_os dld.sl"
12236    shlibpath_var=SHLIB_PATH
12237    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12238    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12239    soname_spec='${libname}${release}${shared_ext}$major'
12240    ;;
12241  esac
12242  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12243  postinstall_cmds='chmod 555 $lib'
12244  ;;
12245
12246interix[3-9]*)
12247  version_type=linux
12248  need_lib_prefix=no
12249  need_version=no
12250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12251  soname_spec='${libname}${release}${shared_ext}$major'
12252  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12253  shlibpath_var=LD_LIBRARY_PATH
12254  shlibpath_overrides_runpath=no
12255  hardcode_into_libs=yes
12256  ;;
12257
12258irix5* | irix6* | nonstopux*)
12259  case $host_os in
12260    nonstopux*) version_type=nonstopux ;;
12261    *)
12262	if test "$lt_cv_prog_gnu_ld" = yes; then
12263		version_type=linux
12264	else
12265		version_type=irix
12266	fi ;;
12267  esac
12268  need_lib_prefix=no
12269  need_version=no
12270  soname_spec='${libname}${release}${shared_ext}$major'
12271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12272  case $host_os in
12273  irix5* | nonstopux*)
12274    libsuff= shlibsuff=
12275    ;;
12276  *)
12277    case $LD in # libtool.m4 will add one of these switches to LD
12278    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12279      libsuff= shlibsuff= libmagic=32-bit;;
12280    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12281      libsuff=32 shlibsuff=N32 libmagic=N32;;
12282    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12283      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12284    *) libsuff= shlibsuff= libmagic=never-match;;
12285    esac
12286    ;;
12287  esac
12288  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12289  shlibpath_overrides_runpath=no
12290  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12291  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12292  hardcode_into_libs=yes
12293  ;;
12294
12295# No shared lib support for Linux oldld, aout, or coff.
12296linux*oldld* | linux*aout* | linux*coff*)
12297  dynamic_linker=no
12298  ;;
12299
12300# This must be Linux ELF.
12301linux* | k*bsd*-gnu)
12302  version_type=linux
12303  need_lib_prefix=no
12304  need_version=no
12305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12306  soname_spec='${libname}${release}${shared_ext}$major'
12307  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12308  shlibpath_var=LD_LIBRARY_PATH
12309  shlibpath_overrides_runpath=no
12310  # This implies no fast_install, which is unacceptable.
12311  # Some rework will be needed to allow for fast_install
12312  # before this can be enabled.
12313  hardcode_into_libs=yes
12314
12315  # Append ld.so.conf contents to the search path
12316  if test -f /etc/ld.so.conf; then
12317    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12318    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12319  fi
12320
12321  # We used to test for /lib/ld.so.1 and disable shared libraries on
12322  # powerpc, because MkLinux only supported shared libraries with the
12323  # GNU dynamic linker.  Since this was broken with cross compilers,
12324  # most powerpc-linux boxes support dynamic linking these days and
12325  # people can always --disable-shared, the test was removed, and we
12326  # assume the GNU/Linux dynamic linker is in use.
12327  dynamic_linker='GNU/Linux ld.so'
12328  ;;
12329
12330netbsd*)
12331  version_type=sunos
12332  need_lib_prefix=no
12333  need_version=no
12334  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12335    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12336    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12337    dynamic_linker='NetBSD (a.out) ld.so'
12338  else
12339    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12340    soname_spec='${libname}${release}${shared_ext}$major'
12341    dynamic_linker='NetBSD ld.elf_so'
12342  fi
12343  shlibpath_var=LD_LIBRARY_PATH
12344  shlibpath_overrides_runpath=yes
12345  hardcode_into_libs=yes
12346  ;;
12347
12348newsos6)
12349  version_type=linux
12350  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12351  shlibpath_var=LD_LIBRARY_PATH
12352  shlibpath_overrides_runpath=yes
12353  ;;
12354
12355nto-qnx*)
12356  version_type=linux
12357  need_lib_prefix=no
12358  need_version=no
12359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12360  soname_spec='${libname}${release}${shared_ext}$major'
12361  shlibpath_var=LD_LIBRARY_PATH
12362  shlibpath_overrides_runpath=yes
12363  ;;
12364
12365openbsd*)
12366  version_type=sunos
12367  sys_lib_dlsearch_path_spec="/usr/lib"
12368  need_lib_prefix=no
12369  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12370  case $host_os in
12371    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12372    *)                         need_version=no  ;;
12373  esac
12374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12375  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12376  shlibpath_var=LD_LIBRARY_PATH
12377  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12378    case $host_os in
12379      openbsd2.[89] | openbsd2.[89].*)
12380	shlibpath_overrides_runpath=no
12381	;;
12382      *)
12383	shlibpath_overrides_runpath=yes
12384	;;
12385      esac
12386  else
12387    shlibpath_overrides_runpath=yes
12388  fi
12389  ;;
12390
12391os2*)
12392  libname_spec='$name'
12393  shrext_cmds=".dll"
12394  need_lib_prefix=no
12395  library_names_spec='$libname${shared_ext} $libname.a'
12396  dynamic_linker='OS/2 ld.exe'
12397  shlibpath_var=LIBPATH
12398  ;;
12399
12400osf3* | osf4* | osf5*)
12401  version_type=osf
12402  need_lib_prefix=no
12403  need_version=no
12404  soname_spec='${libname}${release}${shared_ext}$major'
12405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12406  shlibpath_var=LD_LIBRARY_PATH
12407  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12408  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12409  ;;
12410
12411rdos*)
12412  dynamic_linker=no
12413  ;;
12414
12415solaris*)
12416  version_type=linux
12417  need_lib_prefix=no
12418  need_version=no
12419  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12420  soname_spec='${libname}${release}${shared_ext}$major'
12421  shlibpath_var=LD_LIBRARY_PATH
12422  shlibpath_overrides_runpath=yes
12423  hardcode_into_libs=yes
12424  # ldd complains unless libraries are executable
12425  postinstall_cmds='chmod +x $lib'
12426  ;;
12427
12428sunos4*)
12429  version_type=sunos
12430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12431  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12432  shlibpath_var=LD_LIBRARY_PATH
12433  shlibpath_overrides_runpath=yes
12434  if test "$with_gnu_ld" = yes; then
12435    need_lib_prefix=no
12436  fi
12437  need_version=yes
12438  ;;
12439
12440sysv4 | sysv4.3*)
12441  version_type=linux
12442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12443  soname_spec='${libname}${release}${shared_ext}$major'
12444  shlibpath_var=LD_LIBRARY_PATH
12445  case $host_vendor in
12446    sni)
12447      shlibpath_overrides_runpath=no
12448      need_lib_prefix=no
12449      export_dynamic_flag_spec='${wl}-Blargedynsym'
12450      runpath_var=LD_RUN_PATH
12451      ;;
12452    siemens)
12453      need_lib_prefix=no
12454      ;;
12455    motorola)
12456      need_lib_prefix=no
12457      need_version=no
12458      shlibpath_overrides_runpath=no
12459      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12460      ;;
12461  esac
12462  ;;
12463
12464sysv4*MP*)
12465  if test -d /usr/nec ;then
12466    version_type=linux
12467    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12468    soname_spec='$libname${shared_ext}.$major'
12469    shlibpath_var=LD_LIBRARY_PATH
12470  fi
12471  ;;
12472
12473sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12474  version_type=freebsd-elf
12475  need_lib_prefix=no
12476  need_version=no
12477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12478  soname_spec='${libname}${release}${shared_ext}$major'
12479  shlibpath_var=LD_LIBRARY_PATH
12480  hardcode_into_libs=yes
12481  if test "$with_gnu_ld" = yes; then
12482    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12483    shlibpath_overrides_runpath=no
12484  else
12485    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12486    shlibpath_overrides_runpath=yes
12487    case $host_os in
12488      sco3.2v5*)
12489        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12490	;;
12491    esac
12492  fi
12493  sys_lib_dlsearch_path_spec='/usr/lib'
12494  ;;
12495
12496uts4*)
12497  version_type=linux
12498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12499  soname_spec='${libname}${release}${shared_ext}$major'
12500  shlibpath_var=LD_LIBRARY_PATH
12501  ;;
12502
12503*)
12504  dynamic_linker=no
12505  ;;
12506esac
12507{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12508echo "${ECHO_T}$dynamic_linker" >&6; }
12509test "$dynamic_linker" = no && can_build_shared=no
12510
12511variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12512if test "$GCC" = yes; then
12513  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12514fi
12515
12516{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12517echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12518hardcode_action_CXX=
12519if test -n "$hardcode_libdir_flag_spec_CXX" || \
12520   test -n "$runpath_var_CXX" || \
12521   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12522
12523  # We can hardcode non-existant directories.
12524  if test "$hardcode_direct_CXX" != no &&
12525     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12526     # have to relink, otherwise we might link with an installed library
12527     # when we should be linking with a yet-to-be-installed one
12528     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12529     test "$hardcode_minus_L_CXX" != no; then
12530    # Linking always hardcodes the temporary library directory.
12531    hardcode_action_CXX=relink
12532  else
12533    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12534    hardcode_action_CXX=immediate
12535  fi
12536else
12537  # We cannot hardcode anything, or else we can only hardcode existing
12538  # directories.
12539  hardcode_action_CXX=unsupported
12540fi
12541{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12542echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12543
12544if test "$hardcode_action_CXX" = relink; then
12545  # Fast installation is not supported
12546  enable_fast_install=no
12547elif test "$shlibpath_overrides_runpath" = yes ||
12548     test "$enable_shared" = no; then
12549  # Fast installation is not necessary
12550  enable_fast_install=needless
12551fi
12552
12553
12554# The else clause should only fire when bootstrapping the
12555# libtool distribution, otherwise you forgot to ship ltmain.sh
12556# with your package, and you will get complaints that there are
12557# no rules to generate ltmain.sh.
12558if test -f "$ltmain"; then
12559  # See if we are running on zsh, and set the options which allow our commands through
12560  # without removal of \ escapes.
12561  if test -n "${ZSH_VERSION+set}" ; then
12562    setopt NO_GLOB_SUBST
12563  fi
12564  # Now quote all the things that may contain metacharacters while being
12565  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12566  # variables and quote the copies for generation of the libtool script.
12567  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12568    SED SHELL STRIP \
12569    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12570    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12571    deplibs_check_method reload_flag reload_cmds need_locks \
12572    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12573    lt_cv_sys_global_symbol_to_c_name_address \
12574    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12575    old_postinstall_cmds old_postuninstall_cmds \
12576    compiler_CXX \
12577    CC_CXX \
12578    LD_CXX \
12579    lt_prog_compiler_wl_CXX \
12580    lt_prog_compiler_pic_CXX \
12581    lt_prog_compiler_static_CXX \
12582    lt_prog_compiler_no_builtin_flag_CXX \
12583    export_dynamic_flag_spec_CXX \
12584    thread_safe_flag_spec_CXX \
12585    whole_archive_flag_spec_CXX \
12586    enable_shared_with_static_runtimes_CXX \
12587    old_archive_cmds_CXX \
12588    old_archive_from_new_cmds_CXX \
12589    predep_objects_CXX \
12590    postdep_objects_CXX \
12591    predeps_CXX \
12592    postdeps_CXX \
12593    compiler_lib_search_path_CXX \
12594    archive_cmds_CXX \
12595    archive_expsym_cmds_CXX \
12596    postinstall_cmds_CXX \
12597    postuninstall_cmds_CXX \
12598    old_archive_from_expsyms_cmds_CXX \
12599    allow_undefined_flag_CXX \
12600    no_undefined_flag_CXX \
12601    export_symbols_cmds_CXX \
12602    hardcode_libdir_flag_spec_CXX \
12603    hardcode_libdir_flag_spec_ld_CXX \
12604    hardcode_libdir_separator_CXX \
12605    hardcode_automatic_CXX \
12606    module_cmds_CXX \
12607    module_expsym_cmds_CXX \
12608    lt_cv_prog_compiler_c_o_CXX \
12609    fix_srcfile_path_CXX \
12610    exclude_expsyms_CXX \
12611    include_expsyms_CXX; do
12612
12613    case $var in
12614    old_archive_cmds_CXX | \
12615    old_archive_from_new_cmds_CXX | \
12616    archive_cmds_CXX | \
12617    archive_expsym_cmds_CXX | \
12618    module_cmds_CXX | \
12619    module_expsym_cmds_CXX | \
12620    old_archive_from_expsyms_cmds_CXX | \
12621    export_symbols_cmds_CXX | \
12622    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12623    postinstall_cmds | postuninstall_cmds | \
12624    old_postinstall_cmds | old_postuninstall_cmds | \
12625    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12626      # Double-quote double-evaled strings.
12627      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12628      ;;
12629    *)
12630      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12631      ;;
12632    esac
12633  done
12634
12635  case $lt_echo in
12636  *'\$0 --fallback-echo"')
12637    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12638    ;;
12639  esac
12640
12641cfgfile="$ofile"
12642
12643  cat <<__EOF__ >> "$cfgfile"
12644# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12645
12646# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12647
12648# Shell to use when invoking shell scripts.
12649SHELL=$lt_SHELL
12650
12651# Whether or not to build shared libraries.
12652build_libtool_libs=$enable_shared
12653
12654# Whether or not to build static libraries.
12655build_old_libs=$enable_static
12656
12657# Whether or not to add -lc for building shared libraries.
12658build_libtool_need_lc=$archive_cmds_need_lc_CXX
12659
12660# Whether or not to disallow shared libs when runtime libs are static
12661allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12662
12663# Whether or not to optimize for fast installation.
12664fast_install=$enable_fast_install
12665
12666# The host system.
12667host_alias=$host_alias
12668host=$host
12669host_os=$host_os
12670
12671# The build system.
12672build_alias=$build_alias
12673build=$build
12674build_os=$build_os
12675
12676# An echo program that does not interpret backslashes.
12677echo=$lt_echo
12678
12679# The archiver.
12680AR=$lt_AR
12681AR_FLAGS=$lt_AR_FLAGS
12682
12683# A C compiler.
12684LTCC=$lt_LTCC
12685
12686# LTCC compiler flags.
12687LTCFLAGS=$lt_LTCFLAGS
12688
12689# A language-specific compiler.
12690CC=$lt_compiler_CXX
12691
12692# Is the compiler the GNU C compiler?
12693with_gcc=$GCC_CXX
12694
12695# An ERE matcher.
12696EGREP=$lt_EGREP
12697
12698# The linker used to build libraries.
12699LD=$lt_LD_CXX
12700
12701# Whether we need hard or soft links.
12702LN_S=$lt_LN_S
12703
12704# A BSD-compatible nm program.
12705NM=$lt_NM
12706
12707# A symbol stripping program
12708STRIP=$lt_STRIP
12709
12710# Used to examine libraries when file_magic_cmd begins "file"
12711MAGIC_CMD=$MAGIC_CMD
12712
12713# Used on cygwin: DLL creation program.
12714DLLTOOL="$DLLTOOL"
12715
12716# Used on cygwin: object dumper.
12717OBJDUMP="$OBJDUMP"
12718
12719# Used on cygwin: assembler.
12720AS="$AS"
12721
12722# The name of the directory that contains temporary libtool files.
12723objdir=$objdir
12724
12725# How to create reloadable object files.
12726reload_flag=$lt_reload_flag
12727reload_cmds=$lt_reload_cmds
12728
12729# How to pass a linker flag through the compiler.
12730wl=$lt_lt_prog_compiler_wl_CXX
12731
12732# Object file suffix (normally "o").
12733objext="$ac_objext"
12734
12735# Old archive suffix (normally "a").
12736libext="$libext"
12737
12738# Shared library suffix (normally ".so").
12739shrext_cmds='$shrext_cmds'
12740
12741# Executable file suffix (normally "").
12742exeext="$exeext"
12743
12744# Additional compiler flags for building library objects.
12745pic_flag=$lt_lt_prog_compiler_pic_CXX
12746pic_mode=$pic_mode
12747
12748# What is the maximum length of a command?
12749max_cmd_len=$lt_cv_sys_max_cmd_len
12750
12751# Does compiler simultaneously support -c and -o options?
12752compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12753
12754# Must we lock files when doing compilation?
12755need_locks=$lt_need_locks
12756
12757# Do we need the lib prefix for modules?
12758need_lib_prefix=$need_lib_prefix
12759
12760# Do we need a version for libraries?
12761need_version=$need_version
12762
12763# Whether dlopen is supported.
12764dlopen_support=$enable_dlopen
12765
12766# Whether dlopen of programs is supported.
12767dlopen_self=$enable_dlopen_self
12768
12769# Whether dlopen of statically linked programs is supported.
12770dlopen_self_static=$enable_dlopen_self_static
12771
12772# Compiler flag to prevent dynamic linking.
12773link_static_flag=$lt_lt_prog_compiler_static_CXX
12774
12775# Compiler flag to turn off builtin functions.
12776no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12777
12778# Compiler flag to allow reflexive dlopens.
12779export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12780
12781# Compiler flag to generate shared objects directly from archives.
12782whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12783
12784# Compiler flag to generate thread-safe objects.
12785thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12786
12787# Library versioning type.
12788version_type=$version_type
12789
12790# Format of library name prefix.
12791libname_spec=$lt_libname_spec
12792
12793# List of archive names.  First name is the real one, the rest are links.
12794# The last name is the one that the linker finds with -lNAME.
12795library_names_spec=$lt_library_names_spec
12796
12797# The coded name of the library, if different from the real name.
12798soname_spec=$lt_soname_spec
12799
12800# Commands used to build and install an old-style archive.
12801RANLIB=$lt_RANLIB
12802old_archive_cmds=$lt_old_archive_cmds_CXX
12803old_postinstall_cmds=$lt_old_postinstall_cmds
12804old_postuninstall_cmds=$lt_old_postuninstall_cmds
12805
12806# Create an old-style archive from a shared archive.
12807old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12808
12809# Create a temporary old-style archive to link instead of a shared archive.
12810old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12811
12812# Commands used to build and install a shared archive.
12813archive_cmds=$lt_archive_cmds_CXX
12814archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12815postinstall_cmds=$lt_postinstall_cmds
12816postuninstall_cmds=$lt_postuninstall_cmds
12817
12818# Commands used to build a loadable module (assumed same as above if empty)
12819module_cmds=$lt_module_cmds_CXX
12820module_expsym_cmds=$lt_module_expsym_cmds_CXX
12821
12822# Commands to strip libraries.
12823old_striplib=$lt_old_striplib
12824striplib=$lt_striplib
12825
12826# Dependencies to place before the objects being linked to create a
12827# shared library.
12828predep_objects=$lt_predep_objects_CXX
12829
12830# Dependencies to place after the objects being linked to create a
12831# shared library.
12832postdep_objects=$lt_postdep_objects_CXX
12833
12834# Dependencies to place before the objects being linked to create a
12835# shared library.
12836predeps=$lt_predeps_CXX
12837
12838# Dependencies to place after the objects being linked to create a
12839# shared library.
12840postdeps=$lt_postdeps_CXX
12841
12842# The library search path used internally by the compiler when linking
12843# a shared library.
12844compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12845
12846# Method to check whether dependent libraries are shared objects.
12847deplibs_check_method=$lt_deplibs_check_method
12848
12849# Command to use when deplibs_check_method == file_magic.
12850file_magic_cmd=$lt_file_magic_cmd
12851
12852# Flag that allows shared libraries with undefined symbols to be built.
12853allow_undefined_flag=$lt_allow_undefined_flag_CXX
12854
12855# Flag that forces no undefined symbols.
12856no_undefined_flag=$lt_no_undefined_flag_CXX
12857
12858# Commands used to finish a libtool library installation in a directory.
12859finish_cmds=$lt_finish_cmds
12860
12861# Same as above, but a single script fragment to be evaled but not shown.
12862finish_eval=$lt_finish_eval
12863
12864# Take the output of nm and produce a listing of raw symbols and C names.
12865global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12866
12867# Transform the output of nm in a proper C declaration
12868global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12869
12870# Transform the output of nm in a C name address pair
12871global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12872
12873# This is the shared library runtime path variable.
12874runpath_var=$runpath_var
12875
12876# This is the shared library path variable.
12877shlibpath_var=$shlibpath_var
12878
12879# Is shlibpath searched before the hard-coded library search path?
12880shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12881
12882# How to hardcode a shared library path into an executable.
12883hardcode_action=$hardcode_action_CXX
12884
12885# Whether we should hardcode library paths into libraries.
12886hardcode_into_libs=$hardcode_into_libs
12887
12888# Flag to hardcode \$libdir into a binary during linking.
12889# This must work even if \$libdir does not exist.
12890hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12891
12892# If ld is used when linking, flag to hardcode \$libdir into
12893# a binary during linking. This must work even if \$libdir does
12894# not exist.
12895hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12896
12897# Whether we need a single -rpath flag with a separated argument.
12898hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12899
12900# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12901# resulting binary.
12902hardcode_direct=$hardcode_direct_CXX
12903
12904# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12905# resulting binary.
12906hardcode_minus_L=$hardcode_minus_L_CXX
12907
12908# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12909# the resulting binary.
12910hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12911
12912# Set to yes if building a shared library automatically hardcodes DIR into the library
12913# and all subsequent libraries and executables linked against it.
12914hardcode_automatic=$hardcode_automatic_CXX
12915
12916# Variables whose values should be saved in libtool wrapper scripts and
12917# restored at relink time.
12918variables_saved_for_relink="$variables_saved_for_relink"
12919
12920# Whether libtool must link a program against all its dependency libraries.
12921link_all_deplibs=$link_all_deplibs_CXX
12922
12923# Compile-time system search path for libraries
12924sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12925
12926# Run-time system search path for libraries
12927sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12928
12929# Fix the shell variable \$srcfile for the compiler.
12930fix_srcfile_path=$lt_fix_srcfile_path
12931
12932# Set to yes if exported symbols are required.
12933always_export_symbols=$always_export_symbols_CXX
12934
12935# The commands to list exported symbols.
12936export_symbols_cmds=$lt_export_symbols_cmds_CXX
12937
12938# The commands to extract the exported symbol list from a shared archive.
12939extract_expsyms_cmds=$lt_extract_expsyms_cmds
12940
12941# Symbols that should not be listed in the preloaded symbols.
12942exclude_expsyms=$lt_exclude_expsyms_CXX
12943
12944# Symbols that must always be exported.
12945include_expsyms=$lt_include_expsyms_CXX
12946
12947# ### END LIBTOOL TAG CONFIG: $tagname
12948
12949__EOF__
12950
12951
12952else
12953  # If there is no Makefile yet, we rely on a make rule to execute
12954  # `config.status --recheck' to rerun these tests and create the
12955  # libtool script then.
12956  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12957  if test -f "$ltmain_in"; then
12958    test -f Makefile && make "$ltmain"
12959  fi
12960fi
12961
12962
12963ac_ext=c
12964ac_cpp='$CPP $CPPFLAGS'
12965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12967ac_compiler_gnu=$ac_cv_c_compiler_gnu
12968
12969CC=$lt_save_CC
12970LDCXX=$LD
12971LD=$lt_save_LD
12972GCC=$lt_save_GCC
12973with_gnu_ldcxx=$with_gnu_ld
12974with_gnu_ld=$lt_save_with_gnu_ld
12975lt_cv_path_LDCXX=$lt_cv_path_LD
12976lt_cv_path_LD=$lt_save_path_LD
12977lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12978lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12979
12980	else
12981	  tagname=""
12982	fi
12983	;;
12984
12985      F77)
12986	if test -n "$F77" && test "X$F77" != "Xno"; then
12987
12988ac_ext=f
12989ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12990ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12991ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12992
12993
12994archive_cmds_need_lc_F77=no
12995allow_undefined_flag_F77=
12996always_export_symbols_F77=no
12997archive_expsym_cmds_F77=
12998export_dynamic_flag_spec_F77=
12999hardcode_direct_F77=no
13000hardcode_libdir_flag_spec_F77=
13001hardcode_libdir_flag_spec_ld_F77=
13002hardcode_libdir_separator_F77=
13003hardcode_minus_L_F77=no
13004hardcode_automatic_F77=no
13005module_cmds_F77=
13006module_expsym_cmds_F77=
13007link_all_deplibs_F77=unknown
13008old_archive_cmds_F77=$old_archive_cmds
13009no_undefined_flag_F77=
13010whole_archive_flag_spec_F77=
13011enable_shared_with_static_runtimes_F77=no
13012
13013# Source file extension for f77 test sources.
13014ac_ext=f
13015
13016# Object file extension for compiled f77 test sources.
13017objext=o
13018objext_F77=$objext
13019
13020# Code to be used in simple compile tests
13021lt_simple_compile_test_code="\
13022      subroutine t
13023      return
13024      end
13025"
13026
13027# Code to be used in simple link tests
13028lt_simple_link_test_code="\
13029      program t
13030      end
13031"
13032
13033# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13034
13035# If no C compiler was specified, use CC.
13036LTCC=${LTCC-"$CC"}
13037
13038# If no C compiler flags were specified, use CFLAGS.
13039LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13040
13041# Allow CC to be a program name with arguments.
13042compiler=$CC
13043
13044
13045# save warnings/boilerplate of simple test code
13046ac_outfile=conftest.$ac_objext
13047echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13048eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13049_lt_compiler_boilerplate=`cat conftest.err`
13050$rm conftest*
13051
13052ac_outfile=conftest.$ac_objext
13053echo "$lt_simple_link_test_code" >conftest.$ac_ext
13054eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13055_lt_linker_boilerplate=`cat conftest.err`
13056$rm conftest*
13057
13058
13059# Allow CC to be a program name with arguments.
13060lt_save_CC="$CC"
13061CC=${F77-"f77"}
13062compiler=$CC
13063compiler_F77=$CC
13064for cc_temp in $compiler""; do
13065  case $cc_temp in
13066    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13067    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13068    \-*) ;;
13069    *) break;;
13070  esac
13071done
13072cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13073
13074
13075{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13076echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13077{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13078echo "${ECHO_T}$can_build_shared" >&6; }
13079
13080{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13081echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13082test "$can_build_shared" = "no" && enable_shared=no
13083
13084# On AIX, shared libraries and static libraries use the same namespace, and
13085# are all built from PIC.
13086case $host_os in
13087aix3*)
13088  test "$enable_shared" = yes && enable_static=no
13089  if test -n "$RANLIB"; then
13090    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13091    postinstall_cmds='$RANLIB $lib'
13092  fi
13093  ;;
13094aix4* | aix5*)
13095  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13096    test "$enable_shared" = yes && enable_static=no
13097  fi
13098  ;;
13099esac
13100{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13101echo "${ECHO_T}$enable_shared" >&6; }
13102
13103{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13104echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13105# Make sure either enable_shared or enable_static is yes.
13106test "$enable_shared" = yes || enable_static=yes
13107{ echo "$as_me:$LINENO: result: $enable_static" >&5
13108echo "${ECHO_T}$enable_static" >&6; }
13109
13110GCC_F77="$G77"
13111LD_F77="$LD"
13112
13113lt_prog_compiler_wl_F77=
13114lt_prog_compiler_pic_F77=
13115lt_prog_compiler_static_F77=
13116
13117{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13118echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13119
13120  if test "$GCC" = yes; then
13121    lt_prog_compiler_wl_F77='-Wl,'
13122    lt_prog_compiler_static_F77='-static'
13123
13124    case $host_os in
13125      aix*)
13126      # All AIX code is PIC.
13127      if test "$host_cpu" = ia64; then
13128	# AIX 5 now supports IA64 processor
13129	lt_prog_compiler_static_F77='-Bstatic'
13130      fi
13131      ;;
13132
13133    amigaos*)
13134      # FIXME: we need at least 68020 code to build shared libraries, but
13135      # adding the `-m68020' flag to GCC prevents building anything better,
13136      # like `-m68040'.
13137      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13138      ;;
13139
13140    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13141      # PIC is the default for these OSes.
13142      ;;
13143
13144    mingw* | cygwin* | pw32* | os2*)
13145      # This hack is so that the source file can tell whether it is being
13146      # built for inclusion in a dll (and should export symbols for example).
13147      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13148      # (--disable-auto-import) libraries
13149      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13150      ;;
13151
13152    darwin* | rhapsody*)
13153      # PIC is the default on this platform
13154      # Common symbols not allowed in MH_DYLIB files
13155      lt_prog_compiler_pic_F77='-fno-common'
13156      ;;
13157
13158    interix[3-9]*)
13159      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13160      # Instead, we relocate shared libraries at runtime.
13161      ;;
13162
13163    msdosdjgpp*)
13164      # Just because we use GCC doesn't mean we suddenly get shared libraries
13165      # on systems that don't support them.
13166      lt_prog_compiler_can_build_shared_F77=no
13167      enable_shared=no
13168      ;;
13169
13170    sysv4*MP*)
13171      if test -d /usr/nec; then
13172	lt_prog_compiler_pic_F77=-Kconform_pic
13173      fi
13174      ;;
13175
13176    hpux*)
13177      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13178      # not for PA HP-UX.
13179      case $host_cpu in
13180      hppa*64*|ia64*)
13181	# +Z the default
13182	;;
13183      *)
13184	lt_prog_compiler_pic_F77='-fPIC'
13185	;;
13186      esac
13187      ;;
13188
13189    *)
13190      lt_prog_compiler_pic_F77='-fPIC'
13191      ;;
13192    esac
13193  else
13194    # PORTME Check for flag to pass linker flags through the system compiler.
13195    case $host_os in
13196    aix*)
13197      lt_prog_compiler_wl_F77='-Wl,'
13198      if test "$host_cpu" = ia64; then
13199	# AIX 5 now supports IA64 processor
13200	lt_prog_compiler_static_F77='-Bstatic'
13201      else
13202	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13203      fi
13204      ;;
13205      darwin*)
13206        # PIC is the default on this platform
13207        # Common symbols not allowed in MH_DYLIB files
13208       case $cc_basename in
13209         xlc*)
13210         lt_prog_compiler_pic_F77='-qnocommon'
13211         lt_prog_compiler_wl_F77='-Wl,'
13212         ;;
13213       esac
13214       ;;
13215
13216    mingw* | cygwin* | pw32* | os2*)
13217      # This hack is so that the source file can tell whether it is being
13218      # built for inclusion in a dll (and should export symbols for example).
13219      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13220      ;;
13221
13222    hpux9* | hpux10* | hpux11*)
13223      lt_prog_compiler_wl_F77='-Wl,'
13224      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13225      # not for PA HP-UX.
13226      case $host_cpu in
13227      hppa*64*|ia64*)
13228	# +Z the default
13229	;;
13230      *)
13231	lt_prog_compiler_pic_F77='+Z'
13232	;;
13233      esac
13234      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13235      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13236      ;;
13237
13238    irix5* | irix6* | nonstopux*)
13239      lt_prog_compiler_wl_F77='-Wl,'
13240      # PIC (with -KPIC) is the default.
13241      lt_prog_compiler_static_F77='-non_shared'
13242      ;;
13243
13244    newsos6)
13245      lt_prog_compiler_pic_F77='-KPIC'
13246      lt_prog_compiler_static_F77='-Bstatic'
13247      ;;
13248
13249    linux* | k*bsd*-gnu)
13250      case $cc_basename in
13251      icc* | ecc*)
13252	lt_prog_compiler_wl_F77='-Wl,'
13253	lt_prog_compiler_pic_F77='-KPIC'
13254	lt_prog_compiler_static_F77='-static'
13255        ;;
13256      pgcc* | pgf77* | pgf90* | pgf95*)
13257        # Portland Group compilers (*not* the Pentium gcc compiler,
13258	# which looks to be a dead project)
13259	lt_prog_compiler_wl_F77='-Wl,'
13260	lt_prog_compiler_pic_F77='-fpic'
13261	lt_prog_compiler_static_F77='-Bstatic'
13262        ;;
13263      ccc*)
13264        lt_prog_compiler_wl_F77='-Wl,'
13265        # All Alpha code is PIC.
13266        lt_prog_compiler_static_F77='-non_shared'
13267        ;;
13268      *)
13269        case `$CC -V 2>&1 | sed 5q` in
13270	*Sun\ C*)
13271	  # Sun C 5.9
13272	  lt_prog_compiler_pic_F77='-KPIC'
13273	  lt_prog_compiler_static_F77='-Bstatic'
13274	  lt_prog_compiler_wl_F77='-Wl,'
13275	  ;;
13276	*Sun\ F*)
13277	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13278	  lt_prog_compiler_pic_F77='-KPIC'
13279	  lt_prog_compiler_static_F77='-Bstatic'
13280	  lt_prog_compiler_wl_F77=''
13281	  ;;
13282	esac
13283	;;
13284      esac
13285      ;;
13286
13287    osf3* | osf4* | osf5*)
13288      lt_prog_compiler_wl_F77='-Wl,'
13289      # All OSF/1 code is PIC.
13290      lt_prog_compiler_static_F77='-non_shared'
13291      ;;
13292
13293    rdos*)
13294      lt_prog_compiler_static_F77='-non_shared'
13295      ;;
13296
13297    solaris*)
13298      lt_prog_compiler_pic_F77='-KPIC'
13299      lt_prog_compiler_static_F77='-Bstatic'
13300      case $cc_basename in
13301      f77* | f90* | f95*)
13302	lt_prog_compiler_wl_F77='-Qoption ld ';;
13303      *)
13304	lt_prog_compiler_wl_F77='-Wl,';;
13305      esac
13306      ;;
13307
13308    sunos4*)
13309      lt_prog_compiler_wl_F77='-Qoption ld '
13310      lt_prog_compiler_pic_F77='-PIC'
13311      lt_prog_compiler_static_F77='-Bstatic'
13312      ;;
13313
13314    sysv4 | sysv4.2uw2* | sysv4.3*)
13315      lt_prog_compiler_wl_F77='-Wl,'
13316      lt_prog_compiler_pic_F77='-KPIC'
13317      lt_prog_compiler_static_F77='-Bstatic'
13318      ;;
13319
13320    sysv4*MP*)
13321      if test -d /usr/nec ;then
13322	lt_prog_compiler_pic_F77='-Kconform_pic'
13323	lt_prog_compiler_static_F77='-Bstatic'
13324      fi
13325      ;;
13326
13327    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13328      lt_prog_compiler_wl_F77='-Wl,'
13329      lt_prog_compiler_pic_F77='-KPIC'
13330      lt_prog_compiler_static_F77='-Bstatic'
13331      ;;
13332
13333    unicos*)
13334      lt_prog_compiler_wl_F77='-Wl,'
13335      lt_prog_compiler_can_build_shared_F77=no
13336      ;;
13337
13338    uts4*)
13339      lt_prog_compiler_pic_F77='-pic'
13340      lt_prog_compiler_static_F77='-Bstatic'
13341      ;;
13342
13343    *)
13344      lt_prog_compiler_can_build_shared_F77=no
13345      ;;
13346    esac
13347  fi
13348
13349{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13350echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13351
13352#
13353# Check to make sure the PIC flag actually works.
13354#
13355if test -n "$lt_prog_compiler_pic_F77"; then
13356
13357{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13358echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13359if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13360  echo $ECHO_N "(cached) $ECHO_C" >&6
13361else
13362  lt_prog_compiler_pic_works_F77=no
13363  ac_outfile=conftest.$ac_objext
13364   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13365   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13366   # Insert the option either (1) after the last *FLAGS variable, or
13367   # (2) before a word containing "conftest.", or (3) at the end.
13368   # Note that $ac_compile itself does not contain backslashes and begins
13369   # with a dollar sign (not a hyphen), so the echo should work correctly.
13370   # The option is referenced via a variable to avoid confusing sed.
13371   lt_compile=`echo "$ac_compile" | $SED \
13372   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13373   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13374   -e 's:$: $lt_compiler_flag:'`
13375   (eval echo "\"\$as_me:13375: $lt_compile\"" >&5)
13376   (eval "$lt_compile" 2>conftest.err)
13377   ac_status=$?
13378   cat conftest.err >&5
13379   echo "$as_me:13379: \$? = $ac_status" >&5
13380   if (exit $ac_status) && test -s "$ac_outfile"; then
13381     # The compiler can only warn and ignore the option if not recognized
13382     # So say no if there are warnings other than the usual output.
13383     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13384     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13385     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13386       lt_prog_compiler_pic_works_F77=yes
13387     fi
13388   fi
13389   $rm conftest*
13390
13391fi
13392{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13393echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13394
13395if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13396    case $lt_prog_compiler_pic_F77 in
13397     "" | " "*) ;;
13398     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13399     esac
13400else
13401    lt_prog_compiler_pic_F77=
13402     lt_prog_compiler_can_build_shared_F77=no
13403fi
13404
13405fi
13406case $host_os in
13407  # For platforms which do not support PIC, -DPIC is meaningless:
13408  *djgpp*)
13409    lt_prog_compiler_pic_F77=
13410    ;;
13411  *)
13412    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13413    ;;
13414esac
13415
13416#
13417# Check to make sure the static flag actually works.
13418#
13419wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13420{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13421echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13422if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13423  echo $ECHO_N "(cached) $ECHO_C" >&6
13424else
13425  lt_prog_compiler_static_works_F77=no
13426   save_LDFLAGS="$LDFLAGS"
13427   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13428   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13429   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13430     # The linker can only warn and ignore the option if not recognized
13431     # So say no if there are warnings
13432     if test -s conftest.err; then
13433       # Append any errors to the config.log.
13434       cat conftest.err 1>&5
13435       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13436       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13437       if diff conftest.exp conftest.er2 >/dev/null; then
13438         lt_prog_compiler_static_works_F77=yes
13439       fi
13440     else
13441       lt_prog_compiler_static_works_F77=yes
13442     fi
13443   fi
13444   $rm conftest*
13445   LDFLAGS="$save_LDFLAGS"
13446
13447fi
13448{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13449echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13450
13451if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13452    :
13453else
13454    lt_prog_compiler_static_F77=
13455fi
13456
13457
13458{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13459echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13460if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13461  echo $ECHO_N "(cached) $ECHO_C" >&6
13462else
13463  lt_cv_prog_compiler_c_o_F77=no
13464   $rm -r conftest 2>/dev/null
13465   mkdir conftest
13466   cd conftest
13467   mkdir out
13468   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13469
13470   lt_compiler_flag="-o out/conftest2.$ac_objext"
13471   # Insert the option either (1) after the last *FLAGS variable, or
13472   # (2) before a word containing "conftest.", or (3) at the end.
13473   # Note that $ac_compile itself does not contain backslashes and begins
13474   # with a dollar sign (not a hyphen), so the echo should work correctly.
13475   lt_compile=`echo "$ac_compile" | $SED \
13476   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13477   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13478   -e 's:$: $lt_compiler_flag:'`
13479   (eval echo "\"\$as_me:13479: $lt_compile\"" >&5)
13480   (eval "$lt_compile" 2>out/conftest.err)
13481   ac_status=$?
13482   cat out/conftest.err >&5
13483   echo "$as_me:13483: \$? = $ac_status" >&5
13484   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13485   then
13486     # The compiler can only warn and ignore the option if not recognized
13487     # So say no if there are warnings
13488     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13489     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13490     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13491       lt_cv_prog_compiler_c_o_F77=yes
13492     fi
13493   fi
13494   chmod u+w . 2>&5
13495   $rm conftest*
13496   # SGI C++ compiler will create directory out/ii_files/ for
13497   # template instantiation
13498   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13499   $rm out/* && rmdir out
13500   cd ..
13501   rmdir conftest
13502   $rm conftest*
13503
13504fi
13505{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13506echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13507
13508
13509hard_links="nottested"
13510if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13511  # do not overwrite the value of need_locks provided by the user
13512  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13513echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13514  hard_links=yes
13515  $rm conftest*
13516  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13517  touch conftest.a
13518  ln conftest.a conftest.b 2>&5 || hard_links=no
13519  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13520  { echo "$as_me:$LINENO: result: $hard_links" >&5
13521echo "${ECHO_T}$hard_links" >&6; }
13522  if test "$hard_links" = no; then
13523    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13524echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13525    need_locks=warn
13526  fi
13527else
13528  need_locks=no
13529fi
13530
13531{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13532echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13533
13534  runpath_var=
13535  allow_undefined_flag_F77=
13536  enable_shared_with_static_runtimes_F77=no
13537  archive_cmds_F77=
13538  archive_expsym_cmds_F77=
13539  old_archive_From_new_cmds_F77=
13540  old_archive_from_expsyms_cmds_F77=
13541  export_dynamic_flag_spec_F77=
13542  whole_archive_flag_spec_F77=
13543  thread_safe_flag_spec_F77=
13544  hardcode_libdir_flag_spec_F77=
13545  hardcode_libdir_flag_spec_ld_F77=
13546  hardcode_libdir_separator_F77=
13547  hardcode_direct_F77=no
13548  hardcode_minus_L_F77=no
13549  hardcode_shlibpath_var_F77=unsupported
13550  link_all_deplibs_F77=unknown
13551  hardcode_automatic_F77=no
13552  module_cmds_F77=
13553  module_expsym_cmds_F77=
13554  always_export_symbols_F77=no
13555  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13556  # include_expsyms should be a list of space-separated symbols to be *always*
13557  # included in the symbol list
13558  include_expsyms_F77=
13559  # exclude_expsyms can be an extended regexp of symbols to exclude
13560  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13561  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13562  # as well as any symbol that contains `d'.
13563  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13564  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13565  # platforms (ab)use it in PIC code, but their linkers get confused if
13566  # the symbol is explicitly referenced.  Since portable code cannot
13567  # rely on this symbol name, it's probably fine to never include it in
13568  # preloaded symbol tables.
13569  extract_expsyms_cmds=
13570  # Just being paranoid about ensuring that cc_basename is set.
13571  for cc_temp in $compiler""; do
13572  case $cc_temp in
13573    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13574    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13575    \-*) ;;
13576    *) break;;
13577  esac
13578done
13579cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13580
13581  case $host_os in
13582  cygwin* | mingw* | pw32*)
13583    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13584    # When not using gcc, we currently assume that we are using
13585    # Microsoft Visual C++.
13586    if test "$GCC" != yes; then
13587      with_gnu_ld=no
13588    fi
13589    ;;
13590  interix*)
13591    # we just hope/assume this is gcc and not c89 (= MSVC++)
13592    with_gnu_ld=yes
13593    ;;
13594  openbsd*)
13595    with_gnu_ld=no
13596    ;;
13597  esac
13598
13599  ld_shlibs_F77=yes
13600  if test "$with_gnu_ld" = yes; then
13601    # If archive_cmds runs LD, not CC, wlarc should be empty
13602    wlarc='${wl}'
13603
13604    # Set some defaults for GNU ld with shared library support. These
13605    # are reset later if shared libraries are not supported. Putting them
13606    # here allows them to be overridden if necessary.
13607    runpath_var=LD_RUN_PATH
13608    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13609    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13610    # ancient GNU ld didn't support --whole-archive et. al.
13611    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13612	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13613      else
13614  	whole_archive_flag_spec_F77=
13615    fi
13616    supports_anon_versioning=no
13617    case `$LD -v 2>/dev/null` in
13618      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13619      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13620      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13621      *\ 2.11.*) ;; # other 2.11 versions
13622      *) supports_anon_versioning=yes ;;
13623    esac
13624
13625    # See if GNU ld supports shared libraries.
13626    case $host_os in
13627    aix3* | aix4* | aix5*)
13628      # On AIX/PPC, the GNU linker is very broken
13629      if test "$host_cpu" != ia64; then
13630	ld_shlibs_F77=no
13631	cat <<EOF 1>&2
13632
13633*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13634*** to be unable to reliably create shared libraries on AIX.
13635*** Therefore, libtool is disabling shared libraries support.  If you
13636*** really care for shared libraries, you may want to modify your PATH
13637*** so that a non-GNU linker is found, and then restart.
13638
13639EOF
13640      fi
13641      ;;
13642
13643    amigaos*)
13644      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)'
13645      hardcode_libdir_flag_spec_F77='-L$libdir'
13646      hardcode_minus_L_F77=yes
13647
13648      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13649      # that the semantics of dynamic libraries on AmigaOS, at least up
13650      # to version 4, is to share data among multiple programs linked
13651      # with the same dynamic library.  Since this doesn't match the
13652      # behavior of shared libraries on other platforms, we can't use
13653      # them.
13654      ld_shlibs_F77=no
13655      ;;
13656
13657    beos*)
13658      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13659	allow_undefined_flag_F77=unsupported
13660	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13661	# support --undefined.  This deserves some investigation.  FIXME
13662	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13663      else
13664	ld_shlibs_F77=no
13665      fi
13666      ;;
13667
13668    cygwin* | mingw* | pw32*)
13669      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13670      # as there is no search path for DLLs.
13671      hardcode_libdir_flag_spec_F77='-L$libdir'
13672      allow_undefined_flag_F77=unsupported
13673      always_export_symbols_F77=no
13674      enable_shared_with_static_runtimes_F77=yes
13675      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13676
13677      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13678        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13679	# If the export-symbols file already is a .def file (1st line
13680	# is EXPORTS), use it as is; otherwise, prepend...
13681	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13682	  cp $export_symbols $output_objdir/$soname.def;
13683	else
13684	  echo EXPORTS > $output_objdir/$soname.def;
13685	  cat $export_symbols >> $output_objdir/$soname.def;
13686	fi~
13687	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13688      else
13689	ld_shlibs_F77=no
13690      fi
13691      ;;
13692
13693    interix[3-9]*)
13694      hardcode_direct_F77=no
13695      hardcode_shlibpath_var_F77=no
13696      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13697      export_dynamic_flag_spec_F77='${wl}-E'
13698      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13699      # Instead, shared libraries are loaded at an image base (0x10000000 by
13700      # default) and relocated if they conflict, which is a slow very memory
13701      # consuming and fragmenting process.  To avoid this, we pick a random,
13702      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13703      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13704      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'
13705      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'
13706      ;;
13707
13708    gnu* | linux* | k*bsd*-gnu)
13709      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13710	tmp_addflag=
13711	case $cc_basename,$host_cpu in
13712	pgcc*)				# Portland Group C compiler
13713	  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'
13714	  tmp_addflag=' $pic_flag'
13715	  ;;
13716	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13717	  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'
13718	  tmp_addflag=' $pic_flag -Mnomain' ;;
13719	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13720	  tmp_addflag=' -i_dynamic' ;;
13721	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13722	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13723	ifc* | ifort*)			# Intel Fortran compiler
13724	  tmp_addflag=' -nofor_main' ;;
13725	esac
13726	case `$CC -V 2>&1 | sed 5q` in
13727	*Sun\ C*)			# Sun C 5.9
13728	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13729	  tmp_sharedflag='-G' ;;
13730	*Sun\ F*)			# Sun Fortran 8.3
13731	  tmp_sharedflag='-G' ;;
13732	*)
13733	  tmp_sharedflag='-shared' ;;
13734	esac
13735	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13736
13737	if test $supports_anon_versioning = yes; then
13738	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13739  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13740  $echo "local: *; };" >> $output_objdir/$libname.ver~
13741	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13742	fi
13743      else
13744	ld_shlibs_F77=no
13745      fi
13746      ;;
13747
13748    netbsd*)
13749      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13750	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13751	wlarc=
13752      else
13753	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13754	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13755      fi
13756      ;;
13757
13758    solaris*)
13759      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13760	ld_shlibs_F77=no
13761	cat <<EOF 1>&2
13762
13763*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13764*** create shared libraries on Solaris systems.  Therefore, libtool
13765*** is disabling shared libraries support.  We urge you to upgrade GNU
13766*** binutils to release 2.9.1 or newer.  Another option is to modify
13767*** your PATH or compiler configuration so that the native linker is
13768*** used, and then restart.
13769
13770EOF
13771      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13772	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13773	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13774      else
13775	ld_shlibs_F77=no
13776      fi
13777      ;;
13778
13779    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13780      case `$LD -v 2>&1` in
13781        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13782	ld_shlibs_F77=no
13783	cat <<_LT_EOF 1>&2
13784
13785*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13786*** reliably create shared libraries on SCO systems.  Therefore, libtool
13787*** is disabling shared libraries support.  We urge you to upgrade GNU
13788*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13789*** your PATH or compiler configuration so that the native linker is
13790*** used, and then restart.
13791
13792_LT_EOF
13793	;;
13794	*)
13795	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13796	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13797	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13798	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13799	  else
13800	    ld_shlibs_F77=no
13801	  fi
13802	;;
13803      esac
13804      ;;
13805
13806    sunos4*)
13807      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13808      wlarc=
13809      hardcode_direct_F77=yes
13810      hardcode_shlibpath_var_F77=no
13811      ;;
13812
13813    *)
13814      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13815	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13816	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13817      else
13818	ld_shlibs_F77=no
13819      fi
13820      ;;
13821    esac
13822
13823    if test "$ld_shlibs_F77" = no; then
13824      runpath_var=
13825      hardcode_libdir_flag_spec_F77=
13826      export_dynamic_flag_spec_F77=
13827      whole_archive_flag_spec_F77=
13828    fi
13829  else
13830    # PORTME fill in a description of your system's linker (not GNU ld)
13831    case $host_os in
13832    aix3*)
13833      allow_undefined_flag_F77=unsupported
13834      always_export_symbols_F77=yes
13835      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'
13836      # Note: this linker hardcodes the directories in LIBPATH if there
13837      # are no directories specified by -L.
13838      hardcode_minus_L_F77=yes
13839      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13840	# Neither direct hardcoding nor static linking is supported with a
13841	# broken collect2.
13842	hardcode_direct_F77=unsupported
13843      fi
13844      ;;
13845
13846    aix4* | aix5*)
13847      if test "$host_cpu" = ia64; then
13848	# On IA64, the linker does run time linking by default, so we don't
13849	# have to do anything special.
13850	aix_use_runtimelinking=no
13851	exp_sym_flag='-Bexport'
13852	no_entry_flag=""
13853      else
13854	# If we're using GNU nm, then we don't want the "-C" option.
13855	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13856	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13857	  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'
13858	else
13859	  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'
13860	fi
13861	aix_use_runtimelinking=no
13862
13863	# Test if we are trying to use run time linking or normal
13864	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13865	# need to do runtime linking.
13866	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13867	  for ld_flag in $LDFLAGS; do
13868  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13869  	    aix_use_runtimelinking=yes
13870  	    break
13871  	  fi
13872	  done
13873	  ;;
13874	esac
13875
13876	exp_sym_flag='-bexport'
13877	no_entry_flag='-bnoentry'
13878      fi
13879
13880      # When large executables or shared objects are built, AIX ld can
13881      # have problems creating the table of contents.  If linking a library
13882      # or program results in "error TOC overflow" add -mminimal-toc to
13883      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13884      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13885
13886      archive_cmds_F77=''
13887      hardcode_direct_F77=yes
13888      hardcode_libdir_separator_F77=':'
13889      link_all_deplibs_F77=yes
13890
13891      if test "$GCC" = yes; then
13892	case $host_os in aix4.[012]|aix4.[012].*)
13893	# We only want to do this on AIX 4.2 and lower, the check
13894	# below for broken collect2 doesn't work under 4.3+
13895	  collect2name=`${CC} -print-prog-name=collect2`
13896	  if test -f "$collect2name" && \
13897  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13898	  then
13899  	  # We have reworked collect2
13900  	  :
13901	  else
13902  	  # We have old collect2
13903  	  hardcode_direct_F77=unsupported
13904  	  # It fails to find uninstalled libraries when the uninstalled
13905  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13906  	  # to unsupported forces relinking
13907  	  hardcode_minus_L_F77=yes
13908  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13909  	  hardcode_libdir_separator_F77=
13910	  fi
13911	  ;;
13912	esac
13913	shared_flag='-shared'
13914	if test "$aix_use_runtimelinking" = yes; then
13915	  shared_flag="$shared_flag "'${wl}-G'
13916	fi
13917      else
13918	# not using gcc
13919	if test "$host_cpu" = ia64; then
13920  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13921  	# chokes on -Wl,-G. The following line is correct:
13922	  shared_flag='-G'
13923	else
13924	  if test "$aix_use_runtimelinking" = yes; then
13925	    shared_flag='${wl}-G'
13926	  else
13927	    shared_flag='${wl}-bM:SRE'
13928	  fi
13929	fi
13930      fi
13931
13932      # It seems that -bexpall does not export symbols beginning with
13933      # underscore (_), so it is better to generate a list of symbols to export.
13934      always_export_symbols_F77=yes
13935      if test "$aix_use_runtimelinking" = yes; then
13936	# Warning - without using the other runtime loading flags (-brtl),
13937	# -berok will link without error, but may produce a broken library.
13938	allow_undefined_flag_F77='-berok'
13939       # Determine the default libpath from the value encoded in an empty executable.
13940       cat >conftest.$ac_ext <<_ACEOF
13941      program main
13942
13943      end
13944_ACEOF
13945rm -f conftest.$ac_objext conftest$ac_exeext
13946if { (ac_try="$ac_link"
13947case "(($ac_try" in
13948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949  *) ac_try_echo=$ac_try;;
13950esac
13951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952  (eval "$ac_link") 2>conftest.er1
13953  ac_status=$?
13954  grep -v '^ *+' conftest.er1 >conftest.err
13955  rm -f conftest.er1
13956  cat conftest.err >&5
13957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958  (exit $ac_status); } && {
13959	 test -z "$ac_f77_werror_flag" ||
13960	 test ! -s conftest.err
13961       } && test -s conftest$ac_exeext &&
13962       $as_test_x conftest$ac_exeext; then
13963
13964lt_aix_libpath_sed='
13965    /Import File Strings/,/^$/ {
13966	/^0/ {
13967	    s/^0  *\(.*\)$/\1/
13968	    p
13969	}
13970    }'
13971aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13972# Check for a 64-bit object if we didn't find anything.
13973if test -z "$aix_libpath"; then
13974  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13975fi
13976else
13977  echo "$as_me: failed program was:" >&5
13978sed 's/^/| /' conftest.$ac_ext >&5
13979
13980
13981fi
13982
13983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13984      conftest$ac_exeext conftest.$ac_ext
13985if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13986
13987       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13988	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"
13989       else
13990	if test "$host_cpu" = ia64; then
13991	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13992	  allow_undefined_flag_F77="-z nodefs"
13993	  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"
13994	else
13995	 # Determine the default libpath from the value encoded in an empty executable.
13996	 cat >conftest.$ac_ext <<_ACEOF
13997      program main
13998
13999      end
14000_ACEOF
14001rm -f conftest.$ac_objext conftest$ac_exeext
14002if { (ac_try="$ac_link"
14003case "(($ac_try" in
14004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14005  *) ac_try_echo=$ac_try;;
14006esac
14007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14008  (eval "$ac_link") 2>conftest.er1
14009  ac_status=$?
14010  grep -v '^ *+' conftest.er1 >conftest.err
14011  rm -f conftest.er1
14012  cat conftest.err >&5
14013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014  (exit $ac_status); } && {
14015	 test -z "$ac_f77_werror_flag" ||
14016	 test ! -s conftest.err
14017       } && test -s conftest$ac_exeext &&
14018       $as_test_x conftest$ac_exeext; then
14019
14020lt_aix_libpath_sed='
14021    /Import File Strings/,/^$/ {
14022	/^0/ {
14023	    s/^0  *\(.*\)$/\1/
14024	    p
14025	}
14026    }'
14027aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14028# Check for a 64-bit object if we didn't find anything.
14029if test -z "$aix_libpath"; then
14030  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14031fi
14032else
14033  echo "$as_me: failed program was:" >&5
14034sed 's/^/| /' conftest.$ac_ext >&5
14035
14036
14037fi
14038
14039rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14040      conftest$ac_exeext conftest.$ac_ext
14041if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14042
14043	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14044	  # Warning - without using the other run time loading flags,
14045	  # -berok will link without error, but may produce a broken library.
14046	  no_undefined_flag_F77=' ${wl}-bernotok'
14047	  allow_undefined_flag_F77=' ${wl}-berok'
14048	  # Exported symbols can be pulled into shared objects from archives
14049	  whole_archive_flag_spec_F77='$convenience'
14050	  archive_cmds_need_lc_F77=yes
14051	  # This is similar to how AIX traditionally builds its shared libraries.
14052	  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'
14053	fi
14054      fi
14055      ;;
14056
14057    amigaos*)
14058      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)'
14059      hardcode_libdir_flag_spec_F77='-L$libdir'
14060      hardcode_minus_L_F77=yes
14061      # see comment about different semantics on the GNU ld section
14062      ld_shlibs_F77=no
14063      ;;
14064
14065    bsdi[45]*)
14066      export_dynamic_flag_spec_F77=-rdynamic
14067      ;;
14068
14069    cygwin* | mingw* | pw32*)
14070      # When not using gcc, we currently assume that we are using
14071      # Microsoft Visual C++.
14072      # hardcode_libdir_flag_spec is actually meaningless, as there is
14073      # no search path for DLLs.
14074      hardcode_libdir_flag_spec_F77=' '
14075      allow_undefined_flag_F77=unsupported
14076      # Tell ltmain to make .lib files, not .a files.
14077      libext=lib
14078      # Tell ltmain to make .dll files, not .so files.
14079      shrext_cmds=".dll"
14080      # FIXME: Setting linknames here is a bad hack.
14081      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14082      # The linker will automatically build a .lib file if we build a DLL.
14083      old_archive_From_new_cmds_F77='true'
14084      # FIXME: Should let the user specify the lib program.
14085      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14086      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14087      enable_shared_with_static_runtimes_F77=yes
14088      ;;
14089
14090    darwin* | rhapsody*)
14091      case $host_os in
14092        rhapsody* | darwin1.[012])
14093         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14094         ;;
14095       *) # Darwin 1.3 on
14096         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14097           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14098         else
14099           case ${MACOSX_DEPLOYMENT_TARGET} in
14100             10.[012])
14101               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14102               ;;
14103             10.*)
14104               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14105               ;;
14106           esac
14107         fi
14108         ;;
14109      esac
14110      archive_cmds_need_lc_F77=no
14111      hardcode_direct_F77=no
14112      hardcode_automatic_F77=yes
14113      hardcode_shlibpath_var_F77=unsupported
14114      whole_archive_flag_spec_F77=''
14115      link_all_deplibs_F77=yes
14116    if test "$GCC" = yes ; then
14117    	output_verbose_link_cmd='echo'
14118        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14119      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14120      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14121      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}'
14122      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}'
14123    else
14124      case $cc_basename in
14125        xlc*)
14126         output_verbose_link_cmd='echo'
14127         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14128         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14129          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14130         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14131          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}'
14132          ;;
14133       *)
14134         ld_shlibs_F77=no
14135          ;;
14136      esac
14137    fi
14138      ;;
14139
14140    dgux*)
14141      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14142      hardcode_libdir_flag_spec_F77='-L$libdir'
14143      hardcode_shlibpath_var_F77=no
14144      ;;
14145
14146    freebsd1*)
14147      ld_shlibs_F77=no
14148      ;;
14149
14150    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14151    # support.  Future versions do this automatically, but an explicit c++rt0.o
14152    # does not break anything, and helps significantly (at the cost of a little
14153    # extra space).
14154    freebsd2.2*)
14155      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14156      hardcode_libdir_flag_spec_F77='-R$libdir'
14157      hardcode_direct_F77=yes
14158      hardcode_shlibpath_var_F77=no
14159      ;;
14160
14161    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14162    freebsd2*)
14163      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14164      hardcode_direct_F77=yes
14165      hardcode_minus_L_F77=yes
14166      hardcode_shlibpath_var_F77=no
14167      ;;
14168
14169    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14170    freebsd* | dragonfly*)
14171      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14172      hardcode_libdir_flag_spec_F77='-R$libdir'
14173      hardcode_direct_F77=yes
14174      hardcode_shlibpath_var_F77=no
14175      ;;
14176
14177    hpux9*)
14178      if test "$GCC" = yes; then
14179	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'
14180      else
14181	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'
14182      fi
14183      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14184      hardcode_libdir_separator_F77=:
14185      hardcode_direct_F77=yes
14186
14187      # hardcode_minus_L: Not really in the search PATH,
14188      # but as the default location of the library.
14189      hardcode_minus_L_F77=yes
14190      export_dynamic_flag_spec_F77='${wl}-E'
14191      ;;
14192
14193    hpux10*)
14194      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14195	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14196      else
14197	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14198      fi
14199      if test "$with_gnu_ld" = no; then
14200	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14201	hardcode_libdir_separator_F77=:
14202
14203	hardcode_direct_F77=yes
14204	export_dynamic_flag_spec_F77='${wl}-E'
14205
14206	# hardcode_minus_L: Not really in the search PATH,
14207	# but as the default location of the library.
14208	hardcode_minus_L_F77=yes
14209      fi
14210      ;;
14211
14212    hpux11*)
14213      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14214	case $host_cpu in
14215	hppa*64*)
14216	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14217	  ;;
14218	ia64*)
14219	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14220	  ;;
14221	*)
14222	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14223	  ;;
14224	esac
14225      else
14226	case $host_cpu in
14227	hppa*64*)
14228	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14229	  ;;
14230	ia64*)
14231	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14232	  ;;
14233	*)
14234	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14235	  ;;
14236	esac
14237      fi
14238      if test "$with_gnu_ld" = no; then
14239	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14240	hardcode_libdir_separator_F77=:
14241
14242	case $host_cpu in
14243	hppa*64*|ia64*)
14244	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14245	  hardcode_direct_F77=no
14246	  hardcode_shlibpath_var_F77=no
14247	  ;;
14248	*)
14249	  hardcode_direct_F77=yes
14250	  export_dynamic_flag_spec_F77='${wl}-E'
14251
14252	  # hardcode_minus_L: Not really in the search PATH,
14253	  # but as the default location of the library.
14254	  hardcode_minus_L_F77=yes
14255	  ;;
14256	esac
14257      fi
14258      ;;
14259
14260    irix5* | irix6* | nonstopux*)
14261      if test "$GCC" = yes; then
14262	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'
14263      else
14264	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'
14265	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14266      fi
14267      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14268      hardcode_libdir_separator_F77=:
14269      link_all_deplibs_F77=yes
14270      ;;
14271
14272    netbsd*)
14273      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14274	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14275      else
14276	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14277      fi
14278      hardcode_libdir_flag_spec_F77='-R$libdir'
14279      hardcode_direct_F77=yes
14280      hardcode_shlibpath_var_F77=no
14281      ;;
14282
14283    newsos6)
14284      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14285      hardcode_direct_F77=yes
14286      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14287      hardcode_libdir_separator_F77=:
14288      hardcode_shlibpath_var_F77=no
14289      ;;
14290
14291    openbsd*)
14292      if test -f /usr/libexec/ld.so; then
14293	hardcode_direct_F77=yes
14294	hardcode_shlibpath_var_F77=no
14295	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14296	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14297	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14298	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14299	  export_dynamic_flag_spec_F77='${wl}-E'
14300	else
14301	  case $host_os in
14302	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14303	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14304	     hardcode_libdir_flag_spec_F77='-R$libdir'
14305	     ;;
14306	   *)
14307	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14308	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14309	     ;;
14310	  esac
14311        fi
14312      else
14313	ld_shlibs_F77=no
14314      fi
14315      ;;
14316
14317    os2*)
14318      hardcode_libdir_flag_spec_F77='-L$libdir'
14319      hardcode_minus_L_F77=yes
14320      allow_undefined_flag_F77=unsupported
14321      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'
14322      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14323      ;;
14324
14325    osf3*)
14326      if test "$GCC" = yes; then
14327	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14328	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'
14329      else
14330	allow_undefined_flag_F77=' -expect_unresolved \*'
14331	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'
14332      fi
14333      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14334      hardcode_libdir_separator_F77=:
14335      ;;
14336
14337    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14338      if test "$GCC" = yes; then
14339	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14340	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'
14341	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14342      else
14343	allow_undefined_flag_F77=' -expect_unresolved \*'
14344	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'
14345	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~
14346	$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'
14347
14348	# Both c and cxx compiler support -rpath directly
14349	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14350      fi
14351      hardcode_libdir_separator_F77=:
14352      ;;
14353
14354    solaris*)
14355      no_undefined_flag_F77=' -z text'
14356      if test "$GCC" = yes; then
14357	wlarc='${wl}'
14358	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14359	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14360	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14361      else
14362	wlarc=''
14363	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14364	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14365  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14366      fi
14367      hardcode_libdir_flag_spec_F77='-R$libdir'
14368      hardcode_shlibpath_var_F77=no
14369      case $host_os in
14370      solaris2.[0-5] | solaris2.[0-5].*) ;;
14371      *)
14372	# The compiler driver will combine and reorder linker options,
14373	# but understands `-z linker_flag'.  GCC discards it without `$wl',
14374	# but is careful enough not to reorder.
14375 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14376	if test "$GCC" = yes; then
14377	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14378	else
14379	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14380	fi
14381	;;
14382      esac
14383      link_all_deplibs_F77=yes
14384      ;;
14385
14386    sunos4*)
14387      if test "x$host_vendor" = xsequent; then
14388	# Use $CC to link under sequent, because it throws in some extra .o
14389	# files that make .init and .fini sections work.
14390	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14391      else
14392	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14393      fi
14394      hardcode_libdir_flag_spec_F77='-L$libdir'
14395      hardcode_direct_F77=yes
14396      hardcode_minus_L_F77=yes
14397      hardcode_shlibpath_var_F77=no
14398      ;;
14399
14400    sysv4)
14401      case $host_vendor in
14402	sni)
14403	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14404	  hardcode_direct_F77=yes # is this really true???
14405	;;
14406	siemens)
14407	  ## LD is ld it makes a PLAMLIB
14408	  ## CC just makes a GrossModule.
14409	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14410	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14411	  hardcode_direct_F77=no
14412        ;;
14413	motorola)
14414	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14415	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14416	;;
14417      esac
14418      runpath_var='LD_RUN_PATH'
14419      hardcode_shlibpath_var_F77=no
14420      ;;
14421
14422    sysv4.3*)
14423      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14424      hardcode_shlibpath_var_F77=no
14425      export_dynamic_flag_spec_F77='-Bexport'
14426      ;;
14427
14428    sysv4*MP*)
14429      if test -d /usr/nec; then
14430	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14431	hardcode_shlibpath_var_F77=no
14432	runpath_var=LD_RUN_PATH
14433	hardcode_runpath_var=yes
14434	ld_shlibs_F77=yes
14435      fi
14436      ;;
14437
14438    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14439      no_undefined_flag_F77='${wl}-z,text'
14440      archive_cmds_need_lc_F77=no
14441      hardcode_shlibpath_var_F77=no
14442      runpath_var='LD_RUN_PATH'
14443
14444      if test "$GCC" = yes; then
14445	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14446	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14447      else
14448	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14449	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14450      fi
14451      ;;
14452
14453    sysv5* | sco3.2v5* | sco5v6*)
14454      # Note: We can NOT use -z defs as we might desire, because we do not
14455      # link with -lc, and that would cause any symbols used from libc to
14456      # always be unresolved, which means just about no library would
14457      # ever link correctly.  If we're not using GNU ld we use -z text
14458      # though, which does catch some bad symbols but isn't as heavy-handed
14459      # as -z defs.
14460      no_undefined_flag_F77='${wl}-z,text'
14461      allow_undefined_flag_F77='${wl}-z,nodefs'
14462      archive_cmds_need_lc_F77=no
14463      hardcode_shlibpath_var_F77=no
14464      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14465      hardcode_libdir_separator_F77=':'
14466      link_all_deplibs_F77=yes
14467      export_dynamic_flag_spec_F77='${wl}-Bexport'
14468      runpath_var='LD_RUN_PATH'
14469
14470      if test "$GCC" = yes; then
14471	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14472	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14473      else
14474	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14475	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14476      fi
14477      ;;
14478
14479    uts4*)
14480      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14481      hardcode_libdir_flag_spec_F77='-L$libdir'
14482      hardcode_shlibpath_var_F77=no
14483      ;;
14484
14485    *)
14486      ld_shlibs_F77=no
14487      ;;
14488    esac
14489  fi
14490
14491{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14492echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14493test "$ld_shlibs_F77" = no && can_build_shared=no
14494
14495#
14496# Do we need to explicitly link libc?
14497#
14498case "x$archive_cmds_need_lc_F77" in
14499x|xyes)
14500  # Assume -lc should be added
14501  archive_cmds_need_lc_F77=yes
14502
14503  if test "$enable_shared" = yes && test "$GCC" = yes; then
14504    case $archive_cmds_F77 in
14505    *'~'*)
14506      # FIXME: we may have to deal with multi-command sequences.
14507      ;;
14508    '$CC '*)
14509      # Test whether the compiler implicitly links with -lc since on some
14510      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14511      # to ld, don't add -lc before -lgcc.
14512      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14513echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14514      $rm conftest*
14515      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14516
14517      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14518  (eval $ac_compile) 2>&5
14519  ac_status=$?
14520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521  (exit $ac_status); } 2>conftest.err; then
14522        soname=conftest
14523        lib=conftest
14524        libobjs=conftest.$ac_objext
14525        deplibs=
14526        wl=$lt_prog_compiler_wl_F77
14527	pic_flag=$lt_prog_compiler_pic_F77
14528        compiler_flags=-v
14529        linker_flags=-v
14530        verstring=
14531        output_objdir=.
14532        libname=conftest
14533        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14534        allow_undefined_flag_F77=
14535        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14536  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14537  ac_status=$?
14538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539  (exit $ac_status); }
14540        then
14541	  archive_cmds_need_lc_F77=no
14542        else
14543	  archive_cmds_need_lc_F77=yes
14544        fi
14545        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14546      else
14547        cat conftest.err 1>&5
14548      fi
14549      $rm conftest*
14550      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14551echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14552      ;;
14553    esac
14554  fi
14555  ;;
14556esac
14557
14558{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14559echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14560library_names_spec=
14561libname_spec='lib$name'
14562soname_spec=
14563shrext_cmds=".so"
14564postinstall_cmds=
14565postuninstall_cmds=
14566finish_cmds=
14567finish_eval=
14568shlibpath_var=
14569shlibpath_overrides_runpath=unknown
14570version_type=none
14571dynamic_linker="$host_os ld.so"
14572sys_lib_dlsearch_path_spec="/lib /usr/lib"
14573
14574need_lib_prefix=unknown
14575hardcode_into_libs=no
14576
14577# when you set need_version to no, make sure it does not cause -set_version
14578# flags to be left without arguments
14579need_version=unknown
14580
14581case $host_os in
14582aix3*)
14583  version_type=linux
14584  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14585  shlibpath_var=LIBPATH
14586
14587  # AIX 3 has no versioning support, so we append a major version to the name.
14588  soname_spec='${libname}${release}${shared_ext}$major'
14589  ;;
14590
14591aix4* | aix5*)
14592  version_type=linux
14593  need_lib_prefix=no
14594  need_version=no
14595  hardcode_into_libs=yes
14596  if test "$host_cpu" = ia64; then
14597    # AIX 5 supports IA64
14598    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14599    shlibpath_var=LD_LIBRARY_PATH
14600  else
14601    # With GCC up to 2.95.x, collect2 would create an import file
14602    # for dependence libraries.  The import file would start with
14603    # the line `#! .'.  This would cause the generated library to
14604    # depend on `.', always an invalid library.  This was fixed in
14605    # development snapshots of GCC prior to 3.0.
14606    case $host_os in
14607      aix4 | aix4.[01] | aix4.[01].*)
14608      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14609	   echo ' yes '
14610	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14611	:
14612      else
14613	can_build_shared=no
14614      fi
14615      ;;
14616    esac
14617    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14618    # soname into executable. Probably we can add versioning support to
14619    # collect2, so additional links can be useful in future.
14620    if test "$aix_use_runtimelinking" = yes; then
14621      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14622      # instead of lib<name>.a to let people know that these are not
14623      # typical AIX shared libraries.
14624      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14625    else
14626      # We preserve .a as extension for shared libraries through AIX4.2
14627      # and later when we are not doing run time linking.
14628      library_names_spec='${libname}${release}.a $libname.a'
14629      soname_spec='${libname}${release}${shared_ext}$major'
14630    fi
14631    shlibpath_var=LIBPATH
14632  fi
14633  ;;
14634
14635amigaos*)
14636  library_names_spec='$libname.ixlibrary $libname.a'
14637  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14638  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'
14639  ;;
14640
14641beos*)
14642  library_names_spec='${libname}${shared_ext}'
14643  dynamic_linker="$host_os ld.so"
14644  shlibpath_var=LIBRARY_PATH
14645  ;;
14646
14647bsdi[45]*)
14648  version_type=linux
14649  need_version=no
14650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651  soname_spec='${libname}${release}${shared_ext}$major'
14652  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14653  shlibpath_var=LD_LIBRARY_PATH
14654  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14655  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14656  # the default ld.so.conf also contains /usr/contrib/lib and
14657  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14658  # libtool to hard-code these into programs
14659  ;;
14660
14661cygwin* | mingw* | pw32*)
14662  version_type=windows
14663  shrext_cmds=".dll"
14664  need_version=no
14665  need_lib_prefix=no
14666
14667  case $GCC,$host_os in
14668  yes,cygwin* | yes,mingw* | yes,pw32*)
14669    library_names_spec='$libname.dll.a'
14670    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14671    postinstall_cmds='base_file=`basename \${file}`~
14672      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14673      dldir=$destdir/`dirname \$dlpath`~
14674      test -d \$dldir || mkdir -p \$dldir~
14675      $install_prog $dir/$dlname \$dldir/$dlname~
14676      chmod a+x \$dldir/$dlname'
14677    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14678      dlpath=$dir/\$dldll~
14679       $rm \$dlpath'
14680    shlibpath_overrides_runpath=yes
14681
14682    case $host_os in
14683    cygwin*)
14684      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14685      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14686      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14687      ;;
14688    mingw*)
14689      # MinGW DLLs use traditional 'lib' prefix
14690      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14691      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14692      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14693        # It is most probably a Windows format PATH printed by
14694        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14695        # path with ; separators, and with drive letters. We can handle the
14696        # drive letters (cygwin fileutils understands them), so leave them,
14697        # especially as we might pass files found there to a mingw objdump,
14698        # which wouldn't understand a cygwinified path. Ahh.
14699        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14700      else
14701        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14702      fi
14703      ;;
14704    pw32*)
14705      # pw32 DLLs use 'pw' prefix rather than 'lib'
14706      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14707      ;;
14708    esac
14709    ;;
14710
14711  *)
14712    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14713    ;;
14714  esac
14715  dynamic_linker='Win32 ld.exe'
14716  # FIXME: first we should search . and the directory the executable is in
14717  shlibpath_var=PATH
14718  ;;
14719
14720darwin* | rhapsody*)
14721  dynamic_linker="$host_os dyld"
14722  version_type=darwin
14723  need_lib_prefix=no
14724  need_version=no
14725  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14726  soname_spec='${libname}${release}${major}$shared_ext'
14727  shlibpath_overrides_runpath=yes
14728  shlibpath_var=DYLD_LIBRARY_PATH
14729  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14730
14731  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14732  ;;
14733
14734dgux*)
14735  version_type=linux
14736  need_lib_prefix=no
14737  need_version=no
14738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14739  soname_spec='${libname}${release}${shared_ext}$major'
14740  shlibpath_var=LD_LIBRARY_PATH
14741  ;;
14742
14743freebsd1*)
14744  dynamic_linker=no
14745  ;;
14746
14747freebsd* | dragonfly*)
14748  # DragonFly does not have aout.  When/if they implement a new
14749  # versioning mechanism, adjust this.
14750  if test -x /usr/bin/objformat; then
14751    objformat=`/usr/bin/objformat`
14752  else
14753    case $host_os in
14754    freebsd[123]*) objformat=aout ;;
14755    *) objformat=elf ;;
14756    esac
14757  fi
14758  version_type=freebsd-$objformat
14759  case $version_type in
14760    freebsd-elf*)
14761      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14762      need_version=no
14763      need_lib_prefix=no
14764      ;;
14765    freebsd-*)
14766      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14767      need_version=yes
14768      ;;
14769  esac
14770  shlibpath_var=LD_LIBRARY_PATH
14771  case $host_os in
14772  freebsd2*)
14773    shlibpath_overrides_runpath=yes
14774    ;;
14775  freebsd3.[01]* | freebsdelf3.[01]*)
14776    shlibpath_overrides_runpath=yes
14777    hardcode_into_libs=yes
14778    ;;
14779  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14780  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14781    shlibpath_overrides_runpath=no
14782    hardcode_into_libs=yes
14783    ;;
14784  *) # from 4.6 on, and DragonFly
14785    shlibpath_overrides_runpath=yes
14786    hardcode_into_libs=yes
14787    ;;
14788  esac
14789  ;;
14790
14791gnu*)
14792  version_type=linux
14793  need_lib_prefix=no
14794  need_version=no
14795  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14796  soname_spec='${libname}${release}${shared_ext}$major'
14797  shlibpath_var=LD_LIBRARY_PATH
14798  hardcode_into_libs=yes
14799  ;;
14800
14801hpux9* | hpux10* | hpux11*)
14802  # Give a soname corresponding to the major version so that dld.sl refuses to
14803  # link against other versions.
14804  version_type=sunos
14805  need_lib_prefix=no
14806  need_version=no
14807  case $host_cpu in
14808  ia64*)
14809    shrext_cmds='.so'
14810    hardcode_into_libs=yes
14811    dynamic_linker="$host_os dld.so"
14812    shlibpath_var=LD_LIBRARY_PATH
14813    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14814    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815    soname_spec='${libname}${release}${shared_ext}$major'
14816    if test "X$HPUX_IA64_MODE" = X32; then
14817      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14818    else
14819      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14820    fi
14821    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14822    ;;
14823   hppa*64*)
14824     shrext_cmds='.sl'
14825     hardcode_into_libs=yes
14826     dynamic_linker="$host_os dld.sl"
14827     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14828     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14829     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14830     soname_spec='${libname}${release}${shared_ext}$major'
14831     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14832     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14833     ;;
14834   *)
14835    shrext_cmds='.sl'
14836    dynamic_linker="$host_os dld.sl"
14837    shlibpath_var=SHLIB_PATH
14838    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14839    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14840    soname_spec='${libname}${release}${shared_ext}$major'
14841    ;;
14842  esac
14843  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14844  postinstall_cmds='chmod 555 $lib'
14845  ;;
14846
14847interix[3-9]*)
14848  version_type=linux
14849  need_lib_prefix=no
14850  need_version=no
14851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14852  soname_spec='${libname}${release}${shared_ext}$major'
14853  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14854  shlibpath_var=LD_LIBRARY_PATH
14855  shlibpath_overrides_runpath=no
14856  hardcode_into_libs=yes
14857  ;;
14858
14859irix5* | irix6* | nonstopux*)
14860  case $host_os in
14861    nonstopux*) version_type=nonstopux ;;
14862    *)
14863	if test "$lt_cv_prog_gnu_ld" = yes; then
14864		version_type=linux
14865	else
14866		version_type=irix
14867	fi ;;
14868  esac
14869  need_lib_prefix=no
14870  need_version=no
14871  soname_spec='${libname}${release}${shared_ext}$major'
14872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14873  case $host_os in
14874  irix5* | nonstopux*)
14875    libsuff= shlibsuff=
14876    ;;
14877  *)
14878    case $LD in # libtool.m4 will add one of these switches to LD
14879    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14880      libsuff= shlibsuff= libmagic=32-bit;;
14881    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14882      libsuff=32 shlibsuff=N32 libmagic=N32;;
14883    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14884      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14885    *) libsuff= shlibsuff= libmagic=never-match;;
14886    esac
14887    ;;
14888  esac
14889  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14890  shlibpath_overrides_runpath=no
14891  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14892  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14893  hardcode_into_libs=yes
14894  ;;
14895
14896# No shared lib support for Linux oldld, aout, or coff.
14897linux*oldld* | linux*aout* | linux*coff*)
14898  dynamic_linker=no
14899  ;;
14900
14901# This must be Linux ELF.
14902linux* | k*bsd*-gnu)
14903  version_type=linux
14904  need_lib_prefix=no
14905  need_version=no
14906  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14907  soname_spec='${libname}${release}${shared_ext}$major'
14908  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14909  shlibpath_var=LD_LIBRARY_PATH
14910  shlibpath_overrides_runpath=no
14911  # This implies no fast_install, which is unacceptable.
14912  # Some rework will be needed to allow for fast_install
14913  # before this can be enabled.
14914  hardcode_into_libs=yes
14915
14916  # Append ld.so.conf contents to the search path
14917  if test -f /etc/ld.so.conf; then
14918    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14919    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14920  fi
14921
14922  # We used to test for /lib/ld.so.1 and disable shared libraries on
14923  # powerpc, because MkLinux only supported shared libraries with the
14924  # GNU dynamic linker.  Since this was broken with cross compilers,
14925  # most powerpc-linux boxes support dynamic linking these days and
14926  # people can always --disable-shared, the test was removed, and we
14927  # assume the GNU/Linux dynamic linker is in use.
14928  dynamic_linker='GNU/Linux ld.so'
14929  ;;
14930
14931netbsd*)
14932  version_type=sunos
14933  need_lib_prefix=no
14934  need_version=no
14935  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14936    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14937    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14938    dynamic_linker='NetBSD (a.out) ld.so'
14939  else
14940    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14941    soname_spec='${libname}${release}${shared_ext}$major'
14942    dynamic_linker='NetBSD ld.elf_so'
14943  fi
14944  shlibpath_var=LD_LIBRARY_PATH
14945  shlibpath_overrides_runpath=yes
14946  hardcode_into_libs=yes
14947  ;;
14948
14949newsos6)
14950  version_type=linux
14951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14952  shlibpath_var=LD_LIBRARY_PATH
14953  shlibpath_overrides_runpath=yes
14954  ;;
14955
14956nto-qnx*)
14957  version_type=linux
14958  need_lib_prefix=no
14959  need_version=no
14960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14961  soname_spec='${libname}${release}${shared_ext}$major'
14962  shlibpath_var=LD_LIBRARY_PATH
14963  shlibpath_overrides_runpath=yes
14964  ;;
14965
14966openbsd*)
14967  version_type=sunos
14968  sys_lib_dlsearch_path_spec="/usr/lib"
14969  need_lib_prefix=no
14970  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14971  case $host_os in
14972    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14973    *)                         need_version=no  ;;
14974  esac
14975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14976  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14977  shlibpath_var=LD_LIBRARY_PATH
14978  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14979    case $host_os in
14980      openbsd2.[89] | openbsd2.[89].*)
14981	shlibpath_overrides_runpath=no
14982	;;
14983      *)
14984	shlibpath_overrides_runpath=yes
14985	;;
14986      esac
14987  else
14988    shlibpath_overrides_runpath=yes
14989  fi
14990  ;;
14991
14992os2*)
14993  libname_spec='$name'
14994  shrext_cmds=".dll"
14995  need_lib_prefix=no
14996  library_names_spec='$libname${shared_ext} $libname.a'
14997  dynamic_linker='OS/2 ld.exe'
14998  shlibpath_var=LIBPATH
14999  ;;
15000
15001osf3* | osf4* | osf5*)
15002  version_type=osf
15003  need_lib_prefix=no
15004  need_version=no
15005  soname_spec='${libname}${release}${shared_ext}$major'
15006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007  shlibpath_var=LD_LIBRARY_PATH
15008  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15009  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15010  ;;
15011
15012rdos*)
15013  dynamic_linker=no
15014  ;;
15015
15016solaris*)
15017  version_type=linux
15018  need_lib_prefix=no
15019  need_version=no
15020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021  soname_spec='${libname}${release}${shared_ext}$major'
15022  shlibpath_var=LD_LIBRARY_PATH
15023  shlibpath_overrides_runpath=yes
15024  hardcode_into_libs=yes
15025  # ldd complains unless libraries are executable
15026  postinstall_cmds='chmod +x $lib'
15027  ;;
15028
15029sunos4*)
15030  version_type=sunos
15031  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15032  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15033  shlibpath_var=LD_LIBRARY_PATH
15034  shlibpath_overrides_runpath=yes
15035  if test "$with_gnu_ld" = yes; then
15036    need_lib_prefix=no
15037  fi
15038  need_version=yes
15039  ;;
15040
15041sysv4 | sysv4.3*)
15042  version_type=linux
15043  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15044  soname_spec='${libname}${release}${shared_ext}$major'
15045  shlibpath_var=LD_LIBRARY_PATH
15046  case $host_vendor in
15047    sni)
15048      shlibpath_overrides_runpath=no
15049      need_lib_prefix=no
15050      export_dynamic_flag_spec='${wl}-Blargedynsym'
15051      runpath_var=LD_RUN_PATH
15052      ;;
15053    siemens)
15054      need_lib_prefix=no
15055      ;;
15056    motorola)
15057      need_lib_prefix=no
15058      need_version=no
15059      shlibpath_overrides_runpath=no
15060      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15061      ;;
15062  esac
15063  ;;
15064
15065sysv4*MP*)
15066  if test -d /usr/nec ;then
15067    version_type=linux
15068    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15069    soname_spec='$libname${shared_ext}.$major'
15070    shlibpath_var=LD_LIBRARY_PATH
15071  fi
15072  ;;
15073
15074sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15075  version_type=freebsd-elf
15076  need_lib_prefix=no
15077  need_version=no
15078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15079  soname_spec='${libname}${release}${shared_ext}$major'
15080  shlibpath_var=LD_LIBRARY_PATH
15081  hardcode_into_libs=yes
15082  if test "$with_gnu_ld" = yes; then
15083    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15084    shlibpath_overrides_runpath=no
15085  else
15086    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15087    shlibpath_overrides_runpath=yes
15088    case $host_os in
15089      sco3.2v5*)
15090        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15091	;;
15092    esac
15093  fi
15094  sys_lib_dlsearch_path_spec='/usr/lib'
15095  ;;
15096
15097uts4*)
15098  version_type=linux
15099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15100  soname_spec='${libname}${release}${shared_ext}$major'
15101  shlibpath_var=LD_LIBRARY_PATH
15102  ;;
15103
15104*)
15105  dynamic_linker=no
15106  ;;
15107esac
15108{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15109echo "${ECHO_T}$dynamic_linker" >&6; }
15110test "$dynamic_linker" = no && can_build_shared=no
15111
15112variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15113if test "$GCC" = yes; then
15114  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15115fi
15116
15117{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15118echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15119hardcode_action_F77=
15120if test -n "$hardcode_libdir_flag_spec_F77" || \
15121   test -n "$runpath_var_F77" || \
15122   test "X$hardcode_automatic_F77" = "Xyes" ; then
15123
15124  # We can hardcode non-existant directories.
15125  if test "$hardcode_direct_F77" != no &&
15126     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15127     # have to relink, otherwise we might link with an installed library
15128     # when we should be linking with a yet-to-be-installed one
15129     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15130     test "$hardcode_minus_L_F77" != no; then
15131    # Linking always hardcodes the temporary library directory.
15132    hardcode_action_F77=relink
15133  else
15134    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15135    hardcode_action_F77=immediate
15136  fi
15137else
15138  # We cannot hardcode anything, or else we can only hardcode existing
15139  # directories.
15140  hardcode_action_F77=unsupported
15141fi
15142{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15143echo "${ECHO_T}$hardcode_action_F77" >&6; }
15144
15145if test "$hardcode_action_F77" = relink; then
15146  # Fast installation is not supported
15147  enable_fast_install=no
15148elif test "$shlibpath_overrides_runpath" = yes ||
15149     test "$enable_shared" = no; then
15150  # Fast installation is not necessary
15151  enable_fast_install=needless
15152fi
15153
15154
15155# The else clause should only fire when bootstrapping the
15156# libtool distribution, otherwise you forgot to ship ltmain.sh
15157# with your package, and you will get complaints that there are
15158# no rules to generate ltmain.sh.
15159if test -f "$ltmain"; then
15160  # See if we are running on zsh, and set the options which allow our commands through
15161  # without removal of \ escapes.
15162  if test -n "${ZSH_VERSION+set}" ; then
15163    setopt NO_GLOB_SUBST
15164  fi
15165  # Now quote all the things that may contain metacharacters while being
15166  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15167  # variables and quote the copies for generation of the libtool script.
15168  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15169    SED SHELL STRIP \
15170    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15171    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15172    deplibs_check_method reload_flag reload_cmds need_locks \
15173    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15174    lt_cv_sys_global_symbol_to_c_name_address \
15175    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15176    old_postinstall_cmds old_postuninstall_cmds \
15177    compiler_F77 \
15178    CC_F77 \
15179    LD_F77 \
15180    lt_prog_compiler_wl_F77 \
15181    lt_prog_compiler_pic_F77 \
15182    lt_prog_compiler_static_F77 \
15183    lt_prog_compiler_no_builtin_flag_F77 \
15184    export_dynamic_flag_spec_F77 \
15185    thread_safe_flag_spec_F77 \
15186    whole_archive_flag_spec_F77 \
15187    enable_shared_with_static_runtimes_F77 \
15188    old_archive_cmds_F77 \
15189    old_archive_from_new_cmds_F77 \
15190    predep_objects_F77 \
15191    postdep_objects_F77 \
15192    predeps_F77 \
15193    postdeps_F77 \
15194    compiler_lib_search_path_F77 \
15195    archive_cmds_F77 \
15196    archive_expsym_cmds_F77 \
15197    postinstall_cmds_F77 \
15198    postuninstall_cmds_F77 \
15199    old_archive_from_expsyms_cmds_F77 \
15200    allow_undefined_flag_F77 \
15201    no_undefined_flag_F77 \
15202    export_symbols_cmds_F77 \
15203    hardcode_libdir_flag_spec_F77 \
15204    hardcode_libdir_flag_spec_ld_F77 \
15205    hardcode_libdir_separator_F77 \
15206    hardcode_automatic_F77 \
15207    module_cmds_F77 \
15208    module_expsym_cmds_F77 \
15209    lt_cv_prog_compiler_c_o_F77 \
15210    fix_srcfile_path_F77 \
15211    exclude_expsyms_F77 \
15212    include_expsyms_F77; do
15213
15214    case $var in
15215    old_archive_cmds_F77 | \
15216    old_archive_from_new_cmds_F77 | \
15217    archive_cmds_F77 | \
15218    archive_expsym_cmds_F77 | \
15219    module_cmds_F77 | \
15220    module_expsym_cmds_F77 | \
15221    old_archive_from_expsyms_cmds_F77 | \
15222    export_symbols_cmds_F77 | \
15223    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15224    postinstall_cmds | postuninstall_cmds | \
15225    old_postinstall_cmds | old_postuninstall_cmds | \
15226    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15227      # Double-quote double-evaled strings.
15228      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15229      ;;
15230    *)
15231      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15232      ;;
15233    esac
15234  done
15235
15236  case $lt_echo in
15237  *'\$0 --fallback-echo"')
15238    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15239    ;;
15240  esac
15241
15242cfgfile="$ofile"
15243
15244  cat <<__EOF__ >> "$cfgfile"
15245# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15246
15247# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15248
15249# Shell to use when invoking shell scripts.
15250SHELL=$lt_SHELL
15251
15252# Whether or not to build shared libraries.
15253build_libtool_libs=$enable_shared
15254
15255# Whether or not to build static libraries.
15256build_old_libs=$enable_static
15257
15258# Whether or not to add -lc for building shared libraries.
15259build_libtool_need_lc=$archive_cmds_need_lc_F77
15260
15261# Whether or not to disallow shared libs when runtime libs are static
15262allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15263
15264# Whether or not to optimize for fast installation.
15265fast_install=$enable_fast_install
15266
15267# The host system.
15268host_alias=$host_alias
15269host=$host
15270host_os=$host_os
15271
15272# The build system.
15273build_alias=$build_alias
15274build=$build
15275build_os=$build_os
15276
15277# An echo program that does not interpret backslashes.
15278echo=$lt_echo
15279
15280# The archiver.
15281AR=$lt_AR
15282AR_FLAGS=$lt_AR_FLAGS
15283
15284# A C compiler.
15285LTCC=$lt_LTCC
15286
15287# LTCC compiler flags.
15288LTCFLAGS=$lt_LTCFLAGS
15289
15290# A language-specific compiler.
15291CC=$lt_compiler_F77
15292
15293# Is the compiler the GNU C compiler?
15294with_gcc=$GCC_F77
15295
15296# An ERE matcher.
15297EGREP=$lt_EGREP
15298
15299# The linker used to build libraries.
15300LD=$lt_LD_F77
15301
15302# Whether we need hard or soft links.
15303LN_S=$lt_LN_S
15304
15305# A BSD-compatible nm program.
15306NM=$lt_NM
15307
15308# A symbol stripping program
15309STRIP=$lt_STRIP
15310
15311# Used to examine libraries when file_magic_cmd begins "file"
15312MAGIC_CMD=$MAGIC_CMD
15313
15314# Used on cygwin: DLL creation program.
15315DLLTOOL="$DLLTOOL"
15316
15317# Used on cygwin: object dumper.
15318OBJDUMP="$OBJDUMP"
15319
15320# Used on cygwin: assembler.
15321AS="$AS"
15322
15323# The name of the directory that contains temporary libtool files.
15324objdir=$objdir
15325
15326# How to create reloadable object files.
15327reload_flag=$lt_reload_flag
15328reload_cmds=$lt_reload_cmds
15329
15330# How to pass a linker flag through the compiler.
15331wl=$lt_lt_prog_compiler_wl_F77
15332
15333# Object file suffix (normally "o").
15334objext="$ac_objext"
15335
15336# Old archive suffix (normally "a").
15337libext="$libext"
15338
15339# Shared library suffix (normally ".so").
15340shrext_cmds='$shrext_cmds'
15341
15342# Executable file suffix (normally "").
15343exeext="$exeext"
15344
15345# Additional compiler flags for building library objects.
15346pic_flag=$lt_lt_prog_compiler_pic_F77
15347pic_mode=$pic_mode
15348
15349# What is the maximum length of a command?
15350max_cmd_len=$lt_cv_sys_max_cmd_len
15351
15352# Does compiler simultaneously support -c and -o options?
15353compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15354
15355# Must we lock files when doing compilation?
15356need_locks=$lt_need_locks
15357
15358# Do we need the lib prefix for modules?
15359need_lib_prefix=$need_lib_prefix
15360
15361# Do we need a version for libraries?
15362need_version=$need_version
15363
15364# Whether dlopen is supported.
15365dlopen_support=$enable_dlopen
15366
15367# Whether dlopen of programs is supported.
15368dlopen_self=$enable_dlopen_self
15369
15370# Whether dlopen of statically linked programs is supported.
15371dlopen_self_static=$enable_dlopen_self_static
15372
15373# Compiler flag to prevent dynamic linking.
15374link_static_flag=$lt_lt_prog_compiler_static_F77
15375
15376# Compiler flag to turn off builtin functions.
15377no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15378
15379# Compiler flag to allow reflexive dlopens.
15380export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15381
15382# Compiler flag to generate shared objects directly from archives.
15383whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15384
15385# Compiler flag to generate thread-safe objects.
15386thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15387
15388# Library versioning type.
15389version_type=$version_type
15390
15391# Format of library name prefix.
15392libname_spec=$lt_libname_spec
15393
15394# List of archive names.  First name is the real one, the rest are links.
15395# The last name is the one that the linker finds with -lNAME.
15396library_names_spec=$lt_library_names_spec
15397
15398# The coded name of the library, if different from the real name.
15399soname_spec=$lt_soname_spec
15400
15401# Commands used to build and install an old-style archive.
15402RANLIB=$lt_RANLIB
15403old_archive_cmds=$lt_old_archive_cmds_F77
15404old_postinstall_cmds=$lt_old_postinstall_cmds
15405old_postuninstall_cmds=$lt_old_postuninstall_cmds
15406
15407# Create an old-style archive from a shared archive.
15408old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15409
15410# Create a temporary old-style archive to link instead of a shared archive.
15411old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15412
15413# Commands used to build and install a shared archive.
15414archive_cmds=$lt_archive_cmds_F77
15415archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15416postinstall_cmds=$lt_postinstall_cmds
15417postuninstall_cmds=$lt_postuninstall_cmds
15418
15419# Commands used to build a loadable module (assumed same as above if empty)
15420module_cmds=$lt_module_cmds_F77
15421module_expsym_cmds=$lt_module_expsym_cmds_F77
15422
15423# Commands to strip libraries.
15424old_striplib=$lt_old_striplib
15425striplib=$lt_striplib
15426
15427# Dependencies to place before the objects being linked to create a
15428# shared library.
15429predep_objects=$lt_predep_objects_F77
15430
15431# Dependencies to place after the objects being linked to create a
15432# shared library.
15433postdep_objects=$lt_postdep_objects_F77
15434
15435# Dependencies to place before the objects being linked to create a
15436# shared library.
15437predeps=$lt_predeps_F77
15438
15439# Dependencies to place after the objects being linked to create a
15440# shared library.
15441postdeps=$lt_postdeps_F77
15442
15443# The library search path used internally by the compiler when linking
15444# a shared library.
15445compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15446
15447# Method to check whether dependent libraries are shared objects.
15448deplibs_check_method=$lt_deplibs_check_method
15449
15450# Command to use when deplibs_check_method == file_magic.
15451file_magic_cmd=$lt_file_magic_cmd
15452
15453# Flag that allows shared libraries with undefined symbols to be built.
15454allow_undefined_flag=$lt_allow_undefined_flag_F77
15455
15456# Flag that forces no undefined symbols.
15457no_undefined_flag=$lt_no_undefined_flag_F77
15458
15459# Commands used to finish a libtool library installation in a directory.
15460finish_cmds=$lt_finish_cmds
15461
15462# Same as above, but a single script fragment to be evaled but not shown.
15463finish_eval=$lt_finish_eval
15464
15465# Take the output of nm and produce a listing of raw symbols and C names.
15466global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15467
15468# Transform the output of nm in a proper C declaration
15469global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15470
15471# Transform the output of nm in a C name address pair
15472global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15473
15474# This is the shared library runtime path variable.
15475runpath_var=$runpath_var
15476
15477# This is the shared library path variable.
15478shlibpath_var=$shlibpath_var
15479
15480# Is shlibpath searched before the hard-coded library search path?
15481shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15482
15483# How to hardcode a shared library path into an executable.
15484hardcode_action=$hardcode_action_F77
15485
15486# Whether we should hardcode library paths into libraries.
15487hardcode_into_libs=$hardcode_into_libs
15488
15489# Flag to hardcode \$libdir into a binary during linking.
15490# This must work even if \$libdir does not exist.
15491hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15492
15493# If ld is used when linking, flag to hardcode \$libdir into
15494# a binary during linking. This must work even if \$libdir does
15495# not exist.
15496hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15497
15498# Whether we need a single -rpath flag with a separated argument.
15499hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15500
15501# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15502# resulting binary.
15503hardcode_direct=$hardcode_direct_F77
15504
15505# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15506# resulting binary.
15507hardcode_minus_L=$hardcode_minus_L_F77
15508
15509# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15510# the resulting binary.
15511hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15512
15513# Set to yes if building a shared library automatically hardcodes DIR into the library
15514# and all subsequent libraries and executables linked against it.
15515hardcode_automatic=$hardcode_automatic_F77
15516
15517# Variables whose values should be saved in libtool wrapper scripts and
15518# restored at relink time.
15519variables_saved_for_relink="$variables_saved_for_relink"
15520
15521# Whether libtool must link a program against all its dependency libraries.
15522link_all_deplibs=$link_all_deplibs_F77
15523
15524# Compile-time system search path for libraries
15525sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15526
15527# Run-time system search path for libraries
15528sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15529
15530# Fix the shell variable \$srcfile for the compiler.
15531fix_srcfile_path=$lt_fix_srcfile_path
15532
15533# Set to yes if exported symbols are required.
15534always_export_symbols=$always_export_symbols_F77
15535
15536# The commands to list exported symbols.
15537export_symbols_cmds=$lt_export_symbols_cmds_F77
15538
15539# The commands to extract the exported symbol list from a shared archive.
15540extract_expsyms_cmds=$lt_extract_expsyms_cmds
15541
15542# Symbols that should not be listed in the preloaded symbols.
15543exclude_expsyms=$lt_exclude_expsyms_F77
15544
15545# Symbols that must always be exported.
15546include_expsyms=$lt_include_expsyms_F77
15547
15548# ### END LIBTOOL TAG CONFIG: $tagname
15549
15550__EOF__
15551
15552
15553else
15554  # If there is no Makefile yet, we rely on a make rule to execute
15555  # `config.status --recheck' to rerun these tests and create the
15556  # libtool script then.
15557  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15558  if test -f "$ltmain_in"; then
15559    test -f Makefile && make "$ltmain"
15560  fi
15561fi
15562
15563
15564ac_ext=c
15565ac_cpp='$CPP $CPPFLAGS'
15566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15568ac_compiler_gnu=$ac_cv_c_compiler_gnu
15569
15570CC="$lt_save_CC"
15571
15572	else
15573	  tagname=""
15574	fi
15575	;;
15576
15577      GCJ)
15578	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15579
15580
15581# Source file extension for Java test sources.
15582ac_ext=java
15583
15584# Object file extension for compiled Java test sources.
15585objext=o
15586objext_GCJ=$objext
15587
15588# Code to be used in simple compile tests
15589lt_simple_compile_test_code="class foo {}"
15590
15591# Code to be used in simple link tests
15592lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15593
15594# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15595
15596# If no C compiler was specified, use CC.
15597LTCC=${LTCC-"$CC"}
15598
15599# If no C compiler flags were specified, use CFLAGS.
15600LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15601
15602# Allow CC to be a program name with arguments.
15603compiler=$CC
15604
15605
15606# save warnings/boilerplate of simple test code
15607ac_outfile=conftest.$ac_objext
15608echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15609eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15610_lt_compiler_boilerplate=`cat conftest.err`
15611$rm conftest*
15612
15613ac_outfile=conftest.$ac_objext
15614echo "$lt_simple_link_test_code" >conftest.$ac_ext
15615eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15616_lt_linker_boilerplate=`cat conftest.err`
15617$rm conftest*
15618
15619
15620# Allow CC to be a program name with arguments.
15621lt_save_CC="$CC"
15622CC=${GCJ-"gcj"}
15623compiler=$CC
15624compiler_GCJ=$CC
15625for cc_temp in $compiler""; do
15626  case $cc_temp in
15627    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15628    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15629    \-*) ;;
15630    *) break;;
15631  esac
15632done
15633cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15634
15635
15636# GCJ did not exist at the time GCC didn't implicitly link libc in.
15637archive_cmds_need_lc_GCJ=no
15638
15639old_archive_cmds_GCJ=$old_archive_cmds
15640
15641
15642lt_prog_compiler_no_builtin_flag_GCJ=
15643
15644if test "$GCC" = yes; then
15645  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15646
15647
15648{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15649echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15650if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15651  echo $ECHO_N "(cached) $ECHO_C" >&6
15652else
15653  lt_cv_prog_compiler_rtti_exceptions=no
15654  ac_outfile=conftest.$ac_objext
15655   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15656   lt_compiler_flag="-fno-rtti -fno-exceptions"
15657   # Insert the option either (1) after the last *FLAGS variable, or
15658   # (2) before a word containing "conftest.", or (3) at the end.
15659   # Note that $ac_compile itself does not contain backslashes and begins
15660   # with a dollar sign (not a hyphen), so the echo should work correctly.
15661   # The option is referenced via a variable to avoid confusing sed.
15662   lt_compile=`echo "$ac_compile" | $SED \
15663   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15664   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15665   -e 's:$: $lt_compiler_flag:'`
15666   (eval echo "\"\$as_me:15666: $lt_compile\"" >&5)
15667   (eval "$lt_compile" 2>conftest.err)
15668   ac_status=$?
15669   cat conftest.err >&5
15670   echo "$as_me:15670: \$? = $ac_status" >&5
15671   if (exit $ac_status) && test -s "$ac_outfile"; then
15672     # The compiler can only warn and ignore the option if not recognized
15673     # So say no if there are warnings other than the usual output.
15674     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15675     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15676     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15677       lt_cv_prog_compiler_rtti_exceptions=yes
15678     fi
15679   fi
15680   $rm conftest*
15681
15682fi
15683{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15684echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15685
15686if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15687    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15688else
15689    :
15690fi
15691
15692fi
15693
15694lt_prog_compiler_wl_GCJ=
15695lt_prog_compiler_pic_GCJ=
15696lt_prog_compiler_static_GCJ=
15697
15698{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15699echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15700
15701  if test "$GCC" = yes; then
15702    lt_prog_compiler_wl_GCJ='-Wl,'
15703    lt_prog_compiler_static_GCJ='-static'
15704
15705    case $host_os in
15706      aix*)
15707      # All AIX code is PIC.
15708      if test "$host_cpu" = ia64; then
15709	# AIX 5 now supports IA64 processor
15710	lt_prog_compiler_static_GCJ='-Bstatic'
15711      fi
15712      ;;
15713
15714    amigaos*)
15715      # FIXME: we need at least 68020 code to build shared libraries, but
15716      # adding the `-m68020' flag to GCC prevents building anything better,
15717      # like `-m68040'.
15718      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15719      ;;
15720
15721    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15722      # PIC is the default for these OSes.
15723      ;;
15724
15725    mingw* | cygwin* | pw32* | os2*)
15726      # This hack is so that the source file can tell whether it is being
15727      # built for inclusion in a dll (and should export symbols for example).
15728      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15729      # (--disable-auto-import) libraries
15730      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15731      ;;
15732
15733    darwin* | rhapsody*)
15734      # PIC is the default on this platform
15735      # Common symbols not allowed in MH_DYLIB files
15736      lt_prog_compiler_pic_GCJ='-fno-common'
15737      ;;
15738
15739    interix[3-9]*)
15740      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15741      # Instead, we relocate shared libraries at runtime.
15742      ;;
15743
15744    msdosdjgpp*)
15745      # Just because we use GCC doesn't mean we suddenly get shared libraries
15746      # on systems that don't support them.
15747      lt_prog_compiler_can_build_shared_GCJ=no
15748      enable_shared=no
15749      ;;
15750
15751    sysv4*MP*)
15752      if test -d /usr/nec; then
15753	lt_prog_compiler_pic_GCJ=-Kconform_pic
15754      fi
15755      ;;
15756
15757    hpux*)
15758      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15759      # not for PA HP-UX.
15760      case $host_cpu in
15761      hppa*64*|ia64*)
15762	# +Z the default
15763	;;
15764      *)
15765	lt_prog_compiler_pic_GCJ='-fPIC'
15766	;;
15767      esac
15768      ;;
15769
15770    *)
15771      lt_prog_compiler_pic_GCJ='-fPIC'
15772      ;;
15773    esac
15774  else
15775    # PORTME Check for flag to pass linker flags through the system compiler.
15776    case $host_os in
15777    aix*)
15778      lt_prog_compiler_wl_GCJ='-Wl,'
15779      if test "$host_cpu" = ia64; then
15780	# AIX 5 now supports IA64 processor
15781	lt_prog_compiler_static_GCJ='-Bstatic'
15782      else
15783	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15784      fi
15785      ;;
15786      darwin*)
15787        # PIC is the default on this platform
15788        # Common symbols not allowed in MH_DYLIB files
15789       case $cc_basename in
15790         xlc*)
15791         lt_prog_compiler_pic_GCJ='-qnocommon'
15792         lt_prog_compiler_wl_GCJ='-Wl,'
15793         ;;
15794       esac
15795       ;;
15796
15797    mingw* | cygwin* | pw32* | os2*)
15798      # This hack is so that the source file can tell whether it is being
15799      # built for inclusion in a dll (and should export symbols for example).
15800      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15801      ;;
15802
15803    hpux9* | hpux10* | hpux11*)
15804      lt_prog_compiler_wl_GCJ='-Wl,'
15805      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15806      # not for PA HP-UX.
15807      case $host_cpu in
15808      hppa*64*|ia64*)
15809	# +Z the default
15810	;;
15811      *)
15812	lt_prog_compiler_pic_GCJ='+Z'
15813	;;
15814      esac
15815      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15816      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15817      ;;
15818
15819    irix5* | irix6* | nonstopux*)
15820      lt_prog_compiler_wl_GCJ='-Wl,'
15821      # PIC (with -KPIC) is the default.
15822      lt_prog_compiler_static_GCJ='-non_shared'
15823      ;;
15824
15825    newsos6)
15826      lt_prog_compiler_pic_GCJ='-KPIC'
15827      lt_prog_compiler_static_GCJ='-Bstatic'
15828      ;;
15829
15830    linux* | k*bsd*-gnu)
15831      case $cc_basename in
15832      icc* | ecc*)
15833	lt_prog_compiler_wl_GCJ='-Wl,'
15834	lt_prog_compiler_pic_GCJ='-KPIC'
15835	lt_prog_compiler_static_GCJ='-static'
15836        ;;
15837      pgcc* | pgf77* | pgf90* | pgf95*)
15838        # Portland Group compilers (*not* the Pentium gcc compiler,
15839	# which looks to be a dead project)
15840	lt_prog_compiler_wl_GCJ='-Wl,'
15841	lt_prog_compiler_pic_GCJ='-fpic'
15842	lt_prog_compiler_static_GCJ='-Bstatic'
15843        ;;
15844      ccc*)
15845        lt_prog_compiler_wl_GCJ='-Wl,'
15846        # All Alpha code is PIC.
15847        lt_prog_compiler_static_GCJ='-non_shared'
15848        ;;
15849      *)
15850        case `$CC -V 2>&1 | sed 5q` in
15851	*Sun\ C*)
15852	  # Sun C 5.9
15853	  lt_prog_compiler_pic_GCJ='-KPIC'
15854	  lt_prog_compiler_static_GCJ='-Bstatic'
15855	  lt_prog_compiler_wl_GCJ='-Wl,'
15856	  ;;
15857	*Sun\ F*)
15858	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15859	  lt_prog_compiler_pic_GCJ='-KPIC'
15860	  lt_prog_compiler_static_GCJ='-Bstatic'
15861	  lt_prog_compiler_wl_GCJ=''
15862	  ;;
15863	esac
15864	;;
15865      esac
15866      ;;
15867
15868    osf3* | osf4* | osf5*)
15869      lt_prog_compiler_wl_GCJ='-Wl,'
15870      # All OSF/1 code is PIC.
15871      lt_prog_compiler_static_GCJ='-non_shared'
15872      ;;
15873
15874    rdos*)
15875      lt_prog_compiler_static_GCJ='-non_shared'
15876      ;;
15877
15878    solaris*)
15879      lt_prog_compiler_pic_GCJ='-KPIC'
15880      lt_prog_compiler_static_GCJ='-Bstatic'
15881      case $cc_basename in
15882      f77* | f90* | f95*)
15883	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15884      *)
15885	lt_prog_compiler_wl_GCJ='-Wl,';;
15886      esac
15887      ;;
15888
15889    sunos4*)
15890      lt_prog_compiler_wl_GCJ='-Qoption ld '
15891      lt_prog_compiler_pic_GCJ='-PIC'
15892      lt_prog_compiler_static_GCJ='-Bstatic'
15893      ;;
15894
15895    sysv4 | sysv4.2uw2* | sysv4.3*)
15896      lt_prog_compiler_wl_GCJ='-Wl,'
15897      lt_prog_compiler_pic_GCJ='-KPIC'
15898      lt_prog_compiler_static_GCJ='-Bstatic'
15899      ;;
15900
15901    sysv4*MP*)
15902      if test -d /usr/nec ;then
15903	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15904	lt_prog_compiler_static_GCJ='-Bstatic'
15905      fi
15906      ;;
15907
15908    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15909      lt_prog_compiler_wl_GCJ='-Wl,'
15910      lt_prog_compiler_pic_GCJ='-KPIC'
15911      lt_prog_compiler_static_GCJ='-Bstatic'
15912      ;;
15913
15914    unicos*)
15915      lt_prog_compiler_wl_GCJ='-Wl,'
15916      lt_prog_compiler_can_build_shared_GCJ=no
15917      ;;
15918
15919    uts4*)
15920      lt_prog_compiler_pic_GCJ='-pic'
15921      lt_prog_compiler_static_GCJ='-Bstatic'
15922      ;;
15923
15924    *)
15925      lt_prog_compiler_can_build_shared_GCJ=no
15926      ;;
15927    esac
15928  fi
15929
15930{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15931echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15932
15933#
15934# Check to make sure the PIC flag actually works.
15935#
15936if test -n "$lt_prog_compiler_pic_GCJ"; then
15937
15938{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15939echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15940if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15941  echo $ECHO_N "(cached) $ECHO_C" >&6
15942else
15943  lt_prog_compiler_pic_works_GCJ=no
15944  ac_outfile=conftest.$ac_objext
15945   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15946   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15947   # Insert the option either (1) after the last *FLAGS variable, or
15948   # (2) before a word containing "conftest.", or (3) at the end.
15949   # Note that $ac_compile itself does not contain backslashes and begins
15950   # with a dollar sign (not a hyphen), so the echo should work correctly.
15951   # The option is referenced via a variable to avoid confusing sed.
15952   lt_compile=`echo "$ac_compile" | $SED \
15953   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15954   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15955   -e 's:$: $lt_compiler_flag:'`
15956   (eval echo "\"\$as_me:15956: $lt_compile\"" >&5)
15957   (eval "$lt_compile" 2>conftest.err)
15958   ac_status=$?
15959   cat conftest.err >&5
15960   echo "$as_me:15960: \$? = $ac_status" >&5
15961   if (exit $ac_status) && test -s "$ac_outfile"; then
15962     # The compiler can only warn and ignore the option if not recognized
15963     # So say no if there are warnings other than the usual output.
15964     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15965     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15966     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15967       lt_prog_compiler_pic_works_GCJ=yes
15968     fi
15969   fi
15970   $rm conftest*
15971
15972fi
15973{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15974echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15975
15976if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15977    case $lt_prog_compiler_pic_GCJ in
15978     "" | " "*) ;;
15979     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15980     esac
15981else
15982    lt_prog_compiler_pic_GCJ=
15983     lt_prog_compiler_can_build_shared_GCJ=no
15984fi
15985
15986fi
15987case $host_os in
15988  # For platforms which do not support PIC, -DPIC is meaningless:
15989  *djgpp*)
15990    lt_prog_compiler_pic_GCJ=
15991    ;;
15992  *)
15993    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15994    ;;
15995esac
15996
15997#
15998# Check to make sure the static flag actually works.
15999#
16000wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16001{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16002echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16003if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16004  echo $ECHO_N "(cached) $ECHO_C" >&6
16005else
16006  lt_prog_compiler_static_works_GCJ=no
16007   save_LDFLAGS="$LDFLAGS"
16008   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16009   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16010   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16011     # The linker can only warn and ignore the option if not recognized
16012     # So say no if there are warnings
16013     if test -s conftest.err; then
16014       # Append any errors to the config.log.
16015       cat conftest.err 1>&5
16016       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16017       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16018       if diff conftest.exp conftest.er2 >/dev/null; then
16019         lt_prog_compiler_static_works_GCJ=yes
16020       fi
16021     else
16022       lt_prog_compiler_static_works_GCJ=yes
16023     fi
16024   fi
16025   $rm conftest*
16026   LDFLAGS="$save_LDFLAGS"
16027
16028fi
16029{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16030echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16031
16032if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16033    :
16034else
16035    lt_prog_compiler_static_GCJ=
16036fi
16037
16038
16039{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16040echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16041if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16042  echo $ECHO_N "(cached) $ECHO_C" >&6
16043else
16044  lt_cv_prog_compiler_c_o_GCJ=no
16045   $rm -r conftest 2>/dev/null
16046   mkdir conftest
16047   cd conftest
16048   mkdir out
16049   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16050
16051   lt_compiler_flag="-o out/conftest2.$ac_objext"
16052   # Insert the option either (1) after the last *FLAGS variable, or
16053   # (2) before a word containing "conftest.", or (3) at the end.
16054   # Note that $ac_compile itself does not contain backslashes and begins
16055   # with a dollar sign (not a hyphen), so the echo should work correctly.
16056   lt_compile=`echo "$ac_compile" | $SED \
16057   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16058   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16059   -e 's:$: $lt_compiler_flag:'`
16060   (eval echo "\"\$as_me:16060: $lt_compile\"" >&5)
16061   (eval "$lt_compile" 2>out/conftest.err)
16062   ac_status=$?
16063   cat out/conftest.err >&5
16064   echo "$as_me:16064: \$? = $ac_status" >&5
16065   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16066   then
16067     # The compiler can only warn and ignore the option if not recognized
16068     # So say no if there are warnings
16069     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16070     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16071     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16072       lt_cv_prog_compiler_c_o_GCJ=yes
16073     fi
16074   fi
16075   chmod u+w . 2>&5
16076   $rm conftest*
16077   # SGI C++ compiler will create directory out/ii_files/ for
16078   # template instantiation
16079   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16080   $rm out/* && rmdir out
16081   cd ..
16082   rmdir conftest
16083   $rm conftest*
16084
16085fi
16086{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16087echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16088
16089
16090hard_links="nottested"
16091if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16092  # do not overwrite the value of need_locks provided by the user
16093  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16094echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16095  hard_links=yes
16096  $rm conftest*
16097  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16098  touch conftest.a
16099  ln conftest.a conftest.b 2>&5 || hard_links=no
16100  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16101  { echo "$as_me:$LINENO: result: $hard_links" >&5
16102echo "${ECHO_T}$hard_links" >&6; }
16103  if test "$hard_links" = no; then
16104    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16105echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16106    need_locks=warn
16107  fi
16108else
16109  need_locks=no
16110fi
16111
16112{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16113echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16114
16115  runpath_var=
16116  allow_undefined_flag_GCJ=
16117  enable_shared_with_static_runtimes_GCJ=no
16118  archive_cmds_GCJ=
16119  archive_expsym_cmds_GCJ=
16120  old_archive_From_new_cmds_GCJ=
16121  old_archive_from_expsyms_cmds_GCJ=
16122  export_dynamic_flag_spec_GCJ=
16123  whole_archive_flag_spec_GCJ=
16124  thread_safe_flag_spec_GCJ=
16125  hardcode_libdir_flag_spec_GCJ=
16126  hardcode_libdir_flag_spec_ld_GCJ=
16127  hardcode_libdir_separator_GCJ=
16128  hardcode_direct_GCJ=no
16129  hardcode_minus_L_GCJ=no
16130  hardcode_shlibpath_var_GCJ=unsupported
16131  link_all_deplibs_GCJ=unknown
16132  hardcode_automatic_GCJ=no
16133  module_cmds_GCJ=
16134  module_expsym_cmds_GCJ=
16135  always_export_symbols_GCJ=no
16136  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16137  # include_expsyms should be a list of space-separated symbols to be *always*
16138  # included in the symbol list
16139  include_expsyms_GCJ=
16140  # exclude_expsyms can be an extended regexp of symbols to exclude
16141  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16142  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16143  # as well as any symbol that contains `d'.
16144  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16145  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16146  # platforms (ab)use it in PIC code, but their linkers get confused if
16147  # the symbol is explicitly referenced.  Since portable code cannot
16148  # rely on this symbol name, it's probably fine to never include it in
16149  # preloaded symbol tables.
16150  extract_expsyms_cmds=
16151  # Just being paranoid about ensuring that cc_basename is set.
16152  for cc_temp in $compiler""; do
16153  case $cc_temp in
16154    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16155    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16156    \-*) ;;
16157    *) break;;
16158  esac
16159done
16160cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16161
16162  case $host_os in
16163  cygwin* | mingw* | pw32*)
16164    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16165    # When not using gcc, we currently assume that we are using
16166    # Microsoft Visual C++.
16167    if test "$GCC" != yes; then
16168      with_gnu_ld=no
16169    fi
16170    ;;
16171  interix*)
16172    # we just hope/assume this is gcc and not c89 (= MSVC++)
16173    with_gnu_ld=yes
16174    ;;
16175  openbsd*)
16176    with_gnu_ld=no
16177    ;;
16178  esac
16179
16180  ld_shlibs_GCJ=yes
16181  if test "$with_gnu_ld" = yes; then
16182    # If archive_cmds runs LD, not CC, wlarc should be empty
16183    wlarc='${wl}'
16184
16185    # Set some defaults for GNU ld with shared library support. These
16186    # are reset later if shared libraries are not supported. Putting them
16187    # here allows them to be overridden if necessary.
16188    runpath_var=LD_RUN_PATH
16189    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16190    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16191    # ancient GNU ld didn't support --whole-archive et. al.
16192    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16193	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16194      else
16195  	whole_archive_flag_spec_GCJ=
16196    fi
16197    supports_anon_versioning=no
16198    case `$LD -v 2>/dev/null` in
16199      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16200      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16201      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16202      *\ 2.11.*) ;; # other 2.11 versions
16203      *) supports_anon_versioning=yes ;;
16204    esac
16205
16206    # See if GNU ld supports shared libraries.
16207    case $host_os in
16208    aix3* | aix4* | aix5*)
16209      # On AIX/PPC, the GNU linker is very broken
16210      if test "$host_cpu" != ia64; then
16211	ld_shlibs_GCJ=no
16212	cat <<EOF 1>&2
16213
16214*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16215*** to be unable to reliably create shared libraries on AIX.
16216*** Therefore, libtool is disabling shared libraries support.  If you
16217*** really care for shared libraries, you may want to modify your PATH
16218*** so that a non-GNU linker is found, and then restart.
16219
16220EOF
16221      fi
16222      ;;
16223
16224    amigaos*)
16225      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)'
16226      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16227      hardcode_minus_L_GCJ=yes
16228
16229      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16230      # that the semantics of dynamic libraries on AmigaOS, at least up
16231      # to version 4, is to share data among multiple programs linked
16232      # with the same dynamic library.  Since this doesn't match the
16233      # behavior of shared libraries on other platforms, we can't use
16234      # them.
16235      ld_shlibs_GCJ=no
16236      ;;
16237
16238    beos*)
16239      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16240	allow_undefined_flag_GCJ=unsupported
16241	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16242	# support --undefined.  This deserves some investigation.  FIXME
16243	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16244      else
16245	ld_shlibs_GCJ=no
16246      fi
16247      ;;
16248
16249    cygwin* | mingw* | pw32*)
16250      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16251      # as there is no search path for DLLs.
16252      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16253      allow_undefined_flag_GCJ=unsupported
16254      always_export_symbols_GCJ=no
16255      enable_shared_with_static_runtimes_GCJ=yes
16256      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16257
16258      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16259        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16260	# If the export-symbols file already is a .def file (1st line
16261	# is EXPORTS), use it as is; otherwise, prepend...
16262	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16263	  cp $export_symbols $output_objdir/$soname.def;
16264	else
16265	  echo EXPORTS > $output_objdir/$soname.def;
16266	  cat $export_symbols >> $output_objdir/$soname.def;
16267	fi~
16268	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16269      else
16270	ld_shlibs_GCJ=no
16271      fi
16272      ;;
16273
16274    interix[3-9]*)
16275      hardcode_direct_GCJ=no
16276      hardcode_shlibpath_var_GCJ=no
16277      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16278      export_dynamic_flag_spec_GCJ='${wl}-E'
16279      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16280      # Instead, shared libraries are loaded at an image base (0x10000000 by
16281      # default) and relocated if they conflict, which is a slow very memory
16282      # consuming and fragmenting process.  To avoid this, we pick a random,
16283      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16284      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16285      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'
16286      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'
16287      ;;
16288
16289    gnu* | linux* | k*bsd*-gnu)
16290      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16291	tmp_addflag=
16292	case $cc_basename,$host_cpu in
16293	pgcc*)				# Portland Group C compiler
16294	  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'
16295	  tmp_addflag=' $pic_flag'
16296	  ;;
16297	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16298	  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'
16299	  tmp_addflag=' $pic_flag -Mnomain' ;;
16300	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16301	  tmp_addflag=' -i_dynamic' ;;
16302	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16303	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16304	ifc* | ifort*)			# Intel Fortran compiler
16305	  tmp_addflag=' -nofor_main' ;;
16306	esac
16307	case `$CC -V 2>&1 | sed 5q` in
16308	*Sun\ C*)			# Sun C 5.9
16309	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16310	  tmp_sharedflag='-G' ;;
16311	*Sun\ F*)			# Sun Fortran 8.3
16312	  tmp_sharedflag='-G' ;;
16313	*)
16314	  tmp_sharedflag='-shared' ;;
16315	esac
16316	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16317
16318	if test $supports_anon_versioning = yes; then
16319	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16320  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16321  $echo "local: *; };" >> $output_objdir/$libname.ver~
16322	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16323	fi
16324      else
16325	ld_shlibs_GCJ=no
16326      fi
16327      ;;
16328
16329    netbsd*)
16330      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16331	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16332	wlarc=
16333      else
16334	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16335	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16336      fi
16337      ;;
16338
16339    solaris*)
16340      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16341	ld_shlibs_GCJ=no
16342	cat <<EOF 1>&2
16343
16344*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16345*** create shared libraries on Solaris systems.  Therefore, libtool
16346*** is disabling shared libraries support.  We urge you to upgrade GNU
16347*** binutils to release 2.9.1 or newer.  Another option is to modify
16348*** your PATH or compiler configuration so that the native linker is
16349*** used, and then restart.
16350
16351EOF
16352      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16353	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16354	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16355      else
16356	ld_shlibs_GCJ=no
16357      fi
16358      ;;
16359
16360    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16361      case `$LD -v 2>&1` in
16362        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16363	ld_shlibs_GCJ=no
16364	cat <<_LT_EOF 1>&2
16365
16366*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16367*** reliably create shared libraries on SCO systems.  Therefore, libtool
16368*** is disabling shared libraries support.  We urge you to upgrade GNU
16369*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16370*** your PATH or compiler configuration so that the native linker is
16371*** used, and then restart.
16372
16373_LT_EOF
16374	;;
16375	*)
16376	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16377	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16378	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16379	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16380	  else
16381	    ld_shlibs_GCJ=no
16382	  fi
16383	;;
16384      esac
16385      ;;
16386
16387    sunos4*)
16388      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16389      wlarc=
16390      hardcode_direct_GCJ=yes
16391      hardcode_shlibpath_var_GCJ=no
16392      ;;
16393
16394    *)
16395      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16396	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16397	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16398      else
16399	ld_shlibs_GCJ=no
16400      fi
16401      ;;
16402    esac
16403
16404    if test "$ld_shlibs_GCJ" = no; then
16405      runpath_var=
16406      hardcode_libdir_flag_spec_GCJ=
16407      export_dynamic_flag_spec_GCJ=
16408      whole_archive_flag_spec_GCJ=
16409    fi
16410  else
16411    # PORTME fill in a description of your system's linker (not GNU ld)
16412    case $host_os in
16413    aix3*)
16414      allow_undefined_flag_GCJ=unsupported
16415      always_export_symbols_GCJ=yes
16416      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'
16417      # Note: this linker hardcodes the directories in LIBPATH if there
16418      # are no directories specified by -L.
16419      hardcode_minus_L_GCJ=yes
16420      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16421	# Neither direct hardcoding nor static linking is supported with a
16422	# broken collect2.
16423	hardcode_direct_GCJ=unsupported
16424      fi
16425      ;;
16426
16427    aix4* | aix5*)
16428      if test "$host_cpu" = ia64; then
16429	# On IA64, the linker does run time linking by default, so we don't
16430	# have to do anything special.
16431	aix_use_runtimelinking=no
16432	exp_sym_flag='-Bexport'
16433	no_entry_flag=""
16434      else
16435	# If we're using GNU nm, then we don't want the "-C" option.
16436	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16437	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16438	  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'
16439	else
16440	  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'
16441	fi
16442	aix_use_runtimelinking=no
16443
16444	# Test if we are trying to use run time linking or normal
16445	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16446	# need to do runtime linking.
16447	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16448	  for ld_flag in $LDFLAGS; do
16449  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16450  	    aix_use_runtimelinking=yes
16451  	    break
16452  	  fi
16453	  done
16454	  ;;
16455	esac
16456
16457	exp_sym_flag='-bexport'
16458	no_entry_flag='-bnoentry'
16459      fi
16460
16461      # When large executables or shared objects are built, AIX ld can
16462      # have problems creating the table of contents.  If linking a library
16463      # or program results in "error TOC overflow" add -mminimal-toc to
16464      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16465      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16466
16467      archive_cmds_GCJ=''
16468      hardcode_direct_GCJ=yes
16469      hardcode_libdir_separator_GCJ=':'
16470      link_all_deplibs_GCJ=yes
16471
16472      if test "$GCC" = yes; then
16473	case $host_os in aix4.[012]|aix4.[012].*)
16474	# We only want to do this on AIX 4.2 and lower, the check
16475	# below for broken collect2 doesn't work under 4.3+
16476	  collect2name=`${CC} -print-prog-name=collect2`
16477	  if test -f "$collect2name" && \
16478  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16479	  then
16480  	  # We have reworked collect2
16481  	  :
16482	  else
16483  	  # We have old collect2
16484  	  hardcode_direct_GCJ=unsupported
16485  	  # It fails to find uninstalled libraries when the uninstalled
16486  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16487  	  # to unsupported forces relinking
16488  	  hardcode_minus_L_GCJ=yes
16489  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16490  	  hardcode_libdir_separator_GCJ=
16491	  fi
16492	  ;;
16493	esac
16494	shared_flag='-shared'
16495	if test "$aix_use_runtimelinking" = yes; then
16496	  shared_flag="$shared_flag "'${wl}-G'
16497	fi
16498      else
16499	# not using gcc
16500	if test "$host_cpu" = ia64; then
16501  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16502  	# chokes on -Wl,-G. The following line is correct:
16503	  shared_flag='-G'
16504	else
16505	  if test "$aix_use_runtimelinking" = yes; then
16506	    shared_flag='${wl}-G'
16507	  else
16508	    shared_flag='${wl}-bM:SRE'
16509	  fi
16510	fi
16511      fi
16512
16513      # It seems that -bexpall does not export symbols beginning with
16514      # underscore (_), so it is better to generate a list of symbols to export.
16515      always_export_symbols_GCJ=yes
16516      if test "$aix_use_runtimelinking" = yes; then
16517	# Warning - without using the other runtime loading flags (-brtl),
16518	# -berok will link without error, but may produce a broken library.
16519	allow_undefined_flag_GCJ='-berok'
16520       # Determine the default libpath from the value encoded in an empty executable.
16521       cat >conftest.$ac_ext <<_ACEOF
16522/* confdefs.h.  */
16523_ACEOF
16524cat confdefs.h >>conftest.$ac_ext
16525cat >>conftest.$ac_ext <<_ACEOF
16526/* end confdefs.h.  */
16527
16528int
16529main ()
16530{
16531
16532  ;
16533  return 0;
16534}
16535_ACEOF
16536rm -f conftest.$ac_objext conftest$ac_exeext
16537if { (ac_try="$ac_link"
16538case "(($ac_try" in
16539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540  *) ac_try_echo=$ac_try;;
16541esac
16542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543  (eval "$ac_link") 2>conftest.er1
16544  ac_status=$?
16545  grep -v '^ *+' conftest.er1 >conftest.err
16546  rm -f conftest.er1
16547  cat conftest.err >&5
16548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549  (exit $ac_status); } && {
16550	 test -z "$ac_c_werror_flag" ||
16551	 test ! -s conftest.err
16552       } && test -s conftest$ac_exeext &&
16553       $as_test_x conftest$ac_exeext; then
16554
16555lt_aix_libpath_sed='
16556    /Import File Strings/,/^$/ {
16557	/^0/ {
16558	    s/^0  *\(.*\)$/\1/
16559	    p
16560	}
16561    }'
16562aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16563# Check for a 64-bit object if we didn't find anything.
16564if test -z "$aix_libpath"; then
16565  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16566fi
16567else
16568  echo "$as_me: failed program was:" >&5
16569sed 's/^/| /' conftest.$ac_ext >&5
16570
16571
16572fi
16573
16574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16575      conftest$ac_exeext conftest.$ac_ext
16576if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16577
16578       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16579	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"
16580       else
16581	if test "$host_cpu" = ia64; then
16582	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16583	  allow_undefined_flag_GCJ="-z nodefs"
16584	  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"
16585	else
16586	 # Determine the default libpath from the value encoded in an empty executable.
16587	 cat >conftest.$ac_ext <<_ACEOF
16588/* confdefs.h.  */
16589_ACEOF
16590cat confdefs.h >>conftest.$ac_ext
16591cat >>conftest.$ac_ext <<_ACEOF
16592/* end confdefs.h.  */
16593
16594int
16595main ()
16596{
16597
16598  ;
16599  return 0;
16600}
16601_ACEOF
16602rm -f conftest.$ac_objext conftest$ac_exeext
16603if { (ac_try="$ac_link"
16604case "(($ac_try" in
16605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16606  *) ac_try_echo=$ac_try;;
16607esac
16608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609  (eval "$ac_link") 2>conftest.er1
16610  ac_status=$?
16611  grep -v '^ *+' conftest.er1 >conftest.err
16612  rm -f conftest.er1
16613  cat conftest.err >&5
16614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615  (exit $ac_status); } && {
16616	 test -z "$ac_c_werror_flag" ||
16617	 test ! -s conftest.err
16618       } && test -s conftest$ac_exeext &&
16619       $as_test_x conftest$ac_exeext; then
16620
16621lt_aix_libpath_sed='
16622    /Import File Strings/,/^$/ {
16623	/^0/ {
16624	    s/^0  *\(.*\)$/\1/
16625	    p
16626	}
16627    }'
16628aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16629# Check for a 64-bit object if we didn't find anything.
16630if test -z "$aix_libpath"; then
16631  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16632fi
16633else
16634  echo "$as_me: failed program was:" >&5
16635sed 's/^/| /' conftest.$ac_ext >&5
16636
16637
16638fi
16639
16640rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16641      conftest$ac_exeext conftest.$ac_ext
16642if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16643
16644	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16645	  # Warning - without using the other run time loading flags,
16646	  # -berok will link without error, but may produce a broken library.
16647	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16648	  allow_undefined_flag_GCJ=' ${wl}-berok'
16649	  # Exported symbols can be pulled into shared objects from archives
16650	  whole_archive_flag_spec_GCJ='$convenience'
16651	  archive_cmds_need_lc_GCJ=yes
16652	  # This is similar to how AIX traditionally builds its shared libraries.
16653	  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'
16654	fi
16655      fi
16656      ;;
16657
16658    amigaos*)
16659      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)'
16660      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16661      hardcode_minus_L_GCJ=yes
16662      # see comment about different semantics on the GNU ld section
16663      ld_shlibs_GCJ=no
16664      ;;
16665
16666    bsdi[45]*)
16667      export_dynamic_flag_spec_GCJ=-rdynamic
16668      ;;
16669
16670    cygwin* | mingw* | pw32*)
16671      # When not using gcc, we currently assume that we are using
16672      # Microsoft Visual C++.
16673      # hardcode_libdir_flag_spec is actually meaningless, as there is
16674      # no search path for DLLs.
16675      hardcode_libdir_flag_spec_GCJ=' '
16676      allow_undefined_flag_GCJ=unsupported
16677      # Tell ltmain to make .lib files, not .a files.
16678      libext=lib
16679      # Tell ltmain to make .dll files, not .so files.
16680      shrext_cmds=".dll"
16681      # FIXME: Setting linknames here is a bad hack.
16682      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16683      # The linker will automatically build a .lib file if we build a DLL.
16684      old_archive_From_new_cmds_GCJ='true'
16685      # FIXME: Should let the user specify the lib program.
16686      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16687      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16688      enable_shared_with_static_runtimes_GCJ=yes
16689      ;;
16690
16691    darwin* | rhapsody*)
16692      case $host_os in
16693        rhapsody* | darwin1.[012])
16694         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16695         ;;
16696       *) # Darwin 1.3 on
16697         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16698           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16699         else
16700           case ${MACOSX_DEPLOYMENT_TARGET} in
16701             10.[012])
16702               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16703               ;;
16704             10.*)
16705               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16706               ;;
16707           esac
16708         fi
16709         ;;
16710      esac
16711      archive_cmds_need_lc_GCJ=no
16712      hardcode_direct_GCJ=no
16713      hardcode_automatic_GCJ=yes
16714      hardcode_shlibpath_var_GCJ=unsupported
16715      whole_archive_flag_spec_GCJ=''
16716      link_all_deplibs_GCJ=yes
16717    if test "$GCC" = yes ; then
16718    	output_verbose_link_cmd='echo'
16719        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16720      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16721      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16722      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}'
16723      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}'
16724    else
16725      case $cc_basename in
16726        xlc*)
16727         output_verbose_link_cmd='echo'
16728         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16729         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16730          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16731         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16732          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}'
16733          ;;
16734       *)
16735         ld_shlibs_GCJ=no
16736          ;;
16737      esac
16738    fi
16739      ;;
16740
16741    dgux*)
16742      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16743      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16744      hardcode_shlibpath_var_GCJ=no
16745      ;;
16746
16747    freebsd1*)
16748      ld_shlibs_GCJ=no
16749      ;;
16750
16751    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16752    # support.  Future versions do this automatically, but an explicit c++rt0.o
16753    # does not break anything, and helps significantly (at the cost of a little
16754    # extra space).
16755    freebsd2.2*)
16756      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16757      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16758      hardcode_direct_GCJ=yes
16759      hardcode_shlibpath_var_GCJ=no
16760      ;;
16761
16762    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16763    freebsd2*)
16764      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16765      hardcode_direct_GCJ=yes
16766      hardcode_minus_L_GCJ=yes
16767      hardcode_shlibpath_var_GCJ=no
16768      ;;
16769
16770    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16771    freebsd* | dragonfly*)
16772      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16773      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16774      hardcode_direct_GCJ=yes
16775      hardcode_shlibpath_var_GCJ=no
16776      ;;
16777
16778    hpux9*)
16779      if test "$GCC" = yes; then
16780	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'
16781      else
16782	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'
16783      fi
16784      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16785      hardcode_libdir_separator_GCJ=:
16786      hardcode_direct_GCJ=yes
16787
16788      # hardcode_minus_L: Not really in the search PATH,
16789      # but as the default location of the library.
16790      hardcode_minus_L_GCJ=yes
16791      export_dynamic_flag_spec_GCJ='${wl}-E'
16792      ;;
16793
16794    hpux10*)
16795      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16796	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16797      else
16798	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16799      fi
16800      if test "$with_gnu_ld" = no; then
16801	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16802	hardcode_libdir_separator_GCJ=:
16803
16804	hardcode_direct_GCJ=yes
16805	export_dynamic_flag_spec_GCJ='${wl}-E'
16806
16807	# hardcode_minus_L: Not really in the search PATH,
16808	# but as the default location of the library.
16809	hardcode_minus_L_GCJ=yes
16810      fi
16811      ;;
16812
16813    hpux11*)
16814      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16815	case $host_cpu in
16816	hppa*64*)
16817	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16818	  ;;
16819	ia64*)
16820	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16821	  ;;
16822	*)
16823	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16824	  ;;
16825	esac
16826      else
16827	case $host_cpu in
16828	hppa*64*)
16829	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16830	  ;;
16831	ia64*)
16832	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16833	  ;;
16834	*)
16835	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16836	  ;;
16837	esac
16838      fi
16839      if test "$with_gnu_ld" = no; then
16840	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16841	hardcode_libdir_separator_GCJ=:
16842
16843	case $host_cpu in
16844	hppa*64*|ia64*)
16845	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16846	  hardcode_direct_GCJ=no
16847	  hardcode_shlibpath_var_GCJ=no
16848	  ;;
16849	*)
16850	  hardcode_direct_GCJ=yes
16851	  export_dynamic_flag_spec_GCJ='${wl}-E'
16852
16853	  # hardcode_minus_L: Not really in the search PATH,
16854	  # but as the default location of the library.
16855	  hardcode_minus_L_GCJ=yes
16856	  ;;
16857	esac
16858      fi
16859      ;;
16860
16861    irix5* | irix6* | nonstopux*)
16862      if test "$GCC" = yes; then
16863	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'
16864      else
16865	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'
16866	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16867      fi
16868      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16869      hardcode_libdir_separator_GCJ=:
16870      link_all_deplibs_GCJ=yes
16871      ;;
16872
16873    netbsd*)
16874      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16875	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16876      else
16877	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16878      fi
16879      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16880      hardcode_direct_GCJ=yes
16881      hardcode_shlibpath_var_GCJ=no
16882      ;;
16883
16884    newsos6)
16885      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16886      hardcode_direct_GCJ=yes
16887      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16888      hardcode_libdir_separator_GCJ=:
16889      hardcode_shlibpath_var_GCJ=no
16890      ;;
16891
16892    openbsd*)
16893      if test -f /usr/libexec/ld.so; then
16894	hardcode_direct_GCJ=yes
16895	hardcode_shlibpath_var_GCJ=no
16896	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16897	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16898	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16899	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16900	  export_dynamic_flag_spec_GCJ='${wl}-E'
16901	else
16902	  case $host_os in
16903	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16904	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16905	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
16906	     ;;
16907	   *)
16908	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16909	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16910	     ;;
16911	  esac
16912        fi
16913      else
16914	ld_shlibs_GCJ=no
16915      fi
16916      ;;
16917
16918    os2*)
16919      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16920      hardcode_minus_L_GCJ=yes
16921      allow_undefined_flag_GCJ=unsupported
16922      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'
16923      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16924      ;;
16925
16926    osf3*)
16927      if test "$GCC" = yes; then
16928	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16929	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'
16930      else
16931	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16932	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'
16933      fi
16934      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16935      hardcode_libdir_separator_GCJ=:
16936      ;;
16937
16938    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16939      if test "$GCC" = yes; then
16940	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16941	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'
16942	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16943      else
16944	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16945	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'
16946	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~
16947	$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'
16948
16949	# Both c and cxx compiler support -rpath directly
16950	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16951      fi
16952      hardcode_libdir_separator_GCJ=:
16953      ;;
16954
16955    solaris*)
16956      no_undefined_flag_GCJ=' -z text'
16957      if test "$GCC" = yes; then
16958	wlarc='${wl}'
16959	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16960	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16961	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16962      else
16963	wlarc=''
16964	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16965	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16966  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16967      fi
16968      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16969      hardcode_shlibpath_var_GCJ=no
16970      case $host_os in
16971      solaris2.[0-5] | solaris2.[0-5].*) ;;
16972      *)
16973	# The compiler driver will combine and reorder linker options,
16974	# but understands `-z linker_flag'.  GCC discards it without `$wl',
16975	# but is careful enough not to reorder.
16976 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16977	if test "$GCC" = yes; then
16978	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16979	else
16980	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
16981	fi
16982	;;
16983      esac
16984      link_all_deplibs_GCJ=yes
16985      ;;
16986
16987    sunos4*)
16988      if test "x$host_vendor" = xsequent; then
16989	# Use $CC to link under sequent, because it throws in some extra .o
16990	# files that make .init and .fini sections work.
16991	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16992      else
16993	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16994      fi
16995      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16996      hardcode_direct_GCJ=yes
16997      hardcode_minus_L_GCJ=yes
16998      hardcode_shlibpath_var_GCJ=no
16999      ;;
17000
17001    sysv4)
17002      case $host_vendor in
17003	sni)
17004	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17005	  hardcode_direct_GCJ=yes # is this really true???
17006	;;
17007	siemens)
17008	  ## LD is ld it makes a PLAMLIB
17009	  ## CC just makes a GrossModule.
17010	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17011	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17012	  hardcode_direct_GCJ=no
17013        ;;
17014	motorola)
17015	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17016	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17017	;;
17018      esac
17019      runpath_var='LD_RUN_PATH'
17020      hardcode_shlibpath_var_GCJ=no
17021      ;;
17022
17023    sysv4.3*)
17024      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17025      hardcode_shlibpath_var_GCJ=no
17026      export_dynamic_flag_spec_GCJ='-Bexport'
17027      ;;
17028
17029    sysv4*MP*)
17030      if test -d /usr/nec; then
17031	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17032	hardcode_shlibpath_var_GCJ=no
17033	runpath_var=LD_RUN_PATH
17034	hardcode_runpath_var=yes
17035	ld_shlibs_GCJ=yes
17036      fi
17037      ;;
17038
17039    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17040      no_undefined_flag_GCJ='${wl}-z,text'
17041      archive_cmds_need_lc_GCJ=no
17042      hardcode_shlibpath_var_GCJ=no
17043      runpath_var='LD_RUN_PATH'
17044
17045      if test "$GCC" = yes; then
17046	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17047	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17048      else
17049	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17050	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17051      fi
17052      ;;
17053
17054    sysv5* | sco3.2v5* | sco5v6*)
17055      # Note: We can NOT use -z defs as we might desire, because we do not
17056      # link with -lc, and that would cause any symbols used from libc to
17057      # always be unresolved, which means just about no library would
17058      # ever link correctly.  If we're not using GNU ld we use -z text
17059      # though, which does catch some bad symbols but isn't as heavy-handed
17060      # as -z defs.
17061      no_undefined_flag_GCJ='${wl}-z,text'
17062      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17063      archive_cmds_need_lc_GCJ=no
17064      hardcode_shlibpath_var_GCJ=no
17065      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17066      hardcode_libdir_separator_GCJ=':'
17067      link_all_deplibs_GCJ=yes
17068      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17069      runpath_var='LD_RUN_PATH'
17070
17071      if test "$GCC" = yes; then
17072	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17073	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17074      else
17075	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17076	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17077      fi
17078      ;;
17079
17080    uts4*)
17081      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17082      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17083      hardcode_shlibpath_var_GCJ=no
17084      ;;
17085
17086    *)
17087      ld_shlibs_GCJ=no
17088      ;;
17089    esac
17090  fi
17091
17092{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17093echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17094test "$ld_shlibs_GCJ" = no && can_build_shared=no
17095
17096#
17097# Do we need to explicitly link libc?
17098#
17099case "x$archive_cmds_need_lc_GCJ" in
17100x|xyes)
17101  # Assume -lc should be added
17102  archive_cmds_need_lc_GCJ=yes
17103
17104  if test "$enable_shared" = yes && test "$GCC" = yes; then
17105    case $archive_cmds_GCJ in
17106    *'~'*)
17107      # FIXME: we may have to deal with multi-command sequences.
17108      ;;
17109    '$CC '*)
17110      # Test whether the compiler implicitly links with -lc since on some
17111      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17112      # to ld, don't add -lc before -lgcc.
17113      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17114echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17115      $rm conftest*
17116      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17117
17118      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17119  (eval $ac_compile) 2>&5
17120  ac_status=$?
17121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122  (exit $ac_status); } 2>conftest.err; then
17123        soname=conftest
17124        lib=conftest
17125        libobjs=conftest.$ac_objext
17126        deplibs=
17127        wl=$lt_prog_compiler_wl_GCJ
17128	pic_flag=$lt_prog_compiler_pic_GCJ
17129        compiler_flags=-v
17130        linker_flags=-v
17131        verstring=
17132        output_objdir=.
17133        libname=conftest
17134        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17135        allow_undefined_flag_GCJ=
17136        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17137  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17138  ac_status=$?
17139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140  (exit $ac_status); }
17141        then
17142	  archive_cmds_need_lc_GCJ=no
17143        else
17144	  archive_cmds_need_lc_GCJ=yes
17145        fi
17146        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17147      else
17148        cat conftest.err 1>&5
17149      fi
17150      $rm conftest*
17151      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17152echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17153      ;;
17154    esac
17155  fi
17156  ;;
17157esac
17158
17159{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17160echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17161library_names_spec=
17162libname_spec='lib$name'
17163soname_spec=
17164shrext_cmds=".so"
17165postinstall_cmds=
17166postuninstall_cmds=
17167finish_cmds=
17168finish_eval=
17169shlibpath_var=
17170shlibpath_overrides_runpath=unknown
17171version_type=none
17172dynamic_linker="$host_os ld.so"
17173sys_lib_dlsearch_path_spec="/lib /usr/lib"
17174
17175need_lib_prefix=unknown
17176hardcode_into_libs=no
17177
17178# when you set need_version to no, make sure it does not cause -set_version
17179# flags to be left without arguments
17180need_version=unknown
17181
17182case $host_os in
17183aix3*)
17184  version_type=linux
17185  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17186  shlibpath_var=LIBPATH
17187
17188  # AIX 3 has no versioning support, so we append a major version to the name.
17189  soname_spec='${libname}${release}${shared_ext}$major'
17190  ;;
17191
17192aix4* | aix5*)
17193  version_type=linux
17194  need_lib_prefix=no
17195  need_version=no
17196  hardcode_into_libs=yes
17197  if test "$host_cpu" = ia64; then
17198    # AIX 5 supports IA64
17199    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17200    shlibpath_var=LD_LIBRARY_PATH
17201  else
17202    # With GCC up to 2.95.x, collect2 would create an import file
17203    # for dependence libraries.  The import file would start with
17204    # the line `#! .'.  This would cause the generated library to
17205    # depend on `.', always an invalid library.  This was fixed in
17206    # development snapshots of GCC prior to 3.0.
17207    case $host_os in
17208      aix4 | aix4.[01] | aix4.[01].*)
17209      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17210	   echo ' yes '
17211	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17212	:
17213      else
17214	can_build_shared=no
17215      fi
17216      ;;
17217    esac
17218    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17219    # soname into executable. Probably we can add versioning support to
17220    # collect2, so additional links can be useful in future.
17221    if test "$aix_use_runtimelinking" = yes; then
17222      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17223      # instead of lib<name>.a to let people know that these are not
17224      # typical AIX shared libraries.
17225      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17226    else
17227      # We preserve .a as extension for shared libraries through AIX4.2
17228      # and later when we are not doing run time linking.
17229      library_names_spec='${libname}${release}.a $libname.a'
17230      soname_spec='${libname}${release}${shared_ext}$major'
17231    fi
17232    shlibpath_var=LIBPATH
17233  fi
17234  ;;
17235
17236amigaos*)
17237  library_names_spec='$libname.ixlibrary $libname.a'
17238  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17239  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'
17240  ;;
17241
17242beos*)
17243  library_names_spec='${libname}${shared_ext}'
17244  dynamic_linker="$host_os ld.so"
17245  shlibpath_var=LIBRARY_PATH
17246  ;;
17247
17248bsdi[45]*)
17249  version_type=linux
17250  need_version=no
17251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17252  soname_spec='${libname}${release}${shared_ext}$major'
17253  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17254  shlibpath_var=LD_LIBRARY_PATH
17255  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17256  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17257  # the default ld.so.conf also contains /usr/contrib/lib and
17258  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17259  # libtool to hard-code these into programs
17260  ;;
17261
17262cygwin* | mingw* | pw32*)
17263  version_type=windows
17264  shrext_cmds=".dll"
17265  need_version=no
17266  need_lib_prefix=no
17267
17268  case $GCC,$host_os in
17269  yes,cygwin* | yes,mingw* | yes,pw32*)
17270    library_names_spec='$libname.dll.a'
17271    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17272    postinstall_cmds='base_file=`basename \${file}`~
17273      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17274      dldir=$destdir/`dirname \$dlpath`~
17275      test -d \$dldir || mkdir -p \$dldir~
17276      $install_prog $dir/$dlname \$dldir/$dlname~
17277      chmod a+x \$dldir/$dlname'
17278    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17279      dlpath=$dir/\$dldll~
17280       $rm \$dlpath'
17281    shlibpath_overrides_runpath=yes
17282
17283    case $host_os in
17284    cygwin*)
17285      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17286      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17287      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17288      ;;
17289    mingw*)
17290      # MinGW DLLs use traditional 'lib' prefix
17291      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17292      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17293      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17294        # It is most probably a Windows format PATH printed by
17295        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17296        # path with ; separators, and with drive letters. We can handle the
17297        # drive letters (cygwin fileutils understands them), so leave them,
17298        # especially as we might pass files found there to a mingw objdump,
17299        # which wouldn't understand a cygwinified path. Ahh.
17300        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17301      else
17302        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17303      fi
17304      ;;
17305    pw32*)
17306      # pw32 DLLs use 'pw' prefix rather than 'lib'
17307      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17308      ;;
17309    esac
17310    ;;
17311
17312  *)
17313    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17314    ;;
17315  esac
17316  dynamic_linker='Win32 ld.exe'
17317  # FIXME: first we should search . and the directory the executable is in
17318  shlibpath_var=PATH
17319  ;;
17320
17321darwin* | rhapsody*)
17322  dynamic_linker="$host_os dyld"
17323  version_type=darwin
17324  need_lib_prefix=no
17325  need_version=no
17326  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17327  soname_spec='${libname}${release}${major}$shared_ext'
17328  shlibpath_overrides_runpath=yes
17329  shlibpath_var=DYLD_LIBRARY_PATH
17330  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17331
17332  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17333  ;;
17334
17335dgux*)
17336  version_type=linux
17337  need_lib_prefix=no
17338  need_version=no
17339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17340  soname_spec='${libname}${release}${shared_ext}$major'
17341  shlibpath_var=LD_LIBRARY_PATH
17342  ;;
17343
17344freebsd1*)
17345  dynamic_linker=no
17346  ;;
17347
17348freebsd* | dragonfly*)
17349  # DragonFly does not have aout.  When/if they implement a new
17350  # versioning mechanism, adjust this.
17351  if test -x /usr/bin/objformat; then
17352    objformat=`/usr/bin/objformat`
17353  else
17354    case $host_os in
17355    freebsd[123]*) objformat=aout ;;
17356    *) objformat=elf ;;
17357    esac
17358  fi
17359  version_type=freebsd-$objformat
17360  case $version_type in
17361    freebsd-elf*)
17362      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17363      need_version=no
17364      need_lib_prefix=no
17365      ;;
17366    freebsd-*)
17367      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17368      need_version=yes
17369      ;;
17370  esac
17371  shlibpath_var=LD_LIBRARY_PATH
17372  case $host_os in
17373  freebsd2*)
17374    shlibpath_overrides_runpath=yes
17375    ;;
17376  freebsd3.[01]* | freebsdelf3.[01]*)
17377    shlibpath_overrides_runpath=yes
17378    hardcode_into_libs=yes
17379    ;;
17380  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17381  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17382    shlibpath_overrides_runpath=no
17383    hardcode_into_libs=yes
17384    ;;
17385  *) # from 4.6 on, and DragonFly
17386    shlibpath_overrides_runpath=yes
17387    hardcode_into_libs=yes
17388    ;;
17389  esac
17390  ;;
17391
17392gnu*)
17393  version_type=linux
17394  need_lib_prefix=no
17395  need_version=no
17396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17397  soname_spec='${libname}${release}${shared_ext}$major'
17398  shlibpath_var=LD_LIBRARY_PATH
17399  hardcode_into_libs=yes
17400  ;;
17401
17402hpux9* | hpux10* | hpux11*)
17403  # Give a soname corresponding to the major version so that dld.sl refuses to
17404  # link against other versions.
17405  version_type=sunos
17406  need_lib_prefix=no
17407  need_version=no
17408  case $host_cpu in
17409  ia64*)
17410    shrext_cmds='.so'
17411    hardcode_into_libs=yes
17412    dynamic_linker="$host_os dld.so"
17413    shlibpath_var=LD_LIBRARY_PATH
17414    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17415    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17416    soname_spec='${libname}${release}${shared_ext}$major'
17417    if test "X$HPUX_IA64_MODE" = X32; then
17418      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17419    else
17420      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17421    fi
17422    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17423    ;;
17424   hppa*64*)
17425     shrext_cmds='.sl'
17426     hardcode_into_libs=yes
17427     dynamic_linker="$host_os dld.sl"
17428     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17429     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17431     soname_spec='${libname}${release}${shared_ext}$major'
17432     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17433     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17434     ;;
17435   *)
17436    shrext_cmds='.sl'
17437    dynamic_linker="$host_os dld.sl"
17438    shlibpath_var=SHLIB_PATH
17439    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17440    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441    soname_spec='${libname}${release}${shared_ext}$major'
17442    ;;
17443  esac
17444  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17445  postinstall_cmds='chmod 555 $lib'
17446  ;;
17447
17448interix[3-9]*)
17449  version_type=linux
17450  need_lib_prefix=no
17451  need_version=no
17452  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17453  soname_spec='${libname}${release}${shared_ext}$major'
17454  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17455  shlibpath_var=LD_LIBRARY_PATH
17456  shlibpath_overrides_runpath=no
17457  hardcode_into_libs=yes
17458  ;;
17459
17460irix5* | irix6* | nonstopux*)
17461  case $host_os in
17462    nonstopux*) version_type=nonstopux ;;
17463    *)
17464	if test "$lt_cv_prog_gnu_ld" = yes; then
17465		version_type=linux
17466	else
17467		version_type=irix
17468	fi ;;
17469  esac
17470  need_lib_prefix=no
17471  need_version=no
17472  soname_spec='${libname}${release}${shared_ext}$major'
17473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17474  case $host_os in
17475  irix5* | nonstopux*)
17476    libsuff= shlibsuff=
17477    ;;
17478  *)
17479    case $LD in # libtool.m4 will add one of these switches to LD
17480    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17481      libsuff= shlibsuff= libmagic=32-bit;;
17482    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17483      libsuff=32 shlibsuff=N32 libmagic=N32;;
17484    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17485      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17486    *) libsuff= shlibsuff= libmagic=never-match;;
17487    esac
17488    ;;
17489  esac
17490  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17491  shlibpath_overrides_runpath=no
17492  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17493  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17494  hardcode_into_libs=yes
17495  ;;
17496
17497# No shared lib support for Linux oldld, aout, or coff.
17498linux*oldld* | linux*aout* | linux*coff*)
17499  dynamic_linker=no
17500  ;;
17501
17502# This must be Linux ELF.
17503linux* | k*bsd*-gnu)
17504  version_type=linux
17505  need_lib_prefix=no
17506  need_version=no
17507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17508  soname_spec='${libname}${release}${shared_ext}$major'
17509  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17510  shlibpath_var=LD_LIBRARY_PATH
17511  shlibpath_overrides_runpath=no
17512  # This implies no fast_install, which is unacceptable.
17513  # Some rework will be needed to allow for fast_install
17514  # before this can be enabled.
17515  hardcode_into_libs=yes
17516
17517  # Append ld.so.conf contents to the search path
17518  if test -f /etc/ld.so.conf; then
17519    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17520    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17521  fi
17522
17523  # We used to test for /lib/ld.so.1 and disable shared libraries on
17524  # powerpc, because MkLinux only supported shared libraries with the
17525  # GNU dynamic linker.  Since this was broken with cross compilers,
17526  # most powerpc-linux boxes support dynamic linking these days and
17527  # people can always --disable-shared, the test was removed, and we
17528  # assume the GNU/Linux dynamic linker is in use.
17529  dynamic_linker='GNU/Linux ld.so'
17530  ;;
17531
17532netbsd*)
17533  version_type=sunos
17534  need_lib_prefix=no
17535  need_version=no
17536  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17537    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17538    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17539    dynamic_linker='NetBSD (a.out) ld.so'
17540  else
17541    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17542    soname_spec='${libname}${release}${shared_ext}$major'
17543    dynamic_linker='NetBSD ld.elf_so'
17544  fi
17545  shlibpath_var=LD_LIBRARY_PATH
17546  shlibpath_overrides_runpath=yes
17547  hardcode_into_libs=yes
17548  ;;
17549
17550newsos6)
17551  version_type=linux
17552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17553  shlibpath_var=LD_LIBRARY_PATH
17554  shlibpath_overrides_runpath=yes
17555  ;;
17556
17557nto-qnx*)
17558  version_type=linux
17559  need_lib_prefix=no
17560  need_version=no
17561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17562  soname_spec='${libname}${release}${shared_ext}$major'
17563  shlibpath_var=LD_LIBRARY_PATH
17564  shlibpath_overrides_runpath=yes
17565  ;;
17566
17567openbsd*)
17568  version_type=sunos
17569  sys_lib_dlsearch_path_spec="/usr/lib"
17570  need_lib_prefix=no
17571  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17572  case $host_os in
17573    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17574    *)                         need_version=no  ;;
17575  esac
17576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17577  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17578  shlibpath_var=LD_LIBRARY_PATH
17579  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17580    case $host_os in
17581      openbsd2.[89] | openbsd2.[89].*)
17582	shlibpath_overrides_runpath=no
17583	;;
17584      *)
17585	shlibpath_overrides_runpath=yes
17586	;;
17587      esac
17588  else
17589    shlibpath_overrides_runpath=yes
17590  fi
17591  ;;
17592
17593os2*)
17594  libname_spec='$name'
17595  shrext_cmds=".dll"
17596  need_lib_prefix=no
17597  library_names_spec='$libname${shared_ext} $libname.a'
17598  dynamic_linker='OS/2 ld.exe'
17599  shlibpath_var=LIBPATH
17600  ;;
17601
17602osf3* | osf4* | osf5*)
17603  version_type=osf
17604  need_lib_prefix=no
17605  need_version=no
17606  soname_spec='${libname}${release}${shared_ext}$major'
17607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17608  shlibpath_var=LD_LIBRARY_PATH
17609  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17610  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17611  ;;
17612
17613rdos*)
17614  dynamic_linker=no
17615  ;;
17616
17617solaris*)
17618  version_type=linux
17619  need_lib_prefix=no
17620  need_version=no
17621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17622  soname_spec='${libname}${release}${shared_ext}$major'
17623  shlibpath_var=LD_LIBRARY_PATH
17624  shlibpath_overrides_runpath=yes
17625  hardcode_into_libs=yes
17626  # ldd complains unless libraries are executable
17627  postinstall_cmds='chmod +x $lib'
17628  ;;
17629
17630sunos4*)
17631  version_type=sunos
17632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17633  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17634  shlibpath_var=LD_LIBRARY_PATH
17635  shlibpath_overrides_runpath=yes
17636  if test "$with_gnu_ld" = yes; then
17637    need_lib_prefix=no
17638  fi
17639  need_version=yes
17640  ;;
17641
17642sysv4 | sysv4.3*)
17643  version_type=linux
17644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17645  soname_spec='${libname}${release}${shared_ext}$major'
17646  shlibpath_var=LD_LIBRARY_PATH
17647  case $host_vendor in
17648    sni)
17649      shlibpath_overrides_runpath=no
17650      need_lib_prefix=no
17651      export_dynamic_flag_spec='${wl}-Blargedynsym'
17652      runpath_var=LD_RUN_PATH
17653      ;;
17654    siemens)
17655      need_lib_prefix=no
17656      ;;
17657    motorola)
17658      need_lib_prefix=no
17659      need_version=no
17660      shlibpath_overrides_runpath=no
17661      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17662      ;;
17663  esac
17664  ;;
17665
17666sysv4*MP*)
17667  if test -d /usr/nec ;then
17668    version_type=linux
17669    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17670    soname_spec='$libname${shared_ext}.$major'
17671    shlibpath_var=LD_LIBRARY_PATH
17672  fi
17673  ;;
17674
17675sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17676  version_type=freebsd-elf
17677  need_lib_prefix=no
17678  need_version=no
17679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17680  soname_spec='${libname}${release}${shared_ext}$major'
17681  shlibpath_var=LD_LIBRARY_PATH
17682  hardcode_into_libs=yes
17683  if test "$with_gnu_ld" = yes; then
17684    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17685    shlibpath_overrides_runpath=no
17686  else
17687    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17688    shlibpath_overrides_runpath=yes
17689    case $host_os in
17690      sco3.2v5*)
17691        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17692	;;
17693    esac
17694  fi
17695  sys_lib_dlsearch_path_spec='/usr/lib'
17696  ;;
17697
17698uts4*)
17699  version_type=linux
17700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17701  soname_spec='${libname}${release}${shared_ext}$major'
17702  shlibpath_var=LD_LIBRARY_PATH
17703  ;;
17704
17705*)
17706  dynamic_linker=no
17707  ;;
17708esac
17709{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17710echo "${ECHO_T}$dynamic_linker" >&6; }
17711test "$dynamic_linker" = no && can_build_shared=no
17712
17713variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17714if test "$GCC" = yes; then
17715  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17716fi
17717
17718{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17719echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17720hardcode_action_GCJ=
17721if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17722   test -n "$runpath_var_GCJ" || \
17723   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17724
17725  # We can hardcode non-existant directories.
17726  if test "$hardcode_direct_GCJ" != no &&
17727     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17728     # have to relink, otherwise we might link with an installed library
17729     # when we should be linking with a yet-to-be-installed one
17730     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17731     test "$hardcode_minus_L_GCJ" != no; then
17732    # Linking always hardcodes the temporary library directory.
17733    hardcode_action_GCJ=relink
17734  else
17735    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17736    hardcode_action_GCJ=immediate
17737  fi
17738else
17739  # We cannot hardcode anything, or else we can only hardcode existing
17740  # directories.
17741  hardcode_action_GCJ=unsupported
17742fi
17743{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17744echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17745
17746if test "$hardcode_action_GCJ" = relink; then
17747  # Fast installation is not supported
17748  enable_fast_install=no
17749elif test "$shlibpath_overrides_runpath" = yes ||
17750     test "$enable_shared" = no; then
17751  # Fast installation is not necessary
17752  enable_fast_install=needless
17753fi
17754
17755
17756# The else clause should only fire when bootstrapping the
17757# libtool distribution, otherwise you forgot to ship ltmain.sh
17758# with your package, and you will get complaints that there are
17759# no rules to generate ltmain.sh.
17760if test -f "$ltmain"; then
17761  # See if we are running on zsh, and set the options which allow our commands through
17762  # without removal of \ escapes.
17763  if test -n "${ZSH_VERSION+set}" ; then
17764    setopt NO_GLOB_SUBST
17765  fi
17766  # Now quote all the things that may contain metacharacters while being
17767  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17768  # variables and quote the copies for generation of the libtool script.
17769  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17770    SED SHELL STRIP \
17771    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17772    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17773    deplibs_check_method reload_flag reload_cmds need_locks \
17774    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17775    lt_cv_sys_global_symbol_to_c_name_address \
17776    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17777    old_postinstall_cmds old_postuninstall_cmds \
17778    compiler_GCJ \
17779    CC_GCJ \
17780    LD_GCJ \
17781    lt_prog_compiler_wl_GCJ \
17782    lt_prog_compiler_pic_GCJ \
17783    lt_prog_compiler_static_GCJ \
17784    lt_prog_compiler_no_builtin_flag_GCJ \
17785    export_dynamic_flag_spec_GCJ \
17786    thread_safe_flag_spec_GCJ \
17787    whole_archive_flag_spec_GCJ \
17788    enable_shared_with_static_runtimes_GCJ \
17789    old_archive_cmds_GCJ \
17790    old_archive_from_new_cmds_GCJ \
17791    predep_objects_GCJ \
17792    postdep_objects_GCJ \
17793    predeps_GCJ \
17794    postdeps_GCJ \
17795    compiler_lib_search_path_GCJ \
17796    archive_cmds_GCJ \
17797    archive_expsym_cmds_GCJ \
17798    postinstall_cmds_GCJ \
17799    postuninstall_cmds_GCJ \
17800    old_archive_from_expsyms_cmds_GCJ \
17801    allow_undefined_flag_GCJ \
17802    no_undefined_flag_GCJ \
17803    export_symbols_cmds_GCJ \
17804    hardcode_libdir_flag_spec_GCJ \
17805    hardcode_libdir_flag_spec_ld_GCJ \
17806    hardcode_libdir_separator_GCJ \
17807    hardcode_automatic_GCJ \
17808    module_cmds_GCJ \
17809    module_expsym_cmds_GCJ \
17810    lt_cv_prog_compiler_c_o_GCJ \
17811    fix_srcfile_path_GCJ \
17812    exclude_expsyms_GCJ \
17813    include_expsyms_GCJ; do
17814
17815    case $var in
17816    old_archive_cmds_GCJ | \
17817    old_archive_from_new_cmds_GCJ | \
17818    archive_cmds_GCJ | \
17819    archive_expsym_cmds_GCJ | \
17820    module_cmds_GCJ | \
17821    module_expsym_cmds_GCJ | \
17822    old_archive_from_expsyms_cmds_GCJ | \
17823    export_symbols_cmds_GCJ | \
17824    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17825    postinstall_cmds | postuninstall_cmds | \
17826    old_postinstall_cmds | old_postuninstall_cmds | \
17827    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17828      # Double-quote double-evaled strings.
17829      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17830      ;;
17831    *)
17832      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17833      ;;
17834    esac
17835  done
17836
17837  case $lt_echo in
17838  *'\$0 --fallback-echo"')
17839    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17840    ;;
17841  esac
17842
17843cfgfile="$ofile"
17844
17845  cat <<__EOF__ >> "$cfgfile"
17846# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17847
17848# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17849
17850# Shell to use when invoking shell scripts.
17851SHELL=$lt_SHELL
17852
17853# Whether or not to build shared libraries.
17854build_libtool_libs=$enable_shared
17855
17856# Whether or not to build static libraries.
17857build_old_libs=$enable_static
17858
17859# Whether or not to add -lc for building shared libraries.
17860build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17861
17862# Whether or not to disallow shared libs when runtime libs are static
17863allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17864
17865# Whether or not to optimize for fast installation.
17866fast_install=$enable_fast_install
17867
17868# The host system.
17869host_alias=$host_alias
17870host=$host
17871host_os=$host_os
17872
17873# The build system.
17874build_alias=$build_alias
17875build=$build
17876build_os=$build_os
17877
17878# An echo program that does not interpret backslashes.
17879echo=$lt_echo
17880
17881# The archiver.
17882AR=$lt_AR
17883AR_FLAGS=$lt_AR_FLAGS
17884
17885# A C compiler.
17886LTCC=$lt_LTCC
17887
17888# LTCC compiler flags.
17889LTCFLAGS=$lt_LTCFLAGS
17890
17891# A language-specific compiler.
17892CC=$lt_compiler_GCJ
17893
17894# Is the compiler the GNU C compiler?
17895with_gcc=$GCC_GCJ
17896
17897# An ERE matcher.
17898EGREP=$lt_EGREP
17899
17900# The linker used to build libraries.
17901LD=$lt_LD_GCJ
17902
17903# Whether we need hard or soft links.
17904LN_S=$lt_LN_S
17905
17906# A BSD-compatible nm program.
17907NM=$lt_NM
17908
17909# A symbol stripping program
17910STRIP=$lt_STRIP
17911
17912# Used to examine libraries when file_magic_cmd begins "file"
17913MAGIC_CMD=$MAGIC_CMD
17914
17915# Used on cygwin: DLL creation program.
17916DLLTOOL="$DLLTOOL"
17917
17918# Used on cygwin: object dumper.
17919OBJDUMP="$OBJDUMP"
17920
17921# Used on cygwin: assembler.
17922AS="$AS"
17923
17924# The name of the directory that contains temporary libtool files.
17925objdir=$objdir
17926
17927# How to create reloadable object files.
17928reload_flag=$lt_reload_flag
17929reload_cmds=$lt_reload_cmds
17930
17931# How to pass a linker flag through the compiler.
17932wl=$lt_lt_prog_compiler_wl_GCJ
17933
17934# Object file suffix (normally "o").
17935objext="$ac_objext"
17936
17937# Old archive suffix (normally "a").
17938libext="$libext"
17939
17940# Shared library suffix (normally ".so").
17941shrext_cmds='$shrext_cmds'
17942
17943# Executable file suffix (normally "").
17944exeext="$exeext"
17945
17946# Additional compiler flags for building library objects.
17947pic_flag=$lt_lt_prog_compiler_pic_GCJ
17948pic_mode=$pic_mode
17949
17950# What is the maximum length of a command?
17951max_cmd_len=$lt_cv_sys_max_cmd_len
17952
17953# Does compiler simultaneously support -c and -o options?
17954compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17955
17956# Must we lock files when doing compilation?
17957need_locks=$lt_need_locks
17958
17959# Do we need the lib prefix for modules?
17960need_lib_prefix=$need_lib_prefix
17961
17962# Do we need a version for libraries?
17963need_version=$need_version
17964
17965# Whether dlopen is supported.
17966dlopen_support=$enable_dlopen
17967
17968# Whether dlopen of programs is supported.
17969dlopen_self=$enable_dlopen_self
17970
17971# Whether dlopen of statically linked programs is supported.
17972dlopen_self_static=$enable_dlopen_self_static
17973
17974# Compiler flag to prevent dynamic linking.
17975link_static_flag=$lt_lt_prog_compiler_static_GCJ
17976
17977# Compiler flag to turn off builtin functions.
17978no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17979
17980# Compiler flag to allow reflexive dlopens.
17981export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17982
17983# Compiler flag to generate shared objects directly from archives.
17984whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17985
17986# Compiler flag to generate thread-safe objects.
17987thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17988
17989# Library versioning type.
17990version_type=$version_type
17991
17992# Format of library name prefix.
17993libname_spec=$lt_libname_spec
17994
17995# List of archive names.  First name is the real one, the rest are links.
17996# The last name is the one that the linker finds with -lNAME.
17997library_names_spec=$lt_library_names_spec
17998
17999# The coded name of the library, if different from the real name.
18000soname_spec=$lt_soname_spec
18001
18002# Commands used to build and install an old-style archive.
18003RANLIB=$lt_RANLIB
18004old_archive_cmds=$lt_old_archive_cmds_GCJ
18005old_postinstall_cmds=$lt_old_postinstall_cmds
18006old_postuninstall_cmds=$lt_old_postuninstall_cmds
18007
18008# Create an old-style archive from a shared archive.
18009old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18010
18011# Create a temporary old-style archive to link instead of a shared archive.
18012old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18013
18014# Commands used to build and install a shared archive.
18015archive_cmds=$lt_archive_cmds_GCJ
18016archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18017postinstall_cmds=$lt_postinstall_cmds
18018postuninstall_cmds=$lt_postuninstall_cmds
18019
18020# Commands used to build a loadable module (assumed same as above if empty)
18021module_cmds=$lt_module_cmds_GCJ
18022module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18023
18024# Commands to strip libraries.
18025old_striplib=$lt_old_striplib
18026striplib=$lt_striplib
18027
18028# Dependencies to place before the objects being linked to create a
18029# shared library.
18030predep_objects=$lt_predep_objects_GCJ
18031
18032# Dependencies to place after the objects being linked to create a
18033# shared library.
18034postdep_objects=$lt_postdep_objects_GCJ
18035
18036# Dependencies to place before the objects being linked to create a
18037# shared library.
18038predeps=$lt_predeps_GCJ
18039
18040# Dependencies to place after the objects being linked to create a
18041# shared library.
18042postdeps=$lt_postdeps_GCJ
18043
18044# The library search path used internally by the compiler when linking
18045# a shared library.
18046compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18047
18048# Method to check whether dependent libraries are shared objects.
18049deplibs_check_method=$lt_deplibs_check_method
18050
18051# Command to use when deplibs_check_method == file_magic.
18052file_magic_cmd=$lt_file_magic_cmd
18053
18054# Flag that allows shared libraries with undefined symbols to be built.
18055allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18056
18057# Flag that forces no undefined symbols.
18058no_undefined_flag=$lt_no_undefined_flag_GCJ
18059
18060# Commands used to finish a libtool library installation in a directory.
18061finish_cmds=$lt_finish_cmds
18062
18063# Same as above, but a single script fragment to be evaled but not shown.
18064finish_eval=$lt_finish_eval
18065
18066# Take the output of nm and produce a listing of raw symbols and C names.
18067global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18068
18069# Transform the output of nm in a proper C declaration
18070global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18071
18072# Transform the output of nm in a C name address pair
18073global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18074
18075# This is the shared library runtime path variable.
18076runpath_var=$runpath_var
18077
18078# This is the shared library path variable.
18079shlibpath_var=$shlibpath_var
18080
18081# Is shlibpath searched before the hard-coded library search path?
18082shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18083
18084# How to hardcode a shared library path into an executable.
18085hardcode_action=$hardcode_action_GCJ
18086
18087# Whether we should hardcode library paths into libraries.
18088hardcode_into_libs=$hardcode_into_libs
18089
18090# Flag to hardcode \$libdir into a binary during linking.
18091# This must work even if \$libdir does not exist.
18092hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18093
18094# If ld is used when linking, flag to hardcode \$libdir into
18095# a binary during linking. This must work even if \$libdir does
18096# not exist.
18097hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18098
18099# Whether we need a single -rpath flag with a separated argument.
18100hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18101
18102# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18103# resulting binary.
18104hardcode_direct=$hardcode_direct_GCJ
18105
18106# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18107# resulting binary.
18108hardcode_minus_L=$hardcode_minus_L_GCJ
18109
18110# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18111# the resulting binary.
18112hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18113
18114# Set to yes if building a shared library automatically hardcodes DIR into the library
18115# and all subsequent libraries and executables linked against it.
18116hardcode_automatic=$hardcode_automatic_GCJ
18117
18118# Variables whose values should be saved in libtool wrapper scripts and
18119# restored at relink time.
18120variables_saved_for_relink="$variables_saved_for_relink"
18121
18122# Whether libtool must link a program against all its dependency libraries.
18123link_all_deplibs=$link_all_deplibs_GCJ
18124
18125# Compile-time system search path for libraries
18126sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18127
18128# Run-time system search path for libraries
18129sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18130
18131# Fix the shell variable \$srcfile for the compiler.
18132fix_srcfile_path=$lt_fix_srcfile_path
18133
18134# Set to yes if exported symbols are required.
18135always_export_symbols=$always_export_symbols_GCJ
18136
18137# The commands to list exported symbols.
18138export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18139
18140# The commands to extract the exported symbol list from a shared archive.
18141extract_expsyms_cmds=$lt_extract_expsyms_cmds
18142
18143# Symbols that should not be listed in the preloaded symbols.
18144exclude_expsyms=$lt_exclude_expsyms_GCJ
18145
18146# Symbols that must always be exported.
18147include_expsyms=$lt_include_expsyms_GCJ
18148
18149# ### END LIBTOOL TAG CONFIG: $tagname
18150
18151__EOF__
18152
18153
18154else
18155  # If there is no Makefile yet, we rely on a make rule to execute
18156  # `config.status --recheck' to rerun these tests and create the
18157  # libtool script then.
18158  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18159  if test -f "$ltmain_in"; then
18160    test -f Makefile && make "$ltmain"
18161  fi
18162fi
18163
18164
18165ac_ext=c
18166ac_cpp='$CPP $CPPFLAGS'
18167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18169ac_compiler_gnu=$ac_cv_c_compiler_gnu
18170
18171CC="$lt_save_CC"
18172
18173	else
18174	  tagname=""
18175	fi
18176	;;
18177
18178      RC)
18179
18180
18181# Source file extension for RC test sources.
18182ac_ext=rc
18183
18184# Object file extension for compiled RC test sources.
18185objext=o
18186objext_RC=$objext
18187
18188# Code to be used in simple compile tests
18189lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18190
18191# Code to be used in simple link tests
18192lt_simple_link_test_code="$lt_simple_compile_test_code"
18193
18194# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18195
18196# If no C compiler was specified, use CC.
18197LTCC=${LTCC-"$CC"}
18198
18199# If no C compiler flags were specified, use CFLAGS.
18200LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18201
18202# Allow CC to be a program name with arguments.
18203compiler=$CC
18204
18205
18206# save warnings/boilerplate of simple test code
18207ac_outfile=conftest.$ac_objext
18208echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18209eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18210_lt_compiler_boilerplate=`cat conftest.err`
18211$rm conftest*
18212
18213ac_outfile=conftest.$ac_objext
18214echo "$lt_simple_link_test_code" >conftest.$ac_ext
18215eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18216_lt_linker_boilerplate=`cat conftest.err`
18217$rm conftest*
18218
18219
18220# Allow CC to be a program name with arguments.
18221lt_save_CC="$CC"
18222CC=${RC-"windres"}
18223compiler=$CC
18224compiler_RC=$CC
18225for cc_temp in $compiler""; do
18226  case $cc_temp in
18227    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18228    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18229    \-*) ;;
18230    *) break;;
18231  esac
18232done
18233cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18234
18235lt_cv_prog_compiler_c_o_RC=yes
18236
18237# The else clause should only fire when bootstrapping the
18238# libtool distribution, otherwise you forgot to ship ltmain.sh
18239# with your package, and you will get complaints that there are
18240# no rules to generate ltmain.sh.
18241if test -f "$ltmain"; then
18242  # See if we are running on zsh, and set the options which allow our commands through
18243  # without removal of \ escapes.
18244  if test -n "${ZSH_VERSION+set}" ; then
18245    setopt NO_GLOB_SUBST
18246  fi
18247  # Now quote all the things that may contain metacharacters while being
18248  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18249  # variables and quote the copies for generation of the libtool script.
18250  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18251    SED SHELL STRIP \
18252    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18253    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18254    deplibs_check_method reload_flag reload_cmds need_locks \
18255    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18256    lt_cv_sys_global_symbol_to_c_name_address \
18257    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18258    old_postinstall_cmds old_postuninstall_cmds \
18259    compiler_RC \
18260    CC_RC \
18261    LD_RC \
18262    lt_prog_compiler_wl_RC \
18263    lt_prog_compiler_pic_RC \
18264    lt_prog_compiler_static_RC \
18265    lt_prog_compiler_no_builtin_flag_RC \
18266    export_dynamic_flag_spec_RC \
18267    thread_safe_flag_spec_RC \
18268    whole_archive_flag_spec_RC \
18269    enable_shared_with_static_runtimes_RC \
18270    old_archive_cmds_RC \
18271    old_archive_from_new_cmds_RC \
18272    predep_objects_RC \
18273    postdep_objects_RC \
18274    predeps_RC \
18275    postdeps_RC \
18276    compiler_lib_search_path_RC \
18277    archive_cmds_RC \
18278    archive_expsym_cmds_RC \
18279    postinstall_cmds_RC \
18280    postuninstall_cmds_RC \
18281    old_archive_from_expsyms_cmds_RC \
18282    allow_undefined_flag_RC \
18283    no_undefined_flag_RC \
18284    export_symbols_cmds_RC \
18285    hardcode_libdir_flag_spec_RC \
18286    hardcode_libdir_flag_spec_ld_RC \
18287    hardcode_libdir_separator_RC \
18288    hardcode_automatic_RC \
18289    module_cmds_RC \
18290    module_expsym_cmds_RC \
18291    lt_cv_prog_compiler_c_o_RC \
18292    fix_srcfile_path_RC \
18293    exclude_expsyms_RC \
18294    include_expsyms_RC; do
18295
18296    case $var in
18297    old_archive_cmds_RC | \
18298    old_archive_from_new_cmds_RC | \
18299    archive_cmds_RC | \
18300    archive_expsym_cmds_RC | \
18301    module_cmds_RC | \
18302    module_expsym_cmds_RC | \
18303    old_archive_from_expsyms_cmds_RC | \
18304    export_symbols_cmds_RC | \
18305    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18306    postinstall_cmds | postuninstall_cmds | \
18307    old_postinstall_cmds | old_postuninstall_cmds | \
18308    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18309      # Double-quote double-evaled strings.
18310      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18311      ;;
18312    *)
18313      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18314      ;;
18315    esac
18316  done
18317
18318  case $lt_echo in
18319  *'\$0 --fallback-echo"')
18320    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18321    ;;
18322  esac
18323
18324cfgfile="$ofile"
18325
18326  cat <<__EOF__ >> "$cfgfile"
18327# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18328
18329# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18330
18331# Shell to use when invoking shell scripts.
18332SHELL=$lt_SHELL
18333
18334# Whether or not to build shared libraries.
18335build_libtool_libs=$enable_shared
18336
18337# Whether or not to build static libraries.
18338build_old_libs=$enable_static
18339
18340# Whether or not to add -lc for building shared libraries.
18341build_libtool_need_lc=$archive_cmds_need_lc_RC
18342
18343# Whether or not to disallow shared libs when runtime libs are static
18344allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18345
18346# Whether or not to optimize for fast installation.
18347fast_install=$enable_fast_install
18348
18349# The host system.
18350host_alias=$host_alias
18351host=$host
18352host_os=$host_os
18353
18354# The build system.
18355build_alias=$build_alias
18356build=$build
18357build_os=$build_os
18358
18359# An echo program that does not interpret backslashes.
18360echo=$lt_echo
18361
18362# The archiver.
18363AR=$lt_AR
18364AR_FLAGS=$lt_AR_FLAGS
18365
18366# A C compiler.
18367LTCC=$lt_LTCC
18368
18369# LTCC compiler flags.
18370LTCFLAGS=$lt_LTCFLAGS
18371
18372# A language-specific compiler.
18373CC=$lt_compiler_RC
18374
18375# Is the compiler the GNU C compiler?
18376with_gcc=$GCC_RC
18377
18378# An ERE matcher.
18379EGREP=$lt_EGREP
18380
18381# The linker used to build libraries.
18382LD=$lt_LD_RC
18383
18384# Whether we need hard or soft links.
18385LN_S=$lt_LN_S
18386
18387# A BSD-compatible nm program.
18388NM=$lt_NM
18389
18390# A symbol stripping program
18391STRIP=$lt_STRIP
18392
18393# Used to examine libraries when file_magic_cmd begins "file"
18394MAGIC_CMD=$MAGIC_CMD
18395
18396# Used on cygwin: DLL creation program.
18397DLLTOOL="$DLLTOOL"
18398
18399# Used on cygwin: object dumper.
18400OBJDUMP="$OBJDUMP"
18401
18402# Used on cygwin: assembler.
18403AS="$AS"
18404
18405# The name of the directory that contains temporary libtool files.
18406objdir=$objdir
18407
18408# How to create reloadable object files.
18409reload_flag=$lt_reload_flag
18410reload_cmds=$lt_reload_cmds
18411
18412# How to pass a linker flag through the compiler.
18413wl=$lt_lt_prog_compiler_wl_RC
18414
18415# Object file suffix (normally "o").
18416objext="$ac_objext"
18417
18418# Old archive suffix (normally "a").
18419libext="$libext"
18420
18421# Shared library suffix (normally ".so").
18422shrext_cmds='$shrext_cmds'
18423
18424# Executable file suffix (normally "").
18425exeext="$exeext"
18426
18427# Additional compiler flags for building library objects.
18428pic_flag=$lt_lt_prog_compiler_pic_RC
18429pic_mode=$pic_mode
18430
18431# What is the maximum length of a command?
18432max_cmd_len=$lt_cv_sys_max_cmd_len
18433
18434# Does compiler simultaneously support -c and -o options?
18435compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18436
18437# Must we lock files when doing compilation?
18438need_locks=$lt_need_locks
18439
18440# Do we need the lib prefix for modules?
18441need_lib_prefix=$need_lib_prefix
18442
18443# Do we need a version for libraries?
18444need_version=$need_version
18445
18446# Whether dlopen is supported.
18447dlopen_support=$enable_dlopen
18448
18449# Whether dlopen of programs is supported.
18450dlopen_self=$enable_dlopen_self
18451
18452# Whether dlopen of statically linked programs is supported.
18453dlopen_self_static=$enable_dlopen_self_static
18454
18455# Compiler flag to prevent dynamic linking.
18456link_static_flag=$lt_lt_prog_compiler_static_RC
18457
18458# Compiler flag to turn off builtin functions.
18459no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18460
18461# Compiler flag to allow reflexive dlopens.
18462export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18463
18464# Compiler flag to generate shared objects directly from archives.
18465whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18466
18467# Compiler flag to generate thread-safe objects.
18468thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18469
18470# Library versioning type.
18471version_type=$version_type
18472
18473# Format of library name prefix.
18474libname_spec=$lt_libname_spec
18475
18476# List of archive names.  First name is the real one, the rest are links.
18477# The last name is the one that the linker finds with -lNAME.
18478library_names_spec=$lt_library_names_spec
18479
18480# The coded name of the library, if different from the real name.
18481soname_spec=$lt_soname_spec
18482
18483# Commands used to build and install an old-style archive.
18484RANLIB=$lt_RANLIB
18485old_archive_cmds=$lt_old_archive_cmds_RC
18486old_postinstall_cmds=$lt_old_postinstall_cmds
18487old_postuninstall_cmds=$lt_old_postuninstall_cmds
18488
18489# Create an old-style archive from a shared archive.
18490old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18491
18492# Create a temporary old-style archive to link instead of a shared archive.
18493old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18494
18495# Commands used to build and install a shared archive.
18496archive_cmds=$lt_archive_cmds_RC
18497archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18498postinstall_cmds=$lt_postinstall_cmds
18499postuninstall_cmds=$lt_postuninstall_cmds
18500
18501# Commands used to build a loadable module (assumed same as above if empty)
18502module_cmds=$lt_module_cmds_RC
18503module_expsym_cmds=$lt_module_expsym_cmds_RC
18504
18505# Commands to strip libraries.
18506old_striplib=$lt_old_striplib
18507striplib=$lt_striplib
18508
18509# Dependencies to place before the objects being linked to create a
18510# shared library.
18511predep_objects=$lt_predep_objects_RC
18512
18513# Dependencies to place after the objects being linked to create a
18514# shared library.
18515postdep_objects=$lt_postdep_objects_RC
18516
18517# Dependencies to place before the objects being linked to create a
18518# shared library.
18519predeps=$lt_predeps_RC
18520
18521# Dependencies to place after the objects being linked to create a
18522# shared library.
18523postdeps=$lt_postdeps_RC
18524
18525# The library search path used internally by the compiler when linking
18526# a shared library.
18527compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18528
18529# Method to check whether dependent libraries are shared objects.
18530deplibs_check_method=$lt_deplibs_check_method
18531
18532# Command to use when deplibs_check_method == file_magic.
18533file_magic_cmd=$lt_file_magic_cmd
18534
18535# Flag that allows shared libraries with undefined symbols to be built.
18536allow_undefined_flag=$lt_allow_undefined_flag_RC
18537
18538# Flag that forces no undefined symbols.
18539no_undefined_flag=$lt_no_undefined_flag_RC
18540
18541# Commands used to finish a libtool library installation in a directory.
18542finish_cmds=$lt_finish_cmds
18543
18544# Same as above, but a single script fragment to be evaled but not shown.
18545finish_eval=$lt_finish_eval
18546
18547# Take the output of nm and produce a listing of raw symbols and C names.
18548global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18549
18550# Transform the output of nm in a proper C declaration
18551global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18552
18553# Transform the output of nm in a C name address pair
18554global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18555
18556# This is the shared library runtime path variable.
18557runpath_var=$runpath_var
18558
18559# This is the shared library path variable.
18560shlibpath_var=$shlibpath_var
18561
18562# Is shlibpath searched before the hard-coded library search path?
18563shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18564
18565# How to hardcode a shared library path into an executable.
18566hardcode_action=$hardcode_action_RC
18567
18568# Whether we should hardcode library paths into libraries.
18569hardcode_into_libs=$hardcode_into_libs
18570
18571# Flag to hardcode \$libdir into a binary during linking.
18572# This must work even if \$libdir does not exist.
18573hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18574
18575# If ld is used when linking, flag to hardcode \$libdir into
18576# a binary during linking. This must work even if \$libdir does
18577# not exist.
18578hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18579
18580# Whether we need a single -rpath flag with a separated argument.
18581hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18582
18583# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18584# resulting binary.
18585hardcode_direct=$hardcode_direct_RC
18586
18587# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18588# resulting binary.
18589hardcode_minus_L=$hardcode_minus_L_RC
18590
18591# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18592# the resulting binary.
18593hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18594
18595# Set to yes if building a shared library automatically hardcodes DIR into the library
18596# and all subsequent libraries and executables linked against it.
18597hardcode_automatic=$hardcode_automatic_RC
18598
18599# Variables whose values should be saved in libtool wrapper scripts and
18600# restored at relink time.
18601variables_saved_for_relink="$variables_saved_for_relink"
18602
18603# Whether libtool must link a program against all its dependency libraries.
18604link_all_deplibs=$link_all_deplibs_RC
18605
18606# Compile-time system search path for libraries
18607sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18608
18609# Run-time system search path for libraries
18610sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18611
18612# Fix the shell variable \$srcfile for the compiler.
18613fix_srcfile_path=$lt_fix_srcfile_path
18614
18615# Set to yes if exported symbols are required.
18616always_export_symbols=$always_export_symbols_RC
18617
18618# The commands to list exported symbols.
18619export_symbols_cmds=$lt_export_symbols_cmds_RC
18620
18621# The commands to extract the exported symbol list from a shared archive.
18622extract_expsyms_cmds=$lt_extract_expsyms_cmds
18623
18624# Symbols that should not be listed in the preloaded symbols.
18625exclude_expsyms=$lt_exclude_expsyms_RC
18626
18627# Symbols that must always be exported.
18628include_expsyms=$lt_include_expsyms_RC
18629
18630# ### END LIBTOOL TAG CONFIG: $tagname
18631
18632__EOF__
18633
18634
18635else
18636  # If there is no Makefile yet, we rely on a make rule to execute
18637  # `config.status --recheck' to rerun these tests and create the
18638  # libtool script then.
18639  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18640  if test -f "$ltmain_in"; then
18641    test -f Makefile && make "$ltmain"
18642  fi
18643fi
18644
18645
18646ac_ext=c
18647ac_cpp='$CPP $CPPFLAGS'
18648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18650ac_compiler_gnu=$ac_cv_c_compiler_gnu
18651
18652CC="$lt_save_CC"
18653
18654	;;
18655
18656      *)
18657	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18658echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18659   { (exit 1); exit 1; }; }
18660	;;
18661      esac
18662
18663      # Append the new tag name to the list of available tags.
18664      if test -n "$tagname" ; then
18665      available_tags="$available_tags $tagname"
18666    fi
18667    fi
18668  done
18669  IFS="$lt_save_ifs"
18670
18671  # Now substitute the updated list of available tags.
18672  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18673    mv "${ofile}T" "$ofile"
18674    chmod +x "$ofile"
18675  else
18676    rm -f "${ofile}T"
18677    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18678echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18679   { (exit 1); exit 1; }; }
18680  fi
18681fi
18682
18683
18684
18685# This can be used to rebuild libtool when needed
18686LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18687
18688# Always use our own libtool.
18689LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18690
18691# Prevent multiple expansion
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713am__api_version='1.10'
18714
18715{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
18716echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
18717# Just in case
18718sleep 1
18719echo timestamp > conftest.file
18720# Do `set' in a subshell so we don't clobber the current shell's
18721# arguments.  Must try -L first in case configure is actually a
18722# symlink; some systems play weird games with the mod time of symlinks
18723# (eg FreeBSD returns the mod time of the symlink's containing
18724# directory).
18725if (
18726   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
18727   if test "$*" = "X"; then
18728      # -L didn't work.
18729      set X `ls -t $srcdir/configure conftest.file`
18730   fi
18731   rm -f conftest.file
18732   if test "$*" != "X $srcdir/configure conftest.file" \
18733      && test "$*" != "X conftest.file $srcdir/configure"; then
18734
18735      # If neither matched, then we have a broken ls.  This can happen
18736      # if, for instance, CONFIG_SHELL is bash and it inherits a
18737      # broken ls alias from the environment.  This has actually
18738      # happened.  Such a system could not be considered "sane".
18739      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
18740alias in your environment" >&5
18741echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
18742alias in your environment" >&2;}
18743   { (exit 1); exit 1; }; }
18744   fi
18745
18746   test "$2" = conftest.file
18747   )
18748then
18749   # Ok.
18750   :
18751else
18752   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
18753Check your system clock" >&5
18754echo "$as_me: error: newly created file is older than distributed files!
18755Check your system clock" >&2;}
18756   { (exit 1); exit 1; }; }
18757fi
18758{ echo "$as_me:$LINENO: result: yes" >&5
18759echo "${ECHO_T}yes" >&6; }
18760test "$program_prefix" != NONE &&
18761  program_transform_name="s&^&$program_prefix&;$program_transform_name"
18762# Use a double $ so make ignores it.
18763test "$program_suffix" != NONE &&
18764  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
18765# Double any \ or $.  echo might interpret backslashes.
18766# By default was `s,x,x', remove it if useless.
18767cat <<\_ACEOF >conftest.sed
18768s/[\\$]/&&/g;s/;s,x,x,$//
18769_ACEOF
18770program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
18771rm -f conftest.sed
18772
18773# expand $ac_aux_dir to an absolute path
18774am_aux_dir=`cd $ac_aux_dir && pwd`
18775
18776test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
18777# Use eval to expand $SHELL
18778if eval "$MISSING --run true"; then
18779  am_missing_run="$MISSING --run "
18780else
18781  am_missing_run=
18782  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
18783echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18784fi
18785
18786{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18787echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
18788if test -z "$MKDIR_P"; then
18789  if test "${ac_cv_path_mkdir+set}" = set; then
18790  echo $ECHO_N "(cached) $ECHO_C" >&6
18791else
18792  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18793for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18794do
18795  IFS=$as_save_IFS
18796  test -z "$as_dir" && as_dir=.
18797  for ac_prog in mkdir gmkdir; do
18798	 for ac_exec_ext in '' $ac_executable_extensions; do
18799	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18800	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18801	     'mkdir (GNU coreutils) '* | \
18802	     'mkdir (coreutils) '* | \
18803	     'mkdir (fileutils) '4.1*)
18804	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18805	       break 3;;
18806	   esac
18807	 done
18808       done
18809done
18810IFS=$as_save_IFS
18811
18812fi
18813
18814  if test "${ac_cv_path_mkdir+set}" = set; then
18815    MKDIR_P="$ac_cv_path_mkdir -p"
18816  else
18817    # As a last resort, use the slow shell script.  Don't cache a
18818    # value for MKDIR_P within a source directory, because that will
18819    # break other packages using the cache if that directory is
18820    # removed, or if the value is a relative name.
18821    test -d ./--version && rmdir ./--version
18822    MKDIR_P="$ac_install_sh -d"
18823  fi
18824fi
18825{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18826echo "${ECHO_T}$MKDIR_P" >&6; }
18827
18828mkdir_p="$MKDIR_P"
18829case $mkdir_p in
18830  [\\/$]* | ?:[\\/]*) ;;
18831  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
18832esac
18833
18834for ac_prog in gawk mawk nawk awk
18835do
18836  # Extract the first word of "$ac_prog", so it can be a program name with args.
18837set dummy $ac_prog; ac_word=$2
18838{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18840if test "${ac_cv_prog_AWK+set}" = set; then
18841  echo $ECHO_N "(cached) $ECHO_C" >&6
18842else
18843  if test -n "$AWK"; then
18844  ac_cv_prog_AWK="$AWK" # Let the user override the test.
18845else
18846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18847for as_dir in $PATH
18848do
18849  IFS=$as_save_IFS
18850  test -z "$as_dir" && as_dir=.
18851  for ac_exec_ext in '' $ac_executable_extensions; do
18852  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18853    ac_cv_prog_AWK="$ac_prog"
18854    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18855    break 2
18856  fi
18857done
18858done
18859IFS=$as_save_IFS
18860
18861fi
18862fi
18863AWK=$ac_cv_prog_AWK
18864if test -n "$AWK"; then
18865  { echo "$as_me:$LINENO: result: $AWK" >&5
18866echo "${ECHO_T}$AWK" >&6; }
18867else
18868  { echo "$as_me:$LINENO: result: no" >&5
18869echo "${ECHO_T}no" >&6; }
18870fi
18871
18872
18873  test -n "$AWK" && break
18874done
18875
18876{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18877echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
18878set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18879if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
18880  echo $ECHO_N "(cached) $ECHO_C" >&6
18881else
18882  cat >conftest.make <<\_ACEOF
18883SHELL = /bin/sh
18884all:
18885	@echo '@@@%%%=$(MAKE)=@@@%%%'
18886_ACEOF
18887# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18888case `${MAKE-make} -f conftest.make 2>/dev/null` in
18889  *@@@%%%=?*=@@@%%%*)
18890    eval ac_cv_prog_make_${ac_make}_set=yes;;
18891  *)
18892    eval ac_cv_prog_make_${ac_make}_set=no;;
18893esac
18894rm -f conftest.make
18895fi
18896if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18897  { echo "$as_me:$LINENO: result: yes" >&5
18898echo "${ECHO_T}yes" >&6; }
18899  SET_MAKE=
18900else
18901  { echo "$as_me:$LINENO: result: no" >&5
18902echo "${ECHO_T}no" >&6; }
18903  SET_MAKE="MAKE=${MAKE-make}"
18904fi
18905
18906rm -rf .tst 2>/dev/null
18907mkdir .tst 2>/dev/null
18908if test -d .tst; then
18909  am__leading_dot=.
18910else
18911  am__leading_dot=_
18912fi
18913rmdir .tst 2>/dev/null
18914
18915DEPDIR="${am__leading_dot}deps"
18916
18917ac_config_commands="$ac_config_commands depfiles"
18918
18919
18920am_make=${MAKE-make}
18921cat > confinc << 'END'
18922am__doit:
18923	@echo done
18924.PHONY: am__doit
18925END
18926# If we don't find an include directive, just comment out the code.
18927{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
18928echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
18929am__include="#"
18930am__quote=
18931_am_result=none
18932# First try GNU make style include.
18933echo "include confinc" > confmf
18934# We grep out `Entering directory' and `Leaving directory'
18935# messages which can occur if `w' ends up in MAKEFLAGS.
18936# In particular we don't look at `^make:' because GNU make might
18937# be invoked under some other name (usually "gmake"), in which
18938# case it prints its new name instead of `make'.
18939if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
18940   am__include=include
18941   am__quote=
18942   _am_result=GNU
18943fi
18944# Now try BSD make style include.
18945if test "$am__include" = "#"; then
18946   echo '.include "confinc"' > confmf
18947   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
18948      am__include=.include
18949      am__quote="\""
18950      _am_result=BSD
18951   fi
18952fi
18953
18954
18955{ echo "$as_me:$LINENO: result: $_am_result" >&5
18956echo "${ECHO_T}$_am_result" >&6; }
18957rm -f confinc confmf
18958
18959# Check whether --enable-dependency-tracking was given.
18960if test "${enable_dependency_tracking+set}" = set; then
18961  enableval=$enable_dependency_tracking;
18962fi
18963
18964if test "x$enable_dependency_tracking" != xno; then
18965  am_depcomp="$ac_aux_dir/depcomp"
18966  AMDEPBACKSLASH='\'
18967fi
18968 if test "x$enable_dependency_tracking" != xno; then
18969  AMDEP_TRUE=
18970  AMDEP_FALSE='#'
18971else
18972  AMDEP_TRUE='#'
18973  AMDEP_FALSE=
18974fi
18975
18976
18977if test "`cd $srcdir && pwd`" != "`pwd`"; then
18978  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
18979  # is not polluted with repeated "-I."
18980  am__isrc=' -I$(srcdir)'
18981  # test to see if srcdir already configured
18982  if test -f $srcdir/config.status; then
18983    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
18984echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
18985   { (exit 1); exit 1; }; }
18986  fi
18987fi
18988
18989# test whether we have cygpath
18990if test -z "$CYGPATH_W"; then
18991  if (cygpath --version) >/dev/null 2>/dev/null; then
18992    CYGPATH_W='cygpath -w'
18993  else
18994    CYGPATH_W=echo
18995  fi
18996fi
18997
18998
18999# Define the identity of the package.
19000 PACKAGE=OpenBSM
19001 VERSION=1.0
19002
19003
19004cat >>confdefs.h <<_ACEOF
19005#define PACKAGE "$PACKAGE"
19006_ACEOF
19007
19008
19009cat >>confdefs.h <<_ACEOF
19010#define VERSION "$VERSION"
19011_ACEOF
19012
19013# Some tools Automake needs.
19014
19015ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19016
19017
19018AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19019
19020
19021AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19022
19023
19024AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19025
19026
19027MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19028
19029install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
19030
19031# Installed binaries are usually stripped using `strip' when the user
19032# run `make install-strip'.  However `strip' might not be the right
19033# tool to use in cross-compilation environments, therefore Automake
19034# will honor the `STRIP' environment variable to overrule this program.
19035if test "$cross_compiling" != no; then
19036  if test -n "$ac_tool_prefix"; then
19037  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19038set dummy ${ac_tool_prefix}strip; ac_word=$2
19039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19041if test "${ac_cv_prog_STRIP+set}" = set; then
19042  echo $ECHO_N "(cached) $ECHO_C" >&6
19043else
19044  if test -n "$STRIP"; then
19045  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19046else
19047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19048for as_dir in $PATH
19049do
19050  IFS=$as_save_IFS
19051  test -z "$as_dir" && as_dir=.
19052  for ac_exec_ext in '' $ac_executable_extensions; do
19053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19054    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19055    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19056    break 2
19057  fi
19058done
19059done
19060IFS=$as_save_IFS
19061
19062fi
19063fi
19064STRIP=$ac_cv_prog_STRIP
19065if test -n "$STRIP"; then
19066  { echo "$as_me:$LINENO: result: $STRIP" >&5
19067echo "${ECHO_T}$STRIP" >&6; }
19068else
19069  { echo "$as_me:$LINENO: result: no" >&5
19070echo "${ECHO_T}no" >&6; }
19071fi
19072
19073
19074fi
19075if test -z "$ac_cv_prog_STRIP"; then
19076  ac_ct_STRIP=$STRIP
19077  # Extract the first word of "strip", so it can be a program name with args.
19078set dummy strip; ac_word=$2
19079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19081if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19082  echo $ECHO_N "(cached) $ECHO_C" >&6
19083else
19084  if test -n "$ac_ct_STRIP"; then
19085  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19086else
19087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19088for as_dir in $PATH
19089do
19090  IFS=$as_save_IFS
19091  test -z "$as_dir" && as_dir=.
19092  for ac_exec_ext in '' $ac_executable_extensions; do
19093  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19094    ac_cv_prog_ac_ct_STRIP="strip"
19095    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19096    break 2
19097  fi
19098done
19099done
19100IFS=$as_save_IFS
19101
19102fi
19103fi
19104ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19105if test -n "$ac_ct_STRIP"; then
19106  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19107echo "${ECHO_T}$ac_ct_STRIP" >&6; }
19108else
19109  { echo "$as_me:$LINENO: result: no" >&5
19110echo "${ECHO_T}no" >&6; }
19111fi
19112
19113  if test "x$ac_ct_STRIP" = x; then
19114    STRIP=":"
19115  else
19116    case $cross_compiling:$ac_tool_warned in
19117yes:)
19118{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19119whose name does not start with the host triplet.  If you think this
19120configuration is useful to you, please write to autoconf@gnu.org." >&5
19121echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19122whose name does not start with the host triplet.  If you think this
19123configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19124ac_tool_warned=yes ;;
19125esac
19126    STRIP=$ac_ct_STRIP
19127  fi
19128else
19129  STRIP="$ac_cv_prog_STRIP"
19130fi
19131
19132fi
19133INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
19134
19135# We need awk for the "check" target.  The system "awk" is bad on
19136# some platforms.
19137# Always define AMTAR for backward compatibility.
19138
19139AMTAR=${AMTAR-"${am_missing_run}tar"}
19140
19141am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19142
19143
19144
19145
19146depcc="$CC"   am_compiler_list=
19147
19148{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19149echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19150if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19151  echo $ECHO_N "(cached) $ECHO_C" >&6
19152else
19153  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19154  # We make a subdir and do the tests there.  Otherwise we can end up
19155  # making bogus files that we don't know about and never remove.  For
19156  # instance it was reported that on HP-UX the gcc test will end up
19157  # making a dummy file named `D' -- because `-MD' means `put the output
19158  # in D'.
19159  mkdir conftest.dir
19160  # Copy depcomp to subdir because otherwise we won't find it if we're
19161  # using a relative directory.
19162  cp "$am_depcomp" conftest.dir
19163  cd conftest.dir
19164  # We will build objects and dependencies in a subdirectory because
19165  # it helps to detect inapplicable dependency modes.  For instance
19166  # both Tru64's cc and ICC support -MD to output dependencies as a
19167  # side effect of compilation, but ICC will put the dependencies in
19168  # the current directory while Tru64 will put them in the object
19169  # directory.
19170  mkdir sub
19171
19172  am_cv_CC_dependencies_compiler_type=none
19173  if test "$am_compiler_list" = ""; then
19174     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19175  fi
19176  for depmode in $am_compiler_list; do
19177    # Setup a source with many dependencies, because some compilers
19178    # like to wrap large dependency lists on column 80 (with \), and
19179    # we should not choose a depcomp mode which is confused by this.
19180    #
19181    # We need to recreate these files for each test, as the compiler may
19182    # overwrite some of them when testing with obscure command lines.
19183    # This happens at least with the AIX C compiler.
19184    : > sub/conftest.c
19185    for i in 1 2 3 4 5 6; do
19186      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19187      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19188      # Solaris 8's {/usr,}/bin/sh.
19189      touch sub/conftst$i.h
19190    done
19191    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19192
19193    case $depmode in
19194    nosideeffect)
19195      # after this tag, mechanisms are not by side-effect, so they'll
19196      # only be used when explicitly requested
19197      if test "x$enable_dependency_tracking" = xyes; then
19198	continue
19199      else
19200	break
19201      fi
19202      ;;
19203    none) break ;;
19204    esac
19205    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19206    # mode.  It turns out that the SunPro C++ compiler does not properly
19207    # handle `-M -o', and we need to detect this.
19208    if depmode=$depmode \
19209       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19210       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19211       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19212         >/dev/null 2>conftest.err &&
19213       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19214       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19215       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19216       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19217      # icc doesn't choke on unknown options, it will just issue warnings
19218      # or remarks (even with -Werror).  So we grep stderr for any message
19219      # that says an option was ignored or not supported.
19220      # When given -MP, icc 7.0 and 7.1 complain thusly:
19221      #   icc: Command line warning: ignoring option '-M'; no argument required
19222      # The diagnosis changed in icc 8.0:
19223      #   icc: Command line remark: option '-MP' not supported
19224      if (grep 'ignoring option' conftest.err ||
19225          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19226        am_cv_CC_dependencies_compiler_type=$depmode
19227        break
19228      fi
19229    fi
19230  done
19231
19232  cd ..
19233  rm -rf conftest.dir
19234else
19235  am_cv_CC_dependencies_compiler_type=none
19236fi
19237
19238fi
19239{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19240echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19241CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19242
19243 if
19244  test "x$enable_dependency_tracking" != xno \
19245  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19246  am__fastdepCC_TRUE=
19247  am__fastdepCC_FALSE='#'
19248else
19249  am__fastdepCC_TRUE='#'
19250  am__fastdepCC_FALSE=
19251fi
19252
19253
19254depcc="$CXX"  am_compiler_list=
19255
19256{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19257echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19258if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19259  echo $ECHO_N "(cached) $ECHO_C" >&6
19260else
19261  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19262  # We make a subdir and do the tests there.  Otherwise we can end up
19263  # making bogus files that we don't know about and never remove.  For
19264  # instance it was reported that on HP-UX the gcc test will end up
19265  # making a dummy file named `D' -- because `-MD' means `put the output
19266  # in D'.
19267  mkdir conftest.dir
19268  # Copy depcomp to subdir because otherwise we won't find it if we're
19269  # using a relative directory.
19270  cp "$am_depcomp" conftest.dir
19271  cd conftest.dir
19272  # We will build objects and dependencies in a subdirectory because
19273  # it helps to detect inapplicable dependency modes.  For instance
19274  # both Tru64's cc and ICC support -MD to output dependencies as a
19275  # side effect of compilation, but ICC will put the dependencies in
19276  # the current directory while Tru64 will put them in the object
19277  # directory.
19278  mkdir sub
19279
19280  am_cv_CXX_dependencies_compiler_type=none
19281  if test "$am_compiler_list" = ""; then
19282     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19283  fi
19284  for depmode in $am_compiler_list; do
19285    # Setup a source with many dependencies, because some compilers
19286    # like to wrap large dependency lists on column 80 (with \), and
19287    # we should not choose a depcomp mode which is confused by this.
19288    #
19289    # We need to recreate these files for each test, as the compiler may
19290    # overwrite some of them when testing with obscure command lines.
19291    # This happens at least with the AIX C compiler.
19292    : > sub/conftest.c
19293    for i in 1 2 3 4 5 6; do
19294      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19295      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19296      # Solaris 8's {/usr,}/bin/sh.
19297      touch sub/conftst$i.h
19298    done
19299    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19300
19301    case $depmode in
19302    nosideeffect)
19303      # after this tag, mechanisms are not by side-effect, so they'll
19304      # only be used when explicitly requested
19305      if test "x$enable_dependency_tracking" = xyes; then
19306	continue
19307      else
19308	break
19309      fi
19310      ;;
19311    none) break ;;
19312    esac
19313    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19314    # mode.  It turns out that the SunPro C++ compiler does not properly
19315    # handle `-M -o', and we need to detect this.
19316    if depmode=$depmode \
19317       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19318       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19319       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19320         >/dev/null 2>conftest.err &&
19321       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19322       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19323       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19324       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19325      # icc doesn't choke on unknown options, it will just issue warnings
19326      # or remarks (even with -Werror).  So we grep stderr for any message
19327      # that says an option was ignored or not supported.
19328      # When given -MP, icc 7.0 and 7.1 complain thusly:
19329      #   icc: Command line warning: ignoring option '-M'; no argument required
19330      # The diagnosis changed in icc 8.0:
19331      #   icc: Command line remark: option '-MP' not supported
19332      if (grep 'ignoring option' conftest.err ||
19333          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19334        am_cv_CXX_dependencies_compiler_type=$depmode
19335        break
19336      fi
19337    fi
19338  done
19339
19340  cd ..
19341  rm -rf conftest.dir
19342else
19343  am_cv_CXX_dependencies_compiler_type=none
19344fi
19345
19346fi
19347{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19348echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
19349CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19350
19351 if
19352  test "x$enable_dependency_tracking" != xno \
19353  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19354  am__fastdepCXX_TRUE=
19355  am__fastdepCXX_FALSE='#'
19356else
19357  am__fastdepCXX_TRUE='#'
19358  am__fastdepCXX_FALSE=
19359fi
19360
19361
19362
19363
19364{ echo "$as_me:$LINENO: checking for library containing dlsym" >&5
19365echo $ECHO_N "checking for library containing dlsym... $ECHO_C" >&6; }
19366if test "${ac_cv_search_dlsym+set}" = set; then
19367  echo $ECHO_N "(cached) $ECHO_C" >&6
19368else
19369  ac_func_search_save_LIBS=$LIBS
19370cat >conftest.$ac_ext <<_ACEOF
19371/* confdefs.h.  */
19372_ACEOF
19373cat confdefs.h >>conftest.$ac_ext
19374cat >>conftest.$ac_ext <<_ACEOF
19375/* end confdefs.h.  */
19376
19377/* Override any GCC internal prototype to avoid an error.
19378   Use char because int might match the return type of a GCC
19379   builtin and then its argument prototype would still apply.  */
19380#ifdef __cplusplus
19381extern "C"
19382#endif
19383char dlsym ();
19384int
19385main ()
19386{
19387return dlsym ();
19388  ;
19389  return 0;
19390}
19391_ACEOF
19392for ac_lib in '' dl; do
19393  if test -z "$ac_lib"; then
19394    ac_res="none required"
19395  else
19396    ac_res=-l$ac_lib
19397    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19398  fi
19399  rm -f conftest.$ac_objext conftest$ac_exeext
19400if { (ac_try="$ac_link"
19401case "(($ac_try" in
19402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403  *) ac_try_echo=$ac_try;;
19404esac
19405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406  (eval "$ac_link") 2>conftest.er1
19407  ac_status=$?
19408  grep -v '^ *+' conftest.er1 >conftest.err
19409  rm -f conftest.er1
19410  cat conftest.err >&5
19411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412  (exit $ac_status); } && {
19413	 test -z "$ac_c_werror_flag" ||
19414	 test ! -s conftest.err
19415       } && test -s conftest$ac_exeext &&
19416       $as_test_x conftest$ac_exeext; then
19417  ac_cv_search_dlsym=$ac_res
19418else
19419  echo "$as_me: failed program was:" >&5
19420sed 's/^/| /' conftest.$ac_ext >&5
19421
19422
19423fi
19424
19425rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19426      conftest$ac_exeext
19427  if test "${ac_cv_search_dlsym+set}" = set; then
19428  break
19429fi
19430done
19431if test "${ac_cv_search_dlsym+set}" = set; then
19432  :
19433else
19434  ac_cv_search_dlsym=no
19435fi
19436rm conftest.$ac_ext
19437LIBS=$ac_func_search_save_LIBS
19438fi
19439{ echo "$as_me:$LINENO: result: $ac_cv_search_dlsym" >&5
19440echo "${ECHO_T}$ac_cv_search_dlsym" >&6; }
19441ac_res=$ac_cv_search_dlsym
19442if test "$ac_res" != no; then
19443  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19444
19445fi
19446
19447{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
19448echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
19449if test "${ac_cv_search_clock_gettime+set}" = set; then
19450  echo $ECHO_N "(cached) $ECHO_C" >&6
19451else
19452  ac_func_search_save_LIBS=$LIBS
19453cat >conftest.$ac_ext <<_ACEOF
19454/* confdefs.h.  */
19455_ACEOF
19456cat confdefs.h >>conftest.$ac_ext
19457cat >>conftest.$ac_ext <<_ACEOF
19458/* end confdefs.h.  */
19459
19460/* Override any GCC internal prototype to avoid an error.
19461   Use char because int might match the return type of a GCC
19462   builtin and then its argument prototype would still apply.  */
19463#ifdef __cplusplus
19464extern "C"
19465#endif
19466char clock_gettime ();
19467int
19468main ()
19469{
19470return clock_gettime ();
19471  ;
19472  return 0;
19473}
19474_ACEOF
19475for ac_lib in '' rt; do
19476  if test -z "$ac_lib"; then
19477    ac_res="none required"
19478  else
19479    ac_res=-l$ac_lib
19480    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19481  fi
19482  rm -f conftest.$ac_objext conftest$ac_exeext
19483if { (ac_try="$ac_link"
19484case "(($ac_try" in
19485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486  *) ac_try_echo=$ac_try;;
19487esac
19488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489  (eval "$ac_link") 2>conftest.er1
19490  ac_status=$?
19491  grep -v '^ *+' conftest.er1 >conftest.err
19492  rm -f conftest.er1
19493  cat conftest.err >&5
19494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495  (exit $ac_status); } && {
19496	 test -z "$ac_c_werror_flag" ||
19497	 test ! -s conftest.err
19498       } && test -s conftest$ac_exeext &&
19499       $as_test_x conftest$ac_exeext; then
19500  ac_cv_search_clock_gettime=$ac_res
19501else
19502  echo "$as_me: failed program was:" >&5
19503sed 's/^/| /' conftest.$ac_ext >&5
19504
19505
19506fi
19507
19508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19509      conftest$ac_exeext
19510  if test "${ac_cv_search_clock_gettime+set}" = set; then
19511  break
19512fi
19513done
19514if test "${ac_cv_search_clock_gettime+set}" = set; then
19515  :
19516else
19517  ac_cv_search_clock_gettime=no
19518fi
19519rm conftest.$ac_ext
19520LIBS=$ac_func_search_save_LIBS
19521fi
19522{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
19523echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
19524ac_res=$ac_cv_search_clock_gettime
19525if test "$ac_res" != no; then
19526  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19527
19528fi
19529
19530
19531# Checks for header files.
19532{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19533echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19534if test "${ac_cv_header_stdc+set}" = set; then
19535  echo $ECHO_N "(cached) $ECHO_C" >&6
19536else
19537  cat >conftest.$ac_ext <<_ACEOF
19538/* confdefs.h.  */
19539_ACEOF
19540cat confdefs.h >>conftest.$ac_ext
19541cat >>conftest.$ac_ext <<_ACEOF
19542/* end confdefs.h.  */
19543#include <stdlib.h>
19544#include <stdarg.h>
19545#include <string.h>
19546#include <float.h>
19547
19548int
19549main ()
19550{
19551
19552  ;
19553  return 0;
19554}
19555_ACEOF
19556rm -f conftest.$ac_objext
19557if { (ac_try="$ac_compile"
19558case "(($ac_try" in
19559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560  *) ac_try_echo=$ac_try;;
19561esac
19562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563  (eval "$ac_compile") 2>conftest.er1
19564  ac_status=$?
19565  grep -v '^ *+' conftest.er1 >conftest.err
19566  rm -f conftest.er1
19567  cat conftest.err >&5
19568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569  (exit $ac_status); } && {
19570	 test -z "$ac_c_werror_flag" ||
19571	 test ! -s conftest.err
19572       } && test -s conftest.$ac_objext; then
19573  ac_cv_header_stdc=yes
19574else
19575  echo "$as_me: failed program was:" >&5
19576sed 's/^/| /' conftest.$ac_ext >&5
19577
19578	ac_cv_header_stdc=no
19579fi
19580
19581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19582
19583if test $ac_cv_header_stdc = yes; then
19584  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19585  cat >conftest.$ac_ext <<_ACEOF
19586/* confdefs.h.  */
19587_ACEOF
19588cat confdefs.h >>conftest.$ac_ext
19589cat >>conftest.$ac_ext <<_ACEOF
19590/* end confdefs.h.  */
19591#include <string.h>
19592
19593_ACEOF
19594if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19595  $EGREP "memchr" >/dev/null 2>&1; then
19596  :
19597else
19598  ac_cv_header_stdc=no
19599fi
19600rm -f conftest*
19601
19602fi
19603
19604if test $ac_cv_header_stdc = yes; then
19605  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19606  cat >conftest.$ac_ext <<_ACEOF
19607/* confdefs.h.  */
19608_ACEOF
19609cat confdefs.h >>conftest.$ac_ext
19610cat >>conftest.$ac_ext <<_ACEOF
19611/* end confdefs.h.  */
19612#include <stdlib.h>
19613
19614_ACEOF
19615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19616  $EGREP "free" >/dev/null 2>&1; then
19617  :
19618else
19619  ac_cv_header_stdc=no
19620fi
19621rm -f conftest*
19622
19623fi
19624
19625if test $ac_cv_header_stdc = yes; then
19626  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19627  if test "$cross_compiling" = yes; then
19628  :
19629else
19630  cat >conftest.$ac_ext <<_ACEOF
19631/* confdefs.h.  */
19632_ACEOF
19633cat confdefs.h >>conftest.$ac_ext
19634cat >>conftest.$ac_ext <<_ACEOF
19635/* end confdefs.h.  */
19636#include <ctype.h>
19637#include <stdlib.h>
19638#if ((' ' & 0x0FF) == 0x020)
19639# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19640# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19641#else
19642# define ISLOWER(c) \
19643		   (('a' <= (c) && (c) <= 'i') \
19644		     || ('j' <= (c) && (c) <= 'r') \
19645		     || ('s' <= (c) && (c) <= 'z'))
19646# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19647#endif
19648
19649#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19650int
19651main ()
19652{
19653  int i;
19654  for (i = 0; i < 256; i++)
19655    if (XOR (islower (i), ISLOWER (i))
19656	|| toupper (i) != TOUPPER (i))
19657      return 2;
19658  return 0;
19659}
19660_ACEOF
19661rm -f conftest$ac_exeext
19662if { (ac_try="$ac_link"
19663case "(($ac_try" in
19664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665  *) ac_try_echo=$ac_try;;
19666esac
19667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19668  (eval "$ac_link") 2>&5
19669  ac_status=$?
19670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19672  { (case "(($ac_try" in
19673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674  *) ac_try_echo=$ac_try;;
19675esac
19676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19677  (eval "$ac_try") 2>&5
19678  ac_status=$?
19679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680  (exit $ac_status); }; }; then
19681  :
19682else
19683  echo "$as_me: program exited with status $ac_status" >&5
19684echo "$as_me: failed program was:" >&5
19685sed 's/^/| /' conftest.$ac_ext >&5
19686
19687( exit $ac_status )
19688ac_cv_header_stdc=no
19689fi
19690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19691fi
19692
19693
19694fi
19695fi
19696{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19697echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19698if test $ac_cv_header_stdc = yes; then
19699
19700cat >>confdefs.h <<\_ACEOF
19701#define STDC_HEADERS 1
19702_ACEOF
19703
19704fi
19705
19706{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19707echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
19708if test "${ac_cv_header_sys_wait_h+set}" = set; then
19709  echo $ECHO_N "(cached) $ECHO_C" >&6
19710else
19711  cat >conftest.$ac_ext <<_ACEOF
19712/* confdefs.h.  */
19713_ACEOF
19714cat confdefs.h >>conftest.$ac_ext
19715cat >>conftest.$ac_ext <<_ACEOF
19716/* end confdefs.h.  */
19717#include <sys/types.h>
19718#include <sys/wait.h>
19719#ifndef WEXITSTATUS
19720# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19721#endif
19722#ifndef WIFEXITED
19723# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19724#endif
19725
19726int
19727main ()
19728{
19729  int s;
19730  wait (&s);
19731  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19732  ;
19733  return 0;
19734}
19735_ACEOF
19736rm -f conftest.$ac_objext
19737if { (ac_try="$ac_compile"
19738case "(($ac_try" in
19739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740  *) ac_try_echo=$ac_try;;
19741esac
19742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743  (eval "$ac_compile") 2>conftest.er1
19744  ac_status=$?
19745  grep -v '^ *+' conftest.er1 >conftest.err
19746  rm -f conftest.er1
19747  cat conftest.err >&5
19748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749  (exit $ac_status); } && {
19750	 test -z "$ac_c_werror_flag" ||
19751	 test ! -s conftest.err
19752       } && test -s conftest.$ac_objext; then
19753  ac_cv_header_sys_wait_h=yes
19754else
19755  echo "$as_me: failed program was:" >&5
19756sed 's/^/| /' conftest.$ac_ext >&5
19757
19758	ac_cv_header_sys_wait_h=no
19759fi
19760
19761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19762fi
19763{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19764echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
19765if test $ac_cv_header_sys_wait_h = yes; then
19766
19767cat >>confdefs.h <<\_ACEOF
19768#define HAVE_SYS_WAIT_H 1
19769_ACEOF
19770
19771fi
19772
19773
19774
19775
19776
19777for ac_header in endian.h mach/mach.h machine/endian.h sys/endian.h
19778do
19779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19781  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19784  echo $ECHO_N "(cached) $ECHO_C" >&6
19785fi
19786ac_res=`eval echo '${'$as_ac_Header'}'`
19787	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19788echo "${ECHO_T}$ac_res" >&6; }
19789else
19790  # Is the header compilable?
19791{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19792echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19793cat >conftest.$ac_ext <<_ACEOF
19794/* confdefs.h.  */
19795_ACEOF
19796cat confdefs.h >>conftest.$ac_ext
19797cat >>conftest.$ac_ext <<_ACEOF
19798/* end confdefs.h.  */
19799$ac_includes_default
19800#include <$ac_header>
19801_ACEOF
19802rm -f conftest.$ac_objext
19803if { (ac_try="$ac_compile"
19804case "(($ac_try" in
19805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806  *) ac_try_echo=$ac_try;;
19807esac
19808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809  (eval "$ac_compile") 2>conftest.er1
19810  ac_status=$?
19811  grep -v '^ *+' conftest.er1 >conftest.err
19812  rm -f conftest.er1
19813  cat conftest.err >&5
19814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815  (exit $ac_status); } && {
19816	 test -z "$ac_c_werror_flag" ||
19817	 test ! -s conftest.err
19818       } && test -s conftest.$ac_objext; then
19819  ac_header_compiler=yes
19820else
19821  echo "$as_me: failed program was:" >&5
19822sed 's/^/| /' conftest.$ac_ext >&5
19823
19824	ac_header_compiler=no
19825fi
19826
19827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19829echo "${ECHO_T}$ac_header_compiler" >&6; }
19830
19831# Is the header present?
19832{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19834cat >conftest.$ac_ext <<_ACEOF
19835/* confdefs.h.  */
19836_ACEOF
19837cat confdefs.h >>conftest.$ac_ext
19838cat >>conftest.$ac_ext <<_ACEOF
19839/* end confdefs.h.  */
19840#include <$ac_header>
19841_ACEOF
19842if { (ac_try="$ac_cpp conftest.$ac_ext"
19843case "(($ac_try" in
19844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845  *) ac_try_echo=$ac_try;;
19846esac
19847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19849  ac_status=$?
19850  grep -v '^ *+' conftest.er1 >conftest.err
19851  rm -f conftest.er1
19852  cat conftest.err >&5
19853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854  (exit $ac_status); } >/dev/null && {
19855	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19856	 test ! -s conftest.err
19857       }; then
19858  ac_header_preproc=yes
19859else
19860  echo "$as_me: failed program was:" >&5
19861sed 's/^/| /' conftest.$ac_ext >&5
19862
19863  ac_header_preproc=no
19864fi
19865
19866rm -f conftest.err conftest.$ac_ext
19867{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19868echo "${ECHO_T}$ac_header_preproc" >&6; }
19869
19870# So?  What about this header?
19871case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19872  yes:no: )
19873    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19874echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19875    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19876echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19877    ac_header_preproc=yes
19878    ;;
19879  no:yes:* )
19880    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19881echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19882    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19883echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19884    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19885echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19886    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19887echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19888    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19890    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19891echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19892    ( cat <<\_ASBOX
19893## ----------------------------------------------- ##
19894## Report this to trustedbsd-audit@TrustesdBSD.org ##
19895## ----------------------------------------------- ##
19896_ASBOX
19897     ) | sed "s/^/$as_me: WARNING:     /" >&2
19898    ;;
19899esac
19900{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19903  echo $ECHO_N "(cached) $ECHO_C" >&6
19904else
19905  eval "$as_ac_Header=\$ac_header_preproc"
19906fi
19907ac_res=`eval echo '${'$as_ac_Header'}'`
19908	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19909echo "${ECHO_T}$ac_res" >&6; }
19910
19911fi
19912if test `eval echo '${'$as_ac_Header'}'` = yes; then
19913  cat >>confdefs.h <<_ACEOF
19914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19915_ACEOF
19916
19917fi
19918
19919done
19920
19921
19922# Checks for typedefs, structures, and compiler characteristics.
19923{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19924echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19925if test "${ac_cv_c_const+set}" = set; then
19926  echo $ECHO_N "(cached) $ECHO_C" >&6
19927else
19928  cat >conftest.$ac_ext <<_ACEOF
19929/* confdefs.h.  */
19930_ACEOF
19931cat confdefs.h >>conftest.$ac_ext
19932cat >>conftest.$ac_ext <<_ACEOF
19933/* end confdefs.h.  */
19934
19935int
19936main ()
19937{
19938/* FIXME: Include the comments suggested by Paul. */
19939#ifndef __cplusplus
19940  /* Ultrix mips cc rejects this.  */
19941  typedef int charset[2];
19942  const charset cs;
19943  /* SunOS 4.1.1 cc rejects this.  */
19944  char const *const *pcpcc;
19945  char **ppc;
19946  /* NEC SVR4.0.2 mips cc rejects this.  */
19947  struct point {int x, y;};
19948  static struct point const zero = {0,0};
19949  /* AIX XL C 1.02.0.0 rejects this.
19950     It does not let you subtract one const X* pointer from another in
19951     an arm of an if-expression whose if-part is not a constant
19952     expression */
19953  const char *g = "string";
19954  pcpcc = &g + (g ? g-g : 0);
19955  /* HPUX 7.0 cc rejects these. */
19956  ++pcpcc;
19957  ppc = (char**) pcpcc;
19958  pcpcc = (char const *const *) ppc;
19959  { /* SCO 3.2v4 cc rejects this.  */
19960    char *t;
19961    char const *s = 0 ? (char *) 0 : (char const *) 0;
19962
19963    *t++ = 0;
19964    if (s) return 0;
19965  }
19966  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19967    int x[] = {25, 17};
19968    const int *foo = &x[0];
19969    ++foo;
19970  }
19971  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19972    typedef const int *iptr;
19973    iptr p = 0;
19974    ++p;
19975  }
19976  { /* AIX XL C 1.02.0.0 rejects this saying
19977       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19978    struct s { int j; const int *ap[3]; };
19979    struct s *b; b->j = 5;
19980  }
19981  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19982    const int foo = 10;
19983    if (!foo) return 0;
19984  }
19985  return !cs[0] && !zero.x;
19986#endif
19987
19988  ;
19989  return 0;
19990}
19991_ACEOF
19992rm -f conftest.$ac_objext
19993if { (ac_try="$ac_compile"
19994case "(($ac_try" in
19995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996  *) ac_try_echo=$ac_try;;
19997esac
19998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999  (eval "$ac_compile") 2>conftest.er1
20000  ac_status=$?
20001  grep -v '^ *+' conftest.er1 >conftest.err
20002  rm -f conftest.er1
20003  cat conftest.err >&5
20004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005  (exit $ac_status); } && {
20006	 test -z "$ac_c_werror_flag" ||
20007	 test ! -s conftest.err
20008       } && test -s conftest.$ac_objext; then
20009  ac_cv_c_const=yes
20010else
20011  echo "$as_me: failed program was:" >&5
20012sed 's/^/| /' conftest.$ac_ext >&5
20013
20014	ac_cv_c_const=no
20015fi
20016
20017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20018fi
20019{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20020echo "${ECHO_T}$ac_cv_c_const" >&6; }
20021if test $ac_cv_c_const = no; then
20022
20023cat >>confdefs.h <<\_ACEOF
20024#define const
20025_ACEOF
20026
20027fi
20028
20029{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20030echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
20031if test "${ac_cv_type_uid_t+set}" = set; then
20032  echo $ECHO_N "(cached) $ECHO_C" >&6
20033else
20034  cat >conftest.$ac_ext <<_ACEOF
20035/* confdefs.h.  */
20036_ACEOF
20037cat confdefs.h >>conftest.$ac_ext
20038cat >>conftest.$ac_ext <<_ACEOF
20039/* end confdefs.h.  */
20040#include <sys/types.h>
20041
20042_ACEOF
20043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20044  $EGREP "uid_t" >/dev/null 2>&1; then
20045  ac_cv_type_uid_t=yes
20046else
20047  ac_cv_type_uid_t=no
20048fi
20049rm -f conftest*
20050
20051fi
20052{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20053echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
20054if test $ac_cv_type_uid_t = no; then
20055
20056cat >>confdefs.h <<\_ACEOF
20057#define uid_t int
20058_ACEOF
20059
20060
20061cat >>confdefs.h <<\_ACEOF
20062#define gid_t int
20063_ACEOF
20064
20065fi
20066
20067{ echo "$as_me:$LINENO: checking for pid_t" >&5
20068echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
20069if test "${ac_cv_type_pid_t+set}" = set; then
20070  echo $ECHO_N "(cached) $ECHO_C" >&6
20071else
20072  cat >conftest.$ac_ext <<_ACEOF
20073/* confdefs.h.  */
20074_ACEOF
20075cat confdefs.h >>conftest.$ac_ext
20076cat >>conftest.$ac_ext <<_ACEOF
20077/* end confdefs.h.  */
20078$ac_includes_default
20079typedef pid_t ac__type_new_;
20080int
20081main ()
20082{
20083if ((ac__type_new_ *) 0)
20084  return 0;
20085if (sizeof (ac__type_new_))
20086  return 0;
20087  ;
20088  return 0;
20089}
20090_ACEOF
20091rm -f conftest.$ac_objext
20092if { (ac_try="$ac_compile"
20093case "(($ac_try" in
20094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20095  *) ac_try_echo=$ac_try;;
20096esac
20097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20098  (eval "$ac_compile") 2>conftest.er1
20099  ac_status=$?
20100  grep -v '^ *+' conftest.er1 >conftest.err
20101  rm -f conftest.er1
20102  cat conftest.err >&5
20103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104  (exit $ac_status); } && {
20105	 test -z "$ac_c_werror_flag" ||
20106	 test ! -s conftest.err
20107       } && test -s conftest.$ac_objext; then
20108  ac_cv_type_pid_t=yes
20109else
20110  echo "$as_me: failed program was:" >&5
20111sed 's/^/| /' conftest.$ac_ext >&5
20112
20113	ac_cv_type_pid_t=no
20114fi
20115
20116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20117fi
20118{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20119echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20120if test $ac_cv_type_pid_t = yes; then
20121  :
20122else
20123
20124cat >>confdefs.h <<_ACEOF
20125#define pid_t int
20126_ACEOF
20127
20128fi
20129
20130{ echo "$as_me:$LINENO: checking for size_t" >&5
20131echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20132if test "${ac_cv_type_size_t+set}" = set; then
20133  echo $ECHO_N "(cached) $ECHO_C" >&6
20134else
20135  cat >conftest.$ac_ext <<_ACEOF
20136/* confdefs.h.  */
20137_ACEOF
20138cat confdefs.h >>conftest.$ac_ext
20139cat >>conftest.$ac_ext <<_ACEOF
20140/* end confdefs.h.  */
20141$ac_includes_default
20142typedef size_t ac__type_new_;
20143int
20144main ()
20145{
20146if ((ac__type_new_ *) 0)
20147  return 0;
20148if (sizeof (ac__type_new_))
20149  return 0;
20150  ;
20151  return 0;
20152}
20153_ACEOF
20154rm -f conftest.$ac_objext
20155if { (ac_try="$ac_compile"
20156case "(($ac_try" in
20157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158  *) ac_try_echo=$ac_try;;
20159esac
20160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161  (eval "$ac_compile") 2>conftest.er1
20162  ac_status=$?
20163  grep -v '^ *+' conftest.er1 >conftest.err
20164  rm -f conftest.er1
20165  cat conftest.err >&5
20166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167  (exit $ac_status); } && {
20168	 test -z "$ac_c_werror_flag" ||
20169	 test ! -s conftest.err
20170       } && test -s conftest.$ac_objext; then
20171  ac_cv_type_size_t=yes
20172else
20173  echo "$as_me: failed program was:" >&5
20174sed 's/^/| /' conftest.$ac_ext >&5
20175
20176	ac_cv_type_size_t=no
20177fi
20178
20179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20180fi
20181{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20182echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20183if test $ac_cv_type_size_t = yes; then
20184  :
20185else
20186
20187cat >>confdefs.h <<_ACEOF
20188#define size_t unsigned int
20189_ACEOF
20190
20191fi
20192
20193{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20194echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
20195if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20196  echo $ECHO_N "(cached) $ECHO_C" >&6
20197else
20198  cat >conftest.$ac_ext <<_ACEOF
20199/* confdefs.h.  */
20200_ACEOF
20201cat confdefs.h >>conftest.$ac_ext
20202cat >>conftest.$ac_ext <<_ACEOF
20203/* end confdefs.h.  */
20204$ac_includes_default
20205int
20206main ()
20207{
20208static struct stat ac_aggr;
20209if (ac_aggr.st_rdev)
20210return 0;
20211  ;
20212  return 0;
20213}
20214_ACEOF
20215rm -f conftest.$ac_objext
20216if { (ac_try="$ac_compile"
20217case "(($ac_try" in
20218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20219  *) ac_try_echo=$ac_try;;
20220esac
20221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20222  (eval "$ac_compile") 2>conftest.er1
20223  ac_status=$?
20224  grep -v '^ *+' conftest.er1 >conftest.err
20225  rm -f conftest.er1
20226  cat conftest.err >&5
20227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228  (exit $ac_status); } && {
20229	 test -z "$ac_c_werror_flag" ||
20230	 test ! -s conftest.err
20231       } && test -s conftest.$ac_objext; then
20232  ac_cv_member_struct_stat_st_rdev=yes
20233else
20234  echo "$as_me: failed program was:" >&5
20235sed 's/^/| /' conftest.$ac_ext >&5
20236
20237	cat >conftest.$ac_ext <<_ACEOF
20238/* confdefs.h.  */
20239_ACEOF
20240cat confdefs.h >>conftest.$ac_ext
20241cat >>conftest.$ac_ext <<_ACEOF
20242/* end confdefs.h.  */
20243$ac_includes_default
20244int
20245main ()
20246{
20247static struct stat ac_aggr;
20248if (sizeof ac_aggr.st_rdev)
20249return 0;
20250  ;
20251  return 0;
20252}
20253_ACEOF
20254rm -f conftest.$ac_objext
20255if { (ac_try="$ac_compile"
20256case "(($ac_try" in
20257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258  *) ac_try_echo=$ac_try;;
20259esac
20260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261  (eval "$ac_compile") 2>conftest.er1
20262  ac_status=$?
20263  grep -v '^ *+' conftest.er1 >conftest.err
20264  rm -f conftest.er1
20265  cat conftest.err >&5
20266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267  (exit $ac_status); } && {
20268	 test -z "$ac_c_werror_flag" ||
20269	 test ! -s conftest.err
20270       } && test -s conftest.$ac_objext; then
20271  ac_cv_member_struct_stat_st_rdev=yes
20272else
20273  echo "$as_me: failed program was:" >&5
20274sed 's/^/| /' conftest.$ac_ext >&5
20275
20276	ac_cv_member_struct_stat_st_rdev=no
20277fi
20278
20279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20280fi
20281
20282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283fi
20284{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20285echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
20286if test $ac_cv_member_struct_stat_st_rdev = yes; then
20287
20288cat >>confdefs.h <<_ACEOF
20289#define HAVE_STRUCT_STAT_ST_RDEV 1
20290_ACEOF
20291
20292
20293fi
20294
20295
20296{ echo "$as_me:$LINENO: checking for struct ipc_perm.__key" >&5
20297echo $ECHO_N "checking for struct ipc_perm.__key... $ECHO_C" >&6; }
20298if test "${ac_cv_member_struct_ipc_perm___key+set}" = set; then
20299  echo $ECHO_N "(cached) $ECHO_C" >&6
20300else
20301  cat >conftest.$ac_ext <<_ACEOF
20302/* confdefs.h.  */
20303_ACEOF
20304cat confdefs.h >>conftest.$ac_ext
20305cat >>conftest.$ac_ext <<_ACEOF
20306/* end confdefs.h.  */
20307
20308#include <sys/types.h>
20309#include <sys/ipc.h>
20310
20311
20312int
20313main ()
20314{
20315static struct ipc_perm ac_aggr;
20316if (ac_aggr.__key)
20317return 0;
20318  ;
20319  return 0;
20320}
20321_ACEOF
20322rm -f conftest.$ac_objext
20323if { (ac_try="$ac_compile"
20324case "(($ac_try" in
20325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326  *) ac_try_echo=$ac_try;;
20327esac
20328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329  (eval "$ac_compile") 2>conftest.er1
20330  ac_status=$?
20331  grep -v '^ *+' conftest.er1 >conftest.err
20332  rm -f conftest.er1
20333  cat conftest.err >&5
20334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335  (exit $ac_status); } && {
20336	 test -z "$ac_c_werror_flag" ||
20337	 test ! -s conftest.err
20338       } && test -s conftest.$ac_objext; then
20339  ac_cv_member_struct_ipc_perm___key=yes
20340else
20341  echo "$as_me: failed program was:" >&5
20342sed 's/^/| /' conftest.$ac_ext >&5
20343
20344	cat >conftest.$ac_ext <<_ACEOF
20345/* confdefs.h.  */
20346_ACEOF
20347cat confdefs.h >>conftest.$ac_ext
20348cat >>conftest.$ac_ext <<_ACEOF
20349/* end confdefs.h.  */
20350
20351#include <sys/types.h>
20352#include <sys/ipc.h>
20353
20354
20355int
20356main ()
20357{
20358static struct ipc_perm ac_aggr;
20359if (sizeof ac_aggr.__key)
20360return 0;
20361  ;
20362  return 0;
20363}
20364_ACEOF
20365rm -f conftest.$ac_objext
20366if { (ac_try="$ac_compile"
20367case "(($ac_try" in
20368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369  *) ac_try_echo=$ac_try;;
20370esac
20371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372  (eval "$ac_compile") 2>conftest.er1
20373  ac_status=$?
20374  grep -v '^ *+' conftest.er1 >conftest.err
20375  rm -f conftest.er1
20376  cat conftest.err >&5
20377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378  (exit $ac_status); } && {
20379	 test -z "$ac_c_werror_flag" ||
20380	 test ! -s conftest.err
20381       } && test -s conftest.$ac_objext; then
20382  ac_cv_member_struct_ipc_perm___key=yes
20383else
20384  echo "$as_me: failed program was:" >&5
20385sed 's/^/| /' conftest.$ac_ext >&5
20386
20387	ac_cv_member_struct_ipc_perm___key=no
20388fi
20389
20390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20391fi
20392
20393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20394fi
20395{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___key" >&5
20396echo "${ECHO_T}$ac_cv_member_struct_ipc_perm___key" >&6; }
20397if test $ac_cv_member_struct_ipc_perm___key = yes; then
20398
20399cat >>confdefs.h <<\_ACEOF
20400#define HAVE_IPC_PERM___KEY
20401_ACEOF
20402
20403fi
20404
20405
20406{ echo "$as_me:$LINENO: checking for struct ipc_perm.__seq" >&5
20407echo $ECHO_N "checking for struct ipc_perm.__seq... $ECHO_C" >&6; }
20408if test "${ac_cv_member_struct_ipc_perm___seq+set}" = set; then
20409  echo $ECHO_N "(cached) $ECHO_C" >&6
20410else
20411  cat >conftest.$ac_ext <<_ACEOF
20412/* confdefs.h.  */
20413_ACEOF
20414cat confdefs.h >>conftest.$ac_ext
20415cat >>conftest.$ac_ext <<_ACEOF
20416/* end confdefs.h.  */
20417
20418#include <sys/types.h>
20419#include <sys/ipc.h>
20420
20421
20422int
20423main ()
20424{
20425static struct ipc_perm ac_aggr;
20426if (ac_aggr.__seq)
20427return 0;
20428  ;
20429  return 0;
20430}
20431_ACEOF
20432rm -f conftest.$ac_objext
20433if { (ac_try="$ac_compile"
20434case "(($ac_try" in
20435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436  *) ac_try_echo=$ac_try;;
20437esac
20438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439  (eval "$ac_compile") 2>conftest.er1
20440  ac_status=$?
20441  grep -v '^ *+' conftest.er1 >conftest.err
20442  rm -f conftest.er1
20443  cat conftest.err >&5
20444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445  (exit $ac_status); } && {
20446	 test -z "$ac_c_werror_flag" ||
20447	 test ! -s conftest.err
20448       } && test -s conftest.$ac_objext; then
20449  ac_cv_member_struct_ipc_perm___seq=yes
20450else
20451  echo "$as_me: failed program was:" >&5
20452sed 's/^/| /' conftest.$ac_ext >&5
20453
20454	cat >conftest.$ac_ext <<_ACEOF
20455/* confdefs.h.  */
20456_ACEOF
20457cat confdefs.h >>conftest.$ac_ext
20458cat >>conftest.$ac_ext <<_ACEOF
20459/* end confdefs.h.  */
20460
20461#include <sys/types.h>
20462#include <sys/ipc.h>
20463
20464
20465int
20466main ()
20467{
20468static struct ipc_perm ac_aggr;
20469if (sizeof ac_aggr.__seq)
20470return 0;
20471  ;
20472  return 0;
20473}
20474_ACEOF
20475rm -f conftest.$ac_objext
20476if { (ac_try="$ac_compile"
20477case "(($ac_try" in
20478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479  *) ac_try_echo=$ac_try;;
20480esac
20481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482  (eval "$ac_compile") 2>conftest.er1
20483  ac_status=$?
20484  grep -v '^ *+' conftest.er1 >conftest.err
20485  rm -f conftest.er1
20486  cat conftest.err >&5
20487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488  (exit $ac_status); } && {
20489	 test -z "$ac_c_werror_flag" ||
20490	 test ! -s conftest.err
20491       } && test -s conftest.$ac_objext; then
20492  ac_cv_member_struct_ipc_perm___seq=yes
20493else
20494  echo "$as_me: failed program was:" >&5
20495sed 's/^/| /' conftest.$ac_ext >&5
20496
20497	ac_cv_member_struct_ipc_perm___seq=no
20498fi
20499
20500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501fi
20502
20503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20504fi
20505{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___seq" >&5
20506echo "${ECHO_T}$ac_cv_member_struct_ipc_perm___seq" >&6; }
20507if test $ac_cv_member_struct_ipc_perm___seq = yes; then
20508
20509cat >>confdefs.h <<\_ACEOF
20510#define HAVE_IPC_PERM___SEQ
20511_ACEOF
20512
20513fi
20514
20515
20516{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20517echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20518if test "${ac_cv_header_time+set}" = set; then
20519  echo $ECHO_N "(cached) $ECHO_C" >&6
20520else
20521  cat >conftest.$ac_ext <<_ACEOF
20522/* confdefs.h.  */
20523_ACEOF
20524cat confdefs.h >>conftest.$ac_ext
20525cat >>conftest.$ac_ext <<_ACEOF
20526/* end confdefs.h.  */
20527#include <sys/types.h>
20528#include <sys/time.h>
20529#include <time.h>
20530
20531int
20532main ()
20533{
20534if ((struct tm *) 0)
20535return 0;
20536  ;
20537  return 0;
20538}
20539_ACEOF
20540rm -f conftest.$ac_objext
20541if { (ac_try="$ac_compile"
20542case "(($ac_try" in
20543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544  *) ac_try_echo=$ac_try;;
20545esac
20546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547  (eval "$ac_compile") 2>conftest.er1
20548  ac_status=$?
20549  grep -v '^ *+' conftest.er1 >conftest.err
20550  rm -f conftest.er1
20551  cat conftest.err >&5
20552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553  (exit $ac_status); } && {
20554	 test -z "$ac_c_werror_flag" ||
20555	 test ! -s conftest.err
20556       } && test -s conftest.$ac_objext; then
20557  ac_cv_header_time=yes
20558else
20559  echo "$as_me: failed program was:" >&5
20560sed 's/^/| /' conftest.$ac_ext >&5
20561
20562	ac_cv_header_time=no
20563fi
20564
20565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20566fi
20567{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20568echo "${ECHO_T}$ac_cv_header_time" >&6; }
20569if test $ac_cv_header_time = yes; then
20570
20571cat >>confdefs.h <<\_ACEOF
20572#define TIME_WITH_SYS_TIME 1
20573_ACEOF
20574
20575fi
20576
20577{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20578echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20579if test "${ac_cv_struct_tm+set}" = set; then
20580  echo $ECHO_N "(cached) $ECHO_C" >&6
20581else
20582  cat >conftest.$ac_ext <<_ACEOF
20583/* confdefs.h.  */
20584_ACEOF
20585cat confdefs.h >>conftest.$ac_ext
20586cat >>conftest.$ac_ext <<_ACEOF
20587/* end confdefs.h.  */
20588#include <sys/types.h>
20589#include <time.h>
20590
20591int
20592main ()
20593{
20594struct tm tm;
20595				     int *p = &tm.tm_sec;
20596 				     return !p;
20597  ;
20598  return 0;
20599}
20600_ACEOF
20601rm -f conftest.$ac_objext
20602if { (ac_try="$ac_compile"
20603case "(($ac_try" in
20604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605  *) ac_try_echo=$ac_try;;
20606esac
20607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608  (eval "$ac_compile") 2>conftest.er1
20609  ac_status=$?
20610  grep -v '^ *+' conftest.er1 >conftest.err
20611  rm -f conftest.er1
20612  cat conftest.err >&5
20613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614  (exit $ac_status); } && {
20615	 test -z "$ac_c_werror_flag" ||
20616	 test ! -s conftest.err
20617       } && test -s conftest.$ac_objext; then
20618  ac_cv_struct_tm=time.h
20619else
20620  echo "$as_me: failed program was:" >&5
20621sed 's/^/| /' conftest.$ac_ext >&5
20622
20623	ac_cv_struct_tm=sys/time.h
20624fi
20625
20626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20627fi
20628{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20629echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20630if test $ac_cv_struct_tm = sys/time.h; then
20631
20632cat >>confdefs.h <<\_ACEOF
20633#define TM_IN_SYS_TIME 1
20634_ACEOF
20635
20636fi
20637
20638
20639# Checks for library functions.
20640
20641for ac_header in unistd.h
20642do
20643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20644if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20645  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20648  echo $ECHO_N "(cached) $ECHO_C" >&6
20649fi
20650ac_res=`eval echo '${'$as_ac_Header'}'`
20651	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20652echo "${ECHO_T}$ac_res" >&6; }
20653else
20654  # Is the header compilable?
20655{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20656echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20657cat >conftest.$ac_ext <<_ACEOF
20658/* confdefs.h.  */
20659_ACEOF
20660cat confdefs.h >>conftest.$ac_ext
20661cat >>conftest.$ac_ext <<_ACEOF
20662/* end confdefs.h.  */
20663$ac_includes_default
20664#include <$ac_header>
20665_ACEOF
20666rm -f conftest.$ac_objext
20667if { (ac_try="$ac_compile"
20668case "(($ac_try" in
20669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670  *) ac_try_echo=$ac_try;;
20671esac
20672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673  (eval "$ac_compile") 2>conftest.er1
20674  ac_status=$?
20675  grep -v '^ *+' conftest.er1 >conftest.err
20676  rm -f conftest.er1
20677  cat conftest.err >&5
20678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679  (exit $ac_status); } && {
20680	 test -z "$ac_c_werror_flag" ||
20681	 test ! -s conftest.err
20682       } && test -s conftest.$ac_objext; then
20683  ac_header_compiler=yes
20684else
20685  echo "$as_me: failed program was:" >&5
20686sed 's/^/| /' conftest.$ac_ext >&5
20687
20688	ac_header_compiler=no
20689fi
20690
20691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20692{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20693echo "${ECHO_T}$ac_header_compiler" >&6; }
20694
20695# Is the header present?
20696{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20697echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20698cat >conftest.$ac_ext <<_ACEOF
20699/* confdefs.h.  */
20700_ACEOF
20701cat confdefs.h >>conftest.$ac_ext
20702cat >>conftest.$ac_ext <<_ACEOF
20703/* end confdefs.h.  */
20704#include <$ac_header>
20705_ACEOF
20706if { (ac_try="$ac_cpp conftest.$ac_ext"
20707case "(($ac_try" in
20708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709  *) ac_try_echo=$ac_try;;
20710esac
20711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20713  ac_status=$?
20714  grep -v '^ *+' conftest.er1 >conftest.err
20715  rm -f conftest.er1
20716  cat conftest.err >&5
20717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718  (exit $ac_status); } >/dev/null && {
20719	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20720	 test ! -s conftest.err
20721       }; then
20722  ac_header_preproc=yes
20723else
20724  echo "$as_me: failed program was:" >&5
20725sed 's/^/| /' conftest.$ac_ext >&5
20726
20727  ac_header_preproc=no
20728fi
20729
20730rm -f conftest.err conftest.$ac_ext
20731{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20732echo "${ECHO_T}$ac_header_preproc" >&6; }
20733
20734# So?  What about this header?
20735case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20736  yes:no: )
20737    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20738echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20739    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20740echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20741    ac_header_preproc=yes
20742    ;;
20743  no:yes:* )
20744    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20745echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20746    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20747echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20748    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20749echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20750    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20751echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20752    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20753echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20754    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20755echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20756    ( cat <<\_ASBOX
20757## ----------------------------------------------- ##
20758## Report this to trustedbsd-audit@TrustesdBSD.org ##
20759## ----------------------------------------------- ##
20760_ASBOX
20761     ) | sed "s/^/$as_me: WARNING:     /" >&2
20762    ;;
20763esac
20764{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20767  echo $ECHO_N "(cached) $ECHO_C" >&6
20768else
20769  eval "$as_ac_Header=\$ac_header_preproc"
20770fi
20771ac_res=`eval echo '${'$as_ac_Header'}'`
20772	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20773echo "${ECHO_T}$ac_res" >&6; }
20774
20775fi
20776if test `eval echo '${'$as_ac_Header'}'` = yes; then
20777  cat >>confdefs.h <<_ACEOF
20778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20779_ACEOF
20780
20781fi
20782
20783done
20784
20785{ echo "$as_me:$LINENO: checking for working chown" >&5
20786echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
20787if test "${ac_cv_func_chown_works+set}" = set; then
20788  echo $ECHO_N "(cached) $ECHO_C" >&6
20789else
20790  if test "$cross_compiling" = yes; then
20791  ac_cv_func_chown_works=no
20792else
20793  cat >conftest.$ac_ext <<_ACEOF
20794/* confdefs.h.  */
20795_ACEOF
20796cat confdefs.h >>conftest.$ac_ext
20797cat >>conftest.$ac_ext <<_ACEOF
20798/* end confdefs.h.  */
20799$ac_includes_default
20800#include <fcntl.h>
20801
20802int
20803main ()
20804{
20805  char *f = "conftest.chown";
20806  struct stat before, after;
20807
20808  if (creat (f, 0600) < 0)
20809    return 1;
20810  if (stat (f, &before) < 0)
20811    return 1;
20812  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
20813    return 1;
20814  if (stat (f, &after) < 0)
20815    return 1;
20816  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
20817
20818  ;
20819  return 0;
20820}
20821_ACEOF
20822rm -f conftest$ac_exeext
20823if { (ac_try="$ac_link"
20824case "(($ac_try" in
20825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826  *) ac_try_echo=$ac_try;;
20827esac
20828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829  (eval "$ac_link") 2>&5
20830  ac_status=$?
20831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20833  { (case "(($ac_try" in
20834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835  *) ac_try_echo=$ac_try;;
20836esac
20837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838  (eval "$ac_try") 2>&5
20839  ac_status=$?
20840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841  (exit $ac_status); }; }; then
20842  ac_cv_func_chown_works=yes
20843else
20844  echo "$as_me: program exited with status $ac_status" >&5
20845echo "$as_me: failed program was:" >&5
20846sed 's/^/| /' conftest.$ac_ext >&5
20847
20848( exit $ac_status )
20849ac_cv_func_chown_works=no
20850fi
20851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20852fi
20853
20854
20855rm -f conftest.chown
20856
20857fi
20858{ echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
20859echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
20860if test $ac_cv_func_chown_works = yes; then
20861
20862cat >>confdefs.h <<\_ACEOF
20863#define HAVE_CHOWN 1
20864_ACEOF
20865
20866fi
20867
20868
20869for ac_header in vfork.h
20870do
20871as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20873  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20875if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20876  echo $ECHO_N "(cached) $ECHO_C" >&6
20877fi
20878ac_res=`eval echo '${'$as_ac_Header'}'`
20879	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20880echo "${ECHO_T}$ac_res" >&6; }
20881else
20882  # Is the header compilable?
20883{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20884echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20885cat >conftest.$ac_ext <<_ACEOF
20886/* confdefs.h.  */
20887_ACEOF
20888cat confdefs.h >>conftest.$ac_ext
20889cat >>conftest.$ac_ext <<_ACEOF
20890/* end confdefs.h.  */
20891$ac_includes_default
20892#include <$ac_header>
20893_ACEOF
20894rm -f conftest.$ac_objext
20895if { (ac_try="$ac_compile"
20896case "(($ac_try" in
20897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898  *) ac_try_echo=$ac_try;;
20899esac
20900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901  (eval "$ac_compile") 2>conftest.er1
20902  ac_status=$?
20903  grep -v '^ *+' conftest.er1 >conftest.err
20904  rm -f conftest.er1
20905  cat conftest.err >&5
20906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907  (exit $ac_status); } && {
20908	 test -z "$ac_c_werror_flag" ||
20909	 test ! -s conftest.err
20910       } && test -s conftest.$ac_objext; then
20911  ac_header_compiler=yes
20912else
20913  echo "$as_me: failed program was:" >&5
20914sed 's/^/| /' conftest.$ac_ext >&5
20915
20916	ac_header_compiler=no
20917fi
20918
20919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20920{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20921echo "${ECHO_T}$ac_header_compiler" >&6; }
20922
20923# Is the header present?
20924{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20925echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20926cat >conftest.$ac_ext <<_ACEOF
20927/* confdefs.h.  */
20928_ACEOF
20929cat confdefs.h >>conftest.$ac_ext
20930cat >>conftest.$ac_ext <<_ACEOF
20931/* end confdefs.h.  */
20932#include <$ac_header>
20933_ACEOF
20934if { (ac_try="$ac_cpp conftest.$ac_ext"
20935case "(($ac_try" in
20936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937  *) ac_try_echo=$ac_try;;
20938esac
20939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20941  ac_status=$?
20942  grep -v '^ *+' conftest.er1 >conftest.err
20943  rm -f conftest.er1
20944  cat conftest.err >&5
20945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946  (exit $ac_status); } >/dev/null && {
20947	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20948	 test ! -s conftest.err
20949       }; then
20950  ac_header_preproc=yes
20951else
20952  echo "$as_me: failed program was:" >&5
20953sed 's/^/| /' conftest.$ac_ext >&5
20954
20955  ac_header_preproc=no
20956fi
20957
20958rm -f conftest.err conftest.$ac_ext
20959{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20960echo "${ECHO_T}$ac_header_preproc" >&6; }
20961
20962# So?  What about this header?
20963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20964  yes:no: )
20965    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20967    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20969    ac_header_preproc=yes
20970    ;;
20971  no:yes:* )
20972    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20974    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20975echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20976    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20978    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20979echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20980    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20982    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20984    ( cat <<\_ASBOX
20985## ----------------------------------------------- ##
20986## Report this to trustedbsd-audit@TrustesdBSD.org ##
20987## ----------------------------------------------- ##
20988_ASBOX
20989     ) | sed "s/^/$as_me: WARNING:     /" >&2
20990    ;;
20991esac
20992{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20995  echo $ECHO_N "(cached) $ECHO_C" >&6
20996else
20997  eval "$as_ac_Header=\$ac_header_preproc"
20998fi
20999ac_res=`eval echo '${'$as_ac_Header'}'`
21000	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21001echo "${ECHO_T}$ac_res" >&6; }
21002
21003fi
21004if test `eval echo '${'$as_ac_Header'}'` = yes; then
21005  cat >>confdefs.h <<_ACEOF
21006#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21007_ACEOF
21008
21009fi
21010
21011done
21012
21013
21014
21015for ac_func in fork vfork
21016do
21017as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21018{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21019echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21020if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21021  echo $ECHO_N "(cached) $ECHO_C" >&6
21022else
21023  cat >conftest.$ac_ext <<_ACEOF
21024/* confdefs.h.  */
21025_ACEOF
21026cat confdefs.h >>conftest.$ac_ext
21027cat >>conftest.$ac_ext <<_ACEOF
21028/* end confdefs.h.  */
21029/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21030   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21031#define $ac_func innocuous_$ac_func
21032
21033/* System header to define __stub macros and hopefully few prototypes,
21034    which can conflict with char $ac_func (); below.
21035    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21036    <limits.h> exists even on freestanding compilers.  */
21037
21038#ifdef __STDC__
21039# include <limits.h>
21040#else
21041# include <assert.h>
21042#endif
21043
21044#undef $ac_func
21045
21046/* Override any GCC internal prototype to avoid an error.
21047   Use char because int might match the return type of a GCC
21048   builtin and then its argument prototype would still apply.  */
21049#ifdef __cplusplus
21050extern "C"
21051#endif
21052char $ac_func ();
21053/* The GNU C library defines this for functions which it implements
21054    to always fail with ENOSYS.  Some functions are actually named
21055    something starting with __ and the normal name is an alias.  */
21056#if defined __stub_$ac_func || defined __stub___$ac_func
21057choke me
21058#endif
21059
21060int
21061main ()
21062{
21063return $ac_func ();
21064  ;
21065  return 0;
21066}
21067_ACEOF
21068rm -f conftest.$ac_objext conftest$ac_exeext
21069if { (ac_try="$ac_link"
21070case "(($ac_try" in
21071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072  *) ac_try_echo=$ac_try;;
21073esac
21074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21075  (eval "$ac_link") 2>conftest.er1
21076  ac_status=$?
21077  grep -v '^ *+' conftest.er1 >conftest.err
21078  rm -f conftest.er1
21079  cat conftest.err >&5
21080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081  (exit $ac_status); } && {
21082	 test -z "$ac_c_werror_flag" ||
21083	 test ! -s conftest.err
21084       } && test -s conftest$ac_exeext &&
21085       $as_test_x conftest$ac_exeext; then
21086  eval "$as_ac_var=yes"
21087else
21088  echo "$as_me: failed program was:" >&5
21089sed 's/^/| /' conftest.$ac_ext >&5
21090
21091	eval "$as_ac_var=no"
21092fi
21093
21094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21095      conftest$ac_exeext conftest.$ac_ext
21096fi
21097ac_res=`eval echo '${'$as_ac_var'}'`
21098	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21099echo "${ECHO_T}$ac_res" >&6; }
21100if test `eval echo '${'$as_ac_var'}'` = yes; then
21101  cat >>confdefs.h <<_ACEOF
21102#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21103_ACEOF
21104
21105fi
21106done
21107
21108if test "x$ac_cv_func_fork" = xyes; then
21109  { echo "$as_me:$LINENO: checking for working fork" >&5
21110echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
21111if test "${ac_cv_func_fork_works+set}" = set; then
21112  echo $ECHO_N "(cached) $ECHO_C" >&6
21113else
21114  if test "$cross_compiling" = yes; then
21115  ac_cv_func_fork_works=cross
21116else
21117  cat >conftest.$ac_ext <<_ACEOF
21118/* confdefs.h.  */
21119_ACEOF
21120cat confdefs.h >>conftest.$ac_ext
21121cat >>conftest.$ac_ext <<_ACEOF
21122/* end confdefs.h.  */
21123$ac_includes_default
21124int
21125main ()
21126{
21127
21128	  /* By Ruediger Kuhlmann. */
21129	  return fork () < 0;
21130
21131  ;
21132  return 0;
21133}
21134_ACEOF
21135rm -f conftest$ac_exeext
21136if { (ac_try="$ac_link"
21137case "(($ac_try" in
21138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139  *) ac_try_echo=$ac_try;;
21140esac
21141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142  (eval "$ac_link") 2>&5
21143  ac_status=$?
21144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21146  { (case "(($ac_try" in
21147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148  *) ac_try_echo=$ac_try;;
21149esac
21150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21151  (eval "$ac_try") 2>&5
21152  ac_status=$?
21153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154  (exit $ac_status); }; }; then
21155  ac_cv_func_fork_works=yes
21156else
21157  echo "$as_me: program exited with status $ac_status" >&5
21158echo "$as_me: failed program was:" >&5
21159sed 's/^/| /' conftest.$ac_ext >&5
21160
21161( exit $ac_status )
21162ac_cv_func_fork_works=no
21163fi
21164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21165fi
21166
21167
21168fi
21169{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21170echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
21171
21172else
21173  ac_cv_func_fork_works=$ac_cv_func_fork
21174fi
21175if test "x$ac_cv_func_fork_works" = xcross; then
21176  case $host in
21177    *-*-amigaos* | *-*-msdosdjgpp*)
21178      # Override, as these systems have only a dummy fork() stub
21179      ac_cv_func_fork_works=no
21180      ;;
21181    *)
21182      ac_cv_func_fork_works=yes
21183      ;;
21184  esac
21185  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21186echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21187fi
21188ac_cv_func_vfork_works=$ac_cv_func_vfork
21189if test "x$ac_cv_func_vfork" = xyes; then
21190  { echo "$as_me:$LINENO: checking for working vfork" >&5
21191echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
21192if test "${ac_cv_func_vfork_works+set}" = set; then
21193  echo $ECHO_N "(cached) $ECHO_C" >&6
21194else
21195  if test "$cross_compiling" = yes; then
21196  ac_cv_func_vfork_works=cross
21197else
21198  cat >conftest.$ac_ext <<_ACEOF
21199/* confdefs.h.  */
21200_ACEOF
21201cat confdefs.h >>conftest.$ac_ext
21202cat >>conftest.$ac_ext <<_ACEOF
21203/* end confdefs.h.  */
21204/* Thanks to Paul Eggert for this test.  */
21205$ac_includes_default
21206#include <sys/wait.h>
21207#ifdef HAVE_VFORK_H
21208# include <vfork.h>
21209#endif
21210/* On some sparc systems, changes by the child to local and incoming
21211   argument registers are propagated back to the parent.  The compiler
21212   is told about this with #include <vfork.h>, but some compilers
21213   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
21214   static variable whose address is put into a register that is
21215   clobbered by the vfork.  */
21216static void
21217#ifdef __cplusplus
21218sparc_address_test (int arg)
21219# else
21220sparc_address_test (arg) int arg;
21221#endif
21222{
21223  static pid_t child;
21224  if (!child) {
21225    child = vfork ();
21226    if (child < 0) {
21227      perror ("vfork");
21228      _exit(2);
21229    }
21230    if (!child) {
21231      arg = getpid();
21232      write(-1, "", 0);
21233      _exit (arg);
21234    }
21235  }
21236}
21237
21238int
21239main ()
21240{
21241  pid_t parent = getpid ();
21242  pid_t child;
21243
21244  sparc_address_test (0);
21245
21246  child = vfork ();
21247
21248  if (child == 0) {
21249    /* Here is another test for sparc vfork register problems.  This
21250       test uses lots of local variables, at least as many local
21251       variables as main has allocated so far including compiler
21252       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
21253       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
21254       reuse the register of parent for one of the local variables,
21255       since it will think that parent can't possibly be used any more
21256       in this routine.  Assigning to the local variable will thus
21257       munge parent in the parent process.  */
21258    pid_t
21259      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21260      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21261    /* Convince the compiler that p..p7 are live; otherwise, it might
21262       use the same hardware register for all 8 local variables.  */
21263    if (p != p1 || p != p2 || p != p3 || p != p4
21264	|| p != p5 || p != p6 || p != p7)
21265      _exit(1);
21266
21267    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21268       from child file descriptors.  If the child closes a descriptor
21269       before it execs or exits, this munges the parent's descriptor
21270       as well.  Test for this by closing stdout in the child.  */
21271    _exit(close(fileno(stdout)) != 0);
21272  } else {
21273    int status;
21274    struct stat st;
21275
21276    while (wait(&status) != child)
21277      ;
21278    return (
21279	 /* Was there some problem with vforking?  */
21280	 child < 0
21281
21282	 /* Did the child fail?  (This shouldn't happen.)  */
21283	 || status
21284
21285	 /* Did the vfork/compiler bug occur?  */
21286	 || parent != getpid()
21287
21288	 /* Did the file descriptor bug occur?  */
21289	 || fstat(fileno(stdout), &st) != 0
21290	 );
21291  }
21292}
21293_ACEOF
21294rm -f conftest$ac_exeext
21295if { (ac_try="$ac_link"
21296case "(($ac_try" in
21297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298  *) ac_try_echo=$ac_try;;
21299esac
21300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301  (eval "$ac_link") 2>&5
21302  ac_status=$?
21303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21305  { (case "(($ac_try" in
21306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21307  *) ac_try_echo=$ac_try;;
21308esac
21309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21310  (eval "$ac_try") 2>&5
21311  ac_status=$?
21312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313  (exit $ac_status); }; }; then
21314  ac_cv_func_vfork_works=yes
21315else
21316  echo "$as_me: program exited with status $ac_status" >&5
21317echo "$as_me: failed program was:" >&5
21318sed 's/^/| /' conftest.$ac_ext >&5
21319
21320( exit $ac_status )
21321ac_cv_func_vfork_works=no
21322fi
21323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21324fi
21325
21326
21327fi
21328{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21329echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
21330
21331fi;
21332if test "x$ac_cv_func_fork_works" = xcross; then
21333  ac_cv_func_vfork_works=$ac_cv_func_vfork
21334  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21335echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21336fi
21337
21338if test "x$ac_cv_func_vfork_works" = xyes; then
21339
21340cat >>confdefs.h <<\_ACEOF
21341#define HAVE_WORKING_VFORK 1
21342_ACEOF
21343
21344else
21345
21346cat >>confdefs.h <<\_ACEOF
21347#define vfork fork
21348_ACEOF
21349
21350fi
21351if test "x$ac_cv_func_fork_works" = xyes; then
21352
21353cat >>confdefs.h <<\_ACEOF
21354#define HAVE_WORKING_FORK 1
21355_ACEOF
21356
21357fi
21358
21359
21360for ac_header in stdlib.h
21361do
21362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21364  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21367  echo $ECHO_N "(cached) $ECHO_C" >&6
21368fi
21369ac_res=`eval echo '${'$as_ac_Header'}'`
21370	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21371echo "${ECHO_T}$ac_res" >&6; }
21372else
21373  # Is the header compilable?
21374{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21375echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21376cat >conftest.$ac_ext <<_ACEOF
21377/* confdefs.h.  */
21378_ACEOF
21379cat confdefs.h >>conftest.$ac_ext
21380cat >>conftest.$ac_ext <<_ACEOF
21381/* end confdefs.h.  */
21382$ac_includes_default
21383#include <$ac_header>
21384_ACEOF
21385rm -f conftest.$ac_objext
21386if { (ac_try="$ac_compile"
21387case "(($ac_try" in
21388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389  *) ac_try_echo=$ac_try;;
21390esac
21391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392  (eval "$ac_compile") 2>conftest.er1
21393  ac_status=$?
21394  grep -v '^ *+' conftest.er1 >conftest.err
21395  rm -f conftest.er1
21396  cat conftest.err >&5
21397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398  (exit $ac_status); } && {
21399	 test -z "$ac_c_werror_flag" ||
21400	 test ! -s conftest.err
21401       } && test -s conftest.$ac_objext; then
21402  ac_header_compiler=yes
21403else
21404  echo "$as_me: failed program was:" >&5
21405sed 's/^/| /' conftest.$ac_ext >&5
21406
21407	ac_header_compiler=no
21408fi
21409
21410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21411{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21412echo "${ECHO_T}$ac_header_compiler" >&6; }
21413
21414# Is the header present?
21415{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21416echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21417cat >conftest.$ac_ext <<_ACEOF
21418/* confdefs.h.  */
21419_ACEOF
21420cat confdefs.h >>conftest.$ac_ext
21421cat >>conftest.$ac_ext <<_ACEOF
21422/* end confdefs.h.  */
21423#include <$ac_header>
21424_ACEOF
21425if { (ac_try="$ac_cpp conftest.$ac_ext"
21426case "(($ac_try" in
21427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21428  *) ac_try_echo=$ac_try;;
21429esac
21430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21431  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21432  ac_status=$?
21433  grep -v '^ *+' conftest.er1 >conftest.err
21434  rm -f conftest.er1
21435  cat conftest.err >&5
21436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437  (exit $ac_status); } >/dev/null && {
21438	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21439	 test ! -s conftest.err
21440       }; then
21441  ac_header_preproc=yes
21442else
21443  echo "$as_me: failed program was:" >&5
21444sed 's/^/| /' conftest.$ac_ext >&5
21445
21446  ac_header_preproc=no
21447fi
21448
21449rm -f conftest.err conftest.$ac_ext
21450{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21451echo "${ECHO_T}$ac_header_preproc" >&6; }
21452
21453# So?  What about this header?
21454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21455  yes:no: )
21456    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21457echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21458    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21459echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21460    ac_header_preproc=yes
21461    ;;
21462  no:yes:* )
21463    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21464echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21465    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21466echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21467    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21468echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21469    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21470echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21471    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21472echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21473    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21474echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21475    ( cat <<\_ASBOX
21476## ----------------------------------------------- ##
21477## Report this to trustedbsd-audit@TrustesdBSD.org ##
21478## ----------------------------------------------- ##
21479_ASBOX
21480     ) | sed "s/^/$as_me: WARNING:     /" >&2
21481    ;;
21482esac
21483{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21485if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21486  echo $ECHO_N "(cached) $ECHO_C" >&6
21487else
21488  eval "$as_ac_Header=\$ac_header_preproc"
21489fi
21490ac_res=`eval echo '${'$as_ac_Header'}'`
21491	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21492echo "${ECHO_T}$ac_res" >&6; }
21493
21494fi
21495if test `eval echo '${'$as_ac_Header'}'` = yes; then
21496  cat >>confdefs.h <<_ACEOF
21497#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21498_ACEOF
21499
21500fi
21501
21502done
21503
21504{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21505echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21506if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21507  echo $ECHO_N "(cached) $ECHO_C" >&6
21508else
21509  if test "$cross_compiling" = yes; then
21510  ac_cv_func_malloc_0_nonnull=no
21511else
21512  cat >conftest.$ac_ext <<_ACEOF
21513/* confdefs.h.  */
21514_ACEOF
21515cat confdefs.h >>conftest.$ac_ext
21516cat >>conftest.$ac_ext <<_ACEOF
21517/* end confdefs.h.  */
21518#if defined STDC_HEADERS || defined HAVE_STDLIB_H
21519# include <stdlib.h>
21520#else
21521char *malloc ();
21522#endif
21523
21524int
21525main ()
21526{
21527return ! malloc (0);
21528  ;
21529  return 0;
21530}
21531_ACEOF
21532rm -f conftest$ac_exeext
21533if { (ac_try="$ac_link"
21534case "(($ac_try" in
21535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21536  *) ac_try_echo=$ac_try;;
21537esac
21538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21539  (eval "$ac_link") 2>&5
21540  ac_status=$?
21541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21543  { (case "(($ac_try" in
21544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21545  *) ac_try_echo=$ac_try;;
21546esac
21547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21548  (eval "$ac_try") 2>&5
21549  ac_status=$?
21550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551  (exit $ac_status); }; }; then
21552  ac_cv_func_malloc_0_nonnull=yes
21553else
21554  echo "$as_me: program exited with status $ac_status" >&5
21555echo "$as_me: failed program was:" >&5
21556sed 's/^/| /' conftest.$ac_ext >&5
21557
21558( exit $ac_status )
21559ac_cv_func_malloc_0_nonnull=no
21560fi
21561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21562fi
21563
21564
21565fi
21566{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21567echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21568if test $ac_cv_func_malloc_0_nonnull = yes; then
21569
21570cat >>confdefs.h <<\_ACEOF
21571#define HAVE_MALLOC 1
21572_ACEOF
21573
21574else
21575  cat >>confdefs.h <<\_ACEOF
21576#define HAVE_MALLOC 0
21577_ACEOF
21578
21579   case " $LIBOBJS " in
21580  *" malloc.$ac_objext "* ) ;;
21581  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21582 ;;
21583esac
21584
21585
21586cat >>confdefs.h <<\_ACEOF
21587#define malloc rpl_malloc
21588_ACEOF
21589
21590fi
21591
21592
21593
21594
21595
21596
21597
21598for ac_header in $ac_header_list
21599do
21600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21602  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21605  echo $ECHO_N "(cached) $ECHO_C" >&6
21606fi
21607ac_res=`eval echo '${'$as_ac_Header'}'`
21608	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21609echo "${ECHO_T}$ac_res" >&6; }
21610else
21611  # Is the header compilable?
21612{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21613echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21614cat >conftest.$ac_ext <<_ACEOF
21615/* confdefs.h.  */
21616_ACEOF
21617cat confdefs.h >>conftest.$ac_ext
21618cat >>conftest.$ac_ext <<_ACEOF
21619/* end confdefs.h.  */
21620$ac_includes_default
21621#include <$ac_header>
21622_ACEOF
21623rm -f conftest.$ac_objext
21624if { (ac_try="$ac_compile"
21625case "(($ac_try" in
21626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21627  *) ac_try_echo=$ac_try;;
21628esac
21629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21630  (eval "$ac_compile") 2>conftest.er1
21631  ac_status=$?
21632  grep -v '^ *+' conftest.er1 >conftest.err
21633  rm -f conftest.er1
21634  cat conftest.err >&5
21635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636  (exit $ac_status); } && {
21637	 test -z "$ac_c_werror_flag" ||
21638	 test ! -s conftest.err
21639       } && test -s conftest.$ac_objext; then
21640  ac_header_compiler=yes
21641else
21642  echo "$as_me: failed program was:" >&5
21643sed 's/^/| /' conftest.$ac_ext >&5
21644
21645	ac_header_compiler=no
21646fi
21647
21648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21649{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21650echo "${ECHO_T}$ac_header_compiler" >&6; }
21651
21652# Is the header present?
21653{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21654echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21655cat >conftest.$ac_ext <<_ACEOF
21656/* confdefs.h.  */
21657_ACEOF
21658cat confdefs.h >>conftest.$ac_ext
21659cat >>conftest.$ac_ext <<_ACEOF
21660/* end confdefs.h.  */
21661#include <$ac_header>
21662_ACEOF
21663if { (ac_try="$ac_cpp conftest.$ac_ext"
21664case "(($ac_try" in
21665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666  *) ac_try_echo=$ac_try;;
21667esac
21668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21670  ac_status=$?
21671  grep -v '^ *+' conftest.er1 >conftest.err
21672  rm -f conftest.er1
21673  cat conftest.err >&5
21674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675  (exit $ac_status); } >/dev/null && {
21676	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21677	 test ! -s conftest.err
21678       }; then
21679  ac_header_preproc=yes
21680else
21681  echo "$as_me: failed program was:" >&5
21682sed 's/^/| /' conftest.$ac_ext >&5
21683
21684  ac_header_preproc=no
21685fi
21686
21687rm -f conftest.err conftest.$ac_ext
21688{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21689echo "${ECHO_T}$ac_header_preproc" >&6; }
21690
21691# So?  What about this header?
21692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21693  yes:no: )
21694    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21695echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21696    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21697echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21698    ac_header_preproc=yes
21699    ;;
21700  no:yes:* )
21701    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21702echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21703    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21704echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21705    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21706echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21707    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21708echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21709    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21710echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21711    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21712echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21713    ( cat <<\_ASBOX
21714## ----------------------------------------------- ##
21715## Report this to trustedbsd-audit@TrustesdBSD.org ##
21716## ----------------------------------------------- ##
21717_ASBOX
21718     ) | sed "s/^/$as_me: WARNING:     /" >&2
21719    ;;
21720esac
21721{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21724  echo $ECHO_N "(cached) $ECHO_C" >&6
21725else
21726  eval "$as_ac_Header=\$ac_header_preproc"
21727fi
21728ac_res=`eval echo '${'$as_ac_Header'}'`
21729	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21730echo "${ECHO_T}$ac_res" >&6; }
21731
21732fi
21733if test `eval echo '${'$as_ac_Header'}'` = yes; then
21734  cat >>confdefs.h <<_ACEOF
21735#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21736_ACEOF
21737
21738fi
21739
21740done
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750for ac_func in $ac_func_list
21751do
21752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21753{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21755if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21756  echo $ECHO_N "(cached) $ECHO_C" >&6
21757else
21758  cat >conftest.$ac_ext <<_ACEOF
21759/* confdefs.h.  */
21760_ACEOF
21761cat confdefs.h >>conftest.$ac_ext
21762cat >>conftest.$ac_ext <<_ACEOF
21763/* end confdefs.h.  */
21764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21765   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21766#define $ac_func innocuous_$ac_func
21767
21768/* System header to define __stub macros and hopefully few prototypes,
21769    which can conflict with char $ac_func (); below.
21770    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21771    <limits.h> exists even on freestanding compilers.  */
21772
21773#ifdef __STDC__
21774# include <limits.h>
21775#else
21776# include <assert.h>
21777#endif
21778
21779#undef $ac_func
21780
21781/* Override any GCC internal prototype to avoid an error.
21782   Use char because int might match the return type of a GCC
21783   builtin and then its argument prototype would still apply.  */
21784#ifdef __cplusplus
21785extern "C"
21786#endif
21787char $ac_func ();
21788/* The GNU C library defines this for functions which it implements
21789    to always fail with ENOSYS.  Some functions are actually named
21790    something starting with __ and the normal name is an alias.  */
21791#if defined __stub_$ac_func || defined __stub___$ac_func
21792choke me
21793#endif
21794
21795int
21796main ()
21797{
21798return $ac_func ();
21799  ;
21800  return 0;
21801}
21802_ACEOF
21803rm -f conftest.$ac_objext conftest$ac_exeext
21804if { (ac_try="$ac_link"
21805case "(($ac_try" in
21806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807  *) ac_try_echo=$ac_try;;
21808esac
21809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810  (eval "$ac_link") 2>conftest.er1
21811  ac_status=$?
21812  grep -v '^ *+' conftest.er1 >conftest.err
21813  rm -f conftest.er1
21814  cat conftest.err >&5
21815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816  (exit $ac_status); } && {
21817	 test -z "$ac_c_werror_flag" ||
21818	 test ! -s conftest.err
21819       } && test -s conftest$ac_exeext &&
21820       $as_test_x conftest$ac_exeext; then
21821  eval "$as_ac_var=yes"
21822else
21823  echo "$as_me: failed program was:" >&5
21824sed 's/^/| /' conftest.$ac_ext >&5
21825
21826	eval "$as_ac_var=no"
21827fi
21828
21829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21830      conftest$ac_exeext conftest.$ac_ext
21831fi
21832ac_res=`eval echo '${'$as_ac_var'}'`
21833	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21834echo "${ECHO_T}$ac_res" >&6; }
21835if test `eval echo '${'$as_ac_var'}'` = yes; then
21836  cat >>confdefs.h <<_ACEOF
21837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21838_ACEOF
21839
21840fi
21841done
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859{ echo "$as_me:$LINENO: checking for working mktime" >&5
21860echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
21861if test "${ac_cv_func_working_mktime+set}" = set; then
21862  echo $ECHO_N "(cached) $ECHO_C" >&6
21863else
21864  if test "$cross_compiling" = yes; then
21865  ac_cv_func_working_mktime=no
21866else
21867  cat >conftest.$ac_ext <<_ACEOF
21868/* confdefs.h.  */
21869_ACEOF
21870cat confdefs.h >>conftest.$ac_ext
21871cat >>conftest.$ac_ext <<_ACEOF
21872/* end confdefs.h.  */
21873/* Test program from Paul Eggert and Tony Leneis.  */
21874#ifdef TIME_WITH_SYS_TIME
21875# include <sys/time.h>
21876# include <time.h>
21877#else
21878# ifdef HAVE_SYS_TIME_H
21879#  include <sys/time.h>
21880# else
21881#  include <time.h>
21882# endif
21883#endif
21884
21885#include <stdlib.h>
21886
21887#ifdef HAVE_UNISTD_H
21888# include <unistd.h>
21889#endif
21890
21891#ifndef HAVE_ALARM
21892# define alarm(X) /* empty */
21893#endif
21894
21895/* Work around redefinition to rpl_putenv by other config tests.  */
21896#undef putenv
21897
21898static time_t time_t_max;
21899static time_t time_t_min;
21900
21901/* Values we'll use to set the TZ environment variable.  */
21902static char *tz_strings[] = {
21903  (char *) 0, "TZ=GMT0", "TZ=JST-9",
21904  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21905};
21906#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21907
21908/* Return 0 if mktime fails to convert a date in the spring-forward gap.
21909   Based on a problem report from Andreas Jaeger.  */
21910static int
21911spring_forward_gap ()
21912{
21913  /* glibc (up to about 1998-10-07) failed this test. */
21914  struct tm tm;
21915
21916  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21917     instead of "TZ=America/Vancouver" in order to detect the bug even
21918     on systems that don't support the Olson extension, or don't have the
21919     full zoneinfo tables installed.  */
21920  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21921
21922  tm.tm_year = 98;
21923  tm.tm_mon = 3;
21924  tm.tm_mday = 5;
21925  tm.tm_hour = 2;
21926  tm.tm_min = 0;
21927  tm.tm_sec = 0;
21928  tm.tm_isdst = -1;
21929  return mktime (&tm) != (time_t) -1;
21930}
21931
21932static int
21933mktime_test1 (now)
21934     time_t now;
21935{
21936  struct tm *lt;
21937  return ! (lt = localtime (&now)) || mktime (lt) == now;
21938}
21939
21940static int
21941mktime_test (now)
21942     time_t now;
21943{
21944  return (mktime_test1 (now)
21945	  && mktime_test1 ((time_t) (time_t_max - now))
21946	  && mktime_test1 ((time_t) (time_t_min + now)));
21947}
21948
21949static int
21950irix_6_4_bug ()
21951{
21952  /* Based on code from Ariel Faigon.  */
21953  struct tm tm;
21954  tm.tm_year = 96;
21955  tm.tm_mon = 3;
21956  tm.tm_mday = 0;
21957  tm.tm_hour = 0;
21958  tm.tm_min = 0;
21959  tm.tm_sec = 0;
21960  tm.tm_isdst = -1;
21961  mktime (&tm);
21962  return tm.tm_mon == 2 && tm.tm_mday == 31;
21963}
21964
21965static int
21966bigtime_test (j)
21967     int j;
21968{
21969  struct tm tm;
21970  time_t now;
21971  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21972  now = mktime (&tm);
21973  if (now != (time_t) -1)
21974    {
21975      struct tm *lt = localtime (&now);
21976      if (! (lt
21977	     && lt->tm_year == tm.tm_year
21978	     && lt->tm_mon == tm.tm_mon
21979	     && lt->tm_mday == tm.tm_mday
21980	     && lt->tm_hour == tm.tm_hour
21981	     && lt->tm_min == tm.tm_min
21982	     && lt->tm_sec == tm.tm_sec
21983	     && lt->tm_yday == tm.tm_yday
21984	     && lt->tm_wday == tm.tm_wday
21985	     && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21986		  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21987	return 0;
21988    }
21989  return 1;
21990}
21991
21992static int
21993year_2050_test ()
21994{
21995  /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21996     ignoring leap seconds.  */
21997  unsigned long int answer = 2527315200UL;
21998
21999  struct tm tm;
22000  time_t t;
22001  tm.tm_year = 2050 - 1900;
22002  tm.tm_mon = 2 - 1;
22003  tm.tm_mday = 1;
22004  tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
22005  tm.tm_isdst = -1;
22006
22007  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22008     instead of "TZ=America/Vancouver" in order to detect the bug even
22009     on systems that don't support the Olson extension, or don't have the
22010     full zoneinfo tables installed.  */
22011  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22012
22013  t = mktime (&tm);
22014
22015  /* Check that the result is either a failure, or close enough
22016     to the correct answer that we can assume the discrepancy is
22017     due to leap seconds.  */
22018  return (t == (time_t) -1
22019	  || (0 < t && answer - 120 <= t && t <= answer + 120));
22020}
22021
22022int
22023main ()
22024{
22025  time_t t, delta;
22026  int i, j;
22027
22028  /* This test makes some buggy mktime implementations loop.
22029     Give up after 60 seconds; a mktime slower than that
22030     isn't worth using anyway.  */
22031  alarm (60);
22032
22033  for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
22034    continue;
22035  time_t_max--;
22036  if ((time_t) -1 < 0)
22037    for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
22038      continue;
22039  delta = time_t_max / 997; /* a suitable prime number */
22040  for (i = 0; i < N_STRINGS; i++)
22041    {
22042      if (tz_strings[i])
22043	putenv (tz_strings[i]);
22044
22045      for (t = 0; t <= time_t_max - delta; t += delta)
22046	if (! mktime_test (t))
22047	  return 1;
22048      if (! (mktime_test ((time_t) 1)
22049	     && mktime_test ((time_t) (60 * 60))
22050	     && mktime_test ((time_t) (60 * 60 * 24))))
22051	return 1;
22052
22053      for (j = 1; 0 < j; j *= 2)
22054	if (! bigtime_test (j))
22055	  return 1;
22056      if (! bigtime_test (j - 1))
22057	return 1;
22058    }
22059  return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
22060}
22061_ACEOF
22062rm -f conftest$ac_exeext
22063if { (ac_try="$ac_link"
22064case "(($ac_try" in
22065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066  *) ac_try_echo=$ac_try;;
22067esac
22068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069  (eval "$ac_link") 2>&5
22070  ac_status=$?
22071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22073  { (case "(($ac_try" in
22074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22075  *) ac_try_echo=$ac_try;;
22076esac
22077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22078  (eval "$ac_try") 2>&5
22079  ac_status=$?
22080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081  (exit $ac_status); }; }; then
22082  ac_cv_func_working_mktime=yes
22083else
22084  echo "$as_me: program exited with status $ac_status" >&5
22085echo "$as_me: failed program was:" >&5
22086sed 's/^/| /' conftest.$ac_ext >&5
22087
22088( exit $ac_status )
22089ac_cv_func_working_mktime=no
22090fi
22091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22092fi
22093
22094
22095fi
22096{ echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
22097echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
22098if test $ac_cv_func_working_mktime = no; then
22099  case " $LIBOBJS " in
22100  *" mktime.$ac_objext "* ) ;;
22101  *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
22102 ;;
22103esac
22104
22105fi
22106
22107{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22108echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22109if test "${ac_cv_type_signal+set}" = set; then
22110  echo $ECHO_N "(cached) $ECHO_C" >&6
22111else
22112  cat >conftest.$ac_ext <<_ACEOF
22113/* confdefs.h.  */
22114_ACEOF
22115cat confdefs.h >>conftest.$ac_ext
22116cat >>conftest.$ac_ext <<_ACEOF
22117/* end confdefs.h.  */
22118#include <sys/types.h>
22119#include <signal.h>
22120
22121int
22122main ()
22123{
22124return *(signal (0, 0)) (0) == 1;
22125  ;
22126  return 0;
22127}
22128_ACEOF
22129rm -f conftest.$ac_objext
22130if { (ac_try="$ac_compile"
22131case "(($ac_try" in
22132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22133  *) ac_try_echo=$ac_try;;
22134esac
22135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22136  (eval "$ac_compile") 2>conftest.er1
22137  ac_status=$?
22138  grep -v '^ *+' conftest.er1 >conftest.err
22139  rm -f conftest.er1
22140  cat conftest.err >&5
22141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142  (exit $ac_status); } && {
22143	 test -z "$ac_c_werror_flag" ||
22144	 test ! -s conftest.err
22145       } && test -s conftest.$ac_objext; then
22146  ac_cv_type_signal=int
22147else
22148  echo "$as_me: failed program was:" >&5
22149sed 's/^/| /' conftest.$ac_ext >&5
22150
22151	ac_cv_type_signal=void
22152fi
22153
22154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22155fi
22156{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22157echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22158
22159cat >>confdefs.h <<_ACEOF
22160#define RETSIGTYPE $ac_cv_type_signal
22161_ACEOF
22162
22163
22164{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
22165echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
22166if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
22167  echo $ECHO_N "(cached) $ECHO_C" >&6
22168else
22169  rm -f conftest.sym conftest.file
22170echo >conftest.file
22171if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
22172  if test "$cross_compiling" = yes; then
22173  ac_cv_func_lstat_dereferences_slashed_symlink=no
22174else
22175  cat >conftest.$ac_ext <<_ACEOF
22176/* confdefs.h.  */
22177_ACEOF
22178cat confdefs.h >>conftest.$ac_ext
22179cat >>conftest.$ac_ext <<_ACEOF
22180/* end confdefs.h.  */
22181$ac_includes_default
22182int
22183main ()
22184{
22185struct stat sbuf;
22186     /* Linux will dereference the symlink and fail.
22187	That is better in the sense that it means we will not
22188	have to compile and use the lstat wrapper.  */
22189     return lstat ("conftest.sym/", &sbuf) == 0;
22190  ;
22191  return 0;
22192}
22193_ACEOF
22194rm -f conftest$ac_exeext
22195if { (ac_try="$ac_link"
22196case "(($ac_try" in
22197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198  *) ac_try_echo=$ac_try;;
22199esac
22200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201  (eval "$ac_link") 2>&5
22202  ac_status=$?
22203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22205  { (case "(($ac_try" in
22206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207  *) ac_try_echo=$ac_try;;
22208esac
22209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210  (eval "$ac_try") 2>&5
22211  ac_status=$?
22212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213  (exit $ac_status); }; }; then
22214  ac_cv_func_lstat_dereferences_slashed_symlink=yes
22215else
22216  echo "$as_me: program exited with status $ac_status" >&5
22217echo "$as_me: failed program was:" >&5
22218sed 's/^/| /' conftest.$ac_ext >&5
22219
22220( exit $ac_status )
22221ac_cv_func_lstat_dereferences_slashed_symlink=no
22222fi
22223rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22224fi
22225
22226
22227else
22228  # If the `ln -s' command failed, then we probably don't even
22229  # have an lstat function.
22230  ac_cv_func_lstat_dereferences_slashed_symlink=no
22231fi
22232rm -f conftest.sym conftest.file
22233
22234fi
22235{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
22236echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
22237
22238test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
22239
22240cat >>confdefs.h <<_ACEOF
22241#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
22242_ACEOF
22243
22244
22245if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
22246  case " $LIBOBJS " in
22247  *" lstat.$ac_objext "* ) ;;
22248  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
22249 ;;
22250esac
22251
22252fi
22253
22254{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22255echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
22256if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
22257  echo $ECHO_N "(cached) $ECHO_C" >&6
22258else
22259  if test "$cross_compiling" = yes; then
22260  ac_cv_func_stat_empty_string_bug=yes
22261else
22262  cat >conftest.$ac_ext <<_ACEOF
22263/* confdefs.h.  */
22264_ACEOF
22265cat confdefs.h >>conftest.$ac_ext
22266cat >>conftest.$ac_ext <<_ACEOF
22267/* end confdefs.h.  */
22268$ac_includes_default
22269int
22270main ()
22271{
22272struct stat sbuf;
22273  return stat ("", &sbuf) == 0;
22274  ;
22275  return 0;
22276}
22277_ACEOF
22278rm -f conftest$ac_exeext
22279if { (ac_try="$ac_link"
22280case "(($ac_try" in
22281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282  *) ac_try_echo=$ac_try;;
22283esac
22284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22285  (eval "$ac_link") 2>&5
22286  ac_status=$?
22287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22289  { (case "(($ac_try" in
22290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291  *) ac_try_echo=$ac_try;;
22292esac
22293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294  (eval "$ac_try") 2>&5
22295  ac_status=$?
22296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297  (exit $ac_status); }; }; then
22298  ac_cv_func_stat_empty_string_bug=no
22299else
22300  echo "$as_me: program exited with status $ac_status" >&5
22301echo "$as_me: failed program was:" >&5
22302sed 's/^/| /' conftest.$ac_ext >&5
22303
22304( exit $ac_status )
22305ac_cv_func_stat_empty_string_bug=yes
22306fi
22307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22308fi
22309
22310
22311fi
22312{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
22313echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
22314if test $ac_cv_func_stat_empty_string_bug = yes; then
22315  case " $LIBOBJS " in
22316  *" stat.$ac_objext "* ) ;;
22317  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
22318 ;;
22319esac
22320
22321
22322cat >>confdefs.h <<_ACEOF
22323#define HAVE_STAT_EMPTY_STRING_BUG 1
22324_ACEOF
22325
22326fi
22327
22328
22329for ac_func in strftime
22330do
22331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22332{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22334if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22335  echo $ECHO_N "(cached) $ECHO_C" >&6
22336else
22337  cat >conftest.$ac_ext <<_ACEOF
22338/* confdefs.h.  */
22339_ACEOF
22340cat confdefs.h >>conftest.$ac_ext
22341cat >>conftest.$ac_ext <<_ACEOF
22342/* end confdefs.h.  */
22343/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22344   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22345#define $ac_func innocuous_$ac_func
22346
22347/* System header to define __stub macros and hopefully few prototypes,
22348    which can conflict with char $ac_func (); below.
22349    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22350    <limits.h> exists even on freestanding compilers.  */
22351
22352#ifdef __STDC__
22353# include <limits.h>
22354#else
22355# include <assert.h>
22356#endif
22357
22358#undef $ac_func
22359
22360/* Override any GCC internal prototype to avoid an error.
22361   Use char because int might match the return type of a GCC
22362   builtin and then its argument prototype would still apply.  */
22363#ifdef __cplusplus
22364extern "C"
22365#endif
22366char $ac_func ();
22367/* The GNU C library defines this for functions which it implements
22368    to always fail with ENOSYS.  Some functions are actually named
22369    something starting with __ and the normal name is an alias.  */
22370#if defined __stub_$ac_func || defined __stub___$ac_func
22371choke me
22372#endif
22373
22374int
22375main ()
22376{
22377return $ac_func ();
22378  ;
22379  return 0;
22380}
22381_ACEOF
22382rm -f conftest.$ac_objext conftest$ac_exeext
22383if { (ac_try="$ac_link"
22384case "(($ac_try" in
22385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386  *) ac_try_echo=$ac_try;;
22387esac
22388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389  (eval "$ac_link") 2>conftest.er1
22390  ac_status=$?
22391  grep -v '^ *+' conftest.er1 >conftest.err
22392  rm -f conftest.er1
22393  cat conftest.err >&5
22394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395  (exit $ac_status); } && {
22396	 test -z "$ac_c_werror_flag" ||
22397	 test ! -s conftest.err
22398       } && test -s conftest$ac_exeext &&
22399       $as_test_x conftest$ac_exeext; then
22400  eval "$as_ac_var=yes"
22401else
22402  echo "$as_me: failed program was:" >&5
22403sed 's/^/| /' conftest.$ac_ext >&5
22404
22405	eval "$as_ac_var=no"
22406fi
22407
22408rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22409      conftest$ac_exeext conftest.$ac_ext
22410fi
22411ac_res=`eval echo '${'$as_ac_var'}'`
22412	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22413echo "${ECHO_T}$ac_res" >&6; }
22414if test `eval echo '${'$as_ac_var'}'` = yes; then
22415  cat >>confdefs.h <<_ACEOF
22416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22417_ACEOF
22418
22419else
22420  # strftime is in -lintl on SCO UNIX.
22421{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
22422echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
22423if test "${ac_cv_lib_intl_strftime+set}" = set; then
22424  echo $ECHO_N "(cached) $ECHO_C" >&6
22425else
22426  ac_check_lib_save_LIBS=$LIBS
22427LIBS="-lintl  $LIBS"
22428cat >conftest.$ac_ext <<_ACEOF
22429/* confdefs.h.  */
22430_ACEOF
22431cat confdefs.h >>conftest.$ac_ext
22432cat >>conftest.$ac_ext <<_ACEOF
22433/* end confdefs.h.  */
22434
22435/* Override any GCC internal prototype to avoid an error.
22436   Use char because int might match the return type of a GCC
22437   builtin and then its argument prototype would still apply.  */
22438#ifdef __cplusplus
22439extern "C"
22440#endif
22441char strftime ();
22442int
22443main ()
22444{
22445return strftime ();
22446  ;
22447  return 0;
22448}
22449_ACEOF
22450rm -f conftest.$ac_objext conftest$ac_exeext
22451if { (ac_try="$ac_link"
22452case "(($ac_try" in
22453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22454  *) ac_try_echo=$ac_try;;
22455esac
22456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22457  (eval "$ac_link") 2>conftest.er1
22458  ac_status=$?
22459  grep -v '^ *+' conftest.er1 >conftest.err
22460  rm -f conftest.er1
22461  cat conftest.err >&5
22462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463  (exit $ac_status); } && {
22464	 test -z "$ac_c_werror_flag" ||
22465	 test ! -s conftest.err
22466       } && test -s conftest$ac_exeext &&
22467       $as_test_x conftest$ac_exeext; then
22468  ac_cv_lib_intl_strftime=yes
22469else
22470  echo "$as_me: failed program was:" >&5
22471sed 's/^/| /' conftest.$ac_ext >&5
22472
22473	ac_cv_lib_intl_strftime=no
22474fi
22475
22476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22477      conftest$ac_exeext conftest.$ac_ext
22478LIBS=$ac_check_lib_save_LIBS
22479fi
22480{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
22481echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
22482if test $ac_cv_lib_intl_strftime = yes; then
22483  cat >>confdefs.h <<\_ACEOF
22484#define HAVE_STRFTIME 1
22485_ACEOF
22486
22487LIBS="-lintl $LIBS"
22488fi
22489
22490fi
22491done
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506for ac_func in bzero clock_gettime ftruncate gettimeofday inet_ntoa memset strchr strerror strlcat strrchr strstr strtol strtoul
22507do
22508as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22509{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22510echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22511if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22512  echo $ECHO_N "(cached) $ECHO_C" >&6
22513else
22514  cat >conftest.$ac_ext <<_ACEOF
22515/* confdefs.h.  */
22516_ACEOF
22517cat confdefs.h >>conftest.$ac_ext
22518cat >>conftest.$ac_ext <<_ACEOF
22519/* end confdefs.h.  */
22520/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22521   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22522#define $ac_func innocuous_$ac_func
22523
22524/* System header to define __stub macros and hopefully few prototypes,
22525    which can conflict with char $ac_func (); below.
22526    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22527    <limits.h> exists even on freestanding compilers.  */
22528
22529#ifdef __STDC__
22530# include <limits.h>
22531#else
22532# include <assert.h>
22533#endif
22534
22535#undef $ac_func
22536
22537/* Override any GCC internal prototype to avoid an error.
22538   Use char because int might match the return type of a GCC
22539   builtin and then its argument prototype would still apply.  */
22540#ifdef __cplusplus
22541extern "C"
22542#endif
22543char $ac_func ();
22544/* The GNU C library defines this for functions which it implements
22545    to always fail with ENOSYS.  Some functions are actually named
22546    something starting with __ and the normal name is an alias.  */
22547#if defined __stub_$ac_func || defined __stub___$ac_func
22548choke me
22549#endif
22550
22551int
22552main ()
22553{
22554return $ac_func ();
22555  ;
22556  return 0;
22557}
22558_ACEOF
22559rm -f conftest.$ac_objext conftest$ac_exeext
22560if { (ac_try="$ac_link"
22561case "(($ac_try" in
22562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563  *) ac_try_echo=$ac_try;;
22564esac
22565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22566  (eval "$ac_link") 2>conftest.er1
22567  ac_status=$?
22568  grep -v '^ *+' conftest.er1 >conftest.err
22569  rm -f conftest.er1
22570  cat conftest.err >&5
22571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572  (exit $ac_status); } && {
22573	 test -z "$ac_c_werror_flag" ||
22574	 test ! -s conftest.err
22575       } && test -s conftest$ac_exeext &&
22576       $as_test_x conftest$ac_exeext; then
22577  eval "$as_ac_var=yes"
22578else
22579  echo "$as_me: failed program was:" >&5
22580sed 's/^/| /' conftest.$ac_ext >&5
22581
22582	eval "$as_ac_var=no"
22583fi
22584
22585rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22586      conftest$ac_exeext conftest.$ac_ext
22587fi
22588ac_res=`eval echo '${'$as_ac_var'}'`
22589	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22590echo "${ECHO_T}$ac_res" >&6; }
22591if test `eval echo '${'$as_ac_var'}'` = yes; then
22592  cat >>confdefs.h <<_ACEOF
22593#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22594_ACEOF
22595
22596fi
22597done
22598
22599
22600# sys/queue.h exists on most systems, but its capabilities vary a great deal.
22601# test for LIST_FIRST and TAILQ_FOREACH_SAFE, which appears to not exist in
22602# all of them, and are necessary for OpenBSM.
22603cat >conftest.$ac_ext <<_ACEOF
22604/* confdefs.h.  */
22605_ACEOF
22606cat confdefs.h >>conftest.$ac_ext
22607cat >>conftest.$ac_ext <<_ACEOF
22608/* end confdefs.h.  */
22609
22610	#include <sys/queue.h>
22611
22612int
22613main ()
22614{
22615
22616
22617	#ifndef LIST_FIRST
22618	#error LIST_FIRST missing
22619	#endif
22620	#ifndef TAILQ_FOREACH_SAFE
22621	#error TAILQ_FOREACH_SAFE
22622	#endif
22623
22624  ;
22625  return 0;
22626}
22627_ACEOF
22628rm -f conftest.$ac_objext conftest$ac_exeext
22629if { (ac_try="$ac_link"
22630case "(($ac_try" in
22631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22632  *) ac_try_echo=$ac_try;;
22633esac
22634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22635  (eval "$ac_link") 2>conftest.er1
22636  ac_status=$?
22637  grep -v '^ *+' conftest.er1 >conftest.err
22638  rm -f conftest.er1
22639  cat conftest.err >&5
22640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641  (exit $ac_status); } && {
22642	 test -z "$ac_c_werror_flag" ||
22643	 test ! -s conftest.err
22644       } && test -s conftest$ac_exeext &&
22645       $as_test_x conftest$ac_exeext; then
22646
22647
22648cat >>confdefs.h <<\_ACEOF
22649#define HAVE_FULL_QUEUE_H
22650_ACEOF
22651
22652
22653else
22654  echo "$as_me: failed program was:" >&5
22655sed 's/^/| /' conftest.$ac_ext >&5
22656
22657
22658fi
22659
22660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22661      conftest$ac_exeext conftest.$ac_ext
22662
22663# Systems may not define key audit system calls, in which case libbsm cannot
22664# depend on them or it will generate link-time or run-time errors.  Test for
22665# just one.
22666cat >conftest.$ac_ext <<_ACEOF
22667/* confdefs.h.  */
22668_ACEOF
22669cat confdefs.h >>conftest.$ac_ext
22670cat >>conftest.$ac_ext <<_ACEOF
22671/* end confdefs.h.  */
22672
22673	#include <stdlib.h>
22674
22675	extern int auditon(int, void *, int);
22676
22677int
22678main ()
22679{
22680
22681	int err;
22682
22683	err = auditon(0, NULL, 0);
22684
22685  ;
22686  return 0;
22687}
22688_ACEOF
22689rm -f conftest.$ac_objext conftest$ac_exeext
22690if { (ac_try="$ac_link"
22691case "(($ac_try" in
22692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693  *) ac_try_echo=$ac_try;;
22694esac
22695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22696  (eval "$ac_link") 2>conftest.er1
22697  ac_status=$?
22698  grep -v '^ *+' conftest.er1 >conftest.err
22699  rm -f conftest.er1
22700  cat conftest.err >&5
22701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702  (exit $ac_status); } && {
22703	 test -z "$ac_c_werror_flag" ||
22704	 test ! -s conftest.err
22705       } && test -s conftest$ac_exeext &&
22706       $as_test_x conftest$ac_exeext; then
22707
22708
22709cat >>confdefs.h <<\_ACEOF
22710#define HAVE_AUDIT_SYSCALLS
22711_ACEOF
22712
22713have_audit_syscalls=true
22714
22715else
22716  echo "$as_me: failed program was:" >&5
22717sed 's/^/| /' conftest.$ac_ext >&5
22718
22719
22720have_audit_syscalls=false
22721
22722fi
22723
22724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22725      conftest$ac_exeext conftest.$ac_ext
22726 if $have_audit_syscalls; then
22727  HAVE_AUDIT_SYSCALLS_TRUE=
22728  HAVE_AUDIT_SYSCALLS_FALSE='#'
22729else
22730  HAVE_AUDIT_SYSCALLS_TRUE='#'
22731  HAVE_AUDIT_SYSCALLS_FALSE=
22732fi
22733
22734
22735ac_config_files="$ac_config_files Makefile bin/Makefile bin/audit/Makefile bin/auditd/Makefile bin/auditfilterd/Makefile bin/auditreduce/Makefile bin/praudit/Makefile bsm/Makefile libbsm/Makefile modules/Makefile modules/auditfilter_noop/Makefile man/Makefile test/Makefile test/bsm/Makefile tools/Makefile"
22736
22737
22738cat >confcache <<\_ACEOF
22739# This file is a shell script that caches the results of configure
22740# tests run on this system so they can be shared between configure
22741# scripts and configure runs, see configure's option --config-cache.
22742# It is not useful on other systems.  If it contains results you don't
22743# want to keep, you may remove or edit it.
22744#
22745# config.status only pays attention to the cache file if you give it
22746# the --recheck option to rerun configure.
22747#
22748# `ac_cv_env_foo' variables (set or unset) will be overridden when
22749# loading this file, other *unset* `ac_cv_foo' will be assigned the
22750# following values.
22751
22752_ACEOF
22753
22754# The following way of writing the cache mishandles newlines in values,
22755# but we know of no workaround that is simple, portable, and efficient.
22756# So, we kill variables containing newlines.
22757# Ultrix sh set writes to stderr and can't be redirected directly,
22758# and sets the high bit in the cache file unless we assign to the vars.
22759(
22760  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22761    eval ac_val=\$$ac_var
22762    case $ac_val in #(
22763    *${as_nl}*)
22764      case $ac_var in #(
22765      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22766echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22767      esac
22768      case $ac_var in #(
22769      _ | IFS | as_nl) ;; #(
22770      *) $as_unset $ac_var ;;
22771      esac ;;
22772    esac
22773  done
22774
22775  (set) 2>&1 |
22776    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22777    *${as_nl}ac_space=\ *)
22778      # `set' does not quote correctly, so add quotes (double-quote
22779      # substitution turns \\\\ into \\, and sed turns \\ into \).
22780      sed -n \
22781	"s/'/'\\\\''/g;
22782	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22783      ;; #(
22784    *)
22785      # `set' quotes correctly as required by POSIX, so do not add quotes.
22786      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22787      ;;
22788    esac |
22789    sort
22790) |
22791  sed '
22792     /^ac_cv_env_/b end
22793     t clear
22794     :clear
22795     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22796     t end
22797     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22798     :end' >>confcache
22799if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22800  if test -w "$cache_file"; then
22801    test "x$cache_file" != "x/dev/null" &&
22802      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22803echo "$as_me: updating cache $cache_file" >&6;}
22804    cat confcache >$cache_file
22805  else
22806    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22807echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22808  fi
22809fi
22810rm -f confcache
22811
22812test "x$prefix" = xNONE && prefix=$ac_default_prefix
22813# Let make expand exec_prefix.
22814test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22815
22816DEFS=-DHAVE_CONFIG_H
22817
22818ac_libobjs=
22819ac_ltlibobjs=
22820for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22821  # 1. Remove the extension, and $U if already installed.
22822  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22823  ac_i=`echo "$ac_i" | sed "$ac_script"`
22824  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22825  #    will be set to the directory where LIBOBJS objects are built.
22826  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22827  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22828done
22829LIBOBJS=$ac_libobjs
22830
22831LTLIBOBJS=$ac_ltlibobjs
22832
22833
22834if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22835  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22836Usually this means the macro was only invoked conditionally." >&5
22837echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22838Usually this means the macro was only invoked conditionally." >&2;}
22839   { (exit 1); exit 1; }; }
22840fi
22841if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22842  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22843Usually this means the macro was only invoked conditionally." >&5
22844echo "$as_me: error: conditional \"AMDEP\" was never defined.
22845Usually this means the macro was only invoked conditionally." >&2;}
22846   { (exit 1); exit 1; }; }
22847fi
22848if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22849  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22850Usually this means the macro was only invoked conditionally." >&5
22851echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22852Usually this means the macro was only invoked conditionally." >&2;}
22853   { (exit 1); exit 1; }; }
22854fi
22855if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22856  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22857Usually this means the macro was only invoked conditionally." >&5
22858echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22859Usually this means the macro was only invoked conditionally." >&2;}
22860   { (exit 1); exit 1; }; }
22861fi
22862if test -z "${HAVE_AUDIT_SYSCALLS_TRUE}" && test -z "${HAVE_AUDIT_SYSCALLS_FALSE}"; then
22863  { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
22864Usually this means the macro was only invoked conditionally." >&5
22865echo "$as_me: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
22866Usually this means the macro was only invoked conditionally." >&2;}
22867   { (exit 1); exit 1; }; }
22868fi
22869
22870: ${CONFIG_STATUS=./config.status}
22871ac_clean_files_save=$ac_clean_files
22872ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22873{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22874echo "$as_me: creating $CONFIG_STATUS" >&6;}
22875cat >$CONFIG_STATUS <<_ACEOF
22876#! $SHELL
22877# Generated by $as_me.
22878# Run this file to recreate the current configuration.
22879# Compiler output produced by configure, useful for debugging
22880# configure, is in config.log if it exists.
22881
22882debug=false
22883ac_cs_recheck=false
22884ac_cs_silent=false
22885SHELL=\${CONFIG_SHELL-$SHELL}
22886_ACEOF
22887
22888cat >>$CONFIG_STATUS <<\_ACEOF
22889## --------------------- ##
22890## M4sh Initialization.  ##
22891## --------------------- ##
22892
22893# Be more Bourne compatible
22894DUALCASE=1; export DUALCASE # for MKS sh
22895if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22896  emulate sh
22897  NULLCMD=:
22898  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22899  # is contrary to our usage.  Disable this feature.
22900  alias -g '${1+"$@"}'='"$@"'
22901  setopt NO_GLOB_SUBST
22902else
22903  case `(set -o) 2>/dev/null` in
22904  *posix*) set -o posix ;;
22905esac
22906
22907fi
22908
22909
22910
22911
22912# PATH needs CR
22913# Avoid depending upon Character Ranges.
22914as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22915as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22916as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22917as_cr_digits='0123456789'
22918as_cr_alnum=$as_cr_Letters$as_cr_digits
22919
22920# The user is always right.
22921if test "${PATH_SEPARATOR+set}" != set; then
22922  echo "#! /bin/sh" >conf$$.sh
22923  echo  "exit 0"   >>conf$$.sh
22924  chmod +x conf$$.sh
22925  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22926    PATH_SEPARATOR=';'
22927  else
22928    PATH_SEPARATOR=:
22929  fi
22930  rm -f conf$$.sh
22931fi
22932
22933# Support unset when possible.
22934if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22935  as_unset=unset
22936else
22937  as_unset=false
22938fi
22939
22940
22941# IFS
22942# We need space, tab and new line, in precisely that order.  Quoting is
22943# there to prevent editors from complaining about space-tab.
22944# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22945# splitting by setting IFS to empty value.)
22946as_nl='
22947'
22948IFS=" ""	$as_nl"
22949
22950# Find who we are.  Look in the path if we contain no directory separator.
22951case $0 in
22952  *[\\/]* ) as_myself=$0 ;;
22953  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22954for as_dir in $PATH
22955do
22956  IFS=$as_save_IFS
22957  test -z "$as_dir" && as_dir=.
22958  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22959done
22960IFS=$as_save_IFS
22961
22962     ;;
22963esac
22964# We did not find ourselves, most probably we were run as `sh COMMAND'
22965# in which case we are not to be found in the path.
22966if test "x$as_myself" = x; then
22967  as_myself=$0
22968fi
22969if test ! -f "$as_myself"; then
22970  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22971  { (exit 1); exit 1; }
22972fi
22973
22974# Work around bugs in pre-3.0 UWIN ksh.
22975for as_var in ENV MAIL MAILPATH
22976do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22977done
22978PS1='$ '
22979PS2='> '
22980PS4='+ '
22981
22982# NLS nuisances.
22983for as_var in \
22984  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22985  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22986  LC_TELEPHONE LC_TIME
22987do
22988  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22989    eval $as_var=C; export $as_var
22990  else
22991    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22992  fi
22993done
22994
22995# Required to use basename.
22996if expr a : '\(a\)' >/dev/null 2>&1 &&
22997   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22998  as_expr=expr
22999else
23000  as_expr=false
23001fi
23002
23003if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23004  as_basename=basename
23005else
23006  as_basename=false
23007fi
23008
23009
23010# Name of the executable.
23011as_me=`$as_basename -- "$0" ||
23012$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23013	 X"$0" : 'X\(//\)$' \| \
23014	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23015echo X/"$0" |
23016    sed '/^.*\/\([^/][^/]*\)\/*$/{
23017	    s//\1/
23018	    q
23019	  }
23020	  /^X\/\(\/\/\)$/{
23021	    s//\1/
23022	    q
23023	  }
23024	  /^X\/\(\/\).*/{
23025	    s//\1/
23026	    q
23027	  }
23028	  s/.*/./; q'`
23029
23030# CDPATH.
23031$as_unset CDPATH
23032
23033
23034
23035  as_lineno_1=$LINENO
23036  as_lineno_2=$LINENO
23037  test "x$as_lineno_1" != "x$as_lineno_2" &&
23038  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23039
23040  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23041  # uniformly replaced by the line number.  The first 'sed' inserts a
23042  # line-number line after each line using $LINENO; the second 'sed'
23043  # does the real work.  The second script uses 'N' to pair each
23044  # line-number line with the line containing $LINENO, and appends
23045  # trailing '-' during substitution so that $LINENO is not a special
23046  # case at line end.
23047  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23048  # scripts with optimization help from Paolo Bonzini.  Blame Lee
23049  # E. McMahon (1931-1989) for sed's syntax.  :-)
23050  sed -n '
23051    p
23052    /[$]LINENO/=
23053  ' <$as_myself |
23054    sed '
23055      s/[$]LINENO.*/&-/
23056      t lineno
23057      b
23058      :lineno
23059      N
23060      :loop
23061      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23062      t loop
23063      s/-\n.*//
23064    ' >$as_me.lineno &&
23065  chmod +x "$as_me.lineno" ||
23066    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23067   { (exit 1); exit 1; }; }
23068
23069  # Don't try to exec as it changes $[0], causing all sort of problems
23070  # (the dirname of $[0] is not the place where we might find the
23071  # original and so on.  Autoconf is especially sensitive to this).
23072  . "./$as_me.lineno"
23073  # Exit status is that of the last command.
23074  exit
23075}
23076
23077
23078if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23079  as_dirname=dirname
23080else
23081  as_dirname=false
23082fi
23083
23084ECHO_C= ECHO_N= ECHO_T=
23085case `echo -n x` in
23086-n*)
23087  case `echo 'x\c'` in
23088  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23089  *)   ECHO_C='\c';;
23090  esac;;
23091*)
23092  ECHO_N='-n';;
23093esac
23094
23095if expr a : '\(a\)' >/dev/null 2>&1 &&
23096   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23097  as_expr=expr
23098else
23099  as_expr=false
23100fi
23101
23102rm -f conf$$ conf$$.exe conf$$.file
23103if test -d conf$$.dir; then
23104  rm -f conf$$.dir/conf$$.file
23105else
23106  rm -f conf$$.dir
23107  mkdir conf$$.dir
23108fi
23109echo >conf$$.file
23110if ln -s conf$$.file conf$$ 2>/dev/null; then
23111  as_ln_s='ln -s'
23112  # ... but there are two gotchas:
23113  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23114  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23115  # In both cases, we have to default to `cp -p'.
23116  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23117    as_ln_s='cp -p'
23118elif ln conf$$.file conf$$ 2>/dev/null; then
23119  as_ln_s=ln
23120else
23121  as_ln_s='cp -p'
23122fi
23123rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23124rmdir conf$$.dir 2>/dev/null
23125
23126if mkdir -p . 2>/dev/null; then
23127  as_mkdir_p=:
23128else
23129  test -d ./-p && rmdir ./-p
23130  as_mkdir_p=false
23131fi
23132
23133if test -x / >/dev/null 2>&1; then
23134  as_test_x='test -x'
23135else
23136  if ls -dL / >/dev/null 2>&1; then
23137    as_ls_L_option=L
23138  else
23139    as_ls_L_option=
23140  fi
23141  as_test_x='
23142    eval sh -c '\''
23143      if test -d "$1"; then
23144        test -d "$1/.";
23145      else
23146	case $1 in
23147        -*)set "./$1";;
23148	esac;
23149	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23150	???[sx]*):;;*)false;;esac;fi
23151    '\'' sh
23152  '
23153fi
23154as_executable_p=$as_test_x
23155
23156# Sed expression to map a string onto a valid CPP name.
23157as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23158
23159# Sed expression to map a string onto a valid variable name.
23160as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23161
23162
23163exec 6>&1
23164
23165# Save the log message, to keep $[0] and so on meaningful, and to
23166# report actual input values of CONFIG_FILES etc. instead of their
23167# values after options handling.
23168ac_log="
23169This file was extended by OpenBSM $as_me 1.0, which was
23170generated by GNU Autoconf 2.61.  Invocation command line was
23171
23172  CONFIG_FILES    = $CONFIG_FILES
23173  CONFIG_HEADERS  = $CONFIG_HEADERS
23174  CONFIG_LINKS    = $CONFIG_LINKS
23175  CONFIG_COMMANDS = $CONFIG_COMMANDS
23176  $ $0 $@
23177
23178on `(hostname || uname -n) 2>/dev/null | sed 1q`
23179"
23180
23181_ACEOF
23182
23183cat >>$CONFIG_STATUS <<_ACEOF
23184# Files that config.status was made for.
23185config_files="$ac_config_files"
23186config_headers="$ac_config_headers"
23187config_commands="$ac_config_commands"
23188
23189_ACEOF
23190
23191cat >>$CONFIG_STATUS <<\_ACEOF
23192ac_cs_usage="\
23193\`$as_me' instantiates files from templates according to the
23194current configuration.
23195
23196Usage: $0 [OPTIONS] [FILE]...
23197
23198  -h, --help       print this help, then exit
23199  -V, --version    print version number and configuration settings, then exit
23200  -q, --quiet      do not print progress messages
23201  -d, --debug      don't remove temporary files
23202      --recheck    update $as_me by reconfiguring in the same conditions
23203  --file=FILE[:TEMPLATE]
23204		   instantiate the configuration file FILE
23205  --header=FILE[:TEMPLATE]
23206		   instantiate the configuration header FILE
23207
23208Configuration files:
23209$config_files
23210
23211Configuration headers:
23212$config_headers
23213
23214Configuration commands:
23215$config_commands
23216
23217Report bugs to <bug-autoconf@gnu.org>."
23218
23219_ACEOF
23220cat >>$CONFIG_STATUS <<_ACEOF
23221ac_cs_version="\\
23222OpenBSM config.status 1.0
23223configured by $0, generated by GNU Autoconf 2.61,
23224  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23225
23226Copyright (C) 2006 Free Software Foundation, Inc.
23227This config.status script is free software; the Free Software Foundation
23228gives unlimited permission to copy, distribute and modify it."
23229
23230ac_pwd='$ac_pwd'
23231srcdir='$srcdir'
23232INSTALL='$INSTALL'
23233MKDIR_P='$MKDIR_P'
23234_ACEOF
23235
23236cat >>$CONFIG_STATUS <<\_ACEOF
23237# If no file are specified by the user, then we need to provide default
23238# value.  By we need to know if files were specified by the user.
23239ac_need_defaults=:
23240while test $# != 0
23241do
23242  case $1 in
23243  --*=*)
23244    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23245    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23246    ac_shift=:
23247    ;;
23248  *)
23249    ac_option=$1
23250    ac_optarg=$2
23251    ac_shift=shift
23252    ;;
23253  esac
23254
23255  case $ac_option in
23256  # Handling of the options.
23257  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23258    ac_cs_recheck=: ;;
23259  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23260    echo "$ac_cs_version"; exit ;;
23261  --debug | --debu | --deb | --de | --d | -d )
23262    debug=: ;;
23263  --file | --fil | --fi | --f )
23264    $ac_shift
23265    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23266    ac_need_defaults=false;;
23267  --header | --heade | --head | --hea )
23268    $ac_shift
23269    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23270    ac_need_defaults=false;;
23271  --he | --h)
23272    # Conflict between --help and --header
23273    { echo "$as_me: error: ambiguous option: $1
23274Try \`$0 --help' for more information." >&2
23275   { (exit 1); exit 1; }; };;
23276  --help | --hel | -h )
23277    echo "$ac_cs_usage"; exit ;;
23278  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23279  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23280    ac_cs_silent=: ;;
23281
23282  # This is an error.
23283  -*) { echo "$as_me: error: unrecognized option: $1
23284Try \`$0 --help' for more information." >&2
23285   { (exit 1); exit 1; }; } ;;
23286
23287  *) ac_config_targets="$ac_config_targets $1"
23288     ac_need_defaults=false ;;
23289
23290  esac
23291  shift
23292done
23293
23294ac_configure_extra_args=
23295
23296if $ac_cs_silent; then
23297  exec 6>/dev/null
23298  ac_configure_extra_args="$ac_configure_extra_args --silent"
23299fi
23300
23301_ACEOF
23302cat >>$CONFIG_STATUS <<_ACEOF
23303if \$ac_cs_recheck; then
23304  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23305  CONFIG_SHELL=$SHELL
23306  export CONFIG_SHELL
23307  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23308fi
23309
23310_ACEOF
23311cat >>$CONFIG_STATUS <<\_ACEOF
23312exec 5>>config.log
23313{
23314  echo
23315  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23316## Running $as_me. ##
23317_ASBOX
23318  echo "$ac_log"
23319} >&5
23320
23321_ACEOF
23322cat >>$CONFIG_STATUS <<_ACEOF
23323#
23324# INIT-COMMANDS
23325#
23326AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23327
23328_ACEOF
23329
23330cat >>$CONFIG_STATUS <<\_ACEOF
23331
23332# Handling of arguments.
23333for ac_config_target in $ac_config_targets
23334do
23335  case $ac_config_target in
23336    "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
23337    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23338    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23339    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
23340    "bin/audit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/audit/Makefile" ;;
23341    "bin/auditd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditd/Makefile" ;;
23342    "bin/auditfilterd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditfilterd/Makefile" ;;
23343    "bin/auditreduce/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditreduce/Makefile" ;;
23344    "bin/praudit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/praudit/Makefile" ;;
23345    "bsm/Makefile") CONFIG_FILES="$CONFIG_FILES bsm/Makefile" ;;
23346    "libbsm/Makefile") CONFIG_FILES="$CONFIG_FILES libbsm/Makefile" ;;
23347    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
23348    "modules/auditfilter_noop/Makefile") CONFIG_FILES="$CONFIG_FILES modules/auditfilter_noop/Makefile" ;;
23349    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23350    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23351    "test/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES test/bsm/Makefile" ;;
23352    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
23353
23354  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23355echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23356   { (exit 1); exit 1; }; };;
23357  esac
23358done
23359
23360
23361# If the user did not use the arguments to specify the items to instantiate,
23362# then the envvar interface is used.  Set only those that are not.
23363# We use the long form for the default assignment because of an extremely
23364# bizarre bug on SunOS 4.1.3.
23365if $ac_need_defaults; then
23366  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23367  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23368  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23369fi
23370
23371# Have a temporary directory for convenience.  Make it in the build tree
23372# simply because there is no reason against having it here, and in addition,
23373# creating and moving files from /tmp can sometimes cause problems.
23374# Hook for its removal unless debugging.
23375# Note that there is a small window in which the directory will not be cleaned:
23376# after its creation but before its name has been assigned to `$tmp'.
23377$debug ||
23378{
23379  tmp=
23380  trap 'exit_status=$?
23381  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23382' 0
23383  trap '{ (exit 1); exit 1; }' 1 2 13 15
23384}
23385# Create a (secure) tmp directory for tmp files.
23386
23387{
23388  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23389  test -n "$tmp" && test -d "$tmp"
23390}  ||
23391{
23392  tmp=./conf$$-$RANDOM
23393  (umask 077 && mkdir "$tmp")
23394} ||
23395{
23396   echo "$me: cannot create a temporary directory in ." >&2
23397   { (exit 1); exit 1; }
23398}
23399
23400#
23401# Set up the sed scripts for CONFIG_FILES section.
23402#
23403
23404# No need to generate the scripts if there are no CONFIG_FILES.
23405# This happens for instance when ./config.status config.h
23406if test -n "$CONFIG_FILES"; then
23407
23408_ACEOF
23409
23410
23411
23412ac_delim='%!_!# '
23413for ac_last_try in false false false false false :; do
23414  cat >conf$$subs.sed <<_ACEOF
23415SHELL!$SHELL$ac_delim
23416PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23417PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23418PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23419PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23420PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23421PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23422exec_prefix!$exec_prefix$ac_delim
23423prefix!$prefix$ac_delim
23424program_transform_name!$program_transform_name$ac_delim
23425bindir!$bindir$ac_delim
23426sbindir!$sbindir$ac_delim
23427libexecdir!$libexecdir$ac_delim
23428datarootdir!$datarootdir$ac_delim
23429datadir!$datadir$ac_delim
23430sysconfdir!$sysconfdir$ac_delim
23431sharedstatedir!$sharedstatedir$ac_delim
23432localstatedir!$localstatedir$ac_delim
23433includedir!$includedir$ac_delim
23434oldincludedir!$oldincludedir$ac_delim
23435docdir!$docdir$ac_delim
23436infodir!$infodir$ac_delim
23437htmldir!$htmldir$ac_delim
23438dvidir!$dvidir$ac_delim
23439pdfdir!$pdfdir$ac_delim
23440psdir!$psdir$ac_delim
23441libdir!$libdir$ac_delim
23442localedir!$localedir$ac_delim
23443mandir!$mandir$ac_delim
23444DEFS!$DEFS$ac_delim
23445ECHO_C!$ECHO_C$ac_delim
23446ECHO_N!$ECHO_N$ac_delim
23447ECHO_T!$ECHO_T$ac_delim
23448LIBS!$LIBS$ac_delim
23449build_alias!$build_alias$ac_delim
23450host_alias!$host_alias$ac_delim
23451target_alias!$target_alias$ac_delim
23452MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23453MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23454MAINT!$MAINT$ac_delim
23455CC!$CC$ac_delim
23456CFLAGS!$CFLAGS$ac_delim
23457LDFLAGS!$LDFLAGS$ac_delim
23458CPPFLAGS!$CPPFLAGS$ac_delim
23459ac_ct_CC!$ac_ct_CC$ac_delim
23460EXEEXT!$EXEEXT$ac_delim
23461OBJEXT!$OBJEXT$ac_delim
23462INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23463INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23464INSTALL_DATA!$INSTALL_DATA$ac_delim
23465build!$build$ac_delim
23466build_cpu!$build_cpu$ac_delim
23467build_vendor!$build_vendor$ac_delim
23468build_os!$build_os$ac_delim
23469host!$host$ac_delim
23470host_cpu!$host_cpu$ac_delim
23471host_vendor!$host_vendor$ac_delim
23472host_os!$host_os$ac_delim
23473SED!$SED$ac_delim
23474GREP!$GREP$ac_delim
23475EGREP!$EGREP$ac_delim
23476LN_S!$LN_S$ac_delim
23477ECHO!$ECHO$ac_delim
23478AR!$AR$ac_delim
23479RANLIB!$RANLIB$ac_delim
23480STRIP!$STRIP$ac_delim
23481CPP!$CPP$ac_delim
23482CXX!$CXX$ac_delim
23483CXXFLAGS!$CXXFLAGS$ac_delim
23484ac_ct_CXX!$ac_ct_CXX$ac_delim
23485CXXCPP!$CXXCPP$ac_delim
23486F77!$F77$ac_delim
23487FFLAGS!$FFLAGS$ac_delim
23488ac_ct_F77!$ac_ct_F77$ac_delim
23489LIBTOOL!$LIBTOOL$ac_delim
23490am__isrc!$am__isrc$ac_delim
23491CYGPATH_W!$CYGPATH_W$ac_delim
23492PACKAGE!$PACKAGE$ac_delim
23493VERSION!$VERSION$ac_delim
23494ACLOCAL!$ACLOCAL$ac_delim
23495AUTOCONF!$AUTOCONF$ac_delim
23496AUTOMAKE!$AUTOMAKE$ac_delim
23497AUTOHEADER!$AUTOHEADER$ac_delim
23498MAKEINFO!$MAKEINFO$ac_delim
23499install_sh!$install_sh$ac_delim
23500INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23501mkdir_p!$mkdir_p$ac_delim
23502AWK!$AWK$ac_delim
23503SET_MAKE!$SET_MAKE$ac_delim
23504am__leading_dot!$am__leading_dot$ac_delim
23505AMTAR!$AMTAR$ac_delim
23506am__tar!$am__tar$ac_delim
23507am__untar!$am__untar$ac_delim
23508DEPDIR!$DEPDIR$ac_delim
23509am__include!$am__include$ac_delim
23510am__quote!$am__quote$ac_delim
23511AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23512_ACEOF
23513
23514  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23515    break
23516  elif $ac_last_try; then
23517    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23518echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23519   { (exit 1); exit 1; }; }
23520  else
23521    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23522  fi
23523done
23524
23525ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23526if test -n "$ac_eof"; then
23527  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23528  ac_eof=`expr $ac_eof + 1`
23529fi
23530
23531cat >>$CONFIG_STATUS <<_ACEOF
23532cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23533/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23534_ACEOF
23535sed '
23536s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23537s/^/s,@/; s/!/@,|#_!!_#|/
23538:n
23539t n
23540s/'"$ac_delim"'$/,g/; t
23541s/$/\\/; p
23542N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23543' >>$CONFIG_STATUS <conf$$subs.sed
23544rm -f conf$$subs.sed
23545cat >>$CONFIG_STATUS <<_ACEOF
23546CEOF$ac_eof
23547_ACEOF
23548
23549
23550ac_delim='%!_!# '
23551for ac_last_try in false false false false false :; do
23552  cat >conf$$subs.sed <<_ACEOF
23553AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23554AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23555CCDEPMODE!$CCDEPMODE$ac_delim
23556am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23557am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23558CXXDEPMODE!$CXXDEPMODE$ac_delim
23559am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23560am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23561LIBOBJS!$LIBOBJS$ac_delim
23562HAVE_AUDIT_SYSCALLS_TRUE!$HAVE_AUDIT_SYSCALLS_TRUE$ac_delim
23563HAVE_AUDIT_SYSCALLS_FALSE!$HAVE_AUDIT_SYSCALLS_FALSE$ac_delim
23564LTLIBOBJS!$LTLIBOBJS$ac_delim
23565_ACEOF
23566
23567  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
23568    break
23569  elif $ac_last_try; then
23570    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23571echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23572   { (exit 1); exit 1; }; }
23573  else
23574    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23575  fi
23576done
23577
23578ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23579if test -n "$ac_eof"; then
23580  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23581  ac_eof=`expr $ac_eof + 1`
23582fi
23583
23584cat >>$CONFIG_STATUS <<_ACEOF
23585cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23586/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23587_ACEOF
23588sed '
23589s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23590s/^/s,@/; s/!/@,|#_!!_#|/
23591:n
23592t n
23593s/'"$ac_delim"'$/,g/; t
23594s/$/\\/; p
23595N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23596' >>$CONFIG_STATUS <conf$$subs.sed
23597rm -f conf$$subs.sed
23598cat >>$CONFIG_STATUS <<_ACEOF
23599:end
23600s/|#_!!_#|//g
23601CEOF$ac_eof
23602_ACEOF
23603
23604
23605# VPATH may cause trouble with some makes, so we remove $(srcdir),
23606# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23607# trailing colons and then remove the whole line if VPATH becomes empty
23608# (actually we leave an empty line to preserve line numbers).
23609if test "x$srcdir" = x.; then
23610  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23611s/:*\$(srcdir):*/:/
23612s/:*\${srcdir}:*/:/
23613s/:*@srcdir@:*/:/
23614s/^\([^=]*=[	 ]*\):*/\1/
23615s/:*$//
23616s/^[^=]*=[	 ]*$//
23617}'
23618fi
23619
23620cat >>$CONFIG_STATUS <<\_ACEOF
23621fi # test -n "$CONFIG_FILES"
23622
23623
23624for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23625do
23626  case $ac_tag in
23627  :[FHLC]) ac_mode=$ac_tag; continue;;
23628  esac
23629  case $ac_mode$ac_tag in
23630  :[FHL]*:*);;
23631  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23632echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23633   { (exit 1); exit 1; }; };;
23634  :[FH]-) ac_tag=-:-;;
23635  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23636  esac
23637  ac_save_IFS=$IFS
23638  IFS=:
23639  set x $ac_tag
23640  IFS=$ac_save_IFS
23641  shift
23642  ac_file=$1
23643  shift
23644
23645  case $ac_mode in
23646  :L) ac_source=$1;;
23647  :[FH])
23648    ac_file_inputs=
23649    for ac_f
23650    do
23651      case $ac_f in
23652      -) ac_f="$tmp/stdin";;
23653      *) # Look for the file first in the build tree, then in the source tree
23654	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23655	 # because $ac_f cannot contain `:'.
23656	 test -f "$ac_f" ||
23657	   case $ac_f in
23658	   [\\/$]*) false;;
23659	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23660	   esac ||
23661	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23662echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23663   { (exit 1); exit 1; }; };;
23664      esac
23665      ac_file_inputs="$ac_file_inputs $ac_f"
23666    done
23667
23668    # Let's still pretend it is `configure' which instantiates (i.e., don't
23669    # use $as_me), people would be surprised to read:
23670    #    /* config.h.  Generated by config.status.  */
23671    configure_input="Generated from "`IFS=:
23672	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23673    if test x"$ac_file" != x-; then
23674      configure_input="$ac_file.  $configure_input"
23675      { echo "$as_me:$LINENO: creating $ac_file" >&5
23676echo "$as_me: creating $ac_file" >&6;}
23677    fi
23678
23679    case $ac_tag in
23680    *:-:* | *:-) cat >"$tmp/stdin";;
23681    esac
23682    ;;
23683  esac
23684
23685  ac_dir=`$as_dirname -- "$ac_file" ||
23686$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23687	 X"$ac_file" : 'X\(//\)[^/]' \| \
23688	 X"$ac_file" : 'X\(//\)$' \| \
23689	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23690echo X"$ac_file" |
23691    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23692	    s//\1/
23693	    q
23694	  }
23695	  /^X\(\/\/\)[^/].*/{
23696	    s//\1/
23697	    q
23698	  }
23699	  /^X\(\/\/\)$/{
23700	    s//\1/
23701	    q
23702	  }
23703	  /^X\(\/\).*/{
23704	    s//\1/
23705	    q
23706	  }
23707	  s/.*/./; q'`
23708  { as_dir="$ac_dir"
23709  case $as_dir in #(
23710  -*) as_dir=./$as_dir;;
23711  esac
23712  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23713    as_dirs=
23714    while :; do
23715      case $as_dir in #(
23716      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23717      *) as_qdir=$as_dir;;
23718      esac
23719      as_dirs="'$as_qdir' $as_dirs"
23720      as_dir=`$as_dirname -- "$as_dir" ||
23721$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23722	 X"$as_dir" : 'X\(//\)[^/]' \| \
23723	 X"$as_dir" : 'X\(//\)$' \| \
23724	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23725echo X"$as_dir" |
23726    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23727	    s//\1/
23728	    q
23729	  }
23730	  /^X\(\/\/\)[^/].*/{
23731	    s//\1/
23732	    q
23733	  }
23734	  /^X\(\/\/\)$/{
23735	    s//\1/
23736	    q
23737	  }
23738	  /^X\(\/\).*/{
23739	    s//\1/
23740	    q
23741	  }
23742	  s/.*/./; q'`
23743      test -d "$as_dir" && break
23744    done
23745    test -z "$as_dirs" || eval "mkdir $as_dirs"
23746  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23747echo "$as_me: error: cannot create directory $as_dir" >&2;}
23748   { (exit 1); exit 1; }; }; }
23749  ac_builddir=.
23750
23751case "$ac_dir" in
23752.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23753*)
23754  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23755  # A ".." for each directory in $ac_dir_suffix.
23756  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23757  case $ac_top_builddir_sub in
23758  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23759  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23760  esac ;;
23761esac
23762ac_abs_top_builddir=$ac_pwd
23763ac_abs_builddir=$ac_pwd$ac_dir_suffix
23764# for backward compatibility:
23765ac_top_builddir=$ac_top_build_prefix
23766
23767case $srcdir in
23768  .)  # We are building in place.
23769    ac_srcdir=.
23770    ac_top_srcdir=$ac_top_builddir_sub
23771    ac_abs_top_srcdir=$ac_pwd ;;
23772  [\\/]* | ?:[\\/]* )  # Absolute name.
23773    ac_srcdir=$srcdir$ac_dir_suffix;
23774    ac_top_srcdir=$srcdir
23775    ac_abs_top_srcdir=$srcdir ;;
23776  *) # Relative name.
23777    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23778    ac_top_srcdir=$ac_top_build_prefix$srcdir
23779    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23780esac
23781ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23782
23783
23784  case $ac_mode in
23785  :F)
23786  #
23787  # CONFIG_FILE
23788  #
23789
23790  case $INSTALL in
23791  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23792  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23793  esac
23794  ac_MKDIR_P=$MKDIR_P
23795  case $MKDIR_P in
23796  [\\/$]* | ?:[\\/]* ) ;;
23797  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23798  esac
23799_ACEOF
23800
23801cat >>$CONFIG_STATUS <<\_ACEOF
23802# If the template does not know about datarootdir, expand it.
23803# FIXME: This hack should be removed a few years after 2.60.
23804ac_datarootdir_hack=; ac_datarootdir_seen=
23805
23806case `sed -n '/datarootdir/ {
23807  p
23808  q
23809}
23810/@datadir@/p
23811/@docdir@/p
23812/@infodir@/p
23813/@localedir@/p
23814/@mandir@/p
23815' $ac_file_inputs` in
23816*datarootdir*) ac_datarootdir_seen=yes;;
23817*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23818  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23819echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23820_ACEOF
23821cat >>$CONFIG_STATUS <<_ACEOF
23822  ac_datarootdir_hack='
23823  s&@datadir@&$datadir&g
23824  s&@docdir@&$docdir&g
23825  s&@infodir@&$infodir&g
23826  s&@localedir@&$localedir&g
23827  s&@mandir@&$mandir&g
23828    s&\\\${datarootdir}&$datarootdir&g' ;;
23829esac
23830_ACEOF
23831
23832# Neutralize VPATH when `$srcdir' = `.'.
23833# Shell code in configure.ac might set extrasub.
23834# FIXME: do we really want to maintain this feature?
23835cat >>$CONFIG_STATUS <<_ACEOF
23836  sed "$ac_vpsub
23837$extrasub
23838_ACEOF
23839cat >>$CONFIG_STATUS <<\_ACEOF
23840:t
23841/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23842s&@configure_input@&$configure_input&;t t
23843s&@top_builddir@&$ac_top_builddir_sub&;t t
23844s&@srcdir@&$ac_srcdir&;t t
23845s&@abs_srcdir@&$ac_abs_srcdir&;t t
23846s&@top_srcdir@&$ac_top_srcdir&;t t
23847s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23848s&@builddir@&$ac_builddir&;t t
23849s&@abs_builddir@&$ac_abs_builddir&;t t
23850s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23851s&@INSTALL@&$ac_INSTALL&;t t
23852s&@MKDIR_P@&$ac_MKDIR_P&;t t
23853$ac_datarootdir_hack
23854" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23855
23856test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23857  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23858  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23859  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23860which seems to be undefined.  Please make sure it is defined." >&5
23861echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23862which seems to be undefined.  Please make sure it is defined." >&2;}
23863
23864  rm -f "$tmp/stdin"
23865  case $ac_file in
23866  -) cat "$tmp/out"; rm -f "$tmp/out";;
23867  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23868  esac
23869 ;;
23870  :H)
23871  #
23872  # CONFIG_HEADER
23873  #
23874_ACEOF
23875
23876# Transform confdefs.h into a sed script `conftest.defines', that
23877# substitutes the proper values into config.h.in to produce config.h.
23878rm -f conftest.defines conftest.tail
23879# First, append a space to every undef/define line, to ease matching.
23880echo 's/$/ /' >conftest.defines
23881# Then, protect against being on the right side of a sed subst, or in
23882# an unquoted here document, in config.status.  If some macros were
23883# called several times there might be several #defines for the same
23884# symbol, which is useless.  But do not sort them, since the last
23885# AC_DEFINE must be honored.
23886ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23887# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23888# NAME is the cpp macro being defined, VALUE is the value it is being given.
23889# PARAMS is the parameter list in the macro definition--in most cases, it's
23890# just an empty string.
23891ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
23892ac_dB='\\)[	 (].*,\\1define\\2'
23893ac_dC=' '
23894ac_dD=' ,'
23895
23896uniq confdefs.h |
23897  sed -n '
23898	t rset
23899	:rset
23900	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
23901	t ok
23902	d
23903	:ok
23904	s/[\\&,]/\\&/g
23905	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23906	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23907  ' >>conftest.defines
23908
23909# Remove the space that was appended to ease matching.
23910# Then replace #undef with comments.  This is necessary, for
23911# example, in the case of _POSIX_SOURCE, which is predefined and required
23912# on some systems where configure will not decide to define it.
23913# (The regexp can be short, since the line contains either #define or #undef.)
23914echo 's/ $//
23915s,^[	 #]*u.*,/* & */,' >>conftest.defines
23916
23917# Break up conftest.defines:
23918ac_max_sed_lines=50
23919
23920# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23921# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23922# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23923# et cetera.
23924ac_in='$ac_file_inputs'
23925ac_out='"$tmp/out1"'
23926ac_nxt='"$tmp/out2"'
23927
23928while :
23929do
23930  # Write a here document:
23931    cat >>$CONFIG_STATUS <<_ACEOF
23932    # First, check the format of the line:
23933    cat >"\$tmp/defines.sed" <<\\CEOF
23934/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
23935/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
23936b
23937:def
23938_ACEOF
23939  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23940  echo 'CEOF
23941    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23942  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23943  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23944  grep . conftest.tail >/dev/null || break
23945  rm -f conftest.defines
23946  mv conftest.tail conftest.defines
23947done
23948rm -f conftest.defines conftest.tail
23949
23950echo "ac_result=$ac_in" >>$CONFIG_STATUS
23951cat >>$CONFIG_STATUS <<\_ACEOF
23952  if test x"$ac_file" != x-; then
23953    echo "/* $configure_input  */" >"$tmp/config.h"
23954    cat "$ac_result" >>"$tmp/config.h"
23955    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23956      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23957echo "$as_me: $ac_file is unchanged" >&6;}
23958    else
23959      rm -f $ac_file
23960      mv "$tmp/config.h" $ac_file
23961    fi
23962  else
23963    echo "/* $configure_input  */"
23964    cat "$ac_result"
23965  fi
23966  rm -f "$tmp/out12"
23967# Compute $ac_file's index in $config_headers.
23968_am_stamp_count=1
23969for _am_header in $config_headers :; do
23970  case $_am_header in
23971    $ac_file | $ac_file:* )
23972      break ;;
23973    * )
23974      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23975  esac
23976done
23977echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23978$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23979	 X$ac_file : 'X\(//\)[^/]' \| \
23980	 X$ac_file : 'X\(//\)$' \| \
23981	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23982echo X$ac_file |
23983    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23984	    s//\1/
23985	    q
23986	  }
23987	  /^X\(\/\/\)[^/].*/{
23988	    s//\1/
23989	    q
23990	  }
23991	  /^X\(\/\/\)$/{
23992	    s//\1/
23993	    q
23994	  }
23995	  /^X\(\/\).*/{
23996	    s//\1/
23997	    q
23998	  }
23999	  s/.*/./; q'`/stamp-h$_am_stamp_count
24000 ;;
24001
24002  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24003echo "$as_me: executing $ac_file commands" >&6;}
24004 ;;
24005  esac
24006
24007
24008  case $ac_file$ac_mode in
24009    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24010  # Strip MF so we end up with the name of the file.
24011  mf=`echo "$mf" | sed -e 's/:.*$//'`
24012  # Check whether this is an Automake generated Makefile or not.
24013  # We used to match only the files named `Makefile.in', but
24014  # some people rename them; so instead we look at the file content.
24015  # Grep'ing the first line is not enough: some people post-process
24016  # each Makefile.in and add a new line on top of each file to say so.
24017  # Grep'ing the whole file is not good either: AIX grep has a line
24018  # limit of 2048, but all sed's we know have understand at least 4000.
24019  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
24020    dirpart=`$as_dirname -- "$mf" ||
24021$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24022	 X"$mf" : 'X\(//\)[^/]' \| \
24023	 X"$mf" : 'X\(//\)$' \| \
24024	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24025echo X"$mf" |
24026    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24027	    s//\1/
24028	    q
24029	  }
24030	  /^X\(\/\/\)[^/].*/{
24031	    s//\1/
24032	    q
24033	  }
24034	  /^X\(\/\/\)$/{
24035	    s//\1/
24036	    q
24037	  }
24038	  /^X\(\/\).*/{
24039	    s//\1/
24040	    q
24041	  }
24042	  s/.*/./; q'`
24043  else
24044    continue
24045  fi
24046  # Extract the definition of DEPDIR, am__include, and am__quote
24047  # from the Makefile without running `make'.
24048  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24049  test -z "$DEPDIR" && continue
24050  am__include=`sed -n 's/^am__include = //p' < "$mf"`
24051  test -z "am__include" && continue
24052  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24053  # When using ansi2knr, U may be empty or an underscore; expand it
24054  U=`sed -n 's/^U = //p' < "$mf"`
24055  # Find all dependency output files, they are included files with
24056  # $(DEPDIR) in their names.  We invoke sed twice because it is the
24057  # simplest approach to changing $(DEPDIR) to its actual value in the
24058  # expansion.
24059  for file in `sed -n "
24060    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24061       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24062    # Make sure the directory exists.
24063    test -f "$dirpart/$file" && continue
24064    fdir=`$as_dirname -- "$file" ||
24065$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24066	 X"$file" : 'X\(//\)[^/]' \| \
24067	 X"$file" : 'X\(//\)$' \| \
24068	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24069echo X"$file" |
24070    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24071	    s//\1/
24072	    q
24073	  }
24074	  /^X\(\/\/\)[^/].*/{
24075	    s//\1/
24076	    q
24077	  }
24078	  /^X\(\/\/\)$/{
24079	    s//\1/
24080	    q
24081	  }
24082	  /^X\(\/\).*/{
24083	    s//\1/
24084	    q
24085	  }
24086	  s/.*/./; q'`
24087    { as_dir=$dirpart/$fdir
24088  case $as_dir in #(
24089  -*) as_dir=./$as_dir;;
24090  esac
24091  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24092    as_dirs=
24093    while :; do
24094      case $as_dir in #(
24095      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24096      *) as_qdir=$as_dir;;
24097      esac
24098      as_dirs="'$as_qdir' $as_dirs"
24099      as_dir=`$as_dirname -- "$as_dir" ||
24100$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24101	 X"$as_dir" : 'X\(//\)[^/]' \| \
24102	 X"$as_dir" : 'X\(//\)$' \| \
24103	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24104echo X"$as_dir" |
24105    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24106	    s//\1/
24107	    q
24108	  }
24109	  /^X\(\/\/\)[^/].*/{
24110	    s//\1/
24111	    q
24112	  }
24113	  /^X\(\/\/\)$/{
24114	    s//\1/
24115	    q
24116	  }
24117	  /^X\(\/\).*/{
24118	    s//\1/
24119	    q
24120	  }
24121	  s/.*/./; q'`
24122      test -d "$as_dir" && break
24123    done
24124    test -z "$as_dirs" || eval "mkdir $as_dirs"
24125  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24126echo "$as_me: error: cannot create directory $as_dir" >&2;}
24127   { (exit 1); exit 1; }; }; }
24128    # echo "creating $dirpart/$file"
24129    echo '# dummy' > "$dirpart/$file"
24130  done
24131done
24132 ;;
24133
24134  esac
24135done # for ac_tag
24136
24137
24138{ (exit 0); exit 0; }
24139_ACEOF
24140chmod +x $CONFIG_STATUS
24141ac_clean_files=$ac_clean_files_save
24142
24143
24144# configure is writing to config.log, and then calls config.status.
24145# config.status does its own redirection, appending to config.log.
24146# Unfortunately, on DOS this fails, as config.log is still kept open
24147# by configure, so config.status won't be able to write to it; its
24148# output is simply discarded.  So we exec the FD to /dev/null,
24149# effectively closing config.log, so it can be properly (re)opened and
24150# appended to by config.status.  When coming back to configure, we
24151# need to make the FD available again.
24152if test "$no_create" != yes; then
24153  ac_cs_success=:
24154  ac_config_status_args=
24155  test "$silent" = yes &&
24156    ac_config_status_args="$ac_config_status_args --quiet"
24157  exec 5>/dev/null
24158  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24159  exec 5>>config.log
24160  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24161  # would make configure fail if this is the last instruction.
24162  $ac_cs_success || { (exit 1); exit 1; }
24163fi
24164
24165